From c4dfaf527ed7d1922f487edef0deb4dfe301c88c Mon Sep 17 00:00:00 2001 From: Kenny P <17100641+kpeluso@users.noreply.github.com> Date: Thu, 8 Aug 2024 01:02:00 -0400 Subject: [PATCH] Release v0.3.0 (#494) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #XXX ## What is the purpose of the change > Add a description of the overall background and high level changes that this PR introduces *(E.g.: This pull request improves documentation of area A by adding ....)* ## Testing and Verifying *(Please pick one of the following options)* This change is a trivial rework / code cleanup without any test coverage. *(or)* This change is already covered by existing tests, such as *(please describe tests)*. *(or)* This change added tests and can be verified as follows: *(example:)* - *Added unit test that validates ...* - *Added integration tests for end-to-end deployment with ...* - *Extended integration test for ...* - *Manually verified the change by ...* ## Documentation and Release Note - [ ] Does this pull request introduce a new feature or user-facing behavior changes? Where is the change documented? - [ ] Specification (`x/{module}/README.md`) - [ ] Allora documentation site `docs.allora.network` source code at: `https://github.com/allora-network/docs` - [ ] Code comments? - [ ] N/A --------- Signed-off-by: Budalebah <113329223+Budalebah@users.noreply.github.com> Signed-off-by: Kenny P <17100641+kpeluso@users.noreply.github.com> Signed-off-by: Jack Co-authored-by: Diego C Co-authored-by: br4e Co-authored-by: T Co-authored-by: Guilherme Brandão <37072140+guilherme-brandao@users.noreply.github.com> Co-authored-by: vladupshot <154623109+vladupshot@users.noreply.github.com> Co-authored-by: Budalebah <113329223+Budalebah@users.noreply.github.com> Co-authored-by: Tobi Okedeji Co-authored-by: RedBird96 <73715579+RedBird96@users.noreply.github.com> Co-authored-by: Tyler Co-authored-by: michael Co-authored-by: RedBird96 Co-authored-by: Fernando Campos Co-authored-by: Guilherme Brandão Co-authored-by: Jack --- .github/pull_request_template.md | 47 +- .github/workflows/build_push_docker_hub.yml | 3 +- .github/workflows/format_and_test.yml | 21 +- .github/workflows/release_binary.yml | 2 +- .gitignore | 6 +- CHANGELOG.md | 140 + CONTRIBUTING.md | 71 +- Dockerfile.cosmovisor | 72 + Dockerfile.development | 8 - Dockerfile.upgrade | 80 + README.md | 52 +- app/api.go | 185 - app/ibc.go | 2 + app/topics_handler.go | 156 - app/upgrades.go | 14 + app/upgrades/types.go | 14 + .../{vintegration => v0_3_0}/upgrades.go | 12 +- docker-compose.yaml | 10 +- go.mod | 54 +- go.sum | 108 +- math/dec.go | 5 +- math/utils.go | 31 +- math/utils_test.go | 3 +- scripts/l1_node.sh | 39 +- test/ibc/relayer/.env | 14 + test/ibc/relayer/Makefile | 24 + test/ibc/relayer/configs/allora.json | 22 + test/ibc/relayer/configs/osmosis.json | 23 + test/ibc/relayer/docker-compose.yml | 51 + test/ibc/relayer/paths/demo.json | 22 + test/ibc/relayer/run-relayer.sh | 29 + test/ibc/relayer/scripts/setup_allora.sh | 63 + test/ibc/relayer/scripts/setup_osmosis.sh | 112 + test/integration/create_topic_test.go | 28 +- test/integration/integration_test.go | 25 +- test/integration/registration_test.go | 20 +- test/integration/upgrade.patch | 48 - test/integration/upgrade_test.go | 12 +- .../worker_inference_and_forecast_test.go | 231 +- test/invariant/common_test.go | 10 - test/invariant/inferences_test.go | 77 +- test/invariant/invariants.patch | 14 +- test/invariant/registration_test.go | 20 +- test/invariant/stake_test.go | 8 +- test/invariant/topics_test.go | 23 +- test/invariant/transitions_test.go | 6 +- test/local_testnet_l1.sh | 38 +- test/local_testnet_upgrade_l1.sh | 245 + test/stress/create_topic_test.go | 23 +- test/stress/registration_test.go | 22 +- test/stress/reputers_test.go | 59 +- test/stress/workers_test.go | 93 +- test/testutil/inEpsilon.go | 52 +- test/testutil/testdata.go | 1621 + x/emissions/api/v1/node.pulsar.go | 4 +- x/emissions/api/v1/topic.pulsar.go | 210 +- x/emissions/api/{v1 => v2}/events.pulsar.go | 398 +- x/emissions/api/v2/genesis.pulsar.go | 24987 +++++++++++ .../api/{v1 => v2}/inference.pulsar.go | 136 +- .../genesis.pulsar.go => v2/node.pulsar.go} | 475 +- x/emissions/api/v2/nonce.pulsar.go | 2140 + x/emissions/api/{v1 => v2}/params.pulsar.go | 991 +- x/emissions/api/{v1 => v2}/query.pulsar.go | 36812 ++++++++-------- x/emissions/api/{v1 => v2}/query_grpc.pb.go | 513 +- x/emissions/api/v2/reputer.pulsar.go | 4803 ++ x/emissions/api/{v1 => v2}/score.pulsar.go | 218 +- x/emissions/api/{v1 => v2}/stake.pulsar.go | 656 +- x/emissions/api/v2/topic.pulsar.go | 3082 ++ x/emissions/api/{v1 => v2}/tx.pulsar.go | 5899 ++- x/emissions/api/{v1 => v2}/tx_grpc.pb.go | 184 +- x/emissions/api/{v1 => v2}/types.pulsar.go | 242 +- x/emissions/api/{v1 => v2}/worker.pulsar.go | 1082 +- x/emissions/keeper/actor_utils/README.md | 2 + .../losses.go} | 222 +- x/emissions/keeper/actor_utils/losses_test.go | 3 + .../util_sort.go} | 3 +- .../util_test.go} | 2 +- x/emissions/keeper/actor_utils/worker.go | 233 + x/emissions/keeper/actor_utils/worker_test.go | 3 + x/emissions/keeper/genesis.go | 1616 +- x/emissions/keeper/genesis_test.go | 15 + .../keeper/inference_synthesis/README.md | 2 +- .../keeper/inference_synthesis/common.go | 25 +- .../keeper/inference_synthesis/common_test.go | 56 - .../network_inference_builder.go | 67 +- .../network_inference_builder_test.go | 278 +- .../inference_synthesis/network_inferences.go | 10 +- .../network_inferences_test.go | 993 +- .../inference_synthesis/network_losses.go | 50 +- .../network_losses_test.go | 160 +- .../inference_synthesis/network_regrets.go | 227 +- .../network_regrets_test.go | 319 +- .../keeper/inference_synthesis/nonce_mgmt.go | 57 - .../inference_synthesis/nonce_mgmt_test.go | 311 - .../synth_palette_bootstrap.go | 3 +- .../synth_palette_bootstrap_test.go | 13 +- .../synth_palette_factory.go | 3 +- .../synth_palette_forecast_implied_test.go | 24 +- .../synth_palette_weight.go | 6 +- .../keeper/inference_synthesis/types.go | 12 +- x/emissions/keeper/invariants.go | 6 + x/emissions/keeper/keeper.go | 649 +- x/emissions/keeper/keeper_test.go | 760 +- x/emissions/keeper/migrator.go | 26 - .../keeper/msgserver/msg_server_demand.go | 21 +- .../msgserver/msg_server_demand_test.go | 4 - .../msgserver/msg_server_losses_test.go | 767 - .../keeper/msgserver/msg_server_params.go | 9 + .../msgserver/msg_server_registrations.go | 17 +- .../msg_server_registrations_test.go | 143 +- .../msgserver/msg_server_reputer_payload.go | 81 + .../msg_server_reputer_payload_test.go | 181 + .../keeper/msgserver/msg_server_stake.go | 19 +- .../keeper/msgserver/msg_server_stake_test.go | 232 +- .../keeper/msgserver/msg_server_test.go | 42 +- .../keeper/msgserver/msg_server_topics.go | 71 +- .../msgserver/msg_server_topics_test.go | 42 +- .../msgserver/msg_server_util_payment.go | 111 + .../msg_server_util_topic_activation.go | 50 - .../msgserver/msg_server_worker_payload.go | 345 +- .../msg_server_worker_payload_test.go | 449 +- .../queryserver/query_server_inferences.go | 151 +- .../query_server_inferences_test.go | 37 +- .../queryserver/query_server_losses_test.go | 4 +- .../queryserver/query_server_registrations.go | 23 +- .../query_server_registrations_test.go | 133 +- .../queryserver/query_server_reward_test.go | 22 +- .../keeper/queryserver/query_server_stake.go | 50 +- .../queryserver/query_server_stake_test.go | 24 +- .../keeper/queryserver/query_server_test.go | 42 +- .../keeper/queryserver/query_server_topics.go | 51 +- .../queryserver/query_server_topics_test.go | 91 +- x/emissions/keeper/score_utils.go | 85 + x/emissions/keeper/score_utils_test.go | 163 + x/emissions/keeper/topic_weight.go | 8 +- x/emissions/migrations/v2/migrate.go | 319 + x/emissions/migrations/v2/migrate_test.go | 497 + x/emissions/migrations/v2/migrations.go | 18 - x/emissions/migrations/v2/types/node.pb.go | 525 + x/emissions/migrations/v2/types/nonce.pb.go | 899 + x/emissions/migrations/v2/types/reputer.pb.go | 1975 + x/emissions/migrations/v2/types/topic.pb.go | 1403 + x/emissions/module/abci.go | 122 +- x/emissions/module/autocli.go | 136 +- x/emissions/module/module.go | 9 +- x/emissions/module/rewards/reputer_rewards.go | 14 +- .../module/rewards/reputer_rewards_test.go | 173 +- x/emissions/module/rewards/rewards.go | 58 +- .../module/rewards/rewards_internal.go | 15 +- .../module/rewards/rewards_internal_test.go | 159 +- x/emissions/module/rewards/rewards_test.go | 1117 +- x/emissions/module/rewards/scores.go | 2 +- x/emissions/module/rewards/scores_test.go | 272 +- x/emissions/module/rewards/topic_rewards.go | 167 +- .../module/rewards/topic_rewards_test.go | 131 + x/emissions/module/rewards/worker_rewards.go | 101 +- .../module/rewards/worker_rewards_test.go | 317 +- x/emissions/module/stake_removals.go | 111 +- x/emissions/proto/emissions/v1/genesis.proto | 15 - x/emissions/proto/emissions/v1/node.proto | 6 +- x/emissions/proto/emissions/v1/nonce.proto | 2 +- x/emissions/proto/emissions/v1/reputer.proto | 2 +- x/emissions/proto/emissions/v1/topic.proto | 6 +- .../proto/emissions/{v1 => v2}/events.proto | 4 +- x/emissions/proto/emissions/v2/genesis.proto | 321 + .../emissions/{v1 => v2}/inference.proto | 4 +- x/emissions/proto/emissions/v2/node.proto | 12 + x/emissions/proto/emissions/v2/nonce.proto | 26 + .../proto/emissions/{v1 => v2}/params.proto | 14 +- .../proto/emissions/{v1 => v2}/query.proto | 328 +- x/emissions/proto/emissions/v2/reputer.proto | 77 + .../proto/emissions/{v1 => v2}/score.proto | 2 +- .../proto/emissions/{v1 => v2}/stake.proto | 2 +- x/emissions/proto/emissions/v2/topic.proto | 51 + .../proto/emissions/{v1 => v2}/tx.proto | 58 +- .../proto/emissions/{v1 => v2}/types.proto | 2 +- .../proto/emissions/{v1 => v2}/worker.proto | 11 +- x/emissions/types/codec.go | 5 - x/emissions/types/errors.go | 79 +- x/emissions/types/events.pb.go | 74 +- x/emissions/types/events_test.go | 14 +- x/emissions/types/genesis.pb.go | 10501 ++++- x/emissions/types/inference.pb.go | 16 +- x/emissions/types/keys.go | 129 +- x/emissions/types/msg_create_topic.go | 18 +- .../types/msg_insert_bulk_reputer_payload.go | 26 - .../types/msg_insert_bulk_worker_payload.go | 24 - x/emissions/types/msg_register.go | 7 - x/emissions/types/node.pb.go | 198 +- x/emissions/types/nonce.pb.go | 30 +- x/emissions/types/params.go | 120 +- x/emissions/types/params.pb.go | 309 +- x/emissions/types/query.pb.go | 10428 ++--- x/emissions/types/query.pb.gw.go | 989 +- x/emissions/types/reputer.pb.go | 452 +- x/emissions/types/rewards.go | 6 +- x/emissions/types/score.pb.go | 56 +- x/emissions/types/stake.pb.go | 100 +- x/emissions/types/topic.pb.go | 669 +- x/emissions/types/tx.pb.go | 2031 +- x/emissions/types/types.pb.go | 22 +- x/emissions/types/worker.pb.go | 245 +- x/emissions/types/worker_data_bundle.go | 3 + x/ibc/gmp/ibc_middleware.go | 93 +- x/ibc/testing/ibc_setup_test.go | 5 +- x/mint/api/v1beta1/types.pulsar.go | 115 +- x/mint/keeper/emissions.go | 33 +- x/mint/keeper/emissions_test.go | 262 +- x/mint/keeper/genesis_test.go | 1 + x/mint/keeper/keeper.go | 24 +- x/mint/keeper/keeper_test.go | 19 +- x/mint/keeper/migrator.go | 25 - x/mint/migrations/proto_types_test.go | 772 + x/mint/migrations/v1_to_v2.go | 66 + x/mint/migrations/v1_to_v2_test.go | 124 + x/mint/module/abci.go | 73 +- x/mint/module/module.go | 7 +- x/mint/module/module_test.go | 16 +- x/mint/proto/mint/v1beta1/types.proto | 7 + x/mint/testutil/emissions_keeper_mocks.go | 4 +- x/mint/testutil/mint_keeper_mocks.go | 102 + x/mint/types/errors.go | 5 +- x/mint/types/expected_keepers.go | 9 + x/mint/types/params.go | 14 +- x/mint/types/types.pb.go | 122 +- 225 files changed, 96049 insertions(+), 38509 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 Dockerfile.cosmovisor create mode 100644 Dockerfile.upgrade delete mode 100644 app/api.go create mode 100644 app/upgrades/types.go rename app/upgrades/{vintegration => v0_3_0}/upgrades.go (61%) create mode 100644 test/ibc/relayer/.env create mode 100755 test/ibc/relayer/Makefile create mode 100755 test/ibc/relayer/configs/allora.json create mode 100755 test/ibc/relayer/configs/osmosis.json create mode 100755 test/ibc/relayer/docker-compose.yml create mode 100755 test/ibc/relayer/paths/demo.json create mode 100755 test/ibc/relayer/run-relayer.sh create mode 100755 test/ibc/relayer/scripts/setup_allora.sh create mode 100755 test/ibc/relayer/scripts/setup_osmosis.sh delete mode 100644 test/integration/upgrade.patch create mode 100755 test/local_testnet_upgrade_l1.sh create mode 100644 test/testutil/testdata.go rename x/emissions/api/{v1 => v2}/events.pulsar.go (88%) create mode 100644 x/emissions/api/v2/genesis.pulsar.go rename x/emissions/api/{v1 => v2}/inference.pulsar.go (85%) rename x/emissions/api/{v1/genesis.pulsar.go => v2/node.pulsar.go} (50%) create mode 100644 x/emissions/api/v2/nonce.pulsar.go rename x/emissions/api/{v1 => v2}/params.pulsar.go (80%) rename x/emissions/api/{v1 => v2}/query.pulsar.go (83%) rename x/emissions/api/{v1 => v2}/query_grpc.pb.go (88%) create mode 100644 x/emissions/api/v2/reputer.pulsar.go rename x/emissions/api/{v1 => v2}/score.pulsar.go (88%) rename x/emissions/api/{v1 => v2}/stake.pulsar.go (89%) create mode 100644 x/emissions/api/v2/topic.pulsar.go rename x/emissions/api/{v1 => v2}/tx.pulsar.go (82%) rename x/emissions/api/{v1 => v2}/tx_grpc.pb.go (85%) rename x/emissions/api/{v1 => v2}/types.pulsar.go (89%) rename x/emissions/api/{v1 => v2}/worker.pulsar.go (85%) create mode 100644 x/emissions/keeper/actor_utils/README.md rename x/emissions/keeper/{msgserver/msg_server_losses.go => actor_utils/losses.go} (55%) create mode 100644 x/emissions/keeper/actor_utils/losses_test.go rename x/emissions/keeper/{msgserver/msg_server_util_sort.go => actor_utils/util_sort.go} (98%) rename x/emissions/keeper/{msgserver/msg_server_common_test.go => actor_utils/util_test.go} (99%) create mode 100644 x/emissions/keeper/actor_utils/worker.go create mode 100644 x/emissions/keeper/actor_utils/worker_test.go create mode 100644 x/emissions/keeper/genesis_test.go delete mode 100644 x/emissions/keeper/inference_synthesis/common_test.go delete mode 100644 x/emissions/keeper/inference_synthesis/nonce_mgmt.go delete mode 100644 x/emissions/keeper/inference_synthesis/nonce_mgmt_test.go delete mode 100644 x/emissions/keeper/migrator.go delete mode 100644 x/emissions/keeper/msgserver/msg_server_losses_test.go create mode 100644 x/emissions/keeper/msgserver/msg_server_reputer_payload.go create mode 100644 x/emissions/keeper/msgserver/msg_server_reputer_payload_test.go create mode 100644 x/emissions/keeper/msgserver/msg_server_util_payment.go delete mode 100644 x/emissions/keeper/msgserver/msg_server_util_topic_activation.go create mode 100644 x/emissions/keeper/score_utils.go create mode 100644 x/emissions/keeper/score_utils_test.go create mode 100644 x/emissions/migrations/v2/migrate.go create mode 100644 x/emissions/migrations/v2/migrate_test.go delete mode 100644 x/emissions/migrations/v2/migrations.go create mode 100644 x/emissions/migrations/v2/types/node.pb.go create mode 100644 x/emissions/migrations/v2/types/nonce.pb.go create mode 100644 x/emissions/migrations/v2/types/reputer.pb.go create mode 100644 x/emissions/migrations/v2/types/topic.pb.go create mode 100644 x/emissions/module/rewards/topic_rewards_test.go delete mode 100644 x/emissions/proto/emissions/v1/genesis.proto rename x/emissions/proto/emissions/{v1 => v2}/events.proto (96%) create mode 100644 x/emissions/proto/emissions/v2/genesis.proto rename x/emissions/proto/emissions/{v1 => v2}/inference.proto (87%) create mode 100644 x/emissions/proto/emissions/v2/node.proto create mode 100644 x/emissions/proto/emissions/v2/nonce.proto rename x/emissions/proto/emissions/{v1 => v2}/params.proto (90%) rename x/emissions/proto/emissions/{v1 => v2}/query.proto (78%) create mode 100644 x/emissions/proto/emissions/v2/reputer.proto rename x/emissions/proto/emissions/{v1 => v2}/score.proto (95%) rename x/emissions/proto/emissions/{v1 => v2}/stake.proto (99%) create mode 100644 x/emissions/proto/emissions/v2/topic.proto rename x/emissions/proto/emissions/{v1 => v2}/tx.proto (89%) rename x/emissions/proto/emissions/{v1 => v2}/types.proto (95%) rename x/emissions/proto/emissions/{v1 => v2}/worker.proto (87%) delete mode 100644 x/emissions/types/msg_insert_bulk_reputer_payload.go delete mode 100644 x/emissions/types/msg_insert_bulk_worker_payload.go delete mode 100644 x/mint/keeper/migrator.go create mode 100644 x/mint/migrations/proto_types_test.go create mode 100644 x/mint/migrations/v1_to_v2.go create mode 100644 x/mint/migrations/v1_to_v2_test.go create mode 100644 x/mint/testutil/mint_keeper_mocks.go diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index bd768aa23..dce167942 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,45 +1,18 @@ -Closes: #XXX +## Purpose of Changes and their Description -## What is the purpose of the change +## Link(s) to Ticket(s) or Issue(s) resolved by this PR -> Add a description of the overall background and high level changes that this PR introduces +## Are these changes tested and documented? -*(E.g.: This pull request improves documentation of area A by adding ....)* +- [ ] If tested, please describe how. If not, why tests are not needed. +- [ ] If documented, please describe where. If not, describe why docs are not needed. +- [ ] Added to `Unreleased` section of `CHANGELOG.md`? -## Testing and Verifying +## Still Left Todo -*(Please pick one of the following options)* - -This change is a trivial rework / code cleanup without any test coverage. - -*(or)* - -This change is already covered by existing tests, such as *(please describe tests)*. - -*(or)* - -This change added tests and can be verified as follows: - -*(example:)* - - *Added unit test that validates ...* - - *Added integration tests for end-to-end deployment with ...* - - *Extended integration test for ...* - - *Manually verified the change by ...* - -## Documentation and Release Note - - - [ ] Does this pull request introduce a new feature or user-facing behavior changes? - - -Where is the change documented? - - [ ] Specification (`x/{module}/README.md`) - - [ ] Allora documentation site `docs.allora.network` source code at: `https://github.com/allora-network/docs` - - [ ] Code comments? - - [ ] N/A +*Fill this out if this is a Draft PR so others can help.* diff --git a/.github/workflows/build_push_docker_hub.yml b/.github/workflows/build_push_docker_hub.yml index b1bdb5e7a..9a7548a8e 100644 --- a/.github/workflows/build_push_docker_hub.yml +++ b/.github/workflows/build_push_docker_hub.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to Docker Hub uses: docker/login-action@v1 @@ -55,3 +55,4 @@ jobs: docker tag $DOCKERHUB_USERNAME/$DOCKERHUB_REPOSITORY:$IMAGE_TAG $DOCKERHUB_USERNAME/$DOCKERHUB_REPOSITORY:$tag docker push $DOCKERHUB_USERNAME/$DOCKERHUB_REPOSITORY:$tag done + diff --git a/.github/workflows/format_and_test.yml b/.github/workflows/format_and_test.yml index 65b2603a9..7b9ac9423 100644 --- a/.github/workflows/format_and_test.yml +++ b/.github/workflows/format_and_test.yml @@ -22,11 +22,28 @@ jobs: steps: - uses: actions/checkout@v4 - name: Run clang-format style check for C/C++/Protobuf programs. - uses: jidicula/clang-format-action@v4.11.0 + uses: jidicula/clang-format-action@v4.13.0 with: clang-format-version: '17' include-regex: '^.*\.proto$' + staticcheck-linter: + name: "Go staticcheck Lint Tool" + runs-on : ubuntu-latest + needs: [clang-format] + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: 1.22.x + + - name: "Install staticcheck" + run: go install 'honnef.co/go/tools/cmd/staticcheck@latest' + + - name: Run staticcheck linter + run: staticcheck ./... | grep -E -v "(.*\.pb\.go|.*\.pb\.gw\.go|.*\.pulsar\.go)" && exit 1 || exit 0 + test: runs-on: ubuntu-latest timeout-minutes: 10 @@ -38,7 +55,7 @@ jobs: go-version: 1.22.x - name: Test - uses: robherley/go-test-action@v0.1.0 + uses: robherley/go-test-action@v0.4.1 integration-test: runs-on: ubuntu-latest diff --git a/.github/workflows/release_binary.yml b/.github/workflows/release_binary.yml index 01761bf3a..5a780aa6b 100644 --- a/.github/workflows/release_binary.yml +++ b/.github/workflows/release_binary.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.gitignore b/.gitignore index edcad77bd..2c6564f93 100644 --- a/.gitignore +++ b/.gitignore @@ -15,13 +15,15 @@ *.out # Dependency directories (remove the comment below to include it) -# vendor/ +vendor/ # Go workspace file go.work # Data folder data/ +data_head/ +data_validator/ # Account info *.account_info @@ -36,3 +38,5 @@ coverage_raw.lcov coverage.lcov build/ + +tokenomics_output.csv diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..5bd493bec --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,140 @@ + + +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) for all versions `v1.0.0` and beyond (still considered experimental prior to v1.0.0). + +## [Unreleased] + + +### Added + +* Changelog added (this), improved [contribution guidelines](./CONTRIBUTING.md), and simplified [PR template](./.github/pull_request_template.md) +* [#443](https://github.com/allora-network/allora-chain/pull/443) Create mechanism to import and export state with `initGenesis` and `exportGenesis` +* [#461](https://github.com/allora-network/allora-chain/pull/461) Create index of topics by block height at which their open worker nonce closes +* [#432](https://github.com/allora-network/allora-chain/pull/432) State sync enabled for faster validator syncing +* [#478](https://github.com/allora-network/allora-chain/pull/478) Create and apply abstraction for augmenting topic fee revenue that is sure to check for topic activation criteria for both funding events, fee payments, and stake additions +* [#482](https://github.com/allora-network/allora-chain/pull/482) Creation of an official Upgrade Flow + +### Removed + +* [#458](https://github.com/allora-network/allora-chain/pull/458) Removal of Blockless and batch processing; Introduction of online, individual payload processing. This resolves many security, performance, and scalability issues. + * A number of PRs were merged prior to v0.3.0 that improved upon our usage of Blockless, however that has been removed in favor of its removal in #458. Hence, we are not listing those PRs here. + * [#462](https://github.com/allora-network/allora-chain/pull/462) Add individual payload processing + * [#470](https://github.com/allora-network/allora-chain/pull/470) Skim of top performers per topic as they submit payloads ("online skimming") + * [#464](https://github.com/allora-network/allora-chain/pull/464) Remove libp2p peer ids from chain + * [#459](https://github.com/allora-network/allora-chain/pull/459) Revamp nonce management + +### Fixed + +* [#486](https://github.com/allora-network/allora-chain/pull/486) Correctly set initial emission per unit staked token +* [#460](https://github.com/allora-network/allora-chain/pull/460) Apply a number of bugfixes and high-precision unit tests that ensure our implementation matches our simulation of Allora and therefore the original intentions of the whitepaper and Foundation. +* [#487](https://github.com/allora-network/allora-chain/pull/487) Patch to have the single `allorad` home folder in Docker +* [#437](https://github.com/allora-network/allora-chain/pull/437) Fix issue for excessive effective revenue dripping +* [#441](https://github.com/allora-network/allora-chain/pull/441) Prevent DoS from attempting to withdraw negative stake amounts +* [#472](https://github.com/allora-network/allora-chain/pull/472) Prevent topics to be created with a ground truth lag too big so that the reputation nonce could be dropped when the ground truth is revealed +* [#484](https://github.com/allora-network/allora-chain/pull/484) Fix issue with permissions within Docker container +* [#477](https://github.com/allora-network/allora-chain/pull/477) Fix issue arising from no forecasts being sent in worker payload +* [#436](https://github.com/allora-network/allora-chain/pull/436/files) Fix bug related to excessive usage of topic ground truth lag and misleading error message +* Additional bugfixes and improvements + +### Security + +* [#454](https://github.com/allora-network/allora-chain/pull/454) Bump CometBFT version +* [#465](https://github.com/allora-network/allora-chain/pull/465) Catch and avert error leading to inappropriate transfer of funds +* [#440](https://github.com/allora-network/allora-chain/pull/440) Remove parallelization to avert nonuniform executions between hardwares + +## v0.2.14 + +* Added many new queries + * [#430](https://github.com/allora-network/allora-chain/pull/430) + * [#399](https://github.com/allora-network/allora-chain/pull/399) + * [#353](https://github.com/allora-network/allora-chain/pull/353) +* Added confidence interval to network inference query + * [#402](https://github.com/allora-network/allora-chain/pull/402) +* New actors are incorporated more smoothly instead of ignored then included in their next round + * [#420](https://github.com/allora-network/allora-chain/pull/420) +* Created fuzzer so anyone can help find vulnerabilities (tell them how they can submit) + * [#407](https://github.com/allora-network/allora-chain/pull/407) +* Parallelized tests for faster CI + * [#394](https://github.com/allora-network/allora-chain/pull/394) +* Formally adopted gitflow with improved contributor experience +* Simplified nonce semantics + * [#416](https://github.com/allora-network/allora-chain/pull/416) +* More reliable fetching of previous data + * [#412](https://github.com/allora-network/allora-chain/pull/412) + * [#409](https://github.com/allora-network/allora-chain/pull/409) +* Added validations for safer data ingress + * [#398](https://github.com/allora-network/allora-chain/pull/398) +* Update forecast utiity function + * [#382](https://github.com/allora-network/allora-chain/pull/382) +* Automatically expire stake removals instead of requiring a 2nd tx + * [#362](https://github.com/allora-network/allora-chain/pull/362) +* Added min bound on epoch length to prevent topics from hogging too many resources + * [#376](https://github.com/allora-network/allora-chain/pull/376) +* Add restore from snapshot + * [#352](https://github.com/allora-network/allora-chain/pull/352) +* Version updates to all docker files and deployment scripts +* Removed duplicate computations for increased efficiency + * [#367](https://github.com/allora-network/allora-chain/pull/367) +* Bugixes, improved error handling, way more coverage, and simplifications including: + * [#327](https://github.com/allora-network/allora-chain/pull/327) + * [#318](https://github.com/allora-network/allora-chain/pull/318) + * [#401](https://github.com/allora-network/allora-chain/pull/401) + * [#272](https://github.com/allora-network/allora-chain/pull/272) +* More efficient state pruning + * [#319](https://github.com/allora-network/allora-chain/pull/319) +* Way more validator logging + * [#305](https://github.com/allora-network/allora-chain/pull/305) +* Removed print statements so more efficient logging + * [#298](https://github.com/allora-network/allora-chain/pull/298) +* Tuned default global parameters +* Self-delegation disallowed (security patch) + * [#269](https://github.com/allora-network/allora-chain/pull/269) +* Added stress tests +* Improved [README](./README.md) +* Move expensive logarithm and exponentiation operations to offchain nodes when possible + * [#258](https://github.com/allora-network/allora-chain/pull/258) + + +## v0.1.0 + +*Versions below `v0.2.14` were associated with our "Alpha Testnet" and "Edgenet" deployments, before formal versioning was adopted.* + diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 22651db71..5c11425ac 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,7 @@ +# Contribution Guidelines + +*Borrowed from Osmosis's [contribution guidelines](https://github.com/osmosis-labs/osmosis/blob/main/CONTRIBUTING.md)* + Any contribution that you make to this repository will be under the Apache 2 License, as dictated by that [license](http://www.apache.org/licenses/LICENSE-2.0.html): @@ -17,15 +21,62 @@ line to commit messages to certify that they have the right to submit the code they are contributing to the project according to the [Developer Certificate of Origin (DCO)](https://developercertificate.org/). -Contributors are encouraged to enable our pre-commit hooks to facilitate -teh passage of CI/CD-related checks in our repositories. To enable them, -please run the following command in the root of the repository: -```bash -chmod +x .hooks/pre-commit -git config core.hooksPath .hooks/pre-commit -``` +## Checklist for updating global parameters + +When updating global parameters, you must update the following files: + +For `x/emissions`: + +1. `x/emissions/types/params.go` + 1. Set the default values for the new params + 2. Add a new function to return the default values + 3. Add validation for the new params +2. `x/emissions/proto/emissions/v1/params.proto` + 1. Add to the `Params` proto, tracking all global params +3. x/emissions/proto/emissions/v1/tx.proto + 1. Add to the proto of the tx that allows us to set new params +4. `x/emissions/keeper/msgserver/msg_server_params.go` + 1. Add code to the tx that allows us to set new params +5. Update any tests where all params need to be specified +6. Update any external docs here: + 1. https://docs.allora.network/docs/chain-parameters + +For `x/mint`: +__TBD__ + + +## Checklist for updating the state machine + +When updating the state machine, you must update the following files: + +1. `x/emissions/keeper/keeper.go` +2. `x/emissions/keeper/keeper_test.go` as needed +3. `x/emissions/types/keys.go` +4. `x/emissions/keeper/genesis.go` +5. `x/emissions/keeper/genesis_test.go` +6. `x/emissions/proto/emissions/v1/genesis.proto` + + +## Secondary Limitations To Keep In Mind + +#### Network Requests to External Services + +It is critical to avoid performing network requests to external services since it is common for services to be unavailable or rate-limit. + +Imagine a service that returns exchange rates when clients query its HTTP endpoint. This service might experience downtime or be restricted in some geographical areas. + +As a result, nodes may get diverging responses where some get successful responses while others errors, leading to state breakage. + +#### Randomness + +Randomness cannot be used in the state machine, as the state machine definitionally must be deterministic. Any time you'd consider using it, instead seed a CSPRNG off of some seed. + +One thing to note is that in golang, iteration order over maps is non-deterministic, so to be deterministic you must gather the keys, and sort them all prior to iterating over all values. + +#### Parallelism and Shared State + +Threads and Goroutines might preempt differently in different hardware. Therefore, they should be avoided for the sake of determinism. Additionally, it is hard to predict when the multi-threaded state can be updated. -This will enable the pre-commit hooks for the repository and ensure that -all commits are checked for compliance with our formatter and other -checks before they are accepted into the repository. +#### Hardware Errors +This is out of the developer's control but is mentioned for completeness. diff --git a/Dockerfile.cosmovisor b/Dockerfile.cosmovisor new file mode 100644 index 000000000..b30d7a6f3 --- /dev/null +++ b/Dockerfile.cosmovisor @@ -0,0 +1,72 @@ +FROM debian:bookworm-slim + +ENV DEBIAN_FRONTEND=noninteractive \ + USERNAME=appuser \ + APP_PATH=/data + +#* curl jq - required for readyness probe and to download genesis +RUN apt update && \ + apt -y dist-upgrade && \ + apt install -y --no-install-recommends \ + curl jq \ + tzdata \ + ca-certificates && \ + echo "deb http://deb.debian.org/debian testing main" >> /etc/apt/sources.list && \ + apt update && \ + apt install -y --no-install-recommends -t testing \ + zlib1g \ + libgnutls30 \ + perl-base && \ + rm -rf /var/cache/apt/* + +RUN groupadd -g 1001 ${USERNAME} && \ + useradd -m -d ${APP_PATH} -u 1001 -g 1001 ${USERNAME} + +#* Install dasel to work with json/yaml/toml configs +ENV DASEL_VERSION="v2.8.1" +ADD https://github.com/TomWright/dasel/releases/download/${DASEL_VERSION}/dasel_linux_amd64 /usr/local/bin/dasel +RUN chmod a+x /usr/local/bin/dasel + +ENV COSMOVISOR_VERSION="v1.5.0" +#* See https://docs.cosmos.network/main/build/tooling/cosmovisor#setup for details +ENV DAEMON_HOME="/cosmovisor" +# ENV DAEMON_NAME=allorad +# ENV DAEMON_ALLOW_DOWNLOAD_BINARIES=false +# ENV DAEMON_DOWNLOAD_MUST_HAVE_CHECKSUM=false +# ENV DAEMON_RESTART_AFTER_UPGRADE=true +# ENV DAEMON_RESTART_DELAY=1s +# ENV DAEMON_POLL_INTERVAL=3s +# ENV UNSAFE_SKIP_BACKUP=true +# ENV DAEMON_PREUPGRADE_MAX_RETRIES=3 +# ENV COSMOVISOR_DISABLE_LOGS=false +# ENV COSMOVISOR_COLOR_LOGS=true +ADD https://github.com/cosmos/cosmos-sdk/releases/download/cosmovisor/${COSMOVISOR_VERSION}/cosmovisor-v1.5.0-linux-amd64.tar.gz /tmp/cosmovisor.tar.gz +RUN tar -xvf /tmp/cosmovisor.tar.gz -C /usr/local/bin/ && \ + chmod +x /usr/local/bin/cosmovisor + +ENV ALLORAD_CURRENT_VERSION="v0.2.14" +#* ALLORAD_UPGRADE_VERSIONS - Could be many versions, space separated +ENV ALLORAD_UPGRADE_VERSIONS="untagged-e66cf245a46ad9a6cef6" + +RUN mkdir -p ${DAEMON_HOME}/genesis/bin && \ + curl -Lo ${DAEMON_HOME}/genesis/bin/allorad https://github.com/allora-network/allora-chain/releases/download/${ALLORAD_CURRENT_VERSION}/allorad_linux_amd64 && \ + chmod +x ${DAEMON_HOME}/genesis/bin/allorad + +# RUN for ver in "${ALLORAD_UPGRADE_VERSIONS}"; do \ +# mkdir -p ${DAEMON_HOME}/upgrades/${ver}/bin && \ +# curl -Lo ${DAEMON_HOME}/upgrades/${ver}/bin/allorad https://github.com/allora-network/allora-chain/releases/download/${ver}/allorad_linux_amd64 && \ +# chmod +x ${DAEMON_HOME}/upgrades/${ver}/bin/allorad ; \ +# done && \ +# chown -R ${USERNAME}:${USERNAME} ${DAEMON_HOME} +ENV ver="v0.3.0" +RUN mkdir -p ${DAEMON_HOME}/upgrades/${ver}/bin +COPY allorad ${DAEMON_HOME}/upgrades/${ver}/bin/allorad + +VOLUME ${APP_PATH} +WORKDIR ${APP_PATH} + +USER ${USERNAME} + +EXPOSE 26656/tcp 26657/tcp 26660/tcp 9090/tcp 1317/tcp + +ENTRYPOINT ["cosmovisor"] diff --git a/Dockerfile.development b/Dockerfile.development index b0f254da9..2a2b2e59c 100644 --- a/Dockerfile.development +++ b/Dockerfile.development @@ -17,14 +17,6 @@ RUN --mount=type=cache,target=/gocache \ --mount=type=cache,target=/root/.cache/go-build \ make install -RUN git apply test/integration/upgrade.patch - -RUN --mount=type=cache,target=/gocache \ - --mount=type=cache,target=/root/.cache/go-build \ - make build-local-edits - -RUN cp build/allorad /go/bin/allorad-integration - #============================================================== FROM debian:bookworm-slim as execution diff --git a/Dockerfile.upgrade b/Dockerfile.upgrade new file mode 100644 index 000000000..fb8546af1 --- /dev/null +++ b/Dockerfile.upgrade @@ -0,0 +1,80 @@ +FROM golang:1.22-bookworm AS builder + +ENV GO111MODULE=on +ENV GOMODCACHE=/gocache +ENV BASELINE_VERSION_TAG=v0.2.14 +ENV GIT_STASH_MESSAGE="Docker build" + +ADD . /src +WORKDIR /src + +# Save the uncommited changes +RUN git stash -u -m "$GIT_STASH_MESSAGE" +# Switch to the baseline version +RUN git checkout $BASELINE_VERSION_TAG + +# Build the baseline version +RUN mkdir -p $GOMODCACHE +RUN --mount=type=cache,target=/gocache \ + --mount=type=cache,target=/root/.cache/go-build \ + go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@latest +RUN --mount=type=cache,target=/gocache \ + --mount=type=cache,target=/root/.cache/go-build \ + make install + +# Restore the current version +RUN git switch - +RUN sh -c 'git stash list | grep "$GIT_STASH_MESSAGE" && git stash pop'; true + +# Build the current version +RUN --mount=type=cache,target=/gocache \ + --mount=type=cache,target=/root/.cache/go-build \ + make build-local-edits + +RUN cp build/allorad /go/bin/allorad-v0.3.0 + +#============================================================== + +FROM debian:bookworm-slim as execution + +ENV DEBIAN_FRONTEND=noninteractive \ + USERNAME=appuser \ + APP_PATH=/data + +#* curl jq - required for readyness probe and to download genesis +#* bc - required for generate_genesis.sh +RUN apt update && \ + apt -y dist-upgrade && \ + apt install -y --no-install-recommends \ + curl jq \ + tzdata \ + bc \ + ca-certificates && \ + echo "deb http://deb.debian.org/debian testing main" >> /etc/apt/sources.list && \ + apt update && \ + apt install -y --no-install-recommends -t testing \ + zlib1g \ + libgnutls30 \ + perl-base && \ + rm -rf /var/cache/apt/* + +#* Install dasel to work with json/yaml/toml configs +ENV DASEL_VERSION="v2.8.1" +ADD https://github.com/TomWright/dasel/releases/download/${DASEL_VERSION}/dasel_linux_amd64 /usr/local/bin/dasel +RUN chmod a+x /usr/local/bin/dasel + +COPY --from=builder /go/bin/* /usr/local/bin/ + +RUN groupadd -g 1001 ${USERNAME} \ + && useradd -m -d ${APP_PATH} -u 1001 -g 1001 ${USERNAME} + +EXPOSE 1317 26656 26657 +VOLUME ${APP_PATH} +WORKDIR ${APP_PATH} + +USER ${USERNAME} + +ENV DAEMON_NAME="allorad" +ENV DAEMON_HOME="/data" + +ENTRYPOINT ["cosmovisor" "run" "start"] diff --git a/README.md b/README.md index d8131336d..54845f00a 100644 --- a/README.md +++ b/README.md @@ -49,12 +49,16 @@ make init allorad start ``` -## Run a node +When you run a node you have 2 options: + - Run node and a Head, main advantage is - you can use the head for your workers and reputers + - Run only a node, in this case you will use Allora's heads. + +## Run a node with script `scripts/l1_node.sh`, you will see the log in the output of the script. *NOTE:* `scripts/l1_node.sh` will generate keys for the node. For production environments you need to use a proper keys storage, and follow secrets management best practices. -## Run a node with docker compose +## Run a node ### Run ``` @@ -69,6 +73,35 @@ run `docker compose up -d` to run detached. ### See logs `docker compose logs -f` +## Run a node with statesync enabled + +To speed up nodes syncing, you can enable statesync, so the node will download state snapshot and sync only the rest blocks (last \<1000 blocks). +Here is a [guide](https://blog.cosmos.network/cosmos-sdk-state-sync-guide-99e4cf43be2f) from Cosmos SDK. + +To use statesync, you need: + +1. Peers with state snapshots enabled. Allora [peers](https://github.com/allora-network/networks/blob/main/testnet-1/peers.txt) have enabled snapshots for every 1000 blocks. +2. 2 RPC endpoints, you can use any synced full nodes for this purpose. + +**NOTE:** To enable state snapshots, you just need to pass `--state-sync.snapshot-keep-recent=X` and `--state-sync.snapshot-interval=Y` to the `allorad start` command. + +### Enable statesync with docker compose + +Set in the docker compose file the following environment variables +``` + - STATE_SYNC_RPC1=synced_full_node_rpc_1 + - STATE_SYNC_RPC2=synced_full_node_rpc_2 +``` + +### Enable statesync with l1_node.sh script + +Just add to the script's environment the following variables: +``` +export STATE_SYNC_RPC1=synced_full_node_rpc_1 +export STATE_SYNC_RPC2=synced_full_node_rpc_2 +scripts/l1_node.sh +``` + ## Call the node After the node is running you can exec RPC calls to it. @@ -79,9 +112,9 @@ With `curl -so- http://localhost:26657/status | jq .result.sync_info.catching_up ## Run a validator -You can refer to the Allora documentation for detailled instructions on [running a full node](https://docs.allora.network/docs/running-a-full-node) and [staking a validator](https://docs.allora.network/docs/stake-a-validator). +You can refer to the Allora documentation for detailled instructions on [running a full node](https://docs.allora.network/devs/validators/run-full-node) and [staking a validator](https://docs.allora.network/devs/validators/stake-a-validator). -1. Run and sync a full Allora node following [the instructions](https://docs.allora.network/docs/running-a-full-node). +1. Run and sync a full Allora node following [the instructions](https://docs.allora.network/devs/validators/run-full-node). 2. Wait until the node is fully synced @@ -94,7 +127,7 @@ Wait until you see the output: "false" `l1_node.sh` script generates keys, you can find created account information in `data/*.account_info`. Get the address from the file and fund, on testnets you can use faucet `https://faucet.${NETWORK}.allora.network`. -4. Stake validator (detailled instructions [here](https://docs.allora.network/docs/stake-a-validator)) +4. Stake validator (detailled instructions [here](https://docs.allora.network/devs/validators/stake-a-validator)) Here's an example with Values which starts with a stake of 10000000uallo. @@ -193,6 +226,15 @@ bash test/local_testnet_l1.sh INTEGRATION=TRUE go test -timeout 10m ./test/integration/ -v ``` +## Run Upgrade Tests + +To run upgrade tests, execute the following commands: + +```bash +bash test/local_testnet_upgrade_l1.sh +UPGRADE=TRUE go test -timeout 10m ./test/integration/ -v +``` + ## Run Stress Tests To run stress tests, execute the following commands: diff --git a/app/api.go b/app/api.go deleted file mode 100644 index 6c5d781e2..000000000 --- a/app/api.go +++ /dev/null @@ -1,185 +0,0 @@ -package app - -import ( - "encoding/json" - "fmt" - "net/http" - "strconv" - - "os" - "strings" - - emissionstypes "github.com/allora-network/allora-chain/x/emissions/types" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -type BlocklessRequest struct { - FunctionID string `json:"function_id"` - Method string `json:"method"` - TopicID string `json:"topic,omitempty"` - Config Config `json:"config"` -} - -type Config struct { - Environment []EnvVar `json:"env_vars,omitempty"` - Stdin *string `json:"stdin,omitempty"` - NodeCount int `json:"number_of_nodes,omitempty"` - Timeout int `json:"timeout,omitempty"` - ConsensusAlgorithm string `json:"consensus_algorithm,omitempty"` -} - -type EnvVar struct { - Name string `json:"name,omitempty"` - Value string `json:"value,omitempty"` -} - -type LatestInferences struct { - Timestamp string `json:"timestamp"` - Inferences []InferenceItem `json:"inferences"` -} - -type InferenceItem struct { - Worker string `json:"worker"` - Inference string `json:"inference"` -} - -type LossesPayload struct { - Inferences []emissionstypes.ValueBundle `json:"inferences"` -} - -func generateLossesRequest( - ctx sdk.Context, - inferences *emissionstypes.ValueBundle, - functionId string, - functionMethod string, - topicId uint64, - topicAllowsNegative bool, - blockHeight emissionstypes.Nonce, - blockHeightEval emissionstypes.Nonce, - blocktime uint64) { - - inferencesPayloadJSON, err := json.Marshal(inferences) - if err != nil { - Logger(ctx).Warn(fmt.Sprintf("Error marshalling JSON: %s", err.Error())) - return - } - - stdin := string(inferencesPayloadJSON) - topicIdStr := strconv.FormatUint(topicId, 10) + "/reputer" - calcWeightsReq := BlocklessRequest{ - FunctionID: functionId, - Method: functionMethod, - TopicID: topicIdStr, - Config: Config{ - Stdin: &stdin, - Environment: []EnvVar{ - { - Name: "BLS_REQUEST_PATH", - Value: "/api", - }, - { - Name: "ALLORA_ARG_PARAMS", - Value: strconv.FormatUint(blocktime, 10), - }, - { - Name: "ALLORA_BLOCK_HEIGHT_CURRENT", - Value: strconv.FormatInt(blockHeight.BlockHeight, 10), - }, - { - Name: "ALLORA_BLOCK_HEIGHT_EVAL", - Value: strconv.FormatInt(blockHeightEval.BlockHeight, 10), - }, - { - Name: "LOSS_FUNCTION_ALLOWS_NEGATIVE", - Value: strconv.FormatBool(topicAllowsNegative), - }, - }, - NodeCount: -1, // use all nodes that reported, no minimum / max - Timeout: 2, // seconds to time out before rollcall complete - ConsensusAlgorithm: "pbft", // forces worker leader write to chain through pbft - }, - } - - payload, err := json.Marshal(calcWeightsReq) - if err != nil { - Logger(ctx).Warn(fmt.Sprintf("Error marshalling outer JSON: %s", err.Error())) - return - } - payloadStr := string(payload) - Logger(ctx).Debug(fmt.Sprintf("Making API call - losses, with payload: %s", payloadStr)) - err = makeApiCall(payloadStr) - if err != nil { - Logger(ctx).Warn("Error making API call - losses: " + err.Error()) - } -} - -func generateInferencesRequest( - ctx sdk.Context, - functionId string, - functionMethod string, - param string, - topicId uint64, - topicAllowsNegative bool, - nonce emissionstypes.Nonce) { - - payloadJson := BlocklessRequest{ - FunctionID: functionId, - Method: functionMethod, - TopicID: strconv.FormatUint(topicId, 10), - Config: Config{ - Environment: []EnvVar{ - { - Name: "BLS_REQUEST_PATH", - Value: "/api", - }, - { - Name: "ALLORA_ARG_PARAMS", - Value: param, - }, - { - Name: "ALLORA_BLOCK_HEIGHT_CURRENT", - Value: strconv.FormatInt(nonce.BlockHeight, 10), - }, - { - Name: "LOSS_FUNCTION_ALLOWS_NEGATIVE", - Value: strconv.FormatBool(topicAllowsNegative), - }, - }, - NodeCount: -1, // use all nodes that reported, no minimum / max - Timeout: 2, // seconds to time out before rollcall complete - ConsensusAlgorithm: "pbft", // forces worker leader write to chain through pbft - }, - } - payload, err := json.Marshal(payloadJson) - if err != nil { - Logger(ctx).Warn(fmt.Sprintf("Error marshalling outer JSON: %s", err.Error())) - } - payloadStr := string(payload) - - Logger(ctx).Debug(fmt.Sprintf("Making API call - inferences, with payload: %s", payloadStr)) - err = makeApiCall(payloadStr) - if err != nil { - Logger(ctx).Warn(fmt.Sprintf("Error making API call: %s", err.Error())) - } -} - -func makeApiCall(payload string) error { - url := os.Getenv("BLOCKLESS_API_URL") - method := "POST" - - client := &http.Client{} - req, err := http.NewRequest(method, url, strings.NewReader(payload)) - if err != nil { - return err - } - req.Header.Add("Accept", "application/json, text/plain, */*") - req.Header.Add("Content-Type", "application/json;charset=UTF-8") - - res, err := client.Do(req) - if err != nil { - return err - } - defer res.Body.Close() - - return nil -} diff --git a/app/ibc.go b/app/ibc.go index 63689dd47..540838e6c 100644 --- a/app/ibc.go +++ b/app/ibc.go @@ -27,6 +27,8 @@ import ( ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper" ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" ibc "github.com/cosmos/ibc-go/v8/modules/core" + + //lint:ignore SA1019 deprecated code breaking unit tests ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" ibcconnectiontypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types" porttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types" diff --git a/app/topics_handler.go b/app/topics_handler.go index 9c3a032ca..e6ef869ca 100644 --- a/app/topics_handler.go +++ b/app/topics_handler.go @@ -1,21 +1,14 @@ package app import ( - "fmt" - "sync" - "cosmossdk.io/log" - emissionstypes "github.com/allora-network/allora-chain/x/emissions/types" emissionskeeper "github.com/allora-network/allora-chain/x/emissions/keeper" - synth "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis" abci "github.com/cometbft/cometbft/abci/types" sdk "github.com/cosmos/cosmos-sdk/types" ) -const secondsInAMonth uint64 = 2592000 - type TopicsHandler struct { emissionsKeeper emissionskeeper.Keeper } @@ -28,158 +21,9 @@ func NewTopicsHandler(emissionsKeeper emissionskeeper.Keeper) *TopicsHandler { } } -// Calculate approximate time for the previous block as epoch timestamp -func (th *TopicsHandler) calculatePreviousBlockApproxTime(ctx sdk.Context, inferenceBlockHeight, groundTruthLag int64) (uint64, error) { - emissionsParams, err := th.emissionsKeeper.GetParams(ctx) - if err != nil { - return 0, err - } - approximateTimePerBlockSeconds := secondsInAMonth / emissionsParams.BlocksPerMonth - timeDifferenceInBlocks := ctx.BlockHeight() - inferenceBlockHeight - // Ensure no time in the future is calculated because of ground truth lag - if groundTruthLag > timeDifferenceInBlocks { - timeDifferenceInBlocks = 0 - } else { - timeDifferenceInBlocks -= groundTruthLag - } - - timeDifferenceInSeconds := uint64(timeDifferenceInBlocks) * approximateTimePerBlockSeconds - previousBlockApproxTime := uint64(ctx.BlockTime().Unix()) - timeDifferenceInSeconds - return previousBlockApproxTime, nil -} - -func (th *TopicsHandler) requestTopicWorkers(ctx sdk.Context, topic emissionstypes.Topic) { - Logger(ctx).Debug(fmt.Sprintf("Triggering inference generation for topic: %v metadata: %s default arg: %s. \n", - topic.Id, topic.Metadata, topic.DefaultArg)) - - workerNonces, err := th.emissionsKeeper.GetUnfulfilledWorkerNonces(ctx, topic.Id) - if err != nil { - Logger(ctx).Error("Error getting worker nonces: " + err.Error()) - return - } - // Filter workerNonces to only include those that are within the epoch length - // This is to avoid requesting inferences for epochs that have already ended - workerNonces = synth.FilterNoncesWithinEpochLength(workerNonces, ctx.BlockHeight(), topic.EpochLength) - - maxRetriesToFulfilNoncesWorker := emissionstypes.DefaultParams().MaxRetriesToFulfilNoncesWorker - emissionsParams, err := th.emissionsKeeper.GetParams(ctx) - if err != nil { - Logger(ctx).Warn(fmt.Sprintf("Error getting max retries to fulfil nonces for worker requests (using default), err: %s", err.Error())) - } else { - maxRetriesToFulfilNoncesWorker = emissionsParams.MaxRetriesToFulfilNoncesWorker - } - sortedWorkerNonces := synth.SelectTopNWorkerNonces(workerNonces, int(maxRetriesToFulfilNoncesWorker)) - Logger(ctx).Debug(fmt.Sprintf("Iterating Top N Worker Nonces: %d", len(sortedWorkerNonces))) - // iterate over all the worker nonces to find if this is unfulfilled - for _, nonce := range sortedWorkerNonces { - nonceCopy := nonce - Logger(ctx).Debug(fmt.Sprintf("Current Worker block height has been found unfulfilled, requesting inferences %v", nonceCopy)) - go generateInferencesRequest(ctx, topic.InferenceLogic, topic.InferenceMethod, topic.DefaultArg, topic.Id, topic.AllowNegative, *nonceCopy) - } -} - -func (th *TopicsHandler) requestTopicReputers(ctx sdk.Context, topic emissionstypes.Topic) { - currentBlockHeight := ctx.BlockHeight() - Logger(ctx).Debug(fmt.Sprintf("Triggering Losses cadence met for topic: %v metadata: %s default arg: %s \n", - topic.Id, topic.Metadata, topic.DefaultArg)) - reputerNonces, err := th.emissionsKeeper.GetUnfulfilledReputerNonces(ctx, topic.Id) - if err != nil { - Logger(ctx).Error("Error getting reputer nonces: " + err.Error()) - return - } - if len(reputerNonces.Nonces) == 0 { - Logger(ctx).Debug("No reputer nonces found: ", topic.Id) - return - } - // No filtering - reputation of previous rounds can still be retried if work has been done. - maxRetriesToFulfilNoncesReputer := emissionstypes.DefaultParams().MaxRetriesToFulfilNoncesReputer - emissionsParams, err := th.emissionsKeeper.GetParams(ctx) - if err != nil { - Logger(ctx).Warn(fmt.Sprintf("Error getting max num of retries to fulfil nonces for worker requests (using default), err: %s", err.Error())) - } else { - maxRetriesToFulfilNoncesReputer = emissionsParams.MaxRetriesToFulfilNoncesReputer - } - topNReputerNonces := synth.SelectTopNReputerNonces(&reputerNonces, int(maxRetriesToFulfilNoncesReputer), currentBlockHeight, topic.GroundTruthLag) - if len(topNReputerNonces) == 0 { - Logger(ctx).Debug("No eligible reputer nonces found: ", topic.Id) - return - } else { - Logger(ctx).Debug(fmt.Sprintf("Iterating Top N Reputer Nonces: %v", len(topNReputerNonces))) - } - - lastCommit, err := th.emissionsKeeper.GetTopicLastCommit(ctx, topic.Id, emissionstypes.ActorType_REPUTER) - if err != nil { - Logger(ctx).Warn("Error getting reputer last commit: "+err.Error(), ", first reputer commit?") - } - // iterate over all the reputer nonces to find if this is unfulfilled - for _, nonce := range topNReputerNonces { - nonceCopy := nonce - // Get previous losses from keeper, default: reputationTime (reputerBlock + GTLag) - epochLength - lastReputerCommitBlockHeight := nonceCopy.ReputerNonce.BlockHeight + topic.GroundTruthLag - topic.EpochLength - if lastCommit.Nonce != nil { - Logger(ctx).Debug(fmt.Sprintf("Reputer last commit found, setting: %v", lastCommit)) - lastReputerCommitBlockHeight = lastCommit.Nonce.BlockHeight - } - - Logger(ctx).Debug(fmt.Sprintf("Reputer block height found unfulfilled for block: %v", nonceCopy.ReputerNonce.BlockHeight)) - reputerValueBundle, _, _, _, err := synth.GetNetworkInferencesAtBlock( - ctx, - th.emissionsKeeper, - topic.Id, - nonceCopy.ReputerNonce.BlockHeight, - lastReputerCommitBlockHeight, - ) - if err != nil { - Logger(ctx).Error(fmt.Sprintf("Error getting latest inferences at block: %d error: %s", nonceCopy.ReputerNonce.BlockHeight, err.Error())) - continue - } - if reputerValueBundle == nil || len(reputerValueBundle.InfererValues) == 0 { - Logger(ctx).Error("ReputerValueBundle cannot be nil") - continue - } - - previousBlockApproxTime, err := th.calculatePreviousBlockApproxTime(ctx, nonceCopy.ReputerNonce.BlockHeight, topic.GroundTruthLag) - if err != nil { - Logger(ctx).Error("Error calculating previous block approx time: " + err.Error()) - continue - } - // Create "previous losses" nonce - previousLossNonce := &emissionstypes.Nonce{ - BlockHeight: lastReputerCommitBlockHeight, - } - Logger(ctx).Info(fmt.Sprintf("Requesting losses for topic: %d reputer nonce: %d worker nonce: %d previous block approx time: %d", - topic.Id, nonceCopy.ReputerNonce, previousLossNonce, previousBlockApproxTime)) - go generateLossesRequest(ctx, reputerValueBundle, topic.LossLogic, topic.LossMethod, topic.Id, topic.AllowNegative, *nonceCopy.ReputerNonce, *previousLossNonce, previousBlockApproxTime) - } -} - func (th *TopicsHandler) PrepareProposalHandler() sdk.PrepareProposalHandler { return func(ctx sdk.Context, req *abci.RequestPrepareProposal) (*abci.ResponsePrepareProposal, error) { Logger(ctx).Debug("\n ---------------- TopicsHandler ------------------- \n") - churnableTopics, err := th.emissionsKeeper.GetChurnableTopics(ctx) - if err != nil { - Logger(ctx).Error("Error getting max number of topics per block: " + err.Error()) - return nil, err - } - - var wg sync.WaitGroup - // Loop over and run epochs on topics whose inferences are demanded enough to be served - // Within each loop, execute the inference and weight cadence checks and trigger the inference and weight generation - for _, churnableTopicId := range churnableTopics { - wg.Add(1) - go func(topicId TopicId) { - defer wg.Done() - topic, err := th.emissionsKeeper.GetTopic(ctx, topicId) - if err != nil { - Logger(ctx).Error("Error getting topic: " + err.Error()) - return - } - th.requestTopicWorkers(ctx, topic) - th.requestTopicReputers(ctx, topic) - }(churnableTopicId) - } - wg.Wait() - // Return the transactions as they came return &abci.ResponsePrepareProposal{Txs: req.Txs}, nil } } diff --git a/app/upgrades.go b/app/upgrades.go index 5a21cedb4..d9f6612c3 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -1,4 +1,18 @@ package app +import ( + "github.com/allora-network/allora-chain/app/upgrades" + "github.com/allora-network/allora-chain/app/upgrades/v0_3_0" +) + +var upgradeHandlers = []upgrades.Upgrade{ + v0_3_0.Upgrade, + // Add more upgrade handlers here + // ... +} + func (app *AlloraApp) setupUpgradeHandlers() { + for _, handler := range upgradeHandlers { + app.UpgradeKeeper.SetUpgradeHandler(handler.UpgradeName, handler.CreateUpgradeHandler(app.ModuleManager, app.Configurator())) + } } diff --git a/app/upgrades/types.go b/app/upgrades/types.go new file mode 100644 index 000000000..b58300f34 --- /dev/null +++ b/app/upgrades/types.go @@ -0,0 +1,14 @@ +package upgrades + +import ( + upgradetypes "cosmossdk.io/x/upgrade/types" + + "github.com/cosmos/cosmos-sdk/types/module" +) + +type Upgrade struct { + // Upgrade version name, for the upgrade handler, e.g. `v7` + UpgradeName string + // Function that creates an upgrade handler + CreateUpgradeHandler func(mm *module.Manager, configurator module.Configurator) upgradetypes.UpgradeHandler +} diff --git a/app/upgrades/vintegration/upgrades.go b/app/upgrades/v0_3_0/upgrades.go similarity index 61% rename from app/upgrades/vintegration/upgrades.go rename to app/upgrades/v0_3_0/upgrades.go index 4444fd988..780333f7c 100644 --- a/app/upgrades/vintegration/upgrades.go +++ b/app/upgrades/v0_3_0/upgrades.go @@ -1,23 +1,29 @@ -package vintegration +package v0_3_0 import ( "context" "fmt" upgradetypes "cosmossdk.io/x/upgrade/types" + "github.com/allora-network/allora-chain/app/upgrades" "github.com/cosmos/cosmos-sdk/types/module" ) const ( - UpgradeName = "vintegration" + UpgradeName = "v0.3.0" ) +var Upgrade = upgrades.Upgrade{ + UpgradeName: UpgradeName, + CreateUpgradeHandler: CreateUpgradeHandler, +} + func CreateUpgradeHandler( moduleManager *module.Manager, configurator module.Configurator, ) upgradetypes.UpgradeHandler { return func(ctx context.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - fmt.Println(">>>>>>>>>>>>>>>>>>> vintegration upgrade handler") + fmt.Printf("Running upgrade handler for %s\n", UpgradeName) return moduleManager.RunMigrations(ctx, configurator, vm) } } diff --git a/docker-compose.yaml b/docker-compose.yaml index f07df8942..24497da87 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,15 +1,17 @@ # Change all occurrences of "sample_validator" to your prerferred name services: - sample_validator: + node: container_name: sample_validator - # build: . image: "alloranetwork/allora-chain:v0.2.14" environment: - NETWORK=allora-testnet-1 - MONIKER=sample_validator - - APP_HOME=./data + - APP_HOME=/data + - HOME=/data + - STATE_SYNC_RPC1=https://allora-rpc.testnet-1.testnet.allora.network:443 + - STATE_SYNC_RPC2=https://allora-rpc.testnet-1.testnet.allora.network:443 volumes: - - ./data:/data + - ./data_validator:/data - ./scripts/:/scripts ports: - "26656-26657:26656-26657" diff --git a/go.mod b/go.mod index a30de8a08..72d38af89 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ replace ( ) require ( - cosmossdk.io/api v0.7.3 + cosmossdk.io/api v0.7.5 cosmossdk.io/client/v2 v2.0.0-beta.1 cosmossdk.io/collections v0.4.0 cosmossdk.io/core v0.11.0 @@ -20,16 +20,16 @@ require ( cosmossdk.io/errors v1.0.1 cosmossdk.io/log v1.3.1 cosmossdk.io/math v1.3.0 - cosmossdk.io/store v1.0.2 + cosmossdk.io/store v1.1.0 cosmossdk.io/tools/confix v0.1.1 cosmossdk.io/x/circuit v0.1.0 cosmossdk.io/x/upgrade v0.1.1 github.com/cockroachdb/apd/v3 v3.2.1 - github.com/cometbft/cometbft v0.38.6 + github.com/cometbft/cometbft v0.38.10 github.com/cosmos/cosmos-db v1.0.2 - github.com/cosmos/cosmos-proto v1.0.0-beta.4 - github.com/cosmos/cosmos-sdk v0.50.5 - github.com/cosmos/gogoproto v1.4.11 + github.com/cosmos/cosmos-proto v1.0.0-beta.5 + github.com/cosmos/cosmos-sdk v0.50.7 + github.com/cosmos/gogoproto v1.4.12 github.com/cosmos/ibc-go/modules/capability v1.0.0 github.com/cosmos/ibc-go/v8 v8.2.0 github.com/gogo/protobuf v1.3.2 @@ -56,7 +56,7 @@ require ( cloud.google.com/go/storage v1.36.0 // indirect cosmossdk.io/x/evidence v0.1.0 // indirect cosmossdk.io/x/feegrant v0.1.0 // indirect - cosmossdk.io/x/tx v0.13.1 // indirect + cosmossdk.io/x/tx v0.13.3 // indirect filippo.io/edwards25519 v1.0.0 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.2 // indirect @@ -72,7 +72,7 @@ require ( github.com/cenkalti/backoff v2.2.1+incompatible // indirect github.com/cenkalti/backoff/v4 v4.2.1 // indirect github.com/cespare/xxhash v1.1.0 // indirect - github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/chzyer/readline v1.5.1 // indirect github.com/cockroachdb/apd/v2 v2.0.2 // indirect github.com/cockroachdb/errors v1.11.1 // indirect @@ -84,7 +84,7 @@ require ( github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect - github.com/cosmos/iavl v1.0.1 // indirect + github.com/cosmos/iavl v1.1.2 // indirect github.com/cosmos/ics23/go v0.10.0 // indirect github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect github.com/creachadair/atomicfile v0.3.1 // indirect @@ -129,11 +129,12 @@ require ( github.com/hashicorp/go-getter v1.7.3 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect - github.com/hashicorp/go-metrics v0.5.2 // indirect + github.com/hashicorp/go-metrics v0.5.3 // indirect github.com/hashicorp/go-plugin v1.6.0 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/golang-lru v1.0.2 // indirect + github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/hashicorp/yamux v0.1.1 // indirect github.com/hdevalence/ed25519consensus v0.1.0 // indirect @@ -147,8 +148,7 @@ require ( github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.9 // indirect - github.com/libp2p/go-buffer-pool v0.1.0 // indirect - github.com/linxGnu/grocksdb v1.8.12 // indirect + github.com/linxGnu/grocksdb v1.8.14 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/manifoldco/promptui v0.9.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect @@ -161,13 +161,13 @@ require ( github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/oklog/run v1.1.0 // indirect github.com/pelletier/go-toml/v2 v2.1.0 // indirect - github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc // indirect + github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/prometheus/client_golang v1.18.0 // indirect - github.com/prometheus/client_model v0.6.0 // indirect - github.com/prometheus/common v0.47.0 // indirect - github.com/prometheus/procfs v0.12.0 // indirect + github.com/prometheus/client_golang v1.19.0 // indirect + github.com/prometheus/client_model v0.6.1 // indirect + github.com/prometheus/common v0.52.2 // indirect + github.com/prometheus/procfs v0.13.0 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/rs/cors v1.10.1 // indirect @@ -194,21 +194,21 @@ require ( go.opentelemetry.io/otel/metric v1.22.0 // indirect go.opentelemetry.io/otel/trace v1.22.0 // indirect go.uber.org/multierr v1.10.0 // indirect - golang.org/x/crypto v0.19.0 // indirect - golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 // indirect - golang.org/x/mod v0.15.0 // indirect - golang.org/x/net v0.21.0 // indirect - golang.org/x/oauth2 v0.17.0 // indirect - golang.org/x/sync v0.6.0 // indirect - golang.org/x/sys v0.17.0 // indirect - golang.org/x/term v0.17.0 // indirect + golang.org/x/crypto v0.22.0 // indirect + golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 // indirect + golang.org/x/mod v0.17.0 // indirect + golang.org/x/net v0.24.0 // indirect + golang.org/x/oauth2 v0.18.0 // indirect + golang.org/x/sync v0.7.0 // indirect + golang.org/x/sys v0.19.0 // indirect + golang.org/x/term v0.19.0 // indirect golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.5.0 // indirect - golang.org/x/tools v0.18.0 // indirect + golang.org/x/tools v0.20.0 // indirect google.golang.org/api v0.162.0 // indirect google.golang.org/appengine v1.6.8 // indirect google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index c1a22db46..0435e23ec 100644 --- a/go.sum +++ b/go.sum @@ -184,8 +184,8 @@ cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xX cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= -cosmossdk.io/api v0.7.3 h1:V815i8YOwOAQa1rLCsSMjVG5Gnzs02JLq+l7ks8s1jk= -cosmossdk.io/api v0.7.3/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +cosmossdk.io/api v0.7.5 h1:eMPTReoNmGUm8DeiQL9DyM8sYDjEhWzL1+nLbI9DqtQ= +cosmossdk.io/api v0.7.5/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= cosmossdk.io/client/v2 v2.0.0-beta.1 h1:XkHh1lhrLYIT9zKl7cIOXUXg2hdhtjTPBUfqERNA1/Q= cosmossdk.io/client/v2 v2.0.0-beta.1/go.mod h1:JEUSu9moNZQ4kU3ir1DKD5eU4bllmAexrGWjmb9k8qU= cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s= @@ -200,8 +200,8 @@ cosmossdk.io/log v1.3.1 h1:UZx8nWIkfbbNEWusZqzAx3ZGvu54TZacWib3EzUYmGI= cosmossdk.io/log v1.3.1/go.mod h1:2/dIomt8mKdk6vl3OWJcPk2be3pGOS8OQaLUM/3/tCM= cosmossdk.io/math v1.3.0 h1:RC+jryuKeytIiictDslBP9i1fhkVm6ZDmZEoNP316zE= cosmossdk.io/math v1.3.0/go.mod h1:vnRTxewy+M7BtXBNFybkuhSH4WfedVAAnERHgVFhp3k= -cosmossdk.io/store v1.0.2 h1:lSg5BTvJBHUDwswNNyeh4K/CbqiHER73VU4nDNb8uk0= -cosmossdk.io/store v1.0.2/go.mod h1:EFtENTqVTuWwitGW1VwaBct+yDagk7oG/axBMPH+FXs= +cosmossdk.io/store v1.1.0 h1:LnKwgYMc9BInn9PhpTFEQVbL9UK475G2H911CGGnWHk= +cosmossdk.io/store v1.1.0/go.mod h1:oZfW/4Fc/zYqu3JmQcQdUJ3fqu5vnYTn3LZFFy8P8ng= cosmossdk.io/tools/confix v0.1.1 h1:aexyRv9+y15veH3Qw16lxQwo+ki7r2I+g0yNTEFEQM8= cosmossdk.io/tools/confix v0.1.1/go.mod h1:nQVvP1tHsGXS83PonPVWJtSbddIqyjEw99L4M3rPJyQ= cosmossdk.io/x/circuit v0.1.0 h1:IAej8aRYeuOMritczqTlljbUVHq1E85CpBqaCTwYgXs= @@ -210,8 +210,8 @@ cosmossdk.io/x/evidence v0.1.0 h1:J6OEyDl1rbykksdGynzPKG5R/zm6TacwW2fbLTW4nCk= cosmossdk.io/x/evidence v0.1.0/go.mod h1:hTaiiXsoiJ3InMz1uptgF0BnGqROllAN8mwisOMMsfw= cosmossdk.io/x/feegrant v0.1.0 h1:c7s3oAq/8/UO0EiN1H5BIjwVntujVTkYs35YPvvrdQk= cosmossdk.io/x/feegrant v0.1.0/go.mod h1:4r+FsViJRpcZif/yhTn+E0E6OFfg4n0Lx+6cCtnZElU= -cosmossdk.io/x/tx v0.13.1 h1:Mg+EMp67Pz+NukbJqYxuo8uRp7N/a9uR+oVS9pONtj8= -cosmossdk.io/x/tx v0.13.1/go.mod h1:CBCU6fsRVz23QGFIQBb1DNX2DztJCf3jWyEkHY2nJQ0= +cosmossdk.io/x/tx v0.13.3 h1:Ha4mNaHmxBc6RMun9aKuqul8yHiL78EKJQ8g23Zf73g= +cosmossdk.io/x/tx v0.13.3/go.mod h1:I8xaHv0rhUdIvIdptKIqzYy27+n2+zBVaxO6fscFhys= cosmossdk.io/x/upgrade v0.1.1 h1:aoPe2gNvH+Gwt/Pgq3dOxxQVU3j5P6Xf+DaUJTDZATc= cosmossdk.io/x/upgrade v0.1.1/go.mod h1:MNLptLPcIFK9CWt7Ra//8WUZAxweyRDNcbs5nkOcQy0= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= @@ -299,8 +299,8 @@ github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= -github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= github.com/chenzhuoyu/base64x v0.0.0-20211019084208-fb5309c8db06/go.mod h1:DH46F32mSOjUmXrMHnKwZdA8wcEefY7UVqBKYGjpdQY= github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 h1:qSGYFH7+jGhDF8vLC+iwCD4WpbV1EBDSzWkJODFLams= @@ -347,8 +347,8 @@ github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/cometbft/cometbft v0.38.6 h1:QSgpCzrGWJ2KUq1qpw+FCfASRpE27T6LQbfEHscdyOk= -github.com/cometbft/cometbft v0.38.6/go.mod h1:8rSPxzUJYquCN8uuBgbUHOMg2KAwvr7CyUw+6ukO4nw= +github.com/cometbft/cometbft v0.38.10 h1:2ePuglchT+j0Iao+cfmt/nw5U7K2lnGDzXSUPGVdXaU= +github.com/cometbft/cometbft v0.38.10/go.mod h1:jHPx9vQpWzPHEAiYI/7EDKaB1NXhK6o3SArrrY8ExKc= github.com/cometbft/cometbft-db v0.9.1 h1:MIhVX5ja5bXNHF8EYrThkG9F7r9kSfv8BX4LWaxWJ4M= github.com/cometbft/cometbft-db v0.9.1/go.mod h1:iliyWaoV0mRwBJoizElCwwRA9Tf7jZJOURcRZF9m60U= github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= @@ -363,19 +363,19 @@ github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= github.com/cosmos/cosmos-db v1.0.2 h1:hwMjozuY1OlJs/uh6vddqnk9j7VamLv+0DBlbEXbAKs= github.com/cosmos/cosmos-db v1.0.2/go.mod h1:Z8IXcFJ9PqKK6BIsVOB3QXtkKoqUOp1vRvPT39kOXEA= -github.com/cosmos/cosmos-proto v1.0.0-beta.4 h1:aEL7tU/rLOmxZQ9z4i7mzxcLbSCY48OdY7lIWTLG7oU= -github.com/cosmos/cosmos-proto v1.0.0-beta.4/go.mod h1:oeB+FyVzG3XrQJbJng0EnV8Vljfk9XvTIpGILNU/9Co= -github.com/cosmos/cosmos-sdk v0.50.5 h1:MOEi+DKYgW67YaPgB+Pf+nHbD3V9S/ayitRKJYLfGIA= -github.com/cosmos/cosmos-sdk v0.50.5/go.mod h1:oV/k6GJgXV9QPoM2fsYDPPsyPBgQbdotv532O6Mz1OQ= +github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= +github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= +github.com/cosmos/cosmos-sdk v0.50.7 h1:LsBGKxifENR/DN4E1RZaitsyL93HU44x0p8EnMHp4V4= +github.com/cosmos/cosmos-sdk v0.50.7/go.mod h1:84xDDJEHttRT7NDGwBaUOLVOMN0JNE9x7NbsYIxXs1s= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ4GUkT+tbFI= github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= -github.com/cosmos/gogoproto v1.4.11 h1:LZcMHrx4FjUgrqQSWeaGC1v/TeuVFqSLa43CC6aWR2g= -github.com/cosmos/gogoproto v1.4.11/go.mod h1:/g39Mh8m17X8Q/GDEs5zYTSNaNnInBSohtaxzQnYq1Y= -github.com/cosmos/iavl v1.0.1 h1:D+mYbcRO2wptYzOM1Hxl9cpmmHU1ZEt9T2Wv5nZTeUw= -github.com/cosmos/iavl v1.0.1/go.mod h1:8xIUkgVvwvVrBu81scdPty+/Dx9GqwHnAvXz4cwF7RY= +github.com/cosmos/gogoproto v1.4.12 h1:vB6Lbe/rtnYGjQuFxkPiPYiCybqFT8QvLipDZP8JpFE= +github.com/cosmos/gogoproto v1.4.12/go.mod h1:LnZob1bXRdUoqMMtwYlcR3wjiElmlC+FkjaZRv1/eLY= +github.com/cosmos/iavl v1.1.2 h1:zL9FK7C4L/P4IF1Dm5fIwz0WXCnn7Bp1M2FxH0ayM7Y= +github.com/cosmos/iavl v1.1.2/go.mod h1:jLeUvm6bGT1YutCaL2fIar/8vGUE8cPZvh/gXEWDaDM= github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo8ci1mVZNO9+V0xsLE= github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco= github.com/cosmos/ibc-go/v8 v8.2.0 h1:7oCzyy1sZCcgpeQLnHxC56brsSz3KWwQGKXalXwXFzE= @@ -673,8 +673,8 @@ github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVH github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-metrics v0.5.2 h1:ErEYO2f//CjKsUDw4SmLzelsK6L3ZmOAR/4P9iS7ruY= -github.com/hashicorp/go-metrics v0.5.2/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= +github.com/hashicorp/go-metrics v0.5.3 h1:M5uADWMOGCTUNU1YuC4hfknOeHNaX54LDm4oYSucoNE= +github.com/hashicorp/go-metrics v0.5.3/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-plugin v1.6.0 h1:wgd4KxHJTVGGqWBq4QPB1i5BZNEx9BR8+OFmHDmTk8A= @@ -697,6 +697,8 @@ github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= +github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= @@ -775,12 +777,10 @@ github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q= github.com/leodido/go-urn v1.2.4/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4= github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= -github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/linxGnu/grocksdb v1.8.12 h1:1/pCztQUOa3BX/1gR3jSZDoaKFpeHFvQ1XrqZpSvZVo= -github.com/linxGnu/grocksdb v1.8.12/go.mod h1:xZCIb5Muw+nhbDK4Y5UJuOrin5MceOuiXkVUR7vp4WY= +github.com/linxGnu/grocksdb v1.8.14 h1:HTgyYalNwBSG/1qCQUIott44wU5b2Y9Kr3z7SK5OfGQ= +github.com/linxGnu/grocksdb v1.8.14/go.mod h1:QYiYypR2d4v63Wj1adOOfzglnoII0gLj3PNh4fZkcFA= github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= @@ -889,8 +889,8 @@ github.com/pelletier/go-toml/v2 v2.1.0 h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6 github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= -github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc h1:8bQZVK1X6BJR/6nYUPxQEP+ReTsceJTKizeuwjWOPUA= -github.com/petermattis/goid v0.0.0-20230904192822-1876fd5063bc/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= +github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 h1:jik8PHtAIsPlCRJjJzl4udgEf7hawInF9texMeO2jrU= +github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= @@ -911,32 +911,32 @@ github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5Fsn github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= -github.com/prometheus/client_golang v1.18.0 h1:HzFfmkOzH5Q8L8G+kSJKUx5dtG87sewO+FoDDqP5Tbk= -github.com/prometheus/client_golang v1.18.0/go.mod h1:T+GXkCk5wSJyOqMIzVgvvjFDlkOQntgjkJWKrN5txjA= +github.com/prometheus/client_golang v1.19.0 h1:ygXvpU1AoN1MhdzckN+PyD9QJOSD4x7kmXYlnfbA6JU= +github.com/prometheus/client_golang v1.19.0/go.mod h1:ZRM9uEAypZakd+q/x7+gmsvXdURP+DABIEIjnmDdp+k= github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.6.0 h1:k1v3CzpSRUTrKMppY35TLwPvxHqBu0bYgxZzqGIgaos= -github.com/prometheus/client_model v0.6.0/go.mod h1:NTQHnmxFpouOD0DpvP4XujX3CdOAGQPoaGhyTchlyt8= +github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= +github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= -github.com/prometheus/common v0.47.0 h1:p5Cz0FNHo7SnWOmWmoRozVcjEp0bIVU8cV7OShpjL1k= -github.com/prometheus/common v0.47.0/go.mod h1:0/KsvlIEfPQCQ5I2iNSAWKPZziNCvRs5EC6ILDTlAPc= +github.com/prometheus/common v0.52.2 h1:LW8Vk7BccEdONfrJBDffQGRtpSzi5CQaRZGtboOO2ck= +github.com/prometheus/common v0.52.2/go.mod h1:lrWtQx+iDfn2mbH5GUzlH9TSHyfZpHkSiG1W7y3sF2Q= github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo= -github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo= +github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGKX7o= +github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= @@ -1112,8 +1112,8 @@ golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= -golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo= -golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= +golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= +golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -1125,8 +1125,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= -golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 h1:LfspQV/FYTatPTr/3HzIcmiUFH7PGP+OQ6mgDYo3yuQ= -golang.org/x/exp v0.0.0-20240222234643-814bf88cf225/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc= +golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 h1:985EYyeCOxTpcgOTJpflJUwOeEz0CQOdPt73OzpE9F8= +golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0/go.mod h1:/lliqkxwWAhPjf5oSOIJup2XcqJaw8RGS6k3TGEc7GI= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= @@ -1154,8 +1154,8 @@ golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8= -golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1218,8 +1218,8 @@ golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= -golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= +golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= +golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -1245,8 +1245,8 @@ golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= -golang.org/x/oauth2 v0.17.0 h1:6m3ZPmLEFdVxKKWnKq4VqZ60gutO35zm+zrAHVmHyDQ= -golang.org/x/oauth2 v0.17.0/go.mod h1:OzPDGQiuQMguemayvdylqddI7qcD9lnSDb+1FiwQ5HA= +golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI= +golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -1262,8 +1262,8 @@ golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= -golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1364,16 +1364,16 @@ golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y= -golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= +golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= -golang.org/x/term v0.17.0 h1:mkTF7LCd6WGJNL3K1Ad7kwxNfYAW6a8a8QqtMblp/4U= -golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= +golang.org/x/term v0.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q= +golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1459,8 +1459,8 @@ golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.18.0 h1:k8NLag8AGHnn+PHbl7g43CtqZAwG60vZkLqgyZgIHgQ= -golang.org/x/tools v0.18.0/go.mod h1:GL7B4CwcLLeo59yx/9UWWuNOW1n3VZ4f5axWfML7Lcg= +golang.org/x/tools v0.20.0 h1:hz/CVckiOxybQvFw6h7b/q80NTr9IUQb4s1IIzW7KNY= +golang.org/x/tools v0.20.0/go.mod h1:WvitBU7JJf6A4jOdg4S1tviW9bhUxkgeCui/0JHctQg= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1641,8 +1641,8 @@ google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUE google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de h1:jFNzHPIeuzhdRwVhbZdiym9q0ory/xY3sA+v2wPg8I0= google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:5iCWqnniDlqZHrd3neWVTOwvh/v6s3232omMecelax8= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de h1:cZGRis4/ot9uVm639a+rHCUaG0JJHEsdyzSQTMX+suY= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:H4O17MA/PE9BsGx3w+a+W2VOLLD1Qf7oJneAoU6WktY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda h1:LI5DOvAxUPMv/50agcLLoo+AdWc1irS9Rzz4vPuD1V4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= diff --git a/math/dec.go b/math/dec.go index 0e63de92b..6f686e01b 100644 --- a/math/dec.go +++ b/math/dec.go @@ -415,8 +415,11 @@ func (x Dec) SdkIntTrim() sdkmath.Int { return sdkmath.NewIntFromBigInt(&r) } +// SdkLegacyDec converts Dec to `sdkmath.LegacyDec` +// can return nil if the value is not representable in a LegacyDec func (x Dec) SdkLegacyDec() sdkmath.LegacyDec { - y, _ := sdkmath.LegacyNewDecFromStr(x.dec.Text('f')) + stringRep := x.dec.Text('f') + y, _ := sdkmath.LegacyNewDecFromStr(stringRep) return y } diff --git a/math/utils.go b/math/utils.go index 15cacf488..70749e2c9 100644 --- a/math/utils.go +++ b/math/utils.go @@ -61,11 +61,9 @@ func CalcExpDecay( // Generic function that sorts the keys of a map // Used for deterministic ranging of maps func GetSortedKeys[K cmp.Ordered, V any](m map[K]V) []K { - keys := make([]K, len(m)) - i := 0 + keys := make([]K, 0, len(m)) for k := range m { - keys[i] = k - i++ + keys = append(keys, k) } sort.Slice(keys, func(i, j int) bool { return keys[i] < keys[j] }) return keys @@ -100,6 +98,10 @@ func GetSortedElementsByDecWeightDesc[K cmp.Ordered](l []K, m map[K]*Dec) []K { // stdDev = sqrt((Σ(x - μ))^2/ N) // where μ is mean and N is number of elements func StdDev(data []Dec) (Dec, error) { + if len(data) == 1 { + return ZeroDec(), nil + } + mean := ZeroDec() var err error = nil for _, v := range data { @@ -128,10 +130,18 @@ func StdDev(data []Dec) (Dec, error) { return Dec{}, err } } - sdOverLen, err := sd.Quo(lenData) + + // Apply Bessel's correction by dividing by (N - 1) instead of N + lenDataMinusOne, err := lenData.Sub(OneDec()) if err != nil { return Dec{}, err } + + sdOverLen, err := sd.Quo(lenDataMinusOne) + if err != nil { + return Dec{}, err + } + sqrtSdOverLen, err := sdOverLen.Sqrt() if err != nil { return Dec{}, err @@ -257,7 +267,6 @@ func LinearInterpolation(x, xp, fp []Dec) ([]Dec, error) { if len(xp) != len(fp) { return nil, errors.New("xp and fp must have the same length") } - result := make([]Dec, len(x)) for i, xi := range x { if xi.Lte(xp[0]) { @@ -265,12 +274,7 @@ func LinearInterpolation(x, xp, fp []Dec) ([]Dec, error) { } else if xi.Gte(xp[len(xp)-1]) { result[i] = fp[len(fp)-1] } else { - // Find the interval xp[i] <= xi < xp[i + 1] - j := 0 - for xi.Gte(xp[j+1]) { - j++ - } - // Linear interpolation formula + j := sort.Search(len(xp)-1, func(j int) bool { return xi.Lt(xp[j+1]) }) denominator, err := xp[j+1].Sub(xp[j]) if err != nil { return nil, err @@ -295,11 +299,10 @@ func LinearInterpolation(x, xp, fp []Dec) ([]Dec, error) { if err != nil { return nil, err } - fp_j_t, err := fpjMulOneMinusT.Add(fpjPlusOneMulT) + result[i], err = fpjMulOneMinusT.Add(fpjPlusOneMulT) if err != nil { return nil, err } - result[i] = fp_j_t } } return result, nil diff --git a/math/utils_test.go b/math/utils_test.go index 236d06f07..5cba68c51 100644 --- a/math/utils_test.go +++ b/math/utils_test.go @@ -41,7 +41,6 @@ func TestCalcExpDecaySimple(t *testing.T) { // (1 - 0.1) * 300 // 0.9 * 300 = 270 expected := alloraMath.MustNewDecFromString("270") - result, err := alloraMath.CalcExpDecay(currentRev, decayFactor) require.NoError(t, err) require.True(t, alloraMath.InDelta(expected, result, alloraMath.MustNewDecFromString("0.0001"))) @@ -80,7 +79,7 @@ func TestStdDev(t *testing.T) { alloraMath.MustNewDecFromString("0.09719"), alloraMath.MustNewDecFromString("0.09675"), }, - want: alloraMath.MustNewDecFromString("0.041014924273483966"), + want: alloraMath.MustNewDecFromString("0.04323473788517746987174741957435394"), }, } diff --git a/scripts/l1_node.sh b/scripts/l1_node.sh index d099fb59a..a33b40123 100755 --- a/scripts/l1_node.sh +++ b/scripts/l1_node.sh @@ -1,9 +1,11 @@ #!/bin/bash -set -eu +set -ex -NETWORK="${NETWORK:-edgenet}" #! Replace with your network name +NETWORK="${NETWORK:-allora-testnet-1}" #! Replace with your network name GENESIS_URL="https://raw.githubusercontent.com/allora-network/networks/main/${NETWORK}/genesis.json" SEEDS_URL="https://raw.githubusercontent.com/allora-network/networks/main/${NETWORK}/seeds.txt" +PEERS_URL="https://raw.githubusercontent.com/allora-network/networks/main/${NETWORK}/peers.txt" +HEADS_URL="https://raw.githubusercontent.com/allora-network/networks/main/${NETWORK}/heads.txt" export APP_HOME="${APP_HOME:-./data}" INIT_FLAG="${APP_HOME}/.initialized" @@ -18,8 +20,12 @@ DENOM="uallo" echo "To re-initiate the node, remove the file: ${INIT_FLAG}" if [ ! -f $INIT_FLAG ]; then + #* Remove if existing config rm -rf ${APP_HOME}/config + #* Create symlink for allorad config - workaround + ln -sf ${APP_HOME} ${HOME}/.allorad + #* Init node allorad --home=${APP_HOME} init ${MONIKER} --chain-id=${NETWORK} --default-denom $DENOM @@ -39,14 +45,35 @@ if [ ! -f $INIT_FLAG ]; then allorad --home=${APP_HOME} config set client chain-id ${NETWORK} allorad --home=${APP_HOME} config set client keyring-backend $KEYRING_BACKEND - #* Create symlink for allorad config - ln -sf . ${APP_HOME}/.allorad + #* Mitigate mempool spamming attacks + dasel put mempool.max_txs_bytes -t int -v 2097152 -f ${APP_HOME}/config/config.toml + dasel put mempool.size -t int -v 1000 -f ${APP_HOME}/config/config.toml touch $INIT_FLAG fi echo "Node is initialized" -SEEDS=$(curl -s ${SEEDS_URL}) +SEEDS=$(curl -Ls ${SEEDS_URL}) +PEERS=$(curl -Ls ${PEERS_URL}) + +if [ "x${STATE_SYNC_RPC1}" != "x" ]; then + echo "Enable state sync" + TRUST_HEIGHT=$(($(curl -s $STATE_SYNC_RPC1/block | jq -r '.result.block.header.height'))) + + #* Snapshots are taken every 1000 blocks so we need to round down to the nearest 1000 + TRUST_HEIGHT=$(($TRUST_HEIGHT - ($TRUST_HEIGHT % 1000))) + + curl -s "$STATE_SYNC_RPC1/block?height=$TRUST_HEIGHT" + + TRUST_HEIGHT_HASH=$(curl -s $STATE_SYNC_RPC1/block?height=$TRUST_HEIGHT | jq -r '.result.block_id.hash') + + echo "Trust height: $TRUST_HEIGHT $TRUST_HEIGHT_HASH" + + dasel put statesync.enable -t bool -v true -f ${APP_HOME}/config/config.toml + dasel put statesync.rpc_servers -t string -v "$STATE_SYNC_RPC1,$STATE_SYNC_RPC2" -f ${APP_HOME}/config/config.toml + dasel put statesync.trust_height -t string -v $TRUST_HEIGHT -f ${APP_HOME}/config/config.toml + dasel put statesync.trust_hash -t string -v $TRUST_HEIGHT_HASH -f ${APP_HOME}/config/config.toml +fi echo "Starting validator node" allorad \ @@ -56,4 +83,4 @@ allorad \ --minimum-gas-prices=0${DENOM} \ --rpc.laddr=tcp://0.0.0.0:26657 \ --p2p.seeds=$SEEDS \ - --log_level "*:error,state:info,server:info,rewards:debug,inference_synthesis:debug,topic_handler:debug" + --p2p.persistent_peers $PEERS diff --git a/test/ibc/relayer/.env b/test/ibc/relayer/.env new file mode 100644 index 000000000..b502548e5 --- /dev/null +++ b/test/ibc/relayer/.env @@ -0,0 +1,14 @@ +# Allora environment variables +ALLORA_CHAIN_ID=alloraTemp +ALLORA_VALIDATOR_MONIKER=validator +ALLORA_DENOM=uallo +ALLORA_VALIDATOR_MNEMONIC=cinnamon legend sword giant master simple visit action level ancient day rubber pigeon filter garment hockey stay water crawl omit airport venture toilet oppose +ALLORA_FAUCET_MNEMONIC=stamp later develop betray boss ranch abstract puzzle calm right bounce march orchard edge correct canal fault miracle void dutch lottery lucky observe armed +ALLORA_RELAYER_MNEMONIC=black frequent sponsor nice claim rally hunt suit parent size stumble expire forest avocado mistake agree trend witness lounge shiver image smoke stool chicken + +# Osmosis environment variables +OSMOSIS_CHAIN_ID=osmosis +OSMOSIS_VALIDATOR_MONIKER=validator +OSMOSIS_VALIDATOR_MNEMONIC=family album bird seek tilt color pill danger message abuse manual tent almost ridge boost blast high comic core quantum spoon coconut oyster remove +OSMOSIS_FAUCET_MNEMONIC=increase bread alpha rigid glide amused approve oblige print asset idea enact lawn proof unfold jeans rabbit audit return chuckle valve rather cactus great +OSMOSIS_RELAYER_MNEMONIC=black frequent sponsor nice claim rally hunt suit parent size stumble expire forest avocado mistake agree trend witness lounge shiver image smoke stool chicken \ No newline at end of file diff --git a/test/ibc/relayer/Makefile b/test/ibc/relayer/Makefile new file mode 100755 index 000000000..73886a11b --- /dev/null +++ b/test/ibc/relayer/Makefile @@ -0,0 +1,24 @@ +init: clean build + +build: + @DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose -f docker-compose.yml build + +start: + @docker-compose -f docker-compose.yml up + +startd: + @docker-compose -f docker-compose.yml up -d + +stop: + @docker-compose -f docker-compose.yml down -t 3 + + +restart: stop + @docker-compose -f docker-compose.yml up --force-recreate + +restartd: stop + @docker-compose -f docker-compose.yml up --force-recreate -d + +clean: + @rm -rfI $(HOME)/.allora-a/ + @rm -rfI $(HOME)/.allora-b/ diff --git a/test/ibc/relayer/configs/allora.json b/test/ibc/relayer/configs/allora.json new file mode 100755 index 000000000..c7822e5f8 --- /dev/null +++ b/test/ibc/relayer/configs/allora.json @@ -0,0 +1,22 @@ +{ + "type": "cosmos", + "value": { + "key": "relayer", + "chain-id": "allora", + "rpc-addr": "http://localhost:26657", + "grpc-addr": "", + "account-prefix": "allo", + "keyring-backend": "test", + "default-denom": "uallo", + "gas-adjustment": 1.5, + "gas-prices": "0.025uallo", + "debug": true, + "timeout": "20s", + "output-format": "json", + "sign-mode": "direct", + "trusting-period": "330h", + "gas":900000 + } +} + + diff --git a/test/ibc/relayer/configs/osmosis.json b/test/ibc/relayer/configs/osmosis.json new file mode 100755 index 000000000..9c7668e61 --- /dev/null +++ b/test/ibc/relayer/configs/osmosis.json @@ -0,0 +1,23 @@ +{ + "type": "cosmos", + "value": { + "key": "relayer", + "chain-id": "osmosis", + "rpc-addr": "http://localhost:36657", + "grpc-addr": "", + "account-prefix": "osmo", + "keyring-backend": "test", + "default-denom": "uosmo", + "gas-adjustment": 1.5, + "gas-prices": "0.025uosmo", + "debug": true, + "timeout": "20s", + "output-format": "json", + "sign-mode": "direct", + "trusting-period": "330h", + "gas":900000 + } +} + + + diff --git a/test/ibc/relayer/docker-compose.yml b/test/ibc/relayer/docker-compose.yml new file mode 100755 index 000000000..4a9451389 --- /dev/null +++ b/test/ibc/relayer/docker-compose.yml @@ -0,0 +1,51 @@ +version: "3" + +services: + allora: + image: alloranetwork/allora-chain:v0.2.14 + volumes: + - ./scripts/setup_allora.sh:/allora/setup.sh + - $HOME/.allora/:/allora/.allorad/ + entrypoint: + - /allora/setup.sh + platform: linux/amd64 + env_file: + - .env + environment: + - CHAIN_ID=${ALLORA_CHAIN_ID} + - VALIDATOR_MONIKER=${ALLORA_VALIDATOR_MONIKER} + - DENOM=${ALLORA_DENOM} + - VALIDATOR_MNEMONIC=${ALLORA_VALIDATOR_MNEMONIC} + - FAUCET_MNEMONIC=${ALLORA_FAUCET_MNEMONIC} + - RELAYER_MNEMONIC=${ALLORA_RELAYER_MNEMONIC} + ports: + - 26657:26657 + - 1317:1317 + - 9090:9090 + networks: + - localallora + + osmosis: + image: local:osmosis + volumes: + - ./scripts/setup_osmosis.sh:/osmosis/setup.sh + - $HOME/.osmosisd/:/osmosis/.osmosisd/ + entrypoint: + - /osmosis/setup.sh + env_file: + - .env + environment: + - CHAIN_ID=${OSMOSIS_CHAIN_ID} + - VALIDATOR_MONIKER=${OSMOSIS_VALIDATOR_MONIKER} + - VALIDATOR_MNEMONIC=${OSMOSIS_VALIDATOR_MNEMONIC} + - FAUCET_MNEMONIC=${OSMOSIS_FAUCET_MNEMONIC} + - RELAYER_MNEMONIC=${OSMOSIS_RELAYER_MNEMONIC} + ports: + - 36657:26657 + - 31317:1317 + - 39090:9090 + networks: + - localallora + +networks: + localallora: diff --git a/test/ibc/relayer/paths/demo.json b/test/ibc/relayer/paths/demo.json new file mode 100755 index 000000000..821cd1c54 --- /dev/null +++ b/test/ibc/relayer/paths/demo.json @@ -0,0 +1,22 @@ +{ + "src": + { + "chain-id":"allora", + "client-id":"", + "connection-id":"", + "channel-id":"" + }, + "dst": + { + "chain-id":"osmosis", + "client-id":"", + "connection-id":"", + "channel-id":"" + }, + "src-channel-filter": { + "rule": "", + "channel-list": [] + } +} + + diff --git a/test/ibc/relayer/run-relayer.sh b/test/ibc/relayer/run-relayer.sh new file mode 100755 index 000000000..5e21e673a --- /dev/null +++ b/test/ibc/relayer/run-relayer.sh @@ -0,0 +1,29 @@ +#!/bin/sh +rm -r ~/.relayer || true + +export_env_vars() { + while IFS= read -r line || [[ -n "$line" ]]; do + if [[ ! "$line" =~ ^# && "$line" =~ = ]]; then + var_name=$(echo "$line" | cut -d '=' -f 1) + var_value=$(echo "$line" | cut -d '=' -f 2-) + export "$var_name"="${var_value//\"/}" + fi + done < .env +} + +export_env_vars + +echo "$ALLORA_RELAYER_MNEMONIC" + +rly config init +rly chains add-dir ./configs +rly paths add-dir ./paths + +rly keys restore allora relayer "$ALLORA_RELAYER_MNEMONIC" +rly keys restore osmosis relayer "$OSMOSIS_RELAYER_MNEMONIC" + +echo "Tx Link" +rly tx link demo -d -t 3s + +echo "Start Demo" +rly start demo \ No newline at end of file diff --git a/test/ibc/relayer/scripts/setup_allora.sh b/test/ibc/relayer/scripts/setup_allora.sh new file mode 100755 index 000000000..3b70fcf86 --- /dev/null +++ b/test/ibc/relayer/scripts/setup_allora.sh @@ -0,0 +1,63 @@ +#!/bin/bash +set -eu + +DEFAULT_CHAIN_ID="localallora" +DEFAULT_VALIDATOR_MONIKER="validator" +DEFAULT_DENOM="uallo" +DEFAULT_VALIDATOR_MNEMONIC="bottom loan skill merry east cradle onion journey palm apology verb edit desert impose absurd oil bubble sweet glove shallow size build burst effort" +DEFAULT_FAUCET_MNEMONIC="increase bread alpha rigid glide amused approve oblige print asset idea enact lawn proof unfold jeans rabbit audit return chuckle valve rather cactus great" +DEFAULT_RELAYER_MNEMONIC="black frequent sponsor nice claim rally hunt suit parent size stumble expire forest avocado mistake agree trend witness lounge shiver image smoke stool chicken" + +# Override default values with environment variables +CHAIN_ID=${CHAIN_ID:-$DEFAULT_CHAIN_ID} +DENOM=${DENOM:-$DEFAULT_DENOM} +VALIDATOR_MONIKER=${VALIDATOR_MONIKER:-$DEFAULT_VALIDATOR_MONIKER} +VALIDATOR_MNEMONIC=${VALIDATOR_MNEMONIC:-$DEFAULT_VALIDATOR_MNEMONIC} +FAUCET_MNEMONIC=${FAUCET_MNEMONIC:-$DEFAULT_FAUCET_MNEMONIC} +RELAYER_MNEMONIC=${RELAYER_MNEMONIC:-$DEFAULT_RELAYER_MNEMONIC} + +ALLORA_HOME=$HOME/.allorad +CONFIG_FOLDER=$ALLORA_HOME/config + +add_genesis_accounts () { + + # Validator + echo "⚖️ Add validator account" + echo $VALIDATOR_MNEMONIC | allorad keys add $VALIDATOR_MONIKER --recover --keyring-backend=test --home $ALLORA_HOME + VALIDATOR_ACCOUNT=$(allorad keys show -a $VALIDATOR_MONIKER --keyring-backend test --home $ALLORA_HOME) + allorad genesis add-genesis-account $VALIDATOR_ACCOUNT 100000000allo --home $ALLORA_HOME + + # Faucet + echo "🚰 Add faucet account" + echo $FAUCET_MNEMONIC | allorad keys add faucet --recover --keyring-backend=test --home $ALLORA_HOME + FAUCET_ACCOUNT=$(allorad keys show -a faucet --keyring-backend test --home $ALLORA_HOME) + allorad genesis add-genesis-account $FAUCET_ACCOUNT 100000000allo --home $ALLORA_HOME + + # Relayer + echo "🔗 Add relayer account" + echo $RELAYER_MNEMONIC | allorad keys add relayer --recover --keyring-backend=test --home $ALLORA_HOME + RELAYER_ACCOUNT=$(allorad keys show -a relayer --keyring-backend test --home $ALLORA_HOME) + allorad genesis add-genesis-account $RELAYER_ACCOUNT 100000000allo --home $ALLORA_HOME + + allorad genesis gentx $VALIDATOR_MONIKER 1000allo --keyring-backend=test --chain-id=$CHAIN_ID --home $ALLORA_HOME + allorad genesis collect-gentxs --home $ALLORA_HOME +} + +edit_config () { + # Remove seeds + dasel put -t string -f $CONFIG_FOLDER/config.toml '.p2p.seeds' -v '' + + # Expose the rpc + dasel put -t string -f $CONFIG_FOLDER/config.toml '.rpc.laddr' -v "tcp://0.0.0.0:26657" +} + +if [[ ! -d $CONFIG_FOLDER ]] +then + echo "🧪 Creating allora home for $VALIDATOR_MONIKER" + echo $VALIDATOR_MNEMONIC | allorad init -o --chain-id=$CHAIN_ID --home $ALLORA_HOME --recover $VALIDATOR_MONIKER --default-denom $DENOM + add_genesis_accounts + edit_config +fi + +echo "🏁 Starting $CHAIN_ID..." +allorad start --home $ALLORA_HOME diff --git a/test/ibc/relayer/scripts/setup_osmosis.sh b/test/ibc/relayer/scripts/setup_osmosis.sh new file mode 100755 index 000000000..7d79c49c0 --- /dev/null +++ b/test/ibc/relayer/scripts/setup_osmosis.sh @@ -0,0 +1,112 @@ +#!/bin/sh +set -eu + +DEFAULT_CHAIN_ID="osmosis" +DEFAULT_VALIDATOR_MONIKER="validator" +DEFAULT_VALIDATOR_MNEMONIC="bottom loan skill merry east cradle onion journey palm apology verb edit desert impose absurd oil bubble sweet glove shallow size build burst effort" +DEFAULT_FAUCET_MNEMONIC="increase bread alpha rigid glide amused approve oblige print asset idea enact lawn proof unfold jeans rabbit audit return chuckle valve rather cactus great" +DEFAULT_RELAYER_MNEMONIC="black frequent sponsor nice claim rally hunt suit parent size stumble expire forest avocado mistake agree trend witness lounge shiver image smoke stool chicken" + +# Override default values with environment variables +CHAIN_ID=${CHAIN_ID:-$DEFAULT_CHAIN_ID} +VALIDATOR_MONIKER=${VALIDATOR_MONIKER:-$DEFAULT_VALIDATOR_MONIKER} +VALIDATOR_MNEMONIC=${VALIDATOR_MNEMONIC:-$DEFAULT_VALIDATOR_MNEMONIC} +FAUCET_MNEMONIC=${FAUCET_MNEMONIC:-$DEFAULT_FAUCET_MNEMONIC} +RELAYER_MNEMONIC=${RELAYER_MNEMONIC:-$DEFAULT_RELAYER_MNEMONIC} + +OSMOSIS_HOME=$HOME/.osmosisd +CONFIG_FOLDER=$OSMOSIS_HOME/config + +install_prerequisites () { + apk add dasel +} + +edit_genesis () { + + GENESIS=$CONFIG_FOLDER/genesis.json + + # Update staking module + dasel put -t string -f $GENESIS '.app_state.staking.params.bond_denom' -v 'uosmo' + dasel put -t string -f $GENESIS '.app_state.staking.params.unbonding_time' -v '240s' + + # Update crisis module + dasel put -t string -f $GENESIS '.app_state.crisis.constant_fee.denom' -v 'uosmo' + + # Update gov module + dasel put -t string -f $GENESIS '.app_state.gov.voting_params.voting_period' -v '60s' + dasel put -t string -f $GENESIS '.app_state.gov.params.min_deposit.[0].denom' -v 'uosmo' + + # Update epochs module + dasel put -t string -f $GENESIS '.app_state.epochs.epochs.[1].duration' -v "60s" + + # Update poolincentives module + dasel put -t string -f $GENESIS '.app_state.poolincentives.lockable_durations.[0]' -v "120s" + dasel put -t string -f $GENESIS '.app_state.poolincentives.lockable_durations.[1]' -v "180s" + dasel put -t string -f $GENESIS '.app_state.poolincentives.lockable_durations.[2]' -v "240s" + dasel put -t string -f $GENESIS '.app_state.poolincentives.params.minted_denom' -v "uosmo" + + # Update incentives module + dasel put -t string -f $GENESIS '.app_state.incentives.lockable_durations.[0]' -v "1s" + dasel put -t string -f $GENESIS '.app_state.incentives.lockable_durations.[1]' -v "120s" + dasel put -t string -f $GENESIS '.app_state.incentives.lockable_durations.[2]' -v "180s" + dasel put -t string -f $GENESIS '.app_state.incentives.lockable_durations.[3]' -v "240s" + dasel put -t string -f $GENESIS '.app_state.incentives.params.distr_epoch_identifier' -v "day" + + # Update mint module + dasel put -t string -f $GENESIS '.app_state.mint.params.mint_denom' -v "uosmo" + dasel put -t string -f $GENESIS '.app_state.mint.params.epoch_identifier' -v "day" + + # Update gamm module + dasel put -t string -f $GENESIS '.app_state.gamm.params.pool_creation_fee.[0].denom' -v "uosmo" + + # Update txfee basedenom + dasel put -t string -f $GENESIS '.app_state.txfees.basedenom' -v "uosmo" + + # Update wasm permission (Nobody or Everybody) + dasel put -t string -f $GENESIS '.app_state.wasm.params.code_upload_access.permission' -v "Everybody" +} + +add_genesis_accounts () { + + # Validator + echo "⚖️ Add validator account" + echo $VALIDATOR_MNEMONIC | osmosisd keys add $VALIDATOR_MONIKER --recover --keyring-backend=test --home $OSMOSIS_HOME + VALIDATOR_ACCOUNT=$(osmosisd keys show -a $VALIDATOR_MONIKER --keyring-backend test --home $OSMOSIS_HOME) + osmosisd add-genesis-account $VALIDATOR_ACCOUNT 100000000000uosmo,100000000000uion,100000000000stake --home $OSMOSIS_HOME + + # Faucet + echo "🚰 Add faucet account" + echo $FAUCET_MNEMONIC | osmosisd keys add faucet --recover --keyring-backend=test --home $OSMOSIS_HOME + FAUCET_ACCOUNT=$(osmosisd keys show -a faucet --keyring-backend test --home $OSMOSIS_HOME) + osmosisd add-genesis-account $FAUCET_ACCOUNT 100000000000uosmo,100000000000uion,100000000000stake --home $OSMOSIS_HOME + + # Relayer + echo "🔗 Add relayer account" + echo $RELAYER_MNEMONIC | osmosisd keys add relayer --recover --keyring-backend=test --home $OSMOSIS_HOME + RELAYER_ACCOUNT=$(osmosisd keys show -a relayer --keyring-backend test --home $OSMOSIS_HOME) + osmosisd add-genesis-account $RELAYER_ACCOUNT 1000000000uosmo,1000000000uion,1000000000stake --home $OSMOSIS_HOME + + osmosisd gentx $VALIDATOR_MONIKER 500000000uosmo --keyring-backend=test --chain-id=$CHAIN_ID --home $OSMOSIS_HOME + osmosisd collect-gentxs --home $OSMOSIS_HOME +} + +edit_config () { + # Remove seeds + dasel put -t string -f $CONFIG_FOLDER/config.toml '.p2p.seeds' -v '' + + # Expose the rpc + dasel put -t string -f $CONFIG_FOLDER/config.toml '.rpc.laddr' -v "tcp://0.0.0.0:26657" +} + +if [[ ! -d $CONFIG_FOLDER ]] +then + install_prerequisites + echo "🧪 Creating Osmosis home for $VALIDATOR_MONIKER" + echo $VALIDATOR_MNEMONIC | osmosisd init -o --chain-id=$CHAIN_ID --home $OSMOSIS_HOME --recover $VALIDATOR_MONIKER + edit_genesis + add_genesis_accounts + edit_config +fi + +echo "🏁 Starting $CHAIN_ID..." +osmosisd start --home $OSMOSIS_HOME diff --git a/test/integration/create_topic_test.go b/test/integration/create_topic_test.go index f8806da11..d3c3e459d 100644 --- a/test/integration/create_topic_test.go +++ b/test/integration/create_topic_test.go @@ -20,19 +20,16 @@ func CreateTopic(m testCommon.TestConfig) (topicId uint64) { require.Greater(m.T, topicIdStart.NextTopicId, uint64(0)) require.NoError(m.T, err) createTopicRequest := &emissionstypes.MsgCreateNewTopic{ - Creator: m.AliceAddr, - Metadata: "ETH 24h Prediction", - LossLogic: "bafybeid7mmrv5qr4w5un6c64a6kt2y4vce2vylsmfvnjt7z2wodngknway", - LossMethod: "loss-calculation-eth.wasm", - InferenceLogic: "bafybeigx43n7kho3gslauwtsenaxehki6ndjo3s63ahif3yc5pltno3pyq", - InferenceMethod: "allora-inference-function.wasm", - EpochLength: 5, - GroundTruthLag: 20, - DefaultArg: "ETH", - PNorm: alloraMath.NewDecFromInt64(3), - AlphaRegret: alloraMath.MustNewDecFromString("0.1"), - AllowNegative: true, - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: m.AliceAddr, + Metadata: "ETH 24h Prediction", + LossMethod: "mse", + EpochLength: 5, + GroundTruthLag: 10, + WorkerSubmissionWindow: 4, + PNorm: alloraMath.NewDecFromInt64(3), + AlphaRegret: alloraMath.MustNewDecFromString("0.1"), + AllowNegative: true, + Epsilon: alloraMath.MustNewDecFromString("0.01"), } txResp, err := m.Client.BroadcastTx(ctx, m.AliceAcc, createTopicRequest) require.NoError(m.T, err) @@ -59,13 +56,10 @@ func CreateTopic(m testCommon.TestConfig) (topicId uint64) { require.NoError(m.T, err) storedTopic := storedTopicResponse.Topic require.Equal(m.T, createTopicRequest.Metadata, storedTopic.Metadata) - require.Equal(m.T, createTopicRequest.LossLogic, storedTopic.LossLogic) require.Equal(m.T, createTopicRequest.LossMethod, storedTopic.LossMethod) - require.Equal(m.T, createTopicRequest.InferenceLogic, storedTopic.InferenceLogic) - require.Equal(m.T, createTopicRequest.InferenceMethod, storedTopic.InferenceMethod) require.Equal(m.T, createTopicRequest.EpochLength, storedTopic.EpochLength) require.Equal(m.T, createTopicRequest.GroundTruthLag, storedTopic.GroundTruthLag) - require.Equal(m.T, createTopicRequest.DefaultArg, storedTopic.DefaultArg) + require.Equal(m.T, createTopicRequest.WorkerSubmissionWindow, storedTopic.WorkerSubmissionWindow) require.Equal(m.T, createTopicRequest.PNorm, storedTopic.PNorm) require.True(m.T, createTopicRequest.AlphaRegret.Equal(storedTopic.AlphaRegret), "Alpha Regret not equal %s != %s", createTopicRequest.AlphaRegret, storedTopic.AlphaRegret) diff --git a/test/integration/integration_test.go b/test/integration/integration_test.go index e79b3bc70..f85e86756 100644 --- a/test/integration/integration_test.go +++ b/test/integration/integration_test.go @@ -43,6 +43,27 @@ func TestExternalTestSuite(t *testing.T) { WorkerInferenceAndForecastChecks(testConfig) t.Log(">>> Test Reputer Un-Staking <<<") UnstakingChecks(testConfig) - // t.Log(">>> Test Upgrading Emissions Module Version") - // UpgradeChecks(testConfig) +} + +func TestUpgradeTestSuite(t *testing.T) { + if _, runUpgradeChecks := os.LookupEnv("UPGRADE"); runUpgradeChecks == false { + t.Skip("Skipping Upgrade Test Outside CI") + } + t.Log(">>> Setting up connection to local node <<<") + + seed := testCommon.LookupEnvInt(t, "SEED", 0) + rpcMode := testCommon.LookupRpcMode(t, "RPC_MODE", testCommon.SingleRpc) + rpcEndpoints := testCommon.LookupEnvStringArray("RPC_URLS", []string{"http://localhost:26657"}) + + testConfig := testCommon.NewTestConfig( + t, + rpcMode, + rpcEndpoints, + "../devnet/genesis", + seed, + ) + + t.Log(">>> Test Upgrading Emissions Module Version") + UpgradeChecks(testConfig) + } diff --git a/test/integration/registration_test.go b/test/integration/registration_test.go index 32b63063c..5909eb5e1 100644 --- a/test/integration/registration_test.go +++ b/test/integration/registration_test.go @@ -12,12 +12,10 @@ import ( func RegisterAliceAsReputerTopic1(m testCommon.TestConfig) { ctx := context.Background() registerAliceRequest := &emissionstypes.MsgRegister{ - Sender: m.AliceAddr, - Owner: m.AliceAddr, - LibP2PKey: "reputerkey", - MultiAddress: "reputermultiaddress", - TopicId: 1, - IsReputer: true, + Sender: m.AliceAddr, + Owner: m.AliceAddr, + TopicId: 1, + IsReputer: true, } txResp, err := m.Client.BroadcastTx(ctx, m.AliceAcc, registerAliceRequest) require.NoError(m.T, err) @@ -56,12 +54,10 @@ func RegisterAliceAsReputerTopic1(m testCommon.TestConfig) { func RegisterBobAsWorkerTopic1(m testCommon.TestConfig) { ctx := context.Background() registerBobRequest := &emissionstypes.MsgRegister{ - Sender: m.BobAddr, - Owner: m.BobAddr, - LibP2PKey: "workerkey", - MultiAddress: "workermultiaddress", - TopicId: 1, - IsReputer: false, + Sender: m.BobAddr, + Owner: m.BobAddr, + TopicId: 1, + IsReputer: false, } txResp, err := m.Client.BroadcastTx(ctx, m.BobAcc, registerBobRequest) require.NoError(m.T, err) diff --git a/test/integration/upgrade.patch b/test/integration/upgrade.patch deleted file mode 100644 index 41b4217f1..000000000 --- a/test/integration/upgrade.patch +++ /dev/null @@ -1,48 +0,0 @@ -diff --git a/app/upgrades.go b/app/upgrades.go -index 5a21ced..61bb8af 100644 ---- a/app/upgrades.go -+++ b/app/upgrades.go -@@ -1,4 +1,30 @@ - package app - -+import ( -+ storetypes "cosmossdk.io/store/types" -+ upgradetypes "cosmossdk.io/x/upgrade/types" -+ "github.com/allora-network/allora-chain/app/upgrades/vintegration" -+) -+ - func (app *AlloraApp) setupUpgradeHandlers() { -+ // set up the vintegration upgrade -+ app.UpgradeKeeper.SetUpgradeHandler( -+ vintegration.UpgradeName, -+ vintegration.CreateUpgradeHandler( -+ app.ModuleManager, app.Configurator(), -+ ), -+ ) -+ -+ upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk() -+ if err == nil { -+ if upgradeInfo.Name == vintegration.UpgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) { -+ storeUpgrades := storetypes.StoreUpgrades{ -+ Deleted: []string{"capability"}, -+ } -+ -+ // configure store loader that checks if version == upgradeHeight and applies store upgrades -+ app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades)) -+ } -+ } -+ - } -diff --git a/x/emissions/module/module.go b/x/emissions/module/module.go -index df82443..d5349d5 100644 ---- a/x/emissions/module/module.go -+++ b/x/emissions/module/module.go -@@ -26,7 +26,7 @@ var ( - ) - - // ConsensusVersion defines the current module consensus version. --const ConsensusVersion = 1 -+const ConsensusVersion = 2 - - type AppModule struct { - cdc codec.Codec diff --git a/test/integration/upgrade_test.go b/test/integration/upgrade_test.go index c799786a3..500a69754 100644 --- a/test/integration/upgrade_test.go +++ b/test/integration/upgrade_test.go @@ -6,6 +6,7 @@ import ( "time" upgradetypes "cosmossdk.io/x/upgrade/types" + "github.com/allora-network/allora-chain/app/upgrades/v0_3_0" testCommon "github.com/allora-network/allora-chain/test/common" sdktypes "github.com/cosmos/cosmos-sdk/types" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" @@ -50,11 +51,11 @@ func voteOnProposal(m testCommon.TestConfig, proposalId uint64) { } } -// propose an upgrade to the vintegration software version +// propose an upgrade to the v0.3.0 software version func proposeUpgrade(m testCommon.TestConfig) (proposalId uint64, proposalHeight int64) { ctx := context.Background() - name := "vintegration" - summary := "Upgrade to vintegration software version" + name := v0_3_0.UpgradeName + summary := "Upgrade to " + name + " software version" currHeight, err := m.Client.BlockHeight(ctx) require.NoError(m.T, err) @@ -140,15 +141,16 @@ func waitForUpgrade(m testCommon.TestConfig, proposalHeight int64) { } func UpgradeChecks(m testCommon.TestConfig) { + versionName := v0_3_0.UpgradeName m.T.Log("--- Getting Emissions Module Version Before Upgrade ---") emissionsVersionBefore := getEmissionsVersion(m) - m.T.Log("--- Propose Upgrade to vintegration software version from v0 ---") + m.T.Logf("--- Propose Upgrade to %s software version from v0 ---", versionName) proposalId, proposalHeight := proposeUpgrade(m) m.T.Logf("--- Vote on Upgrade Proposal %d ---", proposalId) voteOnProposal(m, proposalId) m.T.Logf("--- Wating for Proposal %d to Pass ---", proposalId) waitForProposalPass(m, proposalId) - m.T.Logf("--- Waiting for Upgrade to vintegration at height %d ---", proposalHeight) + m.T.Logf("--- Waiting for Upgrade to %s at height %d ---", versionName, proposalHeight) waitForUpgrade(m, proposalHeight) m.T.Log("--- Getting Emissions Module Version After Upgrade ---") emissionsVersionAfter := getEmissionsVersion(m) diff --git a/test/integration/worker_inference_and_forecast_test.go b/test/integration/worker_inference_and_forecast_test.go index c69b622de..1fb24ec28 100644 --- a/test/integration/worker_inference_and_forecast_test.go +++ b/test/integration/worker_inference_and_forecast_test.go @@ -4,6 +4,7 @@ import ( "context" "encoding/hex" "errors" + "fmt" "time" alloraMath "github.com/allora-network/allora-chain/math" @@ -15,7 +16,6 @@ import ( const defaultEpochLength = 10 const approximateBlockLengthSeconds = 5 -const minWaitingNumberofEpochs = 3 func getNonZeroTopicEpochLastRan(m testCommon.TestConfig, topicID uint64, maxRetries int) (*types.Topic, error) { ctx := context.Background() @@ -26,25 +26,21 @@ func getNonZeroTopicEpochLastRan(m testCommon.TestConfig, topicID uint64, maxRet if err == nil { storedTopic := topicResponse.Topic if storedTopic.EpochLastEnded != 0 { - sleepingTime := time.Duration(minWaitingNumberofEpochs*storedTopic.EpochLength*approximateBlockLengthSeconds) * time.Second - m.T.Log(time.Now(), " Topic found, sleeping...", sleepingTime) - time.Sleep(sleepingTime) - m.T.Log(time.Now(), " Slept.") return topicResponse.Topic, nil } sleepingTimeBlocks = int(storedTopic.EpochLength) } else { - m.T.Log("Error getting topic, retry...", err) + m.T.Log(time.Now(), "Error getting topic, retry...", err) } // Sleep for a while before retrying - m.T.Log("Retrying sleeping for a default epoch, retry ", retries, " for sleeping time ", sleepingTimeBlocks) + m.T.Log(time.Now(), "Retrying sleeping for a default epoch, retry ", retries, " for sleeping time ", sleepingTimeBlocks) time.Sleep(time.Duration(sleepingTimeBlocks*approximateBlockLengthSeconds) * time.Second) } return nil, errors.New("topicEpochLastRan is still 0 after retrying") } -func InsertSingleWorkerBulk(m testCommon.TestConfig, topic *types.Topic, blockHeight int64) { +func InsertSingleWorkerPayload(m testCommon.TestConfig, topic *types.Topic, blockHeight int64) error { ctx := context.Background() // Nonce: calculate from EpochLastRan + EpochLength topicId := topic.Id @@ -53,29 +49,27 @@ func InsertSingleWorkerBulk(m testCommon.TestConfig, topic *types.Topic, blockHe InfererAddress1 := m.BobAddr // Create a MsgInsertBulkReputerPayload message - workerMsg := &types.MsgInsertBulkWorkerPayload{ - Sender: InfererAddress1, - Nonce: &nonce, - TopicId: topicId, - WorkerDataBundles: []*types.WorkerDataBundle{ - { - Worker: InfererAddress1, - InferenceForecastsBundle: &types.InferenceForecastBundle{ - Inference: &types.Inference{ - TopicId: topicId, - BlockHeight: blockHeight, - Inferer: InfererAddress1, - Value: alloraMath.NewDecFromInt64(100), - }, - Forecast: &types.Forecast{ - TopicId: 0, - BlockHeight: blockHeight, - Forecaster: InfererAddress1, - ForecastElements: []*types.ForecastElement{ - { - Inferer: InfererAddress1, - Value: alloraMath.NewDecFromInt64(100), - }, + workerMsg := &types.MsgInsertWorkerPayload{ + Sender: InfererAddress1, + WorkerDataBundle: &types.WorkerDataBundle{ + Worker: InfererAddress1, + Nonce: &nonce, + TopicId: topicId, + InferenceForecastsBundle: &types.InferenceForecastBundle{ + Inference: &types.Inference{ + TopicId: topicId, + BlockHeight: blockHeight, + Inferer: InfererAddress1, + Value: alloraMath.NewDecFromInt64(100), + }, + Forecast: &types.Forecast{ + TopicId: topicId, + BlockHeight: blockHeight, + Forecaster: InfererAddress1, + ForecastElements: []*types.ForecastElement{ + { + Inferer: InfererAddress1, + Value: alloraMath.NewDecFromInt64(100), }, }, }, @@ -84,63 +78,67 @@ func InsertSingleWorkerBulk(m testCommon.TestConfig, topic *types.Topic, blockHe } // Sign src := make([]byte, 0) - src, err := workerMsg.WorkerDataBundles[0].InferenceForecastsBundle.XXX_Marshal(src, true) - require.NoError(m.T, err, "Marshall reputer value bundle should not return an error") + src, err := workerMsg.WorkerDataBundle.InferenceForecastsBundle.XXX_Marshal(src, true) + // require.NoError(m.T, err, "Marshall reputer value bundle should not return an error") + if err != nil { + return err + } sig, pubKey, err := m.Client.Context().Keyring.Sign(m.BobAcc.Name, src, signing.SignMode_SIGN_MODE_DIRECT) - require.NoError(m.T, err, "Sign should not return an error") + // require.NoError(m.T, err, "Sign should not return an error") + if err != nil { + return err + } workerPublicKeyBytes := pubKey.Bytes() - workerMsg.WorkerDataBundles[0].InferencesForecastsBundleSignature = sig - workerMsg.WorkerDataBundles[0].Pubkey = hex.EncodeToString(workerPublicKeyBytes) + workerMsg.WorkerDataBundle.InferencesForecastsBundleSignature = sig + workerMsg.WorkerDataBundle.Pubkey = hex.EncodeToString(workerPublicKeyBytes) txResp, err := m.Client.BroadcastTx(ctx, m.BobAcc, workerMsg) - require.NoError(m.T, err) - + // require.NoError(m.T, err) + if err != nil { + return err + } _, err = m.Client.WaitForTx(ctx, txResp.TxHash) - require.NoError(m.T, err) + // require.NoError(m.T, err) + if err != nil { + return err + } - // Latest inference - latestInference, err := m.Client.QueryEmissions().GetWorkerLatestInferenceByTopicId( - ctx, - &types.QueryWorkerLatestInferenceRequest{ - TopicId: 1, - WorkerAddress: InfererAddress1, - }, - ) - require.NoError(m.T, err) - require.Equal(m.T, latestInference.LatestInference.Value, alloraMath.MustNewDecFromString("100")) - require.Equal(m.T, latestInference.LatestInference.BlockHeight, blockHeight) - require.Equal(m.T, latestInference.LatestInference.TopicId, topicId) - require.Equal(m.T, latestInference.LatestInference.Inferer, InfererAddress1) + return nil } // Worker Bob inserts bulk inference and forecast -func InsertWorkerBulk(m testCommon.TestConfig, topic *types.Topic) (int64, int64) { +func InsertWorkerBulk(m testCommon.TestConfig, topic *types.Topic) (int64, error) { ctx := context.Background() + currentBlock, err := m.Client.BlockHeight(ctx) + if err != nil { + return 0, err + } topicResponse, err := m.Client.QueryEmissions().GetTopic(ctx, &types.QueryTopicRequest{TopicId: topic.Id}) - require.NoError(m.T, err) + if err != nil { + return 0, err + } freshTopic := topicResponse.Topic // Insert and fulfill nonces for the last two epochs - blockHeightEval := freshTopic.EpochLastEnded - freshTopic.EpochLength - m.T.Log("Inserting worker bulk for blockHeightEval: ", blockHeightEval) - InsertSingleWorkerBulk(m, freshTopic, blockHeightEval) - - blockHeightCurrent := freshTopic.EpochLastEnded - m.T.Log("Inserting worker bulk for blockHeightCurrent: ", blockHeightCurrent) - InsertSingleWorkerBulk(m, freshTopic, blockHeightCurrent) - return blockHeightCurrent, blockHeightEval + blockHeightEval := freshTopic.EpochLastEnded + m.T.Log(time.Now(), "Inserting worker bulk for blockHeightEval: ", blockHeightEval, "; Current block: ", currentBlock) + err = InsertSingleWorkerPayload(m, freshTopic, blockHeightEval) + if err != nil { + return 0, err + } + return blockHeightEval, nil } // register alice as a reputer in topic 1, then check success -func InsertReputerBulk(m testCommon.TestConfig, topic *types.Topic, BlockHeightCurrent, BlockHeightEval int64) { +func InsertReputerBulk(m testCommon.TestConfig, topic *types.Topic, BlockHeightCurrent int64) error { ctx := context.Background() // Nonce: calculate from EpochLastRan + EpochLength topicId := topic.Id // Define inferer address as Bob's address, reputer as Alice's workerAddr := m.BobAddr reputerAddr := m.AliceAddr - // Nonces are last two blockHeights + // Reputer Nonce reputerNonce := &types.Nonce{ BlockHeight: BlockHeightCurrent, } @@ -192,33 +190,43 @@ func InsertReputerBulk(m testCommon.TestConfig, topic *types.Topic, BlockHeightC // Sign src := make([]byte, 0) src, err := reputerValueBundle.XXX_Marshal(src, true) - require.NoError(m.T, err, "Marshall reputer value bundle should not return an error") + // require.NoError(m.T, err, "Marshall reputer value bundle should not return an error") + if err != nil { + return err + } valueBundleSignature, pubKey, err := m.Client.Context().Keyring.Sign(m.AliceAcc.Name, src, signing.SignMode_SIGN_MODE_DIRECT) - require.NoError(m.T, err, "Sign should not return an error") + // require.NoError(m.T, err, "Sign should not return an error") + if err != nil { + return err + } reputerPublicKeyBytes := pubKey.Bytes() // Create a MsgInsertBulkReputerPayload message - lossesMsg := &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddr, - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: reputerNonce, - }, - ReputerValueBundles: []*types.ReputerValueBundle{ - { - ValueBundle: reputerValueBundle, - Signature: valueBundleSignature, - Pubkey: hex.EncodeToString(reputerPublicKeyBytes), - }, + lossesMsg := &types.MsgInsertReputerPayload{ + Sender: reputerAddr, + ReputerValueBundle: &types.ReputerValueBundle{ + ValueBundle: reputerValueBundle, + Signature: valueBundleSignature, + Pubkey: hex.EncodeToString(reputerPublicKeyBytes), }, } txResp, err := m.Client.BroadcastTx(ctx, m.AliceAcc, lossesMsg) - require.NoError(m.T, err) + if err != nil { + return err + } _, err = m.Client.WaitForTx(ctx, txResp.TxHash) - require.NoError(m.T, err) + if err != nil { + return err + } + + m.T.Log(time.Now(), "Inserted reputer payload for blockHeight: ", BlockHeightCurrent) + return nil +} +func ValidateQueryNetworkLossBundle(m testCommon.TestConfig, topicId uint64, BlockHeightCurrent int64) { + ctx := context.Background() result, err := m.Client.QueryEmissions().GetNetworkLossBundleAtBlock(ctx, &types.QueryNetworkLossBundleAtBlockRequest{ TopicId: topicId, @@ -226,21 +234,70 @@ func InsertReputerBulk(m testCommon.TestConfig, topic *types.Topic, BlockHeightC }, ) require.NoError(m.T, err) - require.NotNil(m.T, result) + require.NotNil(m.T, result, "Result should not be nil") require.NotNil(m.T, result.LossBundle, "Retrieved data should match inserted data") - } // Register two actors and check their registrations went through func WorkerInferenceAndForecastChecks(m testCommon.TestConfig) { + ctx := context.Background() + m.T.Log(time.Now(), "--- START Worker Inference, Forecast and Reputation test ---") // Nonce: calculate from EpochLastRan + EpochLength topic, err := getNonZeroTopicEpochLastRan(m, 1, 5) if err != nil { - m.T.Log("--- Failed getting a topic that was ran ---") + m.T.Log(time.Now(), "--- Failed getting a topic that was ran ---") require.NoError(m.T, err) } - m.T.Log("--- Insert Worker Bulk ---") - blockHeightCurrent, blockHeightEval := InsertWorkerBulk(m, topic) - m.T.Log("--- Insert Reputer Bulk ---") - InsertReputerBulk(m, topic, blockHeightCurrent, blockHeightEval) + m.T.Log(time.Now(), "--- Insert Worker Bulk ---") + // Waiting for ground truth lag to pass + m.T.Log(time.Now(), "--- Waiting to Insert Reputer Bulk ---") + blockHeightNonce, err := RunWithRetry(m, 3, 2, func() (int64, error) { + topicResponse, err := m.Client.QueryEmissions().GetTopic(ctx, &types.QueryTopicRequest{TopicId: topic.Id}) + if err != nil { + return 0, err + } + topic := topicResponse.Topic + _, err = InsertWorkerBulk(m, topic) // Assuming InsertReputerBulk returns (int, error) + if err != nil { + return 0, err + } + return topic.EpochLastEnded, err + }) + if err != nil { + m.T.Log(time.Now(), "--- Failed inserting worker payload ---") + require.NoError(m.T, err) + } + m.T.Log(time.Now(), fmt.Sprintf("--- Waiting for block %d ---", blockHeightNonce+topic.GroundTruthLag)) + err = m.Client.WaitForBlockHeight(ctx, blockHeightNonce+topic.GroundTruthLag) + if err != nil { + m.T.Log(time.Now(), "--- Failed waiting for ground truth lag ---") + require.NoError(m.T, err) + } + + m.T.Log(time.Now(), "--- Insert Reputer Bulk ---") + err = InsertReputerBulk(m, topic, blockHeightNonce) + if err != nil { + m.T.Log(time.Now(), "--- Failed inserting reputer payload ---") + require.NoError(m.T, err) + } + + m.T.Log(time.Now(), fmt.Sprintf("--- Waiting for block %d ---", blockHeightNonce+topic.GroundTruthLag+topic.EpochLength)) + m.Client.WaitForBlockHeight(ctx, blockHeightNonce+topic.GroundTruthLag+topic.EpochLength) + + ValidateQueryNetworkLossBundle(m, topic.Id, blockHeightNonce) + m.T.Log(time.Now(), "--- END Worker Inference, Forecast and Reputation test ---") +} + +// RunWithRetry retries a function that returns an error, n times +func RunWithRetry(m testCommon.TestConfig, retryCount int, sleep time.Duration, operation func() (int64, error)) (int64, error) { + var err error + for i := 0; i < retryCount; i++ { + val, err := operation() + if err == nil { + return val, nil // Success, no need to retry + } + m.T.Log(time.Now(), fmt.Sprintf("Attempt %d/%d failed, error: %s\n", i+1, retryCount, err)) + time.Sleep(sleep * time.Second) // Optional: wait before retrying + } + return 0, fmt.Errorf("after %d attempts, last error: %s", retryCount, err) } diff --git a/test/invariant/common_test.go b/test/invariant/common_test.go index f7abc082d..77265fb5d 100644 --- a/test/invariant/common_test.go +++ b/test/invariant/common_test.go @@ -66,16 +66,6 @@ func getActorName(seed int, actorIndex int) string { return "run" + strconv.Itoa(seed) + "_actor" + strconv.Itoa(actorIndex) } -// generate a libp2p key name for the actor -func getLibP2pKeyName(actor Actor) string { - return "libp2p_key" + actor.name -} - -// generate a multiaddress for an actor -func getMultiAddressName(actor Actor) string { - return "multiaddress" + actor.name -} - // pick a random topic id that is between 1 and the number of topics func pickRandomTopicId(m *testcommon.TestConfig) (uint64, error) { ctx := context.Background() diff --git a/test/invariant/inferences_test.go b/test/invariant/inferences_test.go index ee510323b..9f13381dd 100644 --- a/test/invariant/inferences_test.go +++ b/test/invariant/inferences_test.go @@ -110,16 +110,13 @@ func insertWorkerBulk( workers []Actor, workerNonce int64, ) bool { + wasErr := true // Get Bundles - workerDataBundles := make([]*emissionstypes.WorkerDataBundle, 0) for _, worker := range workers { - workerDataBundles = append(workerDataBundles, - generateSingleWorkerBundle(m, topic.Id, workerNonce, worker, workers)) + workerData := generateSingleWorkerBundle(m, topic.Id, workerNonce, worker, workers) + wasErr = insertLeaderWorkerBulk(m, data, topic.Id, workerNonce, leaderWorker, workerData) } - if len(workerDataBundles) == 0 { - return true - } - return insertLeaderWorkerBulk(m, data, topic.Id, workerNonce, leaderWorker, workerDataBundles) + return wasErr } // create inferences and forecasts for a worker @@ -141,7 +138,7 @@ func generateSingleWorkerBundle( infererAddress := inferer.addr infererValue := alloraMath.NewDecFromInt64(int64(m.Client.Rand.Intn(300) + 3000)) - // Create a MsgInsertBulkReputerPayload message + // Create a MsgInsertReputerPayload message workerDataBundle := &emissionstypes.WorkerDataBundle{ Worker: infererAddress, InferenceForecastsBundle: &emissionstypes.InferenceForecastBundle{ @@ -181,16 +178,14 @@ func insertLeaderWorkerBulk( topicId uint64, workerNonce int64, leaderWorker Actor, - WorkerDataBundles []*emissionstypes.WorkerDataBundle) bool { + WorkerDataBundles *emissionstypes.WorkerDataBundle, +) bool { wasErr := false - nonce := emissionstypes.Nonce{BlockHeight: workerNonce} - // Create a MsgInsertBulkReputerPayload message - workerMsg := &emissionstypes.MsgInsertBulkWorkerPayload{ - Sender: leaderWorker.addr, - Nonce: &nonce, - TopicId: topicId, - WorkerDataBundles: WorkerDataBundles, + // Create a MsgInsertReputerPayload message + workerMsg := &emissionstypes.MsgInsertWorkerPayload{ + Sender: leaderWorker.addr, + WorkerDataBundle: WorkerDataBundles, } // serialize workerMsg to json and print LeaderAcc, err := m.Client.AccountRegistryGetByName(leaderWorker.name) @@ -226,31 +221,20 @@ func insertReputerBulk( BlockHeight: workerNonce, } valueBundle := generateValueBundle(m, topicId, workers, reputerNonce) - reputerValueBundles := make([]*emissionstypes.ReputerValueBundle, 0) + ctx := context.Background() for _, reputer := range reputers { reputerValueBundle := generateSingleReputerValueBundle(m, reputer, valueBundle) - reputerValueBundles = append(reputerValueBundles, reputerValueBundle) - } - if len(reputerValueBundles) == 0 { - return true - } - reputerValueBundleMsg := generateReputerValueBundleMsg( - topicId, - reputerValueBundles, - leaderReputer.addr, - reputerNonce, - ) - ctx := context.Background() - txResp, err := m.Client.BroadcastTx(ctx, leaderReputer.acc, reputerValueBundleMsg) - requireNoError(m.T, data.failOnErr, err) - wasErr = orErr(wasErr, err) - if wasErr { - return wasErr + txResp, err := m.Client.BroadcastTx(ctx, leaderReputer.acc, reputerValueBundle) + requireNoError(m.T, data.failOnErr, err) + wasErr = orErr(wasErr, err) + if wasErr { + return wasErr + } + _, err = m.Client.WaitForTx(ctx, txResp.TxHash) + requireNoError(m.T, data.failOnErr, err) + wasErr = orErr(wasErr, err) } - _, err = m.Client.WaitForTx(ctx, txResp.TxHash) - requireNoError(m.T, data.failOnErr, err) - wasErr = orErr(wasErr, err) return wasErr } @@ -292,7 +276,7 @@ func generateSingleReputerValueBundle( require.NoError(m.T, err, "Sign should not return an error") reputerPublicKeyBytes := pubKey.Bytes() - // Create a MsgInsertBulkReputerPayload message + // Create a MsgInsertReputerPayload message reputerValueBundle := &emissionstypes.ReputerValueBundle{ ValueBundle: &valueBundle, Signature: valueBundleSignature, @@ -302,23 +286,6 @@ func generateSingleReputerValueBundle( return reputerValueBundle } -// create a MsgInsertBulkReputerPayload message of scores -func generateReputerValueBundleMsg( - topicId uint64, - reputerValueBundles []*emissionstypes.ReputerValueBundle, - leaderReputerAddress string, - reputerNonce *emissionstypes.Nonce) *emissionstypes.MsgInsertBulkReputerPayload { - - return &emissionstypes.MsgInsertBulkReputerPayload{ - Sender: leaderReputerAddress, - TopicId: topicId, - ReputerRequestNonce: &emissionstypes.ReputerRequestNonce{ - ReputerNonce: reputerNonce, - }, - ReputerValueBundles: reputerValueBundles, - } -} - // for every worker, generate a worker attributed value func generateWorkerAttributedValueLosses( m *testcommon.TestConfig, diff --git a/test/invariant/invariants.patch b/test/invariant/invariants.patch index 5a920070d..228049c67 100644 --- a/test/invariant/invariants.patch +++ b/test/invariant/invariants.patch @@ -1,16 +1,16 @@ diff --git a/x/emissions/module/abci.go b/x/emissions/module/abci.go -index 1ca10a02..7a755bac 100644 +index 8f743b31..0511e66d 100644 --- a/x/emissions/module/abci.go +++ b/x/emissions/module/abci.go -@@ -6,6 +6,7 @@ import ( - "sync" +@@ -5,6 +5,7 @@ import ( + "fmt" "cosmossdk.io/errors" + emissionskeeper "github.com/allora-network/allora-chain/x/emissions/keeper" + allorautils "github.com/allora-network/allora-chain/x/emissions/keeper/actor_utils" "github.com/allora-network/allora-chain/x/emissions/module/rewards" - "github.com/allora-network/allora-chain/x/emissions/types" sdk "github.com/cosmos/cosmos-sdk/types" -@@ -13,6 +14,10 @@ import ( +@@ -12,6 +13,10 @@ import ( func EndBlocker(ctx context.Context, am AppModule) error { sdkCtx := sdk.UnwrapSDKContext(ctx) @@ -22,10 +22,10 @@ index 1ca10a02..7a755bac 100644 sdkCtx.Logger().Debug( fmt.Sprintf("\n ---------------- Emissions EndBlock %d ------------------- \n", diff --git a/x/emissions/module/module.go b/x/emissions/module/module.go -index 2cda57ab..3f619551 100644 +index 35906b64..16d5dee4 100644 --- a/x/emissions/module/module.go +++ b/x/emissions/module/module.go -@@ -18,6 +18,15 @@ import ( +@@ -19,6 +19,15 @@ import ( gwruntime "github.com/grpc-ecosystem/grpc-gateway/runtime" ) diff --git a/test/invariant/registration_test.go b/test/invariant/registration_test.go index a439d6fb5..17f81e84c 100644 --- a/test/invariant/registration_test.go +++ b/test/invariant/registration_test.go @@ -33,12 +33,10 @@ func registerWorker( iterLog(m.T, iteration, "registering ", actor, "as worker in topic id", topicId) ctx := context.Background() txResp, err := m.Client.BroadcastTx(ctx, actor.acc, &emissionstypes.MsgRegister{ - Sender: actor.addr, - Owner: actor.addr, // todo pick random other actor - LibP2PKey: getLibP2pKeyName(actor), - MultiAddress: getMultiAddressName(actor), - IsReputer: false, - TopicId: topicId, + Sender: actor.addr, + Owner: actor.addr, // todo pick random other actor + IsReputer: false, + TopicId: topicId, }) requireNoError(m.T, data.failOnErr, err) wasErr = orErr(wasErr, err) @@ -128,12 +126,10 @@ func registerReputer( iterLog(m.T, iteration, "registering ", actor, "as reputer in topic id", topicId) ctx := context.Background() txResp, err := m.Client.BroadcastTx(ctx, actor.acc, &emissionstypes.MsgRegister{ - Sender: actor.addr, - Owner: actor.addr, // todo pick random other actor - LibP2PKey: getLibP2pKeyName(actor), - MultiAddress: getMultiAddressName(actor), - IsReputer: true, - TopicId: topicId, + Sender: actor.addr, + Owner: actor.addr, // todo pick random other actor + IsReputer: true, + TopicId: topicId, }) requireNoError(m.T, data.failOnErr, err) wasErr = orErr(wasErr, err) diff --git a/test/invariant/stake_test.go b/test/invariant/stake_test.go index d3e5f5252..beedf0788 100644 --- a/test/invariant/stake_test.go +++ b/test/invariant/stake_test.go @@ -158,10 +158,10 @@ func findFirstValidStakeRemovalFromChain(m *testcommon.TestConfig) (emissionstyp } blockHeightEnd := blockHeightNow + moduleParams.Params.RemoveStakeDelayWindow for i := blockHeightNow; i < blockHeightEnd; i++ { - query := &emissionstypes.QueryStakeRemovalsForBlockRequest{ + query := &emissionstypes.QueryStakeRemovalsUpUntilBlockRequest{ BlockHeight: i, } - resp, err := m.Client.QueryEmissions().GetStakeRemovalsForBlock(ctx, query) + resp, err := m.Client.QueryEmissions().GetStakeRemovalsUpUntilBlock(ctx, query) if err != nil || resp == nil { continue } @@ -372,10 +372,10 @@ func findFirstValidDelegateStakeRemovalFromChain(m *testcommon.TestConfig) (emis } blockHeightEnd := blockHeightNow + moduleParams.Params.RemoveStakeDelayWindow for i := blockHeightNow; i < blockHeightEnd; i++ { - query := &emissionstypes.QueryDelegateStakeRemovalsForBlockRequest{ + query := &emissionstypes.QueryDelegateStakeRemovalsUpUntilBlockRequest{ BlockHeight: i, } - resp, err := m.Client.QueryEmissions().GetDelegateStakeRemovalsForBlock(ctx, query) + resp, err := m.Client.QueryEmissions().GetDelegateStakeRemovalsUpUntilBlock(ctx, query) if err != nil || resp == nil { continue } diff --git a/test/invariant/topics_test.go b/test/invariant/topics_test.go index a04c384a8..539215048 100644 --- a/test/invariant/topics_test.go +++ b/test/invariant/topics_test.go @@ -23,19 +23,16 @@ func createTopic( wasErr := false iterLog(m.T, iteration, actor, "creating new topic") createTopicRequest := &emissionstypes.MsgCreateNewTopic{ - Creator: actor.addr, - Metadata: fmt.Sprintf("Created topic iteration %d", iteration), - LossLogic: "bafybeid7mmrv5qr4w5un6c64a6kt2y4vce2vylsmfvnjt7z2wodngknway", - LossMethod: "loss-calculation-eth.wasm", - InferenceLogic: "bafybeigx43n7kho3gslauwtsenaxehki6ndjo3s63ahif3yc5pltno3pyq", - InferenceMethod: "allora-inference-function.wasm", - EpochLength: data.epochLength, - GroundTruthLag: data.epochLength, - DefaultArg: "ETH", - PNorm: alloraMath.NewDecFromInt64(3), - AlphaRegret: alloraMath.MustNewDecFromString("0.1"), - AllowNegative: true, - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: actor.addr, + Metadata: fmt.Sprintf("Created topic iteration %d", iteration), + LossMethod: "mse", + EpochLength: data.epochLength, + GroundTruthLag: data.epochLength, + WorkerSubmissionWindow: 10, + PNorm: alloraMath.NewDecFromInt64(3), + AlphaRegret: alloraMath.MustNewDecFromString("0.1"), + AllowNegative: true, + Epsilon: alloraMath.MustNewDecFromString("0.01"), } ctx := context.Background() diff --git a/test/invariant/transitions_test.go b/test/invariant/transitions_test.go index 891fdc498..8e7eb05bc 100644 --- a/test/invariant/transitions_test.go +++ b/test/invariant/transitions_test.go @@ -94,9 +94,9 @@ func pickTransitionWithWeight(m *testcommon.TestConfig) StateTransition { // unstakeDelegator: delegateStake // cancelStakeRemoval: unstakeReputer // cancelDelegateStakeRemoval: unstakeDelegator -// collectDelegatorRewards: delegateStake, fundTopic, InsertBulkWorkerPayload, InsertBulkReputerPayload -// InsertBulkWorkerPayload: RegisterWorkerForTopic, FundTopic -// InsertBulkReputerPayload: RegisterReputerForTopic, InsertBulkWorkerPayload +// collectDelegatorRewards: delegateStake, fundTopic, InsertWorkerPayload, InsertReputerPayload +// InsertWorkerPayload: RegisterWorkerForTopic, FundTopic +// InsertReputerPayload: RegisterReputerForTopic, InsertWorkerPayload func canTransitionOccur(m *testcommon.TestConfig, data *SimulationData, transition StateTransition) bool { switch transition.name { case "unregisterWorker": diff --git a/test/local_testnet_l1.sh b/test/local_testnet_l1.sh index 939cf1cf5..4a69337f4 100755 --- a/test/local_testnet_l1.sh +++ b/test/local_testnet_l1.sh @@ -4,6 +4,22 @@ set -eu #e # Ensure we're in integration folder cd "$(dirname "$0")" +# Function to check if a command exists +check_command() { + if ! command -v "$1" &> /dev/null; then + echo "Error: $1 is not installed." + exit 1 + fi +} + +# List of required commands +commands=("docker" "jq" "envsubst" "curl") + +# Check each command +for cmd in "${commands[@]}"; do + check_command "$cmd" +done + DOCKER_IMAGE=allorad VALIDATOR_NUMBER="${VALIDATOR_NUMBER:-3}" VALIDATOR_PREFIX=validator @@ -70,6 +86,13 @@ docker run \ --entrypoint=/data/generate_genesis.sh \ $DOCKER_IMAGE > /dev/null 2>&1 +echo "Ensure permissions on data folder after genesis generation" +docker run \ + -u 0:0 \ + -v ${LOCALNET_DATADIR}:/data \ + --entrypoint=chmod \ + $DOCKER_IMAGE -R 777 /data + echo "Updating expedited_voting_period in genesis.json" genesis_file="${LOCALNET_DATADIR}/genesis/config/genesis.json" tmp_file=$(mktemp) @@ -108,21 +131,6 @@ for ((i=0; i<$VALIDATOR_NUMBER; i++)); do --env DAEMON_NAME=allorad \ $DOCKER_IMAGE \ init /usr/local/bin/allorad - - echo "Setting vintegration upgrade for $valName" - docker run -t \ - -u $(id -u):$(id -g) \ - -v ${LOCALNET_DATADIR}:/data \ - --entrypoint=mkdir \ - $DOCKER_IMAGE \ - -p /data/${valName}/cosmovisor/upgrades/vintegration/bin - - docker run -t \ - -u $(id -u):$(id -g) \ - -v ${LOCALNET_DATADIR}:/data \ - --entrypoint=cp \ - $DOCKER_IMAGE \ - /usr/local/bin/allorad-integration /data/${valName}/cosmovisor/upgrades/vintegration/bin/allorad done echo "Generate L1 peers, put them in persisent-peers and in genesis.json" diff --git a/test/local_testnet_upgrade_l1.sh b/test/local_testnet_upgrade_l1.sh new file mode 100755 index 000000000..66f83ecaf --- /dev/null +++ b/test/local_testnet_upgrade_l1.sh @@ -0,0 +1,245 @@ +#!/bin/bash +set -eu #e + +# Ensure we're in integration folder +cd "$(dirname "$0")" + +# Function to check if a command exists +check_command() { + if ! command -v "$1" &> /dev/null; then + echo "Error: $1 is not installed." + exit 1 + fi +} + +# List of required commands +commands=("docker" "jq" "envsubst" "curl") + +# Check each command +for cmd in "${commands[@]}"; do + check_command "$cmd" +done + +DOCKER_IMAGE=allorad +VALIDATOR_NUMBER="${VALIDATOR_NUMBER:-3}" +VALIDATOR_PREFIX=validator +NETWORK_PREFIX="192.168.250" +VALIDATORS_IP_START=10 +VALIDATORS_RPC_PORT_START=26657 +VALIDATORS_API_PORT_START=1317 +HEADS_IP_START=20 +CHAIN_ID="${CHAIN_ID:-devnet}" +LOCALNET_DATADIR="$(pwd)/$CHAIN_ID" +UPGRADE_VERSION="v0.3.0" + +ACCOUNTS_TOKENS=1000000 + +ENV_L1="${LOCALNET_DATADIR}/.env" +L1_COMPOSE=${LOCALNET_DATADIR}/compose_l1.yaml + +if [ -d "$LOCALNET_DATADIR" ]; then + echo "Folder $LOCALNET_DATADIR already exist, need to delete it before running the script." + read -p "Stop validators and Delete $LOCALNET_DATADIR folder??[y/N] " -n 1 -r + echo # (optional) move to a new line + if [[ $REPLY =~ ^[Yy]$ ]]; then + # Stop if containers are already up + [ $(docker ps |wc -l) -gt 1 ] && docker compose -f $L1_COMPOSE down + rm -rf $LOCALNET_DATADIR + fi +fi +mkdir -p $LOCALNET_DATADIR + +UID_GID="$(id -u):$(id -g)" +# echo "NETWORK_PREFIX=$NETWORK_PREFIX" >> ${ENV_L1} +echo "CHAIN_ID=$CHAIN_ID" >> ${ENV_L1} +echo "ALLORA_RPC=http://${NETWORK_PREFIX}.${VALIDATORS_IP_START}:26657" >> ${ENV_L1} # Take validator0 + +echo "Build the docker image" +pushd .. +docker build -t $DOCKER_IMAGE -f ./Dockerfile.upgrade . +popd + +echo "Download generate_genesis.sh from testnet" +mkdir -p ${LOCALNET_DATADIR} +curl -so- https://raw.githubusercontent.com/allora-network/networks/main/${CHAIN_ID}/generate_genesis.sh > ${LOCALNET_DATADIR}/generate_genesis.sh +chmod a+x ${LOCALNET_DATADIR}/generate_genesis.sh + +echo "Set permissions on data folder" +docker run \ + -u 0:0 \ + -v ${LOCALNET_DATADIR}:/data \ + --entrypoint=chown \ + $DOCKER_IMAGE -R $(id -u):$(id -g) /data + +docker run \ + -u 0:0 \ + -v ${LOCALNET_DATADIR}:/data \ + --entrypoint=chmod \ + $DOCKER_IMAGE -R 777 /data + +echo "Generate genesis and accounts" +docker run \ + -u $(id -u):$(id -g) \ + -v ${LOCALNET_DATADIR}:/data \ + -e COMMON_HOME_DIR=/data \ + -e HOME=/data \ + -e VALIDATOR_NUMBER=$VALIDATOR_NUMBER \ + --entrypoint=/data/generate_genesis.sh \ + $DOCKER_IMAGE > /dev/null 2>&1 + +echo "Ensure permissions on data folder after genesis generation" +docker run \ + -u 0:0 \ + -v ${LOCALNET_DATADIR}:/data \ + --entrypoint=chmod \ + $DOCKER_IMAGE -R 777 /data + +echo "Updating expedited_voting_period in genesis.json" +genesis_file="${LOCALNET_DATADIR}/genesis/config/genesis.json" +tmp_file=$(mktemp) +jq '.app_state.gov.params.expedited_voting_period = "20s" | .app_state.gov.params.voting_period = "20s"' "$genesis_file" > "$tmp_file" && mv "$tmp_file" "$genesis_file" +echo "Updating remove_stake_delay_window in genesis.json" +jq '.app_state.emissions.params.remove_stake_delay_window = "5"' "$genesis_file" > "$tmp_file" && mv "$tmp_file" "$genesis_file" + +echo "Whitelist faucet account" +FAUCET_ADDRESS=$(docker run -t \ + -u $(id -u):$(id -g) \ + -v ${LOCALNET_DATADIR}:/data \ + --entrypoint=allorad \ + -e HOME=/data/genesis \ + $DOCKER_IMAGE \ + --home=/data/genesis keys show faucet -a --keyring-backend=test) +FAUCET_ADDRESS="${FAUCET_ADDRESS%%[[:cntrl:]]}" + +echo FAUCET_ADDRESS=$FAUCET_ADDRESS >> ${ENV_L1} +docker run -t \ + -u $(id -u):$(id -g) \ + -v ${LOCALNET_DATADIR}:/data \ + --entrypoint=dasel \ + $DOCKER_IMAGE \ + put -t string -v "$FAUCET_ADDRESS" 'app_state.emissions.core_team_addresses.append()' -f /data/genesis/config/genesis.json +echo "Faucet addr: $FAUCET_ADDRESS" + +for ((i=0; i<$VALIDATOR_NUMBER; i++)); do + valName="${VALIDATOR_PREFIX}${i}" + echo "Running cosmovisor init for $valName" + docker run -t \ + -u $(id -u):$(id -g) \ + -v ${LOCALNET_DATADIR}:/data \ + --entrypoint=cosmovisor \ + --env HOME=/data/${valName} \ + --env DAEMON_HOME=/data/${valName} \ + --env DAEMON_NAME=allorad \ + $DOCKER_IMAGE \ + init /usr/local/bin/allorad + + echo "Setting $UPGRADE_VERSION upgrade for $valName" + docker run -t \ + -u $(id -u):$(id -g) \ + -v ${LOCALNET_DATADIR}:/data \ + --entrypoint=mkdir \ + $DOCKER_IMAGE \ + -p /data/${valName}/cosmovisor/upgrades/${UPGRADE_VERSION}/bin + + docker run -t \ + -u $(id -u):$(id -g) \ + -v ${LOCALNET_DATADIR}:/data \ + --entrypoint=cp \ + $DOCKER_IMAGE \ + /usr/local/bin/allorad-${UPGRADE_VERSION} /data/${valName}/cosmovisor/upgrades/${UPGRADE_VERSION}/bin/allorad +done + +echo "Generate L1 peers, put them in persisent-peers and in genesis.json" +PEERS="" +for ((i=0; i<$VALIDATOR_NUMBER; i++)); do + valName="${VALIDATOR_PREFIX}${i}" + ipAddress="${NETWORK_PREFIX}.$((VALIDATORS_IP_START+i))" + addr=$(docker run -t \ + -v ${LOCALNET_DATADIR}:/data \ + -u $(id -u):$(id -g) \ + --entrypoint=allorad \ + -e HOME=/data/${valName} \ + $DOCKER_IMAGE \ + --home=/data/${valName} tendermint show-node-id) + addr="${addr%%[[:cntrl:]]}" + delim=$([ $i -lt $(($VALIDATOR_NUMBER - 1)) ] && printf "," || printf "") + PEERS="${PEERS}${addr}@${ipAddress}:26656${delim}" +done + +echo "PEERS=$PEERS" >> ${ENV_L1} +echo "Generate docker compose file" +NETWORK_PREFIX=$NETWORK_PREFIX envsubst < compose_l1_header.yaml > $L1_COMPOSE +for ((i=0; i<$VALIDATOR_NUMBER; i++)); do + ipAddress="${NETWORK_PREFIX}.$((VALIDATORS_IP_START+i))" \ + moniker="${VALIDATOR_PREFIX}${i}" \ + validatorPort=$((VALIDATORS_RPC_PORT_START+i)) \ + validatorApiPort=$((VALIDATORS_API_PORT_START+i)) \ + PEERS=$PEERS \ + NETWORK_PREFIX=$NETWORK_PREFIX \ + LOCALNET_DATADIR=$LOCALNET_DATADIR \ + UID_GID=$UID_GID \ + envsubst < validator.tmpl >> $L1_COMPOSE +done + +echo "symlinking genesis.json to genesis/config/genesis.json" +rm ${LOCALNET_DATADIR}/genesis.json +ln -s ${LOCALNET_DATADIR}/genesis/config/genesis.json ${LOCALNET_DATADIR}/genesis.json + +echo "Launching the network" +docker compose -f $L1_COMPOSE up -d + +echo "Waiting validator is up" +curl -o /dev/null --connect-timeout 5 \ + --retry 10 \ + --retry-delay 10 \ + --retry-all-errors \ + http://localhost:$VALIDATORS_RPC_PORT_START/status + +echo "Checking the network is up and running" +heights=() +validators=() +for ((v=0; v<$VALIDATOR_NUMBER; v++)); do + height=$(curl -s http://localhost:$((VALIDATORS_RPC_PORT_START+v))/status|jq -r .result.sync_info.latest_block_height) + heights+=($height) + echo "Got height: ${heights[$v]} from validator: http://localhost:$((VALIDATORS_RPC_PORT_START+v))" + validators+=("localhost:$((VALIDATORS_RPC_PORT_START+v))") + sleep 5 +done + +echo "Populate validators.json with validators addresses" +jq --compact-output --null-input '$ARGS.positional' --args -- "${validators[@]}" > ${LOCALNET_DATADIR}/validators.json + +chain_status=0 +if [ ${#heights[@]} -eq $VALIDATOR_NUMBER ]; then + for ((v=0; v<$((VALIDATOR_NUMBER-1)); v++)); do + if [ ${heights[$v]} -lt ${heights[$((v+1))]} ]; then + chain_status=$((chain_status+1)) + fi + done +fi + +docker run -t \ + -u $(id -u):$(id -g) \ + -v ${LOCALNET_DATADIR}:/data \ + -e HOME=/data/${valName} \ + --entrypoint=allorad \ + $DOCKER_IMAGE \ + --home /data/genesis config set client keyring-backend test + +if [ $chain_status -eq $((VALIDATOR_NUMBER-1)) ]; then + echo "Chain is up and running" + echo + echo "Some useful commands:" + echo " - 'docker compose -f $L1_COMPOSE logs -f' -- To see logs of the containers" + echo " - 'docker compose -f $L1_COMPOSE logs -f validator[0-...]' -- To see logs of the specified validator" + echo " - 'docker compose -f $L1_COMPOSE down' -- To stop all the validators" + echo " - http://localhost:2665[7-...] -- Validators RPC address, port = 26657 + VALIDATOR_NUMBER" + echo " - - 'curl http://localhost:26658/status|jq .' -- To get validator1 (26657+1=26658) RPC address" + echo "To use allorad commands, you can specify \'$LOCALNET_DATADIR/genesis\' as --home, eg.:" + echo " - 'allorad --home $LOCALNET_DATADIR/genesis status'" +else + echo "Chain is not producing blocks" + echo "If run localy you can check the logs with: docker logs allorad_validator_0" + echo "and connect to the validators ..." + exit 1 +fi diff --git a/test/stress/create_topic_test.go b/test/stress/create_topic_test.go index aa31027b8..195d02f53 100644 --- a/test/stress/create_topic_test.go +++ b/test/stress/create_topic_test.go @@ -18,19 +18,16 @@ func createTopic( ) (topicId uint64) { ctx := context.Background() createTopicRequest := &emissionstypes.MsgCreateNewTopic{ - Creator: creator.aa.addr, - Metadata: "ETH 24h Prediction", - LossLogic: "bafybeid7mmrv5qr4w5un6c64a6kt2y4vce2vylsmfvnjt7z2wodngknway", - LossMethod: "loss-calculation-eth.wasm", - InferenceLogic: "bafybeigx43n7kho3gslauwtsenaxehki6ndjo3s63ahif3yc5pltno3pyq", - InferenceMethod: "allora-inference-function.wasm", - EpochLength: epochLength, - GroundTruthLag: epochLength, - DefaultArg: "ETH", - PNorm: alloraMath.NewDecFromInt64(3), - AlphaRegret: alloraMath.NewDecFromInt64(1), - AllowNegative: true, - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: creator.aa.addr, + Metadata: "ETH 24h Prediction", + LossMethod: "mse", + EpochLength: epochLength, + GroundTruthLag: epochLength, + WorkerSubmissionWindow: epochLength, + PNorm: alloraMath.NewDecFromInt64(3), + AlphaRegret: alloraMath.NewDecFromInt64(1), + AllowNegative: true, + Epsilon: alloraMath.MustNewDecFromString("0.01"), } txResp, err := m.Client.BroadcastTx(ctx, creator.aa.acc, createTopicRequest) diff --git a/test/stress/registration_test.go b/test/stress/registration_test.go index da1e2f7ae..b90b51eda 100644 --- a/test/stress/registration_test.go +++ b/test/stress/registration_test.go @@ -2,8 +2,6 @@ package stress_test import ( "context" - "math/rand" - "strconv" testCommon "github.com/allora-network/allora-chain/test/common" emissionstypes "github.com/allora-network/allora-chain/x/emissions/types" @@ -18,12 +16,10 @@ func RegisterReputerForTopic( ctx := context.Background() registerReputerRequest := &emissionstypes.MsgRegister{ - Sender: reputer.aa.addr, - Owner: reputer.aa.addr, - LibP2PKey: "reputerkey" + strconv.Itoa(rand.Intn(10000000000)), - MultiAddress: "reputermultiaddress", - TopicId: topicId, - IsReputer: true, + Sender: reputer.aa.addr, + Owner: reputer.aa.addr, + TopicId: topicId, + IsReputer: true, } txResp, err := m.Client.BroadcastTx(ctx, reputer.aa.acc, registerReputerRequest) if err != nil { @@ -50,12 +46,10 @@ func RegisterWorkerForTopic( ) error { ctx := context.Background() registerWorkerRequest := &emissionstypes.MsgRegister{ - Sender: worker.aa.addr, - Owner: worker.aa.addr, - LibP2PKey: "workerkey" + strconv.Itoa(rand.Intn(10000000000)), - MultiAddress: "workermultiaddress", - TopicId: topicId, - IsReputer: false, + Sender: worker.aa.addr, + Owner: worker.aa.addr, + TopicId: topicId, + IsReputer: false, } txResp, err := m.Client.BroadcastTx(ctx, worker.aa.acc, registerWorkerRequest) if err != nil { diff --git a/test/stress/reputers_test.go b/test/stress/reputers_test.go index 97415f954..f6dd9bd60 100644 --- a/test/stress/reputers_test.go +++ b/test/stress/reputers_test.go @@ -123,7 +123,7 @@ func generateInsertReputerBulk( startReputer := time.Now() for i := 0; i < retryTimes; i++ { - err = insertReputerBulk(m, topic, leaderReputerAccountName, reputers, workers, blockHeightCurrent, blockHeightEval) + err = insertReputerPayload(m, topic, leaderReputerAccountName, reputers, workers, blockHeightCurrent, blockHeightEval) if err != nil { if strings.Contains(err.Error(), "nonce already fulfilled") || strings.Contains(err.Error(), "nonce still unfulfilled") { @@ -230,7 +230,7 @@ func generateSingleReputerValueBundle( require.NoError(m.T, err, "Sign should not return an error") reputerPublicKeyBytes := pubKey.Bytes() - // Create a MsgInsertBulkReputerPayload message + // Create a MsgInsertReputerPayload message reputerValueBundle := &emissionstypes.ReputerValueBundle{ ValueBundle: &valueBundle, Signature: valueBundleSignature, @@ -240,25 +240,8 @@ func generateSingleReputerValueBundle( return reputerValueBundle } -// create a MsgInsertBulkReputerPayload message of scores -func generateReputerValueBundleMsg( - topicId uint64, - reputerValueBundles []*emissionstypes.ReputerValueBundle, - leaderReputerAddress string, - reputerNonce *emissionstypes.Nonce) *emissionstypes.MsgInsertBulkReputerPayload { - - return &emissionstypes.MsgInsertBulkReputerPayload{ - Sender: leaderReputerAddress, - TopicId: topicId, - ReputerRequestNonce: &emissionstypes.ReputerRequestNonce{ - ReputerNonce: reputerNonce, - }, - ReputerValueBundles: reputerValueBundles, - } -} - // reputers submit their assessment of the quality of workers' work compared to ground truth -func insertReputerBulk( +func insertReputerPayload( m testCommon.TestConfig, topic *emissionstypes.Topic, leaderReputerAccountName string, @@ -273,34 +256,26 @@ func insertReputerBulk( reputerNonce := &emissionstypes.Nonce{ BlockHeight: BlockHeightCurrent, } - leaderReputer := reputerAddresses[leaderReputerAccountName] + ctx := context.Background() valueBundle := generateValueBundle(topicId, workerAddresses, reputerNonce) - reputerValueBundles := make([]*emissionstypes.ReputerValueBundle, 0) for reputerAddressName := range reputerAddresses { reputer := reputerAddresses[reputerAddressName] reputerValueBundle := generateSingleReputerValueBundle(m, reputerAddressName, reputer.addr, valueBundle) - reputerValueBundles = append(reputerValueBundles, reputerValueBundle) - } - reputerValueBundleMsg := generateReputerValueBundleMsg( - topicId, - reputerValueBundles, - leaderReputer.addr, - reputerNonce, - ) - LeaderAcc, err := m.Client.AccountRegistryGetByName(leaderReputerAccountName) - if err != nil { - m.T.Log(topicLog(topicId, "Error getting leader worker account: ", leaderReputerAccountName, " - ", err)) - return err - } - ctx := context.Background() - txResp, err := m.Client.BroadcastTx(ctx, LeaderAcc, reputerValueBundleMsg) - if err != nil { - m.T.Log(topicLog(topicId, "Error broadcasting reputer value bundle: ", err)) - return err + senderAcc, err := m.Client.AccountRegistryGetByName(reputerAddressName) + if err != nil { + m.T.Log(topicLog(topicId, "Error getting leader worker account: ", leaderReputerAccountName, " - ", err)) + return err + } + txResp, err := m.Client.BroadcastTx(ctx, senderAcc, reputerValueBundle) + if err != nil { + m.T.Log(topicLog(topicId, "Error broadcasting reputer value bundle: ", err)) + return err + } + _, err = m.Client.WaitForTx(ctx, txResp.TxHash) + require.NoError(m.T, err) } - _, err = m.Client.WaitForTx(ctx, txResp.TxHash) - require.NoError(m.T, err) + return nil } diff --git a/test/stress/workers_test.go b/test/stress/workers_test.go index 3497e0835..428ce7d9e 100644 --- a/test/stress/workers_test.go +++ b/test/stress/workers_test.go @@ -91,21 +91,11 @@ func generateInsertWorkerBundle( retryTimes int, makeReport bool, ) (insertedBlockHeight int64, err error) { - leaderWorkerAccountName, err := pickRandomKeyFromMap(workers) - if err != nil { - m.T.Log(topicLog(topic.Id, "Error getting random worker address: ", err)) - if makeReport { - saveReputerError(topic.Id, leaderWorkerAccountName, err) - saveTopicError(topic.Id, err) - } - return 0, err - } - blockHeightCurrent := topic.EpochLastEnded + topic.EpochLength startWorker := time.Now() for i := 0; i < retryTimes; i++ { - err = insertWorkerBulk(m, topic, leaderWorkerAccountName, workers, blockHeightCurrent) + err = insertWorkerPayloads(m, topic, workers, blockHeightCurrent) if err != nil { if strings.Contains(err.Error(), "nonce already fulfilled") || strings.Contains(err.Error(), "nonce still unfulfilled") { @@ -114,49 +104,61 @@ func generateInsertWorkerBundle( topic, err = getLastTopic(ctx, m.Client.QueryEmissions(), topic.Id) if err == nil { blockHeightCurrent = topic.EpochLastEnded + topic.EpochLength - m.T.Log(topicLog(topic.Id, "Reset ", leaderWorkerAccountName, "blockHeight to (", blockHeightCurrent, ")")) + m.T.Log(topicLog(topic.Id, "Reset blockHeight to (", blockHeightCurrent, ")")) } else { m.T.Log(topicLog(topic.Id, "Error getting topic!")) if makeReport { - saveWorkerError(topic.Id, leaderWorkerAccountName, err) saveTopicError(topic.Id, err) } return blockHeightCurrent, err } } else { - m.T.Log(topicLog(topic.Id, "Error inserting worker bulk: ", err)) + m.T.Log(topicLog(topic.Id, "Error inserting worker payloads: ", err)) if makeReport { - saveWorkerError(topic.Id, leaderWorkerAccountName, err) saveTopicError(topic.Id, err) } return blockHeightCurrent, err } } else { - m.T.Log(topicLog(topic.Id, "Inserted worker bulk, blockHeight: ", blockHeightCurrent, " with ", len(workers), " workers")) - elapsedBulk := time.Since(startWorker) - m.T.Log(topicLog(topic.Id, "Insert Worker ", leaderWorkerAccountName, " ", blockHeightCurrent, " Elapsed time:", elapsedBulk)) + m.T.Log(topicLog(topic.Id, "Inserted worker payloads, blockHeight: ", blockHeightCurrent, " with ", len(workers), " workers")) + elapsedPayloads := time.Since(startWorker) + m.T.Log(topicLog(topic.Id, "Insert Worker ", blockHeightCurrent, " Elapsed time:", elapsedPayloads)) return blockHeightCurrent, nil } } return blockHeightCurrent, err } -// Inserts bulk inference and forecast data for a worker -func insertWorkerBulk( +// Inserts inference and forecast data for a worker +func insertWorkerPayloads( m testCommon.TestConfig, topic *emissionstypes.Topic, - leaderWorkerAccountName string, workers map[string]AccountAndAddress, blockHeight int64, ) error { // Get Bundles - workerDataBundles := make([]*emissionstypes.WorkerDataBundle, 0) for key := range workers { - workerDataBundles = append(workerDataBundles, - generateSingleWorkerBundle(m, topic.Id, blockHeight, key, workers)) + payload := generateSingleWorkerBundle(m, topic.Id, blockHeight, key, workers) + + // serialize workerMsg to json and print + senderAcc, err := m.Client.AccountRegistryGetByName(key) + if err != nil { + m.T.Log(topicLog(topic.Id, "Error getting leader worker account: ", senderAcc, " - ", err)) + return err + } + ctx := context.Background() + txResp, err := m.Client.BroadcastTx(ctx, senderAcc, payload) + if err != nil { + m.T.Log(topicLog(topic.Id, "Error broadcasting worker payload: ", err)) + return err + } + _, err = m.Client.WaitForTx(ctx, txResp.TxHash) + if err != nil { + m.T.Log(topicLog(topic.Id, "Error waiting for worker payload: ", err)) + return err + } } - leaderWorker := workers[leaderWorkerAccountName] - return insertLeaderWorkerBulk(m, topic.Id, blockHeight, leaderWorkerAccountName, leaderWorker.addr, workerDataBundles) + return nil } // create inferences and forecasts for a worker @@ -178,7 +180,7 @@ func generateSingleWorkerBundle( infererAddress := workers[workerAddressName].addr infererValue := alloraMath.NewDecFromInt64(int64(rand.Intn(300) + 3000)) - // Create a MsgInsertBulkReputerPayload message + // Create a MsgInsertReputerPayload message workerDataBundle := &emissionstypes.WorkerDataBundle{ Worker: infererAddress, InferenceForecastsBundle: &emissionstypes.InferenceForecastBundle{ @@ -211,43 +213,6 @@ func generateSingleWorkerBundle( return workerDataBundle } -// Inserts worker bulk, given a topic, blockHeight, and leader worker address (which should exist in the keyring) -func insertLeaderWorkerBulk( - m testCommon.TestConfig, - topicId uint64, - blockHeight int64, - leaderWorkerAccountName, leaderWorkerAddress string, - WorkerDataBundles []*emissionstypes.WorkerDataBundle) error { - - nonce := emissionstypes.Nonce{BlockHeight: blockHeight} - - // Create a MsgInsertBulkReputerPayload message - workerMsg := &emissionstypes.MsgInsertBulkWorkerPayload{ - Sender: leaderWorkerAddress, - Nonce: &nonce, - TopicId: topicId, - WorkerDataBundles: WorkerDataBundles, - } - // serialize workerMsg to json and print - LeaderAcc, err := m.Client.AccountRegistryGetByName(leaderWorkerAccountName) - if err != nil { - m.T.Log(topicLog(topicId, "Error getting leader worker account: ", leaderWorkerAccountName, " - ", err)) - return err - } - ctx := context.Background() - txResp, err := m.Client.BroadcastTx(ctx, LeaderAcc, workerMsg) - if err != nil { - m.T.Log(topicLog(topicId, "Error broadcasting worker bulk: ", err)) - return err - } - _, err = m.Client.WaitForTx(ctx, txResp.TxHash) - if err != nil { - m.T.Log(topicLog(topicId, "Error waiting for worker bulk: ", err)) - return err - } - return nil -} - // check that workers balances have risen due to rewards being paid out func checkWorkersReceivedRewards( m testCommon.TestConfig, diff --git a/test/testutil/inEpsilon.go b/test/testutil/inEpsilon.go index 57b4a3e79..322b0d0b2 100644 --- a/test/testutil/inEpsilon.go +++ b/test/testutil/inEpsilon.go @@ -7,36 +7,54 @@ import ( require "github.com/stretchr/testify/require" ) -func InEpsilon(t *testing.T, value alloraMath.Dec, target string, epsilon string) { - epsilonDec := alloraMath.MustNewDecFromString(epsilon) - targetDec := alloraMath.MustNewDecFromString(target) +func InEpsilon(t *testing.T, value alloraMath.Dec, target alloraMath.Dec, epsilon alloraMath.Dec) { one := alloraMath.MustNewDecFromString("1") - lowerMultiplier, err := one.Sub(epsilonDec) + lowerMultiplier, err := one.Sub(epsilon) require.NoError(t, err) - lowerBound, err := targetDec.Mul(lowerMultiplier) + lowerBound, err := target.Mul(lowerMultiplier) require.NoError(t, err) - upperMultiplier, err := one.Add(epsilonDec) + upperMultiplier, err := one.Add(epsilon) require.NoError(t, err) - upperBound, err := targetDec.Mul(upperMultiplier) + upperBound, err := target.Mul(upperMultiplier) require.NoError(t, err) if lowerBound.Lt(upperBound) { // positive values, lower < value < upper - require.True(t, value.Gte(lowerBound), "value: %s, lowerBound: %s", value.String(), lowerBound.String()) - require.True(t, value.Lte(upperBound), "value: %s, upperBound: %s", value.String(), upperBound.String()) + require.True( + t, value.Gte(lowerBound), + "value: %s, target: %s, lowerBound: %s", + value.String(), target.String(), lowerBound.String(), + ) + require.True( + t, value.Lte(upperBound), + "value: %s, target %s, upperBound: %s", + value.String(), target.String(), upperBound.String(), + ) } else { // negative values, upper < value < lower - require.True(t, value.Lte(lowerBound), "value: %s, lowerBound: %s", value.String(), lowerBound.String()) - require.True(t, value.Gte(upperBound), "value: %s, upperBound: %s", value.String(), upperBound.String()) + require.True( + t, value.Lte(lowerBound), + "value: %s, target %s, lowerBound: %s", + value.String(), target.String(), lowerBound.String(), + ) + require.True( + t, value.Gte(upperBound), + "value: %s, target %s, upperBound: %s", + value.String(), target.String(), upperBound.String(), + ) } } func InEpsilon2(t *testing.T, value alloraMath.Dec, target string) { - InEpsilon(t, value, target, "0.01") + epsilonDec := alloraMath.MustNewDecFromString("0.01") + targetDec := alloraMath.MustNewDecFromString(target) + InEpsilon(t, value, targetDec, epsilonDec) } func InEpsilon3(t *testing.T, value alloraMath.Dec, target string) { - InEpsilon(t, value, target, "0.001") + epsilonDec := alloraMath.MustNewDecFromString("0.001") + targetDec := alloraMath.MustNewDecFromString(target) + InEpsilon(t, value, targetDec, epsilonDec) } /*unused @@ -45,5 +63,11 @@ func InEpsilon4(t *testing.T, value alloraMath.Dec, target string) { }*/ func InEpsilon5(t *testing.T, value alloraMath.Dec, target string) { - InEpsilon(t, value, target, "0.00001") + epsilonDec := alloraMath.MustNewDecFromString("0.00001") + targetDec := alloraMath.MustNewDecFromString(target) + InEpsilon(t, value, targetDec, epsilonDec) +} + +func InEpsilon5Dec(t *testing.T, value alloraMath.Dec, target alloraMath.Dec) { + InEpsilon(t, value, target, alloraMath.MustNewDecFromString("0.00001")) } diff --git a/test/testutil/testdata.go b/test/testutil/testdata.go new file mode 100644 index 000000000..6a95c395c --- /dev/null +++ b/test/testutil/testdata.go @@ -0,0 +1,1621 @@ +package testutil + +import ( + "encoding/csv" + "fmt" + "strings" + + alloraMath "github.com/allora-network/allora-chain/math" + "github.com/allora-network/allora-chain/x/emissions/keeper" + inferencesynthesis "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis" + emissionstypes "github.com/allora-network/allora-chain/x/emissions/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func GetSimulatedValuesGetterForEpoch( + epoch string, + headers string, +) func(header string) alloraMath.Dec { + r := csv.NewReader(strings.NewReader(headers + "\n" + epoch + "\n")) + headersRead, err := r.Read() + if err != nil { + panic(err) + } + valuesRead, err := r.Read() + if err != nil { + panic(err) + } + simulatedValuesDec := make(map[string]alloraMath.Dec) + if len(headersRead) != len(valuesRead) { + panic("Header and values length mismatch") + } + for i := 0; i < len(headersRead); i++ { + simulatedValuesDec[headersRead[i]] = alloraMath.MustNewDecFromString(valuesRead[i]) + } + + return func(header string) alloraMath.Dec { + value, exists := simulatedValuesDec[header] + if !exists { + panic(fmt.Sprintf("Header '%s' not found in simulated values map", header)) + } + return value + } +} + +func GetSimulatedValuesGetterForEpochs() map[int]func(header string) alloraMath.Dec { + const simulatorHeaders = "target,inference_0,inference_1,inference_2,inference_3,inference_4,forecasted_loss_0_for_0,forecasted_loss_0_for_1,forecasted_loss_0_for_2,forecasted_loss_0_for_3,forecasted_loss_0_for_4,forecasted_loss_1_for_0,forecasted_loss_1_for_1,forecasted_loss_1_for_2,forecasted_loss_1_for_3,forecasted_loss_1_for_4,forecasted_loss_2_for_0,forecasted_loss_2_for_1,forecasted_loss_2_for_2,forecasted_loss_2_for_3,forecasted_loss_2_for_4,forecast_implied_inference_0,forecast_implied_inference_1,forecast_implied_inference_2,forecast_implied_inference_0_oneout_0,forecast_implied_inference_0_oneout_1,forecast_implied_inference_0_oneout_2,forecast_implied_inference_0_oneout_3,forecast_implied_inference_0_oneout_4,forecast_implied_inference_1_oneout_0,forecast_implied_inference_1_oneout_1,forecast_implied_inference_1_oneout_2,forecast_implied_inference_1_oneout_3,forecast_implied_inference_1_oneout_4,forecast_implied_inference_2_oneout_0,forecast_implied_inference_2_oneout_1,forecast_implied_inference_2_oneout_2,forecast_implied_inference_2_oneout_3,forecast_implied_inference_2_oneout_4,network_inference,network_inference_errorbar_0,network_inference_errorbar_1,network_inference_errorbar_2,network_inference_errorbar_3,network_inference_errorbar_4,network_naive_inference,network_inference_oneout_0,network_inference_oneout_1,network_inference_oneout_2,network_inference_oneout_3,network_inference_oneout_4,network_inference_oneout_5,network_inference_oneout_6,network_inference_oneout_7,network_naive_inference_onein_0,network_naive_inference_onein_1,network_naive_inference_onein_2,network_loss,reputer_stake_0,reputer_stake_1,reputer_stake_2,reputer_stake_3,reputer_stake_4,reputer_0_loss_inference_0,reputer_0_loss_inference_1,reputer_0_loss_inference_2,reputer_0_loss_inference_3,reputer_0_loss_inference_4,reputer_1_loss_inference_0,reputer_1_loss_inference_1,reputer_1_loss_inference_2,reputer_1_loss_inference_3,reputer_1_loss_inference_4,reputer_2_loss_inference_0,reputer_2_loss_inference_1,reputer_2_loss_inference_2,reputer_2_loss_inference_3,reputer_2_loss_inference_4,reputer_3_loss_inference_0,reputer_3_loss_inference_1,reputer_3_loss_inference_2,reputer_3_loss_inference_3,reputer_3_loss_inference_4,reputer_4_loss_inference_0,reputer_4_loss_inference_1,reputer_4_loss_inference_2,reputer_4_loss_inference_3,reputer_4_loss_inference_4,reputer_0_loss_forecast_implied_inference_0,reputer_0_loss_forecast_implied_inference_1,reputer_0_loss_forecast_implied_inference_2,reputer_1_loss_forecast_implied_inference_0,reputer_1_loss_forecast_implied_inference_1,reputer_1_loss_forecast_implied_inference_2,reputer_2_loss_forecast_implied_inference_0,reputer_2_loss_forecast_implied_inference_1,reputer_2_loss_forecast_implied_inference_2,reputer_3_loss_forecast_implied_inference_0,reputer_3_loss_forecast_implied_inference_1,reputer_3_loss_forecast_implied_inference_2,reputer_4_loss_forecast_implied_inference_0,reputer_4_loss_forecast_implied_inference_1,reputer_4_loss_forecast_implied_inference_2,reputer_0_loss_forecast_implied_inference_0_oneout_0,reputer_0_loss_forecast_implied_inference_0_oneout_1,reputer_0_loss_forecast_implied_inference_0_oneout_2,reputer_0_loss_forecast_implied_inference_0_oneout_3,reputer_0_loss_forecast_implied_inference_0_oneout_4,reputer_0_loss_forecast_implied_inference_1_oneout_0,reputer_0_loss_forecast_implied_inference_1_oneout_1,reputer_0_loss_forecast_implied_inference_1_oneout_2,reputer_0_loss_forecast_implied_inference_1_oneout_3,reputer_0_loss_forecast_implied_inference_1_oneout_4,reputer_0_loss_forecast_implied_inference_2_oneout_0,reputer_0_loss_forecast_implied_inference_2_oneout_1,reputer_0_loss_forecast_implied_inference_2_oneout_2,reputer_0_loss_forecast_implied_inference_2_oneout_3,reputer_0_loss_forecast_implied_inference_2_oneout_4,reputer_1_loss_forecast_implied_inference_0_oneout_0,reputer_1_loss_forecast_implied_inference_0_oneout_1,reputer_1_loss_forecast_implied_inference_0_oneout_2,reputer_1_loss_forecast_implied_inference_0_oneout_3,reputer_1_loss_forecast_implied_inference_0_oneout_4,reputer_1_loss_forecast_implied_inference_1_oneout_0,reputer_1_loss_forecast_implied_inference_1_oneout_1,reputer_1_loss_forecast_implied_inference_1_oneout_2,reputer_1_loss_forecast_implied_inference_1_oneout_3,reputer_1_loss_forecast_implied_inference_1_oneout_4,reputer_1_loss_forecast_implied_inference_2_oneout_0,reputer_1_loss_forecast_implied_inference_2_oneout_1,reputer_1_loss_forecast_implied_inference_2_oneout_2,reputer_1_loss_forecast_implied_inference_2_oneout_3,reputer_1_loss_forecast_implied_inference_2_oneout_4,reputer_2_loss_forecast_implied_inference_0_oneout_0,reputer_2_loss_forecast_implied_inference_0_oneout_1,reputer_2_loss_forecast_implied_inference_0_oneout_2,reputer_2_loss_forecast_implied_inference_0_oneout_3,reputer_2_loss_forecast_implied_inference_0_oneout_4,reputer_2_loss_forecast_implied_inference_1_oneout_0,reputer_2_loss_forecast_implied_inference_1_oneout_1,reputer_2_loss_forecast_implied_inference_1_oneout_2,reputer_2_loss_forecast_implied_inference_1_oneout_3,reputer_2_loss_forecast_implied_inference_1_oneout_4,reputer_2_loss_forecast_implied_inference_2_oneout_0,reputer_2_loss_forecast_implied_inference_2_oneout_1,reputer_2_loss_forecast_implied_inference_2_oneout_2,reputer_2_loss_forecast_implied_inference_2_oneout_3,reputer_2_loss_forecast_implied_inference_2_oneout_4,reputer_3_loss_forecast_implied_inference_0_oneout_0,reputer_3_loss_forecast_implied_inference_0_oneout_1,reputer_3_loss_forecast_implied_inference_0_oneout_2,reputer_3_loss_forecast_implied_inference_0_oneout_3,reputer_3_loss_forecast_implied_inference_0_oneout_4,reputer_3_loss_forecast_implied_inference_1_oneout_0,reputer_3_loss_forecast_implied_inference_1_oneout_1,reputer_3_loss_forecast_implied_inference_1_oneout_2,reputer_3_loss_forecast_implied_inference_1_oneout_3,reputer_3_loss_forecast_implied_inference_1_oneout_4,reputer_3_loss_forecast_implied_inference_2_oneout_0,reputer_3_loss_forecast_implied_inference_2_oneout_1,reputer_3_loss_forecast_implied_inference_2_oneout_2,reputer_3_loss_forecast_implied_inference_2_oneout_3,reputer_3_loss_forecast_implied_inference_2_oneout_4,reputer_4_loss_forecast_implied_inference_0_oneout_0,reputer_4_loss_forecast_implied_inference_0_oneout_1,reputer_4_loss_forecast_implied_inference_0_oneout_2,reputer_4_loss_forecast_implied_inference_0_oneout_3,reputer_4_loss_forecast_implied_inference_0_oneout_4,reputer_4_loss_forecast_implied_inference_1_oneout_0,reputer_4_loss_forecast_implied_inference_1_oneout_1,reputer_4_loss_forecast_implied_inference_1_oneout_2,reputer_4_loss_forecast_implied_inference_1_oneout_3,reputer_4_loss_forecast_implied_inference_1_oneout_4,reputer_4_loss_forecast_implied_inference_2_oneout_0,reputer_4_loss_forecast_implied_inference_2_oneout_1,reputer_4_loss_forecast_implied_inference_2_oneout_2,reputer_4_loss_forecast_implied_inference_2_oneout_3,reputer_4_loss_forecast_implied_inference_2_oneout_4,reputer_0_loss_network_inference,reputer_1_loss_network_inference,reputer_2_loss_network_inference,reputer_3_loss_network_inference,reputer_4_loss_network_inference,reputer_0_loss_naive_network_inference,reputer_1_loss_naive_network_inference,reputer_2_loss_naive_network_inference,reputer_3_loss_naive_network_inference,reputer_4_loss_naive_network_inference,reputer_0_loss_network_inference_oneout_0,reputer_0_loss_network_inference_oneout_1,reputer_0_loss_network_inference_oneout_2,reputer_0_loss_network_inference_oneout_3,reputer_0_loss_network_inference_oneout_4,reputer_0_loss_network_inference_oneout_5,reputer_0_loss_network_inference_oneout_6,reputer_0_loss_network_inference_oneout_7,reputer_1_loss_network_inference_oneout_0,reputer_1_loss_network_inference_oneout_1,reputer_1_loss_network_inference_oneout_2,reputer_1_loss_network_inference_oneout_3,reputer_1_loss_network_inference_oneout_4,reputer_1_loss_network_inference_oneout_5,reputer_1_loss_network_inference_oneout_6,reputer_1_loss_network_inference_oneout_7,reputer_2_loss_network_inference_oneout_0,reputer_2_loss_network_inference_oneout_1,reputer_2_loss_network_inference_oneout_2,reputer_2_loss_network_inference_oneout_3,reputer_2_loss_network_inference_oneout_4,reputer_2_loss_network_inference_oneout_5,reputer_2_loss_network_inference_oneout_6,reputer_2_loss_network_inference_oneout_7,reputer_3_loss_network_inference_oneout_0,reputer_3_loss_network_inference_oneout_1,reputer_3_loss_network_inference_oneout_2,reputer_3_loss_network_inference_oneout_3,reputer_3_loss_network_inference_oneout_4,reputer_3_loss_network_inference_oneout_5,reputer_3_loss_network_inference_oneout_6,reputer_3_loss_network_inference_oneout_7,reputer_4_loss_network_inference_oneout_0,reputer_4_loss_network_inference_oneout_1,reputer_4_loss_network_inference_oneout_2,reputer_4_loss_network_inference_oneout_3,reputer_4_loss_network_inference_oneout_4,reputer_4_loss_network_inference_oneout_5,reputer_4_loss_network_inference_oneout_6,reputer_4_loss_network_inference_oneout_7,reputer_0_loss_naive_network_inference_onein_0,reputer_0_loss_naive_network_inference_onein_1,reputer_0_loss_naive_network_inference_onein_2,reputer_1_loss_naive_network_inference_onein_0,reputer_1_loss_naive_network_inference_onein_1,reputer_1_loss_naive_network_inference_onein_2,reputer_2_loss_naive_network_inference_onein_0,reputer_2_loss_naive_network_inference_onein_1,reputer_2_loss_naive_network_inference_onein_2,reputer_3_loss_naive_network_inference_onein_0,reputer_3_loss_naive_network_inference_onein_1,reputer_3_loss_naive_network_inference_onein_2,reputer_4_loss_naive_network_inference_onein_0,reputer_4_loss_naive_network_inference_onein_1,reputer_4_loss_naive_network_inference_onein_2,inference_loss_0,inference_loss_1,inference_loss_2,inference_loss_3,inference_loss_4,forecast_implied_inference_loss_0,forecast_implied_inference_loss_1,forecast_implied_inference_loss_2,forecast_implied_inference_loss_0_oneout_0,forecast_implied_inference_loss_0_oneout_1,forecast_implied_inference_loss_0_oneout_2,forecast_implied_inference_loss_0_oneout_3,forecast_implied_inference_loss_0_oneout_4,forecast_implied_inference_loss_1_oneout_0,forecast_implied_inference_loss_1_oneout_1,forecast_implied_inference_loss_1_oneout_2,forecast_implied_inference_loss_1_oneout_3,forecast_implied_inference_loss_1_oneout_4,forecast_implied_inference_loss_2_oneout_0,forecast_implied_inference_loss_2_oneout_1,forecast_implied_inference_loss_2_oneout_2,forecast_implied_inference_loss_2_oneout_3,forecast_implied_inference_loss_2_oneout_4,network_naive_loss,network_loss_oneout_0,network_loss_oneout_1,network_loss_oneout_2,network_loss_oneout_3,network_loss_oneout_4,network_loss_oneout_5,network_loss_oneout_6,network_loss_oneout_7,network_naive_loss_onein_0,network_naive_loss_onein_1,network_naive_loss_onein_2,forecasted_regret_0_inferer_0,forecasted_regret_0_inferer_1,forecasted_regret_0_inferer_2,forecasted_regret_0_inferer_3,forecasted_regret_0_inferer_4,forecasted_regret_1_inferer_0,forecasted_regret_1_inferer_1,forecasted_regret_1_inferer_2,forecasted_regret_1_inferer_3,forecasted_regret_1_inferer_4,forecasted_regret_2_inferer_0,forecasted_regret_2_inferer_1,forecasted_regret_2_inferer_2,forecasted_regret_2_inferer_3,forecasted_regret_2_inferer_4,inference_regret_worker_0,inference_regret_worker_1,inference_regret_worker_2,inference_regret_worker_3,inference_regret_worker_4,inference_regret_worker_5,inference_regret_worker_6,inference_regret_worker_7,naive_inference_regret_worker_0,naive_inference_regret_worker_1,naive_inference_regret_worker_2,naive_inference_regret_worker_3,naive_inference_regret_worker_4,inference_regret_worker_0_oneout_0,inference_regret_worker_1_oneout_0,inference_regret_worker_2_oneout_0,inference_regret_worker_3_oneout_0,inference_regret_worker_4_oneout_0,inference_regret_worker_5_oneout_0,inference_regret_worker_6_oneout_0,inference_regret_worker_7_oneout_0,inference_regret_worker_0_oneout_1,inference_regret_worker_1_oneout_1,inference_regret_worker_2_oneout_1,inference_regret_worker_3_oneout_1,inference_regret_worker_4_oneout_1,inference_regret_worker_5_oneout_1,inference_regret_worker_6_oneout_1,inference_regret_worker_7_oneout_1,inference_regret_worker_0_oneout_2,inference_regret_worker_1_oneout_2,inference_regret_worker_2_oneout_2,inference_regret_worker_3_oneout_2,inference_regret_worker_4_oneout_2,inference_regret_worker_5_oneout_2,inference_regret_worker_6_oneout_2,inference_regret_worker_7_oneout_2,inference_regret_worker_0_oneout_3,inference_regret_worker_1_oneout_3,inference_regret_worker_2_oneout_3,inference_regret_worker_3_oneout_3,inference_regret_worker_4_oneout_3,inference_regret_worker_5_oneout_3,inference_regret_worker_6_oneout_3,inference_regret_worker_7_oneout_3,inference_regret_worker_0_oneout_4,inference_regret_worker_1_oneout_4,inference_regret_worker_2_oneout_4,inference_regret_worker_3_oneout_4,inference_regret_worker_4_oneout_4,inference_regret_worker_5_oneout_4,inference_regret_worker_6_oneout_4,inference_regret_worker_7_oneout_4,inference_regret_worker_0_oneout_5,inference_regret_worker_1_oneout_5,inference_regret_worker_2_oneout_5,inference_regret_worker_3_oneout_5,inference_regret_worker_4_oneout_5,inference_regret_worker_5_oneout_5,inference_regret_worker_6_oneout_5,inference_regret_worker_7_oneout_5,inference_regret_worker_0_oneout_6,inference_regret_worker_1_oneout_6,inference_regret_worker_2_oneout_6,inference_regret_worker_3_oneout_6,inference_regret_worker_4_oneout_6,inference_regret_worker_5_oneout_6,inference_regret_worker_6_oneout_6,inference_regret_worker_7_oneout_6,inference_regret_worker_0_oneout_7,inference_regret_worker_1_oneout_7,inference_regret_worker_2_oneout_7,inference_regret_worker_3_oneout_7,inference_regret_worker_4_oneout_7,inference_regret_worker_5_oneout_7,inference_regret_worker_6_oneout_7,inference_regret_worker_7_oneout_7,inference_regret_worker_0_onein_0,inference_regret_worker_1_onein_0,inference_regret_worker_2_onein_0,inference_regret_worker_3_onein_0,inference_regret_worker_4_onein_0,inference_regret_worker_5_onein_0,inference_regret_worker_0_onein_1,inference_regret_worker_1_onein_1,inference_regret_worker_2_onein_1,inference_regret_worker_3_onein_1,inference_regret_worker_4_onein_1,inference_regret_worker_5_onein_1,inference_regret_worker_0_onein_2,inference_regret_worker_1_onein_2,inference_regret_worker_2_onein_2,inference_regret_worker_3_onein_2,inference_regret_worker_4_onein_2,inference_regret_worker_5_onein_2,inferer_score_0,inferer_score_1,inferer_score_2,inferer_score_3,inferer_score_4,forecaster_score_0,forecaster_score_1,forecaster_score_2,inferer_reward_fraction_0,inferer_reward_fraction_1,inferer_reward_fraction_2,inferer_reward_fraction_3,inferer_reward_fraction_4,forecaster_reward_fraction_0,forecaster_reward_fraction_1,forecaster_reward_fraction_2,reputer_listening_coefficient_0,reputer_listening_coefficient_1,reputer_listening_coefficient_2,reputer_listening_coefficient_3,reputer_listening_coefficient_4,reputer_adjusted_stake_0,reputer_adjusted_stake_1,reputer_adjusted_stake_2,reputer_adjusted_stake_3,reputer_adjusted_stake_4,reputer_score_0,reputer_score_1,reputer_score_2,reputer_score_3,reputer_score_4,reputer_reward_fraction_0,reputer_reward_fraction_1,reputer_reward_fraction_2,reputer_reward_fraction_3,reputer_reward_fraction_4,inferer_reward_fraction_smooth_0,inferer_reward_fraction_smooth_1,inferer_reward_fraction_smooth_2,inferer_reward_fraction_smooth_3,inferer_reward_fraction_smooth_4,forecaster_reward_fraction_smooth_0,forecaster_reward_fraction_smooth_1,forecaster_reward_fraction_smooth_2,reputer_reward_fraction_smooth_0,reputer_reward_fraction_smooth_1,reputer_reward_fraction_smooth_2,reputer_reward_fraction_smooth_3,reputer_reward_fraction_smooth_4,inferers_entropy,forecasters_entropy,reputers_entropy,forecaster_task_score,forecaster_score_ratio,forecasters_utility,inferers_reward_fraction,forecasters_reward_fraction,reputers_reward_fraction,topic_rewards,inferer_reward_0,inferer_reward_1,inferer_reward_2,inferer_reward_3,inferer_reward_4,forecaster_reward_0,forecaster_reward_1,forecaster_reward_2,reputer_reward_0,reputer_reward_1,reputer_reward_2,reputer_reward_3,reputer_reward_4" + simulatorEpochs := map[int]string{ + 300: "0.03985254043403228,-0.023436611594409483,0.009781863350371005,0.02223793659211506,0.11552983586563229,0.032472720698523826,-2.341421686954683,-2.9432576400770207,-3.884181450545189,-1.9647795852794823,-4.111767408188739,-2.677026067794835,-2.944431590946878,-3.0650682375687572,-2.08706693542846,-4.140211608991293,-2.24866014324237,-1.8901641108547267,-4.125883222164734,-0.9729640557942307,-4.0722307692978905,0.027427871588394243,0.030491231754267403,0.026372338614221263,0.02768865691980181,0.028026218406433333,0.030871356113854605,0.02749032820384923,0.0212722105066357,0.030982530028924156,0.030887352741104487,0.030492870894407113,0.03091754405600789,0.016390615060110064,0.027167878688166135,0.026306384596857357,0.03094332767248009,0.02666468344361231,0.021104206216540324,0.027911051862835427,0.0226935240173755,0.026379223155184053,0.027443106963151918,0.030457632949950443,0.032189306790880126,0.010204191167646311,0.028910338776853395,0.02855302869355451,0.030503615443105047,0.027890929403146317,0.019292466543344405,0.028273394239595583,0.02680490929738837,0.028593121085772822,0.027270776103154603,0.030302229788031043,0.026213352886516838,-3.9073687008674196,400243.65662578074,467530.8534549682,309850.109626039,284487.25113369955,370207.01993473736,-1.285027790259861,-2.3830546751342823,-3.256262594972895,-0.901603218936355,-1.3779496468904517,-1.2731065545153895,-2.4271412552962555,-3.1602027232529477,-0.9710646287668246,-1.5942818258649414,-1.1332372457971156,-2.5227959336961208,-3.207635245298263,-1.0296738594694543,-1.4804203639607978,-1.2889403331644413,-2.6500477861343903,-3.3762923520567085,-1.0920460310220907,-1.5598562784076264,-1.3573311686171754,-2.533322631682507,-3.371331335558988,-0.7816189326383448,-1.596214834724491,-3.34141319097588,-3.339819965526943,-4.54552981098554,-3.5644107597250927,-3.5665333822323286,-4.585435357907197,-3.6052115131567772,-3.387764564096687,-4.676049008809123,-3.3592613135860256,-3.6756948194299586,-4.60978107879295,-3.573835777936029,-3.4191603219585383,-4.550188336494632,-3.169385402623763,-3.1946220424206264,-2.3634012162512716,-3.2557533814038253,-3.289912260683438,-3.434432733229539,-3.255607233265225,-2.37154937337304,-3.3003894763530317,-3.4522595891368426,-4.14228864142894,-4.317901597188783,-2.029931891997736,-5.506165183834536,-4.662802608061375,-3.3529478710015908,-3.4582504260152978,-2.4115552498249273,-3.418456743485804,-3.447227025721337,-3.5562861275803015,-3.387678840725681,-2.3110184367900013,-3.3438106671402457,-3.516783400864995,-4.2978258734417425,-4.392588569569012,-2.1428351137320822,-5.558807851194372,-4.66970104984268,-3.2927185046342946,-3.5364128079741257,-2.472473047331775,-3.415782458639927,-3.4354384307655086,-3.4679140324907136,-3.4101443762402,-2.4089121767287978,-3.672597660559172,-3.479809568021285,-4.33523191921393,-4.476665638407145,-2.104180862641186,-5.536386103837072,-4.594960978202287,-3.2254711363731223,-3.1647983954553762,-2.357329261785757,-3.374330013528542,-3.4722244171305627,-3.3983241955923917,-3.5542518978878217,-2.4298085882323286,-3.351053024464599,-3.3247697495887985,-4.269047612115928,-4.717822904685684,-2.118852912458904,-5.478247825662543,-4.801594115492882,-3.3775159882390504,-3.1787800148517813,-2.2834228489965804,-3.365764322838818,-3.4786172515981604,-3.421298927555511,-3.278146835259013,-2.3826063156303157,-3.3387868727832037,-3.43310582439825,-4.089277655614135,-4.636868640283913,-2.1802857385114662,-5.591578562775327,-4.6029353998731235,-3.9084867075175147,-3.8295111997581532,-3.789386102474206,-3.796819281702346,-4.1881849055651275,-3.5814960187681226,-3.6353767331849074,-3.932082734248802,-3.607193895381324,-3.6944756441814532,-3.575740270655986,-3.5207630990581364,-2.1767191209952057,-3.6427348791354293,-3.436001880183461,-4.413974153021221,-3.96204211773875,-3.4866321829454123,-3.6664498629361275,-3.533618357777417,-2.3887494032957615,-3.735018861290483,-3.5255358878609413,-4.435145897250557,-4.063007554993539,-3.386280164911842,-3.659497084130465,-3.5988925715216022,-2.2930545797655735,-3.744014626898515,-3.7770096793415746,-4.505881329786071,-4.187397864226005,-3.4322614180412727,-3.7554689053878687,-3.6195741918602446,-2.2562132923286775,-3.6990531616185174,-3.574883255262756,-4.424010364562517,-4.1260753077247685,-3.1191786317398105,-3.6779741461977107,-3.429546971537292,-2.444143026932997,-3.8147807644976988,-3.508245536571058,-4.415413248083316,-4.165484153767118,-3.4247531248014047,-3.2704178495639726,-3.5549331034470795,-4.53662813289208,-3.420385943220859,-3.5601638858207725,-4.459157277205009,-3.508579817990112,-3.4767962823108407,-4.624590035223692,-3.353927082507711,-3.409515099538707,-4.6190767450867325,-3.3113930700030756,-3.454044010747474,-4.561574732727365,-1.2715336459383855,-2.4897484773558207,-3.2654138665315458,-0.9463102738495336,-1.522818509415775,-3.492652268792008,-3.473953619002344,-4.588700106270079,-3.287838022336547,-3.311855474480095,-2.377030649818549,-3.3649670301727856,-3.4210936854299674,-3.4629265507046028,-3.3663607825823156,-2.3737019188855384,-3.3900341409004078,-3.4497180798802503,-4.223572649029942,-4.490343126350025,-2.115479630565788,-5.53763051820395,-4.662543729334966,-3.6813458856540295,-3.6616094910029315,-3.5341670437782375,-2.3168664175978035,-3.726913227426862,-3.552671694276326,-4.436767035844435,-4.092484467161524,-3.3822789693866495,-3.3702017082246414,-3.5000929937353615,-4.549576738807851,-0.9037268965174445,-0.3018909433951067,0.6390328670730616,-1.2803689981926452,0.8666188247166118,-0.5681225156772922,-0.3007169925252495,-0.1800803459033702,-1.1580816480436673,0.8950630255191654,-0.9964884402297574,-1.3549844726174007,0.8807346386926063,-2.2721845276778967,0.8270821858257631,-1.857878238352757,-1.7158624101771012,-1.5628221364309827,-2.4730236955749225,-2.0659834434804556,-0.20075803561434968,-0.26901657906490045,-0.16712527165601743,-0.41476072312143286,-0.27274489494577636,-0.11970462119965834,-1.0299061803435983,-0.6228659282491313,-1.5745731225160826,-1.4325572943404266,-1.2795170205943083,-2.189718579738248,-1.7826783276437816,-0.09919691416319336,-0.09272353083572177,-0.2842059856684728,-1.4323266290325798,-1.2903108008569233,-1.1372705271108052,-2.0474720862547455,-1.6404318341602782,-0.1510421024959296,-0.04534585560643711,-0.03527946620181252,-1.2602896564374177,-1.1182738282617615,-0.9652335545156435,-1.875435113659583,-1.4683948615651166,-0.10252577288727441,-0.17091324034996155,-0.14072098157408017,-1.928900344098949,-1.7868845159232922,-1.6338442421771746,-2.544045801321114,-2.1370055492266475,-0.2998103323954395,-0.48976601577399276,-0.2032808491445238,-1.850980806057958,-1.7089649778823015,-1.5559247041361837,-2.4661262632801235,-2.0590860111856557,-0.21636160970873028,-0.2842621640399871,-0.47030550563751417,-1.7481399798007096,-1.606124151625053,-1.4530838778789348,-2.363285437022875,-1.9562451849284075,-0.09101977706230177,-0.1592783205128527,-0.05738701310396965,-1.8460534772756576,-1.7040376491000013,-1.5509973753538835,-2.461198934497824,-2.054158682403356,-0.18893327453725048,-0.2571918179878014,-0.1553005105789184,-1.673166727552091,-1.5311508993764347,-1.378110625630316,-2.2883121847742562,-1.8812719326797893,-0.01604652481368328,-0.0843050682642342,0.017586239144648866,-1.6578649715630438,-1.5158491433873869,-1.3628088696412688,-2.2730104287852093,-1.8659701766907424,-0.0007447688246359097,-1.8135524214196912,-1.6715365932440347,-1.5184963194979169,-2.428697878641856,-2.0216576265473902,-0.22469076213183428,-1.735539642184751,-1.593523814009094,-1.4404835402629763,-2.350685099406916,-1.943644847312449,-0.04478667548801088,0.24575920986448807,0.37320165708918207,1.590502283269616,0.18045547344055768,0.3546970065910937,-0.4748347955901083,-0.18415004770024557,0.610875011899033,0.04076693952777525,0.07491213986268967,0.7864326040783544,0.028911924536161857,0.06897639199501879,0.0016379098612038406,0.012673403302076646,0.9856886868367196,0.9896551115825039,0.988147604241534,0.28392441823862824,0.36823038501849115,0.9904923117780675,1.0,1.0,0.30910895545733597,0.37001434719339094,1.0,29.767164103252455,35.32493336530991,22.871637455160087,23.45540614451945,30.030824236390384,0.22350099866297982,0.3098198050140948,0.13294330191195433,0.12517664721904906,0.208559247191922,0.15209764546661927,0.2819268038119449,0.3397320852261675,0.13223269489898115,0.09401077059628747,0.3358902724311376,0.27145659764144847,0.39265312992741425,0.21625362918864985,0.3075648206353037,0.12758099382040944,0.13185524402759324,0.216745312328044,1.4266981856789434,1.081559813699303,1.514984585996016,0.22602281521339007,5.29370262084246,0.5,0.354614009820197,0.26882788963089355,0.3765581005489095,7708.8051494006695,111.44255667204439,204.78359398021513,2149.8317279626385,79.03509132501519,188.55733501164107,3.3943091025815466,26.26362366321464,2042.6838871233508,648.781609921058,899.3489652615444,385.9095483180293,363.364401918204,605.4084991411333", + 301: "0.2011215847521158,0.17114675838705384,-0.01317049616146998,0.24650843075059153,-0.14234745122383394,0.14536735397809786,-2.8908577425531217,-0.9787713933823274,-2.4416698954082987,-0.5138057970695222,-2.0188003586001537,-2.898113688422412,-1.5092177007327892,-3.145347796323594,-0.6902301819749463,-2.4059439135919636,-2.734493551371176,-1.1220224413645161,-2.484388959598741,-0.9321783742303835,-1.8436230936889229,0.18383064290024706,0.2147897454517126,0.19065707903641352,0.22455343014829177,0.18463402074377588,0.1678660189034803,0.18206824729333954,0.18747337928051683,0.23228100236083138,0.21417481637353983,0.16396800661906205,0.22339568167454352,0.21746533398267343,0.23856704547647184,0.1910676951748931,0.16921463568102493,0.1899890170986323,0.19295675723221312,0.19450614433065136,0.172474964822551,0.18259231500607298,0.19003895735652526,0.21358053060462798,0.24187243749503173,0.18634225202672824,0.22948674303769248,0.19797907395494593,0.16588409097518236,0.1929856929480861,0.19873222650672762,0.2001240418055455,0.18690195915900493,0.1970023472689866,0.18342889053437042,0.21400509117362665,0.19018764333290633,-3.827041560629895,400892.4382357018,468430.20242022973,310236.019174357,284850.61553561775,370812.42843387846,-2.1981590133062405,-2.915571188728293,-3.4021034999449347,-2.1046023618220793,-4.1789539859005,-2.482486279663322,-3.0682245947433793,-3.411608136888827,-2.134923717132202,-4.142746014728538,-2.4589115598868836,-3.0436382345229034,-3.696919137357124,-2.156316271273213,-4.390381886533443,-2.4685541191815576,-3.0434005215205047,-3.588278574146972,-2.275767098032603,-4.219627396707465,-2.4944013822614517,-3.0004564125270856,-3.6603945798353177,-2.091580761542833,-4.287897710041386,-3.6978835956317604,-3.828653174121524,-3.7161894161852422,-3.7851105294543967,-3.8913002237127134,-3.679571444541289,-3.6915503708581068,-4.267146530583558,-3.702533890896396,-3.600361327543356,-4.176979282896008,-3.6946576939271774,-3.8625347272603374,-3.976604615691521,-3.63802018490697,-3.682558618993899,-3.769286864780166,-4.069311037256623,-3.7230667715553407,-3.228910519862002,-4.030002425645905,-3.8494157710596473,-3.9016345398232035,-3.9778292410536737,-3.1008194098355464,-3.8085932136555396,-3.706674195738329,-3.989784138109678,-3.6701422942652377,-3.290723462194848,-3.865585738625725,-3.8085063008672817,-4.120180038408431,-3.811729227010732,-3.3792296746411346,-4.042753965560239,-4.103539873222309,-4.074821694159235,-4.034041868426119,-3.1761680411945274,-3.763969585222595,-3.6008014473177257,-4.194845855763396,-3.763510915603218,-3.38212983470579,-4.0194788457200366,-3.8661662357424453,-4.146144073477802,-3.8520233407608533,-3.3758216812529813,-4.298075887956482,-3.9640919333554625,-4.147827087382908,-4.144269519220671,-3.2017026616041795,-3.764280289775643,-3.6339001745740678,-4.484945753031558,-4.154136374899517,-3.2889143311702544,-3.972259494127684,-3.7930194050112758,-4.232932570080014,-3.7996978979093465,-3.624556295175803,-4.006162273774471,-3.9900171245896985,-4.380187448693096,-4.04550813126868,-3.240338161927384,-3.8505366330134074,-3.5853458310747253,-4.006725410672967,-3.9132639326795795,-3.496003996349352,-3.8704367034818423,-3.8405877097642396,-4.0992513647592235,-3.832216181554574,-3.377037275981361,-4.013399392160078,-4.112998633919778,-3.9509307385811354,-4.314602964774186,-3.14799934842595,-3.748130101760082,-3.594719729995497,-4.086324669607907,-3.677921188446574,-3.4427887435534528,-3.738000517784241,-3.8730548307678094,-3.919939654855134,-4.031953370980092,-3.6300478535044727,-2.935265334761964,-2.992112021134486,-3.0182893211270603,-3.0435072666261425,-3.1530006119845075,-3.7367693658539753,-3.870831367784988,-3.9842240191102456,-3.764938732615177,-3.2883792992444154,-3.772380897881969,-3.605238551608053,-3.850986344018049,-3.997221175118786,-3.7640638610102957,-4.014513283575169,-3.8220131910777715,-3.2974810943460993,-3.7968554639905787,-3.7879867333500563,-3.8470046641415023,-3.9959211097376555,-3.9612423818148703,-4.064198693089538,-3.864611260384598,-3.159872536971918,-3.8109264596085053,-3.5609234097250186,-3.897561772892669,-3.952284419518554,-3.807558836721479,-4.1306990907098,-3.8928690568285798,-3.4904144476110956,-3.9086606228019924,-3.745180674780208,-3.9628357900919213,-3.925528580294731,-3.7594718348658267,-4.055353831372074,-3.831109325153502,-3.5547885679879765,-3.969138895512272,-3.633429105960478,-3.713048178546369,-3.709912002572615,-3.9963353017349386,-3.5858535710376636,-3.8314639802251316,-4.066949984942099,-3.8278944361932634,-3.9696917727794476,-4.21429504810775,-3.7817697378757194,-3.5067695619646186,-3.9676457134349965,-3.723906811919596,-3.96274726392075,-3.909417360250538,-3.6319567843310723,-2.416636636324492,-3.013176418705684,-3.53545213858776,-2.1450196940179547,-4.233778520602076,-3.7372087319602265,-4.002727697451959,-3.6853981246613907,-3.8691569036964384,-3.8137646010528625,-4.126729109130766,-3.8014450544788647,-3.3834522573429155,-4.071518803180957,-4.008745983678775,-4.071695531829384,-4.098864055076186,-3.168293602641485,-3.7840057837883556,-3.6258961175561155,-4.147965697544264,-3.815098588927862,-3.376336132542911,-3.024604657260011,-3.91864687788301,-3.826541846899916,-4.0425814171714345,-3.8295823219042315,-3.3541663555873416,-3.846051845510216,-3.6718095943048077,-3.8473330709545994,-3.8044078702456607,-4.029189378403539,-3.711494902433741,-1.016510958314298,-2.9285973074850924,-1.465698805459121,-3.393562903797897,-1.8885683422672659,-1.0092550124450077,-2.3981510001346305,-0.7620209045438258,-3.2171385188924733,-1.501424787275456,-1.1728751494962437,-2.7853462595029033,-1.4229797412686787,-2.975190326637036,-2.0637456071784968,-1.8131309069480215,-1.6256626833518122,-1.435698864992098,-2.3939235126786245,-1.818711403135192,-0.18966551491988157,-0.22454630747620394,-0.16457708808726612,-0.43408145290284145,-0.2466132293066314,-0.05664941094691758,-1.0148740586334442,-0.4396619490900117,-1.567316834420326,-1.3798486108241166,-1.1898847924644025,-2.148109440150929,-1.572897330607497,-0.0942262201655312,-0.06816398522235495,-0.26924949651109104,-1.4300844871868643,-1.2426162635906544,-1.0526524452309403,-2.0108770929174673,-1.4356649833740343,-0.137215616831042,-0.022590856367907506,-0.05181609251601134,-1.2968551688783703,-1.1093869452821603,-0.9194231269224467,-1.8776477746089728,-1.3024356650655406,-0.08385842640261383,-0.15091050484917043,-0.11611045537938919,-1.8773048782470279,-1.6898366546508177,-1.4998728362911045,-2.4580974839776304,-1.8828853744341985,-0.27264302589843226,-0.4138612408793981,-0.1844011375277084,-1.759635697378447,-1.572167473782237,-1.3822036554225237,-2.34042830310905,-1.7652161935656168,-0.19179685856229983,-0.27442322293057403,-0.4210579773782058,-1.7162675027392111,-1.528799279143001,-1.338835460783287,-2.2970601084698137,-1.7218479989263809,-0.09280211071107057,-0.12768290326739312,-0.06771368387845524,-1.7869654253461233,-1.5994972017499136,-1.4095333833901997,-2.3677580310767268,-1.7925459215332937,-0.16350003331798355,-0.19838082587430608,-0.13841160648536824,-1.6489196982598926,-1.4614514746636829,-1.2714876563039683,-2.229712303990495,-1.6545001944470628,-0.025454306231752245,-0.060335098788074776,-0.0003658793991368932,-1.6308555977988564,-1.443387374202646,-1.253423555842932,-2.211648203529459,-1.6364360939860267,-0.007390205770715741,-1.7934524534856269,-1.605984229889417,-1.416020411529703,-2.3742450592162285,-1.7990329496727975,-0.20486785401380886,-1.6914715045772009,-1.5040032809809902,-1.3140394626212768,-2.272264110307803,-1.6970520007643706,-0.04291768571644484,-0.09160531725311527,0.0004997137299787013,-0.21553985654153962,-0.002540761274336667,0.4728752050425533,0.18069308958617147,0.3675701550296975,0.15650392854990414,0.04784635614082218,0.07993620525761799,0.023693259631750292,0.07860702832256061,0.769917150647249,0.19937195979106095,0.634438532089166,0.166189508119773,0.9891784507183023,0.9875905484838456,0.28737411305524896,0.3694592888084982,0.9900514486553149,1.0,1.0,0.31342269290236346,0.370285575622428,1.0,27.867576177761087,39.00375837782614,20.157637252537395,22.172021090733896,29.90380362566133,0.21039170560627468,0.34407482611098306,0.1177696535677222,0.11893892205914602,0.20882489265587398,0.14167251653403956,0.2617277439565122,0.30812820266672575,0.1268701282413391,0.16160140860138364,0.32223844116712996,0.3077547910862202,0.3700067677466501,0.21566743683041234,0.31121582118287167,0.1265998597951407,0.13056361183074852,0.215953270360827,1.5008128073980325,1.0937340278162135,1.510747953362792,0.8024369033698839,4.93402552406124,0.5,0.3655797901709852,0.2664203386464531,0.3679998711825618,7633.942328283924,133.5303300663091,223.08716343795004,66.1235051978194,219.37767646401292,2148.6963593853475,405.49016833313704,1290.3448782038745,338.00245377188406,591.0512711806881,966.6058971675811,330.84908574283406,334.1338997815628,586.6496395509236", + 302: "0.09568583574498818,0.21073811046992752,0.25712287680943163,0.1997509073157136,0.020714272285501698,0.08417981250377231,-1.829431540887379,-1.8676076856518762,-1.647064399417975,-1.7710435399124593,-3.805608075039177,-2.470608845517157,-1.7126347192668319,-2.298186110212427,-2.9879489153238357,-3.56293462659419,-1.4564411423354358,-1.1897016403791918,-1.4905946075958827,-2.555036220978439,-3.187627300323815,0.08475997300723974,0.0807110022144602,0.07851400736008668,0.08491895966850534,0.08469710618834828,0.08496472907443296,0.08549083677945257,0.23479506767309163,0.07838352807372881,0.08163083747490073,0.07959618591113059,0.08719028279869953,0.03413153220551062,0.07742942035033941,0.07844146816995375,0.07734349814931697,0.08537619186652812,0.022848872473116115,0.08258717180175411,0.02800616957997822,0.07167480768859354,0.08065552958468879,0.09633725971550954,0.18897897816010498,0.20571444562622385,0.08224503404914928,0.08272854915313156,0.08228642226273193,0.0865575076876917,0.12355670395609089,0.08116313970718932,0.08309855172096497,0.08450731401972447,0.086385958713291,0.08238611002179422,0.08015350321006234,-4.268034301375579,401483.4895068825,469396.8083173973,310566.86826009984,285184.7494353993,371399.0780734294,-2.7889603745056486,-1.1899357397203154,-2.621483031371425,-0.8517206049868495,-2.5509665357091187,-3.1462428559573445,-1.358763489728261,-2.735898739062348,-0.9292393092120302,-2.580631943915396,-3.2919124813236795,-1.4699492714151914,-2.8434539608615226,-0.8652099362319197,-2.5676680751721133,-2.868557493231947,-1.4298645541074524,-2.648858064789955,-0.9904917413512826,-2.521933764599845,-3.1512868780240244,-1.520093270365574,-2.7518063041409655,-0.9857053394676621,-2.4865975264621447,-3.416731172372558,-3.71924591064311,-3.812920807216769,-3.5737648520847967,-3.781166155327157,-3.856325747110599,-3.332170373644548,-3.783942519109525,-3.9474765145937476,-3.671130507792392,-3.8919438538136713,-3.839422288438335,-3.529371258811514,-3.771084173482247,-3.8878915496324877,-3.114974385268736,-3.531503468230733,-2.8504487883527263,-3.323300838761806,-3.6102568832938684,-2.952593494407985,-3.5078978397928227,-2.9884285895752756,-3.390036125281525,-3.421589431373879,-2.786771528165549,-3.9229102942689966,-2.7415791940147214,-3.913379791397287,-4.175946504060161,-3.1597158765970046,-3.5971063435463213,-2.879777342957661,-3.5511551342953362,-3.6248526492596893,-3.072385686708046,-3.8267991495887568,-2.9097211043546727,-3.238156562104045,-3.4863685565906493,-2.773439229547707,-4.088414129697589,-2.9527260510909854,-3.8806070429605257,-4.112668389569814,-3.1259397285732184,-3.5130739621063443,-2.8566223127399035,-3.556465025437943,-3.6482449673038286,-3.1419069025474697,-3.7875405286042314,-2.96784860902263,-3.5409719806860616,-3.6116507197586785,-2.916711901453938,-3.864873899179745,-3.2106401961792326,-3.889953919190658,-4.121405369752297,-3.3762428468973775,-3.76687595870693,-3.2327720255494237,-3.3867302960528227,-3.6312771852768315,-2.8863070284524937,-3.767954476475217,-2.7004449720401125,-3.2818405518721994,-3.5488371960669234,-2.8585341696752185,-3.9587921445134717,-3.021434078140452,-3.9400186681735083,-4.154401689799061,-3.2343090336852227,-3.4662882518718705,-2.8728985124160493,-3.4561072023764208,-3.5861006501197443,-3.070979613038617,-3.865370214709278,-2.7371826060627145,-3.310847238148516,-3.68075432279211,-2.7495756919035443,-4.048253227660278,-3.0713779508163386,-3.8320140245632146,-4.001074562741617,-4.336845534227164,-4.352927299812404,-4.149272887950441,-4.341618515655314,-4.129162626898117,-3.5843400838136703,-3.640280241801551,-3.979880193134458,-3.72095026980136,-3.9322325884306886,-2.832270174279934,-4.715618706655127,-2.79841496872798,-4.054510350273636,-5.0835992958079705,-6.071613875676884,-3.6374573908483243,-4.6069060638424,-2.976172801076011,-4.961725885903156,-2.8790466570260267,-4.106430890692008,-5.127186178795131,-5.892029889707157,-3.6096049751003974,-4.7153547090403976,-3.0696117066970348,-5.11276512043675,-2.6023453897701785,-3.717086741591544,-5.071237012190241,-6.0165451629487015,-3.79632415694475,-4.825891986142775,-3.101196911122159,-4.949137288798773,-2.917714109300755,-4.391642571698076,-5.150973275671291,-5.883310109406466,-3.859470776081696,-4.740459950940169,-3.018532516570547,-4.920817663778041,-2.964376386993444,-4.001709899005035,-5.2953968666599875,-5.887736266414499,-3.734460795147325,-4.809337122273321,-3.2492012283532063,-3.728995386088009,-3.7899501037399808,-3.5808724451668628,-3.7803698387665086,-3.9298153226825856,-3.5719960833605087,-3.9143839953758612,-3.6659396988860404,-3.353255037540595,-3.721155669532268,-3.8736712341572064,-3.37774434689663,-3.7847384451311523,-3.8527079897901144,-3.050748740733257,-1.384303721096754,-2.71878937193685,-0.9224014535556634,-2.5438532163173293,-3.5047789589260008,-3.783260767515495,-3.8660018314952276,-3.1929042706877726,-3.5684854125038625,-2.9228385282136693,-3.4575643120571864,-3.6187834604405964,-3.0288104633451023,-3.7491713057355636,-2.8694003655249736,-3.3439637175006998,-3.5423581116296328,-2.808940984588149,-3.986265045863602,-2.9848197966242362,-3.888744247801146,-4.111892772156216,-3.7569519074933706,-2.9884858841496813,-4.9232697667169605,-2.8379223304335865,-4.052395952687329,-5.145891870072761,-5.950075117500959,-3.7112356492126115,-4.73322899371478,-3.4305638681431425,-3.783487240359838,-3.8303862961543227,-1.997610019742516,-1.9594338749780187,-2.17997716121192,-2.0559980207174355,-0.021433485590717893,-1.3564327151127378,-2.114406841363063,-1.5288554504174678,-0.8390926453060592,-0.26410693403570473,-2.370600418294459,-2.637339920250703,-2.336446953034012,-1.272005339651456,-0.6394142603060797,-1.7535463723174516,-1.7514694730445135,-1.447053471436761,-2.4890944461927536,-1.809258371327498,-0.24702449767285123,-0.2505690301145919,-0.18832262626657464,-0.4612936242885687,-0.45921672501562993,-0.1548007234078779,-1.1968416981638705,-0.5170056232986147,-1.4043588653199361,-1.4022819660469976,-1.0978659644392454,-2.139906939195238,-1.4600708643299825,-0.06436175949516895,-0.05731512878057736,-0.2602790368161352,-1.4743281410665483,-1.4722512417936096,-1.1678352401858572,-2.2098762149418505,-1.530040140076594,-0.2589724905692476,-0.13774161682925645,-0.14033495534974605,-1.145887010960566,-1.1438101116876276,-0.8393941100798757,-1.8814350848358679,-1.2015990099706124,-0.06698096398434418,-0.13267165085511468,-0.0898096632223853,-1.7897391116177321,-1.7876622123447934,-1.4832462107370419,-2.525287185493034,-1.8454511106277787,-0.30486188737160325,-0.4433183403101212,-0.18232619426355587,-1.7931864405745528,-1.791109541301614,-1.4866935396938625,-2.5287345144498548,-1.8488984395845982,-0.3253280136692863,-0.4073342764818295,-0.4823520894320397,-1.8345733901420602,-1.8324964908691215,-1.5280804892613693,-2.570121464017362,-1.8902853891521059,-0.32805151549745937,-0.3315960479392002,-0.2693496440911829,-1.6743175736594464,-1.6722406743865081,-1.367824672778756,-2.409865647534749,-1.7300295726694928,-0.16779569901484628,-0.1713402314565871,-0.10909382760856981,-1.6522757537320558,-1.6501988544591173,-1.3457828528513645,-2.3878238276073573,-1.7079877527421017,-0.14575387908745496,-0.14929841152919582,-0.08705200768117848,-1.5057515507599593,-1.5036746514870203,-1.1992586498792681,-2.241299624635261,-1.5614635497700053,0.0007703238846416592,-1.6873810580997224,-1.6853041588267836,-1.3808881572190315,-2.4229291319750232,-1.7430930571097687,-0.18440371589686227,-1.6002881096615875,-1.598211210388648,-1.2937952087808964,-2.335836183536889,-1.656000108671633,-0.035064363610709866,1.2795484172258975,-0.6552354653413817,1.4301119709419923,0.21563834868825005,-0.8778575686971823,-1.3431276219315924,0.4242328223388423,-0.33053742208916304,0.4389519549922568,0.0011648179332174856,0.5258228976054227,0.0335795684416161,0.0004807610274869878,0.000148111678425753,0.9722531597949394,0.027598728526634825,0.9889993888457951,0.9873811495053111,0.28823848717815426,0.37021992393625935,0.989885821177904,1.0,1.0,0.3143882512325919,0.37083794565170464,1.0,24.498013143328606,37.12717475981895,19.993373101921847,23.122460112925154,30.34278076542959,0.19159290339357166,0.3394789887590958,0.12095450779345107,0.12845209790696552,0.2195215021469159,0.17140046037986129,0.23567145135418274,0.3298976721605954,0.11754107226136679,0.14548934384399398,0.29002940821825957,0.3742046279570922,0.3357659638246486,0.21325998348672828,0.3140421379404941,0.12603532459497174,0.13035246043837023,0.21631009353943592,1.4900240719107851,1.0903581968408416,1.508149172556505,0.5110823938822082,4.4763602009257415,0.5,0.36443992012791016,0.2666870030213048,0.3688730768507849,7649.630948803897,1223.7238202268534,3.2473154177677457,1465.9053176601346,93.61415824123262,1.3402804440931173,0.30215628886059526,1983.4520121510307,56.30298351564053,540.6259157720092,957.9224278794433,341.3025241767964,362.4587958831414,619.4332411468922", + 303: "0.12868417444689542,0.11896852945769756,0.33365452593707556,0.12805144080124747,0.27236127434415436,-0.20147020424130038,-4.083890692275539,-1.574234147817659,-6.5453604176888875,-1.4370305374385317,-0.8831713457382369,-3.5801251060618835,-0.9921476753188869,-6.088709579208688,-2.14968466865389,-1.3903823505637591,-3.4357908590298543,-1.2123273348600865,-6.33108315920075,-1.3217899440180416,-0.6671285372505664,0.12801293862173663,0.12807722061712593,0.12824257152623586,0.12954562024665237,0.1268025118294273,0.12038456447771034,0.12739404024409215,0.12878603607198683,0.128921645634614,0.12777783202652937,0.1218071864249102,0.12639301924749988,0.12927660308659036,0.12925364786294072,0.12740571855198513,0.12042049832612182,0.1276051821007393,0.12892460530277405,0.12798500059105328,0.12012952287648943,0.12801297937603165,0.12809086454298288,0.15142126847275225,0.2564541286703953,0.12681656447898954,0.12905211047853568,0.12656313619964496,0.12064488240335927,0.12724325078445428,0.12954119195400737,0.12801115058522616,0.12797762295600437,0.12788282945335186,0.12786255582995834,0.1279328661963049,0.12809681110714424,-3.775052681905373,402024.1154226545,470354.7307452768,310908.1707842766,285547.2082312825,372018.5113145763,-1.624127346120368,-1.5129403444892633,-1.9640142514663703,-2.1508919497164767,-3.6981853235132918,-1.9532777039330398,-1.6013233234607125,-2.0115982135546857,-2.2841092924901596,-3.823854214460124,-2.069838607149608,-1.5176523202371526,-2.015970424246431,-2.2891207684745547,-3.8658562078622136,-1.891872066070296,-1.4676166644570616,-1.8947730657315178,-1.9815248404909658,-3.853141592128541,-1.8389925395969602,-1.498204914533122,-1.974690115414631,-2.0476487575736653,-3.8863744094536883,-3.846071674160324,-3.586191367922091,-3.4241648743967223,-3.96475146477321,-3.4092521636212054,-3.429704455642078,-3.937631035303124,-3.685685787163077,-3.5823874843303716,-3.8635567495207286,-3.7911209137937956,-3.493568986554699,-3.8806625963084636,-3.5759884510331355,-3.318844516260802,-3.764193271139562,-3.9363340405452325,-3.7144862141875143,-4.079550902833888,-1.694245817231214,-3.493822083770938,-3.6127612897318397,-3.273122352135043,-4.0328724159308225,-2.462993762895705,-3.228392098633998,-3.466679827887512,-3.445884959329498,-3.8160092208619427,-2.071103837404334,-3.914057196796933,-3.8608749622564336,-3.941272931854685,-3.9380833532285098,-1.6724811494380798,-3.62249990281748,-3.788593414313978,-3.644280266218613,-4.114655618340737,-2.350287817080203,-3.4737433809020466,-3.5448024116999246,-3.446681907384144,-3.930311557807826,-2.181905915432531,-3.9657008637826916,-3.710246050711107,-3.7447373201185408,-3.8272082726521957,-1.6869159395362574,-3.4331006618020266,-3.6420986866088474,-3.827193379689818,-4.164579577996967,-2.514126241681633,-3.710346467345556,-3.5369999220696737,-3.504982337569899,-3.9817051396245757,-2.3266540883833042,-3.6086967128066005,-3.905007218376833,-3.9300965702939346,-3.8629514525876782,-1.7298163291926856,-3.5097694509296753,-3.809512645492492,-3.577200729336141,-4.258581602287441,-2.4320099336820733,-3.281290237346374,-3.5139469164514927,-3.506587320448566,-3.9803127211393172,-2.22136373580246,-3.9012706982967944,-3.881152994900874,-3.9415791579963684,-3.986162653441889,-1.7925835062171203,-3.4546336697147484,-3.7682893480897834,-3.4570178631062203,-4.09436909434309,-2.363693990583543,-3.642722243635737,-3.5523486249126073,-3.4269533752213324,-3.858783387719431,-2.3021710301103377,-3.8034935492963684,-3.615344876455104,-3.7735971048298795,-4.069859937447682,-3.7211751728699562,-1.9209801299324076,-1.931131748334546,-1.8267921375646878,-1.9045114306974678,-2.0474472747346315,-3.537429964833932,-3.7508392845909806,-3.507987030331835,-3.9695179170874444,-2.880910142608031,-3.5310911064021737,-3.5938393711468697,-3.770265950443736,-3.6970116275888523,-3.7590318071239373,-3.738902507493972,-4.03992644082939,-3.062416540824205,-3.5348774398577696,-3.8926059123535337,-3.9562441422479835,-3.6659825966303043,-3.7934322133605427,-3.9345960758443703,-4.250761366315037,-3.140446285533229,-3.665108768309448,-3.831203642848988,-4.050384888041008,-3.830713407227034,-3.998656152110692,-3.648451565718964,-4.07110718398278,-3.0475807834152695,-3.8568100765372524,-3.877065971565841,-3.7592694677301455,-3.523036259407907,-3.6499470646915206,-3.58545180249879,-3.9797340271140524,-3.0173041578932924,-3.583500740517826,-3.642295789806499,-3.999864239594469,-3.9234041500614167,-3.769572432818559,-3.6902663654849226,-4.067287328299487,-3.702619076498284,-3.4905943735183893,-4.123440517615702,-3.9848928111119153,-3.813485848950085,-4.081818710257794,-3.6307549309358436,-3.760366482438774,-4.0728114101992805,-3.802651744278833,-3.561876200248667,-1.8684599201396948,-1.5263104748279517,-1.9763644691654305,-2.161140022447525,-3.820680922611702,-3.9015619533346726,-3.5875118547810945,-3.4417845880516165,-3.8401001011225824,-3.8628578780086866,-3.8568795900805646,-3.9483145264470307,-1.7128374552499637,-3.5109990935255353,-3.7245930625957437,-3.545866796257017,-4.12345243706461,-2.417958672848324,-3.4644180872633736,-3.5231622287772306,-3.461659820345064,-3.907329968185991,-2.2125798528560483,-1.9306694292551756,-3.6425006166651914,-3.7781774423518204,-3.676482860591498,-4.052830926934573,-3.0245380004827647,-3.61580923704328,-3.7639920352568383,-3.909789217307866,-4.048718995738731,-3.773983542404223,-3.6449866178968637,-0.18414360910003946,-2.6938001535579197,2.2773261163133087,-2.831003763937047,-3.3848629556373417,-0.6879091953136953,-3.2758866260566917,1.820675277833109,-2.1183496327216886,-2.8776519508118197,-0.8322434423457246,-3.0557069665154923,2.063048857825171,-2.9462443573575374,-3.600905764125012,-1.7688510112622744,-1.8011967464478043,-1.4822169455670793,-2.401576267519263,-1.6237697101241153,-0.20967112076263617,-0.2442662098155606,-0.20281717302529284,-0.4213852127712599,-0.45373094795678937,-0.13475114707606461,-1.0541104690282486,-0.27630391163310053,-1.441327048440492,-1.473672783626022,-1.154692982745297,-2.0740523046974806,-1.296245747302333,-0.03816563509991296,-0.06473376821648524,-0.25205938607470346,-1.5178670791811062,-1.5502128143666356,-1.2312330134859104,-2.150592335438095,-1.3727857780429464,-0.22460719794663622,-0.12932589312193848,-0.15180298117223043,-1.2121006039096898,-1.2444463390952196,-0.925466538214495,-1.8448258601666785,-1.0670193027715307,-0.042243194637003115,-0.13246609220305133,-0.10231100092479019,-1.8292023011354468,-1.8615480363209762,-1.542568235440252,-2.461927557392435,-1.684120999997288,-0.28482733868319715,-0.3919243552661054,-0.17864367071205844,-1.7294756045514046,-1.761821339736934,-1.4428415388562097,-2.362200860808393,-1.5843943034132446,-0.42396526682563784,-0.42725878159709063,-0.5153126952515074,-1.8258509828182128,-1.8581967180037422,-1.5392169171230172,-2.4585762390752017,-1.680769681680053,-0.26667109231857417,-0.3012661813714988,-0.259817144581231,-1.6964390278052164,-1.7287847629907462,-1.4098049621100213,-2.3291642840622053,-1.5513577266670573,-0.13725913730557823,-0.17185422635850278,-0.13040518956823502,-1.6911811080756673,-1.723526843261197,-1.4045470423804716,-2.3239063643326556,-1.5460998069375078,-0.1320012175760288,-0.1665963066289534,-0.12514726983868557,-1.573202303243867,-1.6055480384293963,-1.2865682375486716,-2.2059275595008554,-1.4281210021057076,-0.014022412744228309,-1.709195314516203,-1.7415410497017325,-1.4225612488210075,-2.3419205707731905,-1.564114013378044,-0.18461051306948892,-1.6179119684711458,-1.6502577036566746,-1.33127790277595,-2.2506372247281337,-1.4728306673329858,-0.05187813023416361,0.1325520652401817,-0.0031247604464472722,0.09856982131387504,-0.2777782450291997,0.7505146814226085,0.6489449752674585,0.469124013273663,0.32752689560855247,0.10621351520578254,0.06455329374483738,0.09390070404331761,0.022777110088919555,0.7125553769171429,0.5258369491685458,0.29880563242443153,0.17535741840702265,0.9900844661498533,0.9886505144209792,0.29564418248811863,0.355096165397111,0.9908899606237411,1.0,1.0,0.3217220093604396,0.35725790143047526,1.0,25.352610946845157,30.76054081670973,19.343885985464304,20.605681758495002,33.821506012066266,0.20741044703166328,0.29442542712588526,0.12238598567902757,0.11973489486030378,0.25604324530312017,0.1648817658624534,0.2185596355932482,0.30629797534886766,0.10806467604412207,0.2021959471513089,0.3136101623132882,0.36666472840382613,0.319725109282886,0.21267502984122177,0.31208046685903323,0.12567039070337732,0.1292907038805636,0.22028340871580437,1.5167151429145154,1.0947407370757873,1.5082766623788164,1.8443832526501975,4.274473304508423,0.5,0.36815864314393176,0.2657310215692398,0.36611033528682846,7632.186675272335,298.44462887577504,181.3854268645655,263.8474088263318,64.00038784311117,2002.1776381796753,1066.4545240064094,606.0103212630856,355.64391675776255,579.5509217888991,822.6901302751065,341.97366540314835,334.56592799297385,715.4417771954915", + 304: "-0.10601006107063919,-0.06568637015637532,0.0659614660271801,-0.19990485101340483,-0.4545956573124786,-0.12047057077074849,-2.4398361297810327,-1.4762563625263976,-1.8613615952669258,-0.9007901843450681,-3.608973134491315,-2.808434845647129,-1.6681049323935806,-2.4665825915593462,-0.989392740224861,-3.41341932641455,-2.372371269232899,-1.2340866480974244,-1.7799655462213397,-1.200320298289392,-2.5182847227081746,-0.11880355693396397,-0.11641597858524373,-0.10431794988851092,-0.12093926017549007,-0.11900568107544,-0.11703269046892086,-0.11921628134376808,-0.07335320760580027,-0.12470375547700642,-0.11711782185361028,-0.11044729981001118,-0.1175742556807152,-0.09424638680754953,-0.12291965702164467,-0.10455922179664465,-0.10157008433594156,-0.10408252769363945,-0.07153758512629291,-0.11312299753659688,-0.1203090598926697,-0.11898437712682276,-0.11635518801465085,-0.10032835676472276,-0.07020456106898126,-0.16138721955258092,-0.12297601450294662,-0.1138137661407516,-0.10975018482059595,-0.11185575244879467,-0.08116443662447598,-0.11014530956640742,-0.11166711878936268,-0.11779095293887046,-0.11894393513304549,-0.11659461287546402,-0.10464199238250281,-6.273522134855024,402603.6663444434,471177.4208755519,311250.14444967976,285881.77415927546,372733.9530917718,-3.788830558901378,-1.3545812733268476,-6.21967381345373,-1.4957472246593195,-0.7962960039363913,-4.0395075414642045,-1.3509370779457226,-6.359244334862703,-1.6037313263152637,-0.9204017837628494,-3.885717113730321,-1.7118174591757729,-6.467605024055432,-1.5461296617673441,-1.1588372835125351,-4.204077700527685,-1.4471876637033854,-6.4832067351676725,-1.5330646846017055,-0.9333795420453835,-4.1035547825501215,-1.350903970173912,-6.392699789723814,-1.6793636054761827,-1.0276668401653932,-6.256724897494384,-6.329900195803134,-6.64621297666858,-6.405235624003793,-6.425561254442096,-6.714674902442769,-6.217102589422131,-6.5342649081516395,-6.51664201522596,-6.311513593018512,-6.46051706074677,-6.767323981294013,-6.3213640354777665,-6.544335067748557,-6.756317307815663,-5.985250013860791,-5.418152474115644,-4.172111034241619,-5.734635409165078,-7.855462500810985,-7.335731121987288,-5.896254072682361,-4.2455534986649,-5.266169945052477,-6.380565365324756,-6.285118510855798,-5.8388456396305015,-4.035759580548262,-5.732057988554281,-7.142405780003742,-6.145699971904428,-5.513790756231485,-4.093669303667591,-5.8423348930095225,-7.96104155061654,-7.065662369484828,-6.026198789484772,-4.301940646763752,-5.425083439283214,-6.525869148332392,-6.5661106737703285,-5.688250976262343,-4.093460615312984,-5.840061904284839,-7.121543995151241,-6.399179224022509,-5.38786043565156,-4.168662870255163,-5.829662425109312,-8.128389129691586,-7.29000878683591,-6.2435187348260595,-4.296630008428334,-5.253965392374316,-6.6087087932775415,-6.7759125314864095,-5.780577752236945,-4.254844448261666,-6.007233937706074,-7.4198626873777345,-6.210607378457629,-5.57963273033331,-4.206603736882695,-5.818671600799253,-7.977768195123727,-7.255818686697498,-6.17262316705068,-4.568421898879624,-5.3904498757015675,-6.310976239223721,-6.457440473226897,-5.735513750764313,-4.151195488885022,-6.093643709712813,-7.101145635655747,-6.149339032800961,-5.446095880861709,-4.000694449034315,-5.606282652464023,-7.812691156012887,-7.2495494089290435,-5.9953229061003075,-4.3639307260602616,-5.220199789743392,-6.490144432743205,-6.384369101904068,-5.706016117432827,-4.23587626816189,-5.858255364474759,-7.3184937356169115,-6.269307486966149,-6.25188961128986,-6.320756659255058,-6.386689867181597,-6.179179360355778,-5.253051167956819,-5.467284919478711,-5.569103280078959,-5.467805592628772,-5.625597439571935,-6.820813996863714,-5.252230860349258,-4.152833005202968,-5.6276706812780155,-5.9269962709112,-6.373972788219166,-6.159193732769758,-5.875200147702199,-6.793824690338993,-5.378653403270522,-4.1517998149262345,-5.677144224372204,-6.039829470163359,-6.182929890017218,-6.206751696333946,-6.1603203820949375,-6.74300415169331,-5.505567946553222,-4.32433734032106,-5.824103696398217,-6.2252603854524,-6.293410578223349,-6.3549210219651915,-6.156919369024794,-6.858920771373727,-5.235418232111772,-4.337237380015791,-5.641463244129503,-6.3314777912241755,-6.324798483754129,-6.1955056494128975,-6.039856103949702,-6.983814981916187,-5.182697448064032,-4.218009915183148,-5.725725880334795,-6.104735261966257,-6.417681506480656,-6.397316101272768,-5.989575412877874,-6.116874662602767,-6.270647160891374,-6.458715408081759,-6.005066707149471,-6.20459271748113,-6.483843179522029,-5.962527787621244,-6.292547053015548,-6.540452438070785,-6.343912462697606,-6.231665022430772,-6.536795127566298,-6.2305796566790566,-6.203672879276724,-6.415478156871093,-3.997270292994804,-1.4275760376739695,-6.37304537810421,-1.5747589094975092,-0.9572521549803831,-6.309554286772066,-6.452456206117086,-6.682874976567971,-6.1642555627094096,-5.468169596921619,-4.122174597226105,-5.76528429362523,-7.938839392877876,-7.229176154886056,-6.050973714814774,-4.342584724835659,-5.314700120795056,-6.467579374158362,-6.486575001267297,-5.747644084338043,-4.145850575363509,-5.887698618808702,-7.2131174400672515,-5.469778340470696,-6.839643500128677,-5.310644844787371,-4.223294125572171,-5.695439710737161,-6.104840762427095,-6.312759108959678,-6.258163653041627,-6.044284063213213,-6.1204359788144655,-6.237877931918684,-6.4823022872766405,-1.3352165521243404,-2.2987963193789756,-1.9136910866384473,-2.874262497560305,-0.16607954741405795,-0.9666178362582443,-2.1069477495117925,-1.308470090346027,-2.785659941680512,-0.3616333554908233,-1.4026814126724743,-2.5409660338079485,-1.9950871356840334,-2.5747323836159812,-1.2567679591971985,-1.819591094322069,-2.1056716815211294,-1.3240429266854528,-2.6312949633030884,-1.993019737099168,-0.18510079349466835,-0.20194618170779835,-0.1416001715514688,-0.5264974962417232,-0.8125780834407831,-0.030949328605106782,-1.3382013652227425,-0.6999261390188218,-1.58143166430983,-1.8675122515088907,-1.085883496673214,-2.3931355332908493,-1.754860307086929,-0.1018878653318484,-0.01930712591909882,-0.26216029735337115,-1.4974178264422524,-1.7834984136413121,-1.0018696588056355,-2.3091216954232716,-1.6708464692193505,-0.18639400293854771,-0.04236041680700425,-0.0929227590999401,-1.1134929267764575,-1.3995735139755179,-0.6179447591398417,-1.925196795757477,-1.2869215695535565,-0.048130828007909424,-0.1072904230563975,-0.0998242558531774,-1.8160990127961378,-2.1021795999951975,-1.3205508451595218,-2.627802881777157,-1.989527655573237,-0.2493601465260705,-0.39080587873370537,-0.14155341283369846,-1.7672850910394933,-2.053365678238553,-1.2717369234028773,-2.5789889600205127,-1.9407137338165916,-0.198168877097996,-0.34825904226425486,-0.35295375796234096,-1.874814766132879,-2.160895353331939,-1.3792665984962624,-2.6865186351138983,-2.0482434089099772,-0.240324465305478,-0.25716985351860816,-0.19682384336227862,-1.752884461029377,-2.0389650482284374,-1.2573362933927608,-2.5645883300103964,-1.9263131038064758,-0.11839416020197649,-0.1352395484151066,-0.07489353825877705,-1.7267643742899415,-2.0128449614890016,-1.2312162066533248,-2.5384682432709607,-1.90019301706704,-0.0922740734625406,-0.10911946167567074,-0.048773451519341135,-1.6281986415014464,-1.9142792287005062,-1.13265047386483,-2.4399025104824656,-1.8016272842785452,0.006291659325954567,-1.7623365469569707,-2.048417134156031,-1.266788379320354,-2.574040415937989,-1.9357651897340697,-0.14469163434269983,-1.7046239710522149,-1.9907045582512741,-1.2090758034155982,-2.5163278400332336,-1.878052613829313,-0.02663304828161416,-0.566121365273653,0.9628772900676532,2.0502280092828524,0.5780824241178628,0.1686813724279288,0.1332366790074515,0.20354375922204482,0.42505954043284455,0.0012741332448089203,0.205831225042237,0.6874972307970747,0.08361645952111778,0.021780951394761525,0.17093114161604345,0.23600962826822436,0.5930592301157321,0.9895893152756177,0.9880709797642819,0.2974392712010989,0.3578223403460803,0.9904315618148076,1.0,1.0,0.3239751298249397,0.3579202054887246,1.0,36.72192552548344,45.4505045572807,27.424156312936983,33.748176889791075,41.54915559521329,0.21159789149738714,0.3065006107014499,0.12216618222462033,0.13808450587712226,0.22165080969942044,0.14852100260068896,0.2172867945381471,0.3444179008936884,0.10561985439182164,0.18415444757565416,0.29934226024356375,0.353599218390266,0.34705852136617066,0.2125673160068383,0.3115224812432749,0.12531996985550165,0.13017008408021946,0.220420148814166,1.4737571201535948,1.0944970067096924,1.5090486199465254,0.803743794384328,3.88622862814021,0.5,0.3614539345420697,0.2684365313726226,0.3701095340853078,7637.224369762923,3.517250934861845,568.1980841902748,1897.8394038361184,230.82363765227305,60.126420817859064,350.42764600899886,483.8457035246887,1215.8366695999355,598.10462154305,866.357554269713,345.31609775382896,390.3109834608872,626.5202961704346", + 305: "0.29159692486496175,0.31029079846296986,0.08955476434325738,0.2617398331191027,0.3738839134284821,0.2967177729967309,-3.1452659530035922,-1.1072680276336446,-3.063375318983459,-2.0093792471227956,-4.525820385345199,-3.53284074821208,-0.6282715486089985,-3.0293925849638823,-2.4005832820748423,-4.283981901461117,-3.007662061194156,-1.1672887225131325,-2.1388561675756472,-1.6803229287112686,-4.486281759906206,0.29627098733508395,0.2979698835086184,0.2970256043962661,0.29526345214198924,0.2965154447929416,0.2977589503741215,0.2958083211033339,0.2902719594264843,0.29561088718174205,0.297251369224126,0.30092812429121296,0.29656803304448764,0.3025435366845117,0.2964373696642753,0.29705875253154856,0.29739217684223185,0.2968756661527865,0.3087669389057079,0.2964930725085618,0.26508840243770787,0.29350893097659764,0.2970035297150352,0.2979590734921067,0.30858219867166997,0.2632245323738928,0.29478343185788086,0.29643613835209714,0.2982606312227239,0.2960632267678564,0.29804068664049727,0.296723212875703,0.29594409430738233,0.2963378542686842,0.2953921527871232,0.2970578562798317,0.29619242515946986,-4.296671683662873,403201.7709659864,472043.7784298216,311595.4605474336,286272.0851427363,373360.47338794224,-2.653908466357934,-1.5742050512910253,-1.9843637092657234,-0.7455676580359787,-3.569607599582812,-2.7286473532396722,-1.4053986673853371,-2.105857202059172,-0.8589916670682758,-3.6361553897776577,-2.9481118043500896,-1.587540541986221,-2.001696048525228,-0.9043083651442129,-4.03625551031548,-2.7652022556782696,-1.6250649545398475,-2.206773379011945,-1.140786720738575,-3.6194064062330935,-2.855594013659193,-1.6220883505705936,-2.016820471358728,-1.0991732630204771,-3.571214905592055,-3.5389829027331854,-3.916752661226037,-5.561474424391635,-3.709963316451611,-4.090639275743758,-5.545381789356635,-4.032832409992361,-4.204066904002216,-5.689649844686644,-3.9930613876432597,-3.8485494252420707,-5.674002548274691,-3.752905736177416,-3.8978792917441663,-5.380386478336685,-3.6985327270133954,-3.7403876333709505,-3.721546124652888,-3.685382537791468,-2.8661744663381588,-3.457036149360989,-3.846424705953559,-4.518710485251858,-3.7159408021217306,-3.742871863760749,-3.620066794511499,-5.450012899580996,-4.627868495561064,-5.309321623002706,-2.9174453826793956,-3.581218540322291,-3.525848765924325,-3.762908407985467,-3.721730075896949,-2.8932692527972,-3.321977818601066,-3.7308346705264146,-4.603621524236526,-3.8419371751673346,-3.8926337245513953,-3.4049662529142677,-5.581010592000964,-4.720923407761912,-5.454897848244524,-2.863584614735336,-3.5277541676090154,-3.733629623968173,-3.8279697966517037,-4.028599612495065,-2.8040730883775855,-3.5455563203757894,-4.0841053979445086,-4.843441681417936,-3.939959844566555,-3.6855702040683096,-3.3724024134118284,-5.816223316090104,-4.628621579079765,-5.448015866603452,-2.7586683802651017,-3.6577343035018597,-3.8336957140235617,-3.832227014959888,-3.72887882623391,-3.0321120044555876,-3.4608886905851795,-4.110814696915415,-4.785468183587249,-3.6557628379518485,-3.8729998267432415,-3.6669257674002407,-5.652942946683687,-4.6621272758890555,-5.6090685631355415,-2.9587764553967695,-3.540788386463895,-3.7370604963848173,-3.8441543216054574,-3.7881633983319705,-2.8682985396600262,-3.457376381572189,-3.7862050754001713,-4.752451620901317,-3.748070264487464,-3.9444830846240477,-3.8455212357367308,-5.600069322348977,-4.7919963397493595,-5.3140582682052635,-2.885688465757644,-4.131696256525189,-4.323021242476659,-4.604327389467478,-4.313179652979362,-4.172101311682859,-2.343177267626829,-2.4435685590320024,-2.6268229411206847,-2.4951068728359367,-2.538667730202301,-3.399219690235707,-4.205766893116016,-4.5576726453659,-4.208239693916947,-3.090206743865707,-4.628604991761825,-4.547057271534909,-3.684874764733633,-3.402469458850709,-4.274084576146235,-4.815789205241508,-4.435374204745973,-3.081684713869355,-4.810141996891131,-4.422912296246274,-3.9207724043099517,-3.899301119059641,-4.336765174725394,-5.0318060030660305,-4.676752377777985,-3.0271357851521197,-4.834636274699809,-4.561297790682291,-4.254439994105391,-3.5234613956208882,-4.2264544048967165,-4.971176808213023,-4.418694328977106,-3.16235749499492,-5.013220514842394,-4.6033073681958,-3.6929810811300183,-3.5223527120517306,-4.132170541138488,-4.801320491408976,-4.277159534967014,-3.0925622394965373,-4.73980305322989,-4.257826278419606,-3.784069659942268,-3.8586374559525027,-3.7972916029078405,-5.587957588988052,-3.8118338954631352,-4.098706761210182,-5.599153433487641,-3.8201399913979737,-4.092615112345083,-5.638763229231951,-3.8128319821260126,-3.7571623371839977,-5.871048187347271,-3.622656854735829,-3.9327539278001895,-5.7764389013002475,-2.7806983493548065,-1.5508680137004247,-2.059392499260875,-0.9341252029201468,-3.6734135554385876,-3.7796859584551834,-3.995300579846977,-5.559819935649412,-3.601501168962219,-3.6981946517745383,-3.7920306674752764,-3.780119120326754,-2.888777415377611,-3.4381130206289923,-3.8857973312033383,-4.683836855370914,-3.7831216829189724,-3.8324289982759145,-3.5761356070344563,-5.607103961591931,-4.690283053674159,-5.417372184457385,-2.8768687505263286,-2.479790869692937,-3.5285998642266776,-4.233664230137009,-4.817044509865605,-4.391932055227468,-3.0890471276278726,-4.7918965113959695,-4.467961002502329,-3.8626103271591496,-3.785358517911237,-3.94535275524517,-5.681394151754209,-3.1282561818514316,-5.166254107221379,-3.210146815871565,-4.264142887732229,-1.747701749509825,-2.740681386642944,-5.645250586246025,-3.2441295498911416,-3.8729388527801816,-1.9895402333939067,-3.265860073660868,-5.106233412341892,-4.134665967279377,-4.593199206143755,-1.7872403749488175,-1.789229318320669,-2.1696848803652613,-1.4153665524571073,-2.7044201150470526,-1.8560435762116796,-0.21828928666597047,-0.2118886739186081,-0.0011253291976680013,-0.4437569986513639,-0.824212560695956,-0.0698942327878023,-1.3589477953777473,-0.5105712565423746,-1.4980786493660343,-1.878534211410627,-1.124215883502473,-2.4132694460924173,-1.5648929072570452,-0.08440894832510941,-0.02642509768695747,-0.23119069333725617,-1.4929726318762475,-1.8734281939208395,-1.1191098660126855,-2.4081634286026308,-1.5597868897672578,-0.22130156048094002,-0.07291106501967091,0.05371348995554609,-1.2057782501498915,-1.5862338121944841,-0.8319154842863306,-2.120969046876275,-1.2725925080409026,-0.14581912944615133,-0.10988214620022685,-0.10251797588700423,-1.7956124821037902,-2.176068044148382,-1.421749716240229,-2.7108032788301735,-1.8624267399948014,-0.28560542536353484,-0.41260632809118436,-0.024854058627336903,-1.6213914597628507,-2.0018470218074427,-1.2475286938992893,-2.536582256489234,-1.6882057176538612,-0.19837896061322255,-0.2390949509730252,-0.33887621987626126,-1.8884531057237073,-2.2689086677682995,-1.5145903398601457,-2.8036439024500908,-1.9552673636147178,-0.3175130740690088,-0.3111124613216466,-0.1003491166007065,-1.7463222802411917,-2.1267778422857844,-1.37245951437763,-2.661513076967575,-1.8131365381322022,-0.1753822485864934,-0.16898163583913114,0.041781708881809,-1.6622791346413817,-2.042734696685974,-1.2884163687778196,-2.577469931367765,-1.7290933925323921,-0.09133910298668317,-0.08493849023932093,0.12582485448161923,-1.565844794206945,-1.9463003562515369,-1.1919820283433833,-2.4810355909333284,-1.6326590520979558,0.00509523744775375,-1.70256833285031,-2.0830238948949025,-1.3287055669867482,-2.6177591295766924,-1.7693825907413212,-0.12522768844824916,-1.8242311541869336,-2.2046867162315253,-1.4503683883233718,-2.739421950913316,-1.8910454120779439,-0.036127165063932445,0.7680718194361953,0.06300745352586379,-0.5203728262027321,-0.09526037156459477,1.2076245560350003,-0.0450267087452475,0.23792348225846627,1.1259468378931103,0.2887414637673435,0.036066080627089825,0.004596072591614297,0.020867400391336964,0.6497289826226152,0.02423643699776069,0.0815817114067826,0.8941818515954567,0.9914074156302235,0.9901993044673421,0.2879060198731678,0.34992755115155116,0.9921151699563082,1.0,1.0,0.31517568760827114,0.3516014947781366,1.0,28.027021905693083,33.446068647125614,16.182036164489762,22.8737798610988,30.839946395286766,0.22514030617838796,0.31454386809735396,0.10045652661510274,0.1304580272230758,0.22940127188607956,0.16254304871735442,0.19916472314704137,0.310435718063481,0.09714460899177318,0.23071190108035028,0.27183167791898344,0.32639746769191763,0.4017708543890993,0.21382461502399328,0.3118246199286828,0.12283362553146177,0.13019887839450509,0.22131826112135733,1.499659822099342,1.0790664582753113,1.506749074864118,1.8168808139699357,3.6480565660233286,0.5,0.3670710729355742,0.2641226208577255,0.3688063062067003,7681.699798905109,814.1729061709614,101.69660185006995,12.959682790492703,58.84043046390275,1832.0601658776566,49.17356595543613,165.52200585380743,1814.2151117198366,637.835844577652,891.1214396485362,284.5992998077934,369.59533096589786,649.9074132230658", + } + + gettersMap := map[int](func(header string) alloraMath.Dec){} + for epochNumber, epoch := range simulatorEpochs { + gettersMap[epochNumber] = GetSimulatedValuesGetterForEpoch(epoch, simulatorHeaders) + } + return gettersMap +} + +func GetTokenomicsSimulatorValuesGetterForEpochs() map[int]func(header string) alloraMath.Dec { + const simulatorHeaders = "epoch,time,network_tokens_total,network_tokens_emission,network_tokens_circulating,network_tokens_staked,investors_preseed_tokens_total,investors_preseed_tokens_emission,investors_preseed_tokens_circulating,investors_preseed_tokens_staked,investors_seed_tokens_total,investors_seed_tokens_emission,investors_seed_tokens_circulating,investors_seed_tokens_staked,team_tokens_total,team_tokens_emission,team_tokens_circulating,team_tokens_staked,ecosystem_tokens_total,ecosystem_tokens_emission,ecosystem_tokens_circulating,ecosystem_tokens_staked,foundation_tokens_total,foundation_tokens_emission,foundation_tokens_circulating,foundation_tokens_staked,participants_tokens_total,participants_tokens_emission,participants_tokens_circulating,participants_tokens_staked,ehat_target_i,ehat_max_i,ehat_i,e_i,validator_rewards,topics_rewards,n_active_topics,all_topic_weight_sum,topic_id_0,topic_months_live_0,topic_n_workers_0,topic_n_reputers_0,topic_total_stake_0,topic_total_fee_revenue_0,topic_weights_0,topic_rewards_0,topic_id_1,topic_months_live_1,topic_n_workers_1,topic_n_reputers_1,topic_total_stake_1,topic_total_fee_revenue_1,topic_weights_1,topic_rewards_1,topic_id_2,topic_months_live_2,topic_n_workers_2,topic_n_reputers_2,topic_total_stake_2,topic_total_fee_revenue_2,topic_weights_2,topic_rewards_2,n_active_validators,all_validator_stake_sum,validator_id_0,validator_months_live_0,validator_stake_0,validator_rewards_0,validator_id_1,validator_months_live_1,validator_stake_1,validator_rewards_1,validator_id_2,validator_months_live_2,validator_stake_2,validator_rewards_2" + simulatorEpochs := map[int]string{ + 0: "0,2024-09-01 00:00:00,1000000000.0,155000000.0,155000000.0,47000000.0,50000000.0,0.0,0.0,0.0,260500000.0,0.0,0.0,0.0,175000000.0,0.0,0.0,0.0,359500000.0,0.0,0.0,0.0,100000000.0,100000000.0,100000000.0,25000000.0,55000000.0,55000000.0,55000000.0,22000000.0,0.0,0.01897758586916609,0.0,0.0,0.0,0.0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", + 1: "1,2024-10-01 00:00:00,1000000000.0,891946.5358508063,155891946.5358508,47321195.640835635,50000000.0,0.0,0.0,0.0,260500000.0,0.0,0.0,0.0,175000000.0,0.0,0.0,0.0,358608053.46414924,891946.5358508063,0.0,0.0,100237219.82336457,0.0,100237219.82336457,25059304.955841143,55654726.71248623,0.0,55654726.71248623,22261890.684994493,0.029639627659574466,0.01897758586916609,0.01897758586916609,0.01897758586916609,222986.63396270157,668959.9018881047,3,1040922.4433738946,1,1,5,7,1116348.8993855934,74337.26358999203,288073.46700455487,185133.48371979792,2,1,9,11,1254714.5661832283,68705.51709378888,293608.26465671515,188690.48041818666,3,1,16,11,1061630.2874523632,198658.64207814567,459240.7117126246,295135.9377501202,3,4000857.234830969,1,1,1220576.890643749,68028.50398354916,2,1,1199203.1614497465,66837.24529860828,3,1,1581077.1827374736,88120.88468054413", + 2: "2,2024-11-01 00:00:00,1000000000.0,898042.0537055664,156789988.58955637,47644745.07894628,50000000.0,0.0,0.0,0.0,260500000.0,0.0,0.0,0.0,175000000.0,0.0,0.0,0.0,357710011.41044366,898042.0537055664,0.0,0.0,100475002.37917511,0.0,100475002.37917511,25118750.594793778,56314986.21038125,0.0,56314986.21038125,22525994.4841525,0.029534390847954634,0.01897758586916609,0.01897758586916609,0.01897758586916609,224510.5134263916,673531.5402791748,6,3018763.8682387685,1,2,5,7,1178060.0606255261,117255.20797804561,366439.0222759296,81758.04728837454,2,2,13,11,1317611.3929892904,72828.84212954807,308763.91550895997,68889.86508133536,3,2,17,10,1063497.0890552187,257078.24365257853,518901.17231771885,115774.64190590323,7,9131674.264555544,1,2,1288605.394627298,32474.531687282917,2,2,1266040.4067483547,31905.86464851901,3,2,1669198.0674180177,42065.961976199775", + 3: "3,2024-12-01 00:00:00,1000000000.0,904182.2409502316,157694170.8305066,47970665.98185095,50000000.0,0.0,0.0,0.0,260500000.0,0.0,0.0,0.0,175000000.0,0.0,0.0,0.0,356805829.16949344,904182.2409502316,0.0,0.0,100713349.00234455,0.0,100713349.00234455,25178337.250586137,56980821.828162044,0.0,56980821.828162044,22792328.73126482,0.029428926796901407,0.01897758586916609,0.01897758586916609,0.01897758586916609,226045.5602375579,678136.6807126737,7,3414813.425347168,1,3,5,7,1205312.7430549844,157069.847923818,430815.45371665916,85554.23837055989,2,3,13,11,1340574.6813497355,128703.68926349623,408712.39019880164,81164.8629463206,3,3,17,9,1005576.7920433353,69994.63181035031,281151.6410350818,55832.98906266544,8,13848700.93929397,1,3,1321079.926314581,21927.723169595884,2,3,1297946.2713968738,21543.743085702266,3,3,1711264.0293942175,28404.12844007456", + 4: "4,2025-01-01 00:00:00,1000000000.0,910367.4328716611,158604538.26337826,48298976.15070843,50000000.0,0.0,0.0,0.0,260500000.0,0.0,0.0,0.0,175000000.0,0.0,0.0,0.0,355895461.7366218,910367.4328716611,0.0,0.0,100952261.03095245,0.0,100952261.03095245,25238065.257738113,57652277.232425794,0.0,57652277.232425794,23060910.89297032,0.029323232347692546,0.01897758586916609,0.01897758586916609,0.01897758586916609,227591.8582179153,682775.5746537459,12,10163400.925300306,1,4,5,7,1233830.8225118376,101232.03575633248,358253.9126822921,24067.437947340186,2,4,16,11,1367629.6356651757,96122.53757752318,365457.8117297119,24551.39468072117,3,4,17,9,1024187.7883975571,139685.7921786202,372170.7196334454,25002.366711172075,9,17004927.05043693,1,4,1343007.649484177,18220.952729754186,2,4,1319490.014482576,17901.882532466505,3,4,1739668.1578342922,23602.55452121358", + 5: "5,2025-02-01 00:00:00,1000000000.0,916597.9672928745,159521136.23067114,48629693.521330565,50000000.0,0.0,0.0,0.0,260500000.0,0.0,0.0,0.0,175000000.0,0.0,0.0,0.0,354978863.76932895,916597.9672928745,0.0,0.0,101191739.80625263,0.0,101191739.80625263,25297934.951563157,58329396.424418494,0.0,58329396.424418494,23331758.5697674,0.02921730431854131,0.01897758586916609,0.01897758586916609,0.01897758586916609,229149.49182321862,687448.4754696558,16,10938365.947389785,1,5,5,7,1241853.3018276177,155024.14135717688,433735.7455983521,27259.18830128681,2,5,16,11,1375813.433892083,164500.12416091637,468840.4001095446,29465.426540314365,3,5,17,9,1032521.9106346144,102134.21728211794,327704.05848956556,20595.366483202102,13,23240004.910929155,1,5,1361228.602213931,13542.579684064165,2,5,1337391.8970150424,13305.433271597905,4,5,1190566.924736879,11844.7022206535", + 6: "6,2025-03-01 00:00:00,1000000000.0,922874.1845922807,160444010.41526338,48962836.16520328,50000000.0,0.0,0.0,0.0,260500000.0,0.0,0.0,0.0,175000000.0,0.0,0.0,0.0,354055989.58473665,922874.1845922807,0.0,0.0,101431786.67268056,0.0,101431786.67268056,25357946.66817014,59012223.74258284,0.0,59012223.74258284,23604889.497033138,0.029111139504466383,0.01897758586916609,0.01897758586916609,0.01897758586916609,230718.54614807016,692155.6384442105,17,12505914.986387884,1,6,5,7,1250939.6979280466,65050.23960991805,294540.81779291236,16301.73306065444,2,6,18,11,1385635.2427388544,110306.1530120529,395820.7765374882,21907.20012026243,3,6,17,8,942875.1884818305,111112.76502738033,323926.76350284833,17928.13529002242,16,27620508.791959144,1,6,1374771.1818979953,11580.62535245088,2,6,1350697.3302866402,11377.835055438176,4,6,1202411.6269575325,10128.72451399646", + 7: "7,2025-04-01 00:00:00,1000000000.0,929196.427723056,161373206.84298646,49298422.29051542,50000000.0,0.0,0.0,0.0,260500000.0,0.0,0.0,0.0,175000000.0,0.0,0.0,0.0,353126793.1570136,929196.427723056,0.0,0.0,101672402.97786102,0.0,101672402.97786102,25418100.744465254,59700803.86512543,0.0,59700803.86512543,23880321.546050176,0.02900473467716045,0.01897758586916609,0.01897758586916609,0.01897758586916609,232299.106930764,696897.320792292,19,13449513.173341999,1,7,5,5,937416.7805523808,75655.58177698312,268074.0666861,13890.472944234854,2,7,21,11,1392937.642778942,183082.90728193548,498174.5101351795,25813.312119605216,3,7,17,7,852339.3892646534,122683.21205551724,323404.1847446233,16757.447424064645,16,27831795.8852812,1,7,1386351.8072504462,11664.48974617264,2,7,1362075.1653420783,11460.230885520752,4,7,1212540.3514715289,10202.074554662551", + 8: "8,2025-05-01 00:00:00,1000000000.0,935565.0422326683,162308771.88521913,49636470.24319531,50000000.0,0.0,0.0,0.0,260500000.0,0.0,0.0,0.0,175000000.0,0.0,0.0,0.0,352191228.11478096,935565.0422326683,0.0,0.0,101913590.07261562,0.0,101913590.07261562,25478397.518153906,60395181.812603496,0.0,60395181.812603496,24158072.7250414,0.02889808658485744,0.01897758586916609,0.01897758586916609,0.01897758586916609,233891.26055816707,701673.7816745013,22,16415000.689164141,1,8,5,4,782568.5240025172,71718.76029499152,238854.77890288742,10210.059637368802,2,8,23,11,1401542.0801521437,387828.61535778694,722320.8551391842,30876.246404451358,3,8,17,6,761413.3607588238,46137.44162653922,195927.53519083103,8375.09648368554,17,27406553.95146972,1,8,1398016.2969966189,12022.435773938783,2,8,1373535.3962275991,11811.908859613106,4,8,1222742.4260261913,10515.143719390799", + 9: "9,2025-06-01 00:00:00,1000000000.0,941980.3762825466,163250752.26150167,49976998.50795511,50000000.0,0.0,0.0,0.0,260500000.0,0.0,0.0,0.0,175000000.0,0.0,0.0,0.0,351249247.73849845,941980.3762825466,0.0,0.0,102155349.31097038,0.0,102155349.31097038,25538837.327742595,61095402.95053129,0.0,61095402.95053129,24438161.180212516,0.02879119195219858,0.01897758586916609,0.01897758586916609,0.01897758586916609,235495.09407063664,706485.2822119099,23,15196787.76738538,1,9,7,4,785971.8772149734,59987.97421533737,218495.19000991172,10157.648993913388,2,9,27,10,1297769.201724849,112110.13821892453,402740.8886716371,18723.069292452896,3,9,18,3,474669.5266451654,41433.799250156684,143720.8194938122,6681.4543490385495,17,28077424.072875783,2,9,1385347.3050872122,11712.691340471954,4,9,1233257.569745582,10426.818751288665,5,9,1804997.2034230973,15260.703966778125", + 10: "10,2025-07-01 00:00:00,1000000000.0,948442.7806679037,164199195.04216957,50320025.70934334,50000000.0,0.0,0.0,0.0,260500000.0,0.0,0.0,0.0,175000000.0,0.0,0.0,0.0,350300804.95783055,948442.7806679037,0.0,0.0,102397682.05016333,0.0,102397682.05016333,25599420.512540832,61801512.99200624,0.0,61801512.99200624,24720605.196802497,0.028684047480096786,0.01897758586916609,0.01897758586916609,0.01897758586916609,237110.69516697593,711332.0855009278,25,15441071.672555208,1,10,8,4,789357.7602129446,85859.61660112168,257719.36804327113,11872.495603400335,2,10,29,10,1304010.2248223333,61498.29714158057,290658.34223851917,13389.912898354818,3,10,18,3,476896.6780948449,37162.1609992248,133788.10317436984,6163.2879157855305,20,36830859.46417097,2,10,1397059.996427684,9052.375643545956,4,10,1243684.3884968706,8058.564625338322,5,10,1820257.9073898755,11794.524492836246", + 11: "11,2025-08-01 00:00:00,1000000000.0,954952.6088377084,165154147.65100726,50665570.61280509,50000000.0,0.0,0.0,0.0,260500000.0,0.0,0.0,0.0,175000000.0,0.0,0.0,0.0,349345852.3489928,954952.6088377084,0.0,0.0,102640589.65065214,0.0,102640589.65065214,25660147.412663035,62513558.00035513,0.0,62513558.00035513,25005423.200142056,0.02857664984560002,0.01897758586916609,0.01897758586916609,0.01897758586916609,238738.1522094271,716214.4566282813,28,23614019.22766936,1,11,8,4,793315.2587474113,56323.643440424115,214278.2093428956,6499.069463447289,2,11,33,10,1308473.529121785,98570.41010175955,354853.6741412461,10762.730772651525,3,11,18,3,478951.10740010673,40430.17836202977,138819.44995068156,4210.40128566361,21,41558338.70829051,2,11,1406112.37207123,8122.620122244099,4,11,1251742.953122209,7230.881898813595,5,11,1832052.4318827118,10583.127098367437", + 12: "12,2025-09-01 00:00:00,1000000000.0,165057335.8655695,330211483.51657677,173692151.3613326,50117123.62819248,16666666.666666666,16783790.294859145,12587842.72114436,261110214.1028828,86833333.33333333,87443547.43621615,65582660.57716211,175409932.69867367,58333333.333333336,58743266.03200701,44057449.52400526,346121849.81675667,3224002.532236168,0.0,0.0,102881022.41584614,0.0,102881022.41584614,25720255.603961535,64359857.33764834,0.0,64359857.33764834,25743942.93505934,0.01659953228547101,0.01897758586916609,0.01659953228547101,0.018739780510796583,806000.633059042,2418001.899177126,31,26254155.12447491,1,12,8,3,636003.201037285,85225.86976675312,231658.66885321747,21335.712331711453,2,12,36,10,1312061.1060460021,217290.8436668184,522753.1982195774,48145.4543139154,3,12,18,3,480354.57449532795,54407.08677892734,160234.60383063936,14757.571688726335,20,40669562.710673854,2,12,1414234.9921934742,28189.60614132002,4,12,1258973.8350210227,25094.82281754674,5,12,1842635.5589810794,36728.81165887713", + 13: "13,2025-10-01 00:00:00,1000000000.0,16883562.30731221,347095045.82388896,185558143.831933,50243086.3494447,1388888.888888889,18298641.905000262,13723981.428750196,261766479.88060692,7236111.111111111,95335924.32505135,71501943.24378851,175850802.22305647,4861111.111111111,64045246.66750091,48033935.000625685,342724398.62055564,3397451.196201096,0.0,0.0,103118726.74510653,0.0,103118726.74510653,25779681.686276633,66296506.18122991,0.0,66296506.18122991,26518602.472491965,0.016180207899851962,0.01897758586916609,0.016180207899851962,0.018483823249702123,849362.799050274,2548088.397150822,34,27075765.508930024,1,13,9,3,643115.1051478555,70405.77779309718,213968.04736924995,20136.438937720308,2,13,39,10,1328109.5908173074,301012.4609967078,625434.232382077,58859.340844419916,3,13,18,3,485273.7650582367,58740.110723229445,168296.8573983042,15838.343313769963,22,46113187.003907725,2,13,1442424.5983347942,27029.112059435334,4,13,1284068.6578385695,24061.73306028971,5,13,1879364.3706399566,35216.78029699489", + 14: "14,2025-11-01 00:00:00,1000000000.0,17050163.104861215,364145208.92875016,197520138.65585896,50377559.707832135,1388888.888888889,19822004.152276583,14866503.114207437,262467086.07780546,7236111.111111111,103272641.63336098,77454481.22502074,176321458.9774125,4861111.111111111,69377014.53296803,52032760.89972602,339160346.62680554,3564051.9937501033,0.0,0.0,103353506.84768724,0.0,103353506.84768724,25838376.71192181,68320041.76245733,0.0,68320041.76245733,27328016.704982933,0.015789114041947667,0.01897758586916609,0.015789114041947667,0.018214352328926677,891012.9984375258,2673038.9953125776,35,27286456.733150844,1,14,9,3,649827.2514604289,58085.779433043695,195512.9253452366,19152.859553967694,2,14,40,10,1347729.3710987808,75551.33421945553,338242.8665826928,33134.98638184834,3,14,19,2,394041.36851564224,31398.28823052627,114797.14874138372,11245.771414637726,28,57241325.37507961,2,14,1469453.7103942295,23223.958579888447,4,14,1308130.3908988591,20674.326656521866,5,14,1914581.1509369514,30258.968372175485", + 15: "15,2025-12-01 00:00:00,1000000000.0,17210043.818442654,381355252.7471928,209574357.86303046,50520216.37236598,1388888.888888889,21353549.705699313,16015162.279274486,263210327.30002677,7236111.111111111,111251993.96669342,83438995.47502007,176820757.30328095,4861111.111111111,74737423.96994759,56053067.9774607,335436413.919474,3723932.707331542,0.0,0.0,103585212.73777167,0.0,103585212.73777167,25896303.18444292,70427072.36708081,0.0,70427072.36708081,28170828.946832325,0.01542102016643008,0.01897758586916609,0.01542102016643008,0.017935019112677017,930983.1768328855,2792949.5304986564,37,31226765.64576517,1,15,9,2,496733.12378047657,58110.094995326675,171498.59790724222,15338.986238274347,2,15,42,10,1358774.366559397,91643.78237107443,351963.7550823092,31479.949465819616,3,15,19,2,397789.9589871882,49161.793665955396,138277.64514706572,12367.674848974699,27,56837501.83159118,2,15,1492677.6689741178,24836.077907585142,4,15,1328804.717555381,22109.46018362679,5,15,1944840.1193091269,32359.431459945146", + 16: "16,2026-01-01 00:00:00,1000000000.0,17363334.362290878,398718587.10948366,221717079.35535243,50670731.76340127,1388888.888888889,22892953.98562349,17169715.489217617,263994512.48732063,7236111.111111111,119272290.26509838,89454217.69882378,177347561.17190447,4861111.111111111,80125338.9496822,60094004.212261654,331559190.6682942,3877223.2511797654,0.0,0.0,103813730.72388318,0.0,103813730.72388318,25953432.680970795,72614273.1851964,0.0,72614273.1851964,29045709.274078563,0.01507178404593902,0.01897758586916609,0.01507178404593902,0.01764869560600322,969305.8127949414,2907917.438384824,40,31147977.555965506,1,16,9,2,501846.1191932347,40647.92197280196,144617.1696781292,13501.190850715366,2,16,45,9,1255202.722485892,109085.1454348249,368903.1027035625,34440.109747045346,3,16,19,2,401912.51727017976,26822.43476001159,105981.18719968633,9894.207155021868,29,60975464.173555516,2,16,1517513.746881703,24503.42492260615,4,16,1350914.1777390076,21813.327358076607,5,16,1977199.550769072,31926.011114453067", + 17: "17,2026-02-01 00:00:00,1000000000.0,17510160.55340394,416228747.6628876,233944639.71866426,50828785.02790763,1388888.888888889,24439896.139018737,18329922.10426405,264817969.99539876,7236111.111111111,127331858.88428761,95498894.16321571,177900747.59767672,4861111.111111111,85539636.48656556,64154727.36492417,327535141.2260013,4024049.4422928276,0.0,0.0,104038975.83297272,0.0,104038975.83297272,26009743.95824318,74878380.32004294,0.0,74878380.32004294,29951352.128017176,0.014738092129720864,0.01897758586916609,0.014738092129720864,0.017357635258374984,1006012.3605732069,3018037.0817196206,40,32877032.500068903,1,17,10,2,506346.51614347316,44370.26826329577,149559.56825525482,13729.229452791693,2,17,47,9,1266682.7590682404,172282.7401282852,461008.01772703265,42319.49134908465,3,17,19,0,212186.89769415127,17482.452856906377,63723.249993839076,5849.649947837989,29,63736040.045181125,2,17,1542017.1718043091,24697.700231068866,4,17,1372727.5050970842,21986.27423854224,5,17,2009125.561883525,32179.13636844653", + 18: "18,2026-03-01 00:00:00,1000000000.0,17650639.78116081,433879387.4440484,246253433.45327324,50994059.537537135,1388888.888888889,25994059.53753713,19495544.65315285,265679050.19056848,7236111.111111111,135429050.19056845,101571787.64292634,178479208.38138,4861111.111111111,90979208.38137993,68234406.28603494,323370612.5559516,4164528.6700496958,0.0,0.0,104260885.75110698,0.0,104260885.75110698,26065221.437776744,77216183.58345589,0.0,77216183.58345589,30886473.43338236,0.014417270856986453,0.01897758586916609,0.014417270856986453,0.01706359881823613,1041132.1675124239,3123396.502537272,41,30445825.985375203,1,18,10,2,510922.9259610704,70676.64950915203,187497.93311500244,19235.161785581924,2,18,47,9,1280789.256184602,217901.87699459883,524081.37913234415,53764.80662449998,3,18,19,0,214136.78101009727,78153.60907333775,125263.32926703528,12850.597146445303,30,65704663.81575635,2,18,1566714.872035378,25209.00648762941,4,18,1394713.7793356264,22441.44696602076,5,18,2041304.6982519715,32845.327698083114", + 19: "19,2026-04-01 00:00:00,1000000000.0,17784878.138817698,451664265.582866,258639909.70395923,51166243.04148835,1388888.888888889,27555131.930377234,20666348.947782926,266576126.2461543,7236111.111111111,143562237.35726538,107671678.01794904,179081850.64520922,4861111.111111111,96442961.75632028,72332221.31724021,319071845.52824503,4298767.027706584,0.0,0.0,104479415.96382819,0.0,104479415.96382819,26119853.990957048,79624518.57507499,0.0,79624518.57507499,31849807.430029996,0.014107147326473593,0.01897758586916609,0.014107147326473593,0.016767953669059876,1074691.756926646,3224075.270779938,42,36943919.009941176,1,19,10,2,517334.6465562644,58445.245264886566,174735.15345938937,15249.039687770031,2,19,48,9,1298710.8583927685,120609.93116599692,403793.64723897615,35238.84708092027,3,19,19,0,218420.3133922457,14864.491714296879,61247.597338353095,5345.043765393036,28,63414235.815711185,2,19,1591923.8785230073,27392.951057068327,4,19,1417155.2263016473,24385.628156018996,5,19,2074150.0259500546,35690.83353318498", + 20: "20,2026-05-01 00:00:00,1000000000.0,17912968.682801772,469577234.26566786,271100567.3194797,51345027.57491729,1388888.888888889,29122805.35269506,21842104.014521293,267507593.66531906,7236111.111111111,151729815.88754123,113797361.91565593,179707596.5122105,4861111.111111111,101929818.73443267,76447364.0508245,314644987.95655435,4426857.571690661,0.0,0.0,104694535.85281043,0.0,104694535.85281043,26173633.963202607,82100258.43818843,0.0,82100258.43818843,32840103.375275373,0.013805944922315336,0.01897758586916609,0.013805944922315336,0.01647175279438542,1106714.3929226652,3320143.178767996,44,37812610.10254222,1,20,11,2,522417.65978552104,73415.70773347928,194521.80068532808,17080.022455885384,2,20,51,10,1424522.1013151868,178735.09702730118,498291.18283821037,43752.54887864226,4,20,6,13,1559696.0037465394,244713.7583668236,607086.9299062403,53305.379443031205,30,67547440.14987573,2,20,1619316.8295800756,26966.935918795036,4,20,1441540.8544576662,24006.382899488417,5,20,2109840.8594832397,35135.769737719784", + 21: "21,2026-06-01 00:00:00,1000000000.0,18034990.561562028,487612224.8272298,283631948.88002646,51530109.20006949,1388888.888888889,30696775.866736148,23022581.90005211,268471868.932362,7236111.111111111,159930202.2656953,119947651.69927147,180355382.20024318,4861111.111111111,107438715.53357647,80579036.65018235,310096108.50610346,4548879.450450915,0.0,0.0,104906225.55978826,0.0,104906225.55978826,26226556.389947064,84640305.60143366,0.0,84640305.60143366,33856122.240573466,0.013512204102045336,0.01897758586916609,0.013512204102045336,0.016175797925151413,1137219.8626127287,3411659.587838186,47,38483615.6727121,1,21,11,2,528111.0006041495,54940.17682570596,171848.04971345194,15234.718365403358,2,21,52,10,1439106.2842747343,187415.6667774028,518021.76663716824,45923.80149222139,4,21,6,14,1680531.8912650398,120535.19359953857,459883.79971047986,40769.739203227604,31,70674862.56631441,2,21,1646283.7654988705,26895.906693612087,5,21,2144976.6292209593,35043.22431438389,6,21,1301129.5910372594,21257.003689294896", + 22: "22,2026-07-01 00:00:00,1000000000.0,18151008.81266208,505763233.63989186,296230634.183362,51721187.63933239,1388888.888888889,32276743.19488794,24207557.396165956,269467387.60092175,7236111.111111111,168161832.04536614,126121374.0340246,181024156.73766333,4861111.111111111,112968601.18210773,84726450.8865808,305431210.80455244,4664897.701550969,0.0,0.0,105114473.46947625,0.0,105114473.46947625,26278618.367369063,87241583.74805385,0.0,87241583.74805385,34896633.49922154,0.013224721563733955,0.01897758586916609,0.013224721563733955,0.015880690289009666,1166224.4253877422,3498673.276163227,50,40216535.97925938,1,22,11,2,533189.240059284,72979.89420371942,195673.14735170212,17022.75929123314,2,22,56,10,1454414.2181054747,304299.4428340272,656062.2387239222,57074.71730799915,4,22,6,14,1694121.8043327823,297625.93286594487,694443.3817772286,60413.71894599337,29,66469082.653470956,2,22,1673179.6721924825,29827.764599249665,5,22,2180019.853535343,38863.20165947035,6,22,1322386.5947265544,23574.17838158472", + 23: "23,2026-08-01 00:00:00,1000000000.0,18261074.670114778,524024308.3100066,308893233.565543,51917965.8455836,1388888.888888889,33862410.29002804,25396807.717521034,270492602.05549055,7236111.111111111,176423157.61104605,132317368.20828453,181712880.45954257,4861111.111111111,118518436.01509807,88888827.01132354,300656247.2455488,4774963.559003667,0.0,0.0,105319274.19413309,0.0,105319274.19413309,26329818.548533272,89901030.19970143,0.0,89901030.19970143,35960412.07988057,0.01294250301688863,0.01897758586916609,0.01294250301688863,0.015586871561797564,1193740.8897509167,3581222.6692527505,51,38760100.31540213,1,23,11,2,538863.4931563617,34872.185072605,140743.51153884767,13003.935747629354,2,23,58,10,1473439.1238748077,98697.34631722744,398515.46963024547,36820.664092054096,4,23,6,14,1714259.7106481134,80237.67968890198,391097.9681754974,36135.327260033475,32,68444213.72021468,5,23,2218883.0551948133,39319.56168549084,6,23,1345960.7731081392,23851.00355810772,8,23,5887160.709344328,104323.01879160496", + 24: "24,2026-09-01 00:00:00,1000000000.0,18365226.257298443,542389534.5673051,321616381.34232306,52120149.54450354,1388888.888888889,35453482.87783687,26590112.15837765,271545979.1268634,7236111.111111111,184712645.79353002,138534484.34514752,182420523.40576234,4861111.111111111,124087190.07242894,93065392.5543217,295777132.0993615,4879115.146187332,0.0,0.0,105520626.96618325,0.0,105520626.96618325,26380156.74154581,92615588.85732605,0.0,92615588.85732605,37046235.54293042,0.012664726144450748,0.01897758586916609,0.012664726144450748,0.015294657020062882,1219778.786546833,3659336.3596404996,54,44904656.28588778,1,24,12,2,543198.1384055716,133549.83513384365,261302.69550473607,21293.88205189435,2,24,60,10,1485712.678572159,276211.23874949326,625471.3115760871,50970.4360677116,4,24,6,13,1623237.3920306347,131315.04896631226,457275.806517137,37263.97490983514,33,71027433.1900716,5,24,2258202.616880304,39454.623256405466,6,24,1369811.7766662468,23932.93107383679,8,24,5991483.728135933,104681.36538033992", + 25: "25,2026-10-01 00:00:00,1000000000.0,18463489.566701602,560853024.1340067,334396729.58671016,52327446.77517944,1388888.888888889,37049668.997401655,27787251.74805124,272625997.6986849,7236111.111111111,193028775.47646257,144771581.60734692,183146063.713128,4861111.111111111,129673841.4909057,97255381.11817928,290799753.643771,4977378.455590491,0.0,0.0,105718534.36374688,0.0,105718534.36374688,26429633.59093672,95382203.8054899,0.0,95382203.8054899,38152881.52219596,0.012390711283418834,0.01897758586916609,0.012390711283418834,0.015004262446398478,1244344.6138976228,3733033.8416928686,55,47607316.24339639,1,25,12,2,550296.0990895364,48512.70850069301,169509.72175459837,13291.770629763892,2,25,62,11,1616767.7844901746,98385.09727653583,412995.65417484584,32384.239969011844,4,25,6,14,1738726.1447047363,109067.21171007738,436837.0519269355,34253.716168568804,33,71976193.81466027,5,25,2297657.2401367095,40389.046257844166,6,25,1393744.7077400836,24499.74630210309,8,25,6096165.093516273,107160.58498909691", + 26: "26,2026-11-01 00:00:00,1000000000.0,18555879.64802933,579408903.782036,347230942.4024137,52539567.448799,1388888.888888889,38650678.5599101,28988008.919932578,273731146.4082428,7236111.111111111,201370035.2971316,151027526.4728487,183888486.07079646,4861111.111111111,135277374.95968527,101458031.21976395,285729985.10685277,5069768.53691822,0.0,0.0,105913001.30836752,0.0,105913001.30836752,26478250.32709188,98197813.65694153,0.0,98197813.65694153,39279125.462776616,0.012119898010143088,0.01897758586916609,0.012119898010143088,0.01471582600277294,1267442.134229555,3802326.4026886653,54,43411184.469002046,1,26,12,2,554726.6892994576,27301.090574023518,125966.45954015844,11033.230279739673,2,26,65,11,1627562.531146512,55570.14553789718,307754.9483121402,26955.83591737544,4,26,5,14,1750144.0500942592,222821.6254168719,612748.3160708055,53669.78876290964,33,73241417.26516542,5,26,2338046.2863945537,41171.09030224684,6,26,1418244.4540421867,24974.129395049116,8,26,6203325.67850537,109235.51136270876", + 27: "27,2026-12-01 00:00:00,1000000000.0,18642401.942186482,598051305.7242224,360115690.8087856,52756222.94010331,1388888.888888889,40256222.9401033,30192167.205077477,274859921.51793826,7236111.111111111,209734921.51793814,157301191.1384536,184646780.29036155,4861111.111111111,140896780.29036146,105672585.2177711,280573694.2757774,5156290.83107537,0.0,0.0,106104034.28562868,0.0,106104034.28562868,26526008.57140717,101059346.69019091,0.0,101059346.69019091,40423738.67607637,0.011851826283997006,0.01897758586916609,0.011851826283997006,0.014429426030895346,1289072.7077688426,3867218.1233065277,60,51064691.70609519,1,27,12,2,558404.4327260375,54573.36282624777,171530.4603439105,12990.300788634824,2,27,66,11,1636547.809785637,196489.2688127438,550859.2528364568,41717.531522979174,4,27,5,14,1768033.9796818958,268681.5892953772,684450.021722979,51834.59333778197,34,75904608.2790866,5,27,2379217.3766968003,41092.293730335776,6,27,1443218.5834372358,24926.33188061978,8,27,6312561.1898680795,109026.44758122656", + 28: "28,2027-01-01 00:00:00,1000000000.0,18723053.71130313,616774359.4355257,373047648.317831,52977125.72222894,1388888.888888889,41866014.61111782,31399510.958338365,276010825.0128128,7236111.111111111,218121936.12392378,163591452.09294283,185419940.02780125,4861111.111111111,146531051.13891226,109898288.3541842,275336751.6755854,5236942.60019202,0.0,0.0,106291640.74842072,0.0,106291640.74842072,26572910.18710518,103963716.81315103,0.0,103963716.81315103,41585486.725260414,0.011586121139535121,0.01897758586916609,0.011586121139535121,0.014145095541759323,1309235.650048005,3927706.950144015,64,58941973.63740813,1,28,12,2,562734.5329889157,39771.823191617674,150973.21792916046,10060.378381521157,2,28,68,11,1650453.65362663,168966.57067599415,529506.3729127495,35284.63220164422,4,28,5,14,1785312.1774611564,215646.91073215558,624479.3542580724,41613.331698553804,36,81841408.23514038,5,28,2420309.670427136,39338.41488591707,6,28,1468144.9153178555,23862.439793181868,8,28,6421587.637449306,104373.04027450146", + 29: "29,2027-02-01 00:00:00,1000000000.0,18797825.525015198,635572184.9605408,386023487.256027,53201989.05238049,1388888.888888889,43479766.830158256,32609825.12261869,277182362.96290237,7236111.111111111,226529585.18512446,169897188.88884336,186206961.68333167,4861111.111111111,152179183.9055538,114134387.92916533,270025037.26168126,5311714.413904087,0.0,0.0,106475828.66988152,0.0,106475828.66988152,26618957.16747038,106907820.36982274,0.0,106907820.36982274,42763128.1479291,0.011322480162125184,0.01897758586916609,0.011322480162125184,0.013862834003795909,1327928.6034760217,3983785.8104280652,66,64099732.808668695,1,29,12,2,566087.9924494227,50816.771340869316,168443.02323560126,10468.700826485243,2,29,70,10,1548150.237131733,287653.72192335257,658717.3220265323,40939.15224897139,4,29,5,14,1799183.288027341,448162.9776744446,880864.9425488571,54745.58325389927,37,84655052.50993006,5,29,2459648.0853130533,39198.83680757194,6,29,1492007.3551110374,23777.77259190755,8,29,6525960.677723808,104002.71044716089", + 30: "30,2027-03-01 00:00:00,1000000000.0,18866702.77121335,654438887.7317542,399039875.8615317,53430526.7132547,1388888.888888889,45097193.379921354,33822895.03494102,278373044.176057,7236111.111111111,234956377.50939018,176217283.13204265,187006843.4963914,4861111.111111111,157840176.8297246,118380132.62229346,264644445.60157904,5380591.660102236,0.0,0.0,106656606.2188846,0.0,106656606.2188846,26664151.55472115,109888533.79383335,0.0,109888533.79383335,43955413.51753334,0.011060663162278404,0.01897758586916609,0.011060663162278404,0.013582616919644158,1345147.915025559,4035443.745076677,67,60499048.100417666,1,30,13,1,410099.14519364253,20810.83000603704,97136.16747129435,6479.2348268377,2,30,71,10,1561796.6212147234,129421.70459973953,462659.63693616475,30860.600234148194,4,30,5,14,1817431.8157786408,159976.73711118463,560562.901628861,37391.00243933594,38,87336040.8643282,5,30,2498846.922120625,39082.08431905439,6,30,1515785.127702945,23706.951252612773,8,30,6629963.388170969,103692.94168241705", + 31: "31,2027-04-01 00:00:00,1000000000.0,18929667.16585385,673368554.8976079,412093476.1697157,53662452.81314397,1388888.888888889,46718008.36869951,35038506.27652463,279581379.1564801,7236111.111111111,243400823.60092437,182550617.70069328,187818584.84600383,4861111.111111111,163513029.29044816,122634771.96783611,259200889.54683632,5443556.05474274,0.0,0.0,106833981.53568538,0.0,106833981.53568538,26708495.383921344,112902712.10185048,0.0,112902712.10185048,45161084.8407402,0.01080048359793263,0.01897758586916609,0.01080048359793263,0.013304403587473005,1360889.013685685,4082667.041057055,69,63048696.085664436,1,31,13,1,412258.89013592177,15368.868122621709,80694.7886146009,5225.325412190486,2,31,73,11,1686148.4485215512,190935.99757342372,560856.76424083,36317.82365504908,4,31,5,14,1829895.4832584194,215188.84494088902,623329.0149360413,40363.163443638055,41,99340506.9070083,5,31,2537929.00643968,35252.41095767778,6,31,1539492.0789555577,21383.895016655555,8,31,6733656.329853386,93532.01747781108", + 32: "32,2027-05-01 00:00:00,1000000000.0,18986698.24151939,692355253.1391274,425180942.68588674,53897481.646070346,1388888.888888889,48341926.09051478,36256444.567886084,280805879.3760265,7236111.111111111,251861434.93158188,188896076.19868642,188641185.76124614,4861111.111111111,169196741.31680158,126897555.98760119,253700302.41642806,5500587.13040828,0.0,0.0,107007962.58919047,0.0,107007962.58919047,26751990.647297617,115947188.21103854,0.0,115947188.21103854,46378875.284415424,0.010541801394578157,0.01897758586916609,0.010541801394578157,0.01302814336818352,1375146.78260207,4125440.3478062097,70,71608760.3234822,1,32,13,1,414000.6652733186,43589.84625949872,130983.64919509452,7546.077167811805,2,32,76,11,1698254.3897399008,113378.51527487863,446428.67730983585,25719.128071371073,4,32,5,15,1946417.298777122,293748.32914221677,747844.9731572561,43083.972020044705,41,100629433.24369222,5,32,2573181.4173973575,35638.30850591845,6,32,1560875.9739722132,21617.978088836637,8,32,6827188.347331197,94555.88436368233", + 33: "33,2027-06-01 00:00:00,1000000000.0,19037774.79848842,711393027.9376158,438298921.8328747,54135327.61205379,1388888.888888889,49968660.94538711,37476495.70904033,282045056.85880023,7236111.111111111,260336723.52546674,195252542.64410007,189473646.6421882,4861111.111111111,174890313.30885473,131167734.98164105,248148638.72905076,5551663.687377308,0.0,0.0,107178557.10046406,0.0,107178557.10046406,26794639.275116015,119018773.05744301,0.0,119018773.05744301,47607509.222977206,0.01028451688936052,0.01897758586916609,0.01028451688936052,0.01275378072030122,1387915.921844327,4163747.7655329807,73,70178090.26326163,1,33,13,0,257037.61013131385,33117.10070382745,94682.42709387792,5617.618586776444,2,33,79,11,1706827.432430358,312339.86218242283,712411.7822386993,42268.2201141147,4,33,5,15,1960778.6227838036,184881.56164132233,611199.2542887687,36263.163044100875,42,102941388.66933581,5,33,2608819.725903276,35645.44830945277,6,33,1582493.9520610499,21622.30904961548,8,33,6921744.231694879,94574.82775537719", + 34: "34,2027-07-01 00:00:00,1000000000.0,19082876.30532651,730475904.2429422,451444052.15220743,54375705.196633436,1388888.888888889,51597927.418855645,38698445.564141735,283297424.0744602,7236111.111111111,268825201.8522378,201618901.38917837,190314968.18821695,4861111.111111111,180592745.9659946,135444559.47449595,242551873.53483537,5596765.194215397,0.0,0.0,107345772.51966842,0.0,107345772.51966842,26836443.129917104,122114256.48618565,0.0,122114256.48618565,48845702.59447426,0.010028565683551096,0.01897758586916609,0.010028565683551096,0.012481259216626208,1399191.2985538493,4197573.895661548,79,71266348.7040407,1,34,13,0,258910.14966023935,53137.993799038544,115881.11035424545,6825.374565537079,2,34,84,11,1720916.8391350629,185154.1846295687,573723.4807959084,33792.199966889,4,34,5,15,1972866.343798504,496808.94343819236,966342.7769943047,56917.39914749408,44,107153501.14831996,5,34,2644465.1742127286,34990.24830806734,6,34,1604116.2611106653,21224.868770669476,8,34,7016319.059450257,92836.4451507203", + 35: "35,2027-08-01 00:00:00,1000000000.0,19121984.238618895,749597888.4815611,464612965.2305018,54618329.007983156,1388888.888888889,53229440.11909425,39922080.08932069,284561494.1315923,7236111.111111111,277325383.020481,207994037.26536074,191164151.527941,4861111.111111111,186303040.41682974,139727280.3126223,236916000.4073276,5635873.1275077835,0.0,0.0,107509616.045762,0.0,107509616.045762,26877404.0114405,125230408.87939407,0.0,125230408.87939407,50092163.55175763,0.009773914232644149,0.01897758586916609,0.009773914232644149,0.012210524718228002,1408968.2818769459,4226904.845630838,81,72346490.38086969,1,35,14,0,261185.27451541836,26747.80541177905,85601.71607704482,5001.35260985726,2,35,86,11,1732180.9057906927,137759.68126824487,493819.212643891,28851.804860212138,4,35,5,15,1991838.810181002,674533.6852913795,1147072.7171361013,67018.6929708425,44,107710607.96734916,5,35,2679455.422520796,35507.4685866424,6,35,1625341.1298813347,21538.611400948368,8,35,7109155.504600977,94208.7386994832", + 36: "36,2027-09-01 00:00:00,1000000000.0,19155083.35355316,768752971.8351141,477802287.3170304,54862913.86935116,1388888.888888889,54862913.86935115,41147185.40201336,285835781.2593196,7236111.111111111,285835781.2593194,214376835.94448957,192020198.54272902,4861111.111111111,192020198.54272887,144015148.90704665,231247028.16488555,5668972.242442051,0.0,0.0,107670094.68003413,0.0,107670094.68003413,26917523.670008533,128363983.48368065,0.0,128363983.48368065,51345593.39347226,0.009520556038155263,0.01897758586916609,0.009520556038155263,0.011941527850220728,1417243.0606105127,4251729.181831539,82,74655589.88084558,2,36,88,11,1741798.17407743,134193.75138727875,484112.16244591057,27570.79291230612,4,36,5,14,1911110.9468004594,118873.49714084949,518536.8837324723,29531.32382906798,5,36,22,16,2495978.095890429,309837.5846588572,865253.1366224182,49277.24791298831,47,116136561.58769932,5,36,2714962.891107438,33543.62211472169,6,36,1646879.741282283,20347.35424594702,8,36,7203364.243300459,88998.24337319347", + 37: "37,2027-10-01 00:00:00,1000000000.0,5579549.989130422,774332521.8242446,480827017.8327279,55103162.59142375,0.0,55103162.591423735,41327371.9435678,287087477.10131776,0.0,287087477.1013176,215315607.82598817,192861069.06998307,0.0,192861069.06998292,144645801.8024872,225667478.1757551,5579549.989130422,0.0,0.0,107827259.75948964,0.0,107827259.75948964,26956814.93987241,131453553.30203074,0.0,131453553.30203074,52581421.3208123,0.009301537730596887,0.01897758586916609,0.009301537730596887,0.011677528838258344,1394887.4972826054,4184662.491847816,82,80307365.50932749,2,37,88,11,1750988.438381532,155347.87815401622,519208.2801691104,27054.945728833976,4,37,5,14,1920954.7214101488,74638.24715462672,387394.00820122776,20186.35732108501,5,37,21,16,2512403.8451947584,255010.11137949646,804481.5628667555,41919.98828700979,50,121777581.10441618,5,37,2748506.51322216,31852.609946664725,6,37,1667227.09552823,19321.596696568922,8,37,7292362.486673653,84511.63450414965", + 38: "38,2027-11-01 00:00:00,1000000000.0,5490238.39893377,779822760.2231785,483801885.96122575,55339107.24090945,0.0,55339107.240909435,41504330.43068208,288316748.72513825,0.0,288316748.72513807,216237561.54385355,193686875.343183,0.0,193686875.34318286,145265156.50738716,220177239.77682135,5490238.39893377,0.0,0.0,107981160.5751748,0.0,107981160.5751748,26995290.1437937,134498868.33877322,0.0,134498868.33877322,53799547.33550929,0.009085474660782272,0.01897758586916609,0.009085474660782272,0.011418323420510737,1372559.5997334425,4117678.7992003276,86,81243103.10820842,2,38,89,11,1760006.7536244767,433717.49388054473,851541.0636701293,43159.01843203624,4,38,5,14,1927683.5071838438,100567.49213805686,436991.46553914505,22148.224578342284,5,38,21,16,2526377.174623762,253662.68570337354,800776.5852295646,40586.10074881131,50,124601007.63331391,5,38,2780359.1231688247,30974.097714841624,6,38,1686548.692224799,18788.696596240847,8,38,7376874.121177803,82180.75785801053", + 39: "39,2027-12-01 00:00:00,1000000000.0,5401033.8219751995,785223794.0451536,486727032.7361829,55570778.81859374,0.0,55570778.818593726,41678084.11394529,289523757.64487344,0.0,289523757.64487326,217142818.23365495,194497725.86507803,0.0,194497725.86507788,145873294.39880842,214776205.95484617,5401033.8219751995,0.0,0.0,108131844.64579491,0.0,108131844.64579491,27032961.16144873,137499687.0708138,0.0,137499687.0708138,54999874.828325525,0.00887239321731593,0.01897758586916609,0.00887239321731593,0.011163730400191255,1350258.4554937999,4050775.3664813996,88,88434540.36992604,2,39,92,11,1774393.093101822,180833.78437961638,584272.0108969654,26762.785888474453,4,39,5,14,1935066.2487099578,419696.6621586142,872176.2545813846,39950.34148998359,5,39,22,16,2539905.8748733657,367113.6778756231,955323.2102690443,43758.91717193548,52,127716376.86703426,5,39,2811333.2208836665,30044.871667502524,6,39,1705337.3888210398,18225.033808271626,8,39,7459054.879035814,79715.3268551523", + 40: "40,2028-01-01 00:00:00,1000000000.0,5311938.903032847,790535732.9481864,489602597.88968337,55798207.5635765,0.0,55798207.56357648,41848655.67268236,290708661.4062336,0.0,290708661.40623343,218031496.05467507,195293726.47251767,0.0,195293726.47251752,146470294.85438815,209464267.05181333,5311938.903032847,0.0,0.0,108279357.96270524,0.0,108279357.96270524,27069839.49067631,140455779.54315376,0.0,140455779.54315376,56182311.81726151,0.008662318710880927,0.01897758586916609,0.008662318710880927,0.010913589231260222,1327984.7257582117,3983954.177274635,89,92324757.30117089,2,40,93,11,1783314.0217313136,204072.61065954392,602075.5199409623,25980.477531926033,4,40,5,15,2051450.4569107755,382392.7088338962,884852.2293844325,38182.72409888236,5,40,22,16,2554492.1805973444,413335.92730221787,1023037.829079407,44145.643615130175,52,129060377.10331339,5,40,2841378.092551169,29541.13595868078,6,40,1723562.4226293114,17919.47083481949,8,40,7538770.205890966,78378.81068954091", + 41: "41,2028-02-01 00:00:00,1000000000.0,5222961.9456339395,795758694.8938203,492428723.0084917,56021423.22562207,0.0,56021423.22562206,42016067.41921654,291871615.0054911,0.0,291871615.0054909,218903711.25411817,196074981.28967717,0.0,196074981.28967702,147056235.96725777,204241305.10617942,5222961.9456339395,0.0,0.0,108423745.20875297,0.0,108423745.20875297,27105936.302188244,143366930.16427743,0.0,143366930.16427743,57346772.06571098,0.008455275186140362,0.01897758586916609,0.008455275186140362,0.010667757826748236,1305740.4864084849,3917221.4592254544,94,98107499.07316807,2,41,96,10,1677909.2203465104,146832.6930377676,502965.9733217167,20082.349693642274,4,41,5,15,2064178.031610403,281255.8253735387,769627.8787004664,30729.586122822355,5,41,22,16,2569207.395135721,193728.7794300991,725345.5580378355,28961.48828725739,53,132115849.10763788,5,41,2870919.22850985,28661.906041332284,6,41,1741481.893464131,17386.13539087908,8,41,7617149.016580506,76046.02987363636", + 42: "42,2028-03-01 00:00:00,1000000000.0,5134116.313577288,800892811.2073977,495205554.353945,56240455.30792167,0.0,56240455.307921655,42180341.48094124,293012772.15427196,0.0,293012772.1542718,219759579.11570382,196841593.57772577,0.0,196841593.57772562,147631195.1832942,199107188.7926021,5134116.313577288,0.0,0.0,108565049.95323825,0.0,108565049.95323825,27141262.488309562,146232940.21424037,0.0,146232940.21424037,58493176.08569615,0.0082512852520943,0.01897758586916609,0.0082512852520943,0.010426110569282842,1283529.078394322,3850587.235182966,97,82093952.34761061,2,42,96,10,1684603.3369110578,269350.19740704214,662943.2238369639,31095.112884182574,4,42,5,16,2177488.6546888337,315845.8535664601,825577.4293969116,38723.411656808115,5,42,22,16,2578861.224564807,310842.0884255197,884707.4382653995,41496.88340295047,58,141423181.83146206,5,42,2899581.134551182,26563.776942932167,6,42,1758868.0288550102,16113.423223037786,8,42,7693195.046454143,70479.25466107395", + 43: "43,2028-04-01 00:00:00,1000000000.0,5045419.868204785,805938231.0756025,497933245.36677027,56455333.28241577,0.0,56455333.282415755,42341499.96181182,294132286.4013862,0.0,294132286.401386,220599214.80103952,197593666.48845512,0.0,197593666.48845497,148195249.86634123,194061768.9243973,5045419.868204785,0.0,0.0,108703314.82507044,0.0,108703314.82507044,27175828.70626761,149053630.0782753,0.0,149053630.0782753,59621452.03131012,0.008050369930308457,0.01897758586916609,0.008050369930308457,0.010188536505385403,1261354.9670511961,3784064.9011535887,99,79854500.41029212,2,43,98,10,1694968.3745391187,225768.7235795108,621375.1542145131,29445.10202218966,4,43,6,16,2190396.4585744366,185139.25667962048,648608.991973795,30735.631786437334,5,43,22,16,2592693.5190324574,153360.09556368366,646451.5091411615,30633.395155817103,57,145768188.88580546,5,43,2926144.911494114,25533.372569075644,6,43,1774981.452078048,15488.38628636689,8,43,7763674.301115217,67745.3764017837", + 44: "44,2028-05-01 00:00:00,1000000000.0,4956894.439813758,810895125.5154161,500611958.8770182,56666086.77968375,0.0,56666086.77968373,42499565.0847628,295230312.1221523,0.0,295230312.12215215,221422734.09161413,198331303.72889304,0.0,198331303.7288929,148748477.79666966,189104874.48458353,4956894.439813758,0.0,0.0,108838581.66602239,0.0,108838581.66602239,27209645.416505598,151828841.21866506,0.0,151828841.21866506,60731536.48746603,0.00785254852039091,0.01897758586916609,0.00785254852039091,0.009954937706885955,1239223.6099534396,3717670.8298603185,98,91684650.35409546,2,44,102,10,1704783.4085465153,98416.53293991178,422843.62888831605,17145.655446567947,4,44,6,16,2200641.669169916,658285.9209943285,1168912.46533819,47397.59336229814,5,44,22,16,2602904.650751063,336423.26183760725,917693.6955378995,37211.060624343314,54,140722539.74254966,5,44,2951678.2840631898,26218.02626551455,6,44,1790469.8383644149,15903.69299503403,8,44,7831419.677517001,69561.90581812493", + 45: "45,2028-06-01 00:00:00,1000000000.0,4868565.331675467,815763690.8470916,503241869.03827304,56872745.75527745,0.0,56872745.75527743,42654559.316458076,296307005.3849955,0.0,296307005.38499534,222230254.0387465,199054610.143471,0.0,199054610.14347085,149290957.60760313,184236309.15290803,4868565.331675467,0.0,0.0,108970891.66582657,0.0,108970891.66582657,27242722.916456643,154558437.8975215,0.0,154558437.8975215,61823375.1590086,0.007657838482061929,0.01897758586916609,0.007657838482061929,0.009725227784403554,1217141.3329188668,3651423.9987566005,97,86809031.81136467,2,45,106,10,1710498.6270287046,85695.75142760639,385359.81616052915,16209.28204731774,4,45,6,16,2216440.866957349,353022.5611009,902335.8645526366,37954.70081875675,5,45,22,16,2615308.3376258444,109498.37235099076,559047.1415684875,23515.043383909895,53,135531214.77086446,5,45,2977896.3103287043,26980.612408291618,6,45,1806373.5313594488,16366.273044888736,8,45,7900981.583335126,71585.20631011658", + 46: "46,2028-07-01 00:00:00,1000000000.0,4780460.8551981235,820544151.7022898,505823163.00432295,57075340.63425457,0.0,57075340.63425455,42806505.475690916,297362524.7044663,0.0,297362524.7044661,223021893.52834958,199763692.21989092,0.0,199763692.21989077,149822769.16491807,179455848.29770988,4780460.8551981235,0.0,0.0,109100285.48071325,0.0,109100285.48071325,27275071.370178312,157242308.66296512,0.0,157242308.66296512,62896923.46518605,0.00746625533313842,0.01897758586916609,0.00746625533313842,0.00949933053927704,1195115.2137995309,3585345.641398593,100,92984185.63781731,2,46,109,10,1715901.7210444773,103729.08274452692,419604.35192880215,16179.381730133158,4,46,6,16,2229092.433896934,378658.36615091265,917705.2063875562,35385.483447975006,5,46,23,16,2623146.685420481,353083.0212168675,937178.1706952784,36136.33486670709,57,146585752.10596663,5,46,3004876.922736996,24705.75459540201,6,46,1822739.8044043374,14986.358329068273,8,46,7972566.7896452425,65549.53286440052", + 47: "47,2028-08-01 00:00:00,1000000000.0,4692611.8948442545,825236763.5971341,508356042.36556065,57273902.4355557,0.0,57273902.43555568,42955426.82666676,298397031.68924516,0.0,298397031.689245,223797773.76693374,200458658.52444485,0.0,200458658.5244447,150343993.89333352,174763236.40286565,4692611.8948442545,0.0,0.0,109226803.33685908,0.0,109226803.33685908,27306700.83421477,159880367.6110296,0.0,159880367.6110296,63952147.04441184,0.0072778125627375,0.01897758586916609,0.0072778125627375,0.009277178741623086,1173152.9737110636,3519458.921133191,100,86393333.72590676,2,47,113,10,1721294.848287855,142483.78791007542,490507.0479307719,19982.090414471288,4,47,7,16,2240887.595046259,215152.48576128564,708316.8657072103,28855.144309066032,5,47,23,16,2635192.1303760502,208925.95599198976,754196.1308593953,30724.156443117678,60,152559732.2166194,5,47,3029582.677332398,23482.377040757507,6,47,1837726.1627334056,14244.265051372802,8,47,8038116.322509643,62303.65640618198", + 48: "48,2028-09-01 00:00:00,1000000000.0,4605051.501480637,829841815.0986147,510840724.361516,57468462.87776505,0.0,57468462.87776504,43101347.15832378,299410691.5931559,0.0,299410691.59315574,224558018.6948668,201139620.0721776,0.0,201139620.07217744,150854715.0541331,170158184.901385,4605051.501480637,0.0,0.0,109350485.12009503,0.0,109350485.12009503,27337621.280023757,162472555.43542144,0.0,162472555.43542144,64989022.17416858,0.0070925215589919075,0.01897758586916609,0.0070925215589919075,0.00905871302335997,1151262.8753701593,3453788.626110478,100,88134942.81785233,2,48,116,10,1727955.5450926789,85664.64611539655,391350.23663249717,15336.039859926921,4,48,7,16,2250505.9764826144,314165.06212882156,832567.5863482615,32626.24752750648,5,48,23,16,2645433.5158570893,167093.59686497904,670440.8162281631,26272.90370352431,60,155143585.16115883,5,48,3053065.0543731553,22826.885057759253,6,48,1851970.4277847784,13846.647658181679,8,48,8100419.978915825,60564.499113253485", + 49: "49,2028-10-01 00:00:00,1000000000.0,4517814.512903803,834359629.6115185,513277442.88511354,57659054.46769845,0.0,57659054.46769843,43244290.850773826,300403673.7767089,0.0,300403673.7767087,225302755.33253154,201806690.63694447,0.0,201806690.63694432,151355017.97770825,165640370.3884812,4517814.512903803,0.0,0.0,109471370.45311299,0.0,109471370.45311299,27367842.613278247,165018840.27705398,0.0,165018840.27705398,66007536.1108216,0.006910391550562946,0.01897758586916609,0.006910391550562946,0.008843880876080268,1129453.6282259508,3388360.8846778525,100,93715883.45065849,2,49,118,10,1733067.5583793211,193357.7796643925,567159.4227437495,20506.030916447486,4,49,7,16,2261381.392325117,341627.76272973535,876049.7996043945,31674.17053238638,5,49,23,17,2774521.585271131,213107.116409439,762784.7586140684,27578.99669032238,61,158089107.68232548,5,49,3075891.939430915,22135.680989052067,6,49,1865817.07544296,13427.367534105497,8,49,8160984.478029078,58730.59018961504", + 50: "50,2028-11-01 00:00:00,1000000000.0,4430937.200344653,838790566.8118631,515666449.2934752,57845710.57317249,0.0,57845710.57317247,43384282.92987935,301376152.08622867,0.0,301376152.0862285,226032114.06467137,202459987.0061036,0.0,202459987.00610346,151844990.25457758,161209433.18813658,4430937.200344653,0.0,0.0,109589498.76131092,0.0,109589498.76131092,27397374.69032773,167519218.3850478,0.0,167519218.3850478,67007687.35401912,0.00673142956123351,0.01897758586916609,0.00673142956123351,0.008632635744595591,1107734.3000861632,3323202.90025849,105,94089878.76234923,2,50,120,10,1739902.902018137,124932.62813228555,472538.319505158,16689.794210800883,4,50,7,15,2168872.0214650887,169821.59561024717,623716.9944981532,22029.342075060595,5,50,24,16,2663384.1493217046,172874.3531462844,683815.1625396941,24151.976400483803,61,159226797.21251985,5,50,3098027.620419967,21707.95640550757,6,50,1879244.4429770655,13167.912440337897,8,50,8219715.068218693,57595.74743313515", + 51: "51,2028-12-01 00:00:00,1000000000.0,4344456.9398118295,843135023.751675,518008013.0393664,58028465.48122566,0.0,58028465.48122565,43521349.11091924,302328305.15718573,0.0,302328305.15718555,226746228.86788917,203099629.18428972,0.0,203099629.18428957,152324721.88821718,156864976.24832472,4344456.9398118295,0.0,0.0,109704909.32832482,0.0,109704909.32832482,27426227.332081206,169973714.60064936,0.0,169973714.60064936,67989485.84025975,0.006555640376864017,0.01897758586916609,0.006555640376864017,0.008424936207822434,1086114.2349529574,3258342.704858872,106,93349343.61328411,2,51,120,10,1745466.1667550707,198644.89905487825,581567.4869960413,20299.512618822482,4,51,7,15,2176215.1354901087,157605.52008883032,588027.2628118347,20524.989977202313,5,51,24,16,2671434.808121866,320608.26464449323,910361.1819905686,31775.999715798233,60,159468247.76021636,5,51,3119735.5768254744,21395.666492002176,6,51,1892412.3554174034,12978.4793053056,8,51,8277310.815651828,56767.176993422596", + 52: "52,2029-01-01 00:00:00,1000000000.0,4258411.907185107,847393435.65886,520302422.13669467,58207354.44298446,0.0,58207354.44298445,43655515.83223833,303260316.64794904,0.0,303260316.64794886,227445237.48596165,203725740.5504455,0.0,203725740.55044535,152794305.41283402,152606564.3411396,4258411.907185107,0.0,0.0,109817641.34221283,0.0,109817641.34221283,27454410.335553207,172382382.67526856,0.0,172382382.67526856,68952953.07010743,0.006383026523997327,0.01897758586916609,0.006383026523997327,0.008220745239439924,1064602.9767962766,3193808.9303888297,108,98892699.01645595,2,52,125,10,1752232.6709613448,323880.8717640159,742600.1668441691,23982.792138987756,4,52,7,15,2183056.7988158427,181443.7717227712,626782.6994668097,20242.38596862653,5,52,24,17,2802357.242873332,214615.54191034363,783946.4544063102,25318.099434346503,60,159382266.49102914,5,52,3141131.2433174765,21123.242041615347,6,52,1905390.834722709,12813.228314273076,8,52,8334077.992645251,56044.37796315045", + 53: "53,2029-02-01 00:00:00,1000000000.0,4172840.7960171984,851566276.4548771,522549983.47281754,58382413.70629506,0.0,58382413.70629504,43786810.27972128,304172375.40979725,0.0,304172375.4097971,228129281.5573478,204338447.97203258,0.0,204338447.97203243,153253835.97902432,148433723.5451224,4172840.7960171984,0.0,0.0,109927733.93317975,0.0,109927733.93317975,27481933.483294938,174745305.43357292,0.0,174745305.43357292,69898122.17342918,0.006213588259404576,0.01897758586916609,0.006213588259404576,0.00802002954143639,1043210.1990042996,3129630.597012899,110,93317614.56150982,2,53,125,10,1760226.9350076742,390854.9553549217,824025.3426791899,27635.67132829961,4,53,7,15,2189804.2608053847,361987.228448661,873854.9590865514,29306.827335433743,5,53,24,17,2810796.6093514473,201244.93476728137,754093.0025511107,25290.322141932575,57,153529047.7757399,5,53,3162254.485359092,21631.608783650106,6,53,1918204.063036982,13121.600443903628,8,53,8390122.3706084,57393.181228215566", + 54: "54,2029-03-01 00:00:00,1000000000.0,4087782.557045317,855654059.0119225,524751022.97980446,58553680.53717364,0.0,58553680.53717363,43915260.40288022,305064675.5986747,0.0,305064675.59867454,228798506.6990059,204937881.88010764,0.0,204937881.8801075,153703411.4100806,144345940.98807707,4087782.557045317,0.0,0.0,110035226.20366102,0.0,110035226.20366102,27508806.550915256,177062594.79230586,0.0,177062594.79230586,70825037.91692235,0.006047323569871846,0.01897758586916609,0.006047323569871846,0.007822758944279936,1021945.6392613292,3065836.9177839877,117,110269270.03488804,2,54,126,9,1655373.864888329,313136.90210626106,726474.6588223682,20198.309358060178,4,54,7,15,2199573.2032505292,236177.7215707295,730325.3197160348,20305.369995370416,5,54,24,17,2819226.7167320917,942875.5719239239,1575623.867335567,43807.36191951401,56,148522901.74351987,5,54,3183886.094142742,22057.312504729383,6,54,1931325.6634808856,13379.829694966422,8,54,8447515.551836615,58522.66221401704", + 55: "55,2029-04-01 00:00:00,1000000000.0,4003276.158452639,859657335.1703751,526905885.676196,58721193.23106491,0.0,58721193.23106489,44040894.92329867,305937416.7338482,0.0,305937416.73384804,229453062.550386,205524176.3087271,0.0,205524176.30872694,154143132.2315452,140342664.82962444,4003276.158452639,0.0,0.0,110140157.25152008,0.0,110140157.25152008,27535039.31288002,179334391.64521524,0.0,179334391.64521524,71733756.6580861,0.005884228181537867,0.01897758586916609,0.005884228181537867,0.00762890586800573,1000819.0396131597,3002457.118839479,118,115029717.42648928,2,55,130,9,1662106.634674349,182627.16490093377,561920.2230726707,14667.004420510646,4,55,6,15,2206341.6599156526,87788.55082577506,458242.8390160737,11960.861114348781,5,55,23,17,2833829.170705263,158394.98228730683,726576.5294347885,18964.793811453805,57,148237822.07455754,5,55,3205943.4066474712,21791.83904362195,6,55,1944705.4931758519,13218.795131150488,8,55,8506038.214050632,57818.30561174078", + 56: "56,2029-05-01 00:00:00,1000000000.0,3919360.3659550594,863576695.5363303,529014935.59025353,58884991.11483883,0.0,58884991.114838816,44163743.336129114,306790803.70831037,0.0,306790803.7083102,230093102.78123266,206097468.90193582,0.0,206097468.90193567,154573101.67645174,136423304.46366936,3919360.3659550594,0.0,0.0,110242566.18705457,0.0,110242566.18705457,27560641.546763644,181560865.62419105,0.0,181560865.62419105,72624346.24967642,0.005724295578104725,0.01897758586916609,0.005724295578104725,0.007438444839015629,979840.0914887649,2939520.274466295,120,118105092.74324422,2,56,131,9,1666995.6361478528,162568.276509246,523161.126657436,13020.968892216799,4,56,6,15,2210328.6136204354,182865.83399474688,624667.247594163,15547.356988999396,5,56,23,17,2840150.7686424144,184219.29624678203,723535.6862078577,18008.09575190432,58,150294438.40032858,5,56,3227735.245691093,21183.823123401,6,56,1957924.2883070023,12849.976424762743,8,56,8563856.519662373,56205.1122405082", + 57: "57,2029-06-01 00:00:00,1000000000.0,3836073.5418203627,867412769.0781506,531078555.5751417,59045114.540400006,0.0,59045114.54039999,44283835.90529999,307625046.7554841,0.0,307625046.7554839,230718785.06661296,206657900.89139992,0.0,206657900.89139977,154993425.66854984,132587230.92184901,3836073.5418203627,0.0,0.0,110342492.14445233,0.0,110342492.14445233,27585623.036113083,183742214.74641466,0.0,183742214.74641466,73496885.89856587,0.005567517027257104,0.01897758586916609,0.005567517027257104,0.007251352057839777,959018.3854550907,2877055.156365272,121,119235712.92975554,2,57,133,8,1557270.9985498134,148324.4908040205,483265.0133350688,11660.768945338516,4,57,6,15,2215511.0659501017,226726.62465920794,703487.4095324227,16974.545874738655,5,57,23,18,2966483.9020725824,212918.3889926652,790294.0394510434,19069.11516172058,64,163026217.12572938,5,57,3248919.068814494,19228.44034756441,6,57,1970774.264731765,11663.853295593915,8,57,8620061.631902881,51017.072869671174", + 58: "58,2029-07-01 00:00:00,1000000000.0,3753453.461955756,871166222.5401064,533097147.025979,59201604.8707311,0.0,59201604.870731086,44401203.653048314,308440361.37650913,0.0,308440361.37650895,231330271.0323817,207205617.04755875,0.0,207205617.0475586,155404212.78566897,128833777.45989327,3753453.461955756,0.0,0.0,110439974.28828788,0.0,110439974.28828788,27609993.57207197,185878664.95701993,0.0,185878664.95701993,74351465.98280798,0.005413881614640571,0.01897758586916609,0.005413881614640571,0.0070676050135198565,938363.365488939,2815090.096466817,122,132811634.96241173,2,58,134,8,1561157.921531593,185315.2137279529,534459.0855631557,11328.453859945084,4,58,6,15,2221169.2479083478,146509.59051078884,578772.5576579698,12267.727113146697,5,58,23,18,2972840.273793156,698116.0200074952,1399975.0946012232,29674.026866904347,67,168247061.34077656,5,58,3268147.5091620586,18332.55302959723,6,58,1982438.118027359,11120.413575196839,8,58,8671078.704772552,48640.09648689684", + 59: "59,2029-08-01 00:00:00,1000000000.0,3671537.1502258168,874837759.6903322,535071129.50818723,59354504.4591423,0.0,59354504.45914228,44515878.344356716,309236968.2321315,0.0,309236968.2321313,231927726.1740985,207740765.60699794,0.0,207740765.6069978,155805574.20524836,125162240.30966747,3671537.1502258168,0.0,0.0,110535051.81560431,0.0,110535051.81560431,27633762.95390108,187970469.5764566,0.0,187970469.5764566,75188187.83058265,0.0052633762847655256,0.01897758586916609,0.0052633762847655256,0.0068871821406444236,917884.2875564542,2753652.8626693627,123,122111888.31865431,2,59,136,8,1564934.0728182413,132373.50060002136,460100.9257870783,10375.388087556628,4,59,6,15,2225258.4902793965,212207.16838347298,680404.1601860368,15343.279751593233,5,59,22,18,2982731.616082124,147378.40301991915,709075.9476257144,15989.835550935943,69,171819500.4880117,5,59,3286480.062191656,17653.814864801363,6,59,1993558.531602556,10708.695191531759,8,59,8719718.801259449,46839.26221293016", + 60: "60,2029-09-01 00:00:00,1000000000.0,3590360.7291867356,878428120.4195192,537000940.306097,59503856.62245163,0.0,59503856.62245162,44627892.46683872,310015093.0029731,0.0,310015093.0029729,232511319.7522297,208263498.1785806,0.0,208263498.17858046,156197623.63393533,121571879.58048074,3590360.7291867356,0.0,0.0,110627763.95408255,0.0,110627763.95408255,27656940.988520637,190017908.66143146,0.0,190017908.66143146,76007163.4645726,0.005115985888220916,0.01897758586916609,0.005115985888220916,0.006710062515402073,897590.1822966839,2692770.5468900516,123,126711209.36200938,2,60,138,10,1796522.4566383166,181733.06280899572,564435.2502346194,11994.949974125924,4,60,6,16,2333440.3445674176,274708.4945389194,793120.2686087413,16854.79059196375,5,60,22,17,2867731.1264195694,128377.39959896577,613150.2405706937,13030.20401226112,70,173843755.24748236,5,60,3304133.877056457,17150.962210723217,6,60,2004267.2267940876,10403.667873639568,8,60,8766558.063472379,45505.08897619846", + 61: "61,2029-10-01 00:00:00,1000000000.0,3509959.2864446207,881938079.7059635,538887033.9002984,59649705.60877664,0.0,59649705.60877662,44737279.206582464,310774966.22172636,0.0,310774966.2217262,233081224.66629463,208773969.6307181,0.0,208773969.63071796,156580477.22303846,118061920.29403612,3509959.2864446207,0.0,0.0,110718149.95676066,0.0,110718149.95676066,27679537.489190165,192021288.28798223,0.0,192021288.28798223,76808515.3151929,0.004971693234600156,0.01897758586916609,0.004971693234600156,0.006536225587321881,877489.8216111552,2632469.4648334654,126,129174480.93543811,2,61,141,9,1686455.812734247,271173.16067313985,669266.7702912778,13639.10521537197,4,61,6,17,2442126.0358022284,268542.64431516116,808780.0587122197,16482.271056233327,5,61,22,17,2872074.52775699,251836.8719742192,835634.7835893786,17029.548217431733,67,166126495.88414028,5,61,3321284.8392671803,17633.579750514502,6,61,2014670.8946677272,10696.420696034707,8,61,8812063.152448578,46785.574223606076", + 62: "62,2029-11-01 00:00:00,1000000000.0,3430366.7558659147,885368446.4618295,540729881.3817878,59792096.5605754,0.0,59792096.56057539,44844072.42043154,311516823.08059794,0.0,311516823.08059776,233637617.31044832,209272337.96201378,0.0,209272337.96201363,156954253.47151023,114631553.5381702,3430366.7558659147,0.0,0.0,110806249.09372953,0.0,110806249.09372953,27701562.27343238,193980939.7649133,0.0,193980939.7649133,77592375.90596531,0.004830479150560939,0.01897758586916609,0.004830479150560939,0.006365650943645787,857591.6889664787,2572775.066899436,128,136957191.08933473,2,62,142,10,1805067.1417014825,285947.7662781488,715365.9447101271,13438.32807624293,4,62,6,17,2447620.1261543063,252208.6421259134,787134.4247171299,14786.51691162031,5,62,22,17,2877751.043829467,284968.1606472007,901204.4306819685,16929.35048533151,64,166118202.60664564,5,62,3338918.419017695,17326.24334023551,6,62,2025367.315363762,10509.992325501644,8,62,8858848.726672184,45970.146463720564", + 63: "63,2029-12-01 00:00:00,1000000000.0,3351615.812886896,888720062.2747165,542529969.8105161,59931075.47353513,0.0,59931075.47353511,44948306.60515133,312240903.2171181,0.0,312240903.2171179,234180677.41283843,209758764.1573728,0.0,209758764.15737265,157319073.11802948,111279937.72528331,3351615.812886896,0.0,0.0,110892100.64119723,0.0,110892100.64119723,27723025.16029931,195897218.78549355,0.0,195897218.78549355,78358887.51419742,0.004692322542460758,0.01897758586916609,0.004692322542460758,0.006198318103527284,837903.953221724,2513711.859665172,129,137711862.0622045,2,63,145,9,1695481.6238314519,88174.47798194033,407194.72788568446,7432.694623045837,4,63,6,17,2452548.9651248464,151851.09071742508,621318.4673688649,11341.184242709833,5,63,23,17,2883394.160657911,186121.86800323683,743112.148989691,13564.33493821248,62,163680255.49647084,5,63,3356244.6623579306,17269.270293466958,6,63,2035877.3076892637,10475.432826795573,8,63,8904818.873135904,45818.985057695936", + 64: "64,2030-01-01 00:00:00,1000000000.0,3273737.7831872203,891993800.0579036,544287801.525542,60066689.15186792,0.0,60066689.151867904,45050016.86390093,312947450.4812319,0.0,312947450.48123175,234710587.86092383,210233412.0315376,0.0,210233412.03153744,157675059.0236531,108006199.9420961,3273737.7831872203,0.0,0.0,110975743.86828312,0.0,110975743.86828312,27743935.96707078,197770504.52498347,0.0,197770504.52498347,79108201.80999339,0.004557200463030688,0.01897758586916609,0.004557200463030688,0.006034206339477625,818434.4457968051,2455303.3373904154,128,140398788.00091568,2,64,146,9,1697959.1887058006,177037.57990218597,539455.0120976678,9434.025111148047,4,64,6,17,2456329.3598724166,164689.97264246256,635109.5373478078,11106.837807235084,5,64,23,17,2887915.605637315,146300.25546258825,655821.5219473309,11469.050370714309,62,165623796.85589188,5,64,3373513.9326513973,16754.8200720914,6,64,2046352.7405160593,10163.37049612556,8,64,8950637.8581936,44454.0410498966", + 65: "65,2030-02-01 00:00:00,1000000000.0,3196762.5640095985,895190562.6219133,546003893.4135703,60198985.160537295,0.0,60198985.16053728,45149238.87040296,313636712.6863994,0.0,313636712.6863992,235227534.51479942,210696448.0618804,0.0,210696448.06188026,158022336.0464102,104809437.3780865,3196762.5640095985,0.0,0.0,111057218.02187358,0.0,111057218.02187358,27764304.505468395,199601198.69122294,0.0,199601198.69122294,79840479.47648917,0.0044250881815712986,0.01897758586916609,0.0044250881815712986,0.0058732945236869925,799190.6410023996,2397571.9230071986,129,141849830.99844912,2,65,148,9,1701103.86374285,238967.79876314674,631447.7686139586,10672.846278476887,4,65,6,17,2460031.639141495,280603.7201069141,818606.2389746751,13836.233154099846,5,65,23,17,2891738.6224275534,189264.662282015,734551.2778199068,12415.520746932181,64,168845492.8979961,5,65,3390268.7527234885,16125.604939546694,6,65,2056516.111012185,9781.692478319048,8,65,8995091.899243496,42784.601735657096", + 66: "66,2030-03-01 00:00:00,1000000000.0,3120718.5574243674,898311281.1793377,547678776.1422696,60328011.774904065,0.0,60328011.77490405,45246008.83117804,314308941.3472503,0.0,314308941.3472501,235731706.01043758,211148041.2121641,0.0,211148041.21216395,158361030.90912297,101688718.82066214,3120718.5574243674,0.0,0.0,111136562.30984423,0.0,111136562.30984423,27784140.577461056,201389724.53517535,0.0,201389724.53517535,80555889.81407015,0.004295959257176406,0.01897758586916609,0.004295959257176406,0.0057155609970359345,780179.6393560919,2340538.918068276,130,142313995.80178538,2,66,151,8,1590596.5186068974,138236.6767543887,479070.7984754276,7878.942910882104,4,66,6,17,2464643.7168595283,376990.2448836225,954840.25914999,15703.591024115653,5,66,23,17,2895877.1293431977,99840.28315839267,550006.6070039673,9045.57462275484,70,187455904.27297574,5,66,3406394.3576630354,14238.197907105838,6,66,2066297.8034905042,8636.803015755282,8,66,9037876.500979153,37776.916225637986", + 67: "67,2030-04-01 00:00:00,1000000000.0,3045632.6148540047,901356913.7941917,549312993.3643852,60453817.92824715,0.0,60453817.92824713,45340363.44618535,314964391.40616775,0.0,314964391.40616757,236223293.5546257,211588362.7488649,0.0,211588362.74886474,158691272.06164855,98643086.20580815,3045632.6148540047,0.0,0.0,111213815.88292812,0.0,111213815.88292812,27803453.97073203,203136525.82798418,0.0,203136525.82798418,81254610.33119369,0.004169785614512522,0.01897758586916609,0.004169785614512522,0.005560983458783593,761408.1537135012,2284224.4611405036,130,141586999.9016856,2,67,153,7,1479157.8723484126,169686.79319852745,499622.460026314,8060.4140586335925,4,67,6,17,2469878.2472009,113247.31131838448,555496.3265269075,8961.82769609873,5,67,23,17,2898892.320884116,392879.1885999686,1034874.8080548835,16695.64545063085,69,186797329.7029206,5,67,3420632.5555701414,14000.503188147582,6,67,2074934.6065062594,8492.618865561444,8,67,9075653.417204792,37146.26243476174", + 68: "68,2030-05-01 00:00:00,1000000000.0,2971529.9921888276,904328443.7863806,550907100.898276,60576453.157583244,0.0,60576453.15758323,45432339.86818742,315603320.9510088,0.0,315603320.9510086,236702490.71325648,212017586.05154124,0.0,212017586.0515411,159013189.53865582,95671556.21361932,2971529.9921888276,0.0,0.0,111289017.81548615,0.0,111289017.81548615,27822254.453871537,204842065.81076145,0.0,204842065.81076145,81936826.32430458,0.004046537621704392,0.01897758586916609,0.004046537621704392,0.005409538875075673,742882.4980472069,2228647.4941416206,132,141440062.31463134,2,68,155,8,1595909.6375967362,75496.18973123691,356641.683976813,5619.543588246498,4,68,6,17,2472865.5230996,435545.5940430029,1007663.6280790685,15877.587883555101,5,68,24,17,2904457.536034326,213542.09981954063,803001.2286185016,12652.756557560839,71,189548466.5419312,5,68,3434633.058758289,13515.12831863224,6,68,2083427.2253718209,8198.193463965514,8,68,9112799.679639554,35858.46141504419", + 69: "69,2030-06-01 00:00:00,1000000000.0,2898434.3148412225,907226878.1012218,552461665.890163,60695967.548179016,0.0,60695967.548179,45521975.66113425,316225990.92601275,0.0,316225990.9260126,237169493.19450945,212435886.41862646,0.0,212435886.4186263,159326914.81396973,92773121.89877811,2898434.3148412225,0.0,0.0,111362207.08541374,0.0,111362207.08541374,27840551.771353435,206506826.12299013,0.0,206506826.12299013,82602730.44919606,0.003926184169899594,0.01897758586916609,0.003926184169899594,0.005261203404558065,724608.5787103056,2173825.736130917,133,148275593.2519479,2,69,156,8,1597782.8187928183,143942.45064046938,471888.33852215024,6918.218921683746,4,69,6,17,2478158.052394118,292190.389010611,860732.5174811152,12618.951355304203,5,69,24,17,2908675.121553513,406595.97534508654,1069718.5457584618,15682.835281158006,72,191924144.49476984,5,69,3448148.187076921,13069.255361086922,6,69,2091625.4188357864,7927.729678485383,8,69,9148658.141054599,34675.4672275522", + 70: "70,2030-07-01 00:00:00,1000000000.0,2826367.552102062,910053245.6533238,553977265.9630135,60812411.67712043,0.0,60812411.67712042,45609308.75784031,316832664.8377975,0.0,316832664.83779734,237624498.628348,212843440.86992142,0.0,212843440.86992127,159632580.65244097,89946754.34667607,2826367.552102062,0.0,0.0,111433422.55339773,0.0,111433422.55339773,27858355.638349432,208131305.71508703,0.0,208131305.71508703,83252522.28603482,0.0038086927541080276,0.01897758586916609,0.0038086927541080276,0.005115952339513061,706591.8880255155,2119775.664076546,133,146194291.1705832,2,70,159,8,1600088.891766713,96830.00053757714,398511.6566554581,5778.3057386514965,4,70,6,17,2482364.369512553,206121.4668443751,724399.0311871194,10503.580031037936,5,70,24,17,2913902.733313899,112051.17931310528,602551.6996837999,8736.828361152098,69,187031341.33578894,5,70,3461217.4424380083,13125.809723256374,6,70,2099553.1485142717,7962.035205696483,8,70,9183333.60828215,34825.51777578932", + 71: "71,2030-08-01 00:00:00,1000000000.0,2755350.000179412,912808595.6535033,555454488.356649,60925836.55627647,0.0,60925836.556276456,45694377.417207345,317423608.4582005,0.0,317423608.45820034,238067706.34365025,213240427.94696757,0.0,213240427.94696742,159930320.96022558,87191404.34649667,2755350.000179412,0.0,0.0,111502702.94171807,0.0,111502702.94171807,27875675.735429518,209716019.75034094,0.0,209716019.75034094,83886407.90013638,0.0036940295549348374,0.01897758586916609,0.0036940295549348374,0.004973760061055238,688837.500044853,2066512.5001345589,137,162202943.92708158,2,71,161,8,1602014.9936795968,214246.39205418353,574145.9221342586,7314.78539332252,4,71,6,19,2692000.418264547,416593.50036102376,1038082.5161093351,13225.472015325786,5,71,25,17,2916815.0094342832,303641.67219739646,919939.4247237965,11720.294801880695,71,195191852.9088074,5,71,3474343.2521612644,12305.769929052172,6,71,2107515.1837199684,7464.604125314637,8,71,9218159.12605794,32649.780733120373", + 72: "72,2030-09-01 00:00:00,1000000000.0,2685400.2733164113,915493995.9268196,556893929.0633402,61036293.5749678,0.0,61036293.57496779,45777220.18122584,317999089.5255824,0.0,317999089.5255822,238499317.14418665,213627027.51238725,0.0,213627027.5123871,160220270.63429034,84506004.07318026,2685400.2733164113,0.0,0.0,111570086.81277137,0.0,111570086.81277137,27892521.70319284,211261498.50111118,0.0,211261498.50111118,84504599.40044448,0.003582159520848061,0.01897758586916609,0.003582159520848061,0.00483460000703452,671350.0683291028,2014050.2049873085,139,149735925.72924295,2,72,165,8,1604453.255477371,134293.56350300854,471057.5888645994,6336.045466664446,4,72,5,19,2696408.908936322,267357.1755300905,860874.6726437327,11579.350796826699,5,72,26,17,2920721.7743682433,678718.8155912855,1377457.8689961766,18527.746697406805,72,198802800.21286178,5,72,3486649.0220903168,11814.820081072303,6,72,2114979.7878452833,7166.796976173878,8,72,9250808.90679106,31347.188129819835", + 73: "73,2030-10-01 00:00:00,1000000000.0,2616535.3024023054,918110531.2292218,558296191.9628315,61143834.44262592,0.0,61143834.4426259,45857875.831969425,318559377.44608116,0.0,318559377.446081,238919533.08456075,214003420.54919067,0.0,214003420.54919052,160502565.4118929,81889468.77077794,2616535.3024023054,0.0,0.0,111635612.54747652,0.0,111635612.54747652,27908903.13686913,212768286.243848,0.0,212768286.243848,85107314.4975392,0.003473046450644847,0.01897758586916609,0.003473046450644847,0.004698444651395553,654133.8256005764,1962401.476801729,138,150531479.2704916,2,73,167,8,1606565.2706329257,65131.11523368397,332700.81323997845,4337.249393942913,4,73,5,18,2597201.264831107,531200.5840835045,1154972.0811073906,15056.777018428005,5,73,26,17,2926897.6899340455,101849.76228846364,597955.6719619092,7795.2405663367845,70,197249843.06622314,5,73,3498463.842171389,11641.1661636229,6,73,2122146.584821457,7061.459581110967,8,73,9282156.09492088,30886.4479761473", + 74: "74,2030-11-01 00:00:00,1000000000.0,2548770.3405080875,920659301.56973,559661887.960432,61248511.13170408,0.0,61248511.13170406,45936383.34877805,319104742.9961784,0.0,319104742.9961782,239328557.24713367,214369788.96096423,0.0,214369788.96096408,160777341.72072306,79340698.43026987,2548770.3405080875,0.0,0.0,111699318.3237073,0.0,111699318.3237073,27924829.580926824,214236940.15717638,0.0,214236940.15717638,85694776.06287056,0.0033666530758024163,0.01897758586916609,0.0033666530758024163,0.00456526549383624,637192.5851270219,1911577.7553810657,140,150702248.8195409,2,74,171,8,1608011.0204309067,202317.2058740326,555520.9024817576,7046.486752198003,4,74,5,20,2808355.04591223,163063.14709527104,706603.3111792122,8962.886633139906,5,74,26,17,2929496.1034561577,399054.5280299161,1051012.5096830565,13331.533868105409,71,199397654.02492023,5,74,3510105.008335012,11253.650297929584,6,74,2129208.044402568,6826.394847546425,8,74,9313042.542897027,29858.287355687316", + 75: "75,2030-12-01 00:00:00,1000000000.0,2482118.9747960716,923141420.5445261,560991634.131513,61350375.821078435,0.0,61350375.82107842,46012781.865808815,319635458.0278188,0.0,319635458.0278186,239726593.52086395,214726315.37377447,0.0,214726315.37377432,161044736.53033075,76858579.45547381,2482118.9747960716,0.0,0.0,111761242.0948822,0.0,111761242.0948822,27940310.52372055,215668029.22697255,0.0,215668029.22697255,86267211.69078903,0.003262941142422008,0.01897758586916609,0.003262941142422008,0.004435033058694817,620529.7436990179,1861589.2310970537,142,149706195.07474986,2,75,171,8,1610359.849348306,357658.05514198256,746206.6950222033,9279.043842723082,4,75,4,20,2811342.6747899433,254516.82019267313,837186.8572631681,10410.377720968241,5,75,26,17,2933939.9480788596,117142.13278738435,615296.7937053117,7651.185607372025,73,202137296.31877595,5,75,3521358.6586329415,10844.314308810954,6,75,2136034.4392501144,6578.094161719282,8,75,9342900.830252714,28772.23338523676", + 76: "76,2031-01-01 00:00:00,1000000000.0,2416593.1442709407,925558013.6887971,562286052.8754643,61449480.84015585,0.0,61449480.84015583,46087110.63011687,320151795.1772121,0.0,320151795.17721194,240113846.38290894,215073182.9405454,0.0,215073182.94054526,161304887.20540893,74441986.31120287,2416593.1442709407,0.0,0.0,111821421.56882833,0.0,111821421.56882833,27955355.392207082,217062133.16205567,0.0,217062133.16205567,86824853.26482227,0.003161871492495702,0.01897758586916609,0.003161871492495702,0.004307716902074906,604148.2860677352,1812444.8582032055,144,155582199.54171056,2,76,171,8,1613452.863962547,177618.31263714668,548510.2893213803,6389.835446988684,4,76,4,20,2814812.8006969327,322925.0114136032,946137.610666358,11021.969432596787,5,76,26,17,2936490.343281317,313207.46469408675,937542.8399708105,10921.845202444065,77,208645935.86802903,5,76,3532202.9729417525,10258.336266483766,6,76,2142612.5334118335,6222.643496111377,8,76,9371673.063637951,27217.511112131542", + 77: "77,2031-02-01 00:00:00,1000000000.0,2352203.1628584727,927910216.8516555,563545771.0818933,61545878.613884,0.0,61545878.61388399,46159408.960412994,320654027.57833576,0.0,320654027.5783356,240490520.6837517,215410575.14859393,0.0,215410575.14859378,161557931.36144534,72089783.1483444,2352203.1628584727,0.0,0.0,111879894.18702339,0.0,111879894.18702339,27969973.546755847,218419841.32381874,0.0,218419841.32381874,87367936.5295275,0.003063404144247273,0.01897758586916609,0.003063404144247273,0.004183285626292142,588050.7907146182,1764152.3721438544,148,157747996.71581435,2,77,173,9,1729647.7696736548,133318.59095842767,484471.50499774277,5418.018438088912,4,77,4,20,2818486.790507798,207605.57916999038,776265.0828700784,8681.25057603604,5,77,27,17,2940130.9583487986,120786.82310086445,617278.0597139655,6903.2417272375915,77,208939794.89741686,5,77,3542461.309208236,9998.849465960224,6,77,2148835.176907945,6065.240403674244,8,77,9398890.574750083,26529.038372182866", + 78: "78,2031-03-01 00:00:00,1000000000.0,2288957.7473170687,930199174.5989726,564771419.3115839,61639621.608839564,0.0,61639621.60883955,46229716.20662966,321142428.58205426,0.0,321142428.5820541,240856821.43654054,215738675.63093838,0.0,215738675.63093823,161804006.72320366,69800825.40102734,2288957.7473170687,0.0,0.0,111936697.10430834,0.0,111936697.10430834,27984174.276077084,219741751.67283237,0.0,219741751.67283237,87896700.66913295,0.0029674983713189967,0.01897758586916609,0.0029674983713189967,0.0040617069007948285,572239.4368292672,1716718.3104878017,147,166053918.30860463,2,78,172,9,1731453.7758196844,691754.1607596137,1056291.8874297636,10920.282055617292,4,78,3,21,2924447.9684039676,219381.2237847001,799435.3257572633,8264.81708927647,5,78,27,17,2942432.0389245446,274047.5920494464,880435.259403648,9102.220209030736,77,200810255.11433023,5,78,3552460.1586741963,10151.638399683783,6,78,2154900.417311619,6157.921228324045,8,78,9425419.613122266,26934.41936120528", + 79: "79,2031-04-01 00:00:00,1000000000.0,2226864.049506502,932426038.6484792,565963630.9944729,61730762.28055142,0.0,61730762.280551404,46298071.71041355,321617271.481673,0.0,321617271.4816728,241212953.61125463,216057667.98192987,0.0,216057667.98192972,162043250.98644727,67573961.35152082,2226864.049506502,0.0,0.0,111991867.16915199,0.0,111991867.16915199,27997966.792287998,221028469.7351731,0.0,221028469.7351731,88411387.89406925,0.0028741127805965304,0.01897758586916609,0.0028741127805965304,0.003942947488774999,556716.0123766256,1670148.0371298767,148,149274260.5668296,2,79,174,9,1735093.8698382236,108960.37138050293,473649.0995348183,5299.400652681537,4,79,3,21,2927202.9074337264,189524.3376249945,748245.6417325488,8371.711138177929,5,79,29,17,2945466.1123275547,257608.0164850044,871662.1833572162,9752.551304199149,78,198384971.1990864,5,79,3562611.79707388,10025.715357112767,6,79,2161058.338539943,6081.537087513104,8,79,9452354.032483472,26600.3191990135", + 80: "80,2031-05-01 00:00:00,1000000000.0,2165927.6925578327,934591966.3410369,567123041.6466738,61819353.02219802,0.0,61819353.02219801,46364514.7666485,322078829.24565184,0.0,322078829.24565166,241559121.93423873,216367735.577693,0.0,216367735.57769284,162275801.68326962,65408033.658962995,2165927.6925578327,0.0,0.0,112045440.90453865,0.0,112045440.90453865,28011360.22613466,222280607.59095573,0.0,222280607.59095573,88912243.0363823,0.0027832053884836692,0.01897758586916609,0.0027832053884836692,0.0038269732787458662,541481.9231394582,1624445.7694183746,150,157539401.55619067,2,80,177,9,1736860.3367224508,127974.18650297936,471595.58292508265,4862.7926854590705,4,80,2,21,2929993.477813119,294990.0461276021,918347.4158838714,9469.412476197329,5,80,29,17,2948716.962762288,288299.5411580931,918869.0100579232,9474.790822446088,80,201325072.589352,5,80,3572637.512430993,9634.976454054218,6,80,2167139.8756274562,5844.51727936556,8,80,9478954.351682484,25563.607186493027", + 81: "81,2031-06-01 00:00:00,1000000000.0,2106152.8105081874,936698119.151545,568250288.1083384,61905446.11480107,0.0,61905446.11480106,46429084.586100794,322527374.25811374,0.0,322527374.25811356,241895530.69358516,216669061.40180367,0.0,216669061.40180352,162501796.05135265,63301880.84845481,2106152.8105081874,0.0,0.0,112097454.48954053,0.0,112097454.48954053,28024363.622385133,223498782.8872864,0.0,223498782.8872864,89399513.15491456,0.002694733695457737,0.01897758586916609,0.002694733695457737,0.0037137493204170537,526538.2026270468,1579614.6078811404,148,148691520.3600911,2,81,182,9,1738481.2676176038,115861.46535700488,450226.3398658348,4782.9499730894795,4,81,2,21,2933149.9486385183,223415.11357859054,816314.4166093637,8672.062629915876,5,81,29,17,2951875.22636977,235839.15292596075,839648.0735139658,8919.946202647767,83,206591380.60208258,5,81,3582272.488885047,9154.174623038356,6,81,2172984.392906822,5552.8658547125815,8,81,9504517.958868977,24287.93939412761", + 82: "82,2031-07-01 00:00:00,1000000000.0,2047542.0909839799,938745661.2425292,569346007.8039227,61989093.67902173,0.0,61989093.679021716,46491820.25926629,322963178.06770337,0.0,322963178.0677032,242222383.55077738,216961827.87657598,0.0,216961827.87657583,162721370.90743187,61254338.757470824,2047542.0909839799,0.0,0.0,112147943.74162775,0.0,112147943.74162775,28036985.93540694,224683617.87760058,0.0,224683617.87760058,89873447.15104024,0.002608654758754743,0.01897758586916609,0.002608654758754743,0.0036032398642508227,511885.52274599497,1535656.568237985,152,162617290.3185347,2,82,187,10,1854140.5448374117,181083.66055745102,571367.2554689609,5395.637063059671,4,82,2,21,2936040.6361818234,301805.9894559506,933522.740819526,8815.608264846585,5,82,29,17,2954848.5417706524,170275.7760457509,717468.3238475319,6775.3247017029,83,207119306.26366022,5,82,3591426.663508085,8898.722249185688,6,82,2178537.2587615345,5397.910020605832,8,82,9528805.898263104,23610.170831727137", + 83: "83,2031-08-01 00:00:00,1000000000.0,1990096.820536178,940735758.0630652,570410838.0262307,62070347.62865052,0.0,62070347.62865051,46552760.72148788,323386511.14526933,0.0,323386511.14526916,242539883.35895187,217246216.70027673,0.0,217246216.70027658,162934662.52520743,59264241.93693464,1990096.820536178,0.0,0.0,112196944.09976031,0.0,112196944.09976031,28049236.024940077,225835738.48910865,0.0,225835738.48910865,90334295.39564347,0.002524925263051069,0.01897758586916609,0.002524925263051069,0.003495408404130847,497524.2051340445,1492572.6154021337,153,165397129.378877,2,83,188,10,1855939.0905250984,251066.23794145195,675662.2955086689,6097.294695035839,4,83,2,21,2938979.1722701057,209186.67150413757,793428.435877293,7160.036937273693,5,83,29,17,2957106.9833378866,217987.70034015662,797539.8182169596,7197.138770386995,85,216336139.94798666,5,83,3600325.3857572707,8299.466759148734,6,83,2183935.16878214,5034.405337125062,8,83,9552416.069094831,22020.220713560728", + 84: "84,2031-09-01 00:00:00,1000000000.0,1933816.9322512236,942669574.9953164,571445415.245394,62149259.62586797,0.0,62149259.625867955,46611944.719400965,323797642.6507722,0.0,323797642.65077204,242848231.988079,217522408.69053778,0.0,217522408.69053763,163141806.5179032,57330425.00468342,1933816.9322512236,0.0,0.0,112244490.60829917,0.0,112244490.60829917,28061122.65207479,226955773.41983962,0.0,226955773.41983962,90782309.36793585,0.0024435015890253518,0.01897758586916609,0.0024435015890253518,0.0033902177226202974,483454.2330628059,1450362.6991884178,156,161028057.54427212,2,84,191,10,1857971.5220901102,189222.77111187074,598104.3537962424,5387.062715637403,4,84,2,21,2941365.851249197,180016.67695801836,731774.2832742657,6591.013646143846,5,84,31,17,2959506.029594682,168803.07458256255,712476.197396278,6417.197825783019,89,222920761.6778572,5,84,3608624.8525164193,7843.537227319132,6,84,2188969.574119265,4757.841295722563,8,84,9574436.289808393,20810.5443316834", + 85: "85,2031-10-01 00:00:00,1000000000.0,1878701.0552812088,944548276.0505975,572450374.4437711,62225881.03833957,0.0,62225881.038339555,46669410.77875467,324196840.2097493,0.0,324196840.2097491,243147630.15731183,217790583.63418838,0.0,217790583.63418823,163342937.7256412,55451723.94940222,1878701.0552812088,0.0,0.0,112290617.9017662,0.0,112290617.9017662,28072654.47544155,228044353.26655453,0.0,228044353.26655453,91217741.30662182,0.002364339879700408,0.01897758586916609,0.002364339879700408,0.0032876299383283085,469675.2638203022,1409025.7914609066,154,164254691.32171264,2,85,194,10,1859767.2096619895,173599.01730846666,570071.101058042,4890.240138006446,4,85,2,21,2943562.8557979115,236161.7219807126,827386.530918446,7097.568734204856,5,85,31,18,3081975.5303828097,676134.2083104962,1397855.4463370822,11991.221442590753,88,222713236.04139948,5,85,3616468.3897437383,7643.04456783964,6,85,2193727.4154149876,4636.22368531099,8,85,9595246.834140075,20278.595383478918", + 86: "86,2031-11-01 00:00:00,1000000000.0,1824746.5659568368,946373022.6165545,573426348.4775708,62300262.89819642,0.0,62300262.89819641,46725197.17364731,324584369.6996035,0.0,324584369.6996033,243438277.2747025,218050920.14368737,0.0,218050920.14368722,163538190.1077654,53626977.38344539,1824746.5659568368,0.0,0.0,112335360.19047649,0.0,112335360.19047649,28083840.047619123,229102109.68459103,0.0,229102109.68459103,91640843.87383641,0.0022873961044804158,0.01897758586916609,0.0022873961044804158,0.003187606554943519,456186.6414892092,1368559.9244676277,154,168376116.80209213,2,86,196,10,1861397.2897079915,141481.74120751297,516735.7095514981,4200.024309057689,4,86,2,21,2945928.7120426465,572898.1141970728,1269638.1841981844,10319.610467735241,5,86,31,18,3085972.6041970067,221869.386268092,863105.6344478874,7015.316686962023,87,222099076.67459163,5,86,3624111.434311578,7459.34117057055,6,86,2198363.6391002988,4524.79033778417,8,86,9615525.429523554,19791.191858519054", + 87: "87,2031-12-01 00:00:00,1000000000.0,1771949.6401663898,948144972.2567209,574373967.4658343,62372455.862941034,0.0,62372455.86294102,46779341.89720576,324960495.04592294,0.0,324960495.04592276,243720371.28444207,218303595.5202935,0.0,218303595.52029335,163727696.64022002,51855027.743278995,1771949.6401663898,0.0,0.0,112378751.2470603,0.0,112378751.2470603,28094687.811765075,230129674.5805034,0.0,230129674.5805034,92051869.83220136,0.002212626120813226,0.01897758586916609,0.002212626120813226,0.0030901085115304897,442987.41004159744,1328962.2301247923,154,181971065.34214213,2,87,198,10,1862797.2978110109,127142.306027625,488542.0324454021,3567.89640005466,4,87,2,21,2949368.5821985584,693513.3504626909,1420149.9564336496,10371.57006068596,5,87,31,18,3088311.0430926606,504090.42304628406,1223675.148542997,8936.684803698716,86,214208630.54354024,5,87,3631570.7754821484,7525.52634927422,6,87,2202888.429438083,4564.937858892924,8,87,9635316.621382073,19966.794976805504", + 88: "88,2032-01-01 00:00:00,1000000000.0,1720305.306703497,949865277.5634242,575293858.2072634,62442510.17830714,0.0,62442510.17830712,46831882.633730344,325325478.0289803,0.0,325325478.02898014,243994108.5217351,218548785.62407485,0.0,218548785.6240747,163911589.21805602,50134722.436575495,1720305.306703497,0.0,0.0,112420824.39388657,0.0,112420824.39388657,28105206.09847164,231127679.3381758,0.0,231127679.3381758,92451071.73527032,0.0021399857334214625,0.01897758586916609,0.0021399857334214625,0.002995096233719587,430076.32667587424,1290228.9800276228,154,170533384.61310613,2,88,201,10,1863986.596611029,193135.74526424764,593035.783664481,4486.816209114873,4,88,2,22,3055893.1999229435,280504.9824241052,956741.2390214308,7238.554936170051,5,88,31,19,3211620.3728734273,302653.52104074956,1000765.4179874071,7571.635005229207,86,214877984.84843263,5,88,3639096.301831423,7298.600155742126,6,88,2207453.367296976,4427.285829792127,8,88,9655283.416358879,19364.712335561526", + 89: "89,2032-02-01 00:00:00,1000000000.0,1669807.501305684,951535085.06473,576186643.6252315,62510475.64309218,0.0,62510475.64309216,46882856.732319124,325679578.10051036,0.0,325679578.1005102,244259683.57538265,218786664.75082248,0.0,218786664.75082234,164089998.56311676,48464914.93526981,1669807.501305684,0.0,0.0,112461612.49139486,0.0,112461612.49139486,28115403.122848716,232096754.07891044,0.0,232096754.07891044,92838701.63156419,0.0020694307510591534,0.01897758586916609,0.0020694307510591534,0.002902529685453544,417451.875326421,1252355.6259792629,152,193912432.91773826,2,89,203,10,1865482.2020140672,109627.81723454742,461027.0124336789,2977.476812921334,4,89,2,22,3058306.0515683335,215812.15928551243,821436.2557134853,5305.128200121818,5,89,31,19,3214144.2512085037,438889.1732530747,1176025.2015333362,7595.190031257373,89,222604955.69449556,5,89,3646394.9019871647,6851.361663381618,6,89,2211880.6531267683,4155.993719317014,8,89,9674648.128694441,18178.095098674294", + 90: "90,2032-03-01 00:00:00,1000000000.0,1620449.1211246357,953155534.1858547,577052942.2411817,62576401.57597193,0.0,62576401.57597192,46932301.18197894,326023052.2108139,0.0,326023052.2108137,244517289.15811026,219017405.51590163,0.0,219017405.51590148,164263054.1369261,46844465.81414517,1620449.1211246357,0.0,0.0,112501147.92733784,0.0,112501147.92733784,28125286.98183446,233037526.95582965,0.0,233037526.95582965,93215010.78233187,0.0020009170407628406,0.01897758586916609,0.0020009170407628406,0.002812368420984474,405112.2802811589,1215336.8408434768,152,173689762.0214271,2,90,204,10,1866474.694285041,111586.99551685,456661.80942626705,3195.3404411569077,4,90,2,23,3163141.855339197,206999.14379501797,809943.3416018139,5667.311478745209,5,90,31,19,3216675.981218923,566039.1172216065,1338523.804055894,9365.878981481934,88,220736053.01466635,5,90,3653246.2636505463,6717.324559927365,6,90,2216036.6468460853,4074.6876392295158,8,90,9692826.223793115,17822.466636325735", + 91: "91,2032-04-01 00:00:00,1000000000.0,1572222.0793875805,954727756.2652421,577893367.6764939,62640336.78429805,0.0,62640336.78429803,46980252.588223524,326356154.64619297,0.0,326356154.6461928,244767115.9846446,219241178.74504304,0.0,219241178.7450429,164430884.05878216,45272243.734757595,1572222.0793875805,0.0,0.0,112539462.60693224,0.0,112539462.60693224,28134865.65173306,233950623.48277625,0.0,233950623.48277625,93580249.39311051,0.0019344005795776215,0.01897758586916609,0.0019344005795776215,0.002724571636843789,393055.5198468951,1179166.5595406853,153,174521060.07615346,2,91,209,9,1753474.847203315,125483.47270784187,468299.93257157283,3164.1087905528325,4,91,2,23,3165030.9591654455,453416.8714720797,1173697.327304274,7930.186985889076,5,91,31,19,3219797.9408794167,669965.4099771837,1460587.4641520178,9868.584881737832,86,217620761.55344346,5,91,3659963.588210474,6622.427665794776,6,91,2220111.334485315,4017.1237686626428,8,91,9710648.690429442,17570.685333445337", + 92: "92,2032-05-01 00:00:00,1000000000.0,1525117.3600273088,956252873.6252697,578708528.1827813,62702329.53487144,0.0,62702329.53487142,47026747.151153564,326679136.8766803,0.0,326679136.87668014,245009352.6575101,219458153.3720499,0.0,219458153.37204975,164593615.0290373,43747126.37473028,1525117.3600273088,0.0,0.0,112576587.94391267,0.0,112576587.94391267,28144146.985978168,234836665.89775553,0.0,234836665.89775553,93934666.35910222,0.0018698375037492405,0.01897758586916609,0.0018698375037492405,0.002639098223534334,381279.3400068272,1143838.0200204817,153,166062369.4017721,2,92,214,9,1754529.5501334993,261950.67769438215,664835.8094425278,4579.390735245884,4,92,2,22,3064606.9271232523,438255.1560391989,1159837.2006399792,7988.961568507968,5,92,32,19,3223087.4691733294,281455.7029252101,984206.3013891119,6779.215490710617,86,218025001.859974,5,92,3666586.0158762685,6423.617186725482,6,92,2224128.4582539774,3896.526558510613,8,92,9728219.375762887,17043.199561609603", + 93: "93,2032-06-01 00:00:00,1000000000.0,1479125.0720759218,957731998.6973454,579499026.2004791,62762427.52667732,0.0,62762427.5266773,47071820.645007975,326992247.41398895,0.0,326992247.41398877,245244185.56049156,219668496.3433705,0.0,219668496.34337035,164751372.25752777,42268001.302654356,1479125.0720759218,0.0,0.0,112612554.85247877,0.0,112612554.85247877,28153138.713119693,235696272.56083024,0.0,235696272.56083024,94278509.0243321,0.0018071841553832632,0.01897758586916609,0.0018071841553832632,0.002555906816719227,369781.26801898045,1109343.8040569413,157,185979661.3345189,2,93,216,9,1756056.0137119147,100723.92810401137,435834.08835194906,2599.692041810928,4,93,2,22,3067269.9143127548,336638.62046115415,1025130.7683536703,6114.76791634635,5,93,32,19,3225347.2076702327,271161.37737174105,938258.1578721394,5596.584414513877,88,221807598.59392232,5,93,3673009.633062994,6133.93372857417,6,93,2228024.984812488,3720.806359838067,8,93,9745262.575324496,16274.60877491505", + 94: "94,2032-07-01 00:00:00,1000000000.0,1434234.5036344954,959166233.2009798,580265457.9454826,62820677.86556107,0.0,62820677.86556105,47115508.399170786,327295731.6795733,0.0,327295731.6795731,245471798.75967985,219872372.52946362,0.0,219872372.52946347,164904279.3970976,40833766.79901986,1434234.5036344954,0.0,0.0,112647393.74012342,0.0,112647393.74012342,28161848.435030855,236530057.38625884,0.0,236530057.38625884,94612022.95450354,0.0017463971265815601,0.01897758586916609,0.0017463971265815601,0.0024749558477054606,358558.62590862386,1075675.8777258715,156,170297897.16307935,2,94,221,8,1642857.61716374,152849.02015092247,497028.3331584742,3139.44797576032,4,94,2,22,3069308.17028487,190022.6450997964,780039.6483706684,4927.071017316176,5,94,33,19,3227212.735808404,347872.30701605405,1051974.452419235,6644.729977890657,92,227630134.04620105,5,94,3679143.5667915684,5804.76246059828,6,94,2231745.791172326,3521.133099324157,8,94,9761537.184099412,15401.24857193555", + 95: "95,2032-08-01 00:00:00,1000000000.0,1390434.1752473512,960556667.3762271,581008413.0235122,62877127.040818125,0.0,62877127.04081811,47157845.28061359,327589831.88266253,0.0,327589831.88266236,245692373.91199678,220069944.6428633,0.0,220069944.64286315,165052458.48214737,39443332.62377251,1390434.1752473512,0.0,0.0,112681134.50132678,0.0,112681134.50132678,28170283.625331696,237338629.30855682,0.0,237338629.30855682,94935451.72342274,0.001687433301074716,0.01897758586916609,0.001687433301074716,0.002396203593042386,347608.5438118378,1042825.6314355134,158,171886325.35367435,2,95,224,8,1643904.0998223268,162000.80839951528,514866.7689753072,3123.6706140356127,4,95,2,22,3070950.5272906423,354832.3896073904,1027384.2569665861,6233.088259310926,5,95,34,19,3229427.6458010343,293105.07465562946,977855.2685541837,5932.598394807451,91,226673318.59202543,5,95,3684948.3292521667,5659.757698254716,6,95,2235266.92427165,3433.174105013314,8,95,9776938.432671348,15016.52061723859", + } + // until shown necessary, skip time and epoch columns + filteredSimulatorEpochs := map[int]string{} + for epochNumber, epoch := range simulatorEpochs { + filteredSimulatorEpochs[epochNumber] = strings.Join(strings.Split(epoch, ",")[2:], ",") + } + filteredSimulatorHeaders := strings.Join(strings.Split(simulatorHeaders, ",")[2:], ",") + gettersMap := map[int](func(header string) alloraMath.Dec){} + for epochNumber, epoch := range filteredSimulatorEpochs { + gettersMap[epochNumber] = GetSimulatedValuesGetterForEpoch(epoch, filteredSimulatorHeaders) + } + return gettersMap +} + +func GetInferencesFromCsv( + topicId uint64, + blockHeight int64, + inferers []string, + epochGet func(header string) alloraMath.Dec, +) (emissionstypes.Inferences, error) { + if len(inferers) != 5 { + return emissionstypes.Inferences{}, fmt.Errorf("expected 5 inferers, got %d", len(inferers)) + } + return emissionstypes.Inferences{ + Inferences: []*emissionstypes.Inference{ + { + Inferer: inferers[0], + Value: epochGet("inference_0"), + TopicId: topicId, + BlockHeight: blockHeight, + }, + { + Inferer: inferers[1], + Value: epochGet("inference_1"), + TopicId: topicId, + BlockHeight: blockHeight, + }, + { + Inferer: inferers[2], + Value: epochGet("inference_2"), + TopicId: topicId, + BlockHeight: blockHeight, + }, + { + Inferer: inferers[3], + Value: epochGet("inference_3"), + TopicId: topicId, + BlockHeight: blockHeight, + }, + { + Inferer: inferers[4], + Value: epochGet("inference_4"), + TopicId: topicId, + BlockHeight: blockHeight, + }, + }, + }, nil +} + +func GetForecastsFromCsv( + topicId uint64, + blockHeight int64, + inferers []string, + forecasters []string, + epochGet func(header string) alloraMath.Dec, +) (emissionstypes.Forecasts, error) { + if len(inferers) != 5 { + return emissionstypes.Forecasts{}, fmt.Errorf("expected 5 inferers, got %d", len(inferers)) + } + if len(forecasters) != 3 { + return emissionstypes.Forecasts{}, fmt.Errorf("expected 3 forecasters, got %d", len(forecasters)) + } + return emissionstypes.Forecasts{ + Forecasts: []*emissionstypes.Forecast{ + { + Forecaster: forecasters[0], + ForecastElements: []*emissionstypes.ForecastElement{ + { + Inferer: inferers[0], + Value: epochGet("forecasted_loss_0_for_0"), + }, + { + Inferer: inferers[1], + Value: epochGet("forecasted_loss_0_for_1"), + }, + { + Inferer: inferers[2], + Value: epochGet("forecasted_loss_0_for_2"), + }, + { + Inferer: inferers[3], + Value: epochGet("forecasted_loss_0_for_3"), + }, + { + Inferer: inferers[4], + Value: epochGet("forecasted_loss_0_for_4"), + }, + }, + TopicId: topicId, + BlockHeight: blockHeight, + }, + { + Forecaster: forecasters[1], + ForecastElements: []*emissionstypes.ForecastElement{ + { + Inferer: inferers[0], + Value: epochGet("forecasted_loss_1_for_0"), + }, + { + Inferer: inferers[1], + Value: epochGet("forecasted_loss_1_for_1"), + }, + { + Inferer: inferers[2], + Value: epochGet("forecasted_loss_1_for_2"), + }, + { + Inferer: inferers[3], + Value: epochGet("forecasted_loss_1_for_3"), + }, + { + Inferer: inferers[4], + Value: epochGet("forecasted_loss_1_for_4"), + }, + }, + TopicId: topicId, + BlockHeight: blockHeight, + }, + { + Forecaster: forecasters[2], + ForecastElements: []*emissionstypes.ForecastElement{ + { + Inferer: inferers[0], + Value: epochGet("forecasted_loss_2_for_0"), + }, + { + Inferer: inferers[1], + Value: epochGet("forecasted_loss_2_for_1"), + }, + { + Inferer: inferers[2], + Value: epochGet("forecasted_loss_2_for_2"), + }, + { + Inferer: inferers[3], + Value: epochGet("forecasted_loss_2_for_3"), + }, + { + Inferer: inferers[4], + Value: epochGet("forecasted_loss_2_for_4"), + }, + }, + TopicId: topicId, + BlockHeight: blockHeight, + }, + }, + }, nil +} + +func GetNetworkLossFromCsv( + topicId uint64, + inferers []string, + forecasters []string, + epochGet func(header string) alloraMath.Dec, +) (emissionstypes.ValueBundle, error) { + if len(inferers) != 5 { + return emissionstypes.ValueBundle{}, fmt.Errorf("expected 5 inferers, got %d", len(inferers)) + } + if len(forecasters) != 3 { + return emissionstypes.ValueBundle{}, fmt.Errorf("expected 3 forecasters, got %d", len(forecasters)) + } + return emissionstypes.ValueBundle{ + TopicId: topicId, + CombinedValue: epochGet("network_loss"), + InfererValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("inference_loss_0"), + }, + { + Worker: inferers[1], + Value: epochGet("inference_loss_1"), + }, + { + Worker: inferers[2], + Value: epochGet("inference_loss_2"), + }, + { + Worker: inferers[3], + Value: epochGet("inference_loss_3"), + }, + { + Worker: inferers[4], + Value: epochGet("inference_loss_4"), + }, + }, + NaiveValue: epochGet("network_naive_loss"), + ForecasterValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("forecast_implied_inference_loss_0"), + }, + { + Worker: forecasters[1], + Value: epochGet("forecast_implied_inference_loss_1"), + }, + { + Worker: forecasters[2], + Value: epochGet("forecast_implied_inference_loss_2"), + }, + }, + OneOutInfererForecasterValues: []*emissionstypes.OneOutInfererForecasterValues{ + { + Forecaster: forecasters[0], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("forecast_implied_inference_loss_0_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("forecast_implied_inference_loss_0_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("forecast_implied_inference_loss_0_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("forecast_implied_inference_loss_0_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("forecast_implied_inference_loss_0_oneout_4"), + }, + }, + }, + { + Forecaster: forecasters[1], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("forecast_implied_inference_loss_1_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("forecast_implied_inference_loss_1_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("forecast_implied_inference_loss_1_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("forecast_implied_inference_loss_1_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("forecast_implied_inference_loss_1_oneout_4"), + }, + }, + }, + { + Forecaster: forecasters[2], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("forecast_implied_inference_loss_2_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("forecast_implied_inference_loss_2_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("forecast_implied_inference_loss_2_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("forecast_implied_inference_loss_2_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("forecast_implied_inference_loss_2_oneout_4"), + }, + }, + }, + }, + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("network_loss_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("network_loss_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("network_loss_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("network_loss_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("network_loss_oneout_4"), + }, + }, + OneOutForecasterValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("network_loss_oneout_5"), + }, + { + Worker: forecasters[1], + Value: epochGet("network_loss_oneout_6"), + }, + { + Worker: forecasters[2], + Value: epochGet("network_loss_oneout_7"), + }, + }, + OneInForecasterValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("network_naive_loss_onein_0"), + }, + { + Worker: forecasters[1], + Value: epochGet("network_naive_loss_onein_1"), + }, + { + Worker: forecasters[2], + Value: epochGet("network_naive_loss_onein_2"), + }, + }, + }, nil +} + +func GetReputersDataFromCsv( + topicId uint64, + inferers []string, + forecasters []string, + reputers []string, + epochGet func(header string) alloraMath.Dec, +) (emissionstypes.ReputerValueBundles, error) { + if len(inferers) != 5 { + return emissionstypes.ReputerValueBundles{}, fmt.Errorf("expected 5 inferers, got %d", len(inferers)) + } + if len(forecasters) != 3 { + return emissionstypes.ReputerValueBundles{}, fmt.Errorf("expected 3 forecasters, got %d", len(forecasters)) + } + if len(reputers) != 5 { + return emissionstypes.ReputerValueBundles{}, fmt.Errorf("expected 5 reputers, got %d", len(reputers)) + } + return emissionstypes.ReputerValueBundles{ + ReputerValueBundles: []*emissionstypes.ReputerValueBundle{ + { + ValueBundle: &emissionstypes.ValueBundle{ + TopicId: topicId, + Reputer: reputers[0], + CombinedValue: epochGet("reputer_0_loss_network_inference"), + InfererValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_0_loss_inference_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_0_loss_inference_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_0_loss_inference_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_0_loss_inference_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_0_loss_inference_4"), + }, + }, + NaiveValue: epochGet("reputer_0_loss_naive_network_inference"), + ForecasterValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_0_loss_forecast_implied_inference_0"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_0_loss_forecast_implied_inference_1"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_0_loss_forecast_implied_inference_2"), + }, + }, + OneOutInfererForecasterValues: []*emissionstypes.OneOutInfererForecasterValues{ + { + Forecaster: forecasters[0], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_0_loss_forecast_implied_inference_0_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_0_loss_forecast_implied_inference_0_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_0_loss_forecast_implied_inference_0_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_0_loss_forecast_implied_inference_0_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_0_loss_forecast_implied_inference_0_oneout_4"), + }, + }, + }, + { + Forecaster: forecasters[1], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_0_loss_forecast_implied_inference_1_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_0_loss_forecast_implied_inference_1_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_0_loss_forecast_implied_inference_1_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_0_loss_forecast_implied_inference_1_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_0_loss_forecast_implied_inference_1_oneout_4"), + }, + }, + }, + { + Forecaster: forecasters[2], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_0_loss_forecast_implied_inference_2_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_0_loss_forecast_implied_inference_2_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_0_loss_forecast_implied_inference_2_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_0_loss_forecast_implied_inference_2_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_0_loss_forecast_implied_inference_2_oneout_4"), + }, + }, + }, + }, + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_0_loss_network_inference_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_0_loss_network_inference_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_0_loss_network_inference_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_0_loss_network_inference_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_0_loss_network_inference_oneout_4"), + }, + }, + OneOutForecasterValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_0_loss_network_inference_oneout_5"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_0_loss_network_inference_oneout_6"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_0_loss_network_inference_oneout_7"), + }, + }, + OneInForecasterValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_0_loss_naive_network_inference_onein_0"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_0_loss_naive_network_inference_onein_1"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_0_loss_naive_network_inference_onein_2"), + }, + }, + }, + }, + { + ValueBundle: &emissionstypes.ValueBundle{ + TopicId: topicId, + Reputer: reputers[1], + CombinedValue: epochGet("reputer_1_loss_network_inference"), + InfererValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_1_loss_inference_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_1_loss_inference_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_1_loss_inference_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_1_loss_inference_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_1_loss_inference_4"), + }, + }, + NaiveValue: epochGet("reputer_1_loss_naive_network_inference"), + ForecasterValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_1_loss_forecast_implied_inference_0"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_1_loss_forecast_implied_inference_1"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_1_loss_forecast_implied_inference_2"), + }, + }, + OneOutInfererForecasterValues: []*emissionstypes.OneOutInfererForecasterValues{ + { + Forecaster: forecasters[0], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_1_loss_forecast_implied_inference_0_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_1_loss_forecast_implied_inference_0_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_1_loss_forecast_implied_inference_0_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_1_loss_forecast_implied_inference_0_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_1_loss_forecast_implied_inference_0_oneout_4"), + }, + }, + }, + { + Forecaster: forecasters[1], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_1_loss_forecast_implied_inference_1_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_1_loss_forecast_implied_inference_1_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_1_loss_forecast_implied_inference_1_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_1_loss_forecast_implied_inference_1_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_1_loss_forecast_implied_inference_1_oneout_4"), + }, + }, + }, + { + Forecaster: forecasters[2], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_1_loss_forecast_implied_inference_2_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_1_loss_forecast_implied_inference_2_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_1_loss_forecast_implied_inference_2_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_1_loss_forecast_implied_inference_2_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_1_loss_forecast_implied_inference_2_oneout_4"), + }, + }, + }, + }, + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_1_loss_network_inference_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_1_loss_network_inference_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_1_loss_network_inference_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_1_loss_network_inference_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_1_loss_network_inference_oneout_4"), + }, + }, + OneOutForecasterValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_1_loss_network_inference_oneout_5"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_1_loss_network_inference_oneout_6"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_1_loss_network_inference_oneout_7"), + }, + }, + OneInForecasterValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_1_loss_naive_network_inference_onein_0"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_1_loss_naive_network_inference_onein_1"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_1_loss_naive_network_inference_onein_2"), + }, + }, + }, + }, + { + ValueBundle: &emissionstypes.ValueBundle{ + TopicId: topicId, + Reputer: reputers[2], + CombinedValue: epochGet("reputer_2_loss_network_inference"), + InfererValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_2_loss_inference_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_2_loss_inference_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_2_loss_inference_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_2_loss_inference_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_2_loss_inference_4"), + }, + }, + NaiveValue: epochGet("reputer_2_loss_naive_network_inference"), + ForecasterValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_2_loss_forecast_implied_inference_0"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_2_loss_forecast_implied_inference_1"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_2_loss_forecast_implied_inference_2"), + }, + }, + OneOutInfererForecasterValues: []*emissionstypes.OneOutInfererForecasterValues{ + { + Forecaster: forecasters[0], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_2_loss_forecast_implied_inference_0_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_2_loss_forecast_implied_inference_0_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_2_loss_forecast_implied_inference_0_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_2_loss_forecast_implied_inference_0_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_2_loss_forecast_implied_inference_0_oneout_4"), + }, + }, + }, + { + Forecaster: forecasters[1], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_2_loss_forecast_implied_inference_1_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_2_loss_forecast_implied_inference_1_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_2_loss_forecast_implied_inference_1_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_2_loss_forecast_implied_inference_1_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_2_loss_forecast_implied_inference_1_oneout_4"), + }, + }, + }, + { + Forecaster: forecasters[2], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_2_loss_forecast_implied_inference_2_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_2_loss_forecast_implied_inference_2_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_2_loss_forecast_implied_inference_2_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_2_loss_forecast_implied_inference_2_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_2_loss_forecast_implied_inference_2_oneout_4"), + }, + }, + }, + }, + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_2_loss_network_inference_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_2_loss_network_inference_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_2_loss_network_inference_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_2_loss_network_inference_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_2_loss_network_inference_oneout_4"), + }, + }, + OneOutForecasterValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_2_loss_network_inference_oneout_5"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_2_loss_network_inference_oneout_6"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_2_loss_network_inference_oneout_7"), + }, + }, + OneInForecasterValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_2_loss_naive_network_inference_onein_0"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_2_loss_naive_network_inference_onein_1"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_2_loss_naive_network_inference_onein_2"), + }, + }, + }, + }, + { + ValueBundle: &emissionstypes.ValueBundle{ + TopicId: topicId, + Reputer: reputers[3], + CombinedValue: epochGet("reputer_3_loss_network_inference"), + InfererValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_3_loss_inference_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_3_loss_inference_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_3_loss_inference_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_3_loss_inference_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_3_loss_inference_4"), + }, + }, + NaiveValue: epochGet("reputer_3_loss_naive_network_inference"), + ForecasterValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_3_loss_forecast_implied_inference_0"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_3_loss_forecast_implied_inference_1"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_3_loss_forecast_implied_inference_2"), + }, + }, + OneOutInfererForecasterValues: []*emissionstypes.OneOutInfererForecasterValues{ + { + Forecaster: forecasters[0], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_3_loss_forecast_implied_inference_0_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_3_loss_forecast_implied_inference_0_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_3_loss_forecast_implied_inference_0_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_3_loss_forecast_implied_inference_0_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_3_loss_forecast_implied_inference_0_oneout_4"), + }, + }, + }, + { + Forecaster: forecasters[1], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_3_loss_forecast_implied_inference_1_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_3_loss_forecast_implied_inference_1_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_3_loss_forecast_implied_inference_1_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_3_loss_forecast_implied_inference_1_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_3_loss_forecast_implied_inference_1_oneout_4"), + }, + }, + }, + { + Forecaster: forecasters[2], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_3_loss_forecast_implied_inference_2_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_3_loss_forecast_implied_inference_2_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_3_loss_forecast_implied_inference_2_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_3_loss_forecast_implied_inference_2_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_3_loss_forecast_implied_inference_2_oneout_4"), + }, + }, + }, + }, + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_3_loss_network_inference_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_3_loss_network_inference_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_3_loss_network_inference_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_3_loss_network_inference_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_3_loss_network_inference_oneout_4"), + }, + }, + OneOutForecasterValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_3_loss_network_inference_oneout_5"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_3_loss_network_inference_oneout_6"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_3_loss_network_inference_oneout_7"), + }, + }, + OneInForecasterValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_3_loss_naive_network_inference_onein_0"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_3_loss_naive_network_inference_onein_1"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_3_loss_naive_network_inference_onein_2"), + }, + }, + }, + }, + { + ValueBundle: &emissionstypes.ValueBundle{ + TopicId: topicId, + Reputer: reputers[4], + CombinedValue: epochGet("reputer_4_loss_network_inference"), + InfererValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_4_loss_inference_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_4_loss_inference_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_4_loss_inference_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_4_loss_inference_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_4_loss_inference_4"), + }, + }, + NaiveValue: epochGet("reputer_4_loss_naive_network_inference"), + ForecasterValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_4_loss_forecast_implied_inference_0"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_4_loss_forecast_implied_inference_1"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_4_loss_forecast_implied_inference_2"), + }, + }, + OneOutInfererForecasterValues: []*emissionstypes.OneOutInfererForecasterValues{ + { + Forecaster: forecasters[0], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_4_loss_forecast_implied_inference_0_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_4_loss_forecast_implied_inference_0_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_4_loss_forecast_implied_inference_0_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_4_loss_forecast_implied_inference_0_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_4_loss_forecast_implied_inference_0_oneout_4"), + }, + }, + }, + { + Forecaster: forecasters[1], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_4_loss_forecast_implied_inference_1_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_4_loss_forecast_implied_inference_1_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_4_loss_forecast_implied_inference_1_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_4_loss_forecast_implied_inference_1_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_4_loss_forecast_implied_inference_1_oneout_4"), + }, + }, + }, + { + Forecaster: forecasters[2], + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_4_loss_forecast_implied_inference_2_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_4_loss_forecast_implied_inference_2_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_4_loss_forecast_implied_inference_2_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_4_loss_forecast_implied_inference_2_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_4_loss_forecast_implied_inference_2_oneout_4"), + }, + }, + }, + }, + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: inferers[0], + Value: epochGet("reputer_4_loss_network_inference_oneout_0"), + }, + { + Worker: inferers[1], + Value: epochGet("reputer_4_loss_network_inference_oneout_1"), + }, + { + Worker: inferers[2], + Value: epochGet("reputer_4_loss_network_inference_oneout_2"), + }, + { + Worker: inferers[3], + Value: epochGet("reputer_4_loss_network_inference_oneout_3"), + }, + { + Worker: inferers[4], + Value: epochGet("reputer_4_loss_network_inference_oneout_4"), + }, + }, + OneOutForecasterValues: []*emissionstypes.WithheldWorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_4_loss_network_inference_oneout_5"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_4_loss_network_inference_oneout_6"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_4_loss_network_inference_oneout_7"), + }, + }, + OneInForecasterValues: []*emissionstypes.WorkerAttributedValue{ + { + Worker: forecasters[0], + Value: epochGet("reputer_4_loss_naive_network_inference_onein_0"), + }, + { + Worker: forecasters[1], + Value: epochGet("reputer_4_loss_naive_network_inference_onein_1"), + }, + { + Worker: forecasters[2], + Value: epochGet("reputer_4_loss_naive_network_inference_onein_2"), + }, + }, + }, + }, + }, + }, nil +} + +func GetTotalInfererRewardForTopicInEpoch( + epochGet func(header string) alloraMath.Dec, +) (alloraMath.Dec, error) { + infererRewards := []alloraMath.Dec{ + epochGet("inferer_reward_0"), + epochGet("inferer_reward_1"), + epochGet("inferer_reward_2"), + epochGet("inferer_reward_3"), + epochGet("inferer_reward_4"), + } + totalInferersReward := alloraMath.ZeroDec() + var err error + for _, reward := range infererRewards { + totalInferersReward, err = totalInferersReward.Add(reward) + if err != nil { + return alloraMath.ZeroDec(), err + } + } + return totalInferersReward, nil +} + +func GetTotalForecasterRewardForTopicInEpoch( + epochGet func(header string) alloraMath.Dec, +) (alloraMath.Dec, error) { + forecasterRewards := []alloraMath.Dec{ + epochGet("forecaster_reward_0"), + epochGet("forecaster_reward_1"), + epochGet("forecaster_reward_2"), + } + totalForecastersReward := alloraMath.ZeroDec() + var err error + for _, reward := range forecasterRewards { + totalForecastersReward, err = totalForecastersReward.Add(reward) + if err != nil { + return alloraMath.ZeroDec(), err + } + } + return totalForecastersReward, nil +} + +func GetTotalReputerRewardForTopicInEpoch( + epochGet func(header string) alloraMath.Dec, +) (alloraMath.Dec, error) { + reputerRewards := []alloraMath.Dec{ + epochGet("reputer_reward_0"), + epochGet("reputer_reward_1"), + epochGet("reputer_reward_2"), + epochGet("reputer_reward_3"), + epochGet("reputer_reward_4"), + } + // Reputer rewards + totalReputersReward := alloraMath.ZeroDec() + for _, reward := range reputerRewards { + totalReputersReward, _ = totalReputersReward.Add(reward) + } + return totalReputersReward, nil +} + +func GetTotalRewardForTopicInEpoch( + epochGet func(header string) alloraMath.Dec, +) (alloraMath.Dec, error) { + totalRewardForTopic := alloraMath.ZeroDec() + totalInferersReward, err := GetTotalInfererRewardForTopicInEpoch(epochGet) + if err != nil { + return alloraMath.ZeroDec(), err + } + totalForecastersReward, err := GetTotalForecasterRewardForTopicInEpoch(epochGet) + if err != nil { + return alloraMath.ZeroDec(), err + } + totalReputersReward, err := GetTotalReputerRewardForTopicInEpoch(epochGet) + if err != nil { + return alloraMath.ZeroDec(), err + } + totalRewardForTopic, err = totalRewardForTopic.Add(totalInferersReward) + if err != nil { + return alloraMath.ZeroDec(), err + } + totalRewardForTopic, err = totalRewardForTopic.Add(totalForecastersReward) + if err != nil { + return alloraMath.ZeroDec(), err + } + totalRewardForTopic, err = totalRewardForTopic.Add(totalReputersReward) + if err != nil { + return alloraMath.ZeroDec(), err + } + + return totalRewardForTopic, nil +} + +func SetRegretsFromPreviousEpoch( + ctx sdk.Context, + k keeper.Keeper, + topicId uint64, + blockHeight int64, + inferers []string, + forecasters []string, + epochPrevGet func(header string) alloraMath.Dec, +) error { + // Set inferer network regrets + infererNetworkRegrets := map[string]inferencesynthesis.Regret{} + for i, inferer := range inferers { + infererNetworkRegrets[inferer] = epochPrevGet(fmt.Sprintf("inference_regret_worker_%v", i)) + } + + for inferer, regret := range infererNetworkRegrets { + k.SetInfererNetworkRegret( + ctx, + topicId, + inferer, + emissionstypes.TimestampedValue{BlockHeight: blockHeight, Value: regret}, + ) + } + + // Set forecaster network regrets + forecasterNetworkRegrets := map[string]inferencesynthesis.Regret{} + for i, forecaster := range forecasters { + forecasterNetworkRegrets[forecaster] = epochPrevGet(fmt.Sprintf("inference_regret_worker_%v", i+5)) + } + + for forecaster, regret := range forecasterNetworkRegrets { + k.SetForecasterNetworkRegret( + ctx, + topicId, + forecaster, + emissionstypes.TimestampedValue{BlockHeight: blockHeight, Value: regret}, + ) + } + + // Set naive inferer network regrets + infererNaiveNetworkRegrets := map[string]inferencesynthesis.Regret{} + for i, inferer := range inferers { + infererNaiveNetworkRegrets[inferer] = epochPrevGet(fmt.Sprintf("naive_inference_regret_worker_%v", i)) + } + + for inferer, regret := range infererNaiveNetworkRegrets { + k.SetNaiveInfererNetworkRegret( + ctx, + topicId, + inferer, + emissionstypes.TimestampedValue{BlockHeight: blockHeight, Value: regret}, + ) + } + + // Set one-out inferer-inferer network regrets + for i := range inferers { + for j := range inferers { + headerName := fmt.Sprintf("inference_regret_worker_%v_oneout_%v", i, j) + k.SetOneOutInfererInfererNetworkRegret( + ctx, + topicId, + inferers[j], + inferers[i], + emissionstypes.TimestampedValue{ + BlockHeight: blockHeight, + Value: epochPrevGet(headerName), + }, + ) + } + } + + // Set one-out inferer-forecaster network regrets + for i := range inferers { + for j := range forecasters { + headerName := fmt.Sprintf("inference_regret_worker_%v_oneout_%v", j+5, i) + k.SetOneOutInfererForecasterNetworkRegret( + ctx, + topicId, + inferers[i], + forecasters[j], + emissionstypes.TimestampedValue{ + BlockHeight: blockHeight, + Value: epochPrevGet(headerName), + }, + ) + } + } + + // Set one-out forecaster-inferer network regrets + for i := range inferers { + for j := range forecasters { + headerName := fmt.Sprintf("inference_regret_worker_%v_oneout_%v", i, j+5) + k.SetOneOutForecasterInfererNetworkRegret( + ctx, + topicId, + forecasters[j], + inferers[i], + emissionstypes.TimestampedValue{ + BlockHeight: blockHeight, + Value: epochPrevGet(headerName), + }, + ) + } + } + + // Set one-out forecaster-forecaster network regrets + for i := range forecasters { + for j := range forecasters { + headerName := fmt.Sprintf("inference_regret_worker_%v_oneout_%v", i+5, j+5) + k.SetOneOutForecasterForecasterNetworkRegret( + ctx, + topicId, + forecasters[j], + forecasters[i], + emissionstypes.TimestampedValue{ + BlockHeight: blockHeight, + Value: epochPrevGet(headerName), + }, + ) + } + } + + // Set one-in forecaster network regrets + for i := range forecasters { + headerName := fmt.Sprintf("inference_regret_worker_5_onein_%v", i) + k.SetOneInForecasterNetworkRegret( + ctx, + topicId, + forecasters[i], + forecasters[i], + emissionstypes.TimestampedValue{ + BlockHeight: blockHeight, + Value: epochPrevGet(headerName), + }, + ) + for j := range inferers { + headerName := fmt.Sprintf("inference_regret_worker_%v_onein_%v", j, i) + k.SetOneInForecasterNetworkRegret( + ctx, + topicId, + forecasters[i], + inferers[j], + emissionstypes.TimestampedValue{ + BlockHeight: blockHeight, + Value: epochPrevGet(headerName), + }, + ) + } + } + + return nil +} diff --git a/x/emissions/api/v1/node.pulsar.go b/x/emissions/api/v1/node.pulsar.go index a6a86f51a..4cce0bc14 100644 --- a/x/emissions/api/v1/node.pulsar.go +++ b/x/emissions/api/v1/node.pulsar.go @@ -706,8 +706,8 @@ type OffchainNode struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - LibP2PKey string `protobuf:"bytes,1,opt,name=lib_p2p_key,json=libP2pKey,proto3" json:"lib_p2p_key,omitempty"` // LibP2P key of the node - MultiAddress string `protobuf:"bytes,2,opt,name=multi_address,json=multiAddress,proto3" json:"multi_address,omitempty"` // Network address for accessing the node + LibP2PKey string `protobuf:"bytes,1,opt,name=lib_p2p_key,json=libP2pKey,proto3" json:"lib_p2p_key,omitempty"` + MultiAddress string `protobuf:"bytes,2,opt,name=multi_address,json=multiAddress,proto3" json:"multi_address,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` NodeAddress string `protobuf:"bytes,4,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"` NodeId string `protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` diff --git a/x/emissions/api/v1/topic.pulsar.go b/x/emissions/api/v1/topic.pulsar.go index 4bb683cd6..595432c5f 100644 --- a/x/emissions/api/v1/topic.pulsar.go +++ b/x/emissions/api/v1/topic.pulsar.go @@ -31,8 +31,6 @@ var ( fd_Topic_p_norm protoreflect.FieldDescriptor fd_Topic_alpha_regret protoreflect.FieldDescriptor fd_Topic_allow_negative protoreflect.FieldDescriptor - fd_Topic_epsilon protoreflect.FieldDescriptor - fd_Topic_initial_regret protoreflect.FieldDescriptor ) func init() { @@ -52,8 +50,6 @@ func init() { fd_Topic_p_norm = md_Topic.Fields().ByName("p_norm") fd_Topic_alpha_regret = md_Topic.Fields().ByName("alpha_regret") fd_Topic_allow_negative = md_Topic.Fields().ByName("allow_negative") - fd_Topic_epsilon = md_Topic.Fields().ByName("epsilon") - fd_Topic_initial_regret = md_Topic.Fields().ByName("initial_regret") } var _ protoreflect.Message = (*fastReflection_Topic)(nil) @@ -205,18 +201,6 @@ func (x *fastReflection_Topic) Range(f func(protoreflect.FieldDescriptor, protor return } } - if x.Epsilon != "" { - value := protoreflect.ValueOfString(x.Epsilon) - if !f(fd_Topic_epsilon, value) { - return - } - } - if x.InitialRegret != "" { - value := protoreflect.ValueOfString(x.InitialRegret) - if !f(fd_Topic_initial_regret, value) { - return - } - } } // Has reports whether a field is populated. @@ -260,10 +244,6 @@ func (x *fastReflection_Topic) Has(fd protoreflect.FieldDescriptor) bool { return x.AlphaRegret != "" case "emissions.v1.Topic.allow_negative": return x.AllowNegative != false - case "emissions.v1.Topic.epsilon": - return x.Epsilon != "" - case "emissions.v1.Topic.initial_regret": - return x.InitialRegret != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Topic")) @@ -308,10 +288,6 @@ func (x *fastReflection_Topic) Clear(fd protoreflect.FieldDescriptor) { x.AlphaRegret = "" case "emissions.v1.Topic.allow_negative": x.AllowNegative = false - case "emissions.v1.Topic.epsilon": - x.Epsilon = "" - case "emissions.v1.Topic.initial_regret": - x.InitialRegret = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Topic")) @@ -370,12 +346,6 @@ func (x *fastReflection_Topic) Get(descriptor protoreflect.FieldDescriptor) prot case "emissions.v1.Topic.allow_negative": value := x.AllowNegative return protoreflect.ValueOfBool(value) - case "emissions.v1.Topic.epsilon": - value := x.Epsilon - return protoreflect.ValueOfString(value) - case "emissions.v1.Topic.initial_regret": - value := x.InitialRegret - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Topic")) @@ -424,10 +394,6 @@ func (x *fastReflection_Topic) Set(fd protoreflect.FieldDescriptor, value protor x.AlphaRegret = value.Interface().(string) case "emissions.v1.Topic.allow_negative": x.AllowNegative = value.Bool() - case "emissions.v1.Topic.epsilon": - x.Epsilon = value.Interface().(string) - case "emissions.v1.Topic.initial_regret": - x.InitialRegret = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Topic")) @@ -476,10 +442,6 @@ func (x *fastReflection_Topic) Mutable(fd protoreflect.FieldDescriptor) protoref panic(fmt.Errorf("field alpha_regret of message emissions.v1.Topic is not mutable")) case "emissions.v1.Topic.allow_negative": panic(fmt.Errorf("field allow_negative of message emissions.v1.Topic is not mutable")) - case "emissions.v1.Topic.epsilon": - panic(fmt.Errorf("field epsilon of message emissions.v1.Topic is not mutable")) - case "emissions.v1.Topic.initial_regret": - panic(fmt.Errorf("field initial_regret of message emissions.v1.Topic is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Topic")) @@ -521,10 +483,6 @@ func (x *fastReflection_Topic) NewField(fd protoreflect.FieldDescriptor) protore return protoreflect.ValueOfString("") case "emissions.v1.Topic.allow_negative": return protoreflect.ValueOfBool(false) - case "emissions.v1.Topic.epsilon": - return protoreflect.ValueOfString("") - case "emissions.v1.Topic.initial_regret": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Topic")) @@ -645,14 +603,6 @@ func (x *fastReflection_Topic) ProtoMethods() *protoiface.Methods { if x.AllowNegative { n += 2 } - l = len(x.Epsilon) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.InitialRegret) - if l > 0 { - n += 2 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -682,22 +632,6 @@ func (x *fastReflection_Topic) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.InitialRegret) > 0 { - i -= len(x.InitialRegret) - copy(dAtA[i:], x.InitialRegret) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InitialRegret))) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0x82 - } - if len(x.Epsilon) > 0 { - i -= len(x.Epsilon) - copy(dAtA[i:], x.Epsilon) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Epsilon))) - i-- - dAtA[i] = 0x7a - } if x.AllowNegative { i-- if x.AllowNegative { @@ -1224,70 +1158,6 @@ func (x *fastReflection_Topic) ProtoMethods() *protoiface.Methods { } } x.AllowNegative = bool(v != 0) - case 15: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Epsilon", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Epsilon = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 16: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InitialRegret", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.InitialRegret = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2396,8 +2266,6 @@ type Topic struct { PNorm string `protobuf:"bytes,12,opt,name=p_norm,json=pNorm,proto3" json:"p_norm,omitempty"` AlphaRegret string `protobuf:"bytes,13,opt,name=alpha_regret,json=alphaRegret,proto3" json:"alpha_regret,omitempty"` AllowNegative bool `protobuf:"varint,14,opt,name=allow_negative,json=allowNegative,proto3" json:"allow_negative,omitempty"` - Epsilon string `protobuf:"bytes,15,opt,name=epsilon,proto3" json:"epsilon,omitempty"` - InitialRegret string `protobuf:"bytes,16,opt,name=initial_regret,json=initialRegret,proto3" json:"initial_regret,omitempty"` } func (x *Topic) Reset() { @@ -2518,20 +2386,6 @@ func (x *Topic) GetAllowNegative() bool { return false } -func (x *Topic) GetEpsilon() string { - if x != nil { - return x.Epsilon - } - return "" -} - -func (x *Topic) GetInitialRegret() string { - if x != nil { - return x.InitialRegret - } - return "" -} - type TopicList struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2629,7 +2483,7 @@ var file_emissions_v1_topic_proto_rawDesc = []byte{ 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xff, 0x05, 0x0a, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x04, 0x0a, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, @@ -2666,43 +2520,31 @@ var file_emissions_v1_topic_proto_rawDesc = []byte{ 0x63, 0x52, 0x0b, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4e, 0x65, 0x67, - 0x61, 0x74, 0x69, 0x76, 0x65, 0x12, 0x51, 0x0a, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, - 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, - 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, - 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, - 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x12, 0x5e, 0x0a, 0x0e, 0x69, 0x6e, 0x69, 0x74, - 0x69, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, - 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0d, 0x69, 0x6e, 0x69, 0x74, 0x69, - 0x61, 0x6c, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x22, 0x38, 0x0a, 0x09, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x73, 0x22, 0x81, 0x01, 0x0a, 0x15, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x65, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x61, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, - 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x42, 0xc0, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, - 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x31, 0xca, - 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, - 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x61, 0x74, 0x69, 0x76, 0x65, 0x22, 0x38, 0x0a, 0x09, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x69, + 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x22, + 0x81, 0x01, 0x0a, 0x15, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x41, + 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, + 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x63, 0x74, + 0x6f, 0x72, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x3a, 0x04, 0xe8, + 0xa0, 0x1f, 0x01, 0x42, 0xc0, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, + 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, + 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x45, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x45, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/x/emissions/api/v1/events.pulsar.go b/x/emissions/api/v2/events.pulsar.go similarity index 88% rename from x/emissions/api/v1/events.pulsar.go rename to x/emissions/api/v2/events.pulsar.go index 874d75c9e..91b2b8b87 100644 --- a/x/emissions/api/v1/events.pulsar.go +++ b/x/emissions/api/v2/events.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package emissionsv1 +package emissionsv2 import ( fmt "fmt" @@ -115,8 +115,8 @@ var ( ) func init() { - file_emissions_v1_events_proto_init() - md_EventScoresSet = File_emissions_v1_events_proto.Messages().ByName("EventScoresSet") + file_emissions_v2_events_proto_init() + md_EventScoresSet = File_emissions_v2_events_proto.Messages().ByName("EventScoresSet") fd_EventScoresSet_actor_type = md_EventScoresSet.Fields().ByName("actor_type") fd_EventScoresSet_topic_id = md_EventScoresSet.Fields().ByName("topic_id") fd_EventScoresSet_block_height = md_EventScoresSet.Fields().ByName("block_height") @@ -133,7 +133,7 @@ func (x *EventScoresSet) ProtoReflect() protoreflect.Message { } func (x *EventScoresSet) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_events_proto_msgTypes[0] + mi := &file_emissions_v2_events_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -234,21 +234,21 @@ func (x *fastReflection_EventScoresSet) Range(f func(protoreflect.FieldDescripto // a repeated field is populated if it is non-empty. func (x *fastReflection_EventScoresSet) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.EventScoresSet.actor_type": + case "emissions.v2.EventScoresSet.actor_type": return x.ActorType != 0 - case "emissions.v1.EventScoresSet.topic_id": + case "emissions.v2.EventScoresSet.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.EventScoresSet.block_height": + case "emissions.v2.EventScoresSet.block_height": return x.BlockHeight != int64(0) - case "emissions.v1.EventScoresSet.addresses": + case "emissions.v2.EventScoresSet.addresses": return len(x.Addresses) != 0 - case "emissions.v1.EventScoresSet.scores": + case "emissions.v2.EventScoresSet.scores": return len(x.Scores) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventScoresSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventScoresSet")) } - panic(fmt.Errorf("message emissions.v1.EventScoresSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventScoresSet does not contain field %s", fd.FullName())) } } @@ -260,21 +260,21 @@ func (x *fastReflection_EventScoresSet) Has(fd protoreflect.FieldDescriptor) boo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventScoresSet) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.EventScoresSet.actor_type": + case "emissions.v2.EventScoresSet.actor_type": x.ActorType = 0 - case "emissions.v1.EventScoresSet.topic_id": + case "emissions.v2.EventScoresSet.topic_id": x.TopicId = uint64(0) - case "emissions.v1.EventScoresSet.block_height": + case "emissions.v2.EventScoresSet.block_height": x.BlockHeight = int64(0) - case "emissions.v1.EventScoresSet.addresses": + case "emissions.v2.EventScoresSet.addresses": x.Addresses = nil - case "emissions.v1.EventScoresSet.scores": + case "emissions.v2.EventScoresSet.scores": x.Scores = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventScoresSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventScoresSet")) } - panic(fmt.Errorf("message emissions.v1.EventScoresSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventScoresSet does not contain field %s", fd.FullName())) } } @@ -286,22 +286,22 @@ func (x *fastReflection_EventScoresSet) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EventScoresSet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.EventScoresSet.actor_type": + case "emissions.v2.EventScoresSet.actor_type": value := x.ActorType return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "emissions.v1.EventScoresSet.topic_id": + case "emissions.v2.EventScoresSet.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.EventScoresSet.block_height": + case "emissions.v2.EventScoresSet.block_height": value := x.BlockHeight return protoreflect.ValueOfInt64(value) - case "emissions.v1.EventScoresSet.addresses": + case "emissions.v2.EventScoresSet.addresses": if len(x.Addresses) == 0 { return protoreflect.ValueOfList(&_EventScoresSet_4_list{}) } listValue := &_EventScoresSet_4_list{list: &x.Addresses} return protoreflect.ValueOfList(listValue) - case "emissions.v1.EventScoresSet.scores": + case "emissions.v2.EventScoresSet.scores": if len(x.Scores) == 0 { return protoreflect.ValueOfList(&_EventScoresSet_5_list{}) } @@ -309,9 +309,9 @@ func (x *fastReflection_EventScoresSet) Get(descriptor protoreflect.FieldDescrip return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventScoresSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventScoresSet")) } - panic(fmt.Errorf("message emissions.v1.EventScoresSet does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.EventScoresSet does not contain field %s", descriptor.FullName())) } } @@ -327,25 +327,25 @@ func (x *fastReflection_EventScoresSet) Get(descriptor protoreflect.FieldDescrip // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventScoresSet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.EventScoresSet.actor_type": + case "emissions.v2.EventScoresSet.actor_type": x.ActorType = (ActorType)(value.Enum()) - case "emissions.v1.EventScoresSet.topic_id": + case "emissions.v2.EventScoresSet.topic_id": x.TopicId = value.Uint() - case "emissions.v1.EventScoresSet.block_height": + case "emissions.v2.EventScoresSet.block_height": x.BlockHeight = value.Int() - case "emissions.v1.EventScoresSet.addresses": + case "emissions.v2.EventScoresSet.addresses": lv := value.List() clv := lv.(*_EventScoresSet_4_list) x.Addresses = *clv.list - case "emissions.v1.EventScoresSet.scores": + case "emissions.v2.EventScoresSet.scores": lv := value.List() clv := lv.(*_EventScoresSet_5_list) x.Scores = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventScoresSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventScoresSet")) } - panic(fmt.Errorf("message emissions.v1.EventScoresSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventScoresSet does not contain field %s", fd.FullName())) } } @@ -361,29 +361,29 @@ func (x *fastReflection_EventScoresSet) Set(fd protoreflect.FieldDescriptor, val // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventScoresSet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.EventScoresSet.addresses": + case "emissions.v2.EventScoresSet.addresses": if x.Addresses == nil { x.Addresses = []string{} } value := &_EventScoresSet_4_list{list: &x.Addresses} return protoreflect.ValueOfList(value) - case "emissions.v1.EventScoresSet.scores": + case "emissions.v2.EventScoresSet.scores": if x.Scores == nil { x.Scores = []string{} } value := &_EventScoresSet_5_list{list: &x.Scores} return protoreflect.ValueOfList(value) - case "emissions.v1.EventScoresSet.actor_type": - panic(fmt.Errorf("field actor_type of message emissions.v1.EventScoresSet is not mutable")) - case "emissions.v1.EventScoresSet.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.EventScoresSet is not mutable")) - case "emissions.v1.EventScoresSet.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.EventScoresSet is not mutable")) + case "emissions.v2.EventScoresSet.actor_type": + panic(fmt.Errorf("field actor_type of message emissions.v2.EventScoresSet is not mutable")) + case "emissions.v2.EventScoresSet.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.EventScoresSet is not mutable")) + case "emissions.v2.EventScoresSet.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.EventScoresSet is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventScoresSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventScoresSet")) } - panic(fmt.Errorf("message emissions.v1.EventScoresSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventScoresSet does not contain field %s", fd.FullName())) } } @@ -392,23 +392,23 @@ func (x *fastReflection_EventScoresSet) Mutable(fd protoreflect.FieldDescriptor) // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EventScoresSet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.EventScoresSet.actor_type": + case "emissions.v2.EventScoresSet.actor_type": return protoreflect.ValueOfEnum(0) - case "emissions.v1.EventScoresSet.topic_id": + case "emissions.v2.EventScoresSet.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.EventScoresSet.block_height": + case "emissions.v2.EventScoresSet.block_height": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.EventScoresSet.addresses": + case "emissions.v2.EventScoresSet.addresses": list := []string{} return protoreflect.ValueOfList(&_EventScoresSet_4_list{list: &list}) - case "emissions.v1.EventScoresSet.scores": + case "emissions.v2.EventScoresSet.scores": list := []string{} return protoreflect.ValueOfList(&_EventScoresSet_5_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventScoresSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventScoresSet")) } - panic(fmt.Errorf("message emissions.v1.EventScoresSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventScoresSet does not contain field %s", fd.FullName())) } } @@ -418,7 +418,7 @@ func (x *fastReflection_EventScoresSet) NewField(fd protoreflect.FieldDescriptor func (x *fastReflection_EventScoresSet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.EventScoresSet", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.EventScoresSet", d.FullName())) } panic("unreachable") } @@ -863,8 +863,8 @@ var ( ) func init() { - file_emissions_v1_events_proto_init() - md_EventRewardsSettled = File_emissions_v1_events_proto.Messages().ByName("EventRewardsSettled") + file_emissions_v2_events_proto_init() + md_EventRewardsSettled = File_emissions_v2_events_proto.Messages().ByName("EventRewardsSettled") fd_EventRewardsSettled_actor_type = md_EventRewardsSettled.Fields().ByName("actor_type") fd_EventRewardsSettled_topic_id = md_EventRewardsSettled.Fields().ByName("topic_id") fd_EventRewardsSettled_block_height = md_EventRewardsSettled.Fields().ByName("block_height") @@ -881,7 +881,7 @@ func (x *EventRewardsSettled) ProtoReflect() protoreflect.Message { } func (x *EventRewardsSettled) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_events_proto_msgTypes[1] + mi := &file_emissions_v2_events_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -982,21 +982,21 @@ func (x *fastReflection_EventRewardsSettled) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_EventRewardsSettled) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.EventRewardsSettled.actor_type": + case "emissions.v2.EventRewardsSettled.actor_type": return x.ActorType != 0 - case "emissions.v1.EventRewardsSettled.topic_id": + case "emissions.v2.EventRewardsSettled.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.EventRewardsSettled.block_height": + case "emissions.v2.EventRewardsSettled.block_height": return x.BlockHeight != int64(0) - case "emissions.v1.EventRewardsSettled.addresses": + case "emissions.v2.EventRewardsSettled.addresses": return len(x.Addresses) != 0 - case "emissions.v1.EventRewardsSettled.rewards": + case "emissions.v2.EventRewardsSettled.rewards": return len(x.Rewards) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventRewardsSettled")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventRewardsSettled")) } - panic(fmt.Errorf("message emissions.v1.EventRewardsSettled does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventRewardsSettled does not contain field %s", fd.FullName())) } } @@ -1008,21 +1008,21 @@ func (x *fastReflection_EventRewardsSettled) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventRewardsSettled) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.EventRewardsSettled.actor_type": + case "emissions.v2.EventRewardsSettled.actor_type": x.ActorType = 0 - case "emissions.v1.EventRewardsSettled.topic_id": + case "emissions.v2.EventRewardsSettled.topic_id": x.TopicId = uint64(0) - case "emissions.v1.EventRewardsSettled.block_height": + case "emissions.v2.EventRewardsSettled.block_height": x.BlockHeight = int64(0) - case "emissions.v1.EventRewardsSettled.addresses": + case "emissions.v2.EventRewardsSettled.addresses": x.Addresses = nil - case "emissions.v1.EventRewardsSettled.rewards": + case "emissions.v2.EventRewardsSettled.rewards": x.Rewards = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventRewardsSettled")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventRewardsSettled")) } - panic(fmt.Errorf("message emissions.v1.EventRewardsSettled does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventRewardsSettled does not contain field %s", fd.FullName())) } } @@ -1034,22 +1034,22 @@ func (x *fastReflection_EventRewardsSettled) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EventRewardsSettled) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.EventRewardsSettled.actor_type": + case "emissions.v2.EventRewardsSettled.actor_type": value := x.ActorType return protoreflect.ValueOfEnum((protoreflect.EnumNumber)(value)) - case "emissions.v1.EventRewardsSettled.topic_id": + case "emissions.v2.EventRewardsSettled.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.EventRewardsSettled.block_height": + case "emissions.v2.EventRewardsSettled.block_height": value := x.BlockHeight return protoreflect.ValueOfInt64(value) - case "emissions.v1.EventRewardsSettled.addresses": + case "emissions.v2.EventRewardsSettled.addresses": if len(x.Addresses) == 0 { return protoreflect.ValueOfList(&_EventRewardsSettled_4_list{}) } listValue := &_EventRewardsSettled_4_list{list: &x.Addresses} return protoreflect.ValueOfList(listValue) - case "emissions.v1.EventRewardsSettled.rewards": + case "emissions.v2.EventRewardsSettled.rewards": if len(x.Rewards) == 0 { return protoreflect.ValueOfList(&_EventRewardsSettled_5_list{}) } @@ -1057,9 +1057,9 @@ func (x *fastReflection_EventRewardsSettled) Get(descriptor protoreflect.FieldDe return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventRewardsSettled")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventRewardsSettled")) } - panic(fmt.Errorf("message emissions.v1.EventRewardsSettled does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.EventRewardsSettled does not contain field %s", descriptor.FullName())) } } @@ -1075,25 +1075,25 @@ func (x *fastReflection_EventRewardsSettled) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventRewardsSettled) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.EventRewardsSettled.actor_type": + case "emissions.v2.EventRewardsSettled.actor_type": x.ActorType = (ActorType)(value.Enum()) - case "emissions.v1.EventRewardsSettled.topic_id": + case "emissions.v2.EventRewardsSettled.topic_id": x.TopicId = value.Uint() - case "emissions.v1.EventRewardsSettled.block_height": + case "emissions.v2.EventRewardsSettled.block_height": x.BlockHeight = value.Int() - case "emissions.v1.EventRewardsSettled.addresses": + case "emissions.v2.EventRewardsSettled.addresses": lv := value.List() clv := lv.(*_EventRewardsSettled_4_list) x.Addresses = *clv.list - case "emissions.v1.EventRewardsSettled.rewards": + case "emissions.v2.EventRewardsSettled.rewards": lv := value.List() clv := lv.(*_EventRewardsSettled_5_list) x.Rewards = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventRewardsSettled")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventRewardsSettled")) } - panic(fmt.Errorf("message emissions.v1.EventRewardsSettled does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventRewardsSettled does not contain field %s", fd.FullName())) } } @@ -1109,29 +1109,29 @@ func (x *fastReflection_EventRewardsSettled) Set(fd protoreflect.FieldDescriptor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventRewardsSettled) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.EventRewardsSettled.addresses": + case "emissions.v2.EventRewardsSettled.addresses": if x.Addresses == nil { x.Addresses = []string{} } value := &_EventRewardsSettled_4_list{list: &x.Addresses} return protoreflect.ValueOfList(value) - case "emissions.v1.EventRewardsSettled.rewards": + case "emissions.v2.EventRewardsSettled.rewards": if x.Rewards == nil { x.Rewards = []string{} } value := &_EventRewardsSettled_5_list{list: &x.Rewards} return protoreflect.ValueOfList(value) - case "emissions.v1.EventRewardsSettled.actor_type": - panic(fmt.Errorf("field actor_type of message emissions.v1.EventRewardsSettled is not mutable")) - case "emissions.v1.EventRewardsSettled.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.EventRewardsSettled is not mutable")) - case "emissions.v1.EventRewardsSettled.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.EventRewardsSettled is not mutable")) + case "emissions.v2.EventRewardsSettled.actor_type": + panic(fmt.Errorf("field actor_type of message emissions.v2.EventRewardsSettled is not mutable")) + case "emissions.v2.EventRewardsSettled.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.EventRewardsSettled is not mutable")) + case "emissions.v2.EventRewardsSettled.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.EventRewardsSettled is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventRewardsSettled")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventRewardsSettled")) } - panic(fmt.Errorf("message emissions.v1.EventRewardsSettled does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventRewardsSettled does not contain field %s", fd.FullName())) } } @@ -1140,23 +1140,23 @@ func (x *fastReflection_EventRewardsSettled) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EventRewardsSettled) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.EventRewardsSettled.actor_type": + case "emissions.v2.EventRewardsSettled.actor_type": return protoreflect.ValueOfEnum(0) - case "emissions.v1.EventRewardsSettled.topic_id": + case "emissions.v2.EventRewardsSettled.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.EventRewardsSettled.block_height": + case "emissions.v2.EventRewardsSettled.block_height": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.EventRewardsSettled.addresses": + case "emissions.v2.EventRewardsSettled.addresses": list := []string{} return protoreflect.ValueOfList(&_EventRewardsSettled_4_list{list: &list}) - case "emissions.v1.EventRewardsSettled.rewards": + case "emissions.v2.EventRewardsSettled.rewards": list := []string{} return protoreflect.ValueOfList(&_EventRewardsSettled_5_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventRewardsSettled")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventRewardsSettled")) } - panic(fmt.Errorf("message emissions.v1.EventRewardsSettled does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventRewardsSettled does not contain field %s", fd.FullName())) } } @@ -1166,7 +1166,7 @@ func (x *fastReflection_EventRewardsSettled) NewField(fd protoreflect.FieldDescr func (x *fastReflection_EventRewardsSettled) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.EventRewardsSettled", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.EventRewardsSettled", d.FullName())) } panic("unreachable") } @@ -1517,8 +1517,8 @@ var ( ) func init() { - file_emissions_v1_events_proto_init() - md_EventNetworkLossSet = File_emissions_v1_events_proto.Messages().ByName("EventNetworkLossSet") + file_emissions_v2_events_proto_init() + md_EventNetworkLossSet = File_emissions_v2_events_proto.Messages().ByName("EventNetworkLossSet") fd_EventNetworkLossSet_topic_id = md_EventNetworkLossSet.Fields().ByName("topic_id") fd_EventNetworkLossSet_block_height = md_EventNetworkLossSet.Fields().ByName("block_height") fd_EventNetworkLossSet_value_bundle = md_EventNetworkLossSet.Fields().ByName("value_bundle") @@ -1533,7 +1533,7 @@ func (x *EventNetworkLossSet) ProtoReflect() protoreflect.Message { } func (x *EventNetworkLossSet) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_events_proto_msgTypes[2] + mi := &file_emissions_v2_events_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1622,17 +1622,17 @@ func (x *fastReflection_EventNetworkLossSet) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_EventNetworkLossSet) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.EventNetworkLossSet.topic_id": + case "emissions.v2.EventNetworkLossSet.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.EventNetworkLossSet.block_height": + case "emissions.v2.EventNetworkLossSet.block_height": return x.BlockHeight != int64(0) - case "emissions.v1.EventNetworkLossSet.value_bundle": + case "emissions.v2.EventNetworkLossSet.value_bundle": return x.ValueBundle != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventNetworkLossSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventNetworkLossSet")) } - panic(fmt.Errorf("message emissions.v1.EventNetworkLossSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventNetworkLossSet does not contain field %s", fd.FullName())) } } @@ -1644,17 +1644,17 @@ func (x *fastReflection_EventNetworkLossSet) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventNetworkLossSet) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.EventNetworkLossSet.topic_id": + case "emissions.v2.EventNetworkLossSet.topic_id": x.TopicId = uint64(0) - case "emissions.v1.EventNetworkLossSet.block_height": + case "emissions.v2.EventNetworkLossSet.block_height": x.BlockHeight = int64(0) - case "emissions.v1.EventNetworkLossSet.value_bundle": + case "emissions.v2.EventNetworkLossSet.value_bundle": x.ValueBundle = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventNetworkLossSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventNetworkLossSet")) } - panic(fmt.Errorf("message emissions.v1.EventNetworkLossSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventNetworkLossSet does not contain field %s", fd.FullName())) } } @@ -1666,20 +1666,20 @@ func (x *fastReflection_EventNetworkLossSet) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_EventNetworkLossSet) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.EventNetworkLossSet.topic_id": + case "emissions.v2.EventNetworkLossSet.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.EventNetworkLossSet.block_height": + case "emissions.v2.EventNetworkLossSet.block_height": value := x.BlockHeight return protoreflect.ValueOfInt64(value) - case "emissions.v1.EventNetworkLossSet.value_bundle": + case "emissions.v2.EventNetworkLossSet.value_bundle": value := x.ValueBundle return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventNetworkLossSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventNetworkLossSet")) } - panic(fmt.Errorf("message emissions.v1.EventNetworkLossSet does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.EventNetworkLossSet does not contain field %s", descriptor.FullName())) } } @@ -1695,17 +1695,17 @@ func (x *fastReflection_EventNetworkLossSet) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventNetworkLossSet) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.EventNetworkLossSet.topic_id": + case "emissions.v2.EventNetworkLossSet.topic_id": x.TopicId = value.Uint() - case "emissions.v1.EventNetworkLossSet.block_height": + case "emissions.v2.EventNetworkLossSet.block_height": x.BlockHeight = value.Int() - case "emissions.v1.EventNetworkLossSet.value_bundle": + case "emissions.v2.EventNetworkLossSet.value_bundle": x.ValueBundle = value.Message().Interface().(*ValueBundle) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventNetworkLossSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventNetworkLossSet")) } - panic(fmt.Errorf("message emissions.v1.EventNetworkLossSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventNetworkLossSet does not contain field %s", fd.FullName())) } } @@ -1721,20 +1721,20 @@ func (x *fastReflection_EventNetworkLossSet) Set(fd protoreflect.FieldDescriptor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_EventNetworkLossSet) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.EventNetworkLossSet.value_bundle": + case "emissions.v2.EventNetworkLossSet.value_bundle": if x.ValueBundle == nil { x.ValueBundle = new(ValueBundle) } return protoreflect.ValueOfMessage(x.ValueBundle.ProtoReflect()) - case "emissions.v1.EventNetworkLossSet.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.EventNetworkLossSet is not mutable")) - case "emissions.v1.EventNetworkLossSet.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.EventNetworkLossSet is not mutable")) + case "emissions.v2.EventNetworkLossSet.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.EventNetworkLossSet is not mutable")) + case "emissions.v2.EventNetworkLossSet.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.EventNetworkLossSet is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventNetworkLossSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventNetworkLossSet")) } - panic(fmt.Errorf("message emissions.v1.EventNetworkLossSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventNetworkLossSet does not contain field %s", fd.FullName())) } } @@ -1743,18 +1743,18 @@ func (x *fastReflection_EventNetworkLossSet) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_EventNetworkLossSet) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.EventNetworkLossSet.topic_id": + case "emissions.v2.EventNetworkLossSet.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.EventNetworkLossSet.block_height": + case "emissions.v2.EventNetworkLossSet.block_height": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.EventNetworkLossSet.value_bundle": + case "emissions.v2.EventNetworkLossSet.value_bundle": m := new(ValueBundle) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.EventNetworkLossSet")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.EventNetworkLossSet")) } - panic(fmt.Errorf("message emissions.v1.EventNetworkLossSet does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.EventNetworkLossSet does not contain field %s", fd.FullName())) } } @@ -1764,7 +1764,7 @@ func (x *fastReflection_EventNetworkLossSet) NewField(fd protoreflect.FieldDescr func (x *fastReflection_EventNetworkLossSet) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.EventNetworkLossSet", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.EventNetworkLossSet", d.FullName())) } panic("unreachable") } @@ -2044,7 +2044,7 @@ func (x *fastReflection_EventNetworkLossSet) ProtoMethods() *protoiface.Methods // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: emissions/v1/events.proto +// source: emissions/v2/events.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -2086,11 +2086,11 @@ func (x ActorType) String() string { } func (ActorType) Descriptor() protoreflect.EnumDescriptor { - return file_emissions_v1_events_proto_enumTypes[0].Descriptor() + return file_emissions_v2_events_proto_enumTypes[0].Descriptor() } func (ActorType) Type() protoreflect.EnumType { - return &file_emissions_v1_events_proto_enumTypes[0] + return &file_emissions_v2_events_proto_enumTypes[0] } func (x ActorType) Number() protoreflect.EnumNumber { @@ -2099,7 +2099,7 @@ func (x ActorType) Number() protoreflect.EnumNumber { // Deprecated: Use ActorType.Descriptor instead. func (ActorType) EnumDescriptor() ([]byte, []int) { - return file_emissions_v1_events_proto_rawDescGZIP(), []int{0} + return file_emissions_v2_events_proto_rawDescGZIP(), []int{0} } type EventScoresSet struct { @@ -2107,7 +2107,7 @@ type EventScoresSet struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ActorType ActorType `protobuf:"varint,1,opt,name=actor_type,json=actorType,proto3,enum=emissions.v1.ActorType" json:"actor_type,omitempty"` + ActorType ActorType `protobuf:"varint,1,opt,name=actor_type,json=actorType,proto3,enum=emissions.v2.ActorType" json:"actor_type,omitempty"` TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` BlockHeight int64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` Addresses []string `protobuf:"bytes,4,rep,name=addresses,proto3" json:"addresses,omitempty"` @@ -2117,7 +2117,7 @@ type EventScoresSet struct { func (x *EventScoresSet) Reset() { *x = EventScoresSet{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_events_proto_msgTypes[0] + mi := &file_emissions_v2_events_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2131,7 +2131,7 @@ func (*EventScoresSet) ProtoMessage() {} // Deprecated: Use EventScoresSet.ProtoReflect.Descriptor instead. func (*EventScoresSet) Descriptor() ([]byte, []int) { - return file_emissions_v1_events_proto_rawDescGZIP(), []int{0} + return file_emissions_v2_events_proto_rawDescGZIP(), []int{0} } func (x *EventScoresSet) GetActorType() ActorType { @@ -2174,7 +2174,7 @@ type EventRewardsSettled struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ActorType ActorType `protobuf:"varint,1,opt,name=actor_type,json=actorType,proto3,enum=emissions.v1.ActorType" json:"actor_type,omitempty"` + ActorType ActorType `protobuf:"varint,1,opt,name=actor_type,json=actorType,proto3,enum=emissions.v2.ActorType" json:"actor_type,omitempty"` TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` BlockHeight int64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` Addresses []string `protobuf:"bytes,4,rep,name=addresses,proto3" json:"addresses,omitempty"` @@ -2184,7 +2184,7 @@ type EventRewardsSettled struct { func (x *EventRewardsSettled) Reset() { *x = EventRewardsSettled{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_events_proto_msgTypes[1] + mi := &file_emissions_v2_events_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2198,7 +2198,7 @@ func (*EventRewardsSettled) ProtoMessage() {} // Deprecated: Use EventRewardsSettled.ProtoReflect.Descriptor instead. func (*EventRewardsSettled) Descriptor() ([]byte, []int) { - return file_emissions_v1_events_proto_rawDescGZIP(), []int{1} + return file_emissions_v2_events_proto_rawDescGZIP(), []int{1} } func (x *EventRewardsSettled) GetActorType() ActorType { @@ -2249,7 +2249,7 @@ type EventNetworkLossSet struct { func (x *EventNetworkLossSet) Reset() { *x = EventNetworkLossSet{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_events_proto_msgTypes[2] + mi := &file_emissions_v2_events_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2263,7 +2263,7 @@ func (*EventNetworkLossSet) ProtoMessage() {} // Deprecated: Use EventNetworkLossSet.ProtoReflect.Descriptor instead. func (*EventNetworkLossSet) Descriptor() ([]byte, []int) { - return file_emissions_v1_events_proto_rawDescGZIP(), []int{2} + return file_emissions_v2_events_proto_rawDescGZIP(), []int{2} } func (x *EventNetworkLossSet) GetTopicId() uint64 { @@ -2287,19 +2287,19 @@ func (x *EventNetworkLossSet) GetValueBundle() *ValueBundle { return nil } -var File_emissions_v1_events_proto protoreflect.FileDescriptor +var File_emissions_v2_events_proto protoreflect.FileDescriptor -var file_emissions_v1_events_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x65, +var file_emissions_v2_events_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1a, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, + 0x1a, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf5, 0x01, 0x0a, 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x53, 0x65, 0x74, 0x12, 0x36, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x61, 0x63, 0x74, + 0x32, 0x2e, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, @@ -2314,7 +2314,7 @@ var file_emissions_v1_events_proto_rawDesc = []byte{ 0x72, 0x65, 0x73, 0x22, 0xfc, 0x01, 0x0a, 0x13, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x73, 0x53, 0x65, 0x74, 0x74, 0x6c, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x17, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x17, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x21, @@ -2334,52 +2334,52 @@ var file_emissions_v1_events_proto_rawDesc = []byte{ 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x3c, 0x0a, 0x0c, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, + 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x0b, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2a, 0x35, 0x0a, 0x09, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x46, 0x45, 0x52, 0x45, 0x52, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x4f, 0x52, 0x45, 0x43, 0x41, 0x53, 0x54, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x50, 0x55, 0x54, 0x45, 0x52, 0x10, 0x02, 0x42, 0xc1, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x76, 0x32, 0x42, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x76, 0x32, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_emissions_v1_events_proto_rawDescOnce sync.Once - file_emissions_v1_events_proto_rawDescData = file_emissions_v1_events_proto_rawDesc + file_emissions_v2_events_proto_rawDescOnce sync.Once + file_emissions_v2_events_proto_rawDescData = file_emissions_v2_events_proto_rawDesc ) -func file_emissions_v1_events_proto_rawDescGZIP() []byte { - file_emissions_v1_events_proto_rawDescOnce.Do(func() { - file_emissions_v1_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v1_events_proto_rawDescData) +func file_emissions_v2_events_proto_rawDescGZIP() []byte { + file_emissions_v2_events_proto_rawDescOnce.Do(func() { + file_emissions_v2_events_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_events_proto_rawDescData) }) - return file_emissions_v1_events_proto_rawDescData -} - -var file_emissions_v1_events_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_emissions_v1_events_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_emissions_v1_events_proto_goTypes = []interface{}{ - (ActorType)(0), // 0: emissions.v1.ActorType - (*EventScoresSet)(nil), // 1: emissions.v1.EventScoresSet - (*EventRewardsSettled)(nil), // 2: emissions.v1.EventRewardsSettled - (*EventNetworkLossSet)(nil), // 3: emissions.v1.EventNetworkLossSet - (*ValueBundle)(nil), // 4: emissions.v1.ValueBundle -} -var file_emissions_v1_events_proto_depIdxs = []int32{ - 0, // 0: emissions.v1.EventScoresSet.actor_type:type_name -> emissions.v1.ActorType - 0, // 1: emissions.v1.EventRewardsSettled.actor_type:type_name -> emissions.v1.ActorType - 4, // 2: emissions.v1.EventNetworkLossSet.value_bundle:type_name -> emissions.v1.ValueBundle + return file_emissions_v2_events_proto_rawDescData +} + +var file_emissions_v2_events_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_emissions_v2_events_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_emissions_v2_events_proto_goTypes = []interface{}{ + (ActorType)(0), // 0: emissions.v2.ActorType + (*EventScoresSet)(nil), // 1: emissions.v2.EventScoresSet + (*EventRewardsSettled)(nil), // 2: emissions.v2.EventRewardsSettled + (*EventNetworkLossSet)(nil), // 3: emissions.v2.EventNetworkLossSet + (*ValueBundle)(nil), // 4: emissions.v2.ValueBundle +} +var file_emissions_v2_events_proto_depIdxs = []int32{ + 0, // 0: emissions.v2.EventScoresSet.actor_type:type_name -> emissions.v2.ActorType + 0, // 1: emissions.v2.EventRewardsSettled.actor_type:type_name -> emissions.v2.ActorType + 4, // 2: emissions.v2.EventNetworkLossSet.value_bundle:type_name -> emissions.v2.ValueBundle 3, // [3:3] is the sub-list for method output_type 3, // [3:3] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name @@ -2387,14 +2387,14 @@ var file_emissions_v1_events_proto_depIdxs = []int32{ 0, // [0:3] is the sub-list for field type_name } -func init() { file_emissions_v1_events_proto_init() } -func file_emissions_v1_events_proto_init() { - if File_emissions_v1_events_proto != nil { +func init() { file_emissions_v2_events_proto_init() } +func file_emissions_v2_events_proto_init() { + if File_emissions_v2_events_proto != nil { return } - file_emissions_v1_reputer_proto_init() + file_emissions_v2_reputer_proto_init() if !protoimpl.UnsafeEnabled { - file_emissions_v1_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_events_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventScoresSet); i { case 0: return &v.state @@ -2406,7 +2406,7 @@ func file_emissions_v1_events_proto_init() { return nil } } - file_emissions_v1_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_events_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventRewardsSettled); i { case 0: return &v.state @@ -2418,7 +2418,7 @@ func file_emissions_v1_events_proto_init() { return nil } } - file_emissions_v1_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_events_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*EventNetworkLossSet); i { case 0: return &v.state @@ -2435,19 +2435,19 @@ func file_emissions_v1_events_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_emissions_v1_events_proto_rawDesc, + RawDescriptor: file_emissions_v2_events_proto_rawDesc, NumEnums: 1, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_emissions_v1_events_proto_goTypes, - DependencyIndexes: file_emissions_v1_events_proto_depIdxs, - EnumInfos: file_emissions_v1_events_proto_enumTypes, - MessageInfos: file_emissions_v1_events_proto_msgTypes, + GoTypes: file_emissions_v2_events_proto_goTypes, + DependencyIndexes: file_emissions_v2_events_proto_depIdxs, + EnumInfos: file_emissions_v2_events_proto_enumTypes, + MessageInfos: file_emissions_v2_events_proto_msgTypes, }.Build() - File_emissions_v1_events_proto = out.File - file_emissions_v1_events_proto_rawDesc = nil - file_emissions_v1_events_proto_goTypes = nil - file_emissions_v1_events_proto_depIdxs = nil + File_emissions_v2_events_proto = out.File + file_emissions_v2_events_proto_rawDesc = nil + file_emissions_v2_events_proto_goTypes = nil + file_emissions_v2_events_proto_depIdxs = nil } diff --git a/x/emissions/api/v2/genesis.pulsar.go b/x/emissions/api/v2/genesis.pulsar.go new file mode 100644 index 000000000..b7b2ad14a --- /dev/null +++ b/x/emissions/api/v2/genesis.pulsar.go @@ -0,0 +1,24987 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package emissionsv2 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var _ protoreflect.List = (*_GenesisState_4_list)(nil) + +type _GenesisState_4_list struct { + list *[]*TopicIdAndTopic +} + +func (x *_GenesisState_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndTopic) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndTopic) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_4_list) AppendMutable() protoreflect.Value { + v := new(TopicIdAndTopic) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_4_list) NewElement() protoreflect.Value { + v := new(TopicIdAndTopic) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_4_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_5_list)(nil) + +type _GenesisState_5_list struct { + list *[]uint64 +} + +func (x *_GenesisState_5_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_5_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfUint64((*x.list)[i]) +} + +func (x *_GenesisState_5_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_5_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_5_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message GenesisState at list field ActiveTopics as it is not of Message kind")) +} + +func (x *_GenesisState_5_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_5_list) NewElement() protoreflect.Value { + v := uint64(0) + return protoreflect.ValueOfUint64(v) +} + +func (x *_GenesisState_5_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_6_list)(nil) + +type _GenesisState_6_list struct { + list *[]uint64 +} + +func (x *_GenesisState_6_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_6_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfUint64((*x.list)[i]) +} + +func (x *_GenesisState_6_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_6_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_6_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message GenesisState at list field RewardableTopics as it is not of Message kind")) +} + +func (x *_GenesisState_6_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_6_list) NewElement() protoreflect.Value { + v := uint64(0) + return protoreflect.ValueOfUint64(v) +} + +func (x *_GenesisState_6_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_7_list)(nil) + +type _GenesisState_7_list struct { + list *[]*TopicAndActorId +} + +func (x *_GenesisState_7_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_7_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_7_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicAndActorId) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_7_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicAndActorId) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_7_list) AppendMutable() protoreflect.Value { + v := new(TopicAndActorId) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_7_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_7_list) NewElement() protoreflect.Value { + v := new(TopicAndActorId) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_7_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_8_list)(nil) + +type _GenesisState_8_list struct { + list *[]*TopicAndActorId +} + +func (x *_GenesisState_8_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_8_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_8_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicAndActorId) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_8_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicAndActorId) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_8_list) AppendMutable() protoreflect.Value { + v := new(TopicAndActorId) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_8_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_8_list) NewElement() protoreflect.Value { + v := new(TopicAndActorId) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_8_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_9_list)(nil) + +type _GenesisState_9_list struct { + list *[]*TopicIdAndBlockHeight +} + +func (x *_GenesisState_9_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_9_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_9_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndBlockHeight) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_9_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndBlockHeight) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_9_list) AppendMutable() protoreflect.Value { + v := new(TopicIdAndBlockHeight) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_9_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_9_list) NewElement() protoreflect.Value { + v := new(TopicIdAndBlockHeight) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_9_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_10_list)(nil) + +type _GenesisState_10_list struct { + list *[]*TopicIdBlockHeightScores +} + +func (x *_GenesisState_10_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_10_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_10_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightScores) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_10_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightScores) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_10_list) AppendMutable() protoreflect.Value { + v := new(TopicIdBlockHeightScores) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_10_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_10_list) NewElement() protoreflect.Value { + v := new(TopicIdBlockHeightScores) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_10_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_11_list)(nil) + +type _GenesisState_11_list struct { + list *[]*TopicIdBlockHeightScores +} + +func (x *_GenesisState_11_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_11_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_11_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightScores) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_11_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightScores) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_11_list) AppendMutable() protoreflect.Value { + v := new(TopicIdBlockHeightScores) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_11_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_11_list) NewElement() protoreflect.Value { + v := new(TopicIdBlockHeightScores) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_11_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_12_list)(nil) + +type _GenesisState_12_list struct { + list *[]*TopicIdBlockHeightScores +} + +func (x *_GenesisState_12_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_12_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_12_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightScores) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_12_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightScores) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_12_list) AppendMutable() protoreflect.Value { + v := new(TopicIdBlockHeightScores) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_12_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_12_list) NewElement() protoreflect.Value { + v := new(TopicIdBlockHeightScores) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_12_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_13_list)(nil) + +type _GenesisState_13_list struct { + list *[]*TopicIdActorIdScore +} + +func (x *_GenesisState_13_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_13_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_13_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdScore) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_13_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdScore) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_13_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdScore) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_13_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_13_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdScore) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_13_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_14_list)(nil) + +type _GenesisState_14_list struct { + list *[]*TopicIdActorIdScore +} + +func (x *_GenesisState_14_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_14_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_14_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdScore) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_14_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdScore) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_14_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdScore) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_14_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_14_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdScore) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_14_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_15_list)(nil) + +type _GenesisState_15_list struct { + list *[]*TopicIdActorIdScore +} + +func (x *_GenesisState_15_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_15_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_15_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdScore) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_15_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdScore) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_15_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdScore) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_15_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_15_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdScore) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_15_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_16_list)(nil) + +type _GenesisState_16_list struct { + list *[]*TopicIdActorIdListeningCoefficient +} + +func (x *_GenesisState_16_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_16_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_16_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdListeningCoefficient) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_16_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdListeningCoefficient) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_16_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdListeningCoefficient) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_16_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_16_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdListeningCoefficient) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_16_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_17_list)(nil) + +type _GenesisState_17_list struct { + list *[]*TopicIdActorIdDec +} + +func (x *_GenesisState_17_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_17_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_17_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdDec) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_17_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdDec) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_17_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdDec) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_17_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_17_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdDec) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_17_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_18_list)(nil) + +type _GenesisState_18_list struct { + list *[]*TopicIdActorIdDec +} + +func (x *_GenesisState_18_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_18_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_18_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdDec) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_18_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdDec) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_18_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdDec) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_18_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_18_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdDec) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_18_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_19_list)(nil) + +type _GenesisState_19_list struct { + list *[]*TopicIdActorIdDec +} + +func (x *_GenesisState_19_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_19_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_19_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdDec) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_19_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdDec) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_19_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdDec) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_19_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_19_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdDec) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_19_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_20_list)(nil) + +type _GenesisState_20_list struct { + list *[]*TopicIdActorIdDec +} + +func (x *_GenesisState_20_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_20_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_20_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdDec) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_20_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdDec) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_20_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdDec) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_20_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_20_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdDec) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_20_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_22_list)(nil) + +type _GenesisState_22_list struct { + list *[]*TopicIdAndInt +} + +func (x *_GenesisState_22_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_22_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_22_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndInt) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_22_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndInt) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_22_list) AppendMutable() protoreflect.Value { + v := new(TopicIdAndInt) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_22_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_22_list) NewElement() protoreflect.Value { + v := new(TopicIdAndInt) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_22_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_23_list)(nil) + +type _GenesisState_23_list struct { + list *[]*TopicIdActorIdInt +} + +func (x *_GenesisState_23_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_23_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_23_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdInt) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_23_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdInt) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_23_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdInt) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_23_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_23_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdInt) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_23_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_24_list)(nil) + +type _GenesisState_24_list struct { + list *[]*TopicIdActorIdInt +} + +func (x *_GenesisState_24_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_24_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_24_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdInt) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_24_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdInt) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_24_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdInt) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_24_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_24_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdInt) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_24_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_25_list)(nil) + +type _GenesisState_25_list struct { + list *[]*TopicIdDelegatorReputerDelegatorInfo +} + +func (x *_GenesisState_25_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_25_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_25_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdDelegatorReputerDelegatorInfo) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_25_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdDelegatorReputerDelegatorInfo) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_25_list) AppendMutable() protoreflect.Value { + v := new(TopicIdDelegatorReputerDelegatorInfo) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_25_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_25_list) NewElement() protoreflect.Value { + v := new(TopicIdDelegatorReputerDelegatorInfo) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_25_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_26_list)(nil) + +type _GenesisState_26_list struct { + list *[]*TopicIdActorIdInt +} + +func (x *_GenesisState_26_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_26_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_26_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdInt) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_26_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdInt) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_26_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdInt) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_26_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_26_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdInt) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_26_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_27_list)(nil) + +type _GenesisState_27_list struct { + list *[]*TopicIdActorIdDec +} + +func (x *_GenesisState_27_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_27_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_27_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdDec) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_27_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdDec) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_27_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdDec) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_27_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_27_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdDec) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_27_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_28_list)(nil) + +type _GenesisState_28_list struct { + list *[]*BlockHeightTopicIdReputerStakeRemovalInfo +} + +func (x *_GenesisState_28_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_28_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_28_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*BlockHeightTopicIdReputerStakeRemovalInfo) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_28_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*BlockHeightTopicIdReputerStakeRemovalInfo) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_28_list) AppendMutable() protoreflect.Value { + v := new(BlockHeightTopicIdReputerStakeRemovalInfo) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_28_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_28_list) NewElement() protoreflect.Value { + v := new(BlockHeightTopicIdReputerStakeRemovalInfo) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_28_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_29_list)(nil) + +type _GenesisState_29_list struct { + list *[]*ActorIdTopicIdBlockHeight +} + +func (x *_GenesisState_29_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_29_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_29_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ActorIdTopicIdBlockHeight) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_29_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ActorIdTopicIdBlockHeight) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_29_list) AppendMutable() protoreflect.Value { + v := new(ActorIdTopicIdBlockHeight) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_29_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_29_list) NewElement() protoreflect.Value { + v := new(ActorIdTopicIdBlockHeight) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_29_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_30_list)(nil) + +type _GenesisState_30_list struct { + list *[]*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo +} + +func (x *_GenesisState_30_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_30_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_30_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_30_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_30_list) AppendMutable() protoreflect.Value { + v := new(BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_30_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_30_list) NewElement() protoreflect.Value { + v := new(BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_30_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_31_list)(nil) + +type _GenesisState_31_list struct { + list *[]*DelegatorReputerTopicIdBlockHeight +} + +func (x *_GenesisState_31_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_31_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_31_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*DelegatorReputerTopicIdBlockHeight) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_31_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*DelegatorReputerTopicIdBlockHeight) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_31_list) AppendMutable() protoreflect.Value { + v := new(DelegatorReputerTopicIdBlockHeight) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_31_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_31_list) NewElement() protoreflect.Value { + v := new(DelegatorReputerTopicIdBlockHeight) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_31_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_32_list)(nil) + +type _GenesisState_32_list struct { + list *[]*TopicIdActorIdInference +} + +func (x *_GenesisState_32_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_32_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_32_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdInference) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_32_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdInference) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_32_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdInference) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_32_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_32_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdInference) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_32_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_33_list)(nil) + +type _GenesisState_33_list struct { + list *[]*TopicIdActorIdForecast +} + +func (x *_GenesisState_33_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_33_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_33_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdForecast) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_33_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdForecast) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_33_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdForecast) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_33_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_33_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdForecast) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_33_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_34_list)(nil) + +type _GenesisState_34_list struct { + list *[]*LibP2PKeyAndOffchainNode +} + +func (x *_GenesisState_34_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_34_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_34_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*LibP2PKeyAndOffchainNode) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_34_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*LibP2PKeyAndOffchainNode) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_34_list) AppendMutable() protoreflect.Value { + v := new(LibP2PKeyAndOffchainNode) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_34_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_34_list) NewElement() protoreflect.Value { + v := new(LibP2PKeyAndOffchainNode) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_34_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_35_list)(nil) + +type _GenesisState_35_list struct { + list *[]*LibP2PKeyAndOffchainNode +} + +func (x *_GenesisState_35_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_35_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_35_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*LibP2PKeyAndOffchainNode) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_35_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*LibP2PKeyAndOffchainNode) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_35_list) AppendMutable() protoreflect.Value { + v := new(LibP2PKeyAndOffchainNode) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_35_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_35_list) NewElement() protoreflect.Value { + v := new(LibP2PKeyAndOffchainNode) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_35_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_36_list)(nil) + +type _GenesisState_36_list struct { + list *[]*TopicIdAndInt +} + +func (x *_GenesisState_36_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_36_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_36_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndInt) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_36_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndInt) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_36_list) AppendMutable() protoreflect.Value { + v := new(TopicIdAndInt) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_36_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_36_list) NewElement() protoreflect.Value { + v := new(TopicIdAndInt) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_36_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_37_list)(nil) + +type _GenesisState_37_list struct { + list *[]*TopicIdAndDec +} + +func (x *_GenesisState_37_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_37_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_37_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndDec) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_37_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndDec) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_37_list) AppendMutable() protoreflect.Value { + v := new(TopicIdAndDec) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_37_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_37_list) NewElement() protoreflect.Value { + v := new(TopicIdAndDec) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_37_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_38_list)(nil) + +type _GenesisState_38_list struct { + list *[]*TopicIdBlockHeightInferences +} + +func (x *_GenesisState_38_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_38_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_38_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightInferences) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_38_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightInferences) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_38_list) AppendMutable() protoreflect.Value { + v := new(TopicIdBlockHeightInferences) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_38_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_38_list) NewElement() protoreflect.Value { + v := new(TopicIdBlockHeightInferences) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_38_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_39_list)(nil) + +type _GenesisState_39_list struct { + list *[]*TopicIdBlockHeightForecasts +} + +func (x *_GenesisState_39_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_39_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_39_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightForecasts) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_39_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightForecasts) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_39_list) AppendMutable() protoreflect.Value { + v := new(TopicIdBlockHeightForecasts) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_39_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_39_list) NewElement() protoreflect.Value { + v := new(TopicIdBlockHeightForecasts) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_39_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_40_list)(nil) + +type _GenesisState_40_list struct { + list *[]*TopicIdBlockHeightReputerValueBundles +} + +func (x *_GenesisState_40_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_40_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_40_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightReputerValueBundles) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_40_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightReputerValueBundles) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_40_list) AppendMutable() protoreflect.Value { + v := new(TopicIdBlockHeightReputerValueBundles) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_40_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_40_list) NewElement() protoreflect.Value { + v := new(TopicIdBlockHeightReputerValueBundles) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_40_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_41_list)(nil) + +type _GenesisState_41_list struct { + list *[]*TopicIdBlockHeightValueBundles +} + +func (x *_GenesisState_41_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_41_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_41_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightValueBundles) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_41_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdBlockHeightValueBundles) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_41_list) AppendMutable() protoreflect.Value { + v := new(TopicIdBlockHeightValueBundles) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_41_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_41_list) NewElement() protoreflect.Value { + v := new(TopicIdBlockHeightValueBundles) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_41_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_43_list)(nil) + +type _GenesisState_43_list struct { + list *[]*TopicIdAndNonces +} + +func (x *_GenesisState_43_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_43_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_43_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndNonces) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_43_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndNonces) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_43_list) AppendMutable() protoreflect.Value { + v := new(TopicIdAndNonces) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_43_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_43_list) NewElement() protoreflect.Value { + v := new(TopicIdAndNonces) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_43_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_44_list)(nil) + +type _GenesisState_44_list struct { + list *[]*TopicIdAndReputerRequestNonces +} + +func (x *_GenesisState_44_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_44_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_44_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndReputerRequestNonces) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_44_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdAndReputerRequestNonces) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_44_list) AppendMutable() protoreflect.Value { + v := new(TopicIdAndReputerRequestNonces) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_44_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_44_list) NewElement() protoreflect.Value { + v := new(TopicIdAndReputerRequestNonces) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_44_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_45_list)(nil) + +type _GenesisState_45_list struct { + list *[]*TopicIdActorIdTimeStampedValue +} + +func (x *_GenesisState_45_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_45_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_45_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdTimeStampedValue) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_45_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdTimeStampedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_45_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdTimeStampedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_45_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_45_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdTimeStampedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_45_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_46_list)(nil) + +type _GenesisState_46_list struct { + list *[]*TopicIdActorIdTimeStampedValue +} + +func (x *_GenesisState_46_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_46_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_46_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdTimeStampedValue) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_46_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdTimeStampedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_46_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdTimeStampedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_46_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_46_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdTimeStampedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_46_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_47_list)(nil) + +type _GenesisState_47_list struct { + list *[]*TopicIdActorIdActorIdTimeStampedValue +} + +func (x *_GenesisState_47_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_47_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_47_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdActorIdTimeStampedValue) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_47_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdActorIdTimeStampedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_47_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdActorIdTimeStampedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_47_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_47_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdActorIdTimeStampedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_47_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_48_list)(nil) + +type _GenesisState_48_list struct { + list *[]*TopicIdActorIdTimeStampedValue +} + +func (x *_GenesisState_48_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_48_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_48_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdTimeStampedValue) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_48_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdTimeStampedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_48_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdTimeStampedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_48_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_48_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdTimeStampedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_48_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_49_list)(nil) + +type _GenesisState_49_list struct { + list *[]*TopicIdActorIdActorIdTimeStampedValue +} + +func (x *_GenesisState_49_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_49_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_49_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdActorIdTimeStampedValue) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_49_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdActorIdTimeStampedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_49_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdActorIdTimeStampedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_49_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_49_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdActorIdTimeStampedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_49_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_50_list)(nil) + +type _GenesisState_50_list struct { + list *[]*TopicIdActorIdActorIdTimeStampedValue +} + +func (x *_GenesisState_50_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_50_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_50_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdActorIdTimeStampedValue) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_50_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdActorIdTimeStampedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_50_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdActorIdTimeStampedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_50_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_50_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdActorIdTimeStampedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_50_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_51_list)(nil) + +type _GenesisState_51_list struct { + list *[]*TopicIdActorIdActorIdTimeStampedValue +} + +func (x *_GenesisState_51_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_51_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_51_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdActorIdTimeStampedValue) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_51_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdActorIdTimeStampedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_51_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdActorIdTimeStampedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_51_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_51_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdActorIdTimeStampedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_51_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_52_list)(nil) + +type _GenesisState_52_list struct { + list *[]*TopicIdActorIdActorIdTimeStampedValue +} + +func (x *_GenesisState_52_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_52_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_52_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdActorIdTimeStampedValue) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_52_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdActorIdActorIdTimeStampedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_52_list) AppendMutable() protoreflect.Value { + v := new(TopicIdActorIdActorIdTimeStampedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_52_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_52_list) NewElement() protoreflect.Value { + v := new(TopicIdActorIdActorIdTimeStampedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_52_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_2_list)(nil) + +type _GenesisState_2_list struct { + list *[]string +} + +func (x *_GenesisState_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message GenesisState at list field CoreTeamAddresses as it is not of Message kind")) +} + +func (x *_GenesisState_2_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_2_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_GenesisState_2_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_53_list)(nil) + +type _GenesisState_53_list struct { + list *[]*TopicIdTimestampedActorNonce +} + +func (x *_GenesisState_53_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_53_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_53_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdTimestampedActorNonce) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_53_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdTimestampedActorNonce) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_53_list) AppendMutable() protoreflect.Value { + v := new(TopicIdTimestampedActorNonce) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_53_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_53_list) NewElement() protoreflect.Value { + v := new(TopicIdTimestampedActorNonce) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_53_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_GenesisState_54_list)(nil) + +type _GenesisState_54_list struct { + list *[]*TopicIdTimestampedActorNonce +} + +func (x *_GenesisState_54_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_GenesisState_54_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_GenesisState_54_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdTimestampedActorNonce) + (*x.list)[i] = concreteValue +} + +func (x *_GenesisState_54_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*TopicIdTimestampedActorNonce) + *x.list = append(*x.list, concreteValue) +} + +func (x *_GenesisState_54_list) AppendMutable() protoreflect.Value { + v := new(TopicIdTimestampedActorNonce) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_54_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_GenesisState_54_list) NewElement() protoreflect.Value { + v := new(TopicIdTimestampedActorNonce) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_GenesisState_54_list) IsValid() bool { + return x.list != nil +} + +var ( + md_GenesisState protoreflect.MessageDescriptor + fd_GenesisState_params protoreflect.FieldDescriptor + fd_GenesisState_nextTopicId protoreflect.FieldDescriptor + fd_GenesisState_topics protoreflect.FieldDescriptor + fd_GenesisState_activeTopics protoreflect.FieldDescriptor + fd_GenesisState_rewardableTopics protoreflect.FieldDescriptor + fd_GenesisState_topicWorkers protoreflect.FieldDescriptor + fd_GenesisState_topicReputers protoreflect.FieldDescriptor + fd_GenesisState_topicRewardNonce protoreflect.FieldDescriptor + fd_GenesisState_infererScoresByBlock protoreflect.FieldDescriptor + fd_GenesisState_forecasterScoresByBlock protoreflect.FieldDescriptor + fd_GenesisState_reputerScoresByBlock protoreflect.FieldDescriptor + fd_GenesisState_latestInfererScoresByWorker protoreflect.FieldDescriptor + fd_GenesisState_latestForecasterScoresByWorker protoreflect.FieldDescriptor + fd_GenesisState_latestReputerScoresByReputer protoreflect.FieldDescriptor + fd_GenesisState_reputerListeningCoefficient protoreflect.FieldDescriptor + fd_GenesisState_previousReputerRewardFraction protoreflect.FieldDescriptor + fd_GenesisState_previousInferenceRewardFraction protoreflect.FieldDescriptor + fd_GenesisState_previousForecastRewardFraction protoreflect.FieldDescriptor + fd_GenesisState_previousForecasterScoreRatio protoreflect.FieldDescriptor + fd_GenesisState_totalStake protoreflect.FieldDescriptor + fd_GenesisState_topicStake protoreflect.FieldDescriptor + fd_GenesisState_stakeReputerAuthority protoreflect.FieldDescriptor + fd_GenesisState_stakeSumFromDelegator protoreflect.FieldDescriptor + fd_GenesisState_delegatedStakes protoreflect.FieldDescriptor + fd_GenesisState_stakeFromDelegatorsUponReputer protoreflect.FieldDescriptor + fd_GenesisState_delegateRewardPerShare protoreflect.FieldDescriptor + fd_GenesisState_stakeRemovalsByBlock protoreflect.FieldDescriptor + fd_GenesisState_stakeRemovalsByActor protoreflect.FieldDescriptor + fd_GenesisState_delegateStakeRemovalsByBlock protoreflect.FieldDescriptor + fd_GenesisState_delegateStakeRemovalsByActor protoreflect.FieldDescriptor + fd_GenesisState_inferences protoreflect.FieldDescriptor + fd_GenesisState_forecasts protoreflect.FieldDescriptor + fd_GenesisState_workers protoreflect.FieldDescriptor + fd_GenesisState_reputers protoreflect.FieldDescriptor + fd_GenesisState_topicFeeRevenue protoreflect.FieldDescriptor + fd_GenesisState_previousTopicWeight protoreflect.FieldDescriptor + fd_GenesisState_allInferences protoreflect.FieldDescriptor + fd_GenesisState_allForecasts protoreflect.FieldDescriptor + fd_GenesisState_allLossBundles protoreflect.FieldDescriptor + fd_GenesisState_networkLossBundles protoreflect.FieldDescriptor + fd_GenesisState_previousPercentageRewardToStakedReputers protoreflect.FieldDescriptor + fd_GenesisState_unfulfilledWorkerNonces protoreflect.FieldDescriptor + fd_GenesisState_unfulfilledReputerNonces protoreflect.FieldDescriptor + fd_GenesisState_latestInfererNetworkRegrets protoreflect.FieldDescriptor + fd_GenesisState_latestForecasterNetworkRegrets protoreflect.FieldDescriptor + fd_GenesisState_latestOneInForecasterNetworkRegrets protoreflect.FieldDescriptor + fd_GenesisState_latestNaiveInfererNetworkRegrets protoreflect.FieldDescriptor + fd_GenesisState_latestOneOutInfererInfererNetworkRegrets protoreflect.FieldDescriptor + fd_GenesisState_latestOneOutInfererForecasterNetworkRegrets protoreflect.FieldDescriptor + fd_GenesisState_latestOneOutForecasterInfererNetworkRegrets protoreflect.FieldDescriptor + fd_GenesisState_latestOneOutForecasterForecasterNetworkRegrets protoreflect.FieldDescriptor + fd_GenesisState_core_team_addresses protoreflect.FieldDescriptor + fd_GenesisState_topicLastWorkerCommit protoreflect.FieldDescriptor + fd_GenesisState_topicLastReputerCommit protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_GenesisState = File_emissions_v2_genesis_proto.Messages().ByName("GenesisState") + fd_GenesisState_params = md_GenesisState.Fields().ByName("params") + fd_GenesisState_nextTopicId = md_GenesisState.Fields().ByName("nextTopicId") + fd_GenesisState_topics = md_GenesisState.Fields().ByName("topics") + fd_GenesisState_activeTopics = md_GenesisState.Fields().ByName("activeTopics") + fd_GenesisState_rewardableTopics = md_GenesisState.Fields().ByName("rewardableTopics") + fd_GenesisState_topicWorkers = md_GenesisState.Fields().ByName("topicWorkers") + fd_GenesisState_topicReputers = md_GenesisState.Fields().ByName("topicReputers") + fd_GenesisState_topicRewardNonce = md_GenesisState.Fields().ByName("topicRewardNonce") + fd_GenesisState_infererScoresByBlock = md_GenesisState.Fields().ByName("infererScoresByBlock") + fd_GenesisState_forecasterScoresByBlock = md_GenesisState.Fields().ByName("forecasterScoresByBlock") + fd_GenesisState_reputerScoresByBlock = md_GenesisState.Fields().ByName("reputerScoresByBlock") + fd_GenesisState_latestInfererScoresByWorker = md_GenesisState.Fields().ByName("latestInfererScoresByWorker") + fd_GenesisState_latestForecasterScoresByWorker = md_GenesisState.Fields().ByName("latestForecasterScoresByWorker") + fd_GenesisState_latestReputerScoresByReputer = md_GenesisState.Fields().ByName("latestReputerScoresByReputer") + fd_GenesisState_reputerListeningCoefficient = md_GenesisState.Fields().ByName("reputerListeningCoefficient") + fd_GenesisState_previousReputerRewardFraction = md_GenesisState.Fields().ByName("previousReputerRewardFraction") + fd_GenesisState_previousInferenceRewardFraction = md_GenesisState.Fields().ByName("previousInferenceRewardFraction") + fd_GenesisState_previousForecastRewardFraction = md_GenesisState.Fields().ByName("previousForecastRewardFraction") + fd_GenesisState_previousForecasterScoreRatio = md_GenesisState.Fields().ByName("previousForecasterScoreRatio") + fd_GenesisState_totalStake = md_GenesisState.Fields().ByName("totalStake") + fd_GenesisState_topicStake = md_GenesisState.Fields().ByName("topicStake") + fd_GenesisState_stakeReputerAuthority = md_GenesisState.Fields().ByName("stakeReputerAuthority") + fd_GenesisState_stakeSumFromDelegator = md_GenesisState.Fields().ByName("stakeSumFromDelegator") + fd_GenesisState_delegatedStakes = md_GenesisState.Fields().ByName("delegatedStakes") + fd_GenesisState_stakeFromDelegatorsUponReputer = md_GenesisState.Fields().ByName("stakeFromDelegatorsUponReputer") + fd_GenesisState_delegateRewardPerShare = md_GenesisState.Fields().ByName("delegateRewardPerShare") + fd_GenesisState_stakeRemovalsByBlock = md_GenesisState.Fields().ByName("stakeRemovalsByBlock") + fd_GenesisState_stakeRemovalsByActor = md_GenesisState.Fields().ByName("stakeRemovalsByActor") + fd_GenesisState_delegateStakeRemovalsByBlock = md_GenesisState.Fields().ByName("delegateStakeRemovalsByBlock") + fd_GenesisState_delegateStakeRemovalsByActor = md_GenesisState.Fields().ByName("delegateStakeRemovalsByActor") + fd_GenesisState_inferences = md_GenesisState.Fields().ByName("inferences") + fd_GenesisState_forecasts = md_GenesisState.Fields().ByName("forecasts") + fd_GenesisState_workers = md_GenesisState.Fields().ByName("workers") + fd_GenesisState_reputers = md_GenesisState.Fields().ByName("reputers") + fd_GenesisState_topicFeeRevenue = md_GenesisState.Fields().ByName("topicFeeRevenue") + fd_GenesisState_previousTopicWeight = md_GenesisState.Fields().ByName("previousTopicWeight") + fd_GenesisState_allInferences = md_GenesisState.Fields().ByName("allInferences") + fd_GenesisState_allForecasts = md_GenesisState.Fields().ByName("allForecasts") + fd_GenesisState_allLossBundles = md_GenesisState.Fields().ByName("allLossBundles") + fd_GenesisState_networkLossBundles = md_GenesisState.Fields().ByName("networkLossBundles") + fd_GenesisState_previousPercentageRewardToStakedReputers = md_GenesisState.Fields().ByName("previousPercentageRewardToStakedReputers") + fd_GenesisState_unfulfilledWorkerNonces = md_GenesisState.Fields().ByName("unfulfilledWorkerNonces") + fd_GenesisState_unfulfilledReputerNonces = md_GenesisState.Fields().ByName("unfulfilledReputerNonces") + fd_GenesisState_latestInfererNetworkRegrets = md_GenesisState.Fields().ByName("latestInfererNetworkRegrets") + fd_GenesisState_latestForecasterNetworkRegrets = md_GenesisState.Fields().ByName("latestForecasterNetworkRegrets") + fd_GenesisState_latestOneInForecasterNetworkRegrets = md_GenesisState.Fields().ByName("latestOneInForecasterNetworkRegrets") + fd_GenesisState_latestNaiveInfererNetworkRegrets = md_GenesisState.Fields().ByName("latestNaiveInfererNetworkRegrets") + fd_GenesisState_latestOneOutInfererInfererNetworkRegrets = md_GenesisState.Fields().ByName("latestOneOutInfererInfererNetworkRegrets") + fd_GenesisState_latestOneOutInfererForecasterNetworkRegrets = md_GenesisState.Fields().ByName("latestOneOutInfererForecasterNetworkRegrets") + fd_GenesisState_latestOneOutForecasterInfererNetworkRegrets = md_GenesisState.Fields().ByName("latestOneOutForecasterInfererNetworkRegrets") + fd_GenesisState_latestOneOutForecasterForecasterNetworkRegrets = md_GenesisState.Fields().ByName("latestOneOutForecasterForecasterNetworkRegrets") + fd_GenesisState_core_team_addresses = md_GenesisState.Fields().ByName("core_team_addresses") + fd_GenesisState_topicLastWorkerCommit = md_GenesisState.Fields().ByName("topicLastWorkerCommit") + fd_GenesisState_topicLastReputerCommit = md_GenesisState.Fields().ByName("topicLastReputerCommit") +} + +var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) + +type fastReflection_GenesisState GenesisState + +func (x *GenesisState) ProtoReflect() protoreflect.Message { + return (*fastReflection_GenesisState)(x) +} + +func (x *GenesisState) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType +var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} + +type fastReflection_GenesisState_messageType struct{} + +func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { + return (*fastReflection_GenesisState)(nil) +} +func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} +func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { + return md_GenesisState +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_GenesisState) Type() protoreflect.MessageType { + return _fastReflection_GenesisState_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_GenesisState) New() protoreflect.Message { + return new(fastReflection_GenesisState) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { + return (*GenesisState)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_GenesisState_params, value) { + return + } + } + if x.NextTopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.NextTopicId) + if !f(fd_GenesisState_nextTopicId, value) { + return + } + } + if len(x.Topics) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_4_list{list: &x.Topics}) + if !f(fd_GenesisState_topics, value) { + return + } + } + if len(x.ActiveTopics) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_5_list{list: &x.ActiveTopics}) + if !f(fd_GenesisState_activeTopics, value) { + return + } + } + if len(x.RewardableTopics) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_6_list{list: &x.RewardableTopics}) + if !f(fd_GenesisState_rewardableTopics, value) { + return + } + } + if len(x.TopicWorkers) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_7_list{list: &x.TopicWorkers}) + if !f(fd_GenesisState_topicWorkers, value) { + return + } + } + if len(x.TopicReputers) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_8_list{list: &x.TopicReputers}) + if !f(fd_GenesisState_topicReputers, value) { + return + } + } + if len(x.TopicRewardNonce) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_9_list{list: &x.TopicRewardNonce}) + if !f(fd_GenesisState_topicRewardNonce, value) { + return + } + } + if len(x.InfererScoresByBlock) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_10_list{list: &x.InfererScoresByBlock}) + if !f(fd_GenesisState_infererScoresByBlock, value) { + return + } + } + if len(x.ForecasterScoresByBlock) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_11_list{list: &x.ForecasterScoresByBlock}) + if !f(fd_GenesisState_forecasterScoresByBlock, value) { + return + } + } + if len(x.ReputerScoresByBlock) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_12_list{list: &x.ReputerScoresByBlock}) + if !f(fd_GenesisState_reputerScoresByBlock, value) { + return + } + } + if len(x.LatestInfererScoresByWorker) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_13_list{list: &x.LatestInfererScoresByWorker}) + if !f(fd_GenesisState_latestInfererScoresByWorker, value) { + return + } + } + if len(x.LatestForecasterScoresByWorker) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_14_list{list: &x.LatestForecasterScoresByWorker}) + if !f(fd_GenesisState_latestForecasterScoresByWorker, value) { + return + } + } + if len(x.LatestReputerScoresByReputer) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_15_list{list: &x.LatestReputerScoresByReputer}) + if !f(fd_GenesisState_latestReputerScoresByReputer, value) { + return + } + } + if len(x.ReputerListeningCoefficient) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_16_list{list: &x.ReputerListeningCoefficient}) + if !f(fd_GenesisState_reputerListeningCoefficient, value) { + return + } + } + if len(x.PreviousReputerRewardFraction) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_17_list{list: &x.PreviousReputerRewardFraction}) + if !f(fd_GenesisState_previousReputerRewardFraction, value) { + return + } + } + if len(x.PreviousInferenceRewardFraction) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_18_list{list: &x.PreviousInferenceRewardFraction}) + if !f(fd_GenesisState_previousInferenceRewardFraction, value) { + return + } + } + if len(x.PreviousForecastRewardFraction) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_19_list{list: &x.PreviousForecastRewardFraction}) + if !f(fd_GenesisState_previousForecastRewardFraction, value) { + return + } + } + if len(x.PreviousForecasterScoreRatio) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_20_list{list: &x.PreviousForecasterScoreRatio}) + if !f(fd_GenesisState_previousForecasterScoreRatio, value) { + return + } + } + if x.TotalStake != "" { + value := protoreflect.ValueOfString(x.TotalStake) + if !f(fd_GenesisState_totalStake, value) { + return + } + } + if len(x.TopicStake) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_22_list{list: &x.TopicStake}) + if !f(fd_GenesisState_topicStake, value) { + return + } + } + if len(x.StakeReputerAuthority) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_23_list{list: &x.StakeReputerAuthority}) + if !f(fd_GenesisState_stakeReputerAuthority, value) { + return + } + } + if len(x.StakeSumFromDelegator) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_24_list{list: &x.StakeSumFromDelegator}) + if !f(fd_GenesisState_stakeSumFromDelegator, value) { + return + } + } + if len(x.DelegatedStakes) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_25_list{list: &x.DelegatedStakes}) + if !f(fd_GenesisState_delegatedStakes, value) { + return + } + } + if len(x.StakeFromDelegatorsUponReputer) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_26_list{list: &x.StakeFromDelegatorsUponReputer}) + if !f(fd_GenesisState_stakeFromDelegatorsUponReputer, value) { + return + } + } + if len(x.DelegateRewardPerShare) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_27_list{list: &x.DelegateRewardPerShare}) + if !f(fd_GenesisState_delegateRewardPerShare, value) { + return + } + } + if len(x.StakeRemovalsByBlock) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_28_list{list: &x.StakeRemovalsByBlock}) + if !f(fd_GenesisState_stakeRemovalsByBlock, value) { + return + } + } + if len(x.StakeRemovalsByActor) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_29_list{list: &x.StakeRemovalsByActor}) + if !f(fd_GenesisState_stakeRemovalsByActor, value) { + return + } + } + if len(x.DelegateStakeRemovalsByBlock) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_30_list{list: &x.DelegateStakeRemovalsByBlock}) + if !f(fd_GenesisState_delegateStakeRemovalsByBlock, value) { + return + } + } + if len(x.DelegateStakeRemovalsByActor) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_31_list{list: &x.DelegateStakeRemovalsByActor}) + if !f(fd_GenesisState_delegateStakeRemovalsByActor, value) { + return + } + } + if len(x.Inferences) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_32_list{list: &x.Inferences}) + if !f(fd_GenesisState_inferences, value) { + return + } + } + if len(x.Forecasts) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_33_list{list: &x.Forecasts}) + if !f(fd_GenesisState_forecasts, value) { + return + } + } + if len(x.Workers) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_34_list{list: &x.Workers}) + if !f(fd_GenesisState_workers, value) { + return + } + } + if len(x.Reputers) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_35_list{list: &x.Reputers}) + if !f(fd_GenesisState_reputers, value) { + return + } + } + if len(x.TopicFeeRevenue) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_36_list{list: &x.TopicFeeRevenue}) + if !f(fd_GenesisState_topicFeeRevenue, value) { + return + } + } + if len(x.PreviousTopicWeight) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_37_list{list: &x.PreviousTopicWeight}) + if !f(fd_GenesisState_previousTopicWeight, value) { + return + } + } + if len(x.AllInferences) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_38_list{list: &x.AllInferences}) + if !f(fd_GenesisState_allInferences, value) { + return + } + } + if len(x.AllForecasts) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_39_list{list: &x.AllForecasts}) + if !f(fd_GenesisState_allForecasts, value) { + return + } + } + if len(x.AllLossBundles) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_40_list{list: &x.AllLossBundles}) + if !f(fd_GenesisState_allLossBundles, value) { + return + } + } + if len(x.NetworkLossBundles) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_41_list{list: &x.NetworkLossBundles}) + if !f(fd_GenesisState_networkLossBundles, value) { + return + } + } + if x.PreviousPercentageRewardToStakedReputers != "" { + value := protoreflect.ValueOfString(x.PreviousPercentageRewardToStakedReputers) + if !f(fd_GenesisState_previousPercentageRewardToStakedReputers, value) { + return + } + } + if len(x.UnfulfilledWorkerNonces) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_43_list{list: &x.UnfulfilledWorkerNonces}) + if !f(fd_GenesisState_unfulfilledWorkerNonces, value) { + return + } + } + if len(x.UnfulfilledReputerNonces) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_44_list{list: &x.UnfulfilledReputerNonces}) + if !f(fd_GenesisState_unfulfilledReputerNonces, value) { + return + } + } + if len(x.LatestInfererNetworkRegrets) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_45_list{list: &x.LatestInfererNetworkRegrets}) + if !f(fd_GenesisState_latestInfererNetworkRegrets, value) { + return + } + } + if len(x.LatestForecasterNetworkRegrets) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_46_list{list: &x.LatestForecasterNetworkRegrets}) + if !f(fd_GenesisState_latestForecasterNetworkRegrets, value) { + return + } + } + if len(x.LatestOneInForecasterNetworkRegrets) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_47_list{list: &x.LatestOneInForecasterNetworkRegrets}) + if !f(fd_GenesisState_latestOneInForecasterNetworkRegrets, value) { + return + } + } + if len(x.LatestNaiveInfererNetworkRegrets) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_48_list{list: &x.LatestNaiveInfererNetworkRegrets}) + if !f(fd_GenesisState_latestNaiveInfererNetworkRegrets, value) { + return + } + } + if len(x.LatestOneOutInfererInfererNetworkRegrets) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_49_list{list: &x.LatestOneOutInfererInfererNetworkRegrets}) + if !f(fd_GenesisState_latestOneOutInfererInfererNetworkRegrets, value) { + return + } + } + if len(x.LatestOneOutInfererForecasterNetworkRegrets) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_50_list{list: &x.LatestOneOutInfererForecasterNetworkRegrets}) + if !f(fd_GenesisState_latestOneOutInfererForecasterNetworkRegrets, value) { + return + } + } + if len(x.LatestOneOutForecasterInfererNetworkRegrets) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_51_list{list: &x.LatestOneOutForecasterInfererNetworkRegrets}) + if !f(fd_GenesisState_latestOneOutForecasterInfererNetworkRegrets, value) { + return + } + } + if len(x.LatestOneOutForecasterForecasterNetworkRegrets) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_52_list{list: &x.LatestOneOutForecasterForecasterNetworkRegrets}) + if !f(fd_GenesisState_latestOneOutForecasterForecasterNetworkRegrets, value) { + return + } + } + if len(x.CoreTeamAddresses) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.CoreTeamAddresses}) + if !f(fd_GenesisState_core_team_addresses, value) { + return + } + } + if len(x.TopicLastWorkerCommit) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_53_list{list: &x.TopicLastWorkerCommit}) + if !f(fd_GenesisState_topicLastWorkerCommit, value) { + return + } + } + if len(x.TopicLastReputerCommit) != 0 { + value := protoreflect.ValueOfList(&_GenesisState_54_list{list: &x.TopicLastReputerCommit}) + if !f(fd_GenesisState_topicLastReputerCommit, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.GenesisState.params": + return x.Params != nil + case "emissions.v2.GenesisState.nextTopicId": + return x.NextTopicId != uint64(0) + case "emissions.v2.GenesisState.topics": + return len(x.Topics) != 0 + case "emissions.v2.GenesisState.activeTopics": + return len(x.ActiveTopics) != 0 + case "emissions.v2.GenesisState.rewardableTopics": + return len(x.RewardableTopics) != 0 + case "emissions.v2.GenesisState.topicWorkers": + return len(x.TopicWorkers) != 0 + case "emissions.v2.GenesisState.topicReputers": + return len(x.TopicReputers) != 0 + case "emissions.v2.GenesisState.topicRewardNonce": + return len(x.TopicRewardNonce) != 0 + case "emissions.v2.GenesisState.infererScoresByBlock": + return len(x.InfererScoresByBlock) != 0 + case "emissions.v2.GenesisState.forecasterScoresByBlock": + return len(x.ForecasterScoresByBlock) != 0 + case "emissions.v2.GenesisState.reputerScoresByBlock": + return len(x.ReputerScoresByBlock) != 0 + case "emissions.v2.GenesisState.latestInfererScoresByWorker": + return len(x.LatestInfererScoresByWorker) != 0 + case "emissions.v2.GenesisState.latestForecasterScoresByWorker": + return len(x.LatestForecasterScoresByWorker) != 0 + case "emissions.v2.GenesisState.latestReputerScoresByReputer": + return len(x.LatestReputerScoresByReputer) != 0 + case "emissions.v2.GenesisState.reputerListeningCoefficient": + return len(x.ReputerListeningCoefficient) != 0 + case "emissions.v2.GenesisState.previousReputerRewardFraction": + return len(x.PreviousReputerRewardFraction) != 0 + case "emissions.v2.GenesisState.previousInferenceRewardFraction": + return len(x.PreviousInferenceRewardFraction) != 0 + case "emissions.v2.GenesisState.previousForecastRewardFraction": + return len(x.PreviousForecastRewardFraction) != 0 + case "emissions.v2.GenesisState.previousForecasterScoreRatio": + return len(x.PreviousForecasterScoreRatio) != 0 + case "emissions.v2.GenesisState.totalStake": + return x.TotalStake != "" + case "emissions.v2.GenesisState.topicStake": + return len(x.TopicStake) != 0 + case "emissions.v2.GenesisState.stakeReputerAuthority": + return len(x.StakeReputerAuthority) != 0 + case "emissions.v2.GenesisState.stakeSumFromDelegator": + return len(x.StakeSumFromDelegator) != 0 + case "emissions.v2.GenesisState.delegatedStakes": + return len(x.DelegatedStakes) != 0 + case "emissions.v2.GenesisState.stakeFromDelegatorsUponReputer": + return len(x.StakeFromDelegatorsUponReputer) != 0 + case "emissions.v2.GenesisState.delegateRewardPerShare": + return len(x.DelegateRewardPerShare) != 0 + case "emissions.v2.GenesisState.stakeRemovalsByBlock": + return len(x.StakeRemovalsByBlock) != 0 + case "emissions.v2.GenesisState.stakeRemovalsByActor": + return len(x.StakeRemovalsByActor) != 0 + case "emissions.v2.GenesisState.delegateStakeRemovalsByBlock": + return len(x.DelegateStakeRemovalsByBlock) != 0 + case "emissions.v2.GenesisState.delegateStakeRemovalsByActor": + return len(x.DelegateStakeRemovalsByActor) != 0 + case "emissions.v2.GenesisState.inferences": + return len(x.Inferences) != 0 + case "emissions.v2.GenesisState.forecasts": + return len(x.Forecasts) != 0 + case "emissions.v2.GenesisState.workers": + return len(x.Workers) != 0 + case "emissions.v2.GenesisState.reputers": + return len(x.Reputers) != 0 + case "emissions.v2.GenesisState.topicFeeRevenue": + return len(x.TopicFeeRevenue) != 0 + case "emissions.v2.GenesisState.previousTopicWeight": + return len(x.PreviousTopicWeight) != 0 + case "emissions.v2.GenesisState.allInferences": + return len(x.AllInferences) != 0 + case "emissions.v2.GenesisState.allForecasts": + return len(x.AllForecasts) != 0 + case "emissions.v2.GenesisState.allLossBundles": + return len(x.AllLossBundles) != 0 + case "emissions.v2.GenesisState.networkLossBundles": + return len(x.NetworkLossBundles) != 0 + case "emissions.v2.GenesisState.previousPercentageRewardToStakedReputers": + return x.PreviousPercentageRewardToStakedReputers != "" + case "emissions.v2.GenesisState.unfulfilledWorkerNonces": + return len(x.UnfulfilledWorkerNonces) != 0 + case "emissions.v2.GenesisState.unfulfilledReputerNonces": + return len(x.UnfulfilledReputerNonces) != 0 + case "emissions.v2.GenesisState.latestInfererNetworkRegrets": + return len(x.LatestInfererNetworkRegrets) != 0 + case "emissions.v2.GenesisState.latestForecasterNetworkRegrets": + return len(x.LatestForecasterNetworkRegrets) != 0 + case "emissions.v2.GenesisState.latestOneInForecasterNetworkRegrets": + return len(x.LatestOneInForecasterNetworkRegrets) != 0 + case "emissions.v2.GenesisState.latestNaiveInfererNetworkRegrets": + return len(x.LatestNaiveInfererNetworkRegrets) != 0 + case "emissions.v2.GenesisState.latestOneOutInfererInfererNetworkRegrets": + return len(x.LatestOneOutInfererInfererNetworkRegrets) != 0 + case "emissions.v2.GenesisState.latestOneOutInfererForecasterNetworkRegrets": + return len(x.LatestOneOutInfererForecasterNetworkRegrets) != 0 + case "emissions.v2.GenesisState.latestOneOutForecasterInfererNetworkRegrets": + return len(x.LatestOneOutForecasterInfererNetworkRegrets) != 0 + case "emissions.v2.GenesisState.latestOneOutForecasterForecasterNetworkRegrets": + return len(x.LatestOneOutForecasterForecasterNetworkRegrets) != 0 + case "emissions.v2.GenesisState.core_team_addresses": + return len(x.CoreTeamAddresses) != 0 + case "emissions.v2.GenesisState.topicLastWorkerCommit": + return len(x.TopicLastWorkerCommit) != 0 + case "emissions.v2.GenesisState.topicLastReputerCommit": + return len(x.TopicLastReputerCommit) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.GenesisState")) + } + panic(fmt.Errorf("message emissions.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.GenesisState.params": + x.Params = nil + case "emissions.v2.GenesisState.nextTopicId": + x.NextTopicId = uint64(0) + case "emissions.v2.GenesisState.topics": + x.Topics = nil + case "emissions.v2.GenesisState.activeTopics": + x.ActiveTopics = nil + case "emissions.v2.GenesisState.rewardableTopics": + x.RewardableTopics = nil + case "emissions.v2.GenesisState.topicWorkers": + x.TopicWorkers = nil + case "emissions.v2.GenesisState.topicReputers": + x.TopicReputers = nil + case "emissions.v2.GenesisState.topicRewardNonce": + x.TopicRewardNonce = nil + case "emissions.v2.GenesisState.infererScoresByBlock": + x.InfererScoresByBlock = nil + case "emissions.v2.GenesisState.forecasterScoresByBlock": + x.ForecasterScoresByBlock = nil + case "emissions.v2.GenesisState.reputerScoresByBlock": + x.ReputerScoresByBlock = nil + case "emissions.v2.GenesisState.latestInfererScoresByWorker": + x.LatestInfererScoresByWorker = nil + case "emissions.v2.GenesisState.latestForecasterScoresByWorker": + x.LatestForecasterScoresByWorker = nil + case "emissions.v2.GenesisState.latestReputerScoresByReputer": + x.LatestReputerScoresByReputer = nil + case "emissions.v2.GenesisState.reputerListeningCoefficient": + x.ReputerListeningCoefficient = nil + case "emissions.v2.GenesisState.previousReputerRewardFraction": + x.PreviousReputerRewardFraction = nil + case "emissions.v2.GenesisState.previousInferenceRewardFraction": + x.PreviousInferenceRewardFraction = nil + case "emissions.v2.GenesisState.previousForecastRewardFraction": + x.PreviousForecastRewardFraction = nil + case "emissions.v2.GenesisState.previousForecasterScoreRatio": + x.PreviousForecasterScoreRatio = nil + case "emissions.v2.GenesisState.totalStake": + x.TotalStake = "" + case "emissions.v2.GenesisState.topicStake": + x.TopicStake = nil + case "emissions.v2.GenesisState.stakeReputerAuthority": + x.StakeReputerAuthority = nil + case "emissions.v2.GenesisState.stakeSumFromDelegator": + x.StakeSumFromDelegator = nil + case "emissions.v2.GenesisState.delegatedStakes": + x.DelegatedStakes = nil + case "emissions.v2.GenesisState.stakeFromDelegatorsUponReputer": + x.StakeFromDelegatorsUponReputer = nil + case "emissions.v2.GenesisState.delegateRewardPerShare": + x.DelegateRewardPerShare = nil + case "emissions.v2.GenesisState.stakeRemovalsByBlock": + x.StakeRemovalsByBlock = nil + case "emissions.v2.GenesisState.stakeRemovalsByActor": + x.StakeRemovalsByActor = nil + case "emissions.v2.GenesisState.delegateStakeRemovalsByBlock": + x.DelegateStakeRemovalsByBlock = nil + case "emissions.v2.GenesisState.delegateStakeRemovalsByActor": + x.DelegateStakeRemovalsByActor = nil + case "emissions.v2.GenesisState.inferences": + x.Inferences = nil + case "emissions.v2.GenesisState.forecasts": + x.Forecasts = nil + case "emissions.v2.GenesisState.workers": + x.Workers = nil + case "emissions.v2.GenesisState.reputers": + x.Reputers = nil + case "emissions.v2.GenesisState.topicFeeRevenue": + x.TopicFeeRevenue = nil + case "emissions.v2.GenesisState.previousTopicWeight": + x.PreviousTopicWeight = nil + case "emissions.v2.GenesisState.allInferences": + x.AllInferences = nil + case "emissions.v2.GenesisState.allForecasts": + x.AllForecasts = nil + case "emissions.v2.GenesisState.allLossBundles": + x.AllLossBundles = nil + case "emissions.v2.GenesisState.networkLossBundles": + x.NetworkLossBundles = nil + case "emissions.v2.GenesisState.previousPercentageRewardToStakedReputers": + x.PreviousPercentageRewardToStakedReputers = "" + case "emissions.v2.GenesisState.unfulfilledWorkerNonces": + x.UnfulfilledWorkerNonces = nil + case "emissions.v2.GenesisState.unfulfilledReputerNonces": + x.UnfulfilledReputerNonces = nil + case "emissions.v2.GenesisState.latestInfererNetworkRegrets": + x.LatestInfererNetworkRegrets = nil + case "emissions.v2.GenesisState.latestForecasterNetworkRegrets": + x.LatestForecasterNetworkRegrets = nil + case "emissions.v2.GenesisState.latestOneInForecasterNetworkRegrets": + x.LatestOneInForecasterNetworkRegrets = nil + case "emissions.v2.GenesisState.latestNaiveInfererNetworkRegrets": + x.LatestNaiveInfererNetworkRegrets = nil + case "emissions.v2.GenesisState.latestOneOutInfererInfererNetworkRegrets": + x.LatestOneOutInfererInfererNetworkRegrets = nil + case "emissions.v2.GenesisState.latestOneOutInfererForecasterNetworkRegrets": + x.LatestOneOutInfererForecasterNetworkRegrets = nil + case "emissions.v2.GenesisState.latestOneOutForecasterInfererNetworkRegrets": + x.LatestOneOutForecasterInfererNetworkRegrets = nil + case "emissions.v2.GenesisState.latestOneOutForecasterForecasterNetworkRegrets": + x.LatestOneOutForecasterForecasterNetworkRegrets = nil + case "emissions.v2.GenesisState.core_team_addresses": + x.CoreTeamAddresses = nil + case "emissions.v2.GenesisState.topicLastWorkerCommit": + x.TopicLastWorkerCommit = nil + case "emissions.v2.GenesisState.topicLastReputerCommit": + x.TopicLastReputerCommit = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.GenesisState")) + } + panic(fmt.Errorf("message emissions.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.GenesisState.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.GenesisState.nextTopicId": + value := x.NextTopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.GenesisState.topics": + if len(x.Topics) == 0 { + return protoreflect.ValueOfList(&_GenesisState_4_list{}) + } + listValue := &_GenesisState_4_list{list: &x.Topics} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.activeTopics": + if len(x.ActiveTopics) == 0 { + return protoreflect.ValueOfList(&_GenesisState_5_list{}) + } + listValue := &_GenesisState_5_list{list: &x.ActiveTopics} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.rewardableTopics": + if len(x.RewardableTopics) == 0 { + return protoreflect.ValueOfList(&_GenesisState_6_list{}) + } + listValue := &_GenesisState_6_list{list: &x.RewardableTopics} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.topicWorkers": + if len(x.TopicWorkers) == 0 { + return protoreflect.ValueOfList(&_GenesisState_7_list{}) + } + listValue := &_GenesisState_7_list{list: &x.TopicWorkers} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.topicReputers": + if len(x.TopicReputers) == 0 { + return protoreflect.ValueOfList(&_GenesisState_8_list{}) + } + listValue := &_GenesisState_8_list{list: &x.TopicReputers} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.topicRewardNonce": + if len(x.TopicRewardNonce) == 0 { + return protoreflect.ValueOfList(&_GenesisState_9_list{}) + } + listValue := &_GenesisState_9_list{list: &x.TopicRewardNonce} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.infererScoresByBlock": + if len(x.InfererScoresByBlock) == 0 { + return protoreflect.ValueOfList(&_GenesisState_10_list{}) + } + listValue := &_GenesisState_10_list{list: &x.InfererScoresByBlock} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.forecasterScoresByBlock": + if len(x.ForecasterScoresByBlock) == 0 { + return protoreflect.ValueOfList(&_GenesisState_11_list{}) + } + listValue := &_GenesisState_11_list{list: &x.ForecasterScoresByBlock} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.reputerScoresByBlock": + if len(x.ReputerScoresByBlock) == 0 { + return protoreflect.ValueOfList(&_GenesisState_12_list{}) + } + listValue := &_GenesisState_12_list{list: &x.ReputerScoresByBlock} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.latestInfererScoresByWorker": + if len(x.LatestInfererScoresByWorker) == 0 { + return protoreflect.ValueOfList(&_GenesisState_13_list{}) + } + listValue := &_GenesisState_13_list{list: &x.LatestInfererScoresByWorker} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.latestForecasterScoresByWorker": + if len(x.LatestForecasterScoresByWorker) == 0 { + return protoreflect.ValueOfList(&_GenesisState_14_list{}) + } + listValue := &_GenesisState_14_list{list: &x.LatestForecasterScoresByWorker} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.latestReputerScoresByReputer": + if len(x.LatestReputerScoresByReputer) == 0 { + return protoreflect.ValueOfList(&_GenesisState_15_list{}) + } + listValue := &_GenesisState_15_list{list: &x.LatestReputerScoresByReputer} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.reputerListeningCoefficient": + if len(x.ReputerListeningCoefficient) == 0 { + return protoreflect.ValueOfList(&_GenesisState_16_list{}) + } + listValue := &_GenesisState_16_list{list: &x.ReputerListeningCoefficient} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.previousReputerRewardFraction": + if len(x.PreviousReputerRewardFraction) == 0 { + return protoreflect.ValueOfList(&_GenesisState_17_list{}) + } + listValue := &_GenesisState_17_list{list: &x.PreviousReputerRewardFraction} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.previousInferenceRewardFraction": + if len(x.PreviousInferenceRewardFraction) == 0 { + return protoreflect.ValueOfList(&_GenesisState_18_list{}) + } + listValue := &_GenesisState_18_list{list: &x.PreviousInferenceRewardFraction} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.previousForecastRewardFraction": + if len(x.PreviousForecastRewardFraction) == 0 { + return protoreflect.ValueOfList(&_GenesisState_19_list{}) + } + listValue := &_GenesisState_19_list{list: &x.PreviousForecastRewardFraction} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.previousForecasterScoreRatio": + if len(x.PreviousForecasterScoreRatio) == 0 { + return protoreflect.ValueOfList(&_GenesisState_20_list{}) + } + listValue := &_GenesisState_20_list{list: &x.PreviousForecasterScoreRatio} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.totalStake": + value := x.TotalStake + return protoreflect.ValueOfString(value) + case "emissions.v2.GenesisState.topicStake": + if len(x.TopicStake) == 0 { + return protoreflect.ValueOfList(&_GenesisState_22_list{}) + } + listValue := &_GenesisState_22_list{list: &x.TopicStake} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.stakeReputerAuthority": + if len(x.StakeReputerAuthority) == 0 { + return protoreflect.ValueOfList(&_GenesisState_23_list{}) + } + listValue := &_GenesisState_23_list{list: &x.StakeReputerAuthority} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.stakeSumFromDelegator": + if len(x.StakeSumFromDelegator) == 0 { + return protoreflect.ValueOfList(&_GenesisState_24_list{}) + } + listValue := &_GenesisState_24_list{list: &x.StakeSumFromDelegator} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.delegatedStakes": + if len(x.DelegatedStakes) == 0 { + return protoreflect.ValueOfList(&_GenesisState_25_list{}) + } + listValue := &_GenesisState_25_list{list: &x.DelegatedStakes} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.stakeFromDelegatorsUponReputer": + if len(x.StakeFromDelegatorsUponReputer) == 0 { + return protoreflect.ValueOfList(&_GenesisState_26_list{}) + } + listValue := &_GenesisState_26_list{list: &x.StakeFromDelegatorsUponReputer} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.delegateRewardPerShare": + if len(x.DelegateRewardPerShare) == 0 { + return protoreflect.ValueOfList(&_GenesisState_27_list{}) + } + listValue := &_GenesisState_27_list{list: &x.DelegateRewardPerShare} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.stakeRemovalsByBlock": + if len(x.StakeRemovalsByBlock) == 0 { + return protoreflect.ValueOfList(&_GenesisState_28_list{}) + } + listValue := &_GenesisState_28_list{list: &x.StakeRemovalsByBlock} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.stakeRemovalsByActor": + if len(x.StakeRemovalsByActor) == 0 { + return protoreflect.ValueOfList(&_GenesisState_29_list{}) + } + listValue := &_GenesisState_29_list{list: &x.StakeRemovalsByActor} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.delegateStakeRemovalsByBlock": + if len(x.DelegateStakeRemovalsByBlock) == 0 { + return protoreflect.ValueOfList(&_GenesisState_30_list{}) + } + listValue := &_GenesisState_30_list{list: &x.DelegateStakeRemovalsByBlock} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.delegateStakeRemovalsByActor": + if len(x.DelegateStakeRemovalsByActor) == 0 { + return protoreflect.ValueOfList(&_GenesisState_31_list{}) + } + listValue := &_GenesisState_31_list{list: &x.DelegateStakeRemovalsByActor} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.inferences": + if len(x.Inferences) == 0 { + return protoreflect.ValueOfList(&_GenesisState_32_list{}) + } + listValue := &_GenesisState_32_list{list: &x.Inferences} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.forecasts": + if len(x.Forecasts) == 0 { + return protoreflect.ValueOfList(&_GenesisState_33_list{}) + } + listValue := &_GenesisState_33_list{list: &x.Forecasts} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.workers": + if len(x.Workers) == 0 { + return protoreflect.ValueOfList(&_GenesisState_34_list{}) + } + listValue := &_GenesisState_34_list{list: &x.Workers} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.reputers": + if len(x.Reputers) == 0 { + return protoreflect.ValueOfList(&_GenesisState_35_list{}) + } + listValue := &_GenesisState_35_list{list: &x.Reputers} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.topicFeeRevenue": + if len(x.TopicFeeRevenue) == 0 { + return protoreflect.ValueOfList(&_GenesisState_36_list{}) + } + listValue := &_GenesisState_36_list{list: &x.TopicFeeRevenue} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.previousTopicWeight": + if len(x.PreviousTopicWeight) == 0 { + return protoreflect.ValueOfList(&_GenesisState_37_list{}) + } + listValue := &_GenesisState_37_list{list: &x.PreviousTopicWeight} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.allInferences": + if len(x.AllInferences) == 0 { + return protoreflect.ValueOfList(&_GenesisState_38_list{}) + } + listValue := &_GenesisState_38_list{list: &x.AllInferences} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.allForecasts": + if len(x.AllForecasts) == 0 { + return protoreflect.ValueOfList(&_GenesisState_39_list{}) + } + listValue := &_GenesisState_39_list{list: &x.AllForecasts} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.allLossBundles": + if len(x.AllLossBundles) == 0 { + return protoreflect.ValueOfList(&_GenesisState_40_list{}) + } + listValue := &_GenesisState_40_list{list: &x.AllLossBundles} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.networkLossBundles": + if len(x.NetworkLossBundles) == 0 { + return protoreflect.ValueOfList(&_GenesisState_41_list{}) + } + listValue := &_GenesisState_41_list{list: &x.NetworkLossBundles} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.previousPercentageRewardToStakedReputers": + value := x.PreviousPercentageRewardToStakedReputers + return protoreflect.ValueOfString(value) + case "emissions.v2.GenesisState.unfulfilledWorkerNonces": + if len(x.UnfulfilledWorkerNonces) == 0 { + return protoreflect.ValueOfList(&_GenesisState_43_list{}) + } + listValue := &_GenesisState_43_list{list: &x.UnfulfilledWorkerNonces} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.unfulfilledReputerNonces": + if len(x.UnfulfilledReputerNonces) == 0 { + return protoreflect.ValueOfList(&_GenesisState_44_list{}) + } + listValue := &_GenesisState_44_list{list: &x.UnfulfilledReputerNonces} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.latestInfererNetworkRegrets": + if len(x.LatestInfererNetworkRegrets) == 0 { + return protoreflect.ValueOfList(&_GenesisState_45_list{}) + } + listValue := &_GenesisState_45_list{list: &x.LatestInfererNetworkRegrets} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.latestForecasterNetworkRegrets": + if len(x.LatestForecasterNetworkRegrets) == 0 { + return protoreflect.ValueOfList(&_GenesisState_46_list{}) + } + listValue := &_GenesisState_46_list{list: &x.LatestForecasterNetworkRegrets} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.latestOneInForecasterNetworkRegrets": + if len(x.LatestOneInForecasterNetworkRegrets) == 0 { + return protoreflect.ValueOfList(&_GenesisState_47_list{}) + } + listValue := &_GenesisState_47_list{list: &x.LatestOneInForecasterNetworkRegrets} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.latestNaiveInfererNetworkRegrets": + if len(x.LatestNaiveInfererNetworkRegrets) == 0 { + return protoreflect.ValueOfList(&_GenesisState_48_list{}) + } + listValue := &_GenesisState_48_list{list: &x.LatestNaiveInfererNetworkRegrets} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.latestOneOutInfererInfererNetworkRegrets": + if len(x.LatestOneOutInfererInfererNetworkRegrets) == 0 { + return protoreflect.ValueOfList(&_GenesisState_49_list{}) + } + listValue := &_GenesisState_49_list{list: &x.LatestOneOutInfererInfererNetworkRegrets} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.latestOneOutInfererForecasterNetworkRegrets": + if len(x.LatestOneOutInfererForecasterNetworkRegrets) == 0 { + return protoreflect.ValueOfList(&_GenesisState_50_list{}) + } + listValue := &_GenesisState_50_list{list: &x.LatestOneOutInfererForecasterNetworkRegrets} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.latestOneOutForecasterInfererNetworkRegrets": + if len(x.LatestOneOutForecasterInfererNetworkRegrets) == 0 { + return protoreflect.ValueOfList(&_GenesisState_51_list{}) + } + listValue := &_GenesisState_51_list{list: &x.LatestOneOutForecasterInfererNetworkRegrets} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.latestOneOutForecasterForecasterNetworkRegrets": + if len(x.LatestOneOutForecasterForecasterNetworkRegrets) == 0 { + return protoreflect.ValueOfList(&_GenesisState_52_list{}) + } + listValue := &_GenesisState_52_list{list: &x.LatestOneOutForecasterForecasterNetworkRegrets} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.core_team_addresses": + if len(x.CoreTeamAddresses) == 0 { + return protoreflect.ValueOfList(&_GenesisState_2_list{}) + } + listValue := &_GenesisState_2_list{list: &x.CoreTeamAddresses} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.topicLastWorkerCommit": + if len(x.TopicLastWorkerCommit) == 0 { + return protoreflect.ValueOfList(&_GenesisState_53_list{}) + } + listValue := &_GenesisState_53_list{list: &x.TopicLastWorkerCommit} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.GenesisState.topicLastReputerCommit": + if len(x.TopicLastReputerCommit) == 0 { + return protoreflect.ValueOfList(&_GenesisState_54_list{}) + } + listValue := &_GenesisState_54_list{list: &x.TopicLastReputerCommit} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.GenesisState")) + } + panic(fmt.Errorf("message emissions.v2.GenesisState does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.GenesisState.params": + x.Params = value.Message().Interface().(*Params) + case "emissions.v2.GenesisState.nextTopicId": + x.NextTopicId = value.Uint() + case "emissions.v2.GenesisState.topics": + lv := value.List() + clv := lv.(*_GenesisState_4_list) + x.Topics = *clv.list + case "emissions.v2.GenesisState.activeTopics": + lv := value.List() + clv := lv.(*_GenesisState_5_list) + x.ActiveTopics = *clv.list + case "emissions.v2.GenesisState.rewardableTopics": + lv := value.List() + clv := lv.(*_GenesisState_6_list) + x.RewardableTopics = *clv.list + case "emissions.v2.GenesisState.topicWorkers": + lv := value.List() + clv := lv.(*_GenesisState_7_list) + x.TopicWorkers = *clv.list + case "emissions.v2.GenesisState.topicReputers": + lv := value.List() + clv := lv.(*_GenesisState_8_list) + x.TopicReputers = *clv.list + case "emissions.v2.GenesisState.topicRewardNonce": + lv := value.List() + clv := lv.(*_GenesisState_9_list) + x.TopicRewardNonce = *clv.list + case "emissions.v2.GenesisState.infererScoresByBlock": + lv := value.List() + clv := lv.(*_GenesisState_10_list) + x.InfererScoresByBlock = *clv.list + case "emissions.v2.GenesisState.forecasterScoresByBlock": + lv := value.List() + clv := lv.(*_GenesisState_11_list) + x.ForecasterScoresByBlock = *clv.list + case "emissions.v2.GenesisState.reputerScoresByBlock": + lv := value.List() + clv := lv.(*_GenesisState_12_list) + x.ReputerScoresByBlock = *clv.list + case "emissions.v2.GenesisState.latestInfererScoresByWorker": + lv := value.List() + clv := lv.(*_GenesisState_13_list) + x.LatestInfererScoresByWorker = *clv.list + case "emissions.v2.GenesisState.latestForecasterScoresByWorker": + lv := value.List() + clv := lv.(*_GenesisState_14_list) + x.LatestForecasterScoresByWorker = *clv.list + case "emissions.v2.GenesisState.latestReputerScoresByReputer": + lv := value.List() + clv := lv.(*_GenesisState_15_list) + x.LatestReputerScoresByReputer = *clv.list + case "emissions.v2.GenesisState.reputerListeningCoefficient": + lv := value.List() + clv := lv.(*_GenesisState_16_list) + x.ReputerListeningCoefficient = *clv.list + case "emissions.v2.GenesisState.previousReputerRewardFraction": + lv := value.List() + clv := lv.(*_GenesisState_17_list) + x.PreviousReputerRewardFraction = *clv.list + case "emissions.v2.GenesisState.previousInferenceRewardFraction": + lv := value.List() + clv := lv.(*_GenesisState_18_list) + x.PreviousInferenceRewardFraction = *clv.list + case "emissions.v2.GenesisState.previousForecastRewardFraction": + lv := value.List() + clv := lv.(*_GenesisState_19_list) + x.PreviousForecastRewardFraction = *clv.list + case "emissions.v2.GenesisState.previousForecasterScoreRatio": + lv := value.List() + clv := lv.(*_GenesisState_20_list) + x.PreviousForecasterScoreRatio = *clv.list + case "emissions.v2.GenesisState.totalStake": + x.TotalStake = value.Interface().(string) + case "emissions.v2.GenesisState.topicStake": + lv := value.List() + clv := lv.(*_GenesisState_22_list) + x.TopicStake = *clv.list + case "emissions.v2.GenesisState.stakeReputerAuthority": + lv := value.List() + clv := lv.(*_GenesisState_23_list) + x.StakeReputerAuthority = *clv.list + case "emissions.v2.GenesisState.stakeSumFromDelegator": + lv := value.List() + clv := lv.(*_GenesisState_24_list) + x.StakeSumFromDelegator = *clv.list + case "emissions.v2.GenesisState.delegatedStakes": + lv := value.List() + clv := lv.(*_GenesisState_25_list) + x.DelegatedStakes = *clv.list + case "emissions.v2.GenesisState.stakeFromDelegatorsUponReputer": + lv := value.List() + clv := lv.(*_GenesisState_26_list) + x.StakeFromDelegatorsUponReputer = *clv.list + case "emissions.v2.GenesisState.delegateRewardPerShare": + lv := value.List() + clv := lv.(*_GenesisState_27_list) + x.DelegateRewardPerShare = *clv.list + case "emissions.v2.GenesisState.stakeRemovalsByBlock": + lv := value.List() + clv := lv.(*_GenesisState_28_list) + x.StakeRemovalsByBlock = *clv.list + case "emissions.v2.GenesisState.stakeRemovalsByActor": + lv := value.List() + clv := lv.(*_GenesisState_29_list) + x.StakeRemovalsByActor = *clv.list + case "emissions.v2.GenesisState.delegateStakeRemovalsByBlock": + lv := value.List() + clv := lv.(*_GenesisState_30_list) + x.DelegateStakeRemovalsByBlock = *clv.list + case "emissions.v2.GenesisState.delegateStakeRemovalsByActor": + lv := value.List() + clv := lv.(*_GenesisState_31_list) + x.DelegateStakeRemovalsByActor = *clv.list + case "emissions.v2.GenesisState.inferences": + lv := value.List() + clv := lv.(*_GenesisState_32_list) + x.Inferences = *clv.list + case "emissions.v2.GenesisState.forecasts": + lv := value.List() + clv := lv.(*_GenesisState_33_list) + x.Forecasts = *clv.list + case "emissions.v2.GenesisState.workers": + lv := value.List() + clv := lv.(*_GenesisState_34_list) + x.Workers = *clv.list + case "emissions.v2.GenesisState.reputers": + lv := value.List() + clv := lv.(*_GenesisState_35_list) + x.Reputers = *clv.list + case "emissions.v2.GenesisState.topicFeeRevenue": + lv := value.List() + clv := lv.(*_GenesisState_36_list) + x.TopicFeeRevenue = *clv.list + case "emissions.v2.GenesisState.previousTopicWeight": + lv := value.List() + clv := lv.(*_GenesisState_37_list) + x.PreviousTopicWeight = *clv.list + case "emissions.v2.GenesisState.allInferences": + lv := value.List() + clv := lv.(*_GenesisState_38_list) + x.AllInferences = *clv.list + case "emissions.v2.GenesisState.allForecasts": + lv := value.List() + clv := lv.(*_GenesisState_39_list) + x.AllForecasts = *clv.list + case "emissions.v2.GenesisState.allLossBundles": + lv := value.List() + clv := lv.(*_GenesisState_40_list) + x.AllLossBundles = *clv.list + case "emissions.v2.GenesisState.networkLossBundles": + lv := value.List() + clv := lv.(*_GenesisState_41_list) + x.NetworkLossBundles = *clv.list + case "emissions.v2.GenesisState.previousPercentageRewardToStakedReputers": + x.PreviousPercentageRewardToStakedReputers = value.Interface().(string) + case "emissions.v2.GenesisState.unfulfilledWorkerNonces": + lv := value.List() + clv := lv.(*_GenesisState_43_list) + x.UnfulfilledWorkerNonces = *clv.list + case "emissions.v2.GenesisState.unfulfilledReputerNonces": + lv := value.List() + clv := lv.(*_GenesisState_44_list) + x.UnfulfilledReputerNonces = *clv.list + case "emissions.v2.GenesisState.latestInfererNetworkRegrets": + lv := value.List() + clv := lv.(*_GenesisState_45_list) + x.LatestInfererNetworkRegrets = *clv.list + case "emissions.v2.GenesisState.latestForecasterNetworkRegrets": + lv := value.List() + clv := lv.(*_GenesisState_46_list) + x.LatestForecasterNetworkRegrets = *clv.list + case "emissions.v2.GenesisState.latestOneInForecasterNetworkRegrets": + lv := value.List() + clv := lv.(*_GenesisState_47_list) + x.LatestOneInForecasterNetworkRegrets = *clv.list + case "emissions.v2.GenesisState.latestNaiveInfererNetworkRegrets": + lv := value.List() + clv := lv.(*_GenesisState_48_list) + x.LatestNaiveInfererNetworkRegrets = *clv.list + case "emissions.v2.GenesisState.latestOneOutInfererInfererNetworkRegrets": + lv := value.List() + clv := lv.(*_GenesisState_49_list) + x.LatestOneOutInfererInfererNetworkRegrets = *clv.list + case "emissions.v2.GenesisState.latestOneOutInfererForecasterNetworkRegrets": + lv := value.List() + clv := lv.(*_GenesisState_50_list) + x.LatestOneOutInfererForecasterNetworkRegrets = *clv.list + case "emissions.v2.GenesisState.latestOneOutForecasterInfererNetworkRegrets": + lv := value.List() + clv := lv.(*_GenesisState_51_list) + x.LatestOneOutForecasterInfererNetworkRegrets = *clv.list + case "emissions.v2.GenesisState.latestOneOutForecasterForecasterNetworkRegrets": + lv := value.List() + clv := lv.(*_GenesisState_52_list) + x.LatestOneOutForecasterForecasterNetworkRegrets = *clv.list + case "emissions.v2.GenesisState.core_team_addresses": + lv := value.List() + clv := lv.(*_GenesisState_2_list) + x.CoreTeamAddresses = *clv.list + case "emissions.v2.GenesisState.topicLastWorkerCommit": + lv := value.List() + clv := lv.(*_GenesisState_53_list) + x.TopicLastWorkerCommit = *clv.list + case "emissions.v2.GenesisState.topicLastReputerCommit": + lv := value.List() + clv := lv.(*_GenesisState_54_list) + x.TopicLastReputerCommit = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.GenesisState")) + } + panic(fmt.Errorf("message emissions.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.GenesisState.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + case "emissions.v2.GenesisState.topics": + if x.Topics == nil { + x.Topics = []*TopicIdAndTopic{} + } + value := &_GenesisState_4_list{list: &x.Topics} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.activeTopics": + if x.ActiveTopics == nil { + x.ActiveTopics = []uint64{} + } + value := &_GenesisState_5_list{list: &x.ActiveTopics} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.rewardableTopics": + if x.RewardableTopics == nil { + x.RewardableTopics = []uint64{} + } + value := &_GenesisState_6_list{list: &x.RewardableTopics} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.topicWorkers": + if x.TopicWorkers == nil { + x.TopicWorkers = []*TopicAndActorId{} + } + value := &_GenesisState_7_list{list: &x.TopicWorkers} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.topicReputers": + if x.TopicReputers == nil { + x.TopicReputers = []*TopicAndActorId{} + } + value := &_GenesisState_8_list{list: &x.TopicReputers} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.topicRewardNonce": + if x.TopicRewardNonce == nil { + x.TopicRewardNonce = []*TopicIdAndBlockHeight{} + } + value := &_GenesisState_9_list{list: &x.TopicRewardNonce} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.infererScoresByBlock": + if x.InfererScoresByBlock == nil { + x.InfererScoresByBlock = []*TopicIdBlockHeightScores{} + } + value := &_GenesisState_10_list{list: &x.InfererScoresByBlock} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.forecasterScoresByBlock": + if x.ForecasterScoresByBlock == nil { + x.ForecasterScoresByBlock = []*TopicIdBlockHeightScores{} + } + value := &_GenesisState_11_list{list: &x.ForecasterScoresByBlock} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.reputerScoresByBlock": + if x.ReputerScoresByBlock == nil { + x.ReputerScoresByBlock = []*TopicIdBlockHeightScores{} + } + value := &_GenesisState_12_list{list: &x.ReputerScoresByBlock} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.latestInfererScoresByWorker": + if x.LatestInfererScoresByWorker == nil { + x.LatestInfererScoresByWorker = []*TopicIdActorIdScore{} + } + value := &_GenesisState_13_list{list: &x.LatestInfererScoresByWorker} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.latestForecasterScoresByWorker": + if x.LatestForecasterScoresByWorker == nil { + x.LatestForecasterScoresByWorker = []*TopicIdActorIdScore{} + } + value := &_GenesisState_14_list{list: &x.LatestForecasterScoresByWorker} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.latestReputerScoresByReputer": + if x.LatestReputerScoresByReputer == nil { + x.LatestReputerScoresByReputer = []*TopicIdActorIdScore{} + } + value := &_GenesisState_15_list{list: &x.LatestReputerScoresByReputer} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.reputerListeningCoefficient": + if x.ReputerListeningCoefficient == nil { + x.ReputerListeningCoefficient = []*TopicIdActorIdListeningCoefficient{} + } + value := &_GenesisState_16_list{list: &x.ReputerListeningCoefficient} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.previousReputerRewardFraction": + if x.PreviousReputerRewardFraction == nil { + x.PreviousReputerRewardFraction = []*TopicIdActorIdDec{} + } + value := &_GenesisState_17_list{list: &x.PreviousReputerRewardFraction} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.previousInferenceRewardFraction": + if x.PreviousInferenceRewardFraction == nil { + x.PreviousInferenceRewardFraction = []*TopicIdActorIdDec{} + } + value := &_GenesisState_18_list{list: &x.PreviousInferenceRewardFraction} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.previousForecastRewardFraction": + if x.PreviousForecastRewardFraction == nil { + x.PreviousForecastRewardFraction = []*TopicIdActorIdDec{} + } + value := &_GenesisState_19_list{list: &x.PreviousForecastRewardFraction} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.previousForecasterScoreRatio": + if x.PreviousForecasterScoreRatio == nil { + x.PreviousForecasterScoreRatio = []*TopicIdActorIdDec{} + } + value := &_GenesisState_20_list{list: &x.PreviousForecasterScoreRatio} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.topicStake": + if x.TopicStake == nil { + x.TopicStake = []*TopicIdAndInt{} + } + value := &_GenesisState_22_list{list: &x.TopicStake} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.stakeReputerAuthority": + if x.StakeReputerAuthority == nil { + x.StakeReputerAuthority = []*TopicIdActorIdInt{} + } + value := &_GenesisState_23_list{list: &x.StakeReputerAuthority} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.stakeSumFromDelegator": + if x.StakeSumFromDelegator == nil { + x.StakeSumFromDelegator = []*TopicIdActorIdInt{} + } + value := &_GenesisState_24_list{list: &x.StakeSumFromDelegator} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.delegatedStakes": + if x.DelegatedStakes == nil { + x.DelegatedStakes = []*TopicIdDelegatorReputerDelegatorInfo{} + } + value := &_GenesisState_25_list{list: &x.DelegatedStakes} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.stakeFromDelegatorsUponReputer": + if x.StakeFromDelegatorsUponReputer == nil { + x.StakeFromDelegatorsUponReputer = []*TopicIdActorIdInt{} + } + value := &_GenesisState_26_list{list: &x.StakeFromDelegatorsUponReputer} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.delegateRewardPerShare": + if x.DelegateRewardPerShare == nil { + x.DelegateRewardPerShare = []*TopicIdActorIdDec{} + } + value := &_GenesisState_27_list{list: &x.DelegateRewardPerShare} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.stakeRemovalsByBlock": + if x.StakeRemovalsByBlock == nil { + x.StakeRemovalsByBlock = []*BlockHeightTopicIdReputerStakeRemovalInfo{} + } + value := &_GenesisState_28_list{list: &x.StakeRemovalsByBlock} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.stakeRemovalsByActor": + if x.StakeRemovalsByActor == nil { + x.StakeRemovalsByActor = []*ActorIdTopicIdBlockHeight{} + } + value := &_GenesisState_29_list{list: &x.StakeRemovalsByActor} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.delegateStakeRemovalsByBlock": + if x.DelegateStakeRemovalsByBlock == nil { + x.DelegateStakeRemovalsByBlock = []*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo{} + } + value := &_GenesisState_30_list{list: &x.DelegateStakeRemovalsByBlock} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.delegateStakeRemovalsByActor": + if x.DelegateStakeRemovalsByActor == nil { + x.DelegateStakeRemovalsByActor = []*DelegatorReputerTopicIdBlockHeight{} + } + value := &_GenesisState_31_list{list: &x.DelegateStakeRemovalsByActor} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.inferences": + if x.Inferences == nil { + x.Inferences = []*TopicIdActorIdInference{} + } + value := &_GenesisState_32_list{list: &x.Inferences} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.forecasts": + if x.Forecasts == nil { + x.Forecasts = []*TopicIdActorIdForecast{} + } + value := &_GenesisState_33_list{list: &x.Forecasts} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.workers": + if x.Workers == nil { + x.Workers = []*LibP2PKeyAndOffchainNode{} + } + value := &_GenesisState_34_list{list: &x.Workers} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.reputers": + if x.Reputers == nil { + x.Reputers = []*LibP2PKeyAndOffchainNode{} + } + value := &_GenesisState_35_list{list: &x.Reputers} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.topicFeeRevenue": + if x.TopicFeeRevenue == nil { + x.TopicFeeRevenue = []*TopicIdAndInt{} + } + value := &_GenesisState_36_list{list: &x.TopicFeeRevenue} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.previousTopicWeight": + if x.PreviousTopicWeight == nil { + x.PreviousTopicWeight = []*TopicIdAndDec{} + } + value := &_GenesisState_37_list{list: &x.PreviousTopicWeight} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.allInferences": + if x.AllInferences == nil { + x.AllInferences = []*TopicIdBlockHeightInferences{} + } + value := &_GenesisState_38_list{list: &x.AllInferences} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.allForecasts": + if x.AllForecasts == nil { + x.AllForecasts = []*TopicIdBlockHeightForecasts{} + } + value := &_GenesisState_39_list{list: &x.AllForecasts} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.allLossBundles": + if x.AllLossBundles == nil { + x.AllLossBundles = []*TopicIdBlockHeightReputerValueBundles{} + } + value := &_GenesisState_40_list{list: &x.AllLossBundles} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.networkLossBundles": + if x.NetworkLossBundles == nil { + x.NetworkLossBundles = []*TopicIdBlockHeightValueBundles{} + } + value := &_GenesisState_41_list{list: &x.NetworkLossBundles} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.unfulfilledWorkerNonces": + if x.UnfulfilledWorkerNonces == nil { + x.UnfulfilledWorkerNonces = []*TopicIdAndNonces{} + } + value := &_GenesisState_43_list{list: &x.UnfulfilledWorkerNonces} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.unfulfilledReputerNonces": + if x.UnfulfilledReputerNonces == nil { + x.UnfulfilledReputerNonces = []*TopicIdAndReputerRequestNonces{} + } + value := &_GenesisState_44_list{list: &x.UnfulfilledReputerNonces} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.latestInfererNetworkRegrets": + if x.LatestInfererNetworkRegrets == nil { + x.LatestInfererNetworkRegrets = []*TopicIdActorIdTimeStampedValue{} + } + value := &_GenesisState_45_list{list: &x.LatestInfererNetworkRegrets} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.latestForecasterNetworkRegrets": + if x.LatestForecasterNetworkRegrets == nil { + x.LatestForecasterNetworkRegrets = []*TopicIdActorIdTimeStampedValue{} + } + value := &_GenesisState_46_list{list: &x.LatestForecasterNetworkRegrets} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.latestOneInForecasterNetworkRegrets": + if x.LatestOneInForecasterNetworkRegrets == nil { + x.LatestOneInForecasterNetworkRegrets = []*TopicIdActorIdActorIdTimeStampedValue{} + } + value := &_GenesisState_47_list{list: &x.LatestOneInForecasterNetworkRegrets} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.latestNaiveInfererNetworkRegrets": + if x.LatestNaiveInfererNetworkRegrets == nil { + x.LatestNaiveInfererNetworkRegrets = []*TopicIdActorIdTimeStampedValue{} + } + value := &_GenesisState_48_list{list: &x.LatestNaiveInfererNetworkRegrets} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.latestOneOutInfererInfererNetworkRegrets": + if x.LatestOneOutInfererInfererNetworkRegrets == nil { + x.LatestOneOutInfererInfererNetworkRegrets = []*TopicIdActorIdActorIdTimeStampedValue{} + } + value := &_GenesisState_49_list{list: &x.LatestOneOutInfererInfererNetworkRegrets} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.latestOneOutInfererForecasterNetworkRegrets": + if x.LatestOneOutInfererForecasterNetworkRegrets == nil { + x.LatestOneOutInfererForecasterNetworkRegrets = []*TopicIdActorIdActorIdTimeStampedValue{} + } + value := &_GenesisState_50_list{list: &x.LatestOneOutInfererForecasterNetworkRegrets} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.latestOneOutForecasterInfererNetworkRegrets": + if x.LatestOneOutForecasterInfererNetworkRegrets == nil { + x.LatestOneOutForecasterInfererNetworkRegrets = []*TopicIdActorIdActorIdTimeStampedValue{} + } + value := &_GenesisState_51_list{list: &x.LatestOneOutForecasterInfererNetworkRegrets} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.latestOneOutForecasterForecasterNetworkRegrets": + if x.LatestOneOutForecasterForecasterNetworkRegrets == nil { + x.LatestOneOutForecasterForecasterNetworkRegrets = []*TopicIdActorIdActorIdTimeStampedValue{} + } + value := &_GenesisState_52_list{list: &x.LatestOneOutForecasterForecasterNetworkRegrets} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.core_team_addresses": + if x.CoreTeamAddresses == nil { + x.CoreTeamAddresses = []string{} + } + value := &_GenesisState_2_list{list: &x.CoreTeamAddresses} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.topicLastWorkerCommit": + if x.TopicLastWorkerCommit == nil { + x.TopicLastWorkerCommit = []*TopicIdTimestampedActorNonce{} + } + value := &_GenesisState_53_list{list: &x.TopicLastWorkerCommit} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.topicLastReputerCommit": + if x.TopicLastReputerCommit == nil { + x.TopicLastReputerCommit = []*TopicIdTimestampedActorNonce{} + } + value := &_GenesisState_54_list{list: &x.TopicLastReputerCommit} + return protoreflect.ValueOfList(value) + case "emissions.v2.GenesisState.nextTopicId": + panic(fmt.Errorf("field nextTopicId of message emissions.v2.GenesisState is not mutable")) + case "emissions.v2.GenesisState.totalStake": + panic(fmt.Errorf("field totalStake of message emissions.v2.GenesisState is not mutable")) + case "emissions.v2.GenesisState.previousPercentageRewardToStakedReputers": + panic(fmt.Errorf("field previousPercentageRewardToStakedReputers of message emissions.v2.GenesisState is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.GenesisState")) + } + panic(fmt.Errorf("message emissions.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.GenesisState.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.GenesisState.nextTopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.GenesisState.topics": + list := []*TopicIdAndTopic{} + return protoreflect.ValueOfList(&_GenesisState_4_list{list: &list}) + case "emissions.v2.GenesisState.activeTopics": + list := []uint64{} + return protoreflect.ValueOfList(&_GenesisState_5_list{list: &list}) + case "emissions.v2.GenesisState.rewardableTopics": + list := []uint64{} + return protoreflect.ValueOfList(&_GenesisState_6_list{list: &list}) + case "emissions.v2.GenesisState.topicWorkers": + list := []*TopicAndActorId{} + return protoreflect.ValueOfList(&_GenesisState_7_list{list: &list}) + case "emissions.v2.GenesisState.topicReputers": + list := []*TopicAndActorId{} + return protoreflect.ValueOfList(&_GenesisState_8_list{list: &list}) + case "emissions.v2.GenesisState.topicRewardNonce": + list := []*TopicIdAndBlockHeight{} + return protoreflect.ValueOfList(&_GenesisState_9_list{list: &list}) + case "emissions.v2.GenesisState.infererScoresByBlock": + list := []*TopicIdBlockHeightScores{} + return protoreflect.ValueOfList(&_GenesisState_10_list{list: &list}) + case "emissions.v2.GenesisState.forecasterScoresByBlock": + list := []*TopicIdBlockHeightScores{} + return protoreflect.ValueOfList(&_GenesisState_11_list{list: &list}) + case "emissions.v2.GenesisState.reputerScoresByBlock": + list := []*TopicIdBlockHeightScores{} + return protoreflect.ValueOfList(&_GenesisState_12_list{list: &list}) + case "emissions.v2.GenesisState.latestInfererScoresByWorker": + list := []*TopicIdActorIdScore{} + return protoreflect.ValueOfList(&_GenesisState_13_list{list: &list}) + case "emissions.v2.GenesisState.latestForecasterScoresByWorker": + list := []*TopicIdActorIdScore{} + return protoreflect.ValueOfList(&_GenesisState_14_list{list: &list}) + case "emissions.v2.GenesisState.latestReputerScoresByReputer": + list := []*TopicIdActorIdScore{} + return protoreflect.ValueOfList(&_GenesisState_15_list{list: &list}) + case "emissions.v2.GenesisState.reputerListeningCoefficient": + list := []*TopicIdActorIdListeningCoefficient{} + return protoreflect.ValueOfList(&_GenesisState_16_list{list: &list}) + case "emissions.v2.GenesisState.previousReputerRewardFraction": + list := []*TopicIdActorIdDec{} + return protoreflect.ValueOfList(&_GenesisState_17_list{list: &list}) + case "emissions.v2.GenesisState.previousInferenceRewardFraction": + list := []*TopicIdActorIdDec{} + return protoreflect.ValueOfList(&_GenesisState_18_list{list: &list}) + case "emissions.v2.GenesisState.previousForecastRewardFraction": + list := []*TopicIdActorIdDec{} + return protoreflect.ValueOfList(&_GenesisState_19_list{list: &list}) + case "emissions.v2.GenesisState.previousForecasterScoreRatio": + list := []*TopicIdActorIdDec{} + return protoreflect.ValueOfList(&_GenesisState_20_list{list: &list}) + case "emissions.v2.GenesisState.totalStake": + return protoreflect.ValueOfString("") + case "emissions.v2.GenesisState.topicStake": + list := []*TopicIdAndInt{} + return protoreflect.ValueOfList(&_GenesisState_22_list{list: &list}) + case "emissions.v2.GenesisState.stakeReputerAuthority": + list := []*TopicIdActorIdInt{} + return protoreflect.ValueOfList(&_GenesisState_23_list{list: &list}) + case "emissions.v2.GenesisState.stakeSumFromDelegator": + list := []*TopicIdActorIdInt{} + return protoreflect.ValueOfList(&_GenesisState_24_list{list: &list}) + case "emissions.v2.GenesisState.delegatedStakes": + list := []*TopicIdDelegatorReputerDelegatorInfo{} + return protoreflect.ValueOfList(&_GenesisState_25_list{list: &list}) + case "emissions.v2.GenesisState.stakeFromDelegatorsUponReputer": + list := []*TopicIdActorIdInt{} + return protoreflect.ValueOfList(&_GenesisState_26_list{list: &list}) + case "emissions.v2.GenesisState.delegateRewardPerShare": + list := []*TopicIdActorIdDec{} + return protoreflect.ValueOfList(&_GenesisState_27_list{list: &list}) + case "emissions.v2.GenesisState.stakeRemovalsByBlock": + list := []*BlockHeightTopicIdReputerStakeRemovalInfo{} + return protoreflect.ValueOfList(&_GenesisState_28_list{list: &list}) + case "emissions.v2.GenesisState.stakeRemovalsByActor": + list := []*ActorIdTopicIdBlockHeight{} + return protoreflect.ValueOfList(&_GenesisState_29_list{list: &list}) + case "emissions.v2.GenesisState.delegateStakeRemovalsByBlock": + list := []*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo{} + return protoreflect.ValueOfList(&_GenesisState_30_list{list: &list}) + case "emissions.v2.GenesisState.delegateStakeRemovalsByActor": + list := []*DelegatorReputerTopicIdBlockHeight{} + return protoreflect.ValueOfList(&_GenesisState_31_list{list: &list}) + case "emissions.v2.GenesisState.inferences": + list := []*TopicIdActorIdInference{} + return protoreflect.ValueOfList(&_GenesisState_32_list{list: &list}) + case "emissions.v2.GenesisState.forecasts": + list := []*TopicIdActorIdForecast{} + return protoreflect.ValueOfList(&_GenesisState_33_list{list: &list}) + case "emissions.v2.GenesisState.workers": + list := []*LibP2PKeyAndOffchainNode{} + return protoreflect.ValueOfList(&_GenesisState_34_list{list: &list}) + case "emissions.v2.GenesisState.reputers": + list := []*LibP2PKeyAndOffchainNode{} + return protoreflect.ValueOfList(&_GenesisState_35_list{list: &list}) + case "emissions.v2.GenesisState.topicFeeRevenue": + list := []*TopicIdAndInt{} + return protoreflect.ValueOfList(&_GenesisState_36_list{list: &list}) + case "emissions.v2.GenesisState.previousTopicWeight": + list := []*TopicIdAndDec{} + return protoreflect.ValueOfList(&_GenesisState_37_list{list: &list}) + case "emissions.v2.GenesisState.allInferences": + list := []*TopicIdBlockHeightInferences{} + return protoreflect.ValueOfList(&_GenesisState_38_list{list: &list}) + case "emissions.v2.GenesisState.allForecasts": + list := []*TopicIdBlockHeightForecasts{} + return protoreflect.ValueOfList(&_GenesisState_39_list{list: &list}) + case "emissions.v2.GenesisState.allLossBundles": + list := []*TopicIdBlockHeightReputerValueBundles{} + return protoreflect.ValueOfList(&_GenesisState_40_list{list: &list}) + case "emissions.v2.GenesisState.networkLossBundles": + list := []*TopicIdBlockHeightValueBundles{} + return protoreflect.ValueOfList(&_GenesisState_41_list{list: &list}) + case "emissions.v2.GenesisState.previousPercentageRewardToStakedReputers": + return protoreflect.ValueOfString("") + case "emissions.v2.GenesisState.unfulfilledWorkerNonces": + list := []*TopicIdAndNonces{} + return protoreflect.ValueOfList(&_GenesisState_43_list{list: &list}) + case "emissions.v2.GenesisState.unfulfilledReputerNonces": + list := []*TopicIdAndReputerRequestNonces{} + return protoreflect.ValueOfList(&_GenesisState_44_list{list: &list}) + case "emissions.v2.GenesisState.latestInfererNetworkRegrets": + list := []*TopicIdActorIdTimeStampedValue{} + return protoreflect.ValueOfList(&_GenesisState_45_list{list: &list}) + case "emissions.v2.GenesisState.latestForecasterNetworkRegrets": + list := []*TopicIdActorIdTimeStampedValue{} + return protoreflect.ValueOfList(&_GenesisState_46_list{list: &list}) + case "emissions.v2.GenesisState.latestOneInForecasterNetworkRegrets": + list := []*TopicIdActorIdActorIdTimeStampedValue{} + return protoreflect.ValueOfList(&_GenesisState_47_list{list: &list}) + case "emissions.v2.GenesisState.latestNaiveInfererNetworkRegrets": + list := []*TopicIdActorIdTimeStampedValue{} + return protoreflect.ValueOfList(&_GenesisState_48_list{list: &list}) + case "emissions.v2.GenesisState.latestOneOutInfererInfererNetworkRegrets": + list := []*TopicIdActorIdActorIdTimeStampedValue{} + return protoreflect.ValueOfList(&_GenesisState_49_list{list: &list}) + case "emissions.v2.GenesisState.latestOneOutInfererForecasterNetworkRegrets": + list := []*TopicIdActorIdActorIdTimeStampedValue{} + return protoreflect.ValueOfList(&_GenesisState_50_list{list: &list}) + case "emissions.v2.GenesisState.latestOneOutForecasterInfererNetworkRegrets": + list := []*TopicIdActorIdActorIdTimeStampedValue{} + return protoreflect.ValueOfList(&_GenesisState_51_list{list: &list}) + case "emissions.v2.GenesisState.latestOneOutForecasterForecasterNetworkRegrets": + list := []*TopicIdActorIdActorIdTimeStampedValue{} + return protoreflect.ValueOfList(&_GenesisState_52_list{list: &list}) + case "emissions.v2.GenesisState.core_team_addresses": + list := []string{} + return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list}) + case "emissions.v2.GenesisState.topicLastWorkerCommit": + list := []*TopicIdTimestampedActorNonce{} + return protoreflect.ValueOfList(&_GenesisState_53_list{list: &list}) + case "emissions.v2.GenesisState.topicLastReputerCommit": + list := []*TopicIdTimestampedActorNonce{} + return protoreflect.ValueOfList(&_GenesisState_54_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.GenesisState")) + } + panic(fmt.Errorf("message emissions.v2.GenesisState does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.GenesisState", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_GenesisState) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Params != nil { + l = options.Size(x.Params) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.NextTopicId != 0 { + n += 1 + runtime.Sov(uint64(x.NextTopicId)) + } + if len(x.Topics) > 0 { + for _, e := range x.Topics { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.ActiveTopics) > 0 { + l = 0 + for _, e := range x.ActiveTopics { + l += runtime.Sov(uint64(e)) + } + n += 1 + runtime.Sov(uint64(l)) + l + } + if len(x.RewardableTopics) > 0 { + l = 0 + for _, e := range x.RewardableTopics { + l += runtime.Sov(uint64(e)) + } + n += 1 + runtime.Sov(uint64(l)) + l + } + if len(x.TopicWorkers) > 0 { + for _, e := range x.TopicWorkers { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.TopicReputers) > 0 { + for _, e := range x.TopicReputers { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.TopicRewardNonce) > 0 { + for _, e := range x.TopicRewardNonce { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.InfererScoresByBlock) > 0 { + for _, e := range x.InfererScoresByBlock { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.ForecasterScoresByBlock) > 0 { + for _, e := range x.ForecasterScoresByBlock { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.ReputerScoresByBlock) > 0 { + for _, e := range x.ReputerScoresByBlock { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.LatestInfererScoresByWorker) > 0 { + for _, e := range x.LatestInfererScoresByWorker { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.LatestForecasterScoresByWorker) > 0 { + for _, e := range x.LatestForecasterScoresByWorker { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.LatestReputerScoresByReputer) > 0 { + for _, e := range x.LatestReputerScoresByReputer { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.ReputerListeningCoefficient) > 0 { + for _, e := range x.ReputerListeningCoefficient { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.PreviousReputerRewardFraction) > 0 { + for _, e := range x.PreviousReputerRewardFraction { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.PreviousInferenceRewardFraction) > 0 { + for _, e := range x.PreviousInferenceRewardFraction { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.PreviousForecastRewardFraction) > 0 { + for _, e := range x.PreviousForecastRewardFraction { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.PreviousForecasterScoreRatio) > 0 { + for _, e := range x.PreviousForecasterScoreRatio { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + l = len(x.TotalStake) + if l > 0 { + n += 2 + l + runtime.Sov(uint64(l)) + } + if len(x.TopicStake) > 0 { + for _, e := range x.TopicStake { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.StakeReputerAuthority) > 0 { + for _, e := range x.StakeReputerAuthority { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.StakeSumFromDelegator) > 0 { + for _, e := range x.StakeSumFromDelegator { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.DelegatedStakes) > 0 { + for _, e := range x.DelegatedStakes { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.StakeFromDelegatorsUponReputer) > 0 { + for _, e := range x.StakeFromDelegatorsUponReputer { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.DelegateRewardPerShare) > 0 { + for _, e := range x.DelegateRewardPerShare { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.StakeRemovalsByBlock) > 0 { + for _, e := range x.StakeRemovalsByBlock { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.StakeRemovalsByActor) > 0 { + for _, e := range x.StakeRemovalsByActor { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.DelegateStakeRemovalsByBlock) > 0 { + for _, e := range x.DelegateStakeRemovalsByBlock { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.DelegateStakeRemovalsByActor) > 0 { + for _, e := range x.DelegateStakeRemovalsByActor { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.Inferences) > 0 { + for _, e := range x.Inferences { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.Forecasts) > 0 { + for _, e := range x.Forecasts { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.Workers) > 0 { + for _, e := range x.Workers { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.Reputers) > 0 { + for _, e := range x.Reputers { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.TopicFeeRevenue) > 0 { + for _, e := range x.TopicFeeRevenue { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.PreviousTopicWeight) > 0 { + for _, e := range x.PreviousTopicWeight { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.AllInferences) > 0 { + for _, e := range x.AllInferences { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.AllForecasts) > 0 { + for _, e := range x.AllForecasts { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.AllLossBundles) > 0 { + for _, e := range x.AllLossBundles { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.NetworkLossBundles) > 0 { + for _, e := range x.NetworkLossBundles { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + l = len(x.PreviousPercentageRewardToStakedReputers) + if l > 0 { + n += 2 + l + runtime.Sov(uint64(l)) + } + if len(x.UnfulfilledWorkerNonces) > 0 { + for _, e := range x.UnfulfilledWorkerNonces { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.UnfulfilledReputerNonces) > 0 { + for _, e := range x.UnfulfilledReputerNonces { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.LatestInfererNetworkRegrets) > 0 { + for _, e := range x.LatestInfererNetworkRegrets { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.LatestForecasterNetworkRegrets) > 0 { + for _, e := range x.LatestForecasterNetworkRegrets { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.LatestOneInForecasterNetworkRegrets) > 0 { + for _, e := range x.LatestOneInForecasterNetworkRegrets { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.LatestNaiveInfererNetworkRegrets) > 0 { + for _, e := range x.LatestNaiveInfererNetworkRegrets { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.LatestOneOutInfererInfererNetworkRegrets) > 0 { + for _, e := range x.LatestOneOutInfererInfererNetworkRegrets { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.LatestOneOutInfererForecasterNetworkRegrets) > 0 { + for _, e := range x.LatestOneOutInfererForecasterNetworkRegrets { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.LatestOneOutForecasterInfererNetworkRegrets) > 0 { + for _, e := range x.LatestOneOutForecasterInfererNetworkRegrets { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.LatestOneOutForecasterForecasterNetworkRegrets) > 0 { + for _, e := range x.LatestOneOutForecasterForecasterNetworkRegrets { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.CoreTeamAddresses) > 0 { + for _, s := range x.CoreTeamAddresses { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.TopicLastWorkerCommit) > 0 { + for _, e := range x.TopicLastWorkerCommit { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.TopicLastReputerCommit) > 0 { + for _, e := range x.TopicLastReputerCommit { + l = options.Size(e) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.TopicLastReputerCommit) > 0 { + for iNdEx := len(x.TopicLastReputerCommit) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.TopicLastReputerCommit[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + } + if len(x.TopicLastWorkerCommit) > 0 { + for iNdEx := len(x.TopicLastWorkerCommit) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.TopicLastWorkerCommit[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(x.LatestOneOutForecasterForecasterNetworkRegrets) > 0 { + for iNdEx := len(x.LatestOneOutForecasterForecasterNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.LatestOneOutForecasterForecasterNetworkRegrets[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if len(x.LatestOneOutForecasterInfererNetworkRegrets) > 0 { + for iNdEx := len(x.LatestOneOutForecasterInfererNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.LatestOneOutForecasterInfererNetworkRegrets[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + if len(x.LatestOneOutInfererForecasterNetworkRegrets) > 0 { + for iNdEx := len(x.LatestOneOutInfererForecasterNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.LatestOneOutInfererForecasterNetworkRegrets[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x92 + } + } + if len(x.LatestOneOutInfererInfererNetworkRegrets) > 0 { + for iNdEx := len(x.LatestOneOutInfererInfererNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.LatestOneOutInfererInfererNetworkRegrets[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x8a + } + } + if len(x.LatestNaiveInfererNetworkRegrets) > 0 { + for iNdEx := len(x.LatestNaiveInfererNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.LatestNaiveInfererNetworkRegrets[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x82 + } + } + if len(x.LatestOneInForecasterNetworkRegrets) > 0 { + for iNdEx := len(x.LatestOneInForecasterNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.LatestOneInForecasterNetworkRegrets[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xfa + } + } + if len(x.LatestForecasterNetworkRegrets) > 0 { + for iNdEx := len(x.LatestForecasterNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.LatestForecasterNetworkRegrets[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xf2 + } + } + if len(x.LatestInfererNetworkRegrets) > 0 { + for iNdEx := len(x.LatestInfererNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.LatestInfererNetworkRegrets[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xea + } + } + if len(x.UnfulfilledReputerNonces) > 0 { + for iNdEx := len(x.UnfulfilledReputerNonces) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.UnfulfilledReputerNonces[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xe2 + } + } + if len(x.UnfulfilledWorkerNonces) > 0 { + for iNdEx := len(x.UnfulfilledWorkerNonces) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.UnfulfilledWorkerNonces[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xda + } + } + if len(x.PreviousPercentageRewardToStakedReputers) > 0 { + i -= len(x.PreviousPercentageRewardToStakedReputers) + copy(dAtA[i:], x.PreviousPercentageRewardToStakedReputers) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousPercentageRewardToStakedReputers))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xd2 + } + if len(x.NetworkLossBundles) > 0 { + for iNdEx := len(x.NetworkLossBundles) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.NetworkLossBundles[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xca + } + } + if len(x.AllLossBundles) > 0 { + for iNdEx := len(x.AllLossBundles) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.AllLossBundles[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xc2 + } + } + if len(x.AllForecasts) > 0 { + for iNdEx := len(x.AllForecasts) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.AllForecasts[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xba + } + } + if len(x.AllInferences) > 0 { + for iNdEx := len(x.AllInferences) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.AllInferences[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xb2 + } + } + if len(x.PreviousTopicWeight) > 0 { + for iNdEx := len(x.PreviousTopicWeight) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PreviousTopicWeight[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xaa + } + } + if len(x.TopicFeeRevenue) > 0 { + for iNdEx := len(x.TopicFeeRevenue) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.TopicFeeRevenue[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xa2 + } + } + if len(x.Reputers) > 0 { + for iNdEx := len(x.Reputers) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Reputers[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x9a + } + } + if len(x.Workers) > 0 { + for iNdEx := len(x.Workers) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Workers[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x92 + } + } + if len(x.Forecasts) > 0 { + for iNdEx := len(x.Forecasts) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Forecasts[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x8a + } + } + if len(x.Inferences) > 0 { + for iNdEx := len(x.Inferences) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Inferences[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x82 + } + } + if len(x.DelegateStakeRemovalsByActor) > 0 { + for iNdEx := len(x.DelegateStakeRemovalsByActor) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.DelegateStakeRemovalsByActor[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xfa + } + } + if len(x.DelegateStakeRemovalsByBlock) > 0 { + for iNdEx := len(x.DelegateStakeRemovalsByBlock) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.DelegateStakeRemovalsByBlock[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf2 + } + } + if len(x.StakeRemovalsByActor) > 0 { + for iNdEx := len(x.StakeRemovalsByActor) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.StakeRemovalsByActor[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xea + } + } + if len(x.StakeRemovalsByBlock) > 0 { + for iNdEx := len(x.StakeRemovalsByBlock) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.StakeRemovalsByBlock[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe2 + } + } + if len(x.DelegateRewardPerShare) > 0 { + for iNdEx := len(x.DelegateRewardPerShare) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.DelegateRewardPerShare[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xda + } + } + if len(x.StakeFromDelegatorsUponReputer) > 0 { + for iNdEx := len(x.StakeFromDelegatorsUponReputer) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.StakeFromDelegatorsUponReputer[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd2 + } + } + if len(x.DelegatedStakes) > 0 { + for iNdEx := len(x.DelegatedStakes) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.DelegatedStakes[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca + } + } + if len(x.StakeSumFromDelegator) > 0 { + for iNdEx := len(x.StakeSumFromDelegator) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.StakeSumFromDelegator[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 + } + } + if len(x.StakeReputerAuthority) > 0 { + for iNdEx := len(x.StakeReputerAuthority) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.StakeReputerAuthority[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba + } + } + if len(x.TopicStake) > 0 { + for iNdEx := len(x.TopicStake) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.TopicStake[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 + } + } + if len(x.TotalStake) > 0 { + i -= len(x.TotalStake) + copy(dAtA[i:], x.TotalStake) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalStake))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa + } + if len(x.PreviousForecasterScoreRatio) > 0 { + for iNdEx := len(x.PreviousForecasterScoreRatio) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PreviousForecasterScoreRatio[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + } + if len(x.PreviousForecastRewardFraction) > 0 { + for iNdEx := len(x.PreviousForecastRewardFraction) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PreviousForecastRewardFraction[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + } + if len(x.PreviousInferenceRewardFraction) > 0 { + for iNdEx := len(x.PreviousInferenceRewardFraction) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PreviousInferenceRewardFraction[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + } + if len(x.PreviousReputerRewardFraction) > 0 { + for iNdEx := len(x.PreviousReputerRewardFraction) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.PreviousReputerRewardFraction[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + } + if len(x.ReputerListeningCoefficient) > 0 { + for iNdEx := len(x.ReputerListeningCoefficient) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.ReputerListeningCoefficient[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + } + if len(x.LatestReputerScoresByReputer) > 0 { + for iNdEx := len(x.LatestReputerScoresByReputer) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.LatestReputerScoresByReputer[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x7a + } + } + if len(x.LatestForecasterScoresByWorker) > 0 { + for iNdEx := len(x.LatestForecasterScoresByWorker) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.LatestForecasterScoresByWorker[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x72 + } + } + if len(x.LatestInfererScoresByWorker) > 0 { + for iNdEx := len(x.LatestInfererScoresByWorker) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.LatestInfererScoresByWorker[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x6a + } + } + if len(x.ReputerScoresByBlock) > 0 { + for iNdEx := len(x.ReputerScoresByBlock) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.ReputerScoresByBlock[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x62 + } + } + if len(x.ForecasterScoresByBlock) > 0 { + for iNdEx := len(x.ForecasterScoresByBlock) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.ForecasterScoresByBlock[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x5a + } + } + if len(x.InfererScoresByBlock) > 0 { + for iNdEx := len(x.InfererScoresByBlock) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.InfererScoresByBlock[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x52 + } + } + if len(x.TopicRewardNonce) > 0 { + for iNdEx := len(x.TopicRewardNonce) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.TopicRewardNonce[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x4a + } + } + if len(x.TopicReputers) > 0 { + for iNdEx := len(x.TopicReputers) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.TopicReputers[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x42 + } + } + if len(x.TopicWorkers) > 0 { + for iNdEx := len(x.TopicWorkers) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.TopicWorkers[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3a + } + } + if len(x.RewardableTopics) > 0 { + var pksize2 int + for _, num := range x.RewardableTopics { + pksize2 += runtime.Sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num := range x.RewardableTopics { + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x32 + } + if len(x.ActiveTopics) > 0 { + var pksize4 int + for _, num := range x.ActiveTopics { + pksize4 += runtime.Sov(uint64(num)) + } + i -= pksize4 + j3 := i + for _, num := range x.ActiveTopics { + for num >= 1<<7 { + dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j3++ + } + dAtA[j3] = uint8(num) + j3++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize4)) + i-- + dAtA[i] = 0x2a + } + if len(x.Topics) > 0 { + for iNdEx := len(x.Topics) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Topics[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } + if x.NextTopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.NextTopicId)) + i-- + dAtA[i] = 0x18 + } + if len(x.CoreTeamAddresses) > 0 { + for iNdEx := len(x.CoreTeamAddresses) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.CoreTeamAddresses[iNdEx]) + copy(dAtA[i:], x.CoreTeamAddresses[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CoreTeamAddresses[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + if x.Params != nil { + encoded, err := options.Marshal(x.Params) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*GenesisState) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NextTopicId", wireType) + } + x.NextTopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.NextTopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Topics = append(x.Topics, &TopicIdAndTopic{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Topics[len(x.Topics)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.ActiveTopics = append(x.ActiveTopics, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(x.ActiveTopics) == 0 { + x.ActiveTopics = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.ActiveTopics = append(x.ActiveTopics, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActiveTopics", wireType) + } + case 6: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.RewardableTopics = append(x.RewardableTopics, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(x.RewardableTopics) == 0 { + x.RewardableTopics = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.RewardableTopics = append(x.RewardableTopics, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RewardableTopics", wireType) + } + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicWorkers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.TopicWorkers = append(x.TopicWorkers, &TopicAndActorId{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TopicWorkers[len(x.TopicWorkers)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicReputers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.TopicReputers = append(x.TopicReputers, &TopicAndActorId{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TopicReputers[len(x.TopicReputers)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicRewardNonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.TopicRewardNonce = append(x.TopicRewardNonce, &TopicIdAndBlockHeight{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TopicRewardNonce[len(x.TopicRewardNonce)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InfererScoresByBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.InfererScoresByBlock = append(x.InfererScoresByBlock, &TopicIdBlockHeightScores{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.InfererScoresByBlock[len(x.InfererScoresByBlock)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ForecasterScoresByBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ForecasterScoresByBlock = append(x.ForecasterScoresByBlock, &TopicIdBlockHeightScores{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ForecasterScoresByBlock[len(x.ForecasterScoresByBlock)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerScoresByBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ReputerScoresByBlock = append(x.ReputerScoresByBlock, &TopicIdBlockHeightScores{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ReputerScoresByBlock[len(x.ReputerScoresByBlock)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LatestInfererScoresByWorker", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LatestInfererScoresByWorker = append(x.LatestInfererScoresByWorker, &TopicIdActorIdScore{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestInfererScoresByWorker[len(x.LatestInfererScoresByWorker)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LatestForecasterScoresByWorker", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LatestForecasterScoresByWorker = append(x.LatestForecasterScoresByWorker, &TopicIdActorIdScore{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestForecasterScoresByWorker[len(x.LatestForecasterScoresByWorker)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LatestReputerScoresByReputer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LatestReputerScoresByReputer = append(x.LatestReputerScoresByReputer, &TopicIdActorIdScore{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestReputerScoresByReputer[len(x.LatestReputerScoresByReputer)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerListeningCoefficient", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ReputerListeningCoefficient = append(x.ReputerListeningCoefficient, &TopicIdActorIdListeningCoefficient{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ReputerListeningCoefficient[len(x.ReputerListeningCoefficient)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousReputerRewardFraction", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousReputerRewardFraction = append(x.PreviousReputerRewardFraction, &TopicIdActorIdDec{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PreviousReputerRewardFraction[len(x.PreviousReputerRewardFraction)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousInferenceRewardFraction", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousInferenceRewardFraction = append(x.PreviousInferenceRewardFraction, &TopicIdActorIdDec{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PreviousInferenceRewardFraction[len(x.PreviousInferenceRewardFraction)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 19: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousForecastRewardFraction", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousForecastRewardFraction = append(x.PreviousForecastRewardFraction, &TopicIdActorIdDec{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PreviousForecastRewardFraction[len(x.PreviousForecastRewardFraction)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 20: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousForecasterScoreRatio", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousForecasterScoreRatio = append(x.PreviousForecasterScoreRatio, &TopicIdActorIdDec{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PreviousForecasterScoreRatio[len(x.PreviousForecasterScoreRatio)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 21: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalStake", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.TotalStake = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 22: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicStake", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.TopicStake = append(x.TopicStake, &TopicIdAndInt{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TopicStake[len(x.TopicStake)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 23: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StakeReputerAuthority", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.StakeReputerAuthority = append(x.StakeReputerAuthority, &TopicIdActorIdInt{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StakeReputerAuthority[len(x.StakeReputerAuthority)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 24: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StakeSumFromDelegator", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.StakeSumFromDelegator = append(x.StakeSumFromDelegator, &TopicIdActorIdInt{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StakeSumFromDelegator[len(x.StakeSumFromDelegator)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 25: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DelegatedStakes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.DelegatedStakes = append(x.DelegatedStakes, &TopicIdDelegatorReputerDelegatorInfo{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DelegatedStakes[len(x.DelegatedStakes)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 26: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StakeFromDelegatorsUponReputer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.StakeFromDelegatorsUponReputer = append(x.StakeFromDelegatorsUponReputer, &TopicIdActorIdInt{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StakeFromDelegatorsUponReputer[len(x.StakeFromDelegatorsUponReputer)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 27: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DelegateRewardPerShare", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.DelegateRewardPerShare = append(x.DelegateRewardPerShare, &TopicIdActorIdDec{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DelegateRewardPerShare[len(x.DelegateRewardPerShare)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 28: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StakeRemovalsByBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.StakeRemovalsByBlock = append(x.StakeRemovalsByBlock, &BlockHeightTopicIdReputerStakeRemovalInfo{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StakeRemovalsByBlock[len(x.StakeRemovalsByBlock)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 29: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StakeRemovalsByActor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.StakeRemovalsByActor = append(x.StakeRemovalsByActor, &ActorIdTopicIdBlockHeight{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StakeRemovalsByActor[len(x.StakeRemovalsByActor)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 30: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DelegateStakeRemovalsByBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.DelegateStakeRemovalsByBlock = append(x.DelegateStakeRemovalsByBlock, &BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DelegateStakeRemovalsByBlock[len(x.DelegateStakeRemovalsByBlock)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 31: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DelegateStakeRemovalsByActor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.DelegateStakeRemovalsByActor = append(x.DelegateStakeRemovalsByActor, &DelegatorReputerTopicIdBlockHeight{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DelegateStakeRemovalsByActor[len(x.DelegateStakeRemovalsByActor)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 32: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inferences", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Inferences = append(x.Inferences, &TopicIdActorIdInference{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Inferences[len(x.Inferences)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 33: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Forecasts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Forecasts = append(x.Forecasts, &TopicIdActorIdForecast{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Forecasts[len(x.Forecasts)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 34: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Workers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Workers = append(x.Workers, &LibP2PKeyAndOffchainNode{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Workers[len(x.Workers)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 35: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Reputers = append(x.Reputers, &LibP2PKeyAndOffchainNode{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Reputers[len(x.Reputers)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 36: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicFeeRevenue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.TopicFeeRevenue = append(x.TopicFeeRevenue, &TopicIdAndInt{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TopicFeeRevenue[len(x.TopicFeeRevenue)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 37: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousTopicWeight", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousTopicWeight = append(x.PreviousTopicWeight, &TopicIdAndDec{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.PreviousTopicWeight[len(x.PreviousTopicWeight)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 38: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AllInferences", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.AllInferences = append(x.AllInferences, &TopicIdBlockHeightInferences{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AllInferences[len(x.AllInferences)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 39: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AllForecasts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.AllForecasts = append(x.AllForecasts, &TopicIdBlockHeightForecasts{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AllForecasts[len(x.AllForecasts)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 40: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AllLossBundles", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.AllLossBundles = append(x.AllLossBundles, &TopicIdBlockHeightReputerValueBundles{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.AllLossBundles[len(x.AllLossBundles)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 41: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkLossBundles", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NetworkLossBundles = append(x.NetworkLossBundles, &TopicIdBlockHeightValueBundles{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NetworkLossBundles[len(x.NetworkLossBundles)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 42: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousPercentageRewardToStakedReputers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PreviousPercentageRewardToStakedReputers = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 43: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UnfulfilledWorkerNonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.UnfulfilledWorkerNonces = append(x.UnfulfilledWorkerNonces, &TopicIdAndNonces{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UnfulfilledWorkerNonces[len(x.UnfulfilledWorkerNonces)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 44: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field UnfulfilledReputerNonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.UnfulfilledReputerNonces = append(x.UnfulfilledReputerNonces, &TopicIdAndReputerRequestNonces{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.UnfulfilledReputerNonces[len(x.UnfulfilledReputerNonces)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 45: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LatestInfererNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LatestInfererNetworkRegrets = append(x.LatestInfererNetworkRegrets, &TopicIdActorIdTimeStampedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestInfererNetworkRegrets[len(x.LatestInfererNetworkRegrets)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 46: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LatestForecasterNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LatestForecasterNetworkRegrets = append(x.LatestForecasterNetworkRegrets, &TopicIdActorIdTimeStampedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestForecasterNetworkRegrets[len(x.LatestForecasterNetworkRegrets)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 47: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LatestOneInForecasterNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LatestOneInForecasterNetworkRegrets = append(x.LatestOneInForecasterNetworkRegrets, &TopicIdActorIdActorIdTimeStampedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestOneInForecasterNetworkRegrets[len(x.LatestOneInForecasterNetworkRegrets)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 48: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LatestNaiveInfererNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LatestNaiveInfererNetworkRegrets = append(x.LatestNaiveInfererNetworkRegrets, &TopicIdActorIdTimeStampedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestNaiveInfererNetworkRegrets[len(x.LatestNaiveInfererNetworkRegrets)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 49: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LatestOneOutInfererInfererNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LatestOneOutInfererInfererNetworkRegrets = append(x.LatestOneOutInfererInfererNetworkRegrets, &TopicIdActorIdActorIdTimeStampedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestOneOutInfererInfererNetworkRegrets[len(x.LatestOneOutInfererInfererNetworkRegrets)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 50: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LatestOneOutInfererForecasterNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LatestOneOutInfererForecasterNetworkRegrets = append(x.LatestOneOutInfererForecasterNetworkRegrets, &TopicIdActorIdActorIdTimeStampedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestOneOutInfererForecasterNetworkRegrets[len(x.LatestOneOutInfererForecasterNetworkRegrets)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 51: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LatestOneOutForecasterInfererNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LatestOneOutForecasterInfererNetworkRegrets = append(x.LatestOneOutForecasterInfererNetworkRegrets, &TopicIdActorIdActorIdTimeStampedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestOneOutForecasterInfererNetworkRegrets[len(x.LatestOneOutForecasterInfererNetworkRegrets)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 52: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LatestOneOutForecasterForecasterNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LatestOneOutForecasterForecasterNetworkRegrets = append(x.LatestOneOutForecasterForecasterNetworkRegrets, &TopicIdActorIdActorIdTimeStampedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestOneOutForecasterForecasterNetworkRegrets[len(x.LatestOneOutForecasterForecasterNetworkRegrets)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CoreTeamAddresses", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.CoreTeamAddresses = append(x.CoreTeamAddresses, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 53: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicLastWorkerCommit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.TopicLastWorkerCommit = append(x.TopicLastWorkerCommit, &TopicIdTimestampedActorNonce{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TopicLastWorkerCommit[len(x.TopicLastWorkerCommit)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 54: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicLastReputerCommit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.TopicLastReputerCommit = append(x.TopicLastReputerCommit, &TopicIdTimestampedActorNonce{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TopicLastReputerCommit[len(x.TopicLastReputerCommit)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdAndTopic protoreflect.MessageDescriptor + fd_TopicIdAndTopic_TopicId protoreflect.FieldDescriptor + fd_TopicIdAndTopic_Topic protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdAndTopic = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdAndTopic") + fd_TopicIdAndTopic_TopicId = md_TopicIdAndTopic.Fields().ByName("TopicId") + fd_TopicIdAndTopic_Topic = md_TopicIdAndTopic.Fields().ByName("Topic") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdAndTopic)(nil) + +type fastReflection_TopicIdAndTopic TopicIdAndTopic + +func (x *TopicIdAndTopic) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdAndTopic)(x) +} + +func (x *TopicIdAndTopic) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdAndTopic_messageType fastReflection_TopicIdAndTopic_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdAndTopic_messageType{} + +type fastReflection_TopicIdAndTopic_messageType struct{} + +func (x fastReflection_TopicIdAndTopic_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdAndTopic)(nil) +} +func (x fastReflection_TopicIdAndTopic_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdAndTopic) +} +func (x fastReflection_TopicIdAndTopic_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdAndTopic +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdAndTopic) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdAndTopic +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdAndTopic) Type() protoreflect.MessageType { + return _fastReflection_TopicIdAndTopic_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdAndTopic) New() protoreflect.Message { + return new(fastReflection_TopicIdAndTopic) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdAndTopic) Interface() protoreflect.ProtoMessage { + return (*TopicIdAndTopic)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdAndTopic) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdAndTopic_TopicId, value) { + return + } + } + if x.Topic != nil { + value := protoreflect.ValueOfMessage(x.Topic.ProtoReflect()) + if !f(fd_TopicIdAndTopic_Topic, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdAndTopic) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdAndTopic.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdAndTopic.Topic": + return x.Topic != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndTopic")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndTopic does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndTopic) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdAndTopic.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdAndTopic.Topic": + x.Topic = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndTopic")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndTopic does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdAndTopic) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdAndTopic.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdAndTopic.Topic": + value := x.Topic + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndTopic")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndTopic does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndTopic) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdAndTopic.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdAndTopic.Topic": + x.Topic = value.Message().Interface().(*Topic) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndTopic")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndTopic does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndTopic) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdAndTopic.Topic": + if x.Topic == nil { + x.Topic = new(Topic) + } + return protoreflect.ValueOfMessage(x.Topic.ProtoReflect()) + case "emissions.v2.TopicIdAndTopic.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdAndTopic is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndTopic")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndTopic does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdAndTopic) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdAndTopic.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdAndTopic.Topic": + m := new(Topic) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndTopic")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndTopic does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdAndTopic) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdAndTopic", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdAndTopic) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndTopic) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdAndTopic) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdAndTopic) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdAndTopic) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.Topic != nil { + l = options.Size(x.Topic) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdAndTopic) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Topic != nil { + encoded, err := options.Marshal(x.Topic) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdAndTopic) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdAndTopic: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdAndTopic: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Topic == nil { + x.Topic = &Topic{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Topic); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicAndActorId protoreflect.MessageDescriptor + fd_TopicAndActorId_TopicId protoreflect.FieldDescriptor + fd_TopicAndActorId_ActorId protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicAndActorId = File_emissions_v2_genesis_proto.Messages().ByName("TopicAndActorId") + fd_TopicAndActorId_TopicId = md_TopicAndActorId.Fields().ByName("TopicId") + fd_TopicAndActorId_ActorId = md_TopicAndActorId.Fields().ByName("ActorId") +} + +var _ protoreflect.Message = (*fastReflection_TopicAndActorId)(nil) + +type fastReflection_TopicAndActorId TopicAndActorId + +func (x *TopicAndActorId) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicAndActorId)(x) +} + +func (x *TopicAndActorId) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicAndActorId_messageType fastReflection_TopicAndActorId_messageType +var _ protoreflect.MessageType = fastReflection_TopicAndActorId_messageType{} + +type fastReflection_TopicAndActorId_messageType struct{} + +func (x fastReflection_TopicAndActorId_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicAndActorId)(nil) +} +func (x fastReflection_TopicAndActorId_messageType) New() protoreflect.Message { + return new(fastReflection_TopicAndActorId) +} +func (x fastReflection_TopicAndActorId_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicAndActorId +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicAndActorId) Descriptor() protoreflect.MessageDescriptor { + return md_TopicAndActorId +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicAndActorId) Type() protoreflect.MessageType { + return _fastReflection_TopicAndActorId_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicAndActorId) New() protoreflect.Message { + return new(fastReflection_TopicAndActorId) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicAndActorId) Interface() protoreflect.ProtoMessage { + return (*TopicAndActorId)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicAndActorId) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicAndActorId_TopicId, value) { + return + } + } + if x.ActorId != "" { + value := protoreflect.ValueOfString(x.ActorId) + if !f(fd_TopicAndActorId_ActorId, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicAndActorId) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicAndActorId.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicAndActorId.ActorId": + return x.ActorId != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicAndActorId")) + } + panic(fmt.Errorf("message emissions.v2.TopicAndActorId does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicAndActorId) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicAndActorId.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicAndActorId.ActorId": + x.ActorId = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicAndActorId")) + } + panic(fmt.Errorf("message emissions.v2.TopicAndActorId does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicAndActorId) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicAndActorId.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicAndActorId.ActorId": + value := x.ActorId + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicAndActorId")) + } + panic(fmt.Errorf("message emissions.v2.TopicAndActorId does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicAndActorId) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicAndActorId.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicAndActorId.ActorId": + x.ActorId = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicAndActorId")) + } + panic(fmt.Errorf("message emissions.v2.TopicAndActorId does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicAndActorId) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicAndActorId.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicAndActorId is not mutable")) + case "emissions.v2.TopicAndActorId.ActorId": + panic(fmt.Errorf("field ActorId of message emissions.v2.TopicAndActorId is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicAndActorId")) + } + panic(fmt.Errorf("message emissions.v2.TopicAndActorId does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicAndActorId) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicAndActorId.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicAndActorId.ActorId": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicAndActorId")) + } + panic(fmt.Errorf("message emissions.v2.TopicAndActorId does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicAndActorId) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicAndActorId", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicAndActorId) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicAndActorId) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicAndActorId) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicAndActorId) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicAndActorId) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.ActorId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicAndActorId) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.ActorId) > 0 { + i -= len(x.ActorId) + copy(dAtA[i:], x.ActorId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ActorId))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicAndActorId) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicAndActorId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicAndActorId: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdAndBlockHeight protoreflect.MessageDescriptor + fd_TopicIdAndBlockHeight_TopicId protoreflect.FieldDescriptor + fd_TopicIdAndBlockHeight_BlockHeight protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdAndBlockHeight = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdAndBlockHeight") + fd_TopicIdAndBlockHeight_TopicId = md_TopicIdAndBlockHeight.Fields().ByName("TopicId") + fd_TopicIdAndBlockHeight_BlockHeight = md_TopicIdAndBlockHeight.Fields().ByName("BlockHeight") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdAndBlockHeight)(nil) + +type fastReflection_TopicIdAndBlockHeight TopicIdAndBlockHeight + +func (x *TopicIdAndBlockHeight) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdAndBlockHeight)(x) +} + +func (x *TopicIdAndBlockHeight) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdAndBlockHeight_messageType fastReflection_TopicIdAndBlockHeight_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdAndBlockHeight_messageType{} + +type fastReflection_TopicIdAndBlockHeight_messageType struct{} + +func (x fastReflection_TopicIdAndBlockHeight_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdAndBlockHeight)(nil) +} +func (x fastReflection_TopicIdAndBlockHeight_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdAndBlockHeight) +} +func (x fastReflection_TopicIdAndBlockHeight_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdAndBlockHeight +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdAndBlockHeight) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdAndBlockHeight +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdAndBlockHeight) Type() protoreflect.MessageType { + return _fastReflection_TopicIdAndBlockHeight_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdAndBlockHeight) New() protoreflect.Message { + return new(fastReflection_TopicIdAndBlockHeight) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdAndBlockHeight) Interface() protoreflect.ProtoMessage { + return (*TopicIdAndBlockHeight)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdAndBlockHeight) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdAndBlockHeight_TopicId, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_TopicIdAndBlockHeight_BlockHeight, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdAndBlockHeight) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdAndBlockHeight.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdAndBlockHeight.BlockHeight": + return x.BlockHeight != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndBlockHeight does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndBlockHeight) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdAndBlockHeight.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdAndBlockHeight.BlockHeight": + x.BlockHeight = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndBlockHeight does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdAndBlockHeight) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdAndBlockHeight.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdAndBlockHeight.BlockHeight": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndBlockHeight does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndBlockHeight) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdAndBlockHeight.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdAndBlockHeight.BlockHeight": + x.BlockHeight = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndBlockHeight does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndBlockHeight) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdAndBlockHeight.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdAndBlockHeight is not mutable")) + case "emissions.v2.TopicIdAndBlockHeight.BlockHeight": + panic(fmt.Errorf("field BlockHeight of message emissions.v2.TopicIdAndBlockHeight is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndBlockHeight does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdAndBlockHeight) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdAndBlockHeight.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdAndBlockHeight.BlockHeight": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndBlockHeight does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdAndBlockHeight) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdAndBlockHeight", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdAndBlockHeight) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndBlockHeight) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdAndBlockHeight) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdAndBlockHeight) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdAndBlockHeight) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdAndBlockHeight) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdAndBlockHeight) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdAndBlockHeight: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdAndBlockHeight: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdBlockHeightScores protoreflect.MessageDescriptor + fd_TopicIdBlockHeightScores_TopicId protoreflect.FieldDescriptor + fd_TopicIdBlockHeightScores_BlockHeight protoreflect.FieldDescriptor + fd_TopicIdBlockHeightScores_Scores protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdBlockHeightScores = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdBlockHeightScores") + fd_TopicIdBlockHeightScores_TopicId = md_TopicIdBlockHeightScores.Fields().ByName("TopicId") + fd_TopicIdBlockHeightScores_BlockHeight = md_TopicIdBlockHeightScores.Fields().ByName("BlockHeight") + fd_TopicIdBlockHeightScores_Scores = md_TopicIdBlockHeightScores.Fields().ByName("Scores") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdBlockHeightScores)(nil) + +type fastReflection_TopicIdBlockHeightScores TopicIdBlockHeightScores + +func (x *TopicIdBlockHeightScores) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdBlockHeightScores)(x) +} + +func (x *TopicIdBlockHeightScores) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdBlockHeightScores_messageType fastReflection_TopicIdBlockHeightScores_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdBlockHeightScores_messageType{} + +type fastReflection_TopicIdBlockHeightScores_messageType struct{} + +func (x fastReflection_TopicIdBlockHeightScores_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdBlockHeightScores)(nil) +} +func (x fastReflection_TopicIdBlockHeightScores_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdBlockHeightScores) +} +func (x fastReflection_TopicIdBlockHeightScores_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdBlockHeightScores +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdBlockHeightScores) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdBlockHeightScores +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdBlockHeightScores) Type() protoreflect.MessageType { + return _fastReflection_TopicIdBlockHeightScores_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdBlockHeightScores) New() protoreflect.Message { + return new(fastReflection_TopicIdBlockHeightScores) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdBlockHeightScores) Interface() protoreflect.ProtoMessage { + return (*TopicIdBlockHeightScores)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdBlockHeightScores) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdBlockHeightScores_TopicId, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_TopicIdBlockHeightScores_BlockHeight, value) { + return + } + } + if x.Scores != nil { + value := protoreflect.ValueOfMessage(x.Scores.ProtoReflect()) + if !f(fd_TopicIdBlockHeightScores_Scores, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdBlockHeightScores) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightScores.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdBlockHeightScores.BlockHeight": + return x.BlockHeight != int64(0) + case "emissions.v2.TopicIdBlockHeightScores.Scores": + return x.Scores != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightScores")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightScores does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightScores) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightScores.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdBlockHeightScores.BlockHeight": + x.BlockHeight = int64(0) + case "emissions.v2.TopicIdBlockHeightScores.Scores": + x.Scores = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightScores")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightScores does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdBlockHeightScores) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdBlockHeightScores.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdBlockHeightScores.BlockHeight": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "emissions.v2.TopicIdBlockHeightScores.Scores": + value := x.Scores + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightScores")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightScores does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightScores) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightScores.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdBlockHeightScores.BlockHeight": + x.BlockHeight = value.Int() + case "emissions.v2.TopicIdBlockHeightScores.Scores": + x.Scores = value.Message().Interface().(*Scores) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightScores")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightScores does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightScores) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightScores.Scores": + if x.Scores == nil { + x.Scores = new(Scores) + } + return protoreflect.ValueOfMessage(x.Scores.ProtoReflect()) + case "emissions.v2.TopicIdBlockHeightScores.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdBlockHeightScores is not mutable")) + case "emissions.v2.TopicIdBlockHeightScores.BlockHeight": + panic(fmt.Errorf("field BlockHeight of message emissions.v2.TopicIdBlockHeightScores is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightScores")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightScores does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdBlockHeightScores) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightScores.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdBlockHeightScores.BlockHeight": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.TopicIdBlockHeightScores.Scores": + m := new(Scores) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightScores")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightScores does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdBlockHeightScores) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdBlockHeightScores", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdBlockHeightScores) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightScores) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdBlockHeightScores) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdBlockHeightScores) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdBlockHeightScores) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Scores != nil { + l = options.Size(x.Scores) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdBlockHeightScores) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Scores != nil { + encoded, err := options.Marshal(x.Scores) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdBlockHeightScores) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdBlockHeightScores: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdBlockHeightScores: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Scores", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Scores == nil { + x.Scores = &Scores{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Scores); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdActorIdScore protoreflect.MessageDescriptor + fd_TopicIdActorIdScore_TopicId protoreflect.FieldDescriptor + fd_TopicIdActorIdScore_ActorId protoreflect.FieldDescriptor + fd_TopicIdActorIdScore_Score protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdActorIdScore = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdActorIdScore") + fd_TopicIdActorIdScore_TopicId = md_TopicIdActorIdScore.Fields().ByName("TopicId") + fd_TopicIdActorIdScore_ActorId = md_TopicIdActorIdScore.Fields().ByName("ActorId") + fd_TopicIdActorIdScore_Score = md_TopicIdActorIdScore.Fields().ByName("Score") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdActorIdScore)(nil) + +type fastReflection_TopicIdActorIdScore TopicIdActorIdScore + +func (x *TopicIdActorIdScore) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdActorIdScore)(x) +} + +func (x *TopicIdActorIdScore) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdActorIdScore_messageType fastReflection_TopicIdActorIdScore_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdActorIdScore_messageType{} + +type fastReflection_TopicIdActorIdScore_messageType struct{} + +func (x fastReflection_TopicIdActorIdScore_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdActorIdScore)(nil) +} +func (x fastReflection_TopicIdActorIdScore_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdScore) +} +func (x fastReflection_TopicIdActorIdScore_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdScore +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdActorIdScore) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdScore +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdActorIdScore) Type() protoreflect.MessageType { + return _fastReflection_TopicIdActorIdScore_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdActorIdScore) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdScore) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdActorIdScore) Interface() protoreflect.ProtoMessage { + return (*TopicIdActorIdScore)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdActorIdScore) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdActorIdScore_TopicId, value) { + return + } + } + if x.ActorId != "" { + value := protoreflect.ValueOfString(x.ActorId) + if !f(fd_TopicIdActorIdScore_ActorId, value) { + return + } + } + if x.Score != nil { + value := protoreflect.ValueOfMessage(x.Score.ProtoReflect()) + if !f(fd_TopicIdActorIdScore_Score, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdActorIdScore) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdScore.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdActorIdScore.ActorId": + return x.ActorId != "" + case "emissions.v2.TopicIdActorIdScore.Score": + return x.Score != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdScore")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdScore does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdScore) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdScore.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdActorIdScore.ActorId": + x.ActorId = "" + case "emissions.v2.TopicIdActorIdScore.Score": + x.Score = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdScore")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdScore does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdActorIdScore) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdActorIdScore.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdActorIdScore.ActorId": + value := x.ActorId + return protoreflect.ValueOfString(value) + case "emissions.v2.TopicIdActorIdScore.Score": + value := x.Score + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdScore")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdScore does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdScore) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdScore.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdActorIdScore.ActorId": + x.ActorId = value.Interface().(string) + case "emissions.v2.TopicIdActorIdScore.Score": + x.Score = value.Message().Interface().(*Score) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdScore")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdScore does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdScore) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdScore.Score": + if x.Score == nil { + x.Score = new(Score) + } + return protoreflect.ValueOfMessage(x.Score.ProtoReflect()) + case "emissions.v2.TopicIdActorIdScore.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdActorIdScore is not mutable")) + case "emissions.v2.TopicIdActorIdScore.ActorId": + panic(fmt.Errorf("field ActorId of message emissions.v2.TopicIdActorIdScore is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdScore")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdScore does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdActorIdScore) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdScore.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdActorIdScore.ActorId": + return protoreflect.ValueOfString("") + case "emissions.v2.TopicIdActorIdScore.Score": + m := new(Score) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdScore")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdScore does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdActorIdScore) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdActorIdScore", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdActorIdScore) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdScore) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdActorIdScore) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdActorIdScore) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdActorIdScore) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.ActorId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Score != nil { + l = options.Size(x.Score) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdScore) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Score != nil { + encoded, err := options.Marshal(x.Score) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.ActorId) > 0 { + i -= len(x.ActorId) + copy(dAtA[i:], x.ActorId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ActorId))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdScore) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdScore: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdScore: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Score", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Score == nil { + x.Score = &Score{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Score); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdActorIdListeningCoefficient protoreflect.MessageDescriptor + fd_TopicIdActorIdListeningCoefficient_TopicId protoreflect.FieldDescriptor + fd_TopicIdActorIdListeningCoefficient_ActorId protoreflect.FieldDescriptor + fd_TopicIdActorIdListeningCoefficient_ListeningCoefficient protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdActorIdListeningCoefficient = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdActorIdListeningCoefficient") + fd_TopicIdActorIdListeningCoefficient_TopicId = md_TopicIdActorIdListeningCoefficient.Fields().ByName("TopicId") + fd_TopicIdActorIdListeningCoefficient_ActorId = md_TopicIdActorIdListeningCoefficient.Fields().ByName("ActorId") + fd_TopicIdActorIdListeningCoefficient_ListeningCoefficient = md_TopicIdActorIdListeningCoefficient.Fields().ByName("ListeningCoefficient") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdActorIdListeningCoefficient)(nil) + +type fastReflection_TopicIdActorIdListeningCoefficient TopicIdActorIdListeningCoefficient + +func (x *TopicIdActorIdListeningCoefficient) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdActorIdListeningCoefficient)(x) +} + +func (x *TopicIdActorIdListeningCoefficient) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdActorIdListeningCoefficient_messageType fastReflection_TopicIdActorIdListeningCoefficient_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdActorIdListeningCoefficient_messageType{} + +type fastReflection_TopicIdActorIdListeningCoefficient_messageType struct{} + +func (x fastReflection_TopicIdActorIdListeningCoefficient_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdActorIdListeningCoefficient)(nil) +} +func (x fastReflection_TopicIdActorIdListeningCoefficient_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdListeningCoefficient) +} +func (x fastReflection_TopicIdActorIdListeningCoefficient_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdListeningCoefficient +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdListeningCoefficient +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) Type() protoreflect.MessageType { + return _fastReflection_TopicIdActorIdListeningCoefficient_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdListeningCoefficient) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) Interface() protoreflect.ProtoMessage { + return (*TopicIdActorIdListeningCoefficient)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdActorIdListeningCoefficient_TopicId, value) { + return + } + } + if x.ActorId != "" { + value := protoreflect.ValueOfString(x.ActorId) + if !f(fd_TopicIdActorIdListeningCoefficient_ActorId, value) { + return + } + } + if x.ListeningCoefficient != nil { + value := protoreflect.ValueOfMessage(x.ListeningCoefficient.ProtoReflect()) + if !f(fd_TopicIdActorIdListeningCoefficient_ListeningCoefficient, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdListeningCoefficient.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdActorIdListeningCoefficient.ActorId": + return x.ActorId != "" + case "emissions.v2.TopicIdActorIdListeningCoefficient.ListeningCoefficient": + return x.ListeningCoefficient != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdListeningCoefficient")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdListeningCoefficient does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdListeningCoefficient.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdActorIdListeningCoefficient.ActorId": + x.ActorId = "" + case "emissions.v2.TopicIdActorIdListeningCoefficient.ListeningCoefficient": + x.ListeningCoefficient = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdListeningCoefficient")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdListeningCoefficient does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdActorIdListeningCoefficient.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdActorIdListeningCoefficient.ActorId": + value := x.ActorId + return protoreflect.ValueOfString(value) + case "emissions.v2.TopicIdActorIdListeningCoefficient.ListeningCoefficient": + value := x.ListeningCoefficient + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdListeningCoefficient")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdListeningCoefficient does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdListeningCoefficient.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdActorIdListeningCoefficient.ActorId": + x.ActorId = value.Interface().(string) + case "emissions.v2.TopicIdActorIdListeningCoefficient.ListeningCoefficient": + x.ListeningCoefficient = value.Message().Interface().(*ListeningCoefficient) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdListeningCoefficient")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdListeningCoefficient does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdListeningCoefficient.ListeningCoefficient": + if x.ListeningCoefficient == nil { + x.ListeningCoefficient = new(ListeningCoefficient) + } + return protoreflect.ValueOfMessage(x.ListeningCoefficient.ProtoReflect()) + case "emissions.v2.TopicIdActorIdListeningCoefficient.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdActorIdListeningCoefficient is not mutable")) + case "emissions.v2.TopicIdActorIdListeningCoefficient.ActorId": + panic(fmt.Errorf("field ActorId of message emissions.v2.TopicIdActorIdListeningCoefficient is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdListeningCoefficient")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdListeningCoefficient does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdListeningCoefficient.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdActorIdListeningCoefficient.ActorId": + return protoreflect.ValueOfString("") + case "emissions.v2.TopicIdActorIdListeningCoefficient.ListeningCoefficient": + m := new(ListeningCoefficient) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdListeningCoefficient")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdListeningCoefficient does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdActorIdListeningCoefficient", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdActorIdListeningCoefficient) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdActorIdListeningCoefficient) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.ActorId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.ListeningCoefficient != nil { + l = options.Size(x.ListeningCoefficient) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdListeningCoefficient) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.ListeningCoefficient != nil { + encoded, err := options.Marshal(x.ListeningCoefficient) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.ActorId) > 0 { + i -= len(x.ActorId) + copy(dAtA[i:], x.ActorId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ActorId))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdListeningCoefficient) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdListeningCoefficient: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdListeningCoefficient: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ListeningCoefficient", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.ListeningCoefficient == nil { + x.ListeningCoefficient = &ListeningCoefficient{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ListeningCoefficient); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdActorIdDec protoreflect.MessageDescriptor + fd_TopicIdActorIdDec_TopicId protoreflect.FieldDescriptor + fd_TopicIdActorIdDec_ActorId protoreflect.FieldDescriptor + fd_TopicIdActorIdDec_Dec protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdActorIdDec = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdActorIdDec") + fd_TopicIdActorIdDec_TopicId = md_TopicIdActorIdDec.Fields().ByName("TopicId") + fd_TopicIdActorIdDec_ActorId = md_TopicIdActorIdDec.Fields().ByName("ActorId") + fd_TopicIdActorIdDec_Dec = md_TopicIdActorIdDec.Fields().ByName("Dec") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdActorIdDec)(nil) + +type fastReflection_TopicIdActorIdDec TopicIdActorIdDec + +func (x *TopicIdActorIdDec) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdActorIdDec)(x) +} + +func (x *TopicIdActorIdDec) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdActorIdDec_messageType fastReflection_TopicIdActorIdDec_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdActorIdDec_messageType{} + +type fastReflection_TopicIdActorIdDec_messageType struct{} + +func (x fastReflection_TopicIdActorIdDec_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdActorIdDec)(nil) +} +func (x fastReflection_TopicIdActorIdDec_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdDec) +} +func (x fastReflection_TopicIdActorIdDec_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdDec +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdActorIdDec) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdDec +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdActorIdDec) Type() protoreflect.MessageType { + return _fastReflection_TopicIdActorIdDec_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdActorIdDec) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdDec) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdActorIdDec) Interface() protoreflect.ProtoMessage { + return (*TopicIdActorIdDec)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdActorIdDec) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdActorIdDec_TopicId, value) { + return + } + } + if x.ActorId != "" { + value := protoreflect.ValueOfString(x.ActorId) + if !f(fd_TopicIdActorIdDec_ActorId, value) { + return + } + } + if x.Dec != "" { + value := protoreflect.ValueOfString(x.Dec) + if !f(fd_TopicIdActorIdDec_Dec, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdActorIdDec) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdDec.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdActorIdDec.ActorId": + return x.ActorId != "" + case "emissions.v2.TopicIdActorIdDec.Dec": + return x.Dec != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdDec")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdDec does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdDec) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdDec.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdActorIdDec.ActorId": + x.ActorId = "" + case "emissions.v2.TopicIdActorIdDec.Dec": + x.Dec = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdDec")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdDec does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdActorIdDec) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdActorIdDec.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdActorIdDec.ActorId": + value := x.ActorId + return protoreflect.ValueOfString(value) + case "emissions.v2.TopicIdActorIdDec.Dec": + value := x.Dec + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdDec")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdDec does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdDec) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdDec.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdActorIdDec.ActorId": + x.ActorId = value.Interface().(string) + case "emissions.v2.TopicIdActorIdDec.Dec": + x.Dec = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdDec")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdDec does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdDec) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdDec.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdActorIdDec is not mutable")) + case "emissions.v2.TopicIdActorIdDec.ActorId": + panic(fmt.Errorf("field ActorId of message emissions.v2.TopicIdActorIdDec is not mutable")) + case "emissions.v2.TopicIdActorIdDec.Dec": + panic(fmt.Errorf("field Dec of message emissions.v2.TopicIdActorIdDec is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdDec")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdDec does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdActorIdDec) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdDec.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdActorIdDec.ActorId": + return protoreflect.ValueOfString("") + case "emissions.v2.TopicIdActorIdDec.Dec": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdDec")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdDec does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdActorIdDec) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdActorIdDec", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdActorIdDec) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdDec) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdActorIdDec) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdActorIdDec) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdActorIdDec) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.ActorId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Dec) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdDec) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Dec) > 0 { + i -= len(x.Dec) + copy(dAtA[i:], x.Dec) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Dec))) + i-- + dAtA[i] = 0x1a + } + if len(x.ActorId) > 0 { + i -= len(x.ActorId) + copy(dAtA[i:], x.ActorId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ActorId))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdDec) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdDec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdDec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Dec", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Dec = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdAndInt protoreflect.MessageDescriptor + fd_TopicIdAndInt_TopicId protoreflect.FieldDescriptor + fd_TopicIdAndInt_Int protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdAndInt = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdAndInt") + fd_TopicIdAndInt_TopicId = md_TopicIdAndInt.Fields().ByName("TopicId") + fd_TopicIdAndInt_Int = md_TopicIdAndInt.Fields().ByName("Int") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdAndInt)(nil) + +type fastReflection_TopicIdAndInt TopicIdAndInt + +func (x *TopicIdAndInt) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdAndInt)(x) +} + +func (x *TopicIdAndInt) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdAndInt_messageType fastReflection_TopicIdAndInt_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdAndInt_messageType{} + +type fastReflection_TopicIdAndInt_messageType struct{} + +func (x fastReflection_TopicIdAndInt_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdAndInt)(nil) +} +func (x fastReflection_TopicIdAndInt_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdAndInt) +} +func (x fastReflection_TopicIdAndInt_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdAndInt +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdAndInt) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdAndInt +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdAndInt) Type() protoreflect.MessageType { + return _fastReflection_TopicIdAndInt_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdAndInt) New() protoreflect.Message { + return new(fastReflection_TopicIdAndInt) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdAndInt) Interface() protoreflect.ProtoMessage { + return (*TopicIdAndInt)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdAndInt) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdAndInt_TopicId, value) { + return + } + } + if x.Int != "" { + value := protoreflect.ValueOfString(x.Int) + if !f(fd_TopicIdAndInt_Int, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdAndInt) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdAndInt.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdAndInt.Int": + return x.Int != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndInt")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndInt does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndInt) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdAndInt.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdAndInt.Int": + x.Int = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndInt")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndInt does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdAndInt) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdAndInt.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdAndInt.Int": + value := x.Int + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndInt")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndInt does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndInt) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdAndInt.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdAndInt.Int": + x.Int = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndInt")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndInt does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndInt) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdAndInt.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdAndInt is not mutable")) + case "emissions.v2.TopicIdAndInt.Int": + panic(fmt.Errorf("field Int of message emissions.v2.TopicIdAndInt is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndInt")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndInt does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdAndInt) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdAndInt.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdAndInt.Int": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndInt")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndInt does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdAndInt) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdAndInt", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdAndInt) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndInt) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdAndInt) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdAndInt) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdAndInt) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.Int) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdAndInt) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Int) > 0 { + i -= len(x.Int) + copy(dAtA[i:], x.Int) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Int))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdAndInt) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdAndInt: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdAndInt: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Int", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Int = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdActorIdInt protoreflect.MessageDescriptor + fd_TopicIdActorIdInt_TopicId protoreflect.FieldDescriptor + fd_TopicIdActorIdInt_ActorId protoreflect.FieldDescriptor + fd_TopicIdActorIdInt_Int protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdActorIdInt = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdActorIdInt") + fd_TopicIdActorIdInt_TopicId = md_TopicIdActorIdInt.Fields().ByName("TopicId") + fd_TopicIdActorIdInt_ActorId = md_TopicIdActorIdInt.Fields().ByName("ActorId") + fd_TopicIdActorIdInt_Int = md_TopicIdActorIdInt.Fields().ByName("Int") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdActorIdInt)(nil) + +type fastReflection_TopicIdActorIdInt TopicIdActorIdInt + +func (x *TopicIdActorIdInt) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdActorIdInt)(x) +} + +func (x *TopicIdActorIdInt) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdActorIdInt_messageType fastReflection_TopicIdActorIdInt_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdActorIdInt_messageType{} + +type fastReflection_TopicIdActorIdInt_messageType struct{} + +func (x fastReflection_TopicIdActorIdInt_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdActorIdInt)(nil) +} +func (x fastReflection_TopicIdActorIdInt_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdInt) +} +func (x fastReflection_TopicIdActorIdInt_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdInt +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdActorIdInt) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdInt +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdActorIdInt) Type() protoreflect.MessageType { + return _fastReflection_TopicIdActorIdInt_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdActorIdInt) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdInt) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdActorIdInt) Interface() protoreflect.ProtoMessage { + return (*TopicIdActorIdInt)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdActorIdInt) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdActorIdInt_TopicId, value) { + return + } + } + if x.ActorId != "" { + value := protoreflect.ValueOfString(x.ActorId) + if !f(fd_TopicIdActorIdInt_ActorId, value) { + return + } + } + if x.Int != "" { + value := protoreflect.ValueOfString(x.Int) + if !f(fd_TopicIdActorIdInt_Int, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdActorIdInt) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdInt.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdActorIdInt.ActorId": + return x.ActorId != "" + case "emissions.v2.TopicIdActorIdInt.Int": + return x.Int != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdInt")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdInt does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdInt) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdInt.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdActorIdInt.ActorId": + x.ActorId = "" + case "emissions.v2.TopicIdActorIdInt.Int": + x.Int = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdInt")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdInt does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdActorIdInt) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdActorIdInt.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdActorIdInt.ActorId": + value := x.ActorId + return protoreflect.ValueOfString(value) + case "emissions.v2.TopicIdActorIdInt.Int": + value := x.Int + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdInt")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdInt does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdInt) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdInt.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdActorIdInt.ActorId": + x.ActorId = value.Interface().(string) + case "emissions.v2.TopicIdActorIdInt.Int": + x.Int = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdInt")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdInt does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdInt) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdInt.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdActorIdInt is not mutable")) + case "emissions.v2.TopicIdActorIdInt.ActorId": + panic(fmt.Errorf("field ActorId of message emissions.v2.TopicIdActorIdInt is not mutable")) + case "emissions.v2.TopicIdActorIdInt.Int": + panic(fmt.Errorf("field Int of message emissions.v2.TopicIdActorIdInt is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdInt")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdInt does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdActorIdInt) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdInt.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdActorIdInt.ActorId": + return protoreflect.ValueOfString("") + case "emissions.v2.TopicIdActorIdInt.Int": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdInt")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdInt does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdActorIdInt) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdActorIdInt", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdActorIdInt) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdInt) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdActorIdInt) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdActorIdInt) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdActorIdInt) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.ActorId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Int) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdInt) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Int) > 0 { + i -= len(x.Int) + copy(dAtA[i:], x.Int) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Int))) + i-- + dAtA[i] = 0x1a + } + if len(x.ActorId) > 0 { + i -= len(x.ActorId) + copy(dAtA[i:], x.ActorId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ActorId))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdInt) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdInt: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdInt: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Int", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Int = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdDelegatorReputerDelegatorInfo protoreflect.MessageDescriptor + fd_TopicIdDelegatorReputerDelegatorInfo_TopicId protoreflect.FieldDescriptor + fd_TopicIdDelegatorReputerDelegatorInfo_Delegator protoreflect.FieldDescriptor + fd_TopicIdDelegatorReputerDelegatorInfo_Reputer protoreflect.FieldDescriptor + fd_TopicIdDelegatorReputerDelegatorInfo_DelegatorInfo protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdDelegatorReputerDelegatorInfo = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdDelegatorReputerDelegatorInfo") + fd_TopicIdDelegatorReputerDelegatorInfo_TopicId = md_TopicIdDelegatorReputerDelegatorInfo.Fields().ByName("TopicId") + fd_TopicIdDelegatorReputerDelegatorInfo_Delegator = md_TopicIdDelegatorReputerDelegatorInfo.Fields().ByName("Delegator") + fd_TopicIdDelegatorReputerDelegatorInfo_Reputer = md_TopicIdDelegatorReputerDelegatorInfo.Fields().ByName("Reputer") + fd_TopicIdDelegatorReputerDelegatorInfo_DelegatorInfo = md_TopicIdDelegatorReputerDelegatorInfo.Fields().ByName("DelegatorInfo") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdDelegatorReputerDelegatorInfo)(nil) + +type fastReflection_TopicIdDelegatorReputerDelegatorInfo TopicIdDelegatorReputerDelegatorInfo + +func (x *TopicIdDelegatorReputerDelegatorInfo) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdDelegatorReputerDelegatorInfo)(x) +} + +func (x *TopicIdDelegatorReputerDelegatorInfo) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdDelegatorReputerDelegatorInfo_messageType fastReflection_TopicIdDelegatorReputerDelegatorInfo_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdDelegatorReputerDelegatorInfo_messageType{} + +type fastReflection_TopicIdDelegatorReputerDelegatorInfo_messageType struct{} + +func (x fastReflection_TopicIdDelegatorReputerDelegatorInfo_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdDelegatorReputerDelegatorInfo)(nil) +} +func (x fastReflection_TopicIdDelegatorReputerDelegatorInfo_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdDelegatorReputerDelegatorInfo) +} +func (x fastReflection_TopicIdDelegatorReputerDelegatorInfo_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdDelegatorReputerDelegatorInfo +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdDelegatorReputerDelegatorInfo +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) Type() protoreflect.MessageType { + return _fastReflection_TopicIdDelegatorReputerDelegatorInfo_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) New() protoreflect.Message { + return new(fastReflection_TopicIdDelegatorReputerDelegatorInfo) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) Interface() protoreflect.ProtoMessage { + return (*TopicIdDelegatorReputerDelegatorInfo)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdDelegatorReputerDelegatorInfo_TopicId, value) { + return + } + } + if x.Delegator != "" { + value := protoreflect.ValueOfString(x.Delegator) + if !f(fd_TopicIdDelegatorReputerDelegatorInfo_Delegator, value) { + return + } + } + if x.Reputer != "" { + value := protoreflect.ValueOfString(x.Reputer) + if !f(fd_TopicIdDelegatorReputerDelegatorInfo_Reputer, value) { + return + } + } + if x.DelegatorInfo != nil { + value := protoreflect.ValueOfMessage(x.DelegatorInfo.ProtoReflect()) + if !f(fd_TopicIdDelegatorReputerDelegatorInfo_DelegatorInfo, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.Delegator": + return x.Delegator != "" + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.Reputer": + return x.Reputer != "" + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.DelegatorInfo": + return x.DelegatorInfo != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdDelegatorReputerDelegatorInfo")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdDelegatorReputerDelegatorInfo does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.Delegator": + x.Delegator = "" + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.Reputer": + x.Reputer = "" + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.DelegatorInfo": + x.DelegatorInfo = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdDelegatorReputerDelegatorInfo")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdDelegatorReputerDelegatorInfo does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.Delegator": + value := x.Delegator + return protoreflect.ValueOfString(value) + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.Reputer": + value := x.Reputer + return protoreflect.ValueOfString(value) + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.DelegatorInfo": + value := x.DelegatorInfo + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdDelegatorReputerDelegatorInfo")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdDelegatorReputerDelegatorInfo does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.Delegator": + x.Delegator = value.Interface().(string) + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.Reputer": + x.Reputer = value.Interface().(string) + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.DelegatorInfo": + x.DelegatorInfo = value.Message().Interface().(*DelegatorInfo) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdDelegatorReputerDelegatorInfo")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdDelegatorReputerDelegatorInfo does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.DelegatorInfo": + if x.DelegatorInfo == nil { + x.DelegatorInfo = new(DelegatorInfo) + } + return protoreflect.ValueOfMessage(x.DelegatorInfo.ProtoReflect()) + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdDelegatorReputerDelegatorInfo is not mutable")) + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.Delegator": + panic(fmt.Errorf("field Delegator of message emissions.v2.TopicIdDelegatorReputerDelegatorInfo is not mutable")) + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.Reputer": + panic(fmt.Errorf("field Reputer of message emissions.v2.TopicIdDelegatorReputerDelegatorInfo is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdDelegatorReputerDelegatorInfo")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdDelegatorReputerDelegatorInfo does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.Delegator": + return protoreflect.ValueOfString("") + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.Reputer": + return protoreflect.ValueOfString("") + case "emissions.v2.TopicIdDelegatorReputerDelegatorInfo.DelegatorInfo": + m := new(DelegatorInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdDelegatorReputerDelegatorInfo")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdDelegatorReputerDelegatorInfo does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdDelegatorReputerDelegatorInfo", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdDelegatorReputerDelegatorInfo) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdDelegatorReputerDelegatorInfo) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.Delegator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reputer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.DelegatorInfo != nil { + l = options.Size(x.DelegatorInfo) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdDelegatorReputerDelegatorInfo) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.DelegatorInfo != nil { + encoded, err := options.Marshal(x.DelegatorInfo) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if len(x.Reputer) > 0 { + i -= len(x.Reputer) + copy(dAtA[i:], x.Reputer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) + i-- + dAtA[i] = 0x1a + } + if len(x.Delegator) > 0 { + i -= len(x.Delegator) + copy(dAtA[i:], x.Delegator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Delegator))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdDelegatorReputerDelegatorInfo) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdDelegatorReputerDelegatorInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdDelegatorReputerDelegatorInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Delegator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Delegator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DelegatorInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.DelegatorInfo == nil { + x.DelegatorInfo = &DelegatorInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DelegatorInfo); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_BlockHeightTopicIdReputerStakeRemovalInfo protoreflect.MessageDescriptor + fd_BlockHeightTopicIdReputerStakeRemovalInfo_BlockHeight protoreflect.FieldDescriptor + fd_BlockHeightTopicIdReputerStakeRemovalInfo_TopicId protoreflect.FieldDescriptor + fd_BlockHeightTopicIdReputerStakeRemovalInfo_Reputer protoreflect.FieldDescriptor + fd_BlockHeightTopicIdReputerStakeRemovalInfo_StakeRemovalInfo protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_BlockHeightTopicIdReputerStakeRemovalInfo = File_emissions_v2_genesis_proto.Messages().ByName("BlockHeightTopicIdReputerStakeRemovalInfo") + fd_BlockHeightTopicIdReputerStakeRemovalInfo_BlockHeight = md_BlockHeightTopicIdReputerStakeRemovalInfo.Fields().ByName("BlockHeight") + fd_BlockHeightTopicIdReputerStakeRemovalInfo_TopicId = md_BlockHeightTopicIdReputerStakeRemovalInfo.Fields().ByName("TopicId") + fd_BlockHeightTopicIdReputerStakeRemovalInfo_Reputer = md_BlockHeightTopicIdReputerStakeRemovalInfo.Fields().ByName("Reputer") + fd_BlockHeightTopicIdReputerStakeRemovalInfo_StakeRemovalInfo = md_BlockHeightTopicIdReputerStakeRemovalInfo.Fields().ByName("StakeRemovalInfo") +} + +var _ protoreflect.Message = (*fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo)(nil) + +type fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo BlockHeightTopicIdReputerStakeRemovalInfo + +func (x *BlockHeightTopicIdReputerStakeRemovalInfo) ProtoReflect() protoreflect.Message { + return (*fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo)(x) +} + +func (x *BlockHeightTopicIdReputerStakeRemovalInfo) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo_messageType fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo_messageType +var _ protoreflect.MessageType = fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo_messageType{} + +type fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo_messageType struct{} + +func (x fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo_messageType) Zero() protoreflect.Message { + return (*fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo)(nil) +} +func (x fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo_messageType) New() protoreflect.Message { + return new(fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) +} +func (x fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BlockHeightTopicIdReputerStakeRemovalInfo +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) Descriptor() protoreflect.MessageDescriptor { + return md_BlockHeightTopicIdReputerStakeRemovalInfo +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) Type() protoreflect.MessageType { + return _fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) New() protoreflect.Message { + return new(fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) Interface() protoreflect.ProtoMessage { + return (*BlockHeightTopicIdReputerStakeRemovalInfo)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_BlockHeightTopicIdReputerStakeRemovalInfo_BlockHeight, value) { + return + } + } + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_BlockHeightTopicIdReputerStakeRemovalInfo_TopicId, value) { + return + } + } + if x.Reputer != "" { + value := protoreflect.ValueOfString(x.Reputer) + if !f(fd_BlockHeightTopicIdReputerStakeRemovalInfo_Reputer, value) { + return + } + } + if x.StakeRemovalInfo != nil { + value := protoreflect.ValueOfMessage(x.StakeRemovalInfo.ProtoReflect()) + if !f(fd_BlockHeightTopicIdReputerStakeRemovalInfo_StakeRemovalInfo, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.BlockHeight": + return x.BlockHeight != int64(0) + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.Reputer": + return x.Reputer != "" + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.StakeRemovalInfo": + return x.StakeRemovalInfo != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo")) + } + panic(fmt.Errorf("message emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.BlockHeight": + x.BlockHeight = int64(0) + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.Reputer": + x.Reputer = "" + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.StakeRemovalInfo": + x.StakeRemovalInfo = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo")) + } + panic(fmt.Errorf("message emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.BlockHeight": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.Reputer": + value := x.Reputer + return protoreflect.ValueOfString(value) + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.StakeRemovalInfo": + value := x.StakeRemovalInfo + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo")) + } + panic(fmt.Errorf("message emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.BlockHeight": + x.BlockHeight = value.Int() + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.Reputer": + x.Reputer = value.Interface().(string) + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.StakeRemovalInfo": + x.StakeRemovalInfo = value.Message().Interface().(*StakeRemovalInfo) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo")) + } + panic(fmt.Errorf("message emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.StakeRemovalInfo": + if x.StakeRemovalInfo == nil { + x.StakeRemovalInfo = new(StakeRemovalInfo) + } + return protoreflect.ValueOfMessage(x.StakeRemovalInfo.ProtoReflect()) + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.BlockHeight": + panic(fmt.Errorf("field BlockHeight of message emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo is not mutable")) + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo is not mutable")) + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.Reputer": + panic(fmt.Errorf("field Reputer of message emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo")) + } + panic(fmt.Errorf("message emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.BlockHeight": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.Reputer": + return protoreflect.ValueOfString("") + case "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.StakeRemovalInfo": + m := new(StakeRemovalInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo")) + } + panic(fmt.Errorf("message emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_BlockHeightTopicIdReputerStakeRemovalInfo) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BlockHeightTopicIdReputerStakeRemovalInfo) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.Reputer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.StakeRemovalInfo != nil { + l = options.Size(x.StakeRemovalInfo) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*BlockHeightTopicIdReputerStakeRemovalInfo) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.StakeRemovalInfo != nil { + encoded, err := options.Marshal(x.StakeRemovalInfo) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if len(x.Reputer) > 0 { + i -= len(x.Reputer) + copy(dAtA[i:], x.Reputer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) + i-- + dAtA[i] = 0x1a + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x10 + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*BlockHeightTopicIdReputerStakeRemovalInfo) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockHeightTopicIdReputerStakeRemovalInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockHeightTopicIdReputerStakeRemovalInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StakeRemovalInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.StakeRemovalInfo == nil { + x.StakeRemovalInfo = &StakeRemovalInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StakeRemovalInfo); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_ActorIdTopicIdBlockHeight protoreflect.MessageDescriptor + fd_ActorIdTopicIdBlockHeight_ActorId protoreflect.FieldDescriptor + fd_ActorIdTopicIdBlockHeight_TopicId protoreflect.FieldDescriptor + fd_ActorIdTopicIdBlockHeight_BlockHeight protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_ActorIdTopicIdBlockHeight = File_emissions_v2_genesis_proto.Messages().ByName("ActorIdTopicIdBlockHeight") + fd_ActorIdTopicIdBlockHeight_ActorId = md_ActorIdTopicIdBlockHeight.Fields().ByName("ActorId") + fd_ActorIdTopicIdBlockHeight_TopicId = md_ActorIdTopicIdBlockHeight.Fields().ByName("TopicId") + fd_ActorIdTopicIdBlockHeight_BlockHeight = md_ActorIdTopicIdBlockHeight.Fields().ByName("BlockHeight") +} + +var _ protoreflect.Message = (*fastReflection_ActorIdTopicIdBlockHeight)(nil) + +type fastReflection_ActorIdTopicIdBlockHeight ActorIdTopicIdBlockHeight + +func (x *ActorIdTopicIdBlockHeight) ProtoReflect() protoreflect.Message { + return (*fastReflection_ActorIdTopicIdBlockHeight)(x) +} + +func (x *ActorIdTopicIdBlockHeight) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_ActorIdTopicIdBlockHeight_messageType fastReflection_ActorIdTopicIdBlockHeight_messageType +var _ protoreflect.MessageType = fastReflection_ActorIdTopicIdBlockHeight_messageType{} + +type fastReflection_ActorIdTopicIdBlockHeight_messageType struct{} + +func (x fastReflection_ActorIdTopicIdBlockHeight_messageType) Zero() protoreflect.Message { + return (*fastReflection_ActorIdTopicIdBlockHeight)(nil) +} +func (x fastReflection_ActorIdTopicIdBlockHeight_messageType) New() protoreflect.Message { + return new(fastReflection_ActorIdTopicIdBlockHeight) +} +func (x fastReflection_ActorIdTopicIdBlockHeight_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ActorIdTopicIdBlockHeight +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ActorIdTopicIdBlockHeight) Descriptor() protoreflect.MessageDescriptor { + return md_ActorIdTopicIdBlockHeight +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ActorIdTopicIdBlockHeight) Type() protoreflect.MessageType { + return _fastReflection_ActorIdTopicIdBlockHeight_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ActorIdTopicIdBlockHeight) New() protoreflect.Message { + return new(fastReflection_ActorIdTopicIdBlockHeight) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ActorIdTopicIdBlockHeight) Interface() protoreflect.ProtoMessage { + return (*ActorIdTopicIdBlockHeight)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ActorIdTopicIdBlockHeight) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ActorId != "" { + value := protoreflect.ValueOfString(x.ActorId) + if !f(fd_ActorIdTopicIdBlockHeight_ActorId, value) { + return + } + } + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_ActorIdTopicIdBlockHeight_TopicId, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_ActorIdTopicIdBlockHeight_BlockHeight, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_ActorIdTopicIdBlockHeight) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.ActorIdTopicIdBlockHeight.ActorId": + return x.ActorId != "" + case "emissions.v2.ActorIdTopicIdBlockHeight.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.ActorIdTopicIdBlockHeight.BlockHeight": + return x.BlockHeight != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ActorIdTopicIdBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.ActorIdTopicIdBlockHeight does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ActorIdTopicIdBlockHeight) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.ActorIdTopicIdBlockHeight.ActorId": + x.ActorId = "" + case "emissions.v2.ActorIdTopicIdBlockHeight.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.ActorIdTopicIdBlockHeight.BlockHeight": + x.BlockHeight = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ActorIdTopicIdBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.ActorIdTopicIdBlockHeight does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ActorIdTopicIdBlockHeight) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.ActorIdTopicIdBlockHeight.ActorId": + value := x.ActorId + return protoreflect.ValueOfString(value) + case "emissions.v2.ActorIdTopicIdBlockHeight.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.ActorIdTopicIdBlockHeight.BlockHeight": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ActorIdTopicIdBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.ActorIdTopicIdBlockHeight does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ActorIdTopicIdBlockHeight) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.ActorIdTopicIdBlockHeight.ActorId": + x.ActorId = value.Interface().(string) + case "emissions.v2.ActorIdTopicIdBlockHeight.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.ActorIdTopicIdBlockHeight.BlockHeight": + x.BlockHeight = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ActorIdTopicIdBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.ActorIdTopicIdBlockHeight does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ActorIdTopicIdBlockHeight) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.ActorIdTopicIdBlockHeight.ActorId": + panic(fmt.Errorf("field ActorId of message emissions.v2.ActorIdTopicIdBlockHeight is not mutable")) + case "emissions.v2.ActorIdTopicIdBlockHeight.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.ActorIdTopicIdBlockHeight is not mutable")) + case "emissions.v2.ActorIdTopicIdBlockHeight.BlockHeight": + panic(fmt.Errorf("field BlockHeight of message emissions.v2.ActorIdTopicIdBlockHeight is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ActorIdTopicIdBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.ActorIdTopicIdBlockHeight does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ActorIdTopicIdBlockHeight) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.ActorIdTopicIdBlockHeight.ActorId": + return protoreflect.ValueOfString("") + case "emissions.v2.ActorIdTopicIdBlockHeight.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.ActorIdTopicIdBlockHeight.BlockHeight": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ActorIdTopicIdBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.ActorIdTopicIdBlockHeight does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ActorIdTopicIdBlockHeight) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.ActorIdTopicIdBlockHeight", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ActorIdTopicIdBlockHeight) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ActorIdTopicIdBlockHeight) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ActorIdTopicIdBlockHeight) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ActorIdTopicIdBlockHeight) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ActorIdTopicIdBlockHeight) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.ActorId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*ActorIdTopicIdBlockHeight) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x18 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(x.ActorId) > 0 { + i -= len(x.ActorId) + copy(dAtA[i:], x.ActorId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ActorId))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*ActorIdTopicIdBlockHeight) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ActorIdTopicIdBlockHeight: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ActorIdTopicIdBlockHeight: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo protoreflect.MessageDescriptor + fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_BlockHeight protoreflect.FieldDescriptor + fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_TopicId protoreflect.FieldDescriptor + fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_Delegator protoreflect.FieldDescriptor + fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_Reputer protoreflect.FieldDescriptor + fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_DelegateStakeRemovalInfo protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo = File_emissions_v2_genesis_proto.Messages().ByName("BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo") + fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_BlockHeight = md_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Fields().ByName("BlockHeight") + fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_TopicId = md_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Fields().ByName("TopicId") + fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_Delegator = md_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Fields().ByName("Delegator") + fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_Reputer = md_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Fields().ByName("Reputer") + fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_DelegateStakeRemovalInfo = md_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Fields().ByName("DelegateStakeRemovalInfo") +} + +var _ protoreflect.Message = (*fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo)(nil) + +type fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo + +func (x *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) ProtoReflect() protoreflect.Message { + return (*fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo)(x) +} + +func (x *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_messageType fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_messageType +var _ protoreflect.MessageType = fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_messageType{} + +type fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_messageType struct{} + +func (x fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_messageType) Zero() protoreflect.Message { + return (*fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo)(nil) +} +func (x fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_messageType) New() protoreflect.Message { + return new(fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) +} +func (x fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Descriptor() protoreflect.MessageDescriptor { + return md_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Type() protoreflect.MessageType { + return _fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) New() protoreflect.Message { + return new(fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Interface() protoreflect.ProtoMessage { + return (*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_BlockHeight, value) { + return + } + } + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_TopicId, value) { + return + } + } + if x.Delegator != "" { + value := protoreflect.ValueOfString(x.Delegator) + if !f(fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_Delegator, value) { + return + } + } + if x.Reputer != "" { + value := protoreflect.ValueOfString(x.Reputer) + if !f(fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_Reputer, value) { + return + } + } + if x.DelegateStakeRemovalInfo != nil { + value := protoreflect.ValueOfMessage(x.DelegateStakeRemovalInfo.ProtoReflect()) + if !f(fd_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo_DelegateStakeRemovalInfo, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.BlockHeight": + return x.BlockHeight != int64(0) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Delegator": + return x.Delegator != "" + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Reputer": + return x.Reputer != "" + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.DelegateStakeRemovalInfo": + return x.DelegateStakeRemovalInfo != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo")) + } + panic(fmt.Errorf("message emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.BlockHeight": + x.BlockHeight = int64(0) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Delegator": + x.Delegator = "" + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Reputer": + x.Reputer = "" + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.DelegateStakeRemovalInfo": + x.DelegateStakeRemovalInfo = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo")) + } + panic(fmt.Errorf("message emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.BlockHeight": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Delegator": + value := x.Delegator + return protoreflect.ValueOfString(value) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Reputer": + value := x.Reputer + return protoreflect.ValueOfString(value) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.DelegateStakeRemovalInfo": + value := x.DelegateStakeRemovalInfo + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo")) + } + panic(fmt.Errorf("message emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.BlockHeight": + x.BlockHeight = value.Int() + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Delegator": + x.Delegator = value.Interface().(string) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Reputer": + x.Reputer = value.Interface().(string) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.DelegateStakeRemovalInfo": + x.DelegateStakeRemovalInfo = value.Message().Interface().(*DelegateStakeRemovalInfo) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo")) + } + panic(fmt.Errorf("message emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.DelegateStakeRemovalInfo": + if x.DelegateStakeRemovalInfo == nil { + x.DelegateStakeRemovalInfo = new(DelegateStakeRemovalInfo) + } + return protoreflect.ValueOfMessage(x.DelegateStakeRemovalInfo.ProtoReflect()) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.BlockHeight": + panic(fmt.Errorf("field BlockHeight of message emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo is not mutable")) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo is not mutable")) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Delegator": + panic(fmt.Errorf("field Delegator of message emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo is not mutable")) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Reputer": + panic(fmt.Errorf("field Reputer of message emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo")) + } + panic(fmt.Errorf("message emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.BlockHeight": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Delegator": + return protoreflect.ValueOfString("") + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Reputer": + return protoreflect.ValueOfString("") + case "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.DelegateStakeRemovalInfo": + m := new(DelegateStakeRemovalInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo")) + } + panic(fmt.Errorf("message emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.Delegator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reputer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.DelegateStakeRemovalInfo != nil { + l = options.Size(x.DelegateStakeRemovalInfo) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.DelegateStakeRemovalInfo != nil { + encoded, err := options.Marshal(x.DelegateStakeRemovalInfo) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x2a + } + if len(x.Reputer) > 0 { + i -= len(x.Reputer) + copy(dAtA[i:], x.Reputer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) + i-- + dAtA[i] = 0x22 + } + if len(x.Delegator) > 0 { + i -= len(x.Delegator) + copy(dAtA[i:], x.Delegator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Delegator))) + i-- + dAtA[i] = 0x1a + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x10 + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Delegator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Delegator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DelegateStakeRemovalInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.DelegateStakeRemovalInfo == nil { + x.DelegateStakeRemovalInfo = &DelegateStakeRemovalInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DelegateStakeRemovalInfo); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_DelegatorReputerTopicIdBlockHeight protoreflect.MessageDescriptor + fd_DelegatorReputerTopicIdBlockHeight_Delegator protoreflect.FieldDescriptor + fd_DelegatorReputerTopicIdBlockHeight_Reputer protoreflect.FieldDescriptor + fd_DelegatorReputerTopicIdBlockHeight_TopicId protoreflect.FieldDescriptor + fd_DelegatorReputerTopicIdBlockHeight_BlockHeight protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_DelegatorReputerTopicIdBlockHeight = File_emissions_v2_genesis_proto.Messages().ByName("DelegatorReputerTopicIdBlockHeight") + fd_DelegatorReputerTopicIdBlockHeight_Delegator = md_DelegatorReputerTopicIdBlockHeight.Fields().ByName("Delegator") + fd_DelegatorReputerTopicIdBlockHeight_Reputer = md_DelegatorReputerTopicIdBlockHeight.Fields().ByName("Reputer") + fd_DelegatorReputerTopicIdBlockHeight_TopicId = md_DelegatorReputerTopicIdBlockHeight.Fields().ByName("TopicId") + fd_DelegatorReputerTopicIdBlockHeight_BlockHeight = md_DelegatorReputerTopicIdBlockHeight.Fields().ByName("BlockHeight") +} + +var _ protoreflect.Message = (*fastReflection_DelegatorReputerTopicIdBlockHeight)(nil) + +type fastReflection_DelegatorReputerTopicIdBlockHeight DelegatorReputerTopicIdBlockHeight + +func (x *DelegatorReputerTopicIdBlockHeight) ProtoReflect() protoreflect.Message { + return (*fastReflection_DelegatorReputerTopicIdBlockHeight)(x) +} + +func (x *DelegatorReputerTopicIdBlockHeight) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_DelegatorReputerTopicIdBlockHeight_messageType fastReflection_DelegatorReputerTopicIdBlockHeight_messageType +var _ protoreflect.MessageType = fastReflection_DelegatorReputerTopicIdBlockHeight_messageType{} + +type fastReflection_DelegatorReputerTopicIdBlockHeight_messageType struct{} + +func (x fastReflection_DelegatorReputerTopicIdBlockHeight_messageType) Zero() protoreflect.Message { + return (*fastReflection_DelegatorReputerTopicIdBlockHeight)(nil) +} +func (x fastReflection_DelegatorReputerTopicIdBlockHeight_messageType) New() protoreflect.Message { + return new(fastReflection_DelegatorReputerTopicIdBlockHeight) +} +func (x fastReflection_DelegatorReputerTopicIdBlockHeight_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_DelegatorReputerTopicIdBlockHeight +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) Descriptor() protoreflect.MessageDescriptor { + return md_DelegatorReputerTopicIdBlockHeight +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) Type() protoreflect.MessageType { + return _fastReflection_DelegatorReputerTopicIdBlockHeight_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) New() protoreflect.Message { + return new(fastReflection_DelegatorReputerTopicIdBlockHeight) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) Interface() protoreflect.ProtoMessage { + return (*DelegatorReputerTopicIdBlockHeight)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Delegator != "" { + value := protoreflect.ValueOfString(x.Delegator) + if !f(fd_DelegatorReputerTopicIdBlockHeight_Delegator, value) { + return + } + } + if x.Reputer != "" { + value := protoreflect.ValueOfString(x.Reputer) + if !f(fd_DelegatorReputerTopicIdBlockHeight_Reputer, value) { + return + } + } + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_DelegatorReputerTopicIdBlockHeight_TopicId, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_DelegatorReputerTopicIdBlockHeight_BlockHeight, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.Delegator": + return x.Delegator != "" + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.Reputer": + return x.Reputer != "" + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.BlockHeight": + return x.BlockHeight != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegatorReputerTopicIdBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.DelegatorReputerTopicIdBlockHeight does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.Delegator": + x.Delegator = "" + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.Reputer": + x.Reputer = "" + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.BlockHeight": + x.BlockHeight = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegatorReputerTopicIdBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.DelegatorReputerTopicIdBlockHeight does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.Delegator": + value := x.Delegator + return protoreflect.ValueOfString(value) + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.Reputer": + value := x.Reputer + return protoreflect.ValueOfString(value) + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.BlockHeight": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegatorReputerTopicIdBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.DelegatorReputerTopicIdBlockHeight does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.Delegator": + x.Delegator = value.Interface().(string) + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.Reputer": + x.Reputer = value.Interface().(string) + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.BlockHeight": + x.BlockHeight = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegatorReputerTopicIdBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.DelegatorReputerTopicIdBlockHeight does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.Delegator": + panic(fmt.Errorf("field Delegator of message emissions.v2.DelegatorReputerTopicIdBlockHeight is not mutable")) + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.Reputer": + panic(fmt.Errorf("field Reputer of message emissions.v2.DelegatorReputerTopicIdBlockHeight is not mutable")) + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.DelegatorReputerTopicIdBlockHeight is not mutable")) + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.BlockHeight": + panic(fmt.Errorf("field BlockHeight of message emissions.v2.DelegatorReputerTopicIdBlockHeight is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegatorReputerTopicIdBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.DelegatorReputerTopicIdBlockHeight does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.Delegator": + return protoreflect.ValueOfString("") + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.Reputer": + return protoreflect.ValueOfString("") + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.DelegatorReputerTopicIdBlockHeight.BlockHeight": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegatorReputerTopicIdBlockHeight")) + } + panic(fmt.Errorf("message emissions.v2.DelegatorReputerTopicIdBlockHeight does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.DelegatorReputerTopicIdBlockHeight", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_DelegatorReputerTopicIdBlockHeight) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*DelegatorReputerTopicIdBlockHeight) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Delegator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reputer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*DelegatorReputerTopicIdBlockHeight) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x20 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x18 + } + if len(x.Reputer) > 0 { + i -= len(x.Reputer) + copy(dAtA[i:], x.Reputer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) + i-- + dAtA[i] = 0x12 + } + if len(x.Delegator) > 0 { + i -= len(x.Delegator) + copy(dAtA[i:], x.Delegator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Delegator))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*DelegatorReputerTopicIdBlockHeight) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DelegatorReputerTopicIdBlockHeight: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: DelegatorReputerTopicIdBlockHeight: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Delegator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Delegator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdActorIdInference protoreflect.MessageDescriptor + fd_TopicIdActorIdInference_TopicId protoreflect.FieldDescriptor + fd_TopicIdActorIdInference_ActorId protoreflect.FieldDescriptor + fd_TopicIdActorIdInference_Inference protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdActorIdInference = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdActorIdInference") + fd_TopicIdActorIdInference_TopicId = md_TopicIdActorIdInference.Fields().ByName("TopicId") + fd_TopicIdActorIdInference_ActorId = md_TopicIdActorIdInference.Fields().ByName("ActorId") + fd_TopicIdActorIdInference_Inference = md_TopicIdActorIdInference.Fields().ByName("Inference") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdActorIdInference)(nil) + +type fastReflection_TopicIdActorIdInference TopicIdActorIdInference + +func (x *TopicIdActorIdInference) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdActorIdInference)(x) +} + +func (x *TopicIdActorIdInference) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdActorIdInference_messageType fastReflection_TopicIdActorIdInference_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdActorIdInference_messageType{} + +type fastReflection_TopicIdActorIdInference_messageType struct{} + +func (x fastReflection_TopicIdActorIdInference_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdActorIdInference)(nil) +} +func (x fastReflection_TopicIdActorIdInference_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdInference) +} +func (x fastReflection_TopicIdActorIdInference_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdInference +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdActorIdInference) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdInference +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdActorIdInference) Type() protoreflect.MessageType { + return _fastReflection_TopicIdActorIdInference_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdActorIdInference) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdInference) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdActorIdInference) Interface() protoreflect.ProtoMessage { + return (*TopicIdActorIdInference)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdActorIdInference) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdActorIdInference_TopicId, value) { + return + } + } + if x.ActorId != "" { + value := protoreflect.ValueOfString(x.ActorId) + if !f(fd_TopicIdActorIdInference_ActorId, value) { + return + } + } + if x.Inference != nil { + value := protoreflect.ValueOfMessage(x.Inference.ProtoReflect()) + if !f(fd_TopicIdActorIdInference_Inference, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdActorIdInference) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdInference.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdActorIdInference.ActorId": + return x.ActorId != "" + case "emissions.v2.TopicIdActorIdInference.Inference": + return x.Inference != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdInference")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdInference does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdInference) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdInference.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdActorIdInference.ActorId": + x.ActorId = "" + case "emissions.v2.TopicIdActorIdInference.Inference": + x.Inference = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdInference")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdInference does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdActorIdInference) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdActorIdInference.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdActorIdInference.ActorId": + value := x.ActorId + return protoreflect.ValueOfString(value) + case "emissions.v2.TopicIdActorIdInference.Inference": + value := x.Inference + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdInference")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdInference does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdInference) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdInference.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdActorIdInference.ActorId": + x.ActorId = value.Interface().(string) + case "emissions.v2.TopicIdActorIdInference.Inference": + x.Inference = value.Message().Interface().(*Inference) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdInference")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdInference does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdInference) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdInference.Inference": + if x.Inference == nil { + x.Inference = new(Inference) + } + return protoreflect.ValueOfMessage(x.Inference.ProtoReflect()) + case "emissions.v2.TopicIdActorIdInference.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdActorIdInference is not mutable")) + case "emissions.v2.TopicIdActorIdInference.ActorId": + panic(fmt.Errorf("field ActorId of message emissions.v2.TopicIdActorIdInference is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdInference")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdInference does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdActorIdInference) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdInference.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdActorIdInference.ActorId": + return protoreflect.ValueOfString("") + case "emissions.v2.TopicIdActorIdInference.Inference": + m := new(Inference) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdInference")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdInference does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdActorIdInference) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdActorIdInference", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdActorIdInference) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdInference) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdActorIdInference) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdActorIdInference) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdActorIdInference) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.ActorId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Inference != nil { + l = options.Size(x.Inference) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdInference) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Inference != nil { + encoded, err := options.Marshal(x.Inference) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.ActorId) > 0 { + i -= len(x.ActorId) + copy(dAtA[i:], x.ActorId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ActorId))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdInference) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdInference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdInference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inference", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Inference == nil { + x.Inference = &Inference{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Inference); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdActorIdForecast protoreflect.MessageDescriptor + fd_TopicIdActorIdForecast_TopicId protoreflect.FieldDescriptor + fd_TopicIdActorIdForecast_ActorId protoreflect.FieldDescriptor + fd_TopicIdActorIdForecast_Forecast protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdActorIdForecast = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdActorIdForecast") + fd_TopicIdActorIdForecast_TopicId = md_TopicIdActorIdForecast.Fields().ByName("TopicId") + fd_TopicIdActorIdForecast_ActorId = md_TopicIdActorIdForecast.Fields().ByName("ActorId") + fd_TopicIdActorIdForecast_Forecast = md_TopicIdActorIdForecast.Fields().ByName("Forecast") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdActorIdForecast)(nil) + +type fastReflection_TopicIdActorIdForecast TopicIdActorIdForecast + +func (x *TopicIdActorIdForecast) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdActorIdForecast)(x) +} + +func (x *TopicIdActorIdForecast) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdActorIdForecast_messageType fastReflection_TopicIdActorIdForecast_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdActorIdForecast_messageType{} + +type fastReflection_TopicIdActorIdForecast_messageType struct{} + +func (x fastReflection_TopicIdActorIdForecast_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdActorIdForecast)(nil) +} +func (x fastReflection_TopicIdActorIdForecast_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdForecast) +} +func (x fastReflection_TopicIdActorIdForecast_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdForecast +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdActorIdForecast) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdForecast +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdActorIdForecast) Type() protoreflect.MessageType { + return _fastReflection_TopicIdActorIdForecast_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdActorIdForecast) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdForecast) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdActorIdForecast) Interface() protoreflect.ProtoMessage { + return (*TopicIdActorIdForecast)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdActorIdForecast) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdActorIdForecast_TopicId, value) { + return + } + } + if x.ActorId != "" { + value := protoreflect.ValueOfString(x.ActorId) + if !f(fd_TopicIdActorIdForecast_ActorId, value) { + return + } + } + if x.Forecast != nil { + value := protoreflect.ValueOfMessage(x.Forecast.ProtoReflect()) + if !f(fd_TopicIdActorIdForecast_Forecast, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdActorIdForecast) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdForecast.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdActorIdForecast.ActorId": + return x.ActorId != "" + case "emissions.v2.TopicIdActorIdForecast.Forecast": + return x.Forecast != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdForecast")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdForecast does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdForecast) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdForecast.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdActorIdForecast.ActorId": + x.ActorId = "" + case "emissions.v2.TopicIdActorIdForecast.Forecast": + x.Forecast = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdForecast")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdForecast does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdActorIdForecast) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdActorIdForecast.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdActorIdForecast.ActorId": + value := x.ActorId + return protoreflect.ValueOfString(value) + case "emissions.v2.TopicIdActorIdForecast.Forecast": + value := x.Forecast + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdForecast")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdForecast does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdForecast) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdForecast.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdActorIdForecast.ActorId": + x.ActorId = value.Interface().(string) + case "emissions.v2.TopicIdActorIdForecast.Forecast": + x.Forecast = value.Message().Interface().(*Forecast) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdForecast")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdForecast does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdForecast) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdForecast.Forecast": + if x.Forecast == nil { + x.Forecast = new(Forecast) + } + return protoreflect.ValueOfMessage(x.Forecast.ProtoReflect()) + case "emissions.v2.TopicIdActorIdForecast.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdActorIdForecast is not mutable")) + case "emissions.v2.TopicIdActorIdForecast.ActorId": + panic(fmt.Errorf("field ActorId of message emissions.v2.TopicIdActorIdForecast is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdForecast")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdForecast does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdActorIdForecast) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdForecast.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdActorIdForecast.ActorId": + return protoreflect.ValueOfString("") + case "emissions.v2.TopicIdActorIdForecast.Forecast": + m := new(Forecast) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdForecast")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdForecast does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdActorIdForecast) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdActorIdForecast", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdActorIdForecast) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdForecast) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdActorIdForecast) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdActorIdForecast) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdActorIdForecast) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.ActorId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.Forecast != nil { + l = options.Size(x.Forecast) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdForecast) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Forecast != nil { + encoded, err := options.Marshal(x.Forecast) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.ActorId) > 0 { + i -= len(x.ActorId) + copy(dAtA[i:], x.ActorId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ActorId))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdForecast) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdForecast: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdForecast: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Forecast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Forecast == nil { + x.Forecast = &Forecast{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Forecast); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_LibP2PKeyAndOffchainNode protoreflect.MessageDescriptor + fd_LibP2PKeyAndOffchainNode_LibP2pKey protoreflect.FieldDescriptor + fd_LibP2PKeyAndOffchainNode_OffchainNode protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_LibP2PKeyAndOffchainNode = File_emissions_v2_genesis_proto.Messages().ByName("LibP2pKeyAndOffchainNode") + fd_LibP2PKeyAndOffchainNode_LibP2pKey = md_LibP2PKeyAndOffchainNode.Fields().ByName("LibP2pKey") + fd_LibP2PKeyAndOffchainNode_OffchainNode = md_LibP2PKeyAndOffchainNode.Fields().ByName("OffchainNode") +} + +var _ protoreflect.Message = (*fastReflection_LibP2PKeyAndOffchainNode)(nil) + +type fastReflection_LibP2PKeyAndOffchainNode LibP2PKeyAndOffchainNode + +func (x *LibP2PKeyAndOffchainNode) ProtoReflect() protoreflect.Message { + return (*fastReflection_LibP2PKeyAndOffchainNode)(x) +} + +func (x *LibP2PKeyAndOffchainNode) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_LibP2PKeyAndOffchainNode_messageType fastReflection_LibP2PKeyAndOffchainNode_messageType +var _ protoreflect.MessageType = fastReflection_LibP2PKeyAndOffchainNode_messageType{} + +type fastReflection_LibP2PKeyAndOffchainNode_messageType struct{} + +func (x fastReflection_LibP2PKeyAndOffchainNode_messageType) Zero() protoreflect.Message { + return (*fastReflection_LibP2PKeyAndOffchainNode)(nil) +} +func (x fastReflection_LibP2PKeyAndOffchainNode_messageType) New() protoreflect.Message { + return new(fastReflection_LibP2PKeyAndOffchainNode) +} +func (x fastReflection_LibP2PKeyAndOffchainNode_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_LibP2PKeyAndOffchainNode +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_LibP2PKeyAndOffchainNode) Descriptor() protoreflect.MessageDescriptor { + return md_LibP2PKeyAndOffchainNode +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_LibP2PKeyAndOffchainNode) Type() protoreflect.MessageType { + return _fastReflection_LibP2PKeyAndOffchainNode_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_LibP2PKeyAndOffchainNode) New() protoreflect.Message { + return new(fastReflection_LibP2PKeyAndOffchainNode) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_LibP2PKeyAndOffchainNode) Interface() protoreflect.ProtoMessage { + return (*LibP2PKeyAndOffchainNode)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_LibP2PKeyAndOffchainNode) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.LibP2PKey != "" { + value := protoreflect.ValueOfString(x.LibP2PKey) + if !f(fd_LibP2PKeyAndOffchainNode_LibP2pKey, value) { + return + } + } + if x.OffchainNode != nil { + value := protoreflect.ValueOfMessage(x.OffchainNode.ProtoReflect()) + if !f(fd_LibP2PKeyAndOffchainNode_OffchainNode, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_LibP2PKeyAndOffchainNode) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.LibP2pKeyAndOffchainNode.LibP2pKey": + return x.LibP2PKey != "" + case "emissions.v2.LibP2pKeyAndOffchainNode.OffchainNode": + return x.OffchainNode != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.LibP2pKeyAndOffchainNode")) + } + panic(fmt.Errorf("message emissions.v2.LibP2pKeyAndOffchainNode does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_LibP2PKeyAndOffchainNode) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.LibP2pKeyAndOffchainNode.LibP2pKey": + x.LibP2PKey = "" + case "emissions.v2.LibP2pKeyAndOffchainNode.OffchainNode": + x.OffchainNode = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.LibP2pKeyAndOffchainNode")) + } + panic(fmt.Errorf("message emissions.v2.LibP2pKeyAndOffchainNode does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_LibP2PKeyAndOffchainNode) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.LibP2pKeyAndOffchainNode.LibP2pKey": + value := x.LibP2PKey + return protoreflect.ValueOfString(value) + case "emissions.v2.LibP2pKeyAndOffchainNode.OffchainNode": + value := x.OffchainNode + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.LibP2pKeyAndOffchainNode")) + } + panic(fmt.Errorf("message emissions.v2.LibP2pKeyAndOffchainNode does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_LibP2PKeyAndOffchainNode) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.LibP2pKeyAndOffchainNode.LibP2pKey": + x.LibP2PKey = value.Interface().(string) + case "emissions.v2.LibP2pKeyAndOffchainNode.OffchainNode": + x.OffchainNode = value.Message().Interface().(*OffchainNode) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.LibP2pKeyAndOffchainNode")) + } + panic(fmt.Errorf("message emissions.v2.LibP2pKeyAndOffchainNode does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_LibP2PKeyAndOffchainNode) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.LibP2pKeyAndOffchainNode.OffchainNode": + if x.OffchainNode == nil { + x.OffchainNode = new(OffchainNode) + } + return protoreflect.ValueOfMessage(x.OffchainNode.ProtoReflect()) + case "emissions.v2.LibP2pKeyAndOffchainNode.LibP2pKey": + panic(fmt.Errorf("field LibP2pKey of message emissions.v2.LibP2pKeyAndOffchainNode is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.LibP2pKeyAndOffchainNode")) + } + panic(fmt.Errorf("message emissions.v2.LibP2pKeyAndOffchainNode does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_LibP2PKeyAndOffchainNode) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.LibP2pKeyAndOffchainNode.LibP2pKey": + return protoreflect.ValueOfString("") + case "emissions.v2.LibP2pKeyAndOffchainNode.OffchainNode": + m := new(OffchainNode) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.LibP2pKeyAndOffchainNode")) + } + panic(fmt.Errorf("message emissions.v2.LibP2pKeyAndOffchainNode does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_LibP2PKeyAndOffchainNode) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.LibP2pKeyAndOffchainNode", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_LibP2PKeyAndOffchainNode) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_LibP2PKeyAndOffchainNode) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_LibP2PKeyAndOffchainNode) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_LibP2PKeyAndOffchainNode) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*LibP2PKeyAndOffchainNode) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.LibP2PKey) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.OffchainNode != nil { + l = options.Size(x.OffchainNode) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*LibP2PKeyAndOffchainNode) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.OffchainNode != nil { + encoded, err := options.Marshal(x.OffchainNode) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if len(x.LibP2PKey) > 0 { + i -= len(x.LibP2PKey) + copy(dAtA[i:], x.LibP2PKey) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LibP2PKey))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*LibP2PKeyAndOffchainNode) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LibP2PKeyAndOffchainNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: LibP2PKeyAndOffchainNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LibP2PKey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LibP2PKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OffchainNode", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.OffchainNode == nil { + x.OffchainNode = &OffchainNode{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.OffchainNode); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdAndDec protoreflect.MessageDescriptor + fd_TopicIdAndDec_TopicId protoreflect.FieldDescriptor + fd_TopicIdAndDec_Dec protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdAndDec = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdAndDec") + fd_TopicIdAndDec_TopicId = md_TopicIdAndDec.Fields().ByName("TopicId") + fd_TopicIdAndDec_Dec = md_TopicIdAndDec.Fields().ByName("Dec") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdAndDec)(nil) + +type fastReflection_TopicIdAndDec TopicIdAndDec + +func (x *TopicIdAndDec) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdAndDec)(x) +} + +func (x *TopicIdAndDec) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdAndDec_messageType fastReflection_TopicIdAndDec_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdAndDec_messageType{} + +type fastReflection_TopicIdAndDec_messageType struct{} + +func (x fastReflection_TopicIdAndDec_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdAndDec)(nil) +} +func (x fastReflection_TopicIdAndDec_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdAndDec) +} +func (x fastReflection_TopicIdAndDec_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdAndDec +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdAndDec) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdAndDec +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdAndDec) Type() protoreflect.MessageType { + return _fastReflection_TopicIdAndDec_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdAndDec) New() protoreflect.Message { + return new(fastReflection_TopicIdAndDec) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdAndDec) Interface() protoreflect.ProtoMessage { + return (*TopicIdAndDec)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdAndDec) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdAndDec_TopicId, value) { + return + } + } + if x.Dec != "" { + value := protoreflect.ValueOfString(x.Dec) + if !f(fd_TopicIdAndDec_Dec, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdAndDec) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdAndDec.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdAndDec.Dec": + return x.Dec != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndDec")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndDec does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndDec) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdAndDec.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdAndDec.Dec": + x.Dec = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndDec")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndDec does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdAndDec) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdAndDec.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdAndDec.Dec": + value := x.Dec + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndDec")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndDec does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndDec) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdAndDec.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdAndDec.Dec": + x.Dec = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndDec")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndDec does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndDec) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdAndDec.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdAndDec is not mutable")) + case "emissions.v2.TopicIdAndDec.Dec": + panic(fmt.Errorf("field Dec of message emissions.v2.TopicIdAndDec is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndDec")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndDec does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdAndDec) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdAndDec.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdAndDec.Dec": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndDec")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndDec does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdAndDec) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdAndDec", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdAndDec) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndDec) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdAndDec) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdAndDec) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdAndDec) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.Dec) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdAndDec) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Dec) > 0 { + i -= len(x.Dec) + copy(dAtA[i:], x.Dec) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Dec))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdAndDec) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdAndDec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdAndDec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Dec", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Dec = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdBlockHeightInferences protoreflect.MessageDescriptor + fd_TopicIdBlockHeightInferences_TopicId protoreflect.FieldDescriptor + fd_TopicIdBlockHeightInferences_BlockHeight protoreflect.FieldDescriptor + fd_TopicIdBlockHeightInferences_Inferences protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdBlockHeightInferences = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdBlockHeightInferences") + fd_TopicIdBlockHeightInferences_TopicId = md_TopicIdBlockHeightInferences.Fields().ByName("TopicId") + fd_TopicIdBlockHeightInferences_BlockHeight = md_TopicIdBlockHeightInferences.Fields().ByName("BlockHeight") + fd_TopicIdBlockHeightInferences_Inferences = md_TopicIdBlockHeightInferences.Fields().ByName("Inferences") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdBlockHeightInferences)(nil) + +type fastReflection_TopicIdBlockHeightInferences TopicIdBlockHeightInferences + +func (x *TopicIdBlockHeightInferences) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdBlockHeightInferences)(x) +} + +func (x *TopicIdBlockHeightInferences) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdBlockHeightInferences_messageType fastReflection_TopicIdBlockHeightInferences_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdBlockHeightInferences_messageType{} + +type fastReflection_TopicIdBlockHeightInferences_messageType struct{} + +func (x fastReflection_TopicIdBlockHeightInferences_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdBlockHeightInferences)(nil) +} +func (x fastReflection_TopicIdBlockHeightInferences_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdBlockHeightInferences) +} +func (x fastReflection_TopicIdBlockHeightInferences_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdBlockHeightInferences +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdBlockHeightInferences) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdBlockHeightInferences +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdBlockHeightInferences) Type() protoreflect.MessageType { + return _fastReflection_TopicIdBlockHeightInferences_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdBlockHeightInferences) New() protoreflect.Message { + return new(fastReflection_TopicIdBlockHeightInferences) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdBlockHeightInferences) Interface() protoreflect.ProtoMessage { + return (*TopicIdBlockHeightInferences)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdBlockHeightInferences) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdBlockHeightInferences_TopicId, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_TopicIdBlockHeightInferences_BlockHeight, value) { + return + } + } + if x.Inferences != nil { + value := protoreflect.ValueOfMessage(x.Inferences.ProtoReflect()) + if !f(fd_TopicIdBlockHeightInferences_Inferences, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdBlockHeightInferences) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightInferences.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdBlockHeightInferences.BlockHeight": + return x.BlockHeight != int64(0) + case "emissions.v2.TopicIdBlockHeightInferences.Inferences": + return x.Inferences != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightInferences")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightInferences does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightInferences) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightInferences.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdBlockHeightInferences.BlockHeight": + x.BlockHeight = int64(0) + case "emissions.v2.TopicIdBlockHeightInferences.Inferences": + x.Inferences = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightInferences")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightInferences does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdBlockHeightInferences) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdBlockHeightInferences.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdBlockHeightInferences.BlockHeight": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "emissions.v2.TopicIdBlockHeightInferences.Inferences": + value := x.Inferences + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightInferences")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightInferences does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightInferences) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightInferences.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdBlockHeightInferences.BlockHeight": + x.BlockHeight = value.Int() + case "emissions.v2.TopicIdBlockHeightInferences.Inferences": + x.Inferences = value.Message().Interface().(*Inferences) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightInferences")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightInferences does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightInferences) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightInferences.Inferences": + if x.Inferences == nil { + x.Inferences = new(Inferences) + } + return protoreflect.ValueOfMessage(x.Inferences.ProtoReflect()) + case "emissions.v2.TopicIdBlockHeightInferences.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdBlockHeightInferences is not mutable")) + case "emissions.v2.TopicIdBlockHeightInferences.BlockHeight": + panic(fmt.Errorf("field BlockHeight of message emissions.v2.TopicIdBlockHeightInferences is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightInferences")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightInferences does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdBlockHeightInferences) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightInferences.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdBlockHeightInferences.BlockHeight": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.TopicIdBlockHeightInferences.Inferences": + m := new(Inferences) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightInferences")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightInferences does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdBlockHeightInferences) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdBlockHeightInferences", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdBlockHeightInferences) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightInferences) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdBlockHeightInferences) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdBlockHeightInferences) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdBlockHeightInferences) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Inferences != nil { + l = options.Size(x.Inferences) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdBlockHeightInferences) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Inferences != nil { + encoded, err := options.Marshal(x.Inferences) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdBlockHeightInferences) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdBlockHeightInferences: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdBlockHeightInferences: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inferences", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Inferences == nil { + x.Inferences = &Inferences{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Inferences); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdBlockHeightForecasts protoreflect.MessageDescriptor + fd_TopicIdBlockHeightForecasts_TopicId protoreflect.FieldDescriptor + fd_TopicIdBlockHeightForecasts_BlockHeight protoreflect.FieldDescriptor + fd_TopicIdBlockHeightForecasts_Forecasts protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdBlockHeightForecasts = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdBlockHeightForecasts") + fd_TopicIdBlockHeightForecasts_TopicId = md_TopicIdBlockHeightForecasts.Fields().ByName("TopicId") + fd_TopicIdBlockHeightForecasts_BlockHeight = md_TopicIdBlockHeightForecasts.Fields().ByName("BlockHeight") + fd_TopicIdBlockHeightForecasts_Forecasts = md_TopicIdBlockHeightForecasts.Fields().ByName("Forecasts") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdBlockHeightForecasts)(nil) + +type fastReflection_TopicIdBlockHeightForecasts TopicIdBlockHeightForecasts + +func (x *TopicIdBlockHeightForecasts) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdBlockHeightForecasts)(x) +} + +func (x *TopicIdBlockHeightForecasts) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdBlockHeightForecasts_messageType fastReflection_TopicIdBlockHeightForecasts_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdBlockHeightForecasts_messageType{} + +type fastReflection_TopicIdBlockHeightForecasts_messageType struct{} + +func (x fastReflection_TopicIdBlockHeightForecasts_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdBlockHeightForecasts)(nil) +} +func (x fastReflection_TopicIdBlockHeightForecasts_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdBlockHeightForecasts) +} +func (x fastReflection_TopicIdBlockHeightForecasts_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdBlockHeightForecasts +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdBlockHeightForecasts) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdBlockHeightForecasts +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdBlockHeightForecasts) Type() protoreflect.MessageType { + return _fastReflection_TopicIdBlockHeightForecasts_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdBlockHeightForecasts) New() protoreflect.Message { + return new(fastReflection_TopicIdBlockHeightForecasts) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdBlockHeightForecasts) Interface() protoreflect.ProtoMessage { + return (*TopicIdBlockHeightForecasts)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdBlockHeightForecasts) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdBlockHeightForecasts_TopicId, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_TopicIdBlockHeightForecasts_BlockHeight, value) { + return + } + } + if x.Forecasts != nil { + value := protoreflect.ValueOfMessage(x.Forecasts.ProtoReflect()) + if !f(fd_TopicIdBlockHeightForecasts_Forecasts, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdBlockHeightForecasts) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightForecasts.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdBlockHeightForecasts.BlockHeight": + return x.BlockHeight != int64(0) + case "emissions.v2.TopicIdBlockHeightForecasts.Forecasts": + return x.Forecasts != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightForecasts")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightForecasts does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightForecasts) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightForecasts.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdBlockHeightForecasts.BlockHeight": + x.BlockHeight = int64(0) + case "emissions.v2.TopicIdBlockHeightForecasts.Forecasts": + x.Forecasts = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightForecasts")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightForecasts does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdBlockHeightForecasts) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdBlockHeightForecasts.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdBlockHeightForecasts.BlockHeight": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "emissions.v2.TopicIdBlockHeightForecasts.Forecasts": + value := x.Forecasts + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightForecasts")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightForecasts does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightForecasts) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightForecasts.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdBlockHeightForecasts.BlockHeight": + x.BlockHeight = value.Int() + case "emissions.v2.TopicIdBlockHeightForecasts.Forecasts": + x.Forecasts = value.Message().Interface().(*Forecasts) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightForecasts")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightForecasts does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightForecasts) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightForecasts.Forecasts": + if x.Forecasts == nil { + x.Forecasts = new(Forecasts) + } + return protoreflect.ValueOfMessage(x.Forecasts.ProtoReflect()) + case "emissions.v2.TopicIdBlockHeightForecasts.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdBlockHeightForecasts is not mutable")) + case "emissions.v2.TopicIdBlockHeightForecasts.BlockHeight": + panic(fmt.Errorf("field BlockHeight of message emissions.v2.TopicIdBlockHeightForecasts is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightForecasts")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightForecasts does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdBlockHeightForecasts) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightForecasts.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdBlockHeightForecasts.BlockHeight": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.TopicIdBlockHeightForecasts.Forecasts": + m := new(Forecasts) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightForecasts")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightForecasts does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdBlockHeightForecasts) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdBlockHeightForecasts", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdBlockHeightForecasts) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightForecasts) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdBlockHeightForecasts) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdBlockHeightForecasts) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdBlockHeightForecasts) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Forecasts != nil { + l = options.Size(x.Forecasts) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdBlockHeightForecasts) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Forecasts != nil { + encoded, err := options.Marshal(x.Forecasts) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdBlockHeightForecasts) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdBlockHeightForecasts: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdBlockHeightForecasts: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Forecasts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Forecasts == nil { + x.Forecasts = &Forecasts{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Forecasts); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdBlockHeightReputerValueBundles protoreflect.MessageDescriptor + fd_TopicIdBlockHeightReputerValueBundles_TopicId protoreflect.FieldDescriptor + fd_TopicIdBlockHeightReputerValueBundles_BlockHeight protoreflect.FieldDescriptor + fd_TopicIdBlockHeightReputerValueBundles_ReputerValueBundles protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdBlockHeightReputerValueBundles = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdBlockHeightReputerValueBundles") + fd_TopicIdBlockHeightReputerValueBundles_TopicId = md_TopicIdBlockHeightReputerValueBundles.Fields().ByName("TopicId") + fd_TopicIdBlockHeightReputerValueBundles_BlockHeight = md_TopicIdBlockHeightReputerValueBundles.Fields().ByName("BlockHeight") + fd_TopicIdBlockHeightReputerValueBundles_ReputerValueBundles = md_TopicIdBlockHeightReputerValueBundles.Fields().ByName("ReputerValueBundles") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdBlockHeightReputerValueBundles)(nil) + +type fastReflection_TopicIdBlockHeightReputerValueBundles TopicIdBlockHeightReputerValueBundles + +func (x *TopicIdBlockHeightReputerValueBundles) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdBlockHeightReputerValueBundles)(x) +} + +func (x *TopicIdBlockHeightReputerValueBundles) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdBlockHeightReputerValueBundles_messageType fastReflection_TopicIdBlockHeightReputerValueBundles_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdBlockHeightReputerValueBundles_messageType{} + +type fastReflection_TopicIdBlockHeightReputerValueBundles_messageType struct{} + +func (x fastReflection_TopicIdBlockHeightReputerValueBundles_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdBlockHeightReputerValueBundles)(nil) +} +func (x fastReflection_TopicIdBlockHeightReputerValueBundles_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdBlockHeightReputerValueBundles) +} +func (x fastReflection_TopicIdBlockHeightReputerValueBundles_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdBlockHeightReputerValueBundles +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdBlockHeightReputerValueBundles +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) Type() protoreflect.MessageType { + return _fastReflection_TopicIdBlockHeightReputerValueBundles_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) New() protoreflect.Message { + return new(fastReflection_TopicIdBlockHeightReputerValueBundles) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) Interface() protoreflect.ProtoMessage { + return (*TopicIdBlockHeightReputerValueBundles)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdBlockHeightReputerValueBundles_TopicId, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_TopicIdBlockHeightReputerValueBundles_BlockHeight, value) { + return + } + } + if x.ReputerValueBundles != nil { + value := protoreflect.ValueOfMessage(x.ReputerValueBundles.ProtoReflect()) + if !f(fd_TopicIdBlockHeightReputerValueBundles_ReputerValueBundles, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.BlockHeight": + return x.BlockHeight != int64(0) + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.ReputerValueBundles": + return x.ReputerValueBundles != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightReputerValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightReputerValueBundles does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.BlockHeight": + x.BlockHeight = int64(0) + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.ReputerValueBundles": + x.ReputerValueBundles = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightReputerValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightReputerValueBundles does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.BlockHeight": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.ReputerValueBundles": + value := x.ReputerValueBundles + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightReputerValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightReputerValueBundles does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.BlockHeight": + x.BlockHeight = value.Int() + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.ReputerValueBundles": + x.ReputerValueBundles = value.Message().Interface().(*ReputerValueBundles) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightReputerValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightReputerValueBundles does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.ReputerValueBundles": + if x.ReputerValueBundles == nil { + x.ReputerValueBundles = new(ReputerValueBundles) + } + return protoreflect.ValueOfMessage(x.ReputerValueBundles.ProtoReflect()) + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdBlockHeightReputerValueBundles is not mutable")) + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.BlockHeight": + panic(fmt.Errorf("field BlockHeight of message emissions.v2.TopicIdBlockHeightReputerValueBundles is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightReputerValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightReputerValueBundles does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.BlockHeight": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.TopicIdBlockHeightReputerValueBundles.ReputerValueBundles": + m := new(ReputerValueBundles) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightReputerValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightReputerValueBundles does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdBlockHeightReputerValueBundles", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdBlockHeightReputerValueBundles) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdBlockHeightReputerValueBundles) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.ReputerValueBundles != nil { + l = options.Size(x.ReputerValueBundles) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdBlockHeightReputerValueBundles) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.ReputerValueBundles != nil { + encoded, err := options.Marshal(x.ReputerValueBundles) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdBlockHeightReputerValueBundles) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdBlockHeightReputerValueBundles: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdBlockHeightReputerValueBundles: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerValueBundles", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.ReputerValueBundles == nil { + x.ReputerValueBundles = &ReputerValueBundles{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ReputerValueBundles); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdBlockHeightValueBundles protoreflect.MessageDescriptor + fd_TopicIdBlockHeightValueBundles_TopicId protoreflect.FieldDescriptor + fd_TopicIdBlockHeightValueBundles_BlockHeight protoreflect.FieldDescriptor + fd_TopicIdBlockHeightValueBundles_ValueBundle protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdBlockHeightValueBundles = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdBlockHeightValueBundles") + fd_TopicIdBlockHeightValueBundles_TopicId = md_TopicIdBlockHeightValueBundles.Fields().ByName("TopicId") + fd_TopicIdBlockHeightValueBundles_BlockHeight = md_TopicIdBlockHeightValueBundles.Fields().ByName("BlockHeight") + fd_TopicIdBlockHeightValueBundles_ValueBundle = md_TopicIdBlockHeightValueBundles.Fields().ByName("ValueBundle") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdBlockHeightValueBundles)(nil) + +type fastReflection_TopicIdBlockHeightValueBundles TopicIdBlockHeightValueBundles + +func (x *TopicIdBlockHeightValueBundles) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdBlockHeightValueBundles)(x) +} + +func (x *TopicIdBlockHeightValueBundles) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdBlockHeightValueBundles_messageType fastReflection_TopicIdBlockHeightValueBundles_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdBlockHeightValueBundles_messageType{} + +type fastReflection_TopicIdBlockHeightValueBundles_messageType struct{} + +func (x fastReflection_TopicIdBlockHeightValueBundles_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdBlockHeightValueBundles)(nil) +} +func (x fastReflection_TopicIdBlockHeightValueBundles_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdBlockHeightValueBundles) +} +func (x fastReflection_TopicIdBlockHeightValueBundles_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdBlockHeightValueBundles +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdBlockHeightValueBundles) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdBlockHeightValueBundles +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdBlockHeightValueBundles) Type() protoreflect.MessageType { + return _fastReflection_TopicIdBlockHeightValueBundles_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdBlockHeightValueBundles) New() protoreflect.Message { + return new(fastReflection_TopicIdBlockHeightValueBundles) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdBlockHeightValueBundles) Interface() protoreflect.ProtoMessage { + return (*TopicIdBlockHeightValueBundles)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdBlockHeightValueBundles) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdBlockHeightValueBundles_TopicId, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_TopicIdBlockHeightValueBundles_BlockHeight, value) { + return + } + } + if x.ValueBundle != nil { + value := protoreflect.ValueOfMessage(x.ValueBundle.ProtoReflect()) + if !f(fd_TopicIdBlockHeightValueBundles_ValueBundle, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdBlockHeightValueBundles) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightValueBundles.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdBlockHeightValueBundles.BlockHeight": + return x.BlockHeight != int64(0) + case "emissions.v2.TopicIdBlockHeightValueBundles.ValueBundle": + return x.ValueBundle != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightValueBundles does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightValueBundles) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightValueBundles.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdBlockHeightValueBundles.BlockHeight": + x.BlockHeight = int64(0) + case "emissions.v2.TopicIdBlockHeightValueBundles.ValueBundle": + x.ValueBundle = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightValueBundles does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdBlockHeightValueBundles) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdBlockHeightValueBundles.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdBlockHeightValueBundles.BlockHeight": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "emissions.v2.TopicIdBlockHeightValueBundles.ValueBundle": + value := x.ValueBundle + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightValueBundles does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightValueBundles) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightValueBundles.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdBlockHeightValueBundles.BlockHeight": + x.BlockHeight = value.Int() + case "emissions.v2.TopicIdBlockHeightValueBundles.ValueBundle": + x.ValueBundle = value.Message().Interface().(*ValueBundle) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightValueBundles does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightValueBundles) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightValueBundles.ValueBundle": + if x.ValueBundle == nil { + x.ValueBundle = new(ValueBundle) + } + return protoreflect.ValueOfMessage(x.ValueBundle.ProtoReflect()) + case "emissions.v2.TopicIdBlockHeightValueBundles.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdBlockHeightValueBundles is not mutable")) + case "emissions.v2.TopicIdBlockHeightValueBundles.BlockHeight": + panic(fmt.Errorf("field BlockHeight of message emissions.v2.TopicIdBlockHeightValueBundles is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightValueBundles does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdBlockHeightValueBundles) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdBlockHeightValueBundles.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdBlockHeightValueBundles.BlockHeight": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.TopicIdBlockHeightValueBundles.ValueBundle": + m := new(ValueBundle) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdBlockHeightValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdBlockHeightValueBundles does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdBlockHeightValueBundles) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdBlockHeightValueBundles", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdBlockHeightValueBundles) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdBlockHeightValueBundles) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdBlockHeightValueBundles) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdBlockHeightValueBundles) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdBlockHeightValueBundles) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.ValueBundle != nil { + l = options.Size(x.ValueBundle) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdBlockHeightValueBundles) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.ValueBundle != nil { + encoded, err := options.Marshal(x.ValueBundle) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdBlockHeightValueBundles) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdBlockHeightValueBundles: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdBlockHeightValueBundles: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValueBundle", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.ValueBundle == nil { + x.ValueBundle = &ValueBundle{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ValueBundle); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdAndNonces protoreflect.MessageDescriptor + fd_TopicIdAndNonces_TopicId protoreflect.FieldDescriptor + fd_TopicIdAndNonces_Nonces protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdAndNonces = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdAndNonces") + fd_TopicIdAndNonces_TopicId = md_TopicIdAndNonces.Fields().ByName("TopicId") + fd_TopicIdAndNonces_Nonces = md_TopicIdAndNonces.Fields().ByName("Nonces") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdAndNonces)(nil) + +type fastReflection_TopicIdAndNonces TopicIdAndNonces + +func (x *TopicIdAndNonces) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdAndNonces)(x) +} + +func (x *TopicIdAndNonces) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdAndNonces_messageType fastReflection_TopicIdAndNonces_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdAndNonces_messageType{} + +type fastReflection_TopicIdAndNonces_messageType struct{} + +func (x fastReflection_TopicIdAndNonces_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdAndNonces)(nil) +} +func (x fastReflection_TopicIdAndNonces_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdAndNonces) +} +func (x fastReflection_TopicIdAndNonces_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdAndNonces +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdAndNonces) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdAndNonces +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdAndNonces) Type() protoreflect.MessageType { + return _fastReflection_TopicIdAndNonces_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdAndNonces) New() protoreflect.Message { + return new(fastReflection_TopicIdAndNonces) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdAndNonces) Interface() protoreflect.ProtoMessage { + return (*TopicIdAndNonces)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdAndNonces) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdAndNonces_TopicId, value) { + return + } + } + if x.Nonces != nil { + value := protoreflect.ValueOfMessage(x.Nonces.ProtoReflect()) + if !f(fd_TopicIdAndNonces_Nonces, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdAndNonces) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdAndNonces.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdAndNonces.Nonces": + return x.Nonces != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndNonces")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndNonces does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndNonces) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdAndNonces.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdAndNonces.Nonces": + x.Nonces = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndNonces")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndNonces does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdAndNonces) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdAndNonces.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdAndNonces.Nonces": + value := x.Nonces + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndNonces")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndNonces does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndNonces) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdAndNonces.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdAndNonces.Nonces": + x.Nonces = value.Message().Interface().(*Nonces) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndNonces")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndNonces does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndNonces) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdAndNonces.Nonces": + if x.Nonces == nil { + x.Nonces = new(Nonces) + } + return protoreflect.ValueOfMessage(x.Nonces.ProtoReflect()) + case "emissions.v2.TopicIdAndNonces.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdAndNonces is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndNonces")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndNonces does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdAndNonces) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdAndNonces.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdAndNonces.Nonces": + m := new(Nonces) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndNonces")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndNonces does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdAndNonces) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdAndNonces", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdAndNonces) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndNonces) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdAndNonces) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdAndNonces) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdAndNonces) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.Nonces != nil { + l = options.Size(x.Nonces) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdAndNonces) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Nonces != nil { + encoded, err := options.Marshal(x.Nonces) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdAndNonces) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdAndNonces: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdAndNonces: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Nonces == nil { + x.Nonces = &Nonces{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nonces); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdAndReputerRequestNonces protoreflect.MessageDescriptor + fd_TopicIdAndReputerRequestNonces_TopicId protoreflect.FieldDescriptor + fd_TopicIdAndReputerRequestNonces_ReputerRequestNonces protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdAndReputerRequestNonces = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdAndReputerRequestNonces") + fd_TopicIdAndReputerRequestNonces_TopicId = md_TopicIdAndReputerRequestNonces.Fields().ByName("TopicId") + fd_TopicIdAndReputerRequestNonces_ReputerRequestNonces = md_TopicIdAndReputerRequestNonces.Fields().ByName("ReputerRequestNonces") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdAndReputerRequestNonces)(nil) + +type fastReflection_TopicIdAndReputerRequestNonces TopicIdAndReputerRequestNonces + +func (x *TopicIdAndReputerRequestNonces) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdAndReputerRequestNonces)(x) +} + +func (x *TopicIdAndReputerRequestNonces) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdAndReputerRequestNonces_messageType fastReflection_TopicIdAndReputerRequestNonces_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdAndReputerRequestNonces_messageType{} + +type fastReflection_TopicIdAndReputerRequestNonces_messageType struct{} + +func (x fastReflection_TopicIdAndReputerRequestNonces_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdAndReputerRequestNonces)(nil) +} +func (x fastReflection_TopicIdAndReputerRequestNonces_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdAndReputerRequestNonces) +} +func (x fastReflection_TopicIdAndReputerRequestNonces_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdAndReputerRequestNonces +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdAndReputerRequestNonces) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdAndReputerRequestNonces +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdAndReputerRequestNonces) Type() protoreflect.MessageType { + return _fastReflection_TopicIdAndReputerRequestNonces_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdAndReputerRequestNonces) New() protoreflect.Message { + return new(fastReflection_TopicIdAndReputerRequestNonces) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdAndReputerRequestNonces) Interface() protoreflect.ProtoMessage { + return (*TopicIdAndReputerRequestNonces)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdAndReputerRequestNonces) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdAndReputerRequestNonces_TopicId, value) { + return + } + } + if x.ReputerRequestNonces != nil { + value := protoreflect.ValueOfMessage(x.ReputerRequestNonces.ProtoReflect()) + if !f(fd_TopicIdAndReputerRequestNonces_ReputerRequestNonces, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdAndReputerRequestNonces) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdAndReputerRequestNonces.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdAndReputerRequestNonces.ReputerRequestNonces": + return x.ReputerRequestNonces != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndReputerRequestNonces")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndReputerRequestNonces does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndReputerRequestNonces) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdAndReputerRequestNonces.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdAndReputerRequestNonces.ReputerRequestNonces": + x.ReputerRequestNonces = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndReputerRequestNonces")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndReputerRequestNonces does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdAndReputerRequestNonces) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdAndReputerRequestNonces.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdAndReputerRequestNonces.ReputerRequestNonces": + value := x.ReputerRequestNonces + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndReputerRequestNonces")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndReputerRequestNonces does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndReputerRequestNonces) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdAndReputerRequestNonces.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdAndReputerRequestNonces.ReputerRequestNonces": + x.ReputerRequestNonces = value.Message().Interface().(*ReputerRequestNonces) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndReputerRequestNonces")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndReputerRequestNonces does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndReputerRequestNonces) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdAndReputerRequestNonces.ReputerRequestNonces": + if x.ReputerRequestNonces == nil { + x.ReputerRequestNonces = new(ReputerRequestNonces) + } + return protoreflect.ValueOfMessage(x.ReputerRequestNonces.ProtoReflect()) + case "emissions.v2.TopicIdAndReputerRequestNonces.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdAndReputerRequestNonces is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndReputerRequestNonces")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndReputerRequestNonces does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdAndReputerRequestNonces) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdAndReputerRequestNonces.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdAndReputerRequestNonces.ReputerRequestNonces": + m := new(ReputerRequestNonces) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdAndReputerRequestNonces")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdAndReputerRequestNonces does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdAndReputerRequestNonces) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdAndReputerRequestNonces", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdAndReputerRequestNonces) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdAndReputerRequestNonces) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdAndReputerRequestNonces) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdAndReputerRequestNonces) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdAndReputerRequestNonces) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.ReputerRequestNonces != nil { + l = options.Size(x.ReputerRequestNonces) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdAndReputerRequestNonces) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.ReputerRequestNonces != nil { + encoded, err := options.Marshal(x.ReputerRequestNonces) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdAndReputerRequestNonces) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdAndReputerRequestNonces: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdAndReputerRequestNonces: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerRequestNonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.ReputerRequestNonces == nil { + x.ReputerRequestNonces = &ReputerRequestNonces{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ReputerRequestNonces); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdActorIdTimeStampedValue protoreflect.MessageDescriptor + fd_TopicIdActorIdTimeStampedValue_TopicId protoreflect.FieldDescriptor + fd_TopicIdActorIdTimeStampedValue_ActorId protoreflect.FieldDescriptor + fd_TopicIdActorIdTimeStampedValue_TimestampedValue protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdActorIdTimeStampedValue = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdActorIdTimeStampedValue") + fd_TopicIdActorIdTimeStampedValue_TopicId = md_TopicIdActorIdTimeStampedValue.Fields().ByName("TopicId") + fd_TopicIdActorIdTimeStampedValue_ActorId = md_TopicIdActorIdTimeStampedValue.Fields().ByName("ActorId") + fd_TopicIdActorIdTimeStampedValue_TimestampedValue = md_TopicIdActorIdTimeStampedValue.Fields().ByName("TimestampedValue") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdActorIdTimeStampedValue)(nil) + +type fastReflection_TopicIdActorIdTimeStampedValue TopicIdActorIdTimeStampedValue + +func (x *TopicIdActorIdTimeStampedValue) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdActorIdTimeStampedValue)(x) +} + +func (x *TopicIdActorIdTimeStampedValue) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdActorIdTimeStampedValue_messageType fastReflection_TopicIdActorIdTimeStampedValue_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdActorIdTimeStampedValue_messageType{} + +type fastReflection_TopicIdActorIdTimeStampedValue_messageType struct{} + +func (x fastReflection_TopicIdActorIdTimeStampedValue_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdActorIdTimeStampedValue)(nil) +} +func (x fastReflection_TopicIdActorIdTimeStampedValue_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdTimeStampedValue) +} +func (x fastReflection_TopicIdActorIdTimeStampedValue_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdTimeStampedValue +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdTimeStampedValue +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) Type() protoreflect.MessageType { + return _fastReflection_TopicIdActorIdTimeStampedValue_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdTimeStampedValue) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) Interface() protoreflect.ProtoMessage { + return (*TopicIdActorIdTimeStampedValue)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdActorIdTimeStampedValue_TopicId, value) { + return + } + } + if x.ActorId != "" { + value := protoreflect.ValueOfString(x.ActorId) + if !f(fd_TopicIdActorIdTimeStampedValue_ActorId, value) { + return + } + } + if x.TimestampedValue != nil { + value := protoreflect.ValueOfMessage(x.TimestampedValue.ProtoReflect()) + if !f(fd_TopicIdActorIdTimeStampedValue_TimestampedValue, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdTimeStampedValue.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdActorIdTimeStampedValue.ActorId": + return x.ActorId != "" + case "emissions.v2.TopicIdActorIdTimeStampedValue.TimestampedValue": + return x.TimestampedValue != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdTimeStampedValue")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdTimeStampedValue does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdTimeStampedValue.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdActorIdTimeStampedValue.ActorId": + x.ActorId = "" + case "emissions.v2.TopicIdActorIdTimeStampedValue.TimestampedValue": + x.TimestampedValue = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdTimeStampedValue")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdTimeStampedValue does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdActorIdTimeStampedValue.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdActorIdTimeStampedValue.ActorId": + value := x.ActorId + return protoreflect.ValueOfString(value) + case "emissions.v2.TopicIdActorIdTimeStampedValue.TimestampedValue": + value := x.TimestampedValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdTimeStampedValue")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdTimeStampedValue does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdTimeStampedValue.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdActorIdTimeStampedValue.ActorId": + x.ActorId = value.Interface().(string) + case "emissions.v2.TopicIdActorIdTimeStampedValue.TimestampedValue": + x.TimestampedValue = value.Message().Interface().(*TimestampedValue) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdTimeStampedValue")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdTimeStampedValue does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdTimeStampedValue.TimestampedValue": + if x.TimestampedValue == nil { + x.TimestampedValue = new(TimestampedValue) + } + return protoreflect.ValueOfMessage(x.TimestampedValue.ProtoReflect()) + case "emissions.v2.TopicIdActorIdTimeStampedValue.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdActorIdTimeStampedValue is not mutable")) + case "emissions.v2.TopicIdActorIdTimeStampedValue.ActorId": + panic(fmt.Errorf("field ActorId of message emissions.v2.TopicIdActorIdTimeStampedValue is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdTimeStampedValue")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdTimeStampedValue does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdTimeStampedValue.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdActorIdTimeStampedValue.ActorId": + return protoreflect.ValueOfString("") + case "emissions.v2.TopicIdActorIdTimeStampedValue.TimestampedValue": + m := new(TimestampedValue) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdTimeStampedValue")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdTimeStampedValue does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdActorIdTimeStampedValue", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdActorIdTimeStampedValue) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdActorIdTimeStampedValue) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.ActorId) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.TimestampedValue != nil { + l = options.Size(x.TimestampedValue) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdTimeStampedValue) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.TimestampedValue != nil { + encoded, err := options.Marshal(x.TimestampedValue) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if len(x.ActorId) > 0 { + i -= len(x.ActorId) + copy(dAtA[i:], x.ActorId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ActorId))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdTimeStampedValue) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdTimeStampedValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdTimeStampedValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimestampedValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.TimestampedValue == nil { + x.TimestampedValue = &TimestampedValue{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TimestampedValue); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdActorIdActorIdTimeStampedValue protoreflect.MessageDescriptor + fd_TopicIdActorIdActorIdTimeStampedValue_TopicId protoreflect.FieldDescriptor + fd_TopicIdActorIdActorIdTimeStampedValue_ActorId1 protoreflect.FieldDescriptor + fd_TopicIdActorIdActorIdTimeStampedValue_ActorId2 protoreflect.FieldDescriptor + fd_TopicIdActorIdActorIdTimeStampedValue_TimestampedValue protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdActorIdActorIdTimeStampedValue = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdActorIdActorIdTimeStampedValue") + fd_TopicIdActorIdActorIdTimeStampedValue_TopicId = md_TopicIdActorIdActorIdTimeStampedValue.Fields().ByName("TopicId") + fd_TopicIdActorIdActorIdTimeStampedValue_ActorId1 = md_TopicIdActorIdActorIdTimeStampedValue.Fields().ByName("ActorId1") + fd_TopicIdActorIdActorIdTimeStampedValue_ActorId2 = md_TopicIdActorIdActorIdTimeStampedValue.Fields().ByName("ActorId2") + fd_TopicIdActorIdActorIdTimeStampedValue_TimestampedValue = md_TopicIdActorIdActorIdTimeStampedValue.Fields().ByName("TimestampedValue") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdActorIdActorIdTimeStampedValue)(nil) + +type fastReflection_TopicIdActorIdActorIdTimeStampedValue TopicIdActorIdActorIdTimeStampedValue + +func (x *TopicIdActorIdActorIdTimeStampedValue) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdActorIdActorIdTimeStampedValue)(x) +} + +func (x *TopicIdActorIdActorIdTimeStampedValue) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdActorIdActorIdTimeStampedValue_messageType fastReflection_TopicIdActorIdActorIdTimeStampedValue_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdActorIdActorIdTimeStampedValue_messageType{} + +type fastReflection_TopicIdActorIdActorIdTimeStampedValue_messageType struct{} + +func (x fastReflection_TopicIdActorIdActorIdTimeStampedValue_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdActorIdActorIdTimeStampedValue)(nil) +} +func (x fastReflection_TopicIdActorIdActorIdTimeStampedValue_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdActorIdTimeStampedValue) +} +func (x fastReflection_TopicIdActorIdActorIdTimeStampedValue_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdActorIdTimeStampedValue +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdActorIdActorIdTimeStampedValue +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) Type() protoreflect.MessageType { + return _fastReflection_TopicIdActorIdActorIdTimeStampedValue_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) New() protoreflect.Message { + return new(fastReflection_TopicIdActorIdActorIdTimeStampedValue) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) Interface() protoreflect.ProtoMessage { + return (*TopicIdActorIdActorIdTimeStampedValue)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdActorIdActorIdTimeStampedValue_TopicId, value) { + return + } + } + if x.ActorId1 != "" { + value := protoreflect.ValueOfString(x.ActorId1) + if !f(fd_TopicIdActorIdActorIdTimeStampedValue_ActorId1, value) { + return + } + } + if x.ActorId2 != "" { + value := protoreflect.ValueOfString(x.ActorId2) + if !f(fd_TopicIdActorIdActorIdTimeStampedValue_ActorId2, value) { + return + } + } + if x.TimestampedValue != nil { + value := protoreflect.ValueOfMessage(x.TimestampedValue.ProtoReflect()) + if !f(fd_TopicIdActorIdActorIdTimeStampedValue_TimestampedValue, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.ActorId1": + return x.ActorId1 != "" + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.ActorId2": + return x.ActorId2 != "" + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.TimestampedValue": + return x.TimestampedValue != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdActorIdTimeStampedValue")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdActorIdTimeStampedValue does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.ActorId1": + x.ActorId1 = "" + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.ActorId2": + x.ActorId2 = "" + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.TimestampedValue": + x.TimestampedValue = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdActorIdTimeStampedValue")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdActorIdTimeStampedValue does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.ActorId1": + value := x.ActorId1 + return protoreflect.ValueOfString(value) + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.ActorId2": + value := x.ActorId2 + return protoreflect.ValueOfString(value) + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.TimestampedValue": + value := x.TimestampedValue + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdActorIdTimeStampedValue")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdActorIdTimeStampedValue does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.ActorId1": + x.ActorId1 = value.Interface().(string) + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.ActorId2": + x.ActorId2 = value.Interface().(string) + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.TimestampedValue": + x.TimestampedValue = value.Message().Interface().(*TimestampedValue) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdActorIdTimeStampedValue")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdActorIdTimeStampedValue does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.TimestampedValue": + if x.TimestampedValue == nil { + x.TimestampedValue = new(TimestampedValue) + } + return protoreflect.ValueOfMessage(x.TimestampedValue.ProtoReflect()) + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdActorIdActorIdTimeStampedValue is not mutable")) + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.ActorId1": + panic(fmt.Errorf("field ActorId1 of message emissions.v2.TopicIdActorIdActorIdTimeStampedValue is not mutable")) + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.ActorId2": + panic(fmt.Errorf("field ActorId2 of message emissions.v2.TopicIdActorIdActorIdTimeStampedValue is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdActorIdTimeStampedValue")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdActorIdTimeStampedValue does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.ActorId1": + return protoreflect.ValueOfString("") + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.ActorId2": + return protoreflect.ValueOfString("") + case "emissions.v2.TopicIdActorIdActorIdTimeStampedValue.TimestampedValue": + m := new(TimestampedValue) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdActorIdActorIdTimeStampedValue")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdActorIdActorIdTimeStampedValue does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdActorIdActorIdTimeStampedValue", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdActorIdActorIdTimeStampedValue) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdActorIdActorIdTimeStampedValue) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.ActorId1) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ActorId2) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.TimestampedValue != nil { + l = options.Size(x.TimestampedValue) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdActorIdTimeStampedValue) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.TimestampedValue != nil { + encoded, err := options.Marshal(x.TimestampedValue) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + if len(x.ActorId2) > 0 { + i -= len(x.ActorId2) + copy(dAtA[i:], x.ActorId2) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ActorId2))) + i-- + dAtA[i] = 0x1a + } + if len(x.ActorId1) > 0 { + i -= len(x.ActorId1) + copy(dAtA[i:], x.ActorId1) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ActorId1))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdActorIdActorIdTimeStampedValue) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdActorIdTimeStampedValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdActorIdActorIdTimeStampedValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActorId1", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ActorId1 = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActorId2", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ActorId2 = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimestampedValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.TimestampedValue == nil { + x.TimestampedValue = &TimestampedValue{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TimestampedValue); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TopicIdTimestampedActorNonce protoreflect.MessageDescriptor + fd_TopicIdTimestampedActorNonce_TopicId protoreflect.FieldDescriptor + fd_TopicIdTimestampedActorNonce_TimestampedActorNonce protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_genesis_proto_init() + md_TopicIdTimestampedActorNonce = File_emissions_v2_genesis_proto.Messages().ByName("TopicIdTimestampedActorNonce") + fd_TopicIdTimestampedActorNonce_TopicId = md_TopicIdTimestampedActorNonce.Fields().ByName("TopicId") + fd_TopicIdTimestampedActorNonce_TimestampedActorNonce = md_TopicIdTimestampedActorNonce.Fields().ByName("TimestampedActorNonce") +} + +var _ protoreflect.Message = (*fastReflection_TopicIdTimestampedActorNonce)(nil) + +type fastReflection_TopicIdTimestampedActorNonce TopicIdTimestampedActorNonce + +func (x *TopicIdTimestampedActorNonce) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIdTimestampedActorNonce)(x) +} + +func (x *TopicIdTimestampedActorNonce) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_genesis_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIdTimestampedActorNonce_messageType fastReflection_TopicIdTimestampedActorNonce_messageType +var _ protoreflect.MessageType = fastReflection_TopicIdTimestampedActorNonce_messageType{} + +type fastReflection_TopicIdTimestampedActorNonce_messageType struct{} + +func (x fastReflection_TopicIdTimestampedActorNonce_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIdTimestampedActorNonce)(nil) +} +func (x fastReflection_TopicIdTimestampedActorNonce_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIdTimestampedActorNonce) +} +func (x fastReflection_TopicIdTimestampedActorNonce_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdTimestampedActorNonce +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIdTimestampedActorNonce) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIdTimestampedActorNonce +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIdTimestampedActorNonce) Type() protoreflect.MessageType { + return _fastReflection_TopicIdTimestampedActorNonce_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIdTimestampedActorNonce) New() protoreflect.Message { + return new(fastReflection_TopicIdTimestampedActorNonce) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIdTimestampedActorNonce) Interface() protoreflect.ProtoMessage { + return (*TopicIdTimestampedActorNonce)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIdTimestampedActorNonce) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_TopicIdTimestampedActorNonce_TopicId, value) { + return + } + } + if x.TimestampedActorNonce != nil { + value := protoreflect.ValueOfMessage(x.TimestampedActorNonce.ProtoReflect()) + if !f(fd_TopicIdTimestampedActorNonce_TimestampedActorNonce, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIdTimestampedActorNonce) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIdTimestampedActorNonce.TopicId": + return x.TopicId != uint64(0) + case "emissions.v2.TopicIdTimestampedActorNonce.TimestampedActorNonce": + return x.TimestampedActorNonce != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdTimestampedActorNonce")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdTimestampedActorNonce does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdTimestampedActorNonce) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIdTimestampedActorNonce.TopicId": + x.TopicId = uint64(0) + case "emissions.v2.TopicIdTimestampedActorNonce.TimestampedActorNonce": + x.TimestampedActorNonce = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdTimestampedActorNonce")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdTimestampedActorNonce does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIdTimestampedActorNonce) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIdTimestampedActorNonce.TopicId": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.TopicIdTimestampedActorNonce.TimestampedActorNonce": + value := x.TimestampedActorNonce + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdTimestampedActorNonce")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdTimestampedActorNonce does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdTimestampedActorNonce) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIdTimestampedActorNonce.TopicId": + x.TopicId = value.Uint() + case "emissions.v2.TopicIdTimestampedActorNonce.TimestampedActorNonce": + x.TimestampedActorNonce = value.Message().Interface().(*TimestampedActorNonce) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdTimestampedActorNonce")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdTimestampedActorNonce does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdTimestampedActorNonce) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdTimestampedActorNonce.TimestampedActorNonce": + if x.TimestampedActorNonce == nil { + x.TimestampedActorNonce = new(TimestampedActorNonce) + } + return protoreflect.ValueOfMessage(x.TimestampedActorNonce.ProtoReflect()) + case "emissions.v2.TopicIdTimestampedActorNonce.TopicId": + panic(fmt.Errorf("field TopicId of message emissions.v2.TopicIdTimestampedActorNonce is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdTimestampedActorNonce")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdTimestampedActorNonce does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIdTimestampedActorNonce) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIdTimestampedActorNonce.TopicId": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.TopicIdTimestampedActorNonce.TimestampedActorNonce": + m := new(TimestampedActorNonce) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIdTimestampedActorNonce")) + } + panic(fmt.Errorf("message emissions.v2.TopicIdTimestampedActorNonce does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIdTimestampedActorNonce) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIdTimestampedActorNonce", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIdTimestampedActorNonce) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIdTimestampedActorNonce) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIdTimestampedActorNonce) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIdTimestampedActorNonce) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIdTimestampedActorNonce) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.TimestampedActorNonce != nil { + l = options.Size(x.TimestampedActorNonce) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIdTimestampedActorNonce) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.TimestampedActorNonce != nil { + encoded, err := options.Marshal(x.TimestampedActorNonce) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIdTimestampedActorNonce) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdTimestampedActorNonce: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIdTimestampedActorNonce: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TimestampedActorNonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.TimestampedActorNonce == nil { + x.TimestampedActorNonce = &TimestampedActorNonce{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.TimestampedActorNonce); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: emissions/v2/genesis.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// GenesisState is the state that must be provided at genesis. +type GenesisState struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // params defines all the parameters of the module. + Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` + // / TOPIC + // the next topic id to be used, equal to the number of topics that have been created + NextTopicId uint64 `protobuf:"varint,3,opt,name=nextTopicId,proto3" json:"nextTopicId,omitempty"` + // every topic that has been created indexed by their topicId starting from 1 (0 is reserved for the root network) + Topics []*TopicIdAndTopic `protobuf:"bytes,4,rep,name=topics,proto3" json:"topics,omitempty"` + ActiveTopics []uint64 `protobuf:"varint,5,rep,packed,name=activeTopics,proto3" json:"activeTopics,omitempty"` + // every topic that has been churned and ready to be rewarded i.e. reputer losses have been committed + RewardableTopics []uint64 `protobuf:"varint,6,rep,packed,name=rewardableTopics,proto3" json:"rewardableTopics,omitempty"` + // for a topic, what is every worker node that has registered to it? + TopicWorkers []*TopicAndActorId `protobuf:"bytes,7,rep,name=topicWorkers,proto3" json:"topicWorkers,omitempty"` + // for a topic, what is every reputer node that has registered to it? + TopicReputers []*TopicAndActorId `protobuf:"bytes,8,rep,name=topicReputers,proto3" json:"topicReputers,omitempty"` + // map of (topic) -> nonce/block height + TopicRewardNonce []*TopicIdAndBlockHeight `protobuf:"bytes,9,rep,name=topicRewardNonce,proto3" json:"topicRewardNonce,omitempty"` + // / SCORES + // map of (topic, block_height, worker) -> score + InfererScoresByBlock []*TopicIdBlockHeightScores `protobuf:"bytes,10,rep,name=infererScoresByBlock,proto3" json:"infererScoresByBlock,omitempty"` + // map of (topic, block_height, worker) -> score + ForecasterScoresByBlock []*TopicIdBlockHeightScores `protobuf:"bytes,11,rep,name=forecasterScoresByBlock,proto3" json:"forecasterScoresByBlock,omitempty"` + // map of (topic, block_height, reputer) -> score + ReputerScoresByBlock []*TopicIdBlockHeightScores `protobuf:"bytes,12,rep,name=reputerScoresByBlock,proto3" json:"reputerScoresByBlock,omitempty"` + // map of (topic, block_height, worker) -> score + LatestInfererScoresByWorker []*TopicIdActorIdScore `protobuf:"bytes,13,rep,name=latestInfererScoresByWorker,proto3" json:"latestInfererScoresByWorker,omitempty"` + // map of (topic, block_height, worker) -> score + LatestForecasterScoresByWorker []*TopicIdActorIdScore `protobuf:"bytes,14,rep,name=latestForecasterScoresByWorker,proto3" json:"latestForecasterScoresByWorker,omitempty"` + // map of (topic, block_height, reputer) -> score + LatestReputerScoresByReputer []*TopicIdActorIdScore `protobuf:"bytes,15,rep,name=latestReputerScoresByReputer,proto3" json:"latestReputerScoresByReputer,omitempty"` + // map of (topic, reputer) -> listening coefficient + ReputerListeningCoefficient []*TopicIdActorIdListeningCoefficient `protobuf:"bytes,16,rep,name=reputerListeningCoefficient,proto3" json:"reputerListeningCoefficient,omitempty"` + // map of (topic, reputer) -> previous reward (used for EMA) + PreviousReputerRewardFraction []*TopicIdActorIdDec `protobuf:"bytes,17,rep,name=previousReputerRewardFraction,proto3" json:"previousReputerRewardFraction,omitempty"` + // map of (topic, worker) -> previous reward for inference (used for EMA) + PreviousInferenceRewardFraction []*TopicIdActorIdDec `protobuf:"bytes,18,rep,name=previousInferenceRewardFraction,proto3" json:"previousInferenceRewardFraction,omitempty"` + // map of (topic, worker) -> previous reward for forecast (used for EMA) + PreviousForecastRewardFraction []*TopicIdActorIdDec `protobuf:"bytes,19,rep,name=previousForecastRewardFraction,proto3" json:"previousForecastRewardFraction,omitempty"` + // map of (topic, forecaster) -> ratio of forecaster score + PreviousForecasterScoreRatio []*TopicIdActorIdDec `protobuf:"bytes,20,rep,name=previousForecasterScoreRatio,proto3" json:"previousForecasterScoreRatio,omitempty"` + // total sum stake of all stakers on the network + TotalStake string `protobuf:"bytes,21,opt,name=totalStake,proto3" json:"totalStake,omitempty"` + // for every topic, how much total stake does that topic have accumulated? + TopicStake []*TopicIdAndInt `protobuf:"bytes,22,rep,name=topicStake,proto3" json:"topicStake,omitempty"` + // stake reputer placed in topic + delegate stake placed in them, + // signalling their total authority on the topic + // (topic Id, reputer) -> stake from reputer on self + stakeFromDelegatorsUponReputer + StakeReputerAuthority []*TopicIdActorIdInt `protobuf:"bytes,23,rep,name=stakeReputerAuthority,proto3" json:"stakeReputerAuthority,omitempty"` + // map of (topic id, delegator) -> total amount of stake in that topic placed by that delegator + StakeSumFromDelegator []*TopicIdActorIdInt `protobuf:"bytes,24,rep,name=stakeSumFromDelegator,proto3" json:"stakeSumFromDelegator,omitempty"` + // map of (topic id, delegator, reputer) -> amount of stake that has been placed by that delegator on that target + DelegatedStakes []*TopicIdDelegatorReputerDelegatorInfo `protobuf:"bytes,25,rep,name=delegatedStakes,proto3" json:"delegatedStakes,omitempty"` + // map of (topic id, reputer) -> total amount of stake that has been placed on that reputer by delegators + StakeFromDelegatorsUponReputer []*TopicIdActorIdInt `protobuf:"bytes,26,rep,name=stakeFromDelegatorsUponReputer,proto3" json:"stakeFromDelegatorsUponReputer,omitempty"` + // map of (topicId, reputer) -> share of delegate reward + DelegateRewardPerShare []*TopicIdActorIdDec `protobuf:"bytes,27,rep,name=delegateRewardPerShare,proto3" json:"delegateRewardPerShare,omitempty"` + // stake removals are double indexed to avoid O(n) lookups when removing stake + // map of (blockHeight, topic, reputer) -> removal information for that reputer + StakeRemovalsByBlock []*BlockHeightTopicIdReputerStakeRemovalInfo `protobuf:"bytes,28,rep,name=stakeRemovalsByBlock,proto3" json:"stakeRemovalsByBlock,omitempty"` + // key set of (reputer, topic, blockHeight) to existence of a removal in the forwards map + StakeRemovalsByActor []*ActorIdTopicIdBlockHeight `protobuf:"bytes,29,rep,name=stakeRemovalsByActor,proto3" json:"stakeRemovalsByActor,omitempty"` + // delegate stake removals are double indexed to avoid O(n) lookups when removing stake + // map of (blockHeight, topic, delegator, reputer staked upon) -> (list of reputers delegated upon and info) to have + // stake removed at that block + DelegateStakeRemovalsByBlock []*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo `protobuf:"bytes,30,rep,name=delegateStakeRemovalsByBlock,proto3" json:"delegateStakeRemovalsByBlock,omitempty"` + // key set of (delegator, reputer, topicId, blockHeight) to existence of a removal in the forwards map + DelegateStakeRemovalsByActor []*DelegatorReputerTopicIdBlockHeight `protobuf:"bytes,31,rep,name=delegateStakeRemovalsByActor,proto3" json:"delegateStakeRemovalsByActor,omitempty"` + // / MISC GLOBAL STATE + // map of (topic, worker) -> inference + Inferences []*TopicIdActorIdInference `protobuf:"bytes,32,rep,name=inferences,proto3" json:"inferences,omitempty"` + // map of (topic, worker) -> forecast[] + Forecasts []*TopicIdActorIdForecast `protobuf:"bytes,33,rep,name=forecasts,proto3" json:"forecasts,omitempty"` + // map of worker id to node data about that worker + Workers []*LibP2PKeyAndOffchainNode `protobuf:"bytes,34,rep,name=workers,proto3" json:"workers,omitempty"` + // map of reputer id to node data about that reputer + Reputers []*LibP2PKeyAndOffchainNode `protobuf:"bytes,35,rep,name=reputers,proto3" json:"reputers,omitempty"` + // fee revenue collected by a topic over the course of the last reward cadence + TopicFeeRevenue []*TopicIdAndInt `protobuf:"bytes,36,rep,name=topicFeeRevenue,proto3" json:"topicFeeRevenue,omitempty"` + // store previous weights for exponential moving average in rewards calc + PreviousTopicWeight []*TopicIdAndDec `protobuf:"bytes,37,rep,name=previousTopicWeight,proto3" json:"previousTopicWeight,omitempty"` + // map of (topic, block_height) -> Inference + AllInferences []*TopicIdBlockHeightInferences `protobuf:"bytes,38,rep,name=allInferences,proto3" json:"allInferences,omitempty"` + // map of (topic, block_height) -> Forecast + AllForecasts []*TopicIdBlockHeightForecasts `protobuf:"bytes,39,rep,name=allForecasts,proto3" json:"allForecasts,omitempty"` + // map of (topic, block_height) -> ReputerValueBundles (1 per reputer active at that time) + AllLossBundles []*TopicIdBlockHeightReputerValueBundles `protobuf:"bytes,40,rep,name=allLossBundles,proto3" json:"allLossBundles,omitempty"` + // map of (topic, block_height) -> ValueBundle (1 network wide bundle per timestep) + NetworkLossBundles []*TopicIdBlockHeightValueBundles `protobuf:"bytes,41,rep,name=networkLossBundles,proto3" json:"networkLossBundles,omitempty"` + // Percentage of all rewards, paid out to staked reputers, during the previous reward cadence. Used by mint module + PreviousPercentageRewardToStakedReputers string `protobuf:"bytes,42,opt,name=previousPercentageRewardToStakedReputers,proto3" json:"previousPercentageRewardToStakedReputers,omitempty"` + // / NONCES + // map of (topic) -> unfulfilled nonces + UnfulfilledWorkerNonces []*TopicIdAndNonces `protobuf:"bytes,43,rep,name=unfulfilledWorkerNonces,proto3" json:"unfulfilledWorkerNonces,omitempty"` + // map of (topic) -> unfulfilled nonces + UnfulfilledReputerNonces []*TopicIdAndReputerRequestNonces `protobuf:"bytes,44,rep,name=unfulfilledReputerNonces,proto3" json:"unfulfilledReputerNonces,omitempty"` + // / REGRETS + // map of (topic, worker) -> regret of worker from comparing loss of worker relative to loss of other inferers + LatestInfererNetworkRegrets []*TopicIdActorIdTimeStampedValue `protobuf:"bytes,45,rep,name=latestInfererNetworkRegrets,proto3" json:"latestInfererNetworkRegrets,omitempty"` + // map of (topic, worker) -> regret of worker from comparing loss of worker relative to loss of other forecasters + LatestForecasterNetworkRegrets []*TopicIdActorIdTimeStampedValue `protobuf:"bytes,46,rep,name=latestForecasterNetworkRegrets,proto3" json:"latestForecasterNetworkRegrets,omitempty"` + // map of (topic, forecaster, inferer) -> R^+_{ij_kk} regret of forecaster loss from comparing one-in loss with + // all network inferer (3rd index) regrets L_ij made under the regime of the one-in forecaster (2nd index) + LatestOneInForecasterNetworkRegrets []*TopicIdActorIdActorIdTimeStampedValue `protobuf:"bytes,47,rep,name=latestOneInForecasterNetworkRegrets,proto3" json:"latestOneInForecasterNetworkRegrets,omitempty"` + // the forecaster (2nd index) regrets made under the regime of the same forecaster as a one-in forecaster + LatestNaiveInfererNetworkRegrets []*TopicIdActorIdTimeStampedValue `protobuf:"bytes,48,rep,name=latestNaiveInfererNetworkRegrets,proto3" json:"latestNaiveInfererNetworkRegrets,omitempty"` + LatestOneOutInfererInfererNetworkRegrets []*TopicIdActorIdActorIdTimeStampedValue `protobuf:"bytes,49,rep,name=latestOneOutInfererInfererNetworkRegrets,proto3" json:"latestOneOutInfererInfererNetworkRegrets,omitempty"` + LatestOneOutInfererForecasterNetworkRegrets []*TopicIdActorIdActorIdTimeStampedValue `protobuf:"bytes,50,rep,name=latestOneOutInfererForecasterNetworkRegrets,proto3" json:"latestOneOutInfererForecasterNetworkRegrets,omitempty"` + LatestOneOutForecasterInfererNetworkRegrets []*TopicIdActorIdActorIdTimeStampedValue `protobuf:"bytes,51,rep,name=latestOneOutForecasterInfererNetworkRegrets,proto3" json:"latestOneOutForecasterInfererNetworkRegrets,omitempty"` + LatestOneOutForecasterForecasterNetworkRegrets []*TopicIdActorIdActorIdTimeStampedValue `protobuf:"bytes,52,rep,name=latestOneOutForecasterForecasterNetworkRegrets,proto3" json:"latestOneOutForecasterForecasterNetworkRegrets,omitempty"` + // / WHITELISTS + CoreTeamAddresses []string `protobuf:"bytes,2,rep,name=core_team_addresses,json=coreTeamAddresses,proto3" json:"core_team_addresses,omitempty"` + // / RECORD COMMITS + TopicLastWorkerCommit []*TopicIdTimestampedActorNonce `protobuf:"bytes,53,rep,name=topicLastWorkerCommit,proto3" json:"topicLastWorkerCommit,omitempty"` + TopicLastReputerCommit []*TopicIdTimestampedActorNonce `protobuf:"bytes,54,rep,name=topicLastReputerCommit,proto3" json:"topicLastReputerCommit,omitempty"` +} + +func (x *GenesisState) Reset() { + *x = GenesisState{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenesisState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenesisState) ProtoMessage() {} + +// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. +func (*GenesisState) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{0} +} + +func (x *GenesisState) GetParams() *Params { + if x != nil { + return x.Params + } + return nil +} + +func (x *GenesisState) GetNextTopicId() uint64 { + if x != nil { + return x.NextTopicId + } + return 0 +} + +func (x *GenesisState) GetTopics() []*TopicIdAndTopic { + if x != nil { + return x.Topics + } + return nil +} + +func (x *GenesisState) GetActiveTopics() []uint64 { + if x != nil { + return x.ActiveTopics + } + return nil +} + +func (x *GenesisState) GetRewardableTopics() []uint64 { + if x != nil { + return x.RewardableTopics + } + return nil +} + +func (x *GenesisState) GetTopicWorkers() []*TopicAndActorId { + if x != nil { + return x.TopicWorkers + } + return nil +} + +func (x *GenesisState) GetTopicReputers() []*TopicAndActorId { + if x != nil { + return x.TopicReputers + } + return nil +} + +func (x *GenesisState) GetTopicRewardNonce() []*TopicIdAndBlockHeight { + if x != nil { + return x.TopicRewardNonce + } + return nil +} + +func (x *GenesisState) GetInfererScoresByBlock() []*TopicIdBlockHeightScores { + if x != nil { + return x.InfererScoresByBlock + } + return nil +} + +func (x *GenesisState) GetForecasterScoresByBlock() []*TopicIdBlockHeightScores { + if x != nil { + return x.ForecasterScoresByBlock + } + return nil +} + +func (x *GenesisState) GetReputerScoresByBlock() []*TopicIdBlockHeightScores { + if x != nil { + return x.ReputerScoresByBlock + } + return nil +} + +func (x *GenesisState) GetLatestInfererScoresByWorker() []*TopicIdActorIdScore { + if x != nil { + return x.LatestInfererScoresByWorker + } + return nil +} + +func (x *GenesisState) GetLatestForecasterScoresByWorker() []*TopicIdActorIdScore { + if x != nil { + return x.LatestForecasterScoresByWorker + } + return nil +} + +func (x *GenesisState) GetLatestReputerScoresByReputer() []*TopicIdActorIdScore { + if x != nil { + return x.LatestReputerScoresByReputer + } + return nil +} + +func (x *GenesisState) GetReputerListeningCoefficient() []*TopicIdActorIdListeningCoefficient { + if x != nil { + return x.ReputerListeningCoefficient + } + return nil +} + +func (x *GenesisState) GetPreviousReputerRewardFraction() []*TopicIdActorIdDec { + if x != nil { + return x.PreviousReputerRewardFraction + } + return nil +} + +func (x *GenesisState) GetPreviousInferenceRewardFraction() []*TopicIdActorIdDec { + if x != nil { + return x.PreviousInferenceRewardFraction + } + return nil +} + +func (x *GenesisState) GetPreviousForecastRewardFraction() []*TopicIdActorIdDec { + if x != nil { + return x.PreviousForecastRewardFraction + } + return nil +} + +func (x *GenesisState) GetPreviousForecasterScoreRatio() []*TopicIdActorIdDec { + if x != nil { + return x.PreviousForecasterScoreRatio + } + return nil +} + +func (x *GenesisState) GetTotalStake() string { + if x != nil { + return x.TotalStake + } + return "" +} + +func (x *GenesisState) GetTopicStake() []*TopicIdAndInt { + if x != nil { + return x.TopicStake + } + return nil +} + +func (x *GenesisState) GetStakeReputerAuthority() []*TopicIdActorIdInt { + if x != nil { + return x.StakeReputerAuthority + } + return nil +} + +func (x *GenesisState) GetStakeSumFromDelegator() []*TopicIdActorIdInt { + if x != nil { + return x.StakeSumFromDelegator + } + return nil +} + +func (x *GenesisState) GetDelegatedStakes() []*TopicIdDelegatorReputerDelegatorInfo { + if x != nil { + return x.DelegatedStakes + } + return nil +} + +func (x *GenesisState) GetStakeFromDelegatorsUponReputer() []*TopicIdActorIdInt { + if x != nil { + return x.StakeFromDelegatorsUponReputer + } + return nil +} + +func (x *GenesisState) GetDelegateRewardPerShare() []*TopicIdActorIdDec { + if x != nil { + return x.DelegateRewardPerShare + } + return nil +} + +func (x *GenesisState) GetStakeRemovalsByBlock() []*BlockHeightTopicIdReputerStakeRemovalInfo { + if x != nil { + return x.StakeRemovalsByBlock + } + return nil +} + +func (x *GenesisState) GetStakeRemovalsByActor() []*ActorIdTopicIdBlockHeight { + if x != nil { + return x.StakeRemovalsByActor + } + return nil +} + +func (x *GenesisState) GetDelegateStakeRemovalsByBlock() []*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo { + if x != nil { + return x.DelegateStakeRemovalsByBlock + } + return nil +} + +func (x *GenesisState) GetDelegateStakeRemovalsByActor() []*DelegatorReputerTopicIdBlockHeight { + if x != nil { + return x.DelegateStakeRemovalsByActor + } + return nil +} + +func (x *GenesisState) GetInferences() []*TopicIdActorIdInference { + if x != nil { + return x.Inferences + } + return nil +} + +func (x *GenesisState) GetForecasts() []*TopicIdActorIdForecast { + if x != nil { + return x.Forecasts + } + return nil +} + +func (x *GenesisState) GetWorkers() []*LibP2PKeyAndOffchainNode { + if x != nil { + return x.Workers + } + return nil +} + +func (x *GenesisState) GetReputers() []*LibP2PKeyAndOffchainNode { + if x != nil { + return x.Reputers + } + return nil +} + +func (x *GenesisState) GetTopicFeeRevenue() []*TopicIdAndInt { + if x != nil { + return x.TopicFeeRevenue + } + return nil +} + +func (x *GenesisState) GetPreviousTopicWeight() []*TopicIdAndDec { + if x != nil { + return x.PreviousTopicWeight + } + return nil +} + +func (x *GenesisState) GetAllInferences() []*TopicIdBlockHeightInferences { + if x != nil { + return x.AllInferences + } + return nil +} + +func (x *GenesisState) GetAllForecasts() []*TopicIdBlockHeightForecasts { + if x != nil { + return x.AllForecasts + } + return nil +} + +func (x *GenesisState) GetAllLossBundles() []*TopicIdBlockHeightReputerValueBundles { + if x != nil { + return x.AllLossBundles + } + return nil +} + +func (x *GenesisState) GetNetworkLossBundles() []*TopicIdBlockHeightValueBundles { + if x != nil { + return x.NetworkLossBundles + } + return nil +} + +func (x *GenesisState) GetPreviousPercentageRewardToStakedReputers() string { + if x != nil { + return x.PreviousPercentageRewardToStakedReputers + } + return "" +} + +func (x *GenesisState) GetUnfulfilledWorkerNonces() []*TopicIdAndNonces { + if x != nil { + return x.UnfulfilledWorkerNonces + } + return nil +} + +func (x *GenesisState) GetUnfulfilledReputerNonces() []*TopicIdAndReputerRequestNonces { + if x != nil { + return x.UnfulfilledReputerNonces + } + return nil +} + +func (x *GenesisState) GetLatestInfererNetworkRegrets() []*TopicIdActorIdTimeStampedValue { + if x != nil { + return x.LatestInfererNetworkRegrets + } + return nil +} + +func (x *GenesisState) GetLatestForecasterNetworkRegrets() []*TopicIdActorIdTimeStampedValue { + if x != nil { + return x.LatestForecasterNetworkRegrets + } + return nil +} + +func (x *GenesisState) GetLatestOneInForecasterNetworkRegrets() []*TopicIdActorIdActorIdTimeStampedValue { + if x != nil { + return x.LatestOneInForecasterNetworkRegrets + } + return nil +} + +func (x *GenesisState) GetLatestNaiveInfererNetworkRegrets() []*TopicIdActorIdTimeStampedValue { + if x != nil { + return x.LatestNaiveInfererNetworkRegrets + } + return nil +} + +func (x *GenesisState) GetLatestOneOutInfererInfererNetworkRegrets() []*TopicIdActorIdActorIdTimeStampedValue { + if x != nil { + return x.LatestOneOutInfererInfererNetworkRegrets + } + return nil +} + +func (x *GenesisState) GetLatestOneOutInfererForecasterNetworkRegrets() []*TopicIdActorIdActorIdTimeStampedValue { + if x != nil { + return x.LatestOneOutInfererForecasterNetworkRegrets + } + return nil +} + +func (x *GenesisState) GetLatestOneOutForecasterInfererNetworkRegrets() []*TopicIdActorIdActorIdTimeStampedValue { + if x != nil { + return x.LatestOneOutForecasterInfererNetworkRegrets + } + return nil +} + +func (x *GenesisState) GetLatestOneOutForecasterForecasterNetworkRegrets() []*TopicIdActorIdActorIdTimeStampedValue { + if x != nil { + return x.LatestOneOutForecasterForecasterNetworkRegrets + } + return nil +} + +func (x *GenesisState) GetCoreTeamAddresses() []string { + if x != nil { + return x.CoreTeamAddresses + } + return nil +} + +func (x *GenesisState) GetTopicLastWorkerCommit() []*TopicIdTimestampedActorNonce { + if x != nil { + return x.TopicLastWorkerCommit + } + return nil +} + +func (x *GenesisState) GetTopicLastReputerCommit() []*TopicIdTimestampedActorNonce { + if x != nil { + return x.TopicLastReputerCommit + } + return nil +} + +type TopicIdAndTopic struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Topic *Topic `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"` +} + +func (x *TopicIdAndTopic) Reset() { + *x = TopicIdAndTopic{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdAndTopic) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdAndTopic) ProtoMessage() {} + +// Deprecated: Use TopicIdAndTopic.ProtoReflect.Descriptor instead. +func (*TopicIdAndTopic) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{1} +} + +func (x *TopicIdAndTopic) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdAndTopic) GetTopic() *Topic { + if x != nil { + return x.Topic + } + return nil +} + +type TopicAndActorId struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` +} + +func (x *TopicAndActorId) Reset() { + *x = TopicAndActorId{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicAndActorId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicAndActorId) ProtoMessage() {} + +// Deprecated: Use TopicAndActorId.ProtoReflect.Descriptor instead. +func (*TopicAndActorId) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{2} +} + +func (x *TopicAndActorId) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicAndActorId) GetActorId() string { + if x != nil { + return x.ActorId + } + return "" +} + +type TopicIdAndBlockHeight struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` +} + +func (x *TopicIdAndBlockHeight) Reset() { + *x = TopicIdAndBlockHeight{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdAndBlockHeight) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdAndBlockHeight) ProtoMessage() {} + +// Deprecated: Use TopicIdAndBlockHeight.ProtoReflect.Descriptor instead. +func (*TopicIdAndBlockHeight) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{3} +} + +func (x *TopicIdAndBlockHeight) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdAndBlockHeight) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +type TopicIdBlockHeightScores struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + Scores *Scores `protobuf:"bytes,3,opt,name=Scores,proto3" json:"Scores,omitempty"` +} + +func (x *TopicIdBlockHeightScores) Reset() { + *x = TopicIdBlockHeightScores{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdBlockHeightScores) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdBlockHeightScores) ProtoMessage() {} + +// Deprecated: Use TopicIdBlockHeightScores.ProtoReflect.Descriptor instead. +func (*TopicIdBlockHeightScores) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{4} +} + +func (x *TopicIdBlockHeightScores) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdBlockHeightScores) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *TopicIdBlockHeightScores) GetScores() *Scores { + if x != nil { + return x.Scores + } + return nil +} + +type TopicIdActorIdScore struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + Score *Score `protobuf:"bytes,3,opt,name=Score,proto3" json:"Score,omitempty"` +} + +func (x *TopicIdActorIdScore) Reset() { + *x = TopicIdActorIdScore{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdActorIdScore) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdActorIdScore) ProtoMessage() {} + +// Deprecated: Use TopicIdActorIdScore.ProtoReflect.Descriptor instead. +func (*TopicIdActorIdScore) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{5} +} + +func (x *TopicIdActorIdScore) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdActorIdScore) GetActorId() string { + if x != nil { + return x.ActorId + } + return "" +} + +func (x *TopicIdActorIdScore) GetScore() *Score { + if x != nil { + return x.Score + } + return nil +} + +type TopicIdActorIdListeningCoefficient struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + ListeningCoefficient *ListeningCoefficient `protobuf:"bytes,3,opt,name=ListeningCoefficient,proto3" json:"ListeningCoefficient,omitempty"` +} + +func (x *TopicIdActorIdListeningCoefficient) Reset() { + *x = TopicIdActorIdListeningCoefficient{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdActorIdListeningCoefficient) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdActorIdListeningCoefficient) ProtoMessage() {} + +// Deprecated: Use TopicIdActorIdListeningCoefficient.ProtoReflect.Descriptor instead. +func (*TopicIdActorIdListeningCoefficient) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{6} +} + +func (x *TopicIdActorIdListeningCoefficient) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdActorIdListeningCoefficient) GetActorId() string { + if x != nil { + return x.ActorId + } + return "" +} + +func (x *TopicIdActorIdListeningCoefficient) GetListeningCoefficient() *ListeningCoefficient { + if x != nil { + return x.ListeningCoefficient + } + return nil +} + +type TopicIdActorIdDec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + Dec string `protobuf:"bytes,3,opt,name=Dec,proto3" json:"Dec,omitempty"` +} + +func (x *TopicIdActorIdDec) Reset() { + *x = TopicIdActorIdDec{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdActorIdDec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdActorIdDec) ProtoMessage() {} + +// Deprecated: Use TopicIdActorIdDec.ProtoReflect.Descriptor instead. +func (*TopicIdActorIdDec) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{7} +} + +func (x *TopicIdActorIdDec) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdActorIdDec) GetActorId() string { + if x != nil { + return x.ActorId + } + return "" +} + +func (x *TopicIdActorIdDec) GetDec() string { + if x != nil { + return x.Dec + } + return "" +} + +type TopicIdAndInt struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Int string `protobuf:"bytes,2,opt,name=Int,proto3" json:"Int,omitempty"` +} + +func (x *TopicIdAndInt) Reset() { + *x = TopicIdAndInt{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdAndInt) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdAndInt) ProtoMessage() {} + +// Deprecated: Use TopicIdAndInt.ProtoReflect.Descriptor instead. +func (*TopicIdAndInt) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{8} +} + +func (x *TopicIdAndInt) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdAndInt) GetInt() string { + if x != nil { + return x.Int + } + return "" +} + +type TopicIdActorIdInt struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + Int string `protobuf:"bytes,3,opt,name=Int,proto3" json:"Int,omitempty"` +} + +func (x *TopicIdActorIdInt) Reset() { + *x = TopicIdActorIdInt{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdActorIdInt) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdActorIdInt) ProtoMessage() {} + +// Deprecated: Use TopicIdActorIdInt.ProtoReflect.Descriptor instead. +func (*TopicIdActorIdInt) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{9} +} + +func (x *TopicIdActorIdInt) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdActorIdInt) GetActorId() string { + if x != nil { + return x.ActorId + } + return "" +} + +func (x *TopicIdActorIdInt) GetInt() string { + if x != nil { + return x.Int + } + return "" +} + +type TopicIdDelegatorReputerDelegatorInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Delegator string `protobuf:"bytes,2,opt,name=Delegator,proto3" json:"Delegator,omitempty"` + Reputer string `protobuf:"bytes,3,opt,name=Reputer,proto3" json:"Reputer,omitempty"` + DelegatorInfo *DelegatorInfo `protobuf:"bytes,4,opt,name=DelegatorInfo,proto3" json:"DelegatorInfo,omitempty"` +} + +func (x *TopicIdDelegatorReputerDelegatorInfo) Reset() { + *x = TopicIdDelegatorReputerDelegatorInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdDelegatorReputerDelegatorInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdDelegatorReputerDelegatorInfo) ProtoMessage() {} + +// Deprecated: Use TopicIdDelegatorReputerDelegatorInfo.ProtoReflect.Descriptor instead. +func (*TopicIdDelegatorReputerDelegatorInfo) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{10} +} + +func (x *TopicIdDelegatorReputerDelegatorInfo) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdDelegatorReputerDelegatorInfo) GetDelegator() string { + if x != nil { + return x.Delegator + } + return "" +} + +func (x *TopicIdDelegatorReputerDelegatorInfo) GetReputer() string { + if x != nil { + return x.Reputer + } + return "" +} + +func (x *TopicIdDelegatorReputerDelegatorInfo) GetDelegatorInfo() *DelegatorInfo { + if x != nil { + return x.DelegatorInfo + } + return nil +} + +type BlockHeightTopicIdReputerStakeRemovalInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlockHeight int64 `protobuf:"varint,1,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Reputer string `protobuf:"bytes,3,opt,name=Reputer,proto3" json:"Reputer,omitempty"` + StakeRemovalInfo *StakeRemovalInfo `protobuf:"bytes,4,opt,name=StakeRemovalInfo,proto3" json:"StakeRemovalInfo,omitempty"` +} + +func (x *BlockHeightTopicIdReputerStakeRemovalInfo) Reset() { + *x = BlockHeightTopicIdReputerStakeRemovalInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BlockHeightTopicIdReputerStakeRemovalInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BlockHeightTopicIdReputerStakeRemovalInfo) ProtoMessage() {} + +// Deprecated: Use BlockHeightTopicIdReputerStakeRemovalInfo.ProtoReflect.Descriptor instead. +func (*BlockHeightTopicIdReputerStakeRemovalInfo) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{11} +} + +func (x *BlockHeightTopicIdReputerStakeRemovalInfo) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *BlockHeightTopicIdReputerStakeRemovalInfo) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *BlockHeightTopicIdReputerStakeRemovalInfo) GetReputer() string { + if x != nil { + return x.Reputer + } + return "" +} + +func (x *BlockHeightTopicIdReputerStakeRemovalInfo) GetStakeRemovalInfo() *StakeRemovalInfo { + if x != nil { + return x.StakeRemovalInfo + } + return nil +} + +type ActorIdTopicIdBlockHeight struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ActorId string `protobuf:"bytes,1,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,3,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` +} + +func (x *ActorIdTopicIdBlockHeight) Reset() { + *x = ActorIdTopicIdBlockHeight{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ActorIdTopicIdBlockHeight) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ActorIdTopicIdBlockHeight) ProtoMessage() {} + +// Deprecated: Use ActorIdTopicIdBlockHeight.ProtoReflect.Descriptor instead. +func (*ActorIdTopicIdBlockHeight) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{12} +} + +func (x *ActorIdTopicIdBlockHeight) GetActorId() string { + if x != nil { + return x.ActorId + } + return "" +} + +func (x *ActorIdTopicIdBlockHeight) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *ActorIdTopicIdBlockHeight) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +type BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlockHeight int64 `protobuf:"varint,1,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Delegator string `protobuf:"bytes,3,opt,name=Delegator,proto3" json:"Delegator,omitempty"` + Reputer string `protobuf:"bytes,4,opt,name=Reputer,proto3" json:"Reputer,omitempty"` + DelegateStakeRemovalInfo *DelegateStakeRemovalInfo `protobuf:"bytes,5,opt,name=DelegateStakeRemovalInfo,proto3" json:"DelegateStakeRemovalInfo,omitempty"` +} + +func (x *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Reset() { + *x = BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) ProtoMessage() {} + +// Deprecated: Use BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.ProtoReflect.Descriptor instead. +func (*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{13} +} + +func (x *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) GetDelegator() string { + if x != nil { + return x.Delegator + } + return "" +} + +func (x *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) GetReputer() string { + if x != nil { + return x.Reputer + } + return "" +} + +func (x *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) GetDelegateStakeRemovalInfo() *DelegateStakeRemovalInfo { + if x != nil { + return x.DelegateStakeRemovalInfo + } + return nil +} + +type DelegatorReputerTopicIdBlockHeight struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Delegator string `protobuf:"bytes,1,opt,name=Delegator,proto3" json:"Delegator,omitempty"` + Reputer string `protobuf:"bytes,2,opt,name=Reputer,proto3" json:"Reputer,omitempty"` + TopicId uint64 `protobuf:"varint,3,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,4,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` +} + +func (x *DelegatorReputerTopicIdBlockHeight) Reset() { + *x = DelegatorReputerTopicIdBlockHeight{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DelegatorReputerTopicIdBlockHeight) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DelegatorReputerTopicIdBlockHeight) ProtoMessage() {} + +// Deprecated: Use DelegatorReputerTopicIdBlockHeight.ProtoReflect.Descriptor instead. +func (*DelegatorReputerTopicIdBlockHeight) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{14} +} + +func (x *DelegatorReputerTopicIdBlockHeight) GetDelegator() string { + if x != nil { + return x.Delegator + } + return "" +} + +func (x *DelegatorReputerTopicIdBlockHeight) GetReputer() string { + if x != nil { + return x.Reputer + } + return "" +} + +func (x *DelegatorReputerTopicIdBlockHeight) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *DelegatorReputerTopicIdBlockHeight) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +type TopicIdActorIdInference struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + Inference *Inference `protobuf:"bytes,3,opt,name=Inference,proto3" json:"Inference,omitempty"` +} + +func (x *TopicIdActorIdInference) Reset() { + *x = TopicIdActorIdInference{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdActorIdInference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdActorIdInference) ProtoMessage() {} + +// Deprecated: Use TopicIdActorIdInference.ProtoReflect.Descriptor instead. +func (*TopicIdActorIdInference) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{15} +} + +func (x *TopicIdActorIdInference) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdActorIdInference) GetActorId() string { + if x != nil { + return x.ActorId + } + return "" +} + +func (x *TopicIdActorIdInference) GetInference() *Inference { + if x != nil { + return x.Inference + } + return nil +} + +type TopicIdActorIdForecast struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + Forecast *Forecast `protobuf:"bytes,3,opt,name=Forecast,proto3" json:"Forecast,omitempty"` +} + +func (x *TopicIdActorIdForecast) Reset() { + *x = TopicIdActorIdForecast{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdActorIdForecast) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdActorIdForecast) ProtoMessage() {} + +// Deprecated: Use TopicIdActorIdForecast.ProtoReflect.Descriptor instead. +func (*TopicIdActorIdForecast) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{16} +} + +func (x *TopicIdActorIdForecast) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdActorIdForecast) GetActorId() string { + if x != nil { + return x.ActorId + } + return "" +} + +func (x *TopicIdActorIdForecast) GetForecast() *Forecast { + if x != nil { + return x.Forecast + } + return nil +} + +type LibP2PKeyAndOffchainNode struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + LibP2PKey string `protobuf:"bytes,1,opt,name=LibP2pKey,proto3" json:"LibP2pKey,omitempty"` + OffchainNode *OffchainNode `protobuf:"bytes,2,opt,name=OffchainNode,proto3" json:"OffchainNode,omitempty"` +} + +func (x *LibP2PKeyAndOffchainNode) Reset() { + *x = LibP2PKeyAndOffchainNode{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LibP2PKeyAndOffchainNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LibP2PKeyAndOffchainNode) ProtoMessage() {} + +// Deprecated: Use LibP2PKeyAndOffchainNode.ProtoReflect.Descriptor instead. +func (*LibP2PKeyAndOffchainNode) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{17} +} + +func (x *LibP2PKeyAndOffchainNode) GetLibP2PKey() string { + if x != nil { + return x.LibP2PKey + } + return "" +} + +func (x *LibP2PKeyAndOffchainNode) GetOffchainNode() *OffchainNode { + if x != nil { + return x.OffchainNode + } + return nil +} + +type TopicIdAndDec struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Dec string `protobuf:"bytes,2,opt,name=Dec,proto3" json:"Dec,omitempty"` +} + +func (x *TopicIdAndDec) Reset() { + *x = TopicIdAndDec{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdAndDec) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdAndDec) ProtoMessage() {} + +// Deprecated: Use TopicIdAndDec.ProtoReflect.Descriptor instead. +func (*TopicIdAndDec) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{18} +} + +func (x *TopicIdAndDec) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdAndDec) GetDec() string { + if x != nil { + return x.Dec + } + return "" +} + +type TopicIdBlockHeightInferences struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + Inferences *Inferences `protobuf:"bytes,3,opt,name=Inferences,proto3" json:"Inferences,omitempty"` +} + +func (x *TopicIdBlockHeightInferences) Reset() { + *x = TopicIdBlockHeightInferences{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdBlockHeightInferences) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdBlockHeightInferences) ProtoMessage() {} + +// Deprecated: Use TopicIdBlockHeightInferences.ProtoReflect.Descriptor instead. +func (*TopicIdBlockHeightInferences) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{19} +} + +func (x *TopicIdBlockHeightInferences) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdBlockHeightInferences) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *TopicIdBlockHeightInferences) GetInferences() *Inferences { + if x != nil { + return x.Inferences + } + return nil +} + +type TopicIdBlockHeightForecasts struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + Forecasts *Forecasts `protobuf:"bytes,3,opt,name=Forecasts,proto3" json:"Forecasts,omitempty"` +} + +func (x *TopicIdBlockHeightForecasts) Reset() { + *x = TopicIdBlockHeightForecasts{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdBlockHeightForecasts) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdBlockHeightForecasts) ProtoMessage() {} + +// Deprecated: Use TopicIdBlockHeightForecasts.ProtoReflect.Descriptor instead. +func (*TopicIdBlockHeightForecasts) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{20} +} + +func (x *TopicIdBlockHeightForecasts) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdBlockHeightForecasts) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *TopicIdBlockHeightForecasts) GetForecasts() *Forecasts { + if x != nil { + return x.Forecasts + } + return nil +} + +type TopicIdBlockHeightReputerValueBundles struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + ReputerValueBundles *ReputerValueBundles `protobuf:"bytes,3,opt,name=ReputerValueBundles,proto3" json:"ReputerValueBundles,omitempty"` +} + +func (x *TopicIdBlockHeightReputerValueBundles) Reset() { + *x = TopicIdBlockHeightReputerValueBundles{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdBlockHeightReputerValueBundles) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdBlockHeightReputerValueBundles) ProtoMessage() {} + +// Deprecated: Use TopicIdBlockHeightReputerValueBundles.ProtoReflect.Descriptor instead. +func (*TopicIdBlockHeightReputerValueBundles) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{21} +} + +func (x *TopicIdBlockHeightReputerValueBundles) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdBlockHeightReputerValueBundles) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *TopicIdBlockHeightReputerValueBundles) GetReputerValueBundles() *ReputerValueBundles { + if x != nil { + return x.ReputerValueBundles + } + return nil +} + +type TopicIdBlockHeightValueBundles struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + ValueBundle *ValueBundle `protobuf:"bytes,3,opt,name=ValueBundle,proto3" json:"ValueBundle,omitempty"` +} + +func (x *TopicIdBlockHeightValueBundles) Reset() { + *x = TopicIdBlockHeightValueBundles{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdBlockHeightValueBundles) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdBlockHeightValueBundles) ProtoMessage() {} + +// Deprecated: Use TopicIdBlockHeightValueBundles.ProtoReflect.Descriptor instead. +func (*TopicIdBlockHeightValueBundles) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{22} +} + +func (x *TopicIdBlockHeightValueBundles) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdBlockHeightValueBundles) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *TopicIdBlockHeightValueBundles) GetValueBundle() *ValueBundle { + if x != nil { + return x.ValueBundle + } + return nil +} + +type TopicIdAndNonces struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Nonces *Nonces `protobuf:"bytes,2,opt,name=Nonces,proto3" json:"Nonces,omitempty"` +} + +func (x *TopicIdAndNonces) Reset() { + *x = TopicIdAndNonces{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdAndNonces) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdAndNonces) ProtoMessage() {} + +// Deprecated: Use TopicIdAndNonces.ProtoReflect.Descriptor instead. +func (*TopicIdAndNonces) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{23} +} + +func (x *TopicIdAndNonces) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdAndNonces) GetNonces() *Nonces { + if x != nil { + return x.Nonces + } + return nil +} + +type TopicIdAndReputerRequestNonces struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ReputerRequestNonces *ReputerRequestNonces `protobuf:"bytes,2,opt,name=ReputerRequestNonces,proto3" json:"ReputerRequestNonces,omitempty"` +} + +func (x *TopicIdAndReputerRequestNonces) Reset() { + *x = TopicIdAndReputerRequestNonces{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdAndReputerRequestNonces) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdAndReputerRequestNonces) ProtoMessage() {} + +// Deprecated: Use TopicIdAndReputerRequestNonces.ProtoReflect.Descriptor instead. +func (*TopicIdAndReputerRequestNonces) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{24} +} + +func (x *TopicIdAndReputerRequestNonces) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdAndReputerRequestNonces) GetReputerRequestNonces() *ReputerRequestNonces { + if x != nil { + return x.ReputerRequestNonces + } + return nil +} + +type TopicIdActorIdTimeStampedValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + TimestampedValue *TimestampedValue `protobuf:"bytes,3,opt,name=TimestampedValue,proto3" json:"TimestampedValue,omitempty"` +} + +func (x *TopicIdActorIdTimeStampedValue) Reset() { + *x = TopicIdActorIdTimeStampedValue{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdActorIdTimeStampedValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdActorIdTimeStampedValue) ProtoMessage() {} + +// Deprecated: Use TopicIdActorIdTimeStampedValue.ProtoReflect.Descriptor instead. +func (*TopicIdActorIdTimeStampedValue) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{25} +} + +func (x *TopicIdActorIdTimeStampedValue) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdActorIdTimeStampedValue) GetActorId() string { + if x != nil { + return x.ActorId + } + return "" +} + +func (x *TopicIdActorIdTimeStampedValue) GetTimestampedValue() *TimestampedValue { + if x != nil { + return x.TimestampedValue + } + return nil +} + +type TopicIdActorIdActorIdTimeStampedValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId1 string `protobuf:"bytes,2,opt,name=ActorId1,proto3" json:"ActorId1,omitempty"` + ActorId2 string `protobuf:"bytes,3,opt,name=ActorId2,proto3" json:"ActorId2,omitempty"` + TimestampedValue *TimestampedValue `protobuf:"bytes,4,opt,name=TimestampedValue,proto3" json:"TimestampedValue,omitempty"` +} + +func (x *TopicIdActorIdActorIdTimeStampedValue) Reset() { + *x = TopicIdActorIdActorIdTimeStampedValue{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdActorIdActorIdTimeStampedValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdActorIdActorIdTimeStampedValue) ProtoMessage() {} + +// Deprecated: Use TopicIdActorIdActorIdTimeStampedValue.ProtoReflect.Descriptor instead. +func (*TopicIdActorIdActorIdTimeStampedValue) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{26} +} + +func (x *TopicIdActorIdActorIdTimeStampedValue) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdActorIdActorIdTimeStampedValue) GetActorId1() string { + if x != nil { + return x.ActorId1 + } + return "" +} + +func (x *TopicIdActorIdActorIdTimeStampedValue) GetActorId2() string { + if x != nil { + return x.ActorId2 + } + return "" +} + +func (x *TopicIdActorIdActorIdTimeStampedValue) GetTimestampedValue() *TimestampedValue { + if x != nil { + return x.TimestampedValue + } + return nil +} + +type TopicIdTimestampedActorNonce struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + TimestampedActorNonce *TimestampedActorNonce `protobuf:"bytes,2,opt,name=TimestampedActorNonce,proto3" json:"TimestampedActorNonce,omitempty"` +} + +func (x *TopicIdTimestampedActorNonce) Reset() { + *x = TopicIdTimestampedActorNonce{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_genesis_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIdTimestampedActorNonce) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIdTimestampedActorNonce) ProtoMessage() {} + +// Deprecated: Use TopicIdTimestampedActorNonce.ProtoReflect.Descriptor instead. +func (*TopicIdTimestampedActorNonce) Descriptor() ([]byte, []int) { + return file_emissions_v2_genesis_proto_rawDescGZIP(), []int{27} +} + +func (x *TopicIdTimestampedActorNonce) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *TopicIdTimestampedActorNonce) GetTimestampedActorNonce() *TimestampedActorNonce { + if x != nil { + return x.TimestampedActorNonce + } + return nil +} + +var File_emissions_v2_genesis_proto protoreflect.FileDescriptor + +var file_emissions_v2_genesis_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x67, + 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, + 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, + 0x32, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x19, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf0, 0x27, 0x0a, 0x0c, + 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x32, 0x0a, 0x06, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x12, 0x35, 0x0a, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x12, 0x22, 0x0a, 0x0c, 0x61, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x04, 0x52, + 0x0c, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x12, 0x2a, 0x0a, + 0x10, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x04, 0x52, 0x10, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, + 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x12, 0x41, 0x0a, 0x0c, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x1d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x41, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x52, 0x0c, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x12, 0x43, 0x0a, 0x0d, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x18, 0x08, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x41, 0x6e, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, + 0x49, 0x64, 0x52, 0x0d, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x73, 0x12, 0x4f, 0x0a, 0x10, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x41, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x52, 0x10, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x4e, 0x6f, 0x6e, + 0x63, 0x65, 0x12, 0x5a, 0x0a, 0x14, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x53, 0x63, 0x6f, + 0x72, 0x65, 0x73, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x26, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x52, 0x14, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, + 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x60, + 0x0a, 0x17, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, + 0x65, 0x73, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x52, 0x17, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, + 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x12, 0x5a, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, + 0x73, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, + 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x52, 0x14, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, + 0x63, 0x6f, 0x72, 0x65, 0x73, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x63, 0x0a, 0x1b, + 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x53, 0x63, 0x6f, + 0x72, 0x65, 0x73, 0x42, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x18, 0x0d, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x53, + 0x63, 0x6f, 0x72, 0x65, 0x52, 0x1b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, + 0x72, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x42, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x12, 0x69, 0x0a, 0x1e, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, + 0x61, 0x73, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x42, 0x79, 0x57, 0x6f, 0x72, + 0x6b, 0x65, 0x72, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, + 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x1e, 0x6c, 0x61, + 0x74, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x53, 0x63, + 0x6f, 0x72, 0x65, 0x73, 0x42, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x12, 0x65, 0x0a, 0x1c, + 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, + 0x72, 0x65, 0x73, 0x42, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x18, 0x0f, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, + 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x1c, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x70, + 0x75, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x42, 0x79, 0x52, 0x65, 0x70, 0x75, + 0x74, 0x65, 0x72, 0x12, 0x72, 0x0a, 0x1b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4c, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, + 0x6e, 0x74, 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, + 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, + 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x1b, 0x72, 0x65, 0x70, 0x75, + 0x74, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, + 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x65, 0x0a, 0x1d, 0x70, 0x72, 0x65, 0x76, 0x69, + 0x6f, 0x75, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, + 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x11, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, + 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x44, 0x65, 0x63, 0x52, + 0x1d, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x69, + 0x0a, 0x1f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, + 0x74, 0x6f, 0x72, 0x49, 0x64, 0x44, 0x65, 0x63, 0x52, 0x1f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, + 0x75, 0x73, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, + 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x67, 0x0a, 0x1e, 0x70, 0x72, 0x65, + 0x76, 0x69, 0x6f, 0x75, 0x73, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x52, 0x65, 0x77, + 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x13, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x44, + 0x65, 0x63, 0x52, 0x1e, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x46, 0x6f, 0x72, 0x65, + 0x63, 0x61, 0x73, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x63, 0x0a, 0x1c, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x46, 0x6f, + 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x61, 0x74, + 0x69, 0x6f, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, + 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x44, 0x65, 0x63, 0x52, 0x1c, 0x70, 0x72, 0x65, 0x76, 0x69, + 0x6f, 0x75, 0x73, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, + 0x72, 0x65, 0x52, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x50, 0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x53, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, + 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x18, 0x16, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x52, 0x0a, 0x74, 0x6f, 0x70, 0x69, + 0x63, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x55, 0x0a, 0x15, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x52, + 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x18, + 0x17, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, + 0x72, 0x49, 0x64, 0x49, 0x6e, 0x74, 0x52, 0x15, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x70, + 0x75, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x55, 0x0a, + 0x15, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x53, 0x75, 0x6d, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x18, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x49, 0x6e, 0x74, 0x52, 0x15, 0x73, + 0x74, 0x61, 0x6b, 0x65, 0x53, 0x75, 0x6d, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x6f, 0x72, 0x12, 0x5c, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, + 0x64, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x73, 0x18, 0x19, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x70, + 0x75, 0x74, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x61, 0x6b, + 0x65, 0x73, 0x12, 0x67, 0x0a, 0x1e, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x73, 0x55, 0x70, 0x6f, 0x6e, 0x52, 0x65, 0x70, + 0x75, 0x74, 0x65, 0x72, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x49, 0x6e, 0x74, 0x52, 0x1e, 0x73, 0x74, 0x61, + 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x73, + 0x55, 0x70, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x12, 0x57, 0x0a, 0x16, 0x64, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x50, 0x65, 0x72, + 0x53, 0x68, 0x61, 0x72, 0x65, 0x18, 0x1b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x44, 0x65, 0x63, 0x52, 0x16, 0x64, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x50, 0x65, 0x72, 0x53, + 0x68, 0x61, 0x72, 0x65, 0x12, 0x6b, 0x0a, 0x14, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x1c, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x14, 0x73, 0x74, 0x61, + 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x12, 0x5b, 0x0a, 0x14, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, + 0x6c, 0x73, 0x42, 0x79, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x1d, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x27, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x41, + 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x14, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x8c, + 0x01, 0x0a, 0x1c, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x18, + 0x1e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, + 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, + 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x1c, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x74, 0x0a, + 0x1c, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x1f, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x75, + 0x74, 0x65, 0x72, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x1c, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, + 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x42, 0x79, 0x41, 0x63, + 0x74, 0x6f, 0x72, 0x12, 0x45, 0x0a, 0x0a, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x73, 0x18, 0x20, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, + 0x74, 0x6f, 0x72, 0x49, 0x64, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0a, + 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x66, 0x6f, + 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x18, 0x21, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x46, 0x6f, 0x72, 0x65, 0x63, + 0x61, 0x73, 0x74, 0x52, 0x09, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x12, 0x40, + 0x0a, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, 0x18, 0x22, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x26, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4c, + 0x69, 0x62, 0x50, 0x32, 0x70, 0x4b, 0x65, 0x79, 0x41, 0x6e, 0x64, 0x4f, 0x66, 0x66, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x73, + 0x12, 0x42, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x18, 0x23, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x4c, 0x69, 0x62, 0x50, 0x32, 0x70, 0x4b, 0x65, 0x79, 0x41, 0x6e, 0x64, 0x4f, 0x66, + 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x72, 0x65, 0x70, 0x75, + 0x74, 0x65, 0x72, 0x73, 0x12, 0x45, 0x0a, 0x0f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x46, 0x65, 0x65, + 0x52, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x18, 0x24, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x52, 0x0f, 0x74, 0x6f, 0x70, 0x69, + 0x63, 0x46, 0x65, 0x65, 0x52, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x70, + 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x57, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x25, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, + 0x6e, 0x64, 0x44, 0x65, 0x63, 0x52, 0x13, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x50, 0x0a, 0x0d, 0x61, 0x6c, + 0x6c, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x26, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x0d, 0x61, + 0x6c, 0x6c, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x0c, + 0x61, 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x18, 0x27, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x52, 0x0c, 0x61, + 0x6c, 0x6c, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x12, 0x5b, 0x0a, 0x0e, 0x61, + 0x6c, 0x6c, 0x4c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x28, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x52, 0x0e, 0x61, 0x6c, 0x6c, 0x4c, 0x6f, 0x73, + 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x12, 0x5c, 0x0a, 0x12, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x29, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x73, 0x52, 0x12, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x73, 0x73, 0x42, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x12, 0x93, 0x01, 0x0a, 0x28, 0x70, 0x72, 0x65, 0x76, 0x69, + 0x6f, 0x75, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x77, + 0x61, 0x72, 0x64, 0x54, 0x6f, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, + 0x65, 0x72, 0x73, 0x18, 0x2a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, + 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, + 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, + 0x65, 0x63, 0x52, 0x28, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x50, 0x65, 0x72, 0x63, + 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x53, 0x74, + 0x61, 0x6b, 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x12, 0x58, 0x0a, 0x17, + 0x75, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x2b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x41, 0x6e, 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x17, 0x75, + 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x68, 0x0a, 0x18, 0x75, 0x6e, 0x66, 0x75, 0x6c, 0x66, + 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, + 0x65, 0x73, 0x18, 0x2c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, + 0x6e, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x18, 0x75, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, + 0x6c, 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, + 0x12, 0x6e, 0x0a, 0x1b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, + 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x73, 0x18, + 0x2d, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, + 0x72, 0x49, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x52, 0x1b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, + 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x73, + 0x12, 0x74, 0x0a, 0x1e, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, + 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, + 0x74, 0x73, 0x18, 0x2e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, + 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x65, + 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x1e, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x6f, + 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, + 0x65, 0x67, 0x72, 0x65, 0x74, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x23, 0x6c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x4f, 0x6e, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x73, 0x18, 0x2f, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, + 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, + 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x23, 0x6c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x4f, 0x6e, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x73, 0x12, 0x78, + 0x0a, 0x20, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4e, 0x61, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x66, + 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, + 0x74, 0x73, 0x18, 0x30, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, + 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x65, + 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x20, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4e, 0x61, + 0x69, 0x76, 0x65, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x73, 0x12, 0x8f, 0x01, 0x0a, 0x28, 0x6c, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, + 0x67, 0x72, 0x65, 0x74, 0x73, 0x18, 0x31, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x28, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, + 0x66, 0x65, 0x72, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x2b, 0x6c, + 0x61, 0x74, 0x65, 0x73, 0x74, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, + 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x73, 0x18, 0x32, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x41, 0x63, + 0x74, 0x6f, 0x72, 0x49, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x2b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4f, 0x6e, 0x65, + 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, + 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, + 0x74, 0x73, 0x12, 0x95, 0x01, 0x0a, 0x2b, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4f, 0x6e, 0x65, + 0x4f, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, + 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, + 0x74, 0x73, 0x18, 0x33, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, + 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x54, 0x69, 0x6d, + 0x65, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x2b, 0x6c, + 0x61, 0x74, 0x65, 0x73, 0x74, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, + 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x73, 0x12, 0x9b, 0x01, 0x0a, 0x2e, 0x6c, + 0x61, 0x74, 0x65, 0x73, 0x74, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, + 0x61, 0x73, 0x74, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x73, 0x18, 0x34, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, + 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x6d, + 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x2e, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, + 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x6f, 0x72, 0x65, + 0x5f, 0x74, 0x65, 0x61, 0x6d, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x63, 0x6f, 0x72, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x60, 0x0a, 0x15, 0x74, 0x6f, 0x70, 0x69, + 0x63, 0x4c, 0x61, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x18, 0x35, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x6f, + 0x6e, 0x63, 0x65, 0x52, 0x15, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x57, 0x6f, + 0x72, 0x6b, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x62, 0x0a, 0x16, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x36, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x41, 0x63, 0x74, 0x6f, + 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x16, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, + 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0x56, + 0x0a, 0x0f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x05, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, + 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x22, 0x45, 0x0a, 0x0f, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x41, + 0x6e, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x22, 0x53, 0x0a, + 0x15, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, + 0x12, 0x20, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x22, 0x84, 0x01, 0x0a, 0x18, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x12, + 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2c, 0x0a, 0x06, 0x53, + 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, + 0x73, 0x52, 0x06, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x22, 0x74, 0x0a, 0x13, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x53, 0x63, 0x6f, 0x72, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x41, 0x63, + 0x74, 0x6f, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x41, 0x63, 0x74, + 0x6f, 0x72, 0x49, 0x64, 0x12, 0x29, 0x0a, 0x05, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x05, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x22, + 0xb0, 0x01, 0x0a, 0x22, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, + 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, + 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x56, 0x0a, 0x14, 0x4c, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, + 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, + 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x14, 0x4c, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, + 0x6e, 0x74, 0x22, 0x92, 0x01, 0x0a, 0x11, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, + 0x74, 0x6f, 0x72, 0x49, 0x64, 0x44, 0x65, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x03, + 0x44, 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, + 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, + 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, + 0x65, 0x63, 0x52, 0x03, 0x44, 0x65, 0x63, 0x22, 0x6d, 0x0a, 0x0d, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x41, 0x6e, 0x64, 0x49, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x12, 0x42, 0x0a, 0x03, 0x49, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, + 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, + 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, + 0x01, 0x52, 0x03, 0x49, 0x6e, 0x74, 0x22, 0x8b, 0x01, 0x0a, 0x11, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x49, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, + 0x12, 0x42, 0x0a, 0x03, 0x49, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, + 0x03, 0x49, 0x6e, 0x74, 0x22, 0xbb, 0x01, 0x0a, 0x24, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, + 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, + 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x44, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x12, + 0x41, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, + 0x66, 0x6f, 0x22, 0xcd, 0x01, 0x0a, 0x29, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, + 0x12, 0x20, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, + 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x52, + 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x10, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, + 0x66, 0x6f, 0x22, 0x71, 0x0a, 0x19, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, + 0x18, 0x0a, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x94, 0x02, 0x0a, 0x3a, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x44, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x20, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, + 0x12, 0x1c, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, + 0x0a, 0x07, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x12, 0x62, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, + 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, + 0x66, 0x6f, 0x52, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, + 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x98, 0x01, 0x0a, + 0x22, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, + 0x72, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, + 0x72, 0x12, 0x18, 0x0a, 0x07, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x84, 0x01, 0x0a, 0x17, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, + 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x35, 0x0a, 0x09, 0x49, 0x6e, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x52, 0x09, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x80, + 0x01, 0x0a, 0x16, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, + 0x64, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x32, 0x0a, + 0x08, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x16, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x46, + 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x52, 0x08, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, + 0x74, 0x22, 0x78, 0x0a, 0x18, 0x4c, 0x69, 0x62, 0x50, 0x32, 0x70, 0x4b, 0x65, 0x79, 0x41, 0x6e, + 0x64, 0x4f, 0x66, 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x4c, 0x69, 0x62, 0x50, 0x32, 0x70, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x4c, 0x69, 0x62, 0x50, 0x32, 0x70, 0x4b, 0x65, 0x79, 0x12, 0x3e, 0x0a, 0x0c, 0x4f, + 0x66, 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x4f, 0x66, 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x0c, 0x4f, + 0x66, 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0x74, 0x0a, 0x0d, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x6e, 0x64, 0x44, 0x65, 0x63, 0x12, 0x18, 0x0a, 0x07, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x03, 0x44, 0x65, 0x63, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x03, 0x44, 0x65, + 0x63, 0x22, 0x94, 0x01, 0x0a, 0x1c, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x38, + 0x0a, 0x0a, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x0a, 0x49, 0x6e, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x90, 0x01, 0x0a, 0x1b, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x46, + 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, + 0x52, 0x09, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x25, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, + 0x20, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x12, 0x53, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, + 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, + 0x70, 0x75, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x73, 0x52, 0x13, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x22, 0x99, 0x01, 0x0a, 0x1e, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x0b, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x22, 0x5a, 0x0a, 0x10, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x6e, 0x64, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, + 0x12, 0x2c, 0x0a, 0x06, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x06, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x92, + 0x01, 0x0a, 0x1e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, + 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, + 0x73, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x56, 0x0a, 0x14, 0x52, + 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x6e, + 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x14, 0x52, + 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x6e, + 0x63, 0x65, 0x73, 0x22, 0xa0, 0x01, 0x0a, 0x1e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x41, + 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x65, + 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x10, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x10, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, + 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xc5, 0x01, 0x0a, 0x25, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x63, + 0x74, 0x6f, 0x72, 0x49, 0x64, 0x31, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x41, 0x63, + 0x74, 0x6f, 0x72, 0x49, 0x64, 0x31, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, + 0x64, 0x32, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x49, + 0x64, 0x32, 0x12, 0x4a, 0x0a, 0x10, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, + 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x10, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x93, + 0x01, 0x0a, 0x1c, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x65, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x07, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x59, 0x0a, 0x15, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x6f, 0x6e, + 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x65, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x15, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x4e, + 0x6f, 0x6e, 0x63, 0x65, 0x42, 0xc2, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, + 0x69, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, + 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x32, 0xca, + 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, + 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_emissions_v2_genesis_proto_rawDescOnce sync.Once + file_emissions_v2_genesis_proto_rawDescData = file_emissions_v2_genesis_proto_rawDesc +) + +func file_emissions_v2_genesis_proto_rawDescGZIP() []byte { + file_emissions_v2_genesis_proto_rawDescOnce.Do(func() { + file_emissions_v2_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_genesis_proto_rawDescData) + }) + return file_emissions_v2_genesis_proto_rawDescData +} + +var file_emissions_v2_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 28) +var file_emissions_v2_genesis_proto_goTypes = []interface{}{ + (*GenesisState)(nil), // 0: emissions.v2.GenesisState + (*TopicIdAndTopic)(nil), // 1: emissions.v2.TopicIdAndTopic + (*TopicAndActorId)(nil), // 2: emissions.v2.TopicAndActorId + (*TopicIdAndBlockHeight)(nil), // 3: emissions.v2.TopicIdAndBlockHeight + (*TopicIdBlockHeightScores)(nil), // 4: emissions.v2.TopicIdBlockHeightScores + (*TopicIdActorIdScore)(nil), // 5: emissions.v2.TopicIdActorIdScore + (*TopicIdActorIdListeningCoefficient)(nil), // 6: emissions.v2.TopicIdActorIdListeningCoefficient + (*TopicIdActorIdDec)(nil), // 7: emissions.v2.TopicIdActorIdDec + (*TopicIdAndInt)(nil), // 8: emissions.v2.TopicIdAndInt + (*TopicIdActorIdInt)(nil), // 9: emissions.v2.TopicIdActorIdInt + (*TopicIdDelegatorReputerDelegatorInfo)(nil), // 10: emissions.v2.TopicIdDelegatorReputerDelegatorInfo + (*BlockHeightTopicIdReputerStakeRemovalInfo)(nil), // 11: emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo + (*ActorIdTopicIdBlockHeight)(nil), // 12: emissions.v2.ActorIdTopicIdBlockHeight + (*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo)(nil), // 13: emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo + (*DelegatorReputerTopicIdBlockHeight)(nil), // 14: emissions.v2.DelegatorReputerTopicIdBlockHeight + (*TopicIdActorIdInference)(nil), // 15: emissions.v2.TopicIdActorIdInference + (*TopicIdActorIdForecast)(nil), // 16: emissions.v2.TopicIdActorIdForecast + (*LibP2PKeyAndOffchainNode)(nil), // 17: emissions.v2.LibP2pKeyAndOffchainNode + (*TopicIdAndDec)(nil), // 18: emissions.v2.TopicIdAndDec + (*TopicIdBlockHeightInferences)(nil), // 19: emissions.v2.TopicIdBlockHeightInferences + (*TopicIdBlockHeightForecasts)(nil), // 20: emissions.v2.TopicIdBlockHeightForecasts + (*TopicIdBlockHeightReputerValueBundles)(nil), // 21: emissions.v2.TopicIdBlockHeightReputerValueBundles + (*TopicIdBlockHeightValueBundles)(nil), // 22: emissions.v2.TopicIdBlockHeightValueBundles + (*TopicIdAndNonces)(nil), // 23: emissions.v2.TopicIdAndNonces + (*TopicIdAndReputerRequestNonces)(nil), // 24: emissions.v2.TopicIdAndReputerRequestNonces + (*TopicIdActorIdTimeStampedValue)(nil), // 25: emissions.v2.TopicIdActorIdTimeStampedValue + (*TopicIdActorIdActorIdTimeStampedValue)(nil), // 26: emissions.v2.TopicIdActorIdActorIdTimeStampedValue + (*TopicIdTimestampedActorNonce)(nil), // 27: emissions.v2.TopicIdTimestampedActorNonce + (*Params)(nil), // 28: emissions.v2.Params + (*Topic)(nil), // 29: emissions.v2.Topic + (*Scores)(nil), // 30: emissions.v2.Scores + (*Score)(nil), // 31: emissions.v2.Score + (*ListeningCoefficient)(nil), // 32: emissions.v2.ListeningCoefficient + (*DelegatorInfo)(nil), // 33: emissions.v2.DelegatorInfo + (*StakeRemovalInfo)(nil), // 34: emissions.v2.StakeRemovalInfo + (*DelegateStakeRemovalInfo)(nil), // 35: emissions.v2.DelegateStakeRemovalInfo + (*Inference)(nil), // 36: emissions.v2.Inference + (*Forecast)(nil), // 37: emissions.v2.Forecast + (*OffchainNode)(nil), // 38: emissions.v2.OffchainNode + (*Inferences)(nil), // 39: emissions.v2.Inferences + (*Forecasts)(nil), // 40: emissions.v2.Forecasts + (*ReputerValueBundles)(nil), // 41: emissions.v2.ReputerValueBundles + (*ValueBundle)(nil), // 42: emissions.v2.ValueBundle + (*Nonces)(nil), // 43: emissions.v2.Nonces + (*ReputerRequestNonces)(nil), // 44: emissions.v2.ReputerRequestNonces + (*TimestampedValue)(nil), // 45: emissions.v2.TimestampedValue + (*TimestampedActorNonce)(nil), // 46: emissions.v2.TimestampedActorNonce +} +var file_emissions_v2_genesis_proto_depIdxs = []int32{ + 28, // 0: emissions.v2.GenesisState.params:type_name -> emissions.v2.Params + 1, // 1: emissions.v2.GenesisState.topics:type_name -> emissions.v2.TopicIdAndTopic + 2, // 2: emissions.v2.GenesisState.topicWorkers:type_name -> emissions.v2.TopicAndActorId + 2, // 3: emissions.v2.GenesisState.topicReputers:type_name -> emissions.v2.TopicAndActorId + 3, // 4: emissions.v2.GenesisState.topicRewardNonce:type_name -> emissions.v2.TopicIdAndBlockHeight + 4, // 5: emissions.v2.GenesisState.infererScoresByBlock:type_name -> emissions.v2.TopicIdBlockHeightScores + 4, // 6: emissions.v2.GenesisState.forecasterScoresByBlock:type_name -> emissions.v2.TopicIdBlockHeightScores + 4, // 7: emissions.v2.GenesisState.reputerScoresByBlock:type_name -> emissions.v2.TopicIdBlockHeightScores + 5, // 8: emissions.v2.GenesisState.latestInfererScoresByWorker:type_name -> emissions.v2.TopicIdActorIdScore + 5, // 9: emissions.v2.GenesisState.latestForecasterScoresByWorker:type_name -> emissions.v2.TopicIdActorIdScore + 5, // 10: emissions.v2.GenesisState.latestReputerScoresByReputer:type_name -> emissions.v2.TopicIdActorIdScore + 6, // 11: emissions.v2.GenesisState.reputerListeningCoefficient:type_name -> emissions.v2.TopicIdActorIdListeningCoefficient + 7, // 12: emissions.v2.GenesisState.previousReputerRewardFraction:type_name -> emissions.v2.TopicIdActorIdDec + 7, // 13: emissions.v2.GenesisState.previousInferenceRewardFraction:type_name -> emissions.v2.TopicIdActorIdDec + 7, // 14: emissions.v2.GenesisState.previousForecastRewardFraction:type_name -> emissions.v2.TopicIdActorIdDec + 7, // 15: emissions.v2.GenesisState.previousForecasterScoreRatio:type_name -> emissions.v2.TopicIdActorIdDec + 8, // 16: emissions.v2.GenesisState.topicStake:type_name -> emissions.v2.TopicIdAndInt + 9, // 17: emissions.v2.GenesisState.stakeReputerAuthority:type_name -> emissions.v2.TopicIdActorIdInt + 9, // 18: emissions.v2.GenesisState.stakeSumFromDelegator:type_name -> emissions.v2.TopicIdActorIdInt + 10, // 19: emissions.v2.GenesisState.delegatedStakes:type_name -> emissions.v2.TopicIdDelegatorReputerDelegatorInfo + 9, // 20: emissions.v2.GenesisState.stakeFromDelegatorsUponReputer:type_name -> emissions.v2.TopicIdActorIdInt + 7, // 21: emissions.v2.GenesisState.delegateRewardPerShare:type_name -> emissions.v2.TopicIdActorIdDec + 11, // 22: emissions.v2.GenesisState.stakeRemovalsByBlock:type_name -> emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo + 12, // 23: emissions.v2.GenesisState.stakeRemovalsByActor:type_name -> emissions.v2.ActorIdTopicIdBlockHeight + 13, // 24: emissions.v2.GenesisState.delegateStakeRemovalsByBlock:type_name -> emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo + 14, // 25: emissions.v2.GenesisState.delegateStakeRemovalsByActor:type_name -> emissions.v2.DelegatorReputerTopicIdBlockHeight + 15, // 26: emissions.v2.GenesisState.inferences:type_name -> emissions.v2.TopicIdActorIdInference + 16, // 27: emissions.v2.GenesisState.forecasts:type_name -> emissions.v2.TopicIdActorIdForecast + 17, // 28: emissions.v2.GenesisState.workers:type_name -> emissions.v2.LibP2pKeyAndOffchainNode + 17, // 29: emissions.v2.GenesisState.reputers:type_name -> emissions.v2.LibP2pKeyAndOffchainNode + 8, // 30: emissions.v2.GenesisState.topicFeeRevenue:type_name -> emissions.v2.TopicIdAndInt + 18, // 31: emissions.v2.GenesisState.previousTopicWeight:type_name -> emissions.v2.TopicIdAndDec + 19, // 32: emissions.v2.GenesisState.allInferences:type_name -> emissions.v2.TopicIdBlockHeightInferences + 20, // 33: emissions.v2.GenesisState.allForecasts:type_name -> emissions.v2.TopicIdBlockHeightForecasts + 21, // 34: emissions.v2.GenesisState.allLossBundles:type_name -> emissions.v2.TopicIdBlockHeightReputerValueBundles + 22, // 35: emissions.v2.GenesisState.networkLossBundles:type_name -> emissions.v2.TopicIdBlockHeightValueBundles + 23, // 36: emissions.v2.GenesisState.unfulfilledWorkerNonces:type_name -> emissions.v2.TopicIdAndNonces + 24, // 37: emissions.v2.GenesisState.unfulfilledReputerNonces:type_name -> emissions.v2.TopicIdAndReputerRequestNonces + 25, // 38: emissions.v2.GenesisState.latestInfererNetworkRegrets:type_name -> emissions.v2.TopicIdActorIdTimeStampedValue + 25, // 39: emissions.v2.GenesisState.latestForecasterNetworkRegrets:type_name -> emissions.v2.TopicIdActorIdTimeStampedValue + 26, // 40: emissions.v2.GenesisState.latestOneInForecasterNetworkRegrets:type_name -> emissions.v2.TopicIdActorIdActorIdTimeStampedValue + 25, // 41: emissions.v2.GenesisState.latestNaiveInfererNetworkRegrets:type_name -> emissions.v2.TopicIdActorIdTimeStampedValue + 26, // 42: emissions.v2.GenesisState.latestOneOutInfererInfererNetworkRegrets:type_name -> emissions.v2.TopicIdActorIdActorIdTimeStampedValue + 26, // 43: emissions.v2.GenesisState.latestOneOutInfererForecasterNetworkRegrets:type_name -> emissions.v2.TopicIdActorIdActorIdTimeStampedValue + 26, // 44: emissions.v2.GenesisState.latestOneOutForecasterInfererNetworkRegrets:type_name -> emissions.v2.TopicIdActorIdActorIdTimeStampedValue + 26, // 45: emissions.v2.GenesisState.latestOneOutForecasterForecasterNetworkRegrets:type_name -> emissions.v2.TopicIdActorIdActorIdTimeStampedValue + 27, // 46: emissions.v2.GenesisState.topicLastWorkerCommit:type_name -> emissions.v2.TopicIdTimestampedActorNonce + 27, // 47: emissions.v2.GenesisState.topicLastReputerCommit:type_name -> emissions.v2.TopicIdTimestampedActorNonce + 29, // 48: emissions.v2.TopicIdAndTopic.Topic:type_name -> emissions.v2.Topic + 30, // 49: emissions.v2.TopicIdBlockHeightScores.Scores:type_name -> emissions.v2.Scores + 31, // 50: emissions.v2.TopicIdActorIdScore.Score:type_name -> emissions.v2.Score + 32, // 51: emissions.v2.TopicIdActorIdListeningCoefficient.ListeningCoefficient:type_name -> emissions.v2.ListeningCoefficient + 33, // 52: emissions.v2.TopicIdDelegatorReputerDelegatorInfo.DelegatorInfo:type_name -> emissions.v2.DelegatorInfo + 34, // 53: emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo.StakeRemovalInfo:type_name -> emissions.v2.StakeRemovalInfo + 35, // 54: emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.DelegateStakeRemovalInfo:type_name -> emissions.v2.DelegateStakeRemovalInfo + 36, // 55: emissions.v2.TopicIdActorIdInference.Inference:type_name -> emissions.v2.Inference + 37, // 56: emissions.v2.TopicIdActorIdForecast.Forecast:type_name -> emissions.v2.Forecast + 38, // 57: emissions.v2.LibP2pKeyAndOffchainNode.OffchainNode:type_name -> emissions.v2.OffchainNode + 39, // 58: emissions.v2.TopicIdBlockHeightInferences.Inferences:type_name -> emissions.v2.Inferences + 40, // 59: emissions.v2.TopicIdBlockHeightForecasts.Forecasts:type_name -> emissions.v2.Forecasts + 41, // 60: emissions.v2.TopicIdBlockHeightReputerValueBundles.ReputerValueBundles:type_name -> emissions.v2.ReputerValueBundles + 42, // 61: emissions.v2.TopicIdBlockHeightValueBundles.ValueBundle:type_name -> emissions.v2.ValueBundle + 43, // 62: emissions.v2.TopicIdAndNonces.Nonces:type_name -> emissions.v2.Nonces + 44, // 63: emissions.v2.TopicIdAndReputerRequestNonces.ReputerRequestNonces:type_name -> emissions.v2.ReputerRequestNonces + 45, // 64: emissions.v2.TopicIdActorIdTimeStampedValue.TimestampedValue:type_name -> emissions.v2.TimestampedValue + 45, // 65: emissions.v2.TopicIdActorIdActorIdTimeStampedValue.TimestampedValue:type_name -> emissions.v2.TimestampedValue + 46, // 66: emissions.v2.TopicIdTimestampedActorNonce.TimestampedActorNonce:type_name -> emissions.v2.TimestampedActorNonce + 67, // [67:67] is the sub-list for method output_type + 67, // [67:67] is the sub-list for method input_type + 67, // [67:67] is the sub-list for extension type_name + 67, // [67:67] is the sub-list for extension extendee + 0, // [0:67] is the sub-list for field type_name +} + +func init() { file_emissions_v2_genesis_proto_init() } +func file_emissions_v2_genesis_proto_init() { + if File_emissions_v2_genesis_proto != nil { + return + } + file_emissions_v2_params_proto_init() + file_emissions_v2_score_proto_init() + file_emissions_v2_stake_proto_init() + file_emissions_v2_types_proto_init() + file_emissions_v2_topic_proto_init() + file_emissions_v2_worker_proto_init() + file_emissions_v2_node_proto_init() + file_emissions_v2_reputer_proto_init() + file_emissions_v2_nonce_proto_init() + if !protoimpl.UnsafeEnabled { + file_emissions_v2_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenesisState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdAndTopic); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicAndActorId); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdAndBlockHeight); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdBlockHeightScores); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdActorIdScore); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdActorIdListeningCoefficient); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdActorIdDec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdAndInt); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdActorIdInt); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdDelegatorReputerDelegatorInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockHeightTopicIdReputerStakeRemovalInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ActorIdTopicIdBlockHeight); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DelegatorReputerTopicIdBlockHeight); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdActorIdInference); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdActorIdForecast); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LibP2PKeyAndOffchainNode); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdAndDec); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdBlockHeightInferences); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdBlockHeightForecasts); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdBlockHeightReputerValueBundles); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdBlockHeightValueBundles); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdAndNonces); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdAndReputerRequestNonces); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdActorIdTimeStampedValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdActorIdActorIdTimeStampedValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_genesis_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIdTimestampedActorNonce); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_emissions_v2_genesis_proto_rawDesc, + NumEnums: 0, + NumMessages: 28, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_emissions_v2_genesis_proto_goTypes, + DependencyIndexes: file_emissions_v2_genesis_proto_depIdxs, + MessageInfos: file_emissions_v2_genesis_proto_msgTypes, + }.Build() + File_emissions_v2_genesis_proto = out.File + file_emissions_v2_genesis_proto_rawDesc = nil + file_emissions_v2_genesis_proto_goTypes = nil + file_emissions_v2_genesis_proto_depIdxs = nil +} diff --git a/x/emissions/api/v1/inference.pulsar.go b/x/emissions/api/v2/inference.pulsar.go similarity index 85% rename from x/emissions/api/v1/inference.pulsar.go rename to x/emissions/api/v2/inference.pulsar.go index 2e36201aa..2066e98f0 100644 --- a/x/emissions/api/v1/inference.pulsar.go +++ b/x/emissions/api/v2/inference.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package emissionsv1 +package emissionsv2 import ( fmt "fmt" @@ -20,8 +20,8 @@ var ( ) func init() { - file_emissions_v1_inference_proto_init() - md_RegretInformedWeight = File_emissions_v1_inference_proto.Messages().ByName("RegretInformedWeight") + file_emissions_v2_inference_proto_init() + md_RegretInformedWeight = File_emissions_v2_inference_proto.Messages().ByName("RegretInformedWeight") fd_RegretInformedWeight_worker = md_RegretInformedWeight.Fields().ByName("worker") fd_RegretInformedWeight_weight = md_RegretInformedWeight.Fields().ByName("weight") } @@ -35,7 +35,7 @@ func (x *RegretInformedWeight) ProtoReflect() protoreflect.Message { } func (x *RegretInformedWeight) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_inference_proto_msgTypes[0] + mi := &file_emissions_v2_inference_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -118,15 +118,15 @@ func (x *fastReflection_RegretInformedWeight) Range(f func(protoreflect.FieldDes // a repeated field is populated if it is non-empty. func (x *fastReflection_RegretInformedWeight) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.RegretInformedWeight.worker": + case "emissions.v2.RegretInformedWeight.worker": return x.Worker != "" - case "emissions.v1.RegretInformedWeight.weight": + case "emissions.v2.RegretInformedWeight.weight": return x.Weight != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.RegretInformedWeight")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.RegretInformedWeight")) } - panic(fmt.Errorf("message emissions.v1.RegretInformedWeight does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.RegretInformedWeight does not contain field %s", fd.FullName())) } } @@ -138,15 +138,15 @@ func (x *fastReflection_RegretInformedWeight) Has(fd protoreflect.FieldDescripto // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_RegretInformedWeight) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.RegretInformedWeight.worker": + case "emissions.v2.RegretInformedWeight.worker": x.Worker = "" - case "emissions.v1.RegretInformedWeight.weight": + case "emissions.v2.RegretInformedWeight.weight": x.Weight = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.RegretInformedWeight")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.RegretInformedWeight")) } - panic(fmt.Errorf("message emissions.v1.RegretInformedWeight does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.RegretInformedWeight does not contain field %s", fd.FullName())) } } @@ -158,17 +158,17 @@ func (x *fastReflection_RegretInformedWeight) Clear(fd protoreflect.FieldDescrip // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_RegretInformedWeight) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.RegretInformedWeight.worker": + case "emissions.v2.RegretInformedWeight.worker": value := x.Worker return protoreflect.ValueOfString(value) - case "emissions.v1.RegretInformedWeight.weight": + case "emissions.v2.RegretInformedWeight.weight": value := x.Weight return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.RegretInformedWeight")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.RegretInformedWeight")) } - panic(fmt.Errorf("message emissions.v1.RegretInformedWeight does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.RegretInformedWeight does not contain field %s", descriptor.FullName())) } } @@ -184,15 +184,15 @@ func (x *fastReflection_RegretInformedWeight) Get(descriptor protoreflect.FieldD // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_RegretInformedWeight) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.RegretInformedWeight.worker": + case "emissions.v2.RegretInformedWeight.worker": x.Worker = value.Interface().(string) - case "emissions.v1.RegretInformedWeight.weight": + case "emissions.v2.RegretInformedWeight.weight": x.Weight = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.RegretInformedWeight")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.RegretInformedWeight")) } - panic(fmt.Errorf("message emissions.v1.RegretInformedWeight does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.RegretInformedWeight does not contain field %s", fd.FullName())) } } @@ -208,15 +208,15 @@ func (x *fastReflection_RegretInformedWeight) Set(fd protoreflect.FieldDescripto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_RegretInformedWeight) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.RegretInformedWeight.worker": - panic(fmt.Errorf("field worker of message emissions.v1.RegretInformedWeight is not mutable")) - case "emissions.v1.RegretInformedWeight.weight": - panic(fmt.Errorf("field weight of message emissions.v1.RegretInformedWeight is not mutable")) + case "emissions.v2.RegretInformedWeight.worker": + panic(fmt.Errorf("field worker of message emissions.v2.RegretInformedWeight is not mutable")) + case "emissions.v2.RegretInformedWeight.weight": + panic(fmt.Errorf("field weight of message emissions.v2.RegretInformedWeight is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.RegretInformedWeight")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.RegretInformedWeight")) } - panic(fmt.Errorf("message emissions.v1.RegretInformedWeight does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.RegretInformedWeight does not contain field %s", fd.FullName())) } } @@ -225,15 +225,15 @@ func (x *fastReflection_RegretInformedWeight) Mutable(fd protoreflect.FieldDescr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_RegretInformedWeight) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.RegretInformedWeight.worker": + case "emissions.v2.RegretInformedWeight.worker": return protoreflect.ValueOfString("") - case "emissions.v1.RegretInformedWeight.weight": + case "emissions.v2.RegretInformedWeight.weight": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.RegretInformedWeight")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.RegretInformedWeight")) } - panic(fmt.Errorf("message emissions.v1.RegretInformedWeight does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.RegretInformedWeight does not contain field %s", fd.FullName())) } } @@ -243,7 +243,7 @@ func (x *fastReflection_RegretInformedWeight) NewField(fd protoreflect.FieldDesc func (x *fastReflection_RegretInformedWeight) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.RegretInformedWeight", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.RegretInformedWeight", d.FullName())) } panic("unreachable") } @@ -501,7 +501,7 @@ func (x *fastReflection_RegretInformedWeight) ProtoMethods() *protoiface.Methods // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: emissions/v1/inference.proto +// source: emissions/v2/inference.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -522,7 +522,7 @@ type RegretInformedWeight struct { func (x *RegretInformedWeight) Reset() { *x = RegretInformedWeight{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_inference_proto_msgTypes[0] + mi := &file_emissions_v2_inference_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -536,7 +536,7 @@ func (*RegretInformedWeight) ProtoMessage() {} // Deprecated: Use RegretInformedWeight.ProtoReflect.Descriptor instead. func (*RegretInformedWeight) Descriptor() ([]byte, []int) { - return file_emissions_v1_inference_proto_rawDescGZIP(), []int{0} + return file_emissions_v2_inference_proto_rawDescGZIP(), []int{0} } func (x *RegretInformedWeight) GetWorker() string { @@ -553,14 +553,14 @@ func (x *RegretInformedWeight) GetWeight() string { return "" } -var File_emissions_v1_inference_proto protoreflect.FileDescriptor +var File_emissions_v2_inference_proto protoreflect.FileDescriptor -var file_emissions_v1_inference_proto_rawDesc = []byte{ - 0x0a, 0x1c, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x69, +var file_emissions_v2_inference_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, + 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x64, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x18, @@ -571,38 +571,38 @@ var file_emissions_v1_inference_proto_rawDesc = []byte{ 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x42, 0xc4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x49, 0x6e, 0x66, 0x65, 0x72, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, - 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, + 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, + 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, - 0x31, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, - 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x5c, + 0x32, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, + 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_emissions_v1_inference_proto_rawDescOnce sync.Once - file_emissions_v1_inference_proto_rawDescData = file_emissions_v1_inference_proto_rawDesc + file_emissions_v2_inference_proto_rawDescOnce sync.Once + file_emissions_v2_inference_proto_rawDescData = file_emissions_v2_inference_proto_rawDesc ) -func file_emissions_v1_inference_proto_rawDescGZIP() []byte { - file_emissions_v1_inference_proto_rawDescOnce.Do(func() { - file_emissions_v1_inference_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v1_inference_proto_rawDescData) +func file_emissions_v2_inference_proto_rawDescGZIP() []byte { + file_emissions_v2_inference_proto_rawDescOnce.Do(func() { + file_emissions_v2_inference_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_inference_proto_rawDescData) }) - return file_emissions_v1_inference_proto_rawDescData + return file_emissions_v2_inference_proto_rawDescData } -var file_emissions_v1_inference_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_emissions_v1_inference_proto_goTypes = []interface{}{ - (*RegretInformedWeight)(nil), // 0: emissions.v1.RegretInformedWeight +var file_emissions_v2_inference_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_emissions_v2_inference_proto_goTypes = []interface{}{ + (*RegretInformedWeight)(nil), // 0: emissions.v2.RegretInformedWeight } -var file_emissions_v1_inference_proto_depIdxs = []int32{ +var file_emissions_v2_inference_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -610,14 +610,14 @@ var file_emissions_v1_inference_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_emissions_v1_inference_proto_init() } -func file_emissions_v1_inference_proto_init() { - if File_emissions_v1_inference_proto != nil { +func init() { file_emissions_v2_inference_proto_init() } +func file_emissions_v2_inference_proto_init() { + if File_emissions_v2_inference_proto != nil { return } - file_emissions_v1_nonce_proto_init() + file_emissions_v2_nonce_proto_init() if !protoimpl.UnsafeEnabled { - file_emissions_v1_inference_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_inference_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RegretInformedWeight); i { case 0: return &v.state @@ -634,18 +634,18 @@ func file_emissions_v1_inference_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_emissions_v1_inference_proto_rawDesc, + RawDescriptor: file_emissions_v2_inference_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_emissions_v1_inference_proto_goTypes, - DependencyIndexes: file_emissions_v1_inference_proto_depIdxs, - MessageInfos: file_emissions_v1_inference_proto_msgTypes, + GoTypes: file_emissions_v2_inference_proto_goTypes, + DependencyIndexes: file_emissions_v2_inference_proto_depIdxs, + MessageInfos: file_emissions_v2_inference_proto_msgTypes, }.Build() - File_emissions_v1_inference_proto = out.File - file_emissions_v1_inference_proto_rawDesc = nil - file_emissions_v1_inference_proto_goTypes = nil - file_emissions_v1_inference_proto_depIdxs = nil + File_emissions_v2_inference_proto = out.File + file_emissions_v2_inference_proto_rawDesc = nil + file_emissions_v2_inference_proto_goTypes = nil + file_emissions_v2_inference_proto_depIdxs = nil } diff --git a/x/emissions/api/v1/genesis.pulsar.go b/x/emissions/api/v2/node.pulsar.go similarity index 50% rename from x/emissions/api/v1/genesis.pulsar.go rename to x/emissions/api/v2/node.pulsar.go index 66959e013..54646376a 100644 --- a/x/emissions/api/v1/genesis.pulsar.go +++ b/x/emissions/api/v2/node.pulsar.go @@ -1,11 +1,9 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package emissionsv1 +package emissionsv2 import ( fmt "fmt" runtime "github.com/cosmos/cosmos-proto/runtime" - _ "github.com/cosmos/cosmos-sdk/types/tx/amino" - _ "github.com/cosmos/gogoproto/gogoproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" @@ -14,75 +12,29 @@ import ( sync "sync" ) -var _ protoreflect.List = (*_GenesisState_2_list)(nil) - -type _GenesisState_2_list struct { - list *[]string -} - -func (x *_GenesisState_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_GenesisState_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_GenesisState_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_GenesisState_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_GenesisState_2_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message GenesisState at list field CoreTeamAddresses as it is not of Message kind")) -} - -func (x *_GenesisState_2_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_GenesisState_2_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_GenesisState_2_list) IsValid() bool { - return x.list != nil -} - var ( - md_GenesisState protoreflect.MessageDescriptor - fd_GenesisState_params protoreflect.FieldDescriptor - fd_GenesisState_core_team_addresses protoreflect.FieldDescriptor + md_OffchainNode protoreflect.MessageDescriptor + fd_OffchainNode_owner protoreflect.FieldDescriptor + fd_OffchainNode_node_address protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_genesis_proto_init() - md_GenesisState = File_emissions_v1_genesis_proto.Messages().ByName("GenesisState") - fd_GenesisState_params = md_GenesisState.Fields().ByName("params") - fd_GenesisState_core_team_addresses = md_GenesisState.Fields().ByName("core_team_addresses") + file_emissions_v2_node_proto_init() + md_OffchainNode = File_emissions_v2_node_proto.Messages().ByName("OffchainNode") + fd_OffchainNode_owner = md_OffchainNode.Fields().ByName("owner") + fd_OffchainNode_node_address = md_OffchainNode.Fields().ByName("node_address") } -var _ protoreflect.Message = (*fastReflection_GenesisState)(nil) +var _ protoreflect.Message = (*fastReflection_OffchainNode)(nil) -type fastReflection_GenesisState GenesisState +type fastReflection_OffchainNode OffchainNode -func (x *GenesisState) ProtoReflect() protoreflect.Message { - return (*fastReflection_GenesisState)(x) +func (x *OffchainNode) ProtoReflect() protoreflect.Message { + return (*fastReflection_OffchainNode)(x) } -func (x *GenesisState) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_genesis_proto_msgTypes[0] +func (x *OffchainNode) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_node_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -93,43 +45,43 @@ func (x *GenesisState) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_GenesisState_messageType fastReflection_GenesisState_messageType -var _ protoreflect.MessageType = fastReflection_GenesisState_messageType{} +var _fastReflection_OffchainNode_messageType fastReflection_OffchainNode_messageType +var _ protoreflect.MessageType = fastReflection_OffchainNode_messageType{} -type fastReflection_GenesisState_messageType struct{} +type fastReflection_OffchainNode_messageType struct{} -func (x fastReflection_GenesisState_messageType) Zero() protoreflect.Message { - return (*fastReflection_GenesisState)(nil) +func (x fastReflection_OffchainNode_messageType) Zero() protoreflect.Message { + return (*fastReflection_OffchainNode)(nil) } -func (x fastReflection_GenesisState_messageType) New() protoreflect.Message { - return new(fastReflection_GenesisState) +func (x fastReflection_OffchainNode_messageType) New() protoreflect.Message { + return new(fastReflection_OffchainNode) } -func (x fastReflection_GenesisState_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState +func (x fastReflection_OffchainNode_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OffchainNode } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_GenesisState) Descriptor() protoreflect.MessageDescriptor { - return md_GenesisState +func (x *fastReflection_OffchainNode) Descriptor() protoreflect.MessageDescriptor { + return md_OffchainNode } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_GenesisState) Type() protoreflect.MessageType { - return _fastReflection_GenesisState_messageType +func (x *fastReflection_OffchainNode) Type() protoreflect.MessageType { + return _fastReflection_OffchainNode_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_GenesisState) New() protoreflect.Message { - return new(fastReflection_GenesisState) +func (x *fastReflection_OffchainNode) New() protoreflect.Message { + return new(fastReflection_OffchainNode) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { - return (*GenesisState)(x) +func (x *fastReflection_OffchainNode) Interface() protoreflect.ProtoMessage { + return (*OffchainNode)(x) } // Range iterates over every populated field in an undefined order, @@ -137,16 +89,16 @@ func (x *fastReflection_GenesisState) Interface() protoreflect.ProtoMessage { // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_GenesisState_params, value) { +func (x *fastReflection_OffchainNode) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Owner != "" { + value := protoreflect.ValueOfString(x.Owner) + if !f(fd_OffchainNode_owner, value) { return } } - if len(x.CoreTeamAddresses) != 0 { - value := protoreflect.ValueOfList(&_GenesisState_2_list{list: &x.CoreTeamAddresses}) - if !f(fd_GenesisState_core_team_addresses, value) { + if x.NodeAddress != "" { + value := protoreflect.ValueOfString(x.NodeAddress) + if !f(fd_OffchainNode_node_address, value) { return } } @@ -163,17 +115,17 @@ func (x *fastReflection_GenesisState) Range(f func(protoreflect.FieldDescriptor, // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_OffchainNode) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.GenesisState.params": - return x.Params != nil - case "emissions.v1.GenesisState.core_team_addresses": - return len(x.CoreTeamAddresses) != 0 + case "emissions.v2.OffchainNode.owner": + return x.Owner != "" + case "emissions.v2.OffchainNode.node_address": + return x.NodeAddress != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OffchainNode")) } - panic(fmt.Errorf("message emissions.v1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.OffchainNode does not contain field %s", fd.FullName())) } } @@ -183,17 +135,17 @@ func (x *fastReflection_GenesisState) Has(fd protoreflect.FieldDescriptor) bool // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_OffchainNode) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.GenesisState.params": - x.Params = nil - case "emissions.v1.GenesisState.core_team_addresses": - x.CoreTeamAddresses = nil + case "emissions.v2.OffchainNode.owner": + x.Owner = "" + case "emissions.v2.OffchainNode.node_address": + x.NodeAddress = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OffchainNode")) } - panic(fmt.Errorf("message emissions.v1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.OffchainNode does not contain field %s", fd.FullName())) } } @@ -203,22 +155,19 @@ func (x *fastReflection_GenesisState) Clear(fd protoreflect.FieldDescriptor) { // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_OffchainNode) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.GenesisState.params": - value := x.Params - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "emissions.v1.GenesisState.core_team_addresses": - if len(x.CoreTeamAddresses) == 0 { - return protoreflect.ValueOfList(&_GenesisState_2_list{}) - } - listValue := &_GenesisState_2_list{list: &x.CoreTeamAddresses} - return protoreflect.ValueOfList(listValue) + case "emissions.v2.OffchainNode.owner": + value := x.Owner + return protoreflect.ValueOfString(value) + case "emissions.v2.OffchainNode.node_address": + value := x.NodeAddress + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OffchainNode")) } - panic(fmt.Errorf("message emissions.v1.GenesisState does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.OffchainNode does not contain field %s", descriptor.FullName())) } } @@ -232,19 +181,17 @@ func (x *fastReflection_GenesisState) Get(descriptor protoreflect.FieldDescripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_OffchainNode) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.GenesisState.params": - x.Params = value.Message().Interface().(*Params) - case "emissions.v1.GenesisState.core_team_addresses": - lv := value.List() - clv := lv.(*_GenesisState_2_list) - x.CoreTeamAddresses = *clv.list + case "emissions.v2.OffchainNode.owner": + x.Owner = value.Interface().(string) + case "emissions.v2.OffchainNode.node_address": + x.NodeAddress = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OffchainNode")) } - panic(fmt.Errorf("message emissions.v1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.OffchainNode does not contain field %s", fd.FullName())) } } @@ -258,53 +205,44 @@ func (x *fastReflection_GenesisState) Set(fd protoreflect.FieldDescriptor, value // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_OffchainNode) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.GenesisState.params": - if x.Params == nil { - x.Params = new(Params) - } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "emissions.v1.GenesisState.core_team_addresses": - if x.CoreTeamAddresses == nil { - x.CoreTeamAddresses = []string{} - } - value := &_GenesisState_2_list{list: &x.CoreTeamAddresses} - return protoreflect.ValueOfList(value) + case "emissions.v2.OffchainNode.owner": + panic(fmt.Errorf("field owner of message emissions.v2.OffchainNode is not mutable")) + case "emissions.v2.OffchainNode.node_address": + panic(fmt.Errorf("field node_address of message emissions.v2.OffchainNode is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OffchainNode")) } - panic(fmt.Errorf("message emissions.v1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.OffchainNode does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_GenesisState) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_OffchainNode) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.GenesisState.params": - m := new(Params) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "emissions.v1.GenesisState.core_team_addresses": - list := []string{} - return protoreflect.ValueOfList(&_GenesisState_2_list{list: &list}) + case "emissions.v2.OffchainNode.owner": + return protoreflect.ValueOfString("") + case "emissions.v2.OffchainNode.node_address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.GenesisState")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OffchainNode")) } - panic(fmt.Errorf("message emissions.v1.GenesisState does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.OffchainNode does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_OffchainNode) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.GenesisState", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.OffchainNode", d.FullName())) } panic("unreachable") } @@ -312,7 +250,7 @@ func (x *fastReflection_GenesisState) WhichOneof(d protoreflect.OneofDescriptor) // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_OffchainNode) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -323,7 +261,7 @@ func (x *fastReflection_GenesisState) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_OffchainNode) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -335,7 +273,7 @@ func (x *fastReflection_GenesisState) SetUnknown(fields protoreflect.RawFields) // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_GenesisState) IsValid() bool { +func (x *fastReflection_OffchainNode) IsValid() bool { return x != nil } @@ -345,9 +283,9 @@ func (x *fastReflection_GenesisState) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_OffchainNode) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*GenesisState) + x := input.Message.Interface().(*OffchainNode) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -359,15 +297,13 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.Params != nil { - l = options.Size(x.Params) + l = len(x.Owner) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if len(x.CoreTeamAddresses) > 0 { - for _, s := range x.CoreTeamAddresses { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } + l = len(x.NodeAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -379,7 +315,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) + x := input.Message.Interface().(*OffchainNode) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -398,28 +334,19 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.CoreTeamAddresses) > 0 { - for iNdEx := len(x.CoreTeamAddresses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.CoreTeamAddresses[iNdEx]) - copy(dAtA[i:], x.CoreTeamAddresses[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CoreTeamAddresses[iNdEx]))) - i-- - dAtA[i] = 0x12 - } + if len(x.NodeAddress) > 0 { + i -= len(x.NodeAddress) + copy(dAtA[i:], x.NodeAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NodeAddress))) + i-- + dAtA[i] = 0x22 } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.Owner) > 0 { + i -= len(x.Owner) + copy(dAtA[i:], x.Owner) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Owner))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x1a } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -432,7 +359,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*GenesisState) + x := input.Message.Interface().(*OffchainNode) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -464,17 +391,17 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OffchainNode: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OffchainNode: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 3: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -484,31 +411,27 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Params == nil { - x.Params = &Params{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Owner = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: + case 4: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CoreTeamAddresses", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -536,7 +459,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.CoreTeamAddresses = append(x.CoreTeamAddresses, string(dAtA[iNdEx:postIndex])) + x.NodeAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -577,7 +500,7 @@ func (x *fastReflection_GenesisState) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: emissions/v1/genesis.proto +// source: emissions/v2/node.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -586,118 +509,110 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// GenesisState is the state that must be provided at genesis. -type GenesisState struct { +type OffchainNode struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // params defines all the parameters of the module. - Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` - CoreTeamAddresses []string `protobuf:"bytes,2,rep,name=core_team_addresses,json=coreTeamAddresses,proto3" json:"core_team_addresses,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + NodeAddress string `protobuf:"bytes,4,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"` } -func (x *GenesisState) Reset() { - *x = GenesisState{} +func (x *OffchainNode) Reset() { + *x = OffchainNode{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_genesis_proto_msgTypes[0] + mi := &file_emissions_v2_node_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GenesisState) String() string { +func (x *OffchainNode) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GenesisState) ProtoMessage() {} +func (*OffchainNode) ProtoMessage() {} -// Deprecated: Use GenesisState.ProtoReflect.Descriptor instead. -func (*GenesisState) Descriptor() ([]byte, []int) { - return file_emissions_v1_genesis_proto_rawDescGZIP(), []int{0} +// Deprecated: Use OffchainNode.ProtoReflect.Descriptor instead. +func (*OffchainNode) Descriptor() ([]byte, []int) { + return file_emissions_v2_node_proto_rawDescGZIP(), []int{0} } -func (x *GenesisState) GetParams() *Params { +func (x *OffchainNode) GetOwner() string { if x != nil { - return x.Params + return x.Owner } - return nil + return "" } -func (x *GenesisState) GetCoreTeamAddresses() []string { +func (x *OffchainNode) GetNodeAddress() string { if x != nil { - return x.CoreTeamAddresses + return x.NodeAddress } - return nil -} - -var File_emissions_v1_genesis_proto protoreflect.FileDescriptor - -var file_emissions_v1_genesis_proto_rawDesc = []byte{ - 0x0a, 0x1a, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x67, - 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x19, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, - 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x72, - 0x0a, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x32, - 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x42, 0x04, 0xc8, 0xde, 0x1f, 0x00, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x74, 0x65, 0x61, 0x6d, 0x5f, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x11, 0x63, 0x6f, 0x72, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x65, 0x73, 0x42, 0xc2, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0c, 0x47, 0x65, 0x6e, 0x65, 0x73, 0x69, 0x73, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, - 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, - 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x45, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + return "" +} + +var File_emissions_v2_node_proto protoreflect.FileDescriptor + +var file_emissions_v2_node_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, + 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x22, 0x7e, 0x0a, 0x0c, 0x4f, 0x66, 0x66, 0x63, 0x68, + 0x61, 0x69, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x21, 0x0a, + 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x05, + 0x10, 0x06, 0x52, 0x0b, 0x6c, 0x69, 0x62, 0x5f, 0x70, 0x32, 0x70, 0x5f, 0x6b, 0x65, 0x79, 0x52, + 0x0d, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x07, + 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x42, 0xbf, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x09, 0x4e, 0x6f, + 0x64, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, + 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x32, 0xca, + 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, + 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( - file_emissions_v1_genesis_proto_rawDescOnce sync.Once - file_emissions_v1_genesis_proto_rawDescData = file_emissions_v1_genesis_proto_rawDesc + file_emissions_v2_node_proto_rawDescOnce sync.Once + file_emissions_v2_node_proto_rawDescData = file_emissions_v2_node_proto_rawDesc ) -func file_emissions_v1_genesis_proto_rawDescGZIP() []byte { - file_emissions_v1_genesis_proto_rawDescOnce.Do(func() { - file_emissions_v1_genesis_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v1_genesis_proto_rawDescData) +func file_emissions_v2_node_proto_rawDescGZIP() []byte { + file_emissions_v2_node_proto_rawDescOnce.Do(func() { + file_emissions_v2_node_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_node_proto_rawDescData) }) - return file_emissions_v1_genesis_proto_rawDescData + return file_emissions_v2_node_proto_rawDescData } -var file_emissions_v1_genesis_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_emissions_v1_genesis_proto_goTypes = []interface{}{ - (*GenesisState)(nil), // 0: emissions.v1.GenesisState - (*Params)(nil), // 1: emissions.v1.Params +var file_emissions_v2_node_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_emissions_v2_node_proto_goTypes = []interface{}{ + (*OffchainNode)(nil), // 0: emissions.v2.OffchainNode } -var file_emissions_v1_genesis_proto_depIdxs = []int32{ - 1, // 0: emissions.v1.GenesisState.params:type_name -> emissions.v1.Params - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name +var file_emissions_v2_node_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name } -func init() { file_emissions_v1_genesis_proto_init() } -func file_emissions_v1_genesis_proto_init() { - if File_emissions_v1_genesis_proto != nil { +func init() { file_emissions_v2_node_proto_init() } +func file_emissions_v2_node_proto_init() { + if File_emissions_v2_node_proto != nil { return } - file_emissions_v1_params_proto_init() if !protoimpl.UnsafeEnabled { - file_emissions_v1_genesis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenesisState); i { + file_emissions_v2_node_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OffchainNode); i { case 0: return &v.state case 1: @@ -713,18 +628,18 @@ func file_emissions_v1_genesis_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_emissions_v1_genesis_proto_rawDesc, + RawDescriptor: file_emissions_v2_node_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_emissions_v1_genesis_proto_goTypes, - DependencyIndexes: file_emissions_v1_genesis_proto_depIdxs, - MessageInfos: file_emissions_v1_genesis_proto_msgTypes, + GoTypes: file_emissions_v2_node_proto_goTypes, + DependencyIndexes: file_emissions_v2_node_proto_depIdxs, + MessageInfos: file_emissions_v2_node_proto_msgTypes, }.Build() - File_emissions_v1_genesis_proto = out.File - file_emissions_v1_genesis_proto_rawDesc = nil - file_emissions_v1_genesis_proto_goTypes = nil - file_emissions_v1_genesis_proto_depIdxs = nil + File_emissions_v2_node_proto = out.File + file_emissions_v2_node_proto_rawDesc = nil + file_emissions_v2_node_proto_goTypes = nil + file_emissions_v2_node_proto_depIdxs = nil } diff --git a/x/emissions/api/v2/nonce.pulsar.go b/x/emissions/api/v2/nonce.pulsar.go new file mode 100644 index 000000000..f99e4b826 --- /dev/null +++ b/x/emissions/api/v2/nonce.pulsar.go @@ -0,0 +1,2140 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package emissionsv2 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Nonce protoreflect.MessageDescriptor + fd_Nonce_block_height protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_nonce_proto_init() + md_Nonce = File_emissions_v2_nonce_proto.Messages().ByName("Nonce") + fd_Nonce_block_height = md_Nonce.Fields().ByName("block_height") +} + +var _ protoreflect.Message = (*fastReflection_Nonce)(nil) + +type fastReflection_Nonce Nonce + +func (x *Nonce) ProtoReflect() protoreflect.Message { + return (*fastReflection_Nonce)(x) +} + +func (x *Nonce) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_nonce_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Nonce_messageType fastReflection_Nonce_messageType +var _ protoreflect.MessageType = fastReflection_Nonce_messageType{} + +type fastReflection_Nonce_messageType struct{} + +func (x fastReflection_Nonce_messageType) Zero() protoreflect.Message { + return (*fastReflection_Nonce)(nil) +} +func (x fastReflection_Nonce_messageType) New() protoreflect.Message { + return new(fastReflection_Nonce) +} +func (x fastReflection_Nonce_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Nonce +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Nonce) Descriptor() protoreflect.MessageDescriptor { + return md_Nonce +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Nonce) Type() protoreflect.MessageType { + return _fastReflection_Nonce_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Nonce) New() protoreflect.Message { + return new(fastReflection_Nonce) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Nonce) Interface() protoreflect.ProtoMessage { + return (*Nonce)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Nonce) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_Nonce_block_height, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Nonce) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.Nonce.block_height": + return x.BlockHeight != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Nonce")) + } + panic(fmt.Errorf("message emissions.v2.Nonce does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Nonce) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.Nonce.block_height": + x.BlockHeight = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Nonce")) + } + panic(fmt.Errorf("message emissions.v2.Nonce does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Nonce) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.Nonce.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Nonce")) + } + panic(fmt.Errorf("message emissions.v2.Nonce does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Nonce) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.Nonce.block_height": + x.BlockHeight = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Nonce")) + } + panic(fmt.Errorf("message emissions.v2.Nonce does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Nonce) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.Nonce.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.Nonce is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Nonce")) + } + panic(fmt.Errorf("message emissions.v2.Nonce does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Nonce) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.Nonce.block_height": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Nonce")) + } + panic(fmt.Errorf("message emissions.v2.Nonce does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Nonce) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.Nonce", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Nonce) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Nonce) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Nonce) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Nonce) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Nonce) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Nonce) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Nonce) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Nonce: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Nonce: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_Nonces_1_list)(nil) + +type _Nonces_1_list struct { + list *[]*Nonce +} + +func (x *_Nonces_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_Nonces_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_Nonces_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Nonce) + (*x.list)[i] = concreteValue +} + +func (x *_Nonces_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Nonce) + *x.list = append(*x.list, concreteValue) +} + +func (x *_Nonces_1_list) AppendMutable() protoreflect.Value { + v := new(Nonce) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Nonces_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_Nonces_1_list) NewElement() protoreflect.Value { + v := new(Nonce) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_Nonces_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_Nonces protoreflect.MessageDescriptor + fd_Nonces_nonces protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_nonce_proto_init() + md_Nonces = File_emissions_v2_nonce_proto.Messages().ByName("Nonces") + fd_Nonces_nonces = md_Nonces.Fields().ByName("nonces") +} + +var _ protoreflect.Message = (*fastReflection_Nonces)(nil) + +type fastReflection_Nonces Nonces + +func (x *Nonces) ProtoReflect() protoreflect.Message { + return (*fastReflection_Nonces)(x) +} + +func (x *Nonces) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_nonce_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Nonces_messageType fastReflection_Nonces_messageType +var _ protoreflect.MessageType = fastReflection_Nonces_messageType{} + +type fastReflection_Nonces_messageType struct{} + +func (x fastReflection_Nonces_messageType) Zero() protoreflect.Message { + return (*fastReflection_Nonces)(nil) +} +func (x fastReflection_Nonces_messageType) New() protoreflect.Message { + return new(fastReflection_Nonces) +} +func (x fastReflection_Nonces_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Nonces +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Nonces) Descriptor() protoreflect.MessageDescriptor { + return md_Nonces +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Nonces) Type() protoreflect.MessageType { + return _fastReflection_Nonces_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Nonces) New() protoreflect.Message { + return new(fastReflection_Nonces) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Nonces) Interface() protoreflect.ProtoMessage { + return (*Nonces)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Nonces) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Nonces) != 0 { + value := protoreflect.ValueOfList(&_Nonces_1_list{list: &x.Nonces}) + if !f(fd_Nonces_nonces, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Nonces) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.Nonces.nonces": + return len(x.Nonces) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Nonces")) + } + panic(fmt.Errorf("message emissions.v2.Nonces does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Nonces) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.Nonces.nonces": + x.Nonces = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Nonces")) + } + panic(fmt.Errorf("message emissions.v2.Nonces does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Nonces) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.Nonces.nonces": + if len(x.Nonces) == 0 { + return protoreflect.ValueOfList(&_Nonces_1_list{}) + } + listValue := &_Nonces_1_list{list: &x.Nonces} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Nonces")) + } + panic(fmt.Errorf("message emissions.v2.Nonces does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Nonces) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.Nonces.nonces": + lv := value.List() + clv := lv.(*_Nonces_1_list) + x.Nonces = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Nonces")) + } + panic(fmt.Errorf("message emissions.v2.Nonces does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Nonces) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.Nonces.nonces": + if x.Nonces == nil { + x.Nonces = []*Nonce{} + } + value := &_Nonces_1_list{list: &x.Nonces} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Nonces")) + } + panic(fmt.Errorf("message emissions.v2.Nonces does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Nonces) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.Nonces.nonces": + list := []*Nonce{} + return protoreflect.ValueOfList(&_Nonces_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Nonces")) + } + panic(fmt.Errorf("message emissions.v2.Nonces does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Nonces) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.Nonces", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Nonces) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Nonces) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Nonces) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Nonces) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Nonces) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Nonces) > 0 { + for _, e := range x.Nonces { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Nonces) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Nonces) > 0 { + for iNdEx := len(x.Nonces) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Nonces[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Nonces) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Nonces: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Nonces: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Nonces = append(x.Nonces, &Nonce{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nonces[len(x.Nonces)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_ReputerRequestNonce protoreflect.MessageDescriptor + fd_ReputerRequestNonce_reputer_nonce protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_nonce_proto_init() + md_ReputerRequestNonce = File_emissions_v2_nonce_proto.Messages().ByName("ReputerRequestNonce") + fd_ReputerRequestNonce_reputer_nonce = md_ReputerRequestNonce.Fields().ByName("reputer_nonce") +} + +var _ protoreflect.Message = (*fastReflection_ReputerRequestNonce)(nil) + +type fastReflection_ReputerRequestNonce ReputerRequestNonce + +func (x *ReputerRequestNonce) ProtoReflect() protoreflect.Message { + return (*fastReflection_ReputerRequestNonce)(x) +} + +func (x *ReputerRequestNonce) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_nonce_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_ReputerRequestNonce_messageType fastReflection_ReputerRequestNonce_messageType +var _ protoreflect.MessageType = fastReflection_ReputerRequestNonce_messageType{} + +type fastReflection_ReputerRequestNonce_messageType struct{} + +func (x fastReflection_ReputerRequestNonce_messageType) Zero() protoreflect.Message { + return (*fastReflection_ReputerRequestNonce)(nil) +} +func (x fastReflection_ReputerRequestNonce_messageType) New() protoreflect.Message { + return new(fastReflection_ReputerRequestNonce) +} +func (x fastReflection_ReputerRequestNonce_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ReputerRequestNonce +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ReputerRequestNonce) Descriptor() protoreflect.MessageDescriptor { + return md_ReputerRequestNonce +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ReputerRequestNonce) Type() protoreflect.MessageType { + return _fastReflection_ReputerRequestNonce_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ReputerRequestNonce) New() protoreflect.Message { + return new(fastReflection_ReputerRequestNonce) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ReputerRequestNonce) Interface() protoreflect.ProtoMessage { + return (*ReputerRequestNonce)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ReputerRequestNonce) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ReputerNonce != nil { + value := protoreflect.ValueOfMessage(x.ReputerNonce.ProtoReflect()) + if !f(fd_ReputerRequestNonce_reputer_nonce, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_ReputerRequestNonce) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.ReputerRequestNonce.reputer_nonce": + return x.ReputerNonce != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerRequestNonce")) + } + panic(fmt.Errorf("message emissions.v2.ReputerRequestNonce does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerRequestNonce) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.ReputerRequestNonce.reputer_nonce": + x.ReputerNonce = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerRequestNonce")) + } + panic(fmt.Errorf("message emissions.v2.ReputerRequestNonce does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ReputerRequestNonce) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.ReputerRequestNonce.reputer_nonce": + value := x.ReputerNonce + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerRequestNonce")) + } + panic(fmt.Errorf("message emissions.v2.ReputerRequestNonce does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerRequestNonce) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.ReputerRequestNonce.reputer_nonce": + x.ReputerNonce = value.Message().Interface().(*Nonce) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerRequestNonce")) + } + panic(fmt.Errorf("message emissions.v2.ReputerRequestNonce does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerRequestNonce) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.ReputerRequestNonce.reputer_nonce": + if x.ReputerNonce == nil { + x.ReputerNonce = new(Nonce) + } + return protoreflect.ValueOfMessage(x.ReputerNonce.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerRequestNonce")) + } + panic(fmt.Errorf("message emissions.v2.ReputerRequestNonce does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ReputerRequestNonce) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.ReputerRequestNonce.reputer_nonce": + m := new(Nonce) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerRequestNonce")) + } + panic(fmt.Errorf("message emissions.v2.ReputerRequestNonce does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ReputerRequestNonce) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.ReputerRequestNonce", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ReputerRequestNonce) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerRequestNonce) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ReputerRequestNonce) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ReputerRequestNonce) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ReputerRequestNonce) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.ReputerNonce != nil { + l = options.Size(x.ReputerNonce) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*ReputerRequestNonce) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.ReputerNonce != nil { + encoded, err := options.Marshal(x.ReputerNonce) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*ReputerRequestNonce) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ReputerRequestNonce: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ReputerRequestNonce: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerNonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.ReputerNonce == nil { + x.ReputerNonce = &Nonce{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ReputerNonce); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_ReputerRequestNonces_1_list)(nil) + +type _ReputerRequestNonces_1_list struct { + list *[]*ReputerRequestNonce +} + +func (x *_ReputerRequestNonces_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_ReputerRequestNonces_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_ReputerRequestNonces_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ReputerRequestNonce) + (*x.list)[i] = concreteValue +} + +func (x *_ReputerRequestNonces_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ReputerRequestNonce) + *x.list = append(*x.list, concreteValue) +} + +func (x *_ReputerRequestNonces_1_list) AppendMutable() protoreflect.Value { + v := new(ReputerRequestNonce) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ReputerRequestNonces_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_ReputerRequestNonces_1_list) NewElement() protoreflect.Value { + v := new(ReputerRequestNonce) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ReputerRequestNonces_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_ReputerRequestNonces protoreflect.MessageDescriptor + fd_ReputerRequestNonces_nonces protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_nonce_proto_init() + md_ReputerRequestNonces = File_emissions_v2_nonce_proto.Messages().ByName("ReputerRequestNonces") + fd_ReputerRequestNonces_nonces = md_ReputerRequestNonces.Fields().ByName("nonces") +} + +var _ protoreflect.Message = (*fastReflection_ReputerRequestNonces)(nil) + +type fastReflection_ReputerRequestNonces ReputerRequestNonces + +func (x *ReputerRequestNonces) ProtoReflect() protoreflect.Message { + return (*fastReflection_ReputerRequestNonces)(x) +} + +func (x *ReputerRequestNonces) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_nonce_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_ReputerRequestNonces_messageType fastReflection_ReputerRequestNonces_messageType +var _ protoreflect.MessageType = fastReflection_ReputerRequestNonces_messageType{} + +type fastReflection_ReputerRequestNonces_messageType struct{} + +func (x fastReflection_ReputerRequestNonces_messageType) Zero() protoreflect.Message { + return (*fastReflection_ReputerRequestNonces)(nil) +} +func (x fastReflection_ReputerRequestNonces_messageType) New() protoreflect.Message { + return new(fastReflection_ReputerRequestNonces) +} +func (x fastReflection_ReputerRequestNonces_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ReputerRequestNonces +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ReputerRequestNonces) Descriptor() protoreflect.MessageDescriptor { + return md_ReputerRequestNonces +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ReputerRequestNonces) Type() protoreflect.MessageType { + return _fastReflection_ReputerRequestNonces_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ReputerRequestNonces) New() protoreflect.Message { + return new(fastReflection_ReputerRequestNonces) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ReputerRequestNonces) Interface() protoreflect.ProtoMessage { + return (*ReputerRequestNonces)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ReputerRequestNonces) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Nonces) != 0 { + value := protoreflect.ValueOfList(&_ReputerRequestNonces_1_list{list: &x.Nonces}) + if !f(fd_ReputerRequestNonces_nonces, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_ReputerRequestNonces) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.ReputerRequestNonces.nonces": + return len(x.Nonces) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerRequestNonces")) + } + panic(fmt.Errorf("message emissions.v2.ReputerRequestNonces does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerRequestNonces) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.ReputerRequestNonces.nonces": + x.Nonces = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerRequestNonces")) + } + panic(fmt.Errorf("message emissions.v2.ReputerRequestNonces does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ReputerRequestNonces) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.ReputerRequestNonces.nonces": + if len(x.Nonces) == 0 { + return protoreflect.ValueOfList(&_ReputerRequestNonces_1_list{}) + } + listValue := &_ReputerRequestNonces_1_list{list: &x.Nonces} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerRequestNonces")) + } + panic(fmt.Errorf("message emissions.v2.ReputerRequestNonces does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerRequestNonces) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.ReputerRequestNonces.nonces": + lv := value.List() + clv := lv.(*_ReputerRequestNonces_1_list) + x.Nonces = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerRequestNonces")) + } + panic(fmt.Errorf("message emissions.v2.ReputerRequestNonces does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerRequestNonces) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.ReputerRequestNonces.nonces": + if x.Nonces == nil { + x.Nonces = []*ReputerRequestNonce{} + } + value := &_ReputerRequestNonces_1_list{list: &x.Nonces} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerRequestNonces")) + } + panic(fmt.Errorf("message emissions.v2.ReputerRequestNonces does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ReputerRequestNonces) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.ReputerRequestNonces.nonces": + list := []*ReputerRequestNonce{} + return protoreflect.ValueOfList(&_ReputerRequestNonces_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerRequestNonces")) + } + panic(fmt.Errorf("message emissions.v2.ReputerRequestNonces does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ReputerRequestNonces) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.ReputerRequestNonces", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ReputerRequestNonces) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerRequestNonces) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ReputerRequestNonces) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ReputerRequestNonces) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ReputerRequestNonces) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Nonces) > 0 { + for _, e := range x.Nonces { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*ReputerRequestNonces) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Nonces) > 0 { + for iNdEx := len(x.Nonces) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Nonces[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*ReputerRequestNonces) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ReputerRequestNonces: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ReputerRequestNonces: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Nonces = append(x.Nonces, &ReputerRequestNonce{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nonces[len(x.Nonces)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: emissions/v2/nonce.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Nonce struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // block height of the request +} + +func (x *Nonce) Reset() { + *x = Nonce{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_nonce_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Nonce) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Nonce) ProtoMessage() {} + +// Deprecated: Use Nonce.ProtoReflect.Descriptor instead. +func (*Nonce) Descriptor() ([]byte, []int) { + return file_emissions_v2_nonce_proto_rawDescGZIP(), []int{0} +} + +func (x *Nonce) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +type Nonces struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonces []*Nonce `protobuf:"bytes,1,rep,name=nonces,proto3" json:"nonces,omitempty"` +} + +func (x *Nonces) Reset() { + *x = Nonces{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_nonce_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Nonces) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Nonces) ProtoMessage() {} + +// Deprecated: Use Nonces.ProtoReflect.Descriptor instead. +func (*Nonces) Descriptor() ([]byte, []int) { + return file_emissions_v2_nonce_proto_rawDescGZIP(), []int{1} +} + +func (x *Nonces) GetNonces() []*Nonce { + if x != nil { + return x.Nonces + } + return nil +} + +type ReputerRequestNonce struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // the reputers should respond to the reputer request with losses for work + // found at this worker nonce + ReputerNonce *Nonce `protobuf:"bytes,1,opt,name=reputer_nonce,json=reputerNonce,proto3" json:"reputer_nonce,omitempty"` +} + +func (x *ReputerRequestNonce) Reset() { + *x = ReputerRequestNonce{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_nonce_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReputerRequestNonce) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReputerRequestNonce) ProtoMessage() {} + +// Deprecated: Use ReputerRequestNonce.ProtoReflect.Descriptor instead. +func (*ReputerRequestNonce) Descriptor() ([]byte, []int) { + return file_emissions_v2_nonce_proto_rawDescGZIP(), []int{2} +} + +func (x *ReputerRequestNonce) GetReputerNonce() *Nonce { + if x != nil { + return x.ReputerNonce + } + return nil +} + +type ReputerRequestNonces struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonces []*ReputerRequestNonce `protobuf:"bytes,1,rep,name=nonces,proto3" json:"nonces,omitempty"` +} + +func (x *ReputerRequestNonces) Reset() { + *x = ReputerRequestNonces{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_nonce_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReputerRequestNonces) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReputerRequestNonces) ProtoMessage() {} + +// Deprecated: Use ReputerRequestNonces.ProtoReflect.Descriptor instead. +func (*ReputerRequestNonces) Descriptor() ([]byte, []int) { + return file_emissions_v2_nonce_proto_rawDescGZIP(), []int{3} +} + +func (x *ReputerRequestNonces) GetNonces() []*ReputerRequestNonce { + if x != nil { + return x.Nonces + } + return nil +} + +var File_emissions_v2_nonce_proto protoreflect.FileDescriptor + +var file_emissions_v2_nonce_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, + 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x30, + 0x0a, 0x05, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, + 0x22, 0x35, 0x0a, 0x06, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x06, 0x6e, 0x6f, + 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, + 0x06, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x55, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x75, 0x74, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x38, + 0x0a, 0x0d, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x75, + 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x51, + 0x0a, 0x14, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x06, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x06, 0x6e, 0x6f, 0x6e, 0x63, 0x65, + 0x73, 0x42, 0xc0, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0a, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, + 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x45, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_emissions_v2_nonce_proto_rawDescOnce sync.Once + file_emissions_v2_nonce_proto_rawDescData = file_emissions_v2_nonce_proto_rawDesc +) + +func file_emissions_v2_nonce_proto_rawDescGZIP() []byte { + file_emissions_v2_nonce_proto_rawDescOnce.Do(func() { + file_emissions_v2_nonce_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_nonce_proto_rawDescData) + }) + return file_emissions_v2_nonce_proto_rawDescData +} + +var file_emissions_v2_nonce_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_emissions_v2_nonce_proto_goTypes = []interface{}{ + (*Nonce)(nil), // 0: emissions.v2.Nonce + (*Nonces)(nil), // 1: emissions.v2.Nonces + (*ReputerRequestNonce)(nil), // 2: emissions.v2.ReputerRequestNonce + (*ReputerRequestNonces)(nil), // 3: emissions.v2.ReputerRequestNonces +} +var file_emissions_v2_nonce_proto_depIdxs = []int32{ + 0, // 0: emissions.v2.Nonces.nonces:type_name -> emissions.v2.Nonce + 0, // 1: emissions.v2.ReputerRequestNonce.reputer_nonce:type_name -> emissions.v2.Nonce + 2, // 2: emissions.v2.ReputerRequestNonces.nonces:type_name -> emissions.v2.ReputerRequestNonce + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_emissions_v2_nonce_proto_init() } +func file_emissions_v2_nonce_proto_init() { + if File_emissions_v2_nonce_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_emissions_v2_nonce_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Nonce); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_nonce_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Nonces); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_nonce_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReputerRequestNonce); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_nonce_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReputerRequestNonces); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_emissions_v2_nonce_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_emissions_v2_nonce_proto_goTypes, + DependencyIndexes: file_emissions_v2_nonce_proto_depIdxs, + MessageInfos: file_emissions_v2_nonce_proto_msgTypes, + }.Build() + File_emissions_v2_nonce_proto = out.File + file_emissions_v2_nonce_proto_rawDesc = nil + file_emissions_v2_nonce_proto_goTypes = nil + file_emissions_v2_nonce_proto_depIdxs = nil +} diff --git a/x/emissions/api/v1/params.pulsar.go b/x/emissions/api/v2/params.pulsar.go similarity index 80% rename from x/emissions/api/v1/params.pulsar.go rename to x/emissions/api/v2/params.pulsar.go index d729db0b3..653b87106 100644 --- a/x/emissions/api/v1/params.pulsar.go +++ b/x/emissions/api/v2/params.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package emissionsv1 +package emissionsv2 import ( fmt "fmt" @@ -16,52 +16,55 @@ import ( ) var ( - md_Params protoreflect.MessageDescriptor - fd_Params_version protoreflect.FieldDescriptor - fd_Params_max_serialized_msg_length protoreflect.FieldDescriptor - fd_Params_min_topic_weight protoreflect.FieldDescriptor - fd_Params_max_topics_per_block protoreflect.FieldDescriptor - fd_Params_required_minimum_stake protoreflect.FieldDescriptor - fd_Params_remove_stake_delay_window protoreflect.FieldDescriptor - fd_Params_min_epoch_length protoreflect.FieldDescriptor - fd_Params_beta_entropy protoreflect.FieldDescriptor - fd_Params_learning_rate protoreflect.FieldDescriptor - fd_Params_max_gradient_threshold protoreflect.FieldDescriptor - fd_Params_min_stake_fraction protoreflect.FieldDescriptor - fd_Params_max_unfulfilled_worker_requests protoreflect.FieldDescriptor - fd_Params_max_unfulfilled_reputer_requests protoreflect.FieldDescriptor - fd_Params_topic_reward_stake_importance protoreflect.FieldDescriptor - fd_Params_topic_reward_fee_revenue_importance protoreflect.FieldDescriptor - fd_Params_topic_reward_alpha protoreflect.FieldDescriptor - fd_Params_task_reward_alpha protoreflect.FieldDescriptor - fd_Params_validators_vs_allora_percent_reward protoreflect.FieldDescriptor - fd_Params_max_samples_to_scale_scores protoreflect.FieldDescriptor - fd_Params_max_top_inferers_to_reward protoreflect.FieldDescriptor - fd_Params_max_top_forecasters_to_reward protoreflect.FieldDescriptor - fd_Params_max_top_reputers_to_reward protoreflect.FieldDescriptor - fd_Params_create_topic_fee protoreflect.FieldDescriptor - fd_Params_gradient_descent_max_iters protoreflect.FieldDescriptor - fd_Params_max_retries_to_fulfil_nonces_worker protoreflect.FieldDescriptor - fd_Params_max_retries_to_fulfil_nonces_reputer protoreflect.FieldDescriptor - fd_Params_registration_fee protoreflect.FieldDescriptor - fd_Params_default_page_limit protoreflect.FieldDescriptor - fd_Params_max_page_limit protoreflect.FieldDescriptor - fd_Params_min_epoch_length_record_limit protoreflect.FieldDescriptor - fd_Params_blocks_per_month protoreflect.FieldDescriptor - fd_Params_p_reward_inference protoreflect.FieldDescriptor - fd_Params_p_reward_forecast protoreflect.FieldDescriptor - fd_Params_p_reward_reputer protoreflect.FieldDescriptor - fd_Params_c_reward_inference protoreflect.FieldDescriptor - fd_Params_c_reward_forecast protoreflect.FieldDescriptor - fd_Params_c_norm protoreflect.FieldDescriptor - fd_Params_topic_fee_revenue_decay_rate protoreflect.FieldDescriptor - fd_Params_epsilon_reputer protoreflect.FieldDescriptor - fd_Params_min_effective_topic_revenue protoreflect.FieldDescriptor + md_Params protoreflect.MessageDescriptor + fd_Params_version protoreflect.FieldDescriptor + fd_Params_max_serialized_msg_length protoreflect.FieldDescriptor + fd_Params_min_topic_weight protoreflect.FieldDescriptor + fd_Params_max_topics_per_block protoreflect.FieldDescriptor + fd_Params_required_minimum_stake protoreflect.FieldDescriptor + fd_Params_remove_stake_delay_window protoreflect.FieldDescriptor + fd_Params_min_epoch_length protoreflect.FieldDescriptor + fd_Params_beta_entropy protoreflect.FieldDescriptor + fd_Params_learning_rate protoreflect.FieldDescriptor + fd_Params_max_gradient_threshold protoreflect.FieldDescriptor + fd_Params_min_stake_fraction protoreflect.FieldDescriptor + fd_Params_max_unfulfilled_worker_requests protoreflect.FieldDescriptor + fd_Params_max_unfulfilled_reputer_requests protoreflect.FieldDescriptor + fd_Params_topic_reward_stake_importance protoreflect.FieldDescriptor + fd_Params_topic_reward_fee_revenue_importance protoreflect.FieldDescriptor + fd_Params_topic_reward_alpha protoreflect.FieldDescriptor + fd_Params_task_reward_alpha protoreflect.FieldDescriptor + fd_Params_validators_vs_allora_percent_reward protoreflect.FieldDescriptor + fd_Params_max_samples_to_scale_scores protoreflect.FieldDescriptor + fd_Params_max_top_inferers_to_reward protoreflect.FieldDescriptor + fd_Params_max_top_forecasters_to_reward protoreflect.FieldDescriptor + fd_Params_max_top_reputers_to_reward protoreflect.FieldDescriptor + fd_Params_create_topic_fee protoreflect.FieldDescriptor + fd_Params_gradient_descent_max_iters protoreflect.FieldDescriptor + fd_Params_max_retries_to_fulfil_nonces_worker protoreflect.FieldDescriptor + fd_Params_max_retries_to_fulfil_nonces_reputer protoreflect.FieldDescriptor + fd_Params_registration_fee protoreflect.FieldDescriptor + fd_Params_default_page_limit protoreflect.FieldDescriptor + fd_Params_max_page_limit protoreflect.FieldDescriptor + fd_Params_min_epoch_length_record_limit protoreflect.FieldDescriptor + fd_Params_blocks_per_month protoreflect.FieldDescriptor + fd_Params_p_reward_inference protoreflect.FieldDescriptor + fd_Params_p_reward_forecast protoreflect.FieldDescriptor + fd_Params_p_reward_reputer protoreflect.FieldDescriptor + fd_Params_c_reward_inference protoreflect.FieldDescriptor + fd_Params_c_reward_forecast protoreflect.FieldDescriptor + fd_Params_c_norm protoreflect.FieldDescriptor + fd_Params_topic_fee_revenue_decay_rate protoreflect.FieldDescriptor + fd_Params_epsilon_reputer protoreflect.FieldDescriptor + fd_Params_min_effective_topic_revenue protoreflect.FieldDescriptor + fd_Params_half_max_process_stake_removals_end_block protoreflect.FieldDescriptor + fd_Params_epsilon_safe_div protoreflect.FieldDescriptor + fd_Params_data_sending_fee protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_params_proto_init() - md_Params = File_emissions_v1_params_proto.Messages().ByName("Params") + file_emissions_v2_params_proto_init() + md_Params = File_emissions_v2_params_proto.Messages().ByName("Params") fd_Params_version = md_Params.Fields().ByName("version") fd_Params_max_serialized_msg_length = md_Params.Fields().ByName("max_serialized_msg_length") fd_Params_min_topic_weight = md_Params.Fields().ByName("min_topic_weight") @@ -102,6 +105,9 @@ func init() { fd_Params_topic_fee_revenue_decay_rate = md_Params.Fields().ByName("topic_fee_revenue_decay_rate") fd_Params_epsilon_reputer = md_Params.Fields().ByName("epsilon_reputer") fd_Params_min_effective_topic_revenue = md_Params.Fields().ByName("min_effective_topic_revenue") + fd_Params_half_max_process_stake_removals_end_block = md_Params.Fields().ByName("half_max_process_stake_removals_end_block") + fd_Params_epsilon_safe_div = md_Params.Fields().ByName("epsilon_safe_div") + fd_Params_data_sending_fee = md_Params.Fields().ByName("data_sending_fee") } var _ protoreflect.Message = (*fastReflection_Params)(nil) @@ -113,7 +119,7 @@ func (x *Params) ProtoReflect() protoreflect.Message { } func (x *Params) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_params_proto_msgTypes[0] + mi := &file_emissions_v2_params_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -409,6 +415,24 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto return } } + if x.HalfMaxProcessStakeRemovalsEndBlock != uint64(0) { + value := protoreflect.ValueOfUint64(x.HalfMaxProcessStakeRemovalsEndBlock) + if !f(fd_Params_half_max_process_stake_removals_end_block, value) { + return + } + } + if x.EpsilonSafeDiv != "" { + value := protoreflect.ValueOfString(x.EpsilonSafeDiv) + if !f(fd_Params_epsilon_safe_div, value) { + return + } + } + if x.DataSendingFee != "" { + value := protoreflect.ValueOfString(x.DataSendingFee) + if !f(fd_Params_data_sending_fee, value) { + return + } + } } // Has reports whether a field is populated. @@ -424,91 +448,97 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.Params.version": + case "emissions.v2.Params.version": return x.Version != "" - case "emissions.v1.Params.max_serialized_msg_length": + case "emissions.v2.Params.max_serialized_msg_length": return x.MaxSerializedMsgLength != int64(0) - case "emissions.v1.Params.min_topic_weight": + case "emissions.v2.Params.min_topic_weight": return x.MinTopicWeight != "" - case "emissions.v1.Params.max_topics_per_block": + case "emissions.v2.Params.max_topics_per_block": return x.MaxTopicsPerBlock != uint64(0) - case "emissions.v1.Params.required_minimum_stake": + case "emissions.v2.Params.required_minimum_stake": return x.RequiredMinimumStake != "" - case "emissions.v1.Params.remove_stake_delay_window": + case "emissions.v2.Params.remove_stake_delay_window": return x.RemoveStakeDelayWindow != int64(0) - case "emissions.v1.Params.min_epoch_length": + case "emissions.v2.Params.min_epoch_length": return x.MinEpochLength != int64(0) - case "emissions.v1.Params.beta_entropy": + case "emissions.v2.Params.beta_entropy": return x.BetaEntropy != "" - case "emissions.v1.Params.learning_rate": + case "emissions.v2.Params.learning_rate": return x.LearningRate != "" - case "emissions.v1.Params.max_gradient_threshold": + case "emissions.v2.Params.max_gradient_threshold": return x.MaxGradientThreshold != "" - case "emissions.v1.Params.min_stake_fraction": + case "emissions.v2.Params.min_stake_fraction": return x.MinStakeFraction != "" - case "emissions.v1.Params.max_unfulfilled_worker_requests": + case "emissions.v2.Params.max_unfulfilled_worker_requests": return x.MaxUnfulfilledWorkerRequests != uint64(0) - case "emissions.v1.Params.max_unfulfilled_reputer_requests": + case "emissions.v2.Params.max_unfulfilled_reputer_requests": return x.MaxUnfulfilledReputerRequests != uint64(0) - case "emissions.v1.Params.topic_reward_stake_importance": + case "emissions.v2.Params.topic_reward_stake_importance": return x.TopicRewardStakeImportance != "" - case "emissions.v1.Params.topic_reward_fee_revenue_importance": + case "emissions.v2.Params.topic_reward_fee_revenue_importance": return x.TopicRewardFeeRevenueImportance != "" - case "emissions.v1.Params.topic_reward_alpha": + case "emissions.v2.Params.topic_reward_alpha": return x.TopicRewardAlpha != "" - case "emissions.v1.Params.task_reward_alpha": + case "emissions.v2.Params.task_reward_alpha": return x.TaskRewardAlpha != "" - case "emissions.v1.Params.validators_vs_allora_percent_reward": + case "emissions.v2.Params.validators_vs_allora_percent_reward": return x.ValidatorsVsAlloraPercentReward != "" - case "emissions.v1.Params.max_samples_to_scale_scores": + case "emissions.v2.Params.max_samples_to_scale_scores": return x.MaxSamplesToScaleScores != uint64(0) - case "emissions.v1.Params.max_top_inferers_to_reward": + case "emissions.v2.Params.max_top_inferers_to_reward": return x.MaxTopInferersToReward != uint64(0) - case "emissions.v1.Params.max_top_forecasters_to_reward": + case "emissions.v2.Params.max_top_forecasters_to_reward": return x.MaxTopForecastersToReward != uint64(0) - case "emissions.v1.Params.max_top_reputers_to_reward": + case "emissions.v2.Params.max_top_reputers_to_reward": return x.MaxTopReputersToReward != uint64(0) - case "emissions.v1.Params.create_topic_fee": + case "emissions.v2.Params.create_topic_fee": return x.CreateTopicFee != "" - case "emissions.v1.Params.gradient_descent_max_iters": + case "emissions.v2.Params.gradient_descent_max_iters": return x.GradientDescentMaxIters != uint64(0) - case "emissions.v1.Params.max_retries_to_fulfil_nonces_worker": + case "emissions.v2.Params.max_retries_to_fulfil_nonces_worker": return x.MaxRetriesToFulfilNoncesWorker != int64(0) - case "emissions.v1.Params.max_retries_to_fulfil_nonces_reputer": + case "emissions.v2.Params.max_retries_to_fulfil_nonces_reputer": return x.MaxRetriesToFulfilNoncesReputer != int64(0) - case "emissions.v1.Params.registration_fee": + case "emissions.v2.Params.registration_fee": return x.RegistrationFee != "" - case "emissions.v1.Params.default_page_limit": + case "emissions.v2.Params.default_page_limit": return x.DefaultPageLimit != uint64(0) - case "emissions.v1.Params.max_page_limit": + case "emissions.v2.Params.max_page_limit": return x.MaxPageLimit != uint64(0) - case "emissions.v1.Params.min_epoch_length_record_limit": + case "emissions.v2.Params.min_epoch_length_record_limit": return x.MinEpochLengthRecordLimit != int64(0) - case "emissions.v1.Params.blocks_per_month": + case "emissions.v2.Params.blocks_per_month": return x.BlocksPerMonth != uint64(0) - case "emissions.v1.Params.p_reward_inference": + case "emissions.v2.Params.p_reward_inference": return x.PRewardInference != "" - case "emissions.v1.Params.p_reward_forecast": + case "emissions.v2.Params.p_reward_forecast": return x.PRewardForecast != "" - case "emissions.v1.Params.p_reward_reputer": + case "emissions.v2.Params.p_reward_reputer": return x.PRewardReputer != "" - case "emissions.v1.Params.c_reward_inference": + case "emissions.v2.Params.c_reward_inference": return x.CRewardInference != "" - case "emissions.v1.Params.c_reward_forecast": + case "emissions.v2.Params.c_reward_forecast": return x.CRewardForecast != "" - case "emissions.v1.Params.c_norm": + case "emissions.v2.Params.c_norm": return x.CNorm != "" - case "emissions.v1.Params.topic_fee_revenue_decay_rate": + case "emissions.v2.Params.topic_fee_revenue_decay_rate": return x.TopicFeeRevenueDecayRate != "" - case "emissions.v1.Params.epsilon_reputer": + case "emissions.v2.Params.epsilon_reputer": return x.EpsilonReputer != "" - case "emissions.v1.Params.min_effective_topic_revenue": + case "emissions.v2.Params.min_effective_topic_revenue": return x.MinEffectiveTopicRevenue != "" + case "emissions.v2.Params.half_max_process_stake_removals_end_block": + return x.HalfMaxProcessStakeRemovalsEndBlock != uint64(0) + case "emissions.v2.Params.epsilon_safe_div": + return x.EpsilonSafeDiv != "" + case "emissions.v2.Params.data_sending_fee": + return x.DataSendingFee != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Params")) } - panic(fmt.Errorf("message emissions.v1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Params does not contain field %s", fd.FullName())) } } @@ -520,91 +550,97 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.Params.version": + case "emissions.v2.Params.version": x.Version = "" - case "emissions.v1.Params.max_serialized_msg_length": + case "emissions.v2.Params.max_serialized_msg_length": x.MaxSerializedMsgLength = int64(0) - case "emissions.v1.Params.min_topic_weight": + case "emissions.v2.Params.min_topic_weight": x.MinTopicWeight = "" - case "emissions.v1.Params.max_topics_per_block": + case "emissions.v2.Params.max_topics_per_block": x.MaxTopicsPerBlock = uint64(0) - case "emissions.v1.Params.required_minimum_stake": + case "emissions.v2.Params.required_minimum_stake": x.RequiredMinimumStake = "" - case "emissions.v1.Params.remove_stake_delay_window": + case "emissions.v2.Params.remove_stake_delay_window": x.RemoveStakeDelayWindow = int64(0) - case "emissions.v1.Params.min_epoch_length": + case "emissions.v2.Params.min_epoch_length": x.MinEpochLength = int64(0) - case "emissions.v1.Params.beta_entropy": + case "emissions.v2.Params.beta_entropy": x.BetaEntropy = "" - case "emissions.v1.Params.learning_rate": + case "emissions.v2.Params.learning_rate": x.LearningRate = "" - case "emissions.v1.Params.max_gradient_threshold": + case "emissions.v2.Params.max_gradient_threshold": x.MaxGradientThreshold = "" - case "emissions.v1.Params.min_stake_fraction": + case "emissions.v2.Params.min_stake_fraction": x.MinStakeFraction = "" - case "emissions.v1.Params.max_unfulfilled_worker_requests": + case "emissions.v2.Params.max_unfulfilled_worker_requests": x.MaxUnfulfilledWorkerRequests = uint64(0) - case "emissions.v1.Params.max_unfulfilled_reputer_requests": + case "emissions.v2.Params.max_unfulfilled_reputer_requests": x.MaxUnfulfilledReputerRequests = uint64(0) - case "emissions.v1.Params.topic_reward_stake_importance": + case "emissions.v2.Params.topic_reward_stake_importance": x.TopicRewardStakeImportance = "" - case "emissions.v1.Params.topic_reward_fee_revenue_importance": + case "emissions.v2.Params.topic_reward_fee_revenue_importance": x.TopicRewardFeeRevenueImportance = "" - case "emissions.v1.Params.topic_reward_alpha": + case "emissions.v2.Params.topic_reward_alpha": x.TopicRewardAlpha = "" - case "emissions.v1.Params.task_reward_alpha": + case "emissions.v2.Params.task_reward_alpha": x.TaskRewardAlpha = "" - case "emissions.v1.Params.validators_vs_allora_percent_reward": + case "emissions.v2.Params.validators_vs_allora_percent_reward": x.ValidatorsVsAlloraPercentReward = "" - case "emissions.v1.Params.max_samples_to_scale_scores": + case "emissions.v2.Params.max_samples_to_scale_scores": x.MaxSamplesToScaleScores = uint64(0) - case "emissions.v1.Params.max_top_inferers_to_reward": + case "emissions.v2.Params.max_top_inferers_to_reward": x.MaxTopInferersToReward = uint64(0) - case "emissions.v1.Params.max_top_forecasters_to_reward": + case "emissions.v2.Params.max_top_forecasters_to_reward": x.MaxTopForecastersToReward = uint64(0) - case "emissions.v1.Params.max_top_reputers_to_reward": + case "emissions.v2.Params.max_top_reputers_to_reward": x.MaxTopReputersToReward = uint64(0) - case "emissions.v1.Params.create_topic_fee": + case "emissions.v2.Params.create_topic_fee": x.CreateTopicFee = "" - case "emissions.v1.Params.gradient_descent_max_iters": + case "emissions.v2.Params.gradient_descent_max_iters": x.GradientDescentMaxIters = uint64(0) - case "emissions.v1.Params.max_retries_to_fulfil_nonces_worker": + case "emissions.v2.Params.max_retries_to_fulfil_nonces_worker": x.MaxRetriesToFulfilNoncesWorker = int64(0) - case "emissions.v1.Params.max_retries_to_fulfil_nonces_reputer": + case "emissions.v2.Params.max_retries_to_fulfil_nonces_reputer": x.MaxRetriesToFulfilNoncesReputer = int64(0) - case "emissions.v1.Params.registration_fee": + case "emissions.v2.Params.registration_fee": x.RegistrationFee = "" - case "emissions.v1.Params.default_page_limit": + case "emissions.v2.Params.default_page_limit": x.DefaultPageLimit = uint64(0) - case "emissions.v1.Params.max_page_limit": + case "emissions.v2.Params.max_page_limit": x.MaxPageLimit = uint64(0) - case "emissions.v1.Params.min_epoch_length_record_limit": + case "emissions.v2.Params.min_epoch_length_record_limit": x.MinEpochLengthRecordLimit = int64(0) - case "emissions.v1.Params.blocks_per_month": + case "emissions.v2.Params.blocks_per_month": x.BlocksPerMonth = uint64(0) - case "emissions.v1.Params.p_reward_inference": + case "emissions.v2.Params.p_reward_inference": x.PRewardInference = "" - case "emissions.v1.Params.p_reward_forecast": + case "emissions.v2.Params.p_reward_forecast": x.PRewardForecast = "" - case "emissions.v1.Params.p_reward_reputer": + case "emissions.v2.Params.p_reward_reputer": x.PRewardReputer = "" - case "emissions.v1.Params.c_reward_inference": + case "emissions.v2.Params.c_reward_inference": x.CRewardInference = "" - case "emissions.v1.Params.c_reward_forecast": + case "emissions.v2.Params.c_reward_forecast": x.CRewardForecast = "" - case "emissions.v1.Params.c_norm": + case "emissions.v2.Params.c_norm": x.CNorm = "" - case "emissions.v1.Params.topic_fee_revenue_decay_rate": + case "emissions.v2.Params.topic_fee_revenue_decay_rate": x.TopicFeeRevenueDecayRate = "" - case "emissions.v1.Params.epsilon_reputer": + case "emissions.v2.Params.epsilon_reputer": x.EpsilonReputer = "" - case "emissions.v1.Params.min_effective_topic_revenue": + case "emissions.v2.Params.min_effective_topic_revenue": x.MinEffectiveTopicRevenue = "" + case "emissions.v2.Params.half_max_process_stake_removals_end_block": + x.HalfMaxProcessStakeRemovalsEndBlock = uint64(0) + case "emissions.v2.Params.epsilon_safe_div": + x.EpsilonSafeDiv = "" + case "emissions.v2.Params.data_sending_fee": + x.DataSendingFee = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Params")) } - panic(fmt.Errorf("message emissions.v1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Params does not contain field %s", fd.FullName())) } } @@ -616,131 +652,140 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.Params.version": + case "emissions.v2.Params.version": value := x.Version return protoreflect.ValueOfString(value) - case "emissions.v1.Params.max_serialized_msg_length": + case "emissions.v2.Params.max_serialized_msg_length": value := x.MaxSerializedMsgLength return protoreflect.ValueOfInt64(value) - case "emissions.v1.Params.min_topic_weight": + case "emissions.v2.Params.min_topic_weight": value := x.MinTopicWeight return protoreflect.ValueOfString(value) - case "emissions.v1.Params.max_topics_per_block": + case "emissions.v2.Params.max_topics_per_block": value := x.MaxTopicsPerBlock return protoreflect.ValueOfUint64(value) - case "emissions.v1.Params.required_minimum_stake": + case "emissions.v2.Params.required_minimum_stake": value := x.RequiredMinimumStake return protoreflect.ValueOfString(value) - case "emissions.v1.Params.remove_stake_delay_window": + case "emissions.v2.Params.remove_stake_delay_window": value := x.RemoveStakeDelayWindow return protoreflect.ValueOfInt64(value) - case "emissions.v1.Params.min_epoch_length": + case "emissions.v2.Params.min_epoch_length": value := x.MinEpochLength return protoreflect.ValueOfInt64(value) - case "emissions.v1.Params.beta_entropy": + case "emissions.v2.Params.beta_entropy": value := x.BetaEntropy return protoreflect.ValueOfString(value) - case "emissions.v1.Params.learning_rate": + case "emissions.v2.Params.learning_rate": value := x.LearningRate return protoreflect.ValueOfString(value) - case "emissions.v1.Params.max_gradient_threshold": + case "emissions.v2.Params.max_gradient_threshold": value := x.MaxGradientThreshold return protoreflect.ValueOfString(value) - case "emissions.v1.Params.min_stake_fraction": + case "emissions.v2.Params.min_stake_fraction": value := x.MinStakeFraction return protoreflect.ValueOfString(value) - case "emissions.v1.Params.max_unfulfilled_worker_requests": + case "emissions.v2.Params.max_unfulfilled_worker_requests": value := x.MaxUnfulfilledWorkerRequests return protoreflect.ValueOfUint64(value) - case "emissions.v1.Params.max_unfulfilled_reputer_requests": + case "emissions.v2.Params.max_unfulfilled_reputer_requests": value := x.MaxUnfulfilledReputerRequests return protoreflect.ValueOfUint64(value) - case "emissions.v1.Params.topic_reward_stake_importance": + case "emissions.v2.Params.topic_reward_stake_importance": value := x.TopicRewardStakeImportance return protoreflect.ValueOfString(value) - case "emissions.v1.Params.topic_reward_fee_revenue_importance": + case "emissions.v2.Params.topic_reward_fee_revenue_importance": value := x.TopicRewardFeeRevenueImportance return protoreflect.ValueOfString(value) - case "emissions.v1.Params.topic_reward_alpha": + case "emissions.v2.Params.topic_reward_alpha": value := x.TopicRewardAlpha return protoreflect.ValueOfString(value) - case "emissions.v1.Params.task_reward_alpha": + case "emissions.v2.Params.task_reward_alpha": value := x.TaskRewardAlpha return protoreflect.ValueOfString(value) - case "emissions.v1.Params.validators_vs_allora_percent_reward": + case "emissions.v2.Params.validators_vs_allora_percent_reward": value := x.ValidatorsVsAlloraPercentReward return protoreflect.ValueOfString(value) - case "emissions.v1.Params.max_samples_to_scale_scores": + case "emissions.v2.Params.max_samples_to_scale_scores": value := x.MaxSamplesToScaleScores return protoreflect.ValueOfUint64(value) - case "emissions.v1.Params.max_top_inferers_to_reward": + case "emissions.v2.Params.max_top_inferers_to_reward": value := x.MaxTopInferersToReward return protoreflect.ValueOfUint64(value) - case "emissions.v1.Params.max_top_forecasters_to_reward": + case "emissions.v2.Params.max_top_forecasters_to_reward": value := x.MaxTopForecastersToReward return protoreflect.ValueOfUint64(value) - case "emissions.v1.Params.max_top_reputers_to_reward": + case "emissions.v2.Params.max_top_reputers_to_reward": value := x.MaxTopReputersToReward return protoreflect.ValueOfUint64(value) - case "emissions.v1.Params.create_topic_fee": + case "emissions.v2.Params.create_topic_fee": value := x.CreateTopicFee return protoreflect.ValueOfString(value) - case "emissions.v1.Params.gradient_descent_max_iters": + case "emissions.v2.Params.gradient_descent_max_iters": value := x.GradientDescentMaxIters return protoreflect.ValueOfUint64(value) - case "emissions.v1.Params.max_retries_to_fulfil_nonces_worker": + case "emissions.v2.Params.max_retries_to_fulfil_nonces_worker": value := x.MaxRetriesToFulfilNoncesWorker return protoreflect.ValueOfInt64(value) - case "emissions.v1.Params.max_retries_to_fulfil_nonces_reputer": + case "emissions.v2.Params.max_retries_to_fulfil_nonces_reputer": value := x.MaxRetriesToFulfilNoncesReputer return protoreflect.ValueOfInt64(value) - case "emissions.v1.Params.registration_fee": + case "emissions.v2.Params.registration_fee": value := x.RegistrationFee return protoreflect.ValueOfString(value) - case "emissions.v1.Params.default_page_limit": + case "emissions.v2.Params.default_page_limit": value := x.DefaultPageLimit return protoreflect.ValueOfUint64(value) - case "emissions.v1.Params.max_page_limit": + case "emissions.v2.Params.max_page_limit": value := x.MaxPageLimit return protoreflect.ValueOfUint64(value) - case "emissions.v1.Params.min_epoch_length_record_limit": + case "emissions.v2.Params.min_epoch_length_record_limit": value := x.MinEpochLengthRecordLimit return protoreflect.ValueOfInt64(value) - case "emissions.v1.Params.blocks_per_month": + case "emissions.v2.Params.blocks_per_month": value := x.BlocksPerMonth return protoreflect.ValueOfUint64(value) - case "emissions.v1.Params.p_reward_inference": + case "emissions.v2.Params.p_reward_inference": value := x.PRewardInference return protoreflect.ValueOfString(value) - case "emissions.v1.Params.p_reward_forecast": + case "emissions.v2.Params.p_reward_forecast": value := x.PRewardForecast return protoreflect.ValueOfString(value) - case "emissions.v1.Params.p_reward_reputer": + case "emissions.v2.Params.p_reward_reputer": value := x.PRewardReputer return protoreflect.ValueOfString(value) - case "emissions.v1.Params.c_reward_inference": + case "emissions.v2.Params.c_reward_inference": value := x.CRewardInference return protoreflect.ValueOfString(value) - case "emissions.v1.Params.c_reward_forecast": + case "emissions.v2.Params.c_reward_forecast": value := x.CRewardForecast return protoreflect.ValueOfString(value) - case "emissions.v1.Params.c_norm": + case "emissions.v2.Params.c_norm": value := x.CNorm return protoreflect.ValueOfString(value) - case "emissions.v1.Params.topic_fee_revenue_decay_rate": + case "emissions.v2.Params.topic_fee_revenue_decay_rate": value := x.TopicFeeRevenueDecayRate return protoreflect.ValueOfString(value) - case "emissions.v1.Params.epsilon_reputer": + case "emissions.v2.Params.epsilon_reputer": value := x.EpsilonReputer return protoreflect.ValueOfString(value) - case "emissions.v1.Params.min_effective_topic_revenue": + case "emissions.v2.Params.min_effective_topic_revenue": value := x.MinEffectiveTopicRevenue return protoreflect.ValueOfString(value) + case "emissions.v2.Params.half_max_process_stake_removals_end_block": + value := x.HalfMaxProcessStakeRemovalsEndBlock + return protoreflect.ValueOfUint64(value) + case "emissions.v2.Params.epsilon_safe_div": + value := x.EpsilonSafeDiv + return protoreflect.ValueOfString(value) + case "emissions.v2.Params.data_sending_fee": + value := x.DataSendingFee + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Params")) } - panic(fmt.Errorf("message emissions.v1.Params does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.Params does not contain field %s", descriptor.FullName())) } } @@ -756,91 +801,97 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.Params.version": + case "emissions.v2.Params.version": x.Version = value.Interface().(string) - case "emissions.v1.Params.max_serialized_msg_length": + case "emissions.v2.Params.max_serialized_msg_length": x.MaxSerializedMsgLength = value.Int() - case "emissions.v1.Params.min_topic_weight": + case "emissions.v2.Params.min_topic_weight": x.MinTopicWeight = value.Interface().(string) - case "emissions.v1.Params.max_topics_per_block": + case "emissions.v2.Params.max_topics_per_block": x.MaxTopicsPerBlock = value.Uint() - case "emissions.v1.Params.required_minimum_stake": + case "emissions.v2.Params.required_minimum_stake": x.RequiredMinimumStake = value.Interface().(string) - case "emissions.v1.Params.remove_stake_delay_window": + case "emissions.v2.Params.remove_stake_delay_window": x.RemoveStakeDelayWindow = value.Int() - case "emissions.v1.Params.min_epoch_length": + case "emissions.v2.Params.min_epoch_length": x.MinEpochLength = value.Int() - case "emissions.v1.Params.beta_entropy": + case "emissions.v2.Params.beta_entropy": x.BetaEntropy = value.Interface().(string) - case "emissions.v1.Params.learning_rate": + case "emissions.v2.Params.learning_rate": x.LearningRate = value.Interface().(string) - case "emissions.v1.Params.max_gradient_threshold": + case "emissions.v2.Params.max_gradient_threshold": x.MaxGradientThreshold = value.Interface().(string) - case "emissions.v1.Params.min_stake_fraction": + case "emissions.v2.Params.min_stake_fraction": x.MinStakeFraction = value.Interface().(string) - case "emissions.v1.Params.max_unfulfilled_worker_requests": + case "emissions.v2.Params.max_unfulfilled_worker_requests": x.MaxUnfulfilledWorkerRequests = value.Uint() - case "emissions.v1.Params.max_unfulfilled_reputer_requests": + case "emissions.v2.Params.max_unfulfilled_reputer_requests": x.MaxUnfulfilledReputerRequests = value.Uint() - case "emissions.v1.Params.topic_reward_stake_importance": + case "emissions.v2.Params.topic_reward_stake_importance": x.TopicRewardStakeImportance = value.Interface().(string) - case "emissions.v1.Params.topic_reward_fee_revenue_importance": + case "emissions.v2.Params.topic_reward_fee_revenue_importance": x.TopicRewardFeeRevenueImportance = value.Interface().(string) - case "emissions.v1.Params.topic_reward_alpha": + case "emissions.v2.Params.topic_reward_alpha": x.TopicRewardAlpha = value.Interface().(string) - case "emissions.v1.Params.task_reward_alpha": + case "emissions.v2.Params.task_reward_alpha": x.TaskRewardAlpha = value.Interface().(string) - case "emissions.v1.Params.validators_vs_allora_percent_reward": + case "emissions.v2.Params.validators_vs_allora_percent_reward": x.ValidatorsVsAlloraPercentReward = value.Interface().(string) - case "emissions.v1.Params.max_samples_to_scale_scores": + case "emissions.v2.Params.max_samples_to_scale_scores": x.MaxSamplesToScaleScores = value.Uint() - case "emissions.v1.Params.max_top_inferers_to_reward": + case "emissions.v2.Params.max_top_inferers_to_reward": x.MaxTopInferersToReward = value.Uint() - case "emissions.v1.Params.max_top_forecasters_to_reward": + case "emissions.v2.Params.max_top_forecasters_to_reward": x.MaxTopForecastersToReward = value.Uint() - case "emissions.v1.Params.max_top_reputers_to_reward": + case "emissions.v2.Params.max_top_reputers_to_reward": x.MaxTopReputersToReward = value.Uint() - case "emissions.v1.Params.create_topic_fee": + case "emissions.v2.Params.create_topic_fee": x.CreateTopicFee = value.Interface().(string) - case "emissions.v1.Params.gradient_descent_max_iters": + case "emissions.v2.Params.gradient_descent_max_iters": x.GradientDescentMaxIters = value.Uint() - case "emissions.v1.Params.max_retries_to_fulfil_nonces_worker": + case "emissions.v2.Params.max_retries_to_fulfil_nonces_worker": x.MaxRetriesToFulfilNoncesWorker = value.Int() - case "emissions.v1.Params.max_retries_to_fulfil_nonces_reputer": + case "emissions.v2.Params.max_retries_to_fulfil_nonces_reputer": x.MaxRetriesToFulfilNoncesReputer = value.Int() - case "emissions.v1.Params.registration_fee": + case "emissions.v2.Params.registration_fee": x.RegistrationFee = value.Interface().(string) - case "emissions.v1.Params.default_page_limit": + case "emissions.v2.Params.default_page_limit": x.DefaultPageLimit = value.Uint() - case "emissions.v1.Params.max_page_limit": + case "emissions.v2.Params.max_page_limit": x.MaxPageLimit = value.Uint() - case "emissions.v1.Params.min_epoch_length_record_limit": + case "emissions.v2.Params.min_epoch_length_record_limit": x.MinEpochLengthRecordLimit = value.Int() - case "emissions.v1.Params.blocks_per_month": + case "emissions.v2.Params.blocks_per_month": x.BlocksPerMonth = value.Uint() - case "emissions.v1.Params.p_reward_inference": + case "emissions.v2.Params.p_reward_inference": x.PRewardInference = value.Interface().(string) - case "emissions.v1.Params.p_reward_forecast": + case "emissions.v2.Params.p_reward_forecast": x.PRewardForecast = value.Interface().(string) - case "emissions.v1.Params.p_reward_reputer": + case "emissions.v2.Params.p_reward_reputer": x.PRewardReputer = value.Interface().(string) - case "emissions.v1.Params.c_reward_inference": + case "emissions.v2.Params.c_reward_inference": x.CRewardInference = value.Interface().(string) - case "emissions.v1.Params.c_reward_forecast": + case "emissions.v2.Params.c_reward_forecast": x.CRewardForecast = value.Interface().(string) - case "emissions.v1.Params.c_norm": + case "emissions.v2.Params.c_norm": x.CNorm = value.Interface().(string) - case "emissions.v1.Params.topic_fee_revenue_decay_rate": + case "emissions.v2.Params.topic_fee_revenue_decay_rate": x.TopicFeeRevenueDecayRate = value.Interface().(string) - case "emissions.v1.Params.epsilon_reputer": + case "emissions.v2.Params.epsilon_reputer": x.EpsilonReputer = value.Interface().(string) - case "emissions.v1.Params.min_effective_topic_revenue": + case "emissions.v2.Params.min_effective_topic_revenue": x.MinEffectiveTopicRevenue = value.Interface().(string) + case "emissions.v2.Params.half_max_process_stake_removals_end_block": + x.HalfMaxProcessStakeRemovalsEndBlock = value.Uint() + case "emissions.v2.Params.epsilon_safe_div": + x.EpsilonSafeDiv = value.Interface().(string) + case "emissions.v2.Params.data_sending_fee": + x.DataSendingFee = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Params")) } - panic(fmt.Errorf("message emissions.v1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Params does not contain field %s", fd.FullName())) } } @@ -856,91 +907,97 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Params.version": - panic(fmt.Errorf("field version of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.max_serialized_msg_length": - panic(fmt.Errorf("field max_serialized_msg_length of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.min_topic_weight": - panic(fmt.Errorf("field min_topic_weight of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.max_topics_per_block": - panic(fmt.Errorf("field max_topics_per_block of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.required_minimum_stake": - panic(fmt.Errorf("field required_minimum_stake of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.remove_stake_delay_window": - panic(fmt.Errorf("field remove_stake_delay_window of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.min_epoch_length": - panic(fmt.Errorf("field min_epoch_length of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.beta_entropy": - panic(fmt.Errorf("field beta_entropy of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.learning_rate": - panic(fmt.Errorf("field learning_rate of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.max_gradient_threshold": - panic(fmt.Errorf("field max_gradient_threshold of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.min_stake_fraction": - panic(fmt.Errorf("field min_stake_fraction of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.max_unfulfilled_worker_requests": - panic(fmt.Errorf("field max_unfulfilled_worker_requests of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.max_unfulfilled_reputer_requests": - panic(fmt.Errorf("field max_unfulfilled_reputer_requests of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.topic_reward_stake_importance": - panic(fmt.Errorf("field topic_reward_stake_importance of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.topic_reward_fee_revenue_importance": - panic(fmt.Errorf("field topic_reward_fee_revenue_importance of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.topic_reward_alpha": - panic(fmt.Errorf("field topic_reward_alpha of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.task_reward_alpha": - panic(fmt.Errorf("field task_reward_alpha of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.validators_vs_allora_percent_reward": - panic(fmt.Errorf("field validators_vs_allora_percent_reward of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.max_samples_to_scale_scores": - panic(fmt.Errorf("field max_samples_to_scale_scores of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.max_top_inferers_to_reward": - panic(fmt.Errorf("field max_top_inferers_to_reward of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.max_top_forecasters_to_reward": - panic(fmt.Errorf("field max_top_forecasters_to_reward of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.max_top_reputers_to_reward": - panic(fmt.Errorf("field max_top_reputers_to_reward of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.create_topic_fee": - panic(fmt.Errorf("field create_topic_fee of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.gradient_descent_max_iters": - panic(fmt.Errorf("field gradient_descent_max_iters of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.max_retries_to_fulfil_nonces_worker": - panic(fmt.Errorf("field max_retries_to_fulfil_nonces_worker of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.max_retries_to_fulfil_nonces_reputer": - panic(fmt.Errorf("field max_retries_to_fulfil_nonces_reputer of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.registration_fee": - panic(fmt.Errorf("field registration_fee of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.default_page_limit": - panic(fmt.Errorf("field default_page_limit of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.max_page_limit": - panic(fmt.Errorf("field max_page_limit of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.min_epoch_length_record_limit": - panic(fmt.Errorf("field min_epoch_length_record_limit of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.blocks_per_month": - panic(fmt.Errorf("field blocks_per_month of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.p_reward_inference": - panic(fmt.Errorf("field p_reward_inference of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.p_reward_forecast": - panic(fmt.Errorf("field p_reward_forecast of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.p_reward_reputer": - panic(fmt.Errorf("field p_reward_reputer of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.c_reward_inference": - panic(fmt.Errorf("field c_reward_inference of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.c_reward_forecast": - panic(fmt.Errorf("field c_reward_forecast of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.c_norm": - panic(fmt.Errorf("field c_norm of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.topic_fee_revenue_decay_rate": - panic(fmt.Errorf("field topic_fee_revenue_decay_rate of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.epsilon_reputer": - panic(fmt.Errorf("field epsilon_reputer of message emissions.v1.Params is not mutable")) - case "emissions.v1.Params.min_effective_topic_revenue": - panic(fmt.Errorf("field min_effective_topic_revenue of message emissions.v1.Params is not mutable")) + case "emissions.v2.Params.version": + panic(fmt.Errorf("field version of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.max_serialized_msg_length": + panic(fmt.Errorf("field max_serialized_msg_length of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.min_topic_weight": + panic(fmt.Errorf("field min_topic_weight of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.max_topics_per_block": + panic(fmt.Errorf("field max_topics_per_block of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.required_minimum_stake": + panic(fmt.Errorf("field required_minimum_stake of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.remove_stake_delay_window": + panic(fmt.Errorf("field remove_stake_delay_window of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.min_epoch_length": + panic(fmt.Errorf("field min_epoch_length of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.beta_entropy": + panic(fmt.Errorf("field beta_entropy of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.learning_rate": + panic(fmt.Errorf("field learning_rate of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.max_gradient_threshold": + panic(fmt.Errorf("field max_gradient_threshold of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.min_stake_fraction": + panic(fmt.Errorf("field min_stake_fraction of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.max_unfulfilled_worker_requests": + panic(fmt.Errorf("field max_unfulfilled_worker_requests of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.max_unfulfilled_reputer_requests": + panic(fmt.Errorf("field max_unfulfilled_reputer_requests of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.topic_reward_stake_importance": + panic(fmt.Errorf("field topic_reward_stake_importance of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.topic_reward_fee_revenue_importance": + panic(fmt.Errorf("field topic_reward_fee_revenue_importance of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.topic_reward_alpha": + panic(fmt.Errorf("field topic_reward_alpha of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.task_reward_alpha": + panic(fmt.Errorf("field task_reward_alpha of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.validators_vs_allora_percent_reward": + panic(fmt.Errorf("field validators_vs_allora_percent_reward of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.max_samples_to_scale_scores": + panic(fmt.Errorf("field max_samples_to_scale_scores of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.max_top_inferers_to_reward": + panic(fmt.Errorf("field max_top_inferers_to_reward of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.max_top_forecasters_to_reward": + panic(fmt.Errorf("field max_top_forecasters_to_reward of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.max_top_reputers_to_reward": + panic(fmt.Errorf("field max_top_reputers_to_reward of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.create_topic_fee": + panic(fmt.Errorf("field create_topic_fee of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.gradient_descent_max_iters": + panic(fmt.Errorf("field gradient_descent_max_iters of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.max_retries_to_fulfil_nonces_worker": + panic(fmt.Errorf("field max_retries_to_fulfil_nonces_worker of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.max_retries_to_fulfil_nonces_reputer": + panic(fmt.Errorf("field max_retries_to_fulfil_nonces_reputer of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.registration_fee": + panic(fmt.Errorf("field registration_fee of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.default_page_limit": + panic(fmt.Errorf("field default_page_limit of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.max_page_limit": + panic(fmt.Errorf("field max_page_limit of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.min_epoch_length_record_limit": + panic(fmt.Errorf("field min_epoch_length_record_limit of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.blocks_per_month": + panic(fmt.Errorf("field blocks_per_month of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.p_reward_inference": + panic(fmt.Errorf("field p_reward_inference of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.p_reward_forecast": + panic(fmt.Errorf("field p_reward_forecast of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.p_reward_reputer": + panic(fmt.Errorf("field p_reward_reputer of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.c_reward_inference": + panic(fmt.Errorf("field c_reward_inference of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.c_reward_forecast": + panic(fmt.Errorf("field c_reward_forecast of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.c_norm": + panic(fmt.Errorf("field c_norm of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.topic_fee_revenue_decay_rate": + panic(fmt.Errorf("field topic_fee_revenue_decay_rate of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.epsilon_reputer": + panic(fmt.Errorf("field epsilon_reputer of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.min_effective_topic_revenue": + panic(fmt.Errorf("field min_effective_topic_revenue of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.half_max_process_stake_removals_end_block": + panic(fmt.Errorf("field half_max_process_stake_removals_end_block of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.epsilon_safe_div": + panic(fmt.Errorf("field epsilon_safe_div of message emissions.v2.Params is not mutable")) + case "emissions.v2.Params.data_sending_fee": + panic(fmt.Errorf("field data_sending_fee of message emissions.v2.Params is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Params")) } - panic(fmt.Errorf("message emissions.v1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Params does not contain field %s", fd.FullName())) } } @@ -949,91 +1006,97 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Params.version": + case "emissions.v2.Params.version": return protoreflect.ValueOfString("") - case "emissions.v1.Params.max_serialized_msg_length": + case "emissions.v2.Params.max_serialized_msg_length": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.Params.min_topic_weight": + case "emissions.v2.Params.min_topic_weight": return protoreflect.ValueOfString("") - case "emissions.v1.Params.max_topics_per_block": + case "emissions.v2.Params.max_topics_per_block": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Params.required_minimum_stake": + case "emissions.v2.Params.required_minimum_stake": return protoreflect.ValueOfString("") - case "emissions.v1.Params.remove_stake_delay_window": + case "emissions.v2.Params.remove_stake_delay_window": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.Params.min_epoch_length": + case "emissions.v2.Params.min_epoch_length": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.Params.beta_entropy": + case "emissions.v2.Params.beta_entropy": return protoreflect.ValueOfString("") - case "emissions.v1.Params.learning_rate": + case "emissions.v2.Params.learning_rate": return protoreflect.ValueOfString("") - case "emissions.v1.Params.max_gradient_threshold": + case "emissions.v2.Params.max_gradient_threshold": return protoreflect.ValueOfString("") - case "emissions.v1.Params.min_stake_fraction": + case "emissions.v2.Params.min_stake_fraction": return protoreflect.ValueOfString("") - case "emissions.v1.Params.max_unfulfilled_worker_requests": + case "emissions.v2.Params.max_unfulfilled_worker_requests": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Params.max_unfulfilled_reputer_requests": + case "emissions.v2.Params.max_unfulfilled_reputer_requests": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Params.topic_reward_stake_importance": + case "emissions.v2.Params.topic_reward_stake_importance": return protoreflect.ValueOfString("") - case "emissions.v1.Params.topic_reward_fee_revenue_importance": + case "emissions.v2.Params.topic_reward_fee_revenue_importance": return protoreflect.ValueOfString("") - case "emissions.v1.Params.topic_reward_alpha": + case "emissions.v2.Params.topic_reward_alpha": return protoreflect.ValueOfString("") - case "emissions.v1.Params.task_reward_alpha": + case "emissions.v2.Params.task_reward_alpha": return protoreflect.ValueOfString("") - case "emissions.v1.Params.validators_vs_allora_percent_reward": + case "emissions.v2.Params.validators_vs_allora_percent_reward": return protoreflect.ValueOfString("") - case "emissions.v1.Params.max_samples_to_scale_scores": + case "emissions.v2.Params.max_samples_to_scale_scores": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Params.max_top_inferers_to_reward": + case "emissions.v2.Params.max_top_inferers_to_reward": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Params.max_top_forecasters_to_reward": + case "emissions.v2.Params.max_top_forecasters_to_reward": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Params.max_top_reputers_to_reward": + case "emissions.v2.Params.max_top_reputers_to_reward": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Params.create_topic_fee": + case "emissions.v2.Params.create_topic_fee": return protoreflect.ValueOfString("") - case "emissions.v1.Params.gradient_descent_max_iters": + case "emissions.v2.Params.gradient_descent_max_iters": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Params.max_retries_to_fulfil_nonces_worker": + case "emissions.v2.Params.max_retries_to_fulfil_nonces_worker": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.Params.max_retries_to_fulfil_nonces_reputer": + case "emissions.v2.Params.max_retries_to_fulfil_nonces_reputer": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.Params.registration_fee": + case "emissions.v2.Params.registration_fee": return protoreflect.ValueOfString("") - case "emissions.v1.Params.default_page_limit": + case "emissions.v2.Params.default_page_limit": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Params.max_page_limit": + case "emissions.v2.Params.max_page_limit": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Params.min_epoch_length_record_limit": + case "emissions.v2.Params.min_epoch_length_record_limit": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.Params.blocks_per_month": + case "emissions.v2.Params.blocks_per_month": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Params.p_reward_inference": + case "emissions.v2.Params.p_reward_inference": return protoreflect.ValueOfString("") - case "emissions.v1.Params.p_reward_forecast": + case "emissions.v2.Params.p_reward_forecast": return protoreflect.ValueOfString("") - case "emissions.v1.Params.p_reward_reputer": + case "emissions.v2.Params.p_reward_reputer": return protoreflect.ValueOfString("") - case "emissions.v1.Params.c_reward_inference": + case "emissions.v2.Params.c_reward_inference": return protoreflect.ValueOfString("") - case "emissions.v1.Params.c_reward_forecast": + case "emissions.v2.Params.c_reward_forecast": return protoreflect.ValueOfString("") - case "emissions.v1.Params.c_norm": + case "emissions.v2.Params.c_norm": return protoreflect.ValueOfString("") - case "emissions.v1.Params.topic_fee_revenue_decay_rate": + case "emissions.v2.Params.topic_fee_revenue_decay_rate": return protoreflect.ValueOfString("") - case "emissions.v1.Params.epsilon_reputer": + case "emissions.v2.Params.epsilon_reputer": return protoreflect.ValueOfString("") - case "emissions.v1.Params.min_effective_topic_revenue": + case "emissions.v2.Params.min_effective_topic_revenue": + return protoreflect.ValueOfString("") + case "emissions.v2.Params.half_max_process_stake_removals_end_block": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.Params.epsilon_safe_div": + return protoreflect.ValueOfString("") + case "emissions.v2.Params.data_sending_fee": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Params")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Params")) } - panic(fmt.Errorf("message emissions.v1.Params does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Params does not contain field %s", fd.FullName())) } } @@ -1043,7 +1106,7 @@ func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protor func (x *fastReflection_Params) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.Params", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.Params", d.FullName())) } panic("unreachable") } @@ -1241,6 +1304,17 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { if l > 0 { n += 2 + l + runtime.Sov(uint64(l)) } + if x.HalfMaxProcessStakeRemovalsEndBlock != 0 { + n += 2 + runtime.Sov(uint64(x.HalfMaxProcessStakeRemovalsEndBlock)) + } + l = len(x.EpsilonSafeDiv) + if l > 0 { + n += 2 + l + runtime.Sov(uint64(l)) + } + l = len(x.DataSendingFee) + if l > 0 { + n += 2 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1270,6 +1344,31 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.DataSendingFee) > 0 { + i -= len(x.DataSendingFee) + copy(dAtA[i:], x.DataSendingFee) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DataSendingFee))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xe2 + } + if len(x.EpsilonSafeDiv) > 0 { + i -= len(x.EpsilonSafeDiv) + copy(dAtA[i:], x.EpsilonSafeDiv) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.EpsilonSafeDiv))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xda + } + if x.HalfMaxProcessStakeRemovalsEndBlock != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.HalfMaxProcessStakeRemovalsEndBlock)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xd0 + } if len(x.MinEffectiveTopicRevenue) > 0 { i -= len(x.MinEffectiveTopicRevenue) copy(dAtA[i:], x.MinEffectiveTopicRevenue) @@ -2676,6 +2775,89 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } x.MinEffectiveTopicRevenue = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 42: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HalfMaxProcessStakeRemovalsEndBlock", wireType) + } + x.HalfMaxProcessStakeRemovalsEndBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.HalfMaxProcessStakeRemovalsEndBlock |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 43: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EpsilonSafeDiv", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.EpsilonSafeDiv = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 44: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DataSendingFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.DataSendingFee = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2715,7 +2897,7 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: emissions/v1/params.proto +// source: emissions/v2/params.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -2783,12 +2965,18 @@ type Params struct { EpsilonReputer string `protobuf:"bytes,40,opt,name=epsilon_reputer,json=epsilonReputer,proto3" json:"epsilon_reputer,omitempty"` // a small tolerance quantity used to cap reputer scores at infinitesimally // close proximities MinEffectiveTopicRevenue string `protobuf:"bytes,41,opt,name=min_effective_topic_revenue,json=minEffectiveTopicRevenue,proto3" json:"min_effective_topic_revenue,omitempty"` // we no stop dripping from the topic's effective revenue when the topic's + // effective revenue is below this + HalfMaxProcessStakeRemovalsEndBlock uint64 `protobuf:"varint,42,opt,name=half_max_process_stake_removals_end_block,json=halfMaxProcessStakeRemovalsEndBlock,proto3" json:"half_max_process_stake_removals_end_block,omitempty"` // max amount of stake removals to process in an ABCI end block. Applied twice once for stakeRemovals and + // once for DelegateStakeRemovals, so actual max is this number times two + EpsilonSafeDiv string `protobuf:"bytes,43,opt,name=epsilon_safe_div,json=epsilonSafeDiv,proto3" json:"epsilon_safe_div,omitempty"` + // / a small tolerance quantity used to cap division by zero + DataSendingFee string `protobuf:"bytes,44,opt,name=data_sending_fee,json=dataSendingFee,proto3" json:"data_sending_fee,omitempty"` // payload sending fee for reputer or worker } func (x *Params) Reset() { *x = Params{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_params_proto_msgTypes[0] + mi := &file_emissions_v2_params_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2802,7 +2990,7 @@ func (*Params) ProtoMessage() {} // Deprecated: Use Params.ProtoReflect.Descriptor instead. func (*Params) Descriptor() ([]byte, []int) { - return file_emissions_v1_params_proto_rawDescGZIP(), []int{0} + return file_emissions_v2_params_proto_rawDescGZIP(), []int{0} } func (x *Params) GetVersion() string { @@ -3085,16 +3273,37 @@ func (x *Params) GetMinEffectiveTopicRevenue() string { return "" } -var File_emissions_v1_params_proto protoreflect.FileDescriptor +func (x *Params) GetHalfMaxProcessStakeRemovalsEndBlock() uint64 { + if x != nil { + return x.HalfMaxProcessStakeRemovalsEndBlock + } + return 0 +} + +func (x *Params) GetEpsilonSafeDiv() string { + if x != nil { + return x.EpsilonSafeDiv + } + return "" +} -var file_emissions_v1_params_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, +func (x *Params) GetDataSendingFee() string { + if x != nil { + return x.DataSendingFee + } + return "" +} + +var File_emissions_v2_params_proto protoreflect.FileDescriptor + +var file_emissions_v2_params_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9e, 0x1a, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb5, 0x1c, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x19, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, @@ -3304,39 +3513,57 @@ var file_emissions_v1_params_proto_rawDesc = []byte{ 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x18, 0x6d, 0x69, 0x6e, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x42, 0xc1, - 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, - 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, - 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x76, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x12, 0x56, + 0x0a, 0x29, 0x68, 0x61, 0x6c, 0x66, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x70, 0x72, 0x6f, 0x63, 0x65, + 0x73, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, + 0x73, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x2a, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x23, 0x68, 0x61, 0x6c, 0x66, 0x4d, 0x61, 0x78, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, + 0x73, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x45, 0x6e, + 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x61, 0x0a, 0x10, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, + 0x6e, 0x5f, 0x73, 0x61, 0x66, 0x65, 0x5f, 0x64, 0x69, 0x76, 0x18, 0x2b, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0e, 0x65, 0x70, 0x73, 0x69, 0x6c, + 0x6f, 0x6e, 0x53, 0x61, 0x66, 0x65, 0x44, 0x69, 0x76, 0x12, 0x5a, 0x0a, 0x10, 0x64, 0x61, 0x74, + 0x61, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x65, 0x65, 0x18, 0x2c, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, + 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, + 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x53, 0x65, 0x6e, 0x64, 0x69, + 0x6e, 0x67, 0x46, 0x65, 0x65, 0x42, 0xc1, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0b, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, + 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, + 0x69, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, + 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x32, 0xca, + 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, + 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( - file_emissions_v1_params_proto_rawDescOnce sync.Once - file_emissions_v1_params_proto_rawDescData = file_emissions_v1_params_proto_rawDesc + file_emissions_v2_params_proto_rawDescOnce sync.Once + file_emissions_v2_params_proto_rawDescData = file_emissions_v2_params_proto_rawDesc ) -func file_emissions_v1_params_proto_rawDescGZIP() []byte { - file_emissions_v1_params_proto_rawDescOnce.Do(func() { - file_emissions_v1_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v1_params_proto_rawDescData) +func file_emissions_v2_params_proto_rawDescGZIP() []byte { + file_emissions_v2_params_proto_rawDescOnce.Do(func() { + file_emissions_v2_params_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_params_proto_rawDescData) }) - return file_emissions_v1_params_proto_rawDescData + return file_emissions_v2_params_proto_rawDescData } -var file_emissions_v1_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_emissions_v1_params_proto_goTypes = []interface{}{ - (*Params)(nil), // 0: emissions.v1.Params +var file_emissions_v2_params_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_emissions_v2_params_proto_goTypes = []interface{}{ + (*Params)(nil), // 0: emissions.v2.Params } -var file_emissions_v1_params_proto_depIdxs = []int32{ +var file_emissions_v2_params_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -3344,13 +3571,13 @@ var file_emissions_v1_params_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_emissions_v1_params_proto_init() } -func file_emissions_v1_params_proto_init() { - if File_emissions_v1_params_proto != nil { +func init() { file_emissions_v2_params_proto_init() } +func file_emissions_v2_params_proto_init() { + if File_emissions_v2_params_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_emissions_v1_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_params_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Params); i { case 0: return &v.state @@ -3367,18 +3594,18 @@ func file_emissions_v1_params_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_emissions_v1_params_proto_rawDesc, + RawDescriptor: file_emissions_v2_params_proto_rawDesc, NumEnums: 0, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_emissions_v1_params_proto_goTypes, - DependencyIndexes: file_emissions_v1_params_proto_depIdxs, - MessageInfos: file_emissions_v1_params_proto_msgTypes, + GoTypes: file_emissions_v2_params_proto_goTypes, + DependencyIndexes: file_emissions_v2_params_proto_depIdxs, + MessageInfos: file_emissions_v2_params_proto_msgTypes, }.Build() - File_emissions_v1_params_proto = out.File - file_emissions_v1_params_proto_rawDesc = nil - file_emissions_v1_params_proto_goTypes = nil - file_emissions_v1_params_proto_depIdxs = nil + File_emissions_v2_params_proto = out.File + file_emissions_v2_params_proto_rawDesc = nil + file_emissions_v2_params_proto_goTypes = nil + file_emissions_v2_params_proto_depIdxs = nil } diff --git a/x/emissions/api/v1/query.pulsar.go b/x/emissions/api/v2/query.pulsar.go similarity index 83% rename from x/emissions/api/v1/query.pulsar.go rename to x/emissions/api/v2/query.pulsar.go index b24527943..244daf275 100644 --- a/x/emissions/api/v1/query.pulsar.go +++ b/x/emissions/api/v2/query.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package emissionsv1 +package emissionsv2 import ( _ "cosmossdk.io/api/cosmos/base/query/v1beta1" @@ -19,24 +19,28 @@ import ( ) var ( - md_QueryParamsRequest protoreflect.MessageDescriptor + md_QueryNaiveInfererNetworkRegretRequest protoreflect.MessageDescriptor + fd_QueryNaiveInfererNetworkRegretRequest_topic_id protoreflect.FieldDescriptor + fd_QueryNaiveInfererNetworkRegretRequest_inferer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryParamsRequest = File_emissions_v1_query_proto.Messages().ByName("QueryParamsRequest") + file_emissions_v2_query_proto_init() + md_QueryNaiveInfererNetworkRegretRequest = File_emissions_v2_query_proto.Messages().ByName("QueryNaiveInfererNetworkRegretRequest") + fd_QueryNaiveInfererNetworkRegretRequest_topic_id = md_QueryNaiveInfererNetworkRegretRequest.Fields().ByName("topic_id") + fd_QueryNaiveInfererNetworkRegretRequest_inferer = md_QueryNaiveInfererNetworkRegretRequest.Fields().ByName("inferer") } -var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNaiveInfererNetworkRegretRequest)(nil) -type fastReflection_QueryParamsRequest QueryParamsRequest +type fastReflection_QueryNaiveInfererNetworkRegretRequest QueryNaiveInfererNetworkRegretRequest -func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(x) +func (x *QueryNaiveInfererNetworkRegretRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNaiveInfererNetworkRegretRequest)(x) } -func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[0] +func (x *QueryNaiveInfererNetworkRegretRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -47,43 +51,43 @@ func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} +var _fastReflection_QueryNaiveInfererNetworkRegretRequest_messageType fastReflection_QueryNaiveInfererNetworkRegretRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryNaiveInfererNetworkRegretRequest_messageType{} -type fastReflection_QueryParamsRequest_messageType struct{} +type fastReflection_QueryNaiveInfererNetworkRegretRequest_messageType struct{} -func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsRequest)(nil) +func (x fastReflection_QueryNaiveInfererNetworkRegretRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNaiveInfererNetworkRegretRequest)(nil) } -func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) +func (x fastReflection_QueryNaiveInfererNetworkRegretRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNaiveInfererNetworkRegretRequest) } -func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest +func (x fastReflection_QueryNaiveInfererNetworkRegretRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNaiveInfererNetworkRegretRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsRequest +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNaiveInfererNetworkRegretRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryParamsRequest_messageType +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryNaiveInfererNetworkRegretRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { - return new(fastReflection_QueryParamsRequest) +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) New() protoreflect.Message { + return new(fastReflection_QueryNaiveInfererNetworkRegretRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryParamsRequest)(x) +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) Interface() protoreflect.ProtoMessage { + return (*QueryNaiveInfererNetworkRegretRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -91,7 +95,19 @@ func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryNaiveInfererNetworkRegretRequest_topic_id, value) { + return + } + } + if x.Inferer != "" { + value := protoreflect.ValueOfString(x.Inferer) + if !f(fd_QueryNaiveInfererNetworkRegretRequest_inferer, value) { + return + } + } } // Has reports whether a field is populated. @@ -105,13 +121,17 @@ func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "emissions.v2.QueryNaiveInfererNetworkRegretRequest.topic_id": + return x.TopicId != uint64(0) + case "emissions.v2.QueryNaiveInfererNetworkRegretRequest.inferer": + return x.Inferer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNaiveInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNaiveInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -121,13 +141,17 @@ func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "emissions.v2.QueryNaiveInfererNetworkRegretRequest.topic_id": + x.TopicId = uint64(0) + case "emissions.v2.QueryNaiveInfererNetworkRegretRequest.inferer": + x.Inferer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNaiveInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNaiveInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -137,13 +161,19 @@ func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "emissions.v2.QueryNaiveInfererNetworkRegretRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryNaiveInfererNetworkRegretRequest.inferer": + value := x.Inferer + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNaiveInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryParamsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNaiveInfererNetworkRegretRequest does not contain field %s", descriptor.FullName())) } } @@ -157,13 +187,17 @@ func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "emissions.v2.QueryNaiveInfererNetworkRegretRequest.topic_id": + x.TopicId = value.Uint() + case "emissions.v2.QueryNaiveInfererNetworkRegretRequest.inferer": + x.Inferer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNaiveInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNaiveInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -177,36 +211,44 @@ func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryNaiveInfererNetworkRegretRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryNaiveInfererNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryNaiveInfererNetworkRegretRequest.inferer": + panic(fmt.Errorf("field inferer of message emissions.v2.QueryNaiveInfererNetworkRegretRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNaiveInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNaiveInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryNaiveInfererNetworkRegretRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryNaiveInfererNetworkRegretRequest.inferer": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryParamsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNaiveInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryParamsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNaiveInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryParamsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryNaiveInfererNetworkRegretRequest", d.FullName())) } panic("unreachable") } @@ -214,7 +256,7 @@ func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -225,7 +267,7 @@ func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -237,7 +279,7 @@ func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryParamsRequest) IsValid() bool { +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) IsValid() bool { return x != nil } @@ -247,9 +289,9 @@ func (x *fastReflection_QueryParamsRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNaiveInfererNetworkRegretRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsRequest) + x := input.Message.Interface().(*QueryNaiveInfererNetworkRegretRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -261,6 +303,13 @@ func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.Inferer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -271,7 +320,7 @@ func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsRequest) + x := input.Message.Interface().(*QueryNaiveInfererNetworkRegretRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -290,6 +339,18 @@ func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Inferer) > 0 { + i -= len(x.Inferer) + copy(dAtA[i:], x.Inferer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Inferer))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -301,7 +362,7 @@ func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsRequest) + x := input.Message.Interface().(*QueryNaiveInfererNetworkRegretRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -333,12 +394,63 @@ func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNaiveInfererNetworkRegretRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNaiveInfererNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Inferer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -375,26 +487,26 @@ func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { } var ( - md_QueryParamsResponse protoreflect.MessageDescriptor - fd_QueryParamsResponse_params protoreflect.FieldDescriptor + md_QueryNaiveInfererNetworkRegretResponse protoreflect.MessageDescriptor + fd_QueryNaiveInfererNetworkRegretResponse_regret protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryParamsResponse = File_emissions_v1_query_proto.Messages().ByName("QueryParamsResponse") - fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") + file_emissions_v2_query_proto_init() + md_QueryNaiveInfererNetworkRegretResponse = File_emissions_v2_query_proto.Messages().ByName("QueryNaiveInfererNetworkRegretResponse") + fd_QueryNaiveInfererNetworkRegretResponse_regret = md_QueryNaiveInfererNetworkRegretResponse.Fields().ByName("regret") } -var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNaiveInfererNetworkRegretResponse)(nil) -type fastReflection_QueryParamsResponse QueryParamsResponse +type fastReflection_QueryNaiveInfererNetworkRegretResponse QueryNaiveInfererNetworkRegretResponse -func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(x) +func (x *QueryNaiveInfererNetworkRegretResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNaiveInfererNetworkRegretResponse)(x) } -func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[1] +func (x *QueryNaiveInfererNetworkRegretResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -405,43 +517,43 @@ func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} +var _fastReflection_QueryNaiveInfererNetworkRegretResponse_messageType fastReflection_QueryNaiveInfererNetworkRegretResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryNaiveInfererNetworkRegretResponse_messageType{} -type fastReflection_QueryParamsResponse_messageType struct{} +type fastReflection_QueryNaiveInfererNetworkRegretResponse_messageType struct{} -func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryParamsResponse)(nil) +func (x fastReflection_QueryNaiveInfererNetworkRegretResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNaiveInfererNetworkRegretResponse)(nil) } -func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) +func (x fastReflection_QueryNaiveInfererNetworkRegretResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNaiveInfererNetworkRegretResponse) } -func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse +func (x fastReflection_QueryNaiveInfererNetworkRegretResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNaiveInfererNetworkRegretResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryParamsResponse +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNaiveInfererNetworkRegretResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryParamsResponse_messageType +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryNaiveInfererNetworkRegretResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { - return new(fastReflection_QueryParamsResponse) +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) New() protoreflect.Message { + return new(fastReflection_QueryNaiveInfererNetworkRegretResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryParamsResponse)(x) +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) Interface() protoreflect.ProtoMessage { + return (*QueryNaiveInfererNetworkRegretResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -449,10 +561,10 @@ func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessa // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Params != nil { - value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - if !f(fd_QueryParamsResponse_params, value) { +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Regret != nil { + value := protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) + if !f(fd_QueryNaiveInfererNetworkRegretResponse_regret, value) { return } } @@ -469,15 +581,15 @@ func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDesc // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryParamsResponse.params": - return x.Params != nil + case "emissions.v2.QueryNaiveInfererNetworkRegretResponse.regret": + return x.Regret != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNaiveInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNaiveInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -487,15 +599,15 @@ func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryParamsResponse.params": - x.Params = nil + case "emissions.v2.QueryNaiveInfererNetworkRegretResponse.regret": + x.Regret = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNaiveInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNaiveInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -505,16 +617,16 @@ func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescript // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryParamsResponse.params": - value := x.Params + case "emissions.v2.QueryNaiveInfererNetworkRegretResponse.regret": + value := x.Regret return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNaiveInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryParamsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNaiveInfererNetworkRegretResponse does not contain field %s", descriptor.FullName())) } } @@ -528,15 +640,15 @@ func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDe // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryParamsResponse.params": - x.Params = value.Message().Interface().(*Params) + case "emissions.v2.QueryNaiveInfererNetworkRegretResponse.regret": + x.Regret = value.Message().Interface().(*TimestampedValue) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNaiveInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNaiveInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -550,44 +662,44 @@ func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryParamsResponse.params": - if x.Params == nil { - x.Params = new(Params) + case "emissions.v2.QueryNaiveInfererNetworkRegretResponse.regret": + if x.Regret == nil { + x.Regret = new(TimestampedValue) } - return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNaiveInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNaiveInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryParamsResponse.params": - m := new(Params) + case "emissions.v2.QueryNaiveInfererNetworkRegretResponse.regret": + m := new(TimestampedValue) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNaiveInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNaiveInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryParamsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryNaiveInfererNetworkRegretResponse", d.FullName())) } panic("unreachable") } @@ -595,7 +707,7 @@ func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDesc // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -606,7 +718,7 @@ func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -618,7 +730,7 @@ func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawF // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryParamsResponse) IsValid() bool { +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) IsValid() bool { return x != nil } @@ -628,9 +740,9 @@ func (x *fastReflection_QueryParamsResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNaiveInfererNetworkRegretResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryParamsResponse) + x := input.Message.Interface().(*QueryNaiveInfererNetworkRegretResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -642,8 +754,8 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods var n int var l int _ = l - if x.Params != nil { - l = options.Size(x.Params) + if x.Regret != nil { + l = options.Size(x.Regret) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -656,7 +768,7 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsResponse) + x := input.Message.Interface().(*QueryNaiveInfererNetworkRegretResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -675,8 +787,8 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Params != nil { - encoded, err := options.Marshal(x.Params) + if x.Regret != nil { + encoded, err := options.Marshal(x.Regret) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -700,7 +812,7 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryParamsResponse) + x := input.Message.Interface().(*QueryNaiveInfererNetworkRegretResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -732,15 +844,15 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNaiveInfererNetworkRegretResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNaiveInfererNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -767,10 +879,10 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Params == nil { - x.Params = &Params{} + if x.Regret == nil { + x.Regret = &TimestampedValue{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Regret); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -810,24 +922,30 @@ func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods } var ( - md_QueryTotalStakeRequest protoreflect.MessageDescriptor + md_QueryOneOutInfererInfererNetworkRegretRequest protoreflect.MessageDescriptor + fd_QueryOneOutInfererInfererNetworkRegretRequest_topic_id protoreflect.FieldDescriptor + fd_QueryOneOutInfererInfererNetworkRegretRequest_one_out_inferer protoreflect.FieldDescriptor + fd_QueryOneOutInfererInfererNetworkRegretRequest_inferer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTotalStakeRequest = File_emissions_v1_query_proto.Messages().ByName("QueryTotalStakeRequest") + file_emissions_v2_query_proto_init() + md_QueryOneOutInfererInfererNetworkRegretRequest = File_emissions_v2_query_proto.Messages().ByName("QueryOneOutInfererInfererNetworkRegretRequest") + fd_QueryOneOutInfererInfererNetworkRegretRequest_topic_id = md_QueryOneOutInfererInfererNetworkRegretRequest.Fields().ByName("topic_id") + fd_QueryOneOutInfererInfererNetworkRegretRequest_one_out_inferer = md_QueryOneOutInfererInfererNetworkRegretRequest.Fields().ByName("one_out_inferer") + fd_QueryOneOutInfererInfererNetworkRegretRequest_inferer = md_QueryOneOutInfererInfererNetworkRegretRequest.Fields().ByName("inferer") } -var _ protoreflect.Message = (*fastReflection_QueryTotalStakeRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryOneOutInfererInfererNetworkRegretRequest)(nil) -type fastReflection_QueryTotalStakeRequest QueryTotalStakeRequest +type fastReflection_QueryOneOutInfererInfererNetworkRegretRequest QueryOneOutInfererInfererNetworkRegretRequest -func (x *QueryTotalStakeRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTotalStakeRequest)(x) +func (x *QueryOneOutInfererInfererNetworkRegretRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryOneOutInfererInfererNetworkRegretRequest)(x) } -func (x *QueryTotalStakeRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[2] +func (x *QueryOneOutInfererInfererNetworkRegretRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -838,43 +956,43 @@ func (x *QueryTotalStakeRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTotalStakeRequest_messageType fastReflection_QueryTotalStakeRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTotalStakeRequest_messageType{} +var _fastReflection_QueryOneOutInfererInfererNetworkRegretRequest_messageType fastReflection_QueryOneOutInfererInfererNetworkRegretRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryOneOutInfererInfererNetworkRegretRequest_messageType{} -type fastReflection_QueryTotalStakeRequest_messageType struct{} +type fastReflection_QueryOneOutInfererInfererNetworkRegretRequest_messageType struct{} -func (x fastReflection_QueryTotalStakeRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTotalStakeRequest)(nil) +func (x fastReflection_QueryOneOutInfererInfererNetworkRegretRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryOneOutInfererInfererNetworkRegretRequest)(nil) } -func (x fastReflection_QueryTotalStakeRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTotalStakeRequest) +func (x fastReflection_QueryOneOutInfererInfererNetworkRegretRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) } -func (x fastReflection_QueryTotalStakeRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTotalStakeRequest +func (x fastReflection_QueryOneOutInfererInfererNetworkRegretRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutInfererInfererNetworkRegretRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTotalStakeRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTotalStakeRequest +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutInfererInfererNetworkRegretRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTotalStakeRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTotalStakeRequest_messageType +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryOneOutInfererInfererNetworkRegretRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTotalStakeRequest) New() protoreflect.Message { - return new(fastReflection_QueryTotalStakeRequest) +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) New() protoreflect.Message { + return new(fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTotalStakeRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTotalStakeRequest)(x) +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) Interface() protoreflect.ProtoMessage { + return (*QueryOneOutInfererInfererNetworkRegretRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -882,7 +1000,25 @@ func (x *fastReflection_QueryTotalStakeRequest) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTotalStakeRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryOneOutInfererInfererNetworkRegretRequest_topic_id, value) { + return + } + } + if x.OneOutInferer != "" { + value := protoreflect.ValueOfString(x.OneOutInferer) + if !f(fd_QueryOneOutInfererInfererNetworkRegretRequest_one_out_inferer, value) { + return + } + } + if x.Inferer != "" { + value := protoreflect.ValueOfString(x.Inferer) + if !f(fd_QueryOneOutInfererInfererNetworkRegretRequest_inferer, value) { + return + } + } } // Has reports whether a field is populated. @@ -896,13 +1032,19 @@ func (x *fastReflection_QueryTotalStakeRequest) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTotalStakeRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.topic_id": + return x.TopicId != uint64(0) + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.one_out_inferer": + return x.OneOutInferer != "" + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.inferer": + return x.Inferer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalStakeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalStakeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -912,13 +1054,19 @@ func (x *fastReflection_QueryTotalStakeRequest) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalStakeRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.topic_id": + x.TopicId = uint64(0) + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.one_out_inferer": + x.OneOutInferer = "" + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.inferer": + x.Inferer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalStakeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalStakeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -928,13 +1076,22 @@ func (x *fastReflection_QueryTotalStakeRequest) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTotalStakeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.one_out_inferer": + value := x.OneOutInferer + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.inferer": + value := x.Inferer + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalStakeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalStakeRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest does not contain field %s", descriptor.FullName())) } } @@ -948,13 +1105,19 @@ func (x *fastReflection_QueryTotalStakeRequest) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalStakeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.topic_id": + x.TopicId = value.Uint() + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.one_out_inferer": + x.OneOutInferer = value.Interface().(string) + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.inferer": + x.Inferer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalStakeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalStakeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -968,36 +1131,48 @@ func (x *fastReflection_QueryTotalStakeRequest) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalStakeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.one_out_inferer": + panic(fmt.Errorf("field one_out_inferer of message emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.inferer": + panic(fmt.Errorf("field inferer of message emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalStakeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalStakeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTotalStakeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.one_out_inferer": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest.inferer": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalStakeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalStakeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTotalStakeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTotalStakeRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest", d.FullName())) } panic("unreachable") } @@ -1005,7 +1180,7 @@ func (x *fastReflection_QueryTotalStakeRequest) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTotalStakeRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1016,7 +1191,7 @@ func (x *fastReflection_QueryTotalStakeRequest) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalStakeRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1028,7 +1203,7 @@ func (x *fastReflection_QueryTotalStakeRequest) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTotalStakeRequest) IsValid() bool { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) IsValid() bool { return x != nil } @@ -1038,9 +1213,9 @@ func (x *fastReflection_QueryTotalStakeRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTotalStakeRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTotalStakeRequest) + x := input.Message.Interface().(*QueryOneOutInfererInfererNetworkRegretRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1052,6 +1227,17 @@ func (x *fastReflection_QueryTotalStakeRequest) ProtoMethods() *protoiface.Metho var n int var l int _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.OneOutInferer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Inferer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -1062,7 +1248,7 @@ func (x *fastReflection_QueryTotalStakeRequest) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTotalStakeRequest) + x := input.Message.Interface().(*QueryOneOutInfererInfererNetworkRegretRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1081,6 +1267,25 @@ func (x *fastReflection_QueryTotalStakeRequest) ProtoMethods() *protoiface.Metho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Inferer) > 0 { + i -= len(x.Inferer) + copy(dAtA[i:], x.Inferer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Inferer))) + i-- + dAtA[i] = 0x1a + } + if len(x.OneOutInferer) > 0 { + i -= len(x.OneOutInferer) + copy(dAtA[i:], x.OneOutInferer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OneOutInferer))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -1092,7 +1297,7 @@ func (x *fastReflection_QueryTotalStakeRequest) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTotalStakeRequest) + x := input.Message.Interface().(*QueryOneOutInfererInfererNetworkRegretRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1124,12 +1329,95 @@ func (x *fastReflection_QueryTotalStakeRequest) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalStakeRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutInfererInfererNetworkRegretRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutInfererInfererNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OneOutInferer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.OneOutInferer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Inferer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1166,26 +1454,26 @@ func (x *fastReflection_QueryTotalStakeRequest) ProtoMethods() *protoiface.Metho } var ( - md_QueryTotalStakeResponse protoreflect.MessageDescriptor - fd_QueryTotalStakeResponse_amount protoreflect.FieldDescriptor + md_QueryOneOutInfererInfererNetworkRegretResponse protoreflect.MessageDescriptor + fd_QueryOneOutInfererInfererNetworkRegretResponse_regret protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTotalStakeResponse = File_emissions_v1_query_proto.Messages().ByName("QueryTotalStakeResponse") - fd_QueryTotalStakeResponse_amount = md_QueryTotalStakeResponse.Fields().ByName("amount") + file_emissions_v2_query_proto_init() + md_QueryOneOutInfererInfererNetworkRegretResponse = File_emissions_v2_query_proto.Messages().ByName("QueryOneOutInfererInfererNetworkRegretResponse") + fd_QueryOneOutInfererInfererNetworkRegretResponse_regret = md_QueryOneOutInfererInfererNetworkRegretResponse.Fields().ByName("regret") } -var _ protoreflect.Message = (*fastReflection_QueryTotalStakeResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryOneOutInfererInfererNetworkRegretResponse)(nil) -type fastReflection_QueryTotalStakeResponse QueryTotalStakeResponse +type fastReflection_QueryOneOutInfererInfererNetworkRegretResponse QueryOneOutInfererInfererNetworkRegretResponse -func (x *QueryTotalStakeResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTotalStakeResponse)(x) +func (x *QueryOneOutInfererInfererNetworkRegretResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryOneOutInfererInfererNetworkRegretResponse)(x) } -func (x *QueryTotalStakeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[3] +func (x *QueryOneOutInfererInfererNetworkRegretResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1196,43 +1484,43 @@ func (x *QueryTotalStakeResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTotalStakeResponse_messageType fastReflection_QueryTotalStakeResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTotalStakeResponse_messageType{} +var _fastReflection_QueryOneOutInfererInfererNetworkRegretResponse_messageType fastReflection_QueryOneOutInfererInfererNetworkRegretResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryOneOutInfererInfererNetworkRegretResponse_messageType{} -type fastReflection_QueryTotalStakeResponse_messageType struct{} +type fastReflection_QueryOneOutInfererInfererNetworkRegretResponse_messageType struct{} -func (x fastReflection_QueryTotalStakeResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTotalStakeResponse)(nil) +func (x fastReflection_QueryOneOutInfererInfererNetworkRegretResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryOneOutInfererInfererNetworkRegretResponse)(nil) } -func (x fastReflection_QueryTotalStakeResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTotalStakeResponse) +func (x fastReflection_QueryOneOutInfererInfererNetworkRegretResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) } -func (x fastReflection_QueryTotalStakeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTotalStakeResponse +func (x fastReflection_QueryOneOutInfererInfererNetworkRegretResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutInfererInfererNetworkRegretResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTotalStakeResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTotalStakeResponse +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutInfererInfererNetworkRegretResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTotalStakeResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTotalStakeResponse_messageType +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryOneOutInfererInfererNetworkRegretResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTotalStakeResponse) New() protoreflect.Message { - return new(fastReflection_QueryTotalStakeResponse) +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) New() protoreflect.Message { + return new(fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTotalStakeResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTotalStakeResponse)(x) +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) Interface() protoreflect.ProtoMessage { + return (*QueryOneOutInfererInfererNetworkRegretResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -1240,10 +1528,10 @@ func (x *fastReflection_QueryTotalStakeResponse) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTotalStakeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Amount != "" { - value := protoreflect.ValueOfString(x.Amount) - if !f(fd_QueryTotalStakeResponse_amount, value) { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Regret != nil { + value := protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) + if !f(fd_QueryOneOutInfererInfererNetworkRegretResponse_regret, value) { return } } @@ -1260,15 +1548,15 @@ func (x *fastReflection_QueryTotalStakeResponse) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTotalStakeResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTotalStakeResponse.amount": - return x.Amount != "" + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse.regret": + return x.Regret != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -1278,15 +1566,15 @@ func (x *fastReflection_QueryTotalStakeResponse) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalStakeResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTotalStakeResponse.amount": - x.Amount = "" + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse.regret": + x.Regret = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -1296,16 +1584,16 @@ func (x *fastReflection_QueryTotalStakeResponse) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTotalStakeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTotalStakeResponse.amount": - value := x.Amount - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse.regret": + value := x.Regret + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalStakeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse does not contain field %s", descriptor.FullName())) } } @@ -1319,15 +1607,15 @@ func (x *fastReflection_QueryTotalStakeResponse) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalStakeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTotalStakeResponse.amount": - x.Amount = value.Interface().(string) + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse.regret": + x.Regret = value.Message().Interface().(*TimestampedValue) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -1341,40 +1629,44 @@ func (x *fastReflection_QueryTotalStakeResponse) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalStakeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTotalStakeResponse.amount": - panic(fmt.Errorf("field amount of message emissions.v1.QueryTotalStakeResponse is not mutable")) + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse.regret": + if x.Regret == nil { + x.Regret = new(TimestampedValue) + } + return protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTotalStakeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTotalStakeResponse.amount": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse.regret": + m := new(TimestampedValue) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTotalStakeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTotalStakeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse", d.FullName())) } panic("unreachable") } @@ -1382,7 +1674,7 @@ func (x *fastReflection_QueryTotalStakeResponse) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTotalStakeResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1393,7 +1685,7 @@ func (x *fastReflection_QueryTotalStakeResponse) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalStakeResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1405,7 +1697,7 @@ func (x *fastReflection_QueryTotalStakeResponse) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTotalStakeResponse) IsValid() bool { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) IsValid() bool { return x != nil } @@ -1415,9 +1707,9 @@ func (x *fastReflection_QueryTotalStakeResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTotalStakeResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryOneOutInfererInfererNetworkRegretResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTotalStakeResponse) + x := input.Message.Interface().(*QueryOneOutInfererInfererNetworkRegretResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1429,8 +1721,8 @@ func (x *fastReflection_QueryTotalStakeResponse) ProtoMethods() *protoiface.Meth var n int var l int _ = l - l = len(x.Amount) - if l > 0 { + if x.Regret != nil { + l = options.Size(x.Regret) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -1443,7 +1735,7 @@ func (x *fastReflection_QueryTotalStakeResponse) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTotalStakeResponse) + x := input.Message.Interface().(*QueryOneOutInfererInfererNetworkRegretResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1462,10 +1754,17 @@ func (x *fastReflection_QueryTotalStakeResponse) ProtoMethods() *protoiface.Meth i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amount) > 0 { - i -= len(x.Amount) - copy(dAtA[i:], x.Amount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + if x.Regret != nil { + encoded, err := options.Marshal(x.Regret) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -1480,7 +1779,7 @@ func (x *fastReflection_QueryTotalStakeResponse) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTotalStakeResponse) + x := input.Message.Interface().(*QueryOneOutInfererInfererNetworkRegretResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1512,17 +1811,17 @@ func (x *fastReflection_QueryTotalStakeResponse) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalStakeResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutInfererInfererNetworkRegretResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutInfererInfererNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -1532,23 +1831,27 @@ func (x *fastReflection_QueryTotalStakeResponse) ProtoMethods() *protoiface.Meth } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Amount = string(dAtA[iNdEx:postIndex]) + if x.Regret == nil { + x.Regret = &TimestampedValue{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Regret); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -1586,28 +1889,30 @@ func (x *fastReflection_QueryTotalStakeResponse) ProtoMethods() *protoiface.Meth } var ( - md_QueryReputerStakeInTopicRequest protoreflect.MessageDescriptor - fd_QueryReputerStakeInTopicRequest_address protoreflect.FieldDescriptor - fd_QueryReputerStakeInTopicRequest_topic_id protoreflect.FieldDescriptor + md_QueryOneOutInfererForecasterNetworkRegretRequest protoreflect.MessageDescriptor + fd_QueryOneOutInfererForecasterNetworkRegretRequest_topic_id protoreflect.FieldDescriptor + fd_QueryOneOutInfererForecasterNetworkRegretRequest_one_out_inferer protoreflect.FieldDescriptor + fd_QueryOneOutInfererForecasterNetworkRegretRequest_forecaster protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryReputerStakeInTopicRequest = File_emissions_v1_query_proto.Messages().ByName("QueryReputerStakeInTopicRequest") - fd_QueryReputerStakeInTopicRequest_address = md_QueryReputerStakeInTopicRequest.Fields().ByName("address") - fd_QueryReputerStakeInTopicRequest_topic_id = md_QueryReputerStakeInTopicRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryOneOutInfererForecasterNetworkRegretRequest = File_emissions_v2_query_proto.Messages().ByName("QueryOneOutInfererForecasterNetworkRegretRequest") + fd_QueryOneOutInfererForecasterNetworkRegretRequest_topic_id = md_QueryOneOutInfererForecasterNetworkRegretRequest.Fields().ByName("topic_id") + fd_QueryOneOutInfererForecasterNetworkRegretRequest_one_out_inferer = md_QueryOneOutInfererForecasterNetworkRegretRequest.Fields().ByName("one_out_inferer") + fd_QueryOneOutInfererForecasterNetworkRegretRequest_forecaster = md_QueryOneOutInfererForecasterNetworkRegretRequest.Fields().ByName("forecaster") } -var _ protoreflect.Message = (*fastReflection_QueryReputerStakeInTopicRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest)(nil) -type fastReflection_QueryReputerStakeInTopicRequest QueryReputerStakeInTopicRequest +type fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest QueryOneOutInfererForecasterNetworkRegretRequest -func (x *QueryReputerStakeInTopicRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryReputerStakeInTopicRequest)(x) +func (x *QueryOneOutInfererForecasterNetworkRegretRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest)(x) } -func (x *QueryReputerStakeInTopicRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[4] +func (x *QueryOneOutInfererForecasterNetworkRegretRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1618,43 +1923,43 @@ func (x *QueryReputerStakeInTopicRequest) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_QueryReputerStakeInTopicRequest_messageType fastReflection_QueryReputerStakeInTopicRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryReputerStakeInTopicRequest_messageType{} +var _fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest_messageType fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest_messageType{} -type fastReflection_QueryReputerStakeInTopicRequest_messageType struct{} +type fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest_messageType struct{} -func (x fastReflection_QueryReputerStakeInTopicRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryReputerStakeInTopicRequest)(nil) +func (x fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest)(nil) } -func (x fastReflection_QueryReputerStakeInTopicRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryReputerStakeInTopicRequest) +func (x fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) } -func (x fastReflection_QueryReputerStakeInTopicRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerStakeInTopicRequest +func (x fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutInfererForecasterNetworkRegretRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryReputerStakeInTopicRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerStakeInTopicRequest +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutInfererForecasterNetworkRegretRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryReputerStakeInTopicRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryReputerStakeInTopicRequest_messageType +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryReputerStakeInTopicRequest) New() protoreflect.Message { - return new(fastReflection_QueryReputerStakeInTopicRequest) +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) New() protoreflect.Message { + return new(fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryReputerStakeInTopicRequest) Interface() protoreflect.ProtoMessage { - return (*QueryReputerStakeInTopicRequest)(x) +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) Interface() protoreflect.ProtoMessage { + return (*QueryOneOutInfererForecasterNetworkRegretRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -1662,16 +1967,22 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryReputerStakeInTopicRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryReputerStakeInTopicRequest_address, value) { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryOneOutInfererForecasterNetworkRegretRequest_topic_id, value) { return } } - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryReputerStakeInTopicRequest_topic_id, value) { + if x.OneOutInferer != "" { + value := protoreflect.ValueOfString(x.OneOutInferer) + if !f(fd_QueryOneOutInfererForecasterNetworkRegretRequest_one_out_inferer, value) { + return + } + } + if x.Forecaster != "" { + value := protoreflect.ValueOfString(x.Forecaster) + if !f(fd_QueryOneOutInfererForecasterNetworkRegretRequest_forecaster, value) { return } } @@ -1688,17 +1999,19 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) Range(f func(protorefle // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryReputerStakeInTopicRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryReputerStakeInTopicRequest.address": - return x.Address != "" - case "emissions.v1.QueryReputerStakeInTopicRequest.topic_id": + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.topic_id": return x.TopicId != uint64(0) + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.one_out_inferer": + return x.OneOutInferer != "" + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.forecaster": + return x.Forecaster != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerStakeInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerStakeInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -1708,17 +2021,19 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerStakeInTopicRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryReputerStakeInTopicRequest.address": - x.Address = "" - case "emissions.v1.QueryReputerStakeInTopicRequest.topic_id": + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.topic_id": x.TopicId = uint64(0) + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.one_out_inferer": + x.OneOutInferer = "" + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.forecaster": + x.Forecaster = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerStakeInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerStakeInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -1728,19 +2043,22 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) Clear(fd protoreflect.F // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryReputerStakeInTopicRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryReputerStakeInTopicRequest.address": - value := x.Address - return protoreflect.ValueOfString(value) - case "emissions.v1.QueryReputerStakeInTopicRequest.topic_id": + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.one_out_inferer": + value := x.OneOutInferer + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.forecaster": + value := x.Forecaster + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerStakeInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerStakeInTopicRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest does not contain field %s", descriptor.FullName())) } } @@ -1754,17 +2072,19 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerStakeInTopicRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryReputerStakeInTopicRequest.address": - x.Address = value.Interface().(string) - case "emissions.v1.QueryReputerStakeInTopicRequest.topic_id": + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.topic_id": x.TopicId = value.Uint() + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.one_out_inferer": + x.OneOutInferer = value.Interface().(string) + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.forecaster": + x.Forecaster = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerStakeInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerStakeInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -1778,44 +2098,48 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerStakeInTopicRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerStakeInTopicRequest.address": - panic(fmt.Errorf("field address of message emissions.v1.QueryReputerStakeInTopicRequest is not mutable")) - case "emissions.v1.QueryReputerStakeInTopicRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryReputerStakeInTopicRequest is not mutable")) + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.one_out_inferer": + panic(fmt.Errorf("field one_out_inferer of message emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.forecaster": + panic(fmt.Errorf("field forecaster of message emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerStakeInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerStakeInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryReputerStakeInTopicRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerStakeInTopicRequest.address": - return protoreflect.ValueOfString("") - case "emissions.v1.QueryReputerStakeInTopicRequest.topic_id": + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.one_out_inferer": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest.forecaster": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerStakeInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerStakeInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryReputerStakeInTopicRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryReputerStakeInTopicRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest", d.FullName())) } panic("unreachable") } @@ -1823,7 +2147,7 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) WhichOneof(d protorefle // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryReputerStakeInTopicRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -1834,7 +2158,7 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerStakeInTopicRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -1846,7 +2170,7 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) SetUnknown(fields proto // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryReputerStakeInTopicRequest) IsValid() bool { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) IsValid() bool { return x != nil } @@ -1856,9 +2180,9 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryReputerStakeInTopicRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryReputerStakeInTopicRequest) + x := input.Message.Interface().(*QueryOneOutInfererForecasterNetworkRegretRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1870,12 +2194,16 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) ProtoMethods() *protoif var n int var l int _ = l - l = len(x.Address) + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.OneOutInferer) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) + l = len(x.Forecaster) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -1887,7 +2215,7 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerStakeInTopicRequest) + x := input.Message.Interface().(*QueryOneOutInfererForecasterNetworkRegretRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1906,17 +2234,24 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) ProtoMethods() *protoif i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + if len(x.Forecaster) > 0 { + i -= len(x.Forecaster) + copy(dAtA[i:], x.Forecaster) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Forecaster))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x1a } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + if len(x.OneOutInferer) > 0 { + i -= len(x.OneOutInferer) + copy(dAtA[i:], x.OneOutInferer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OneOutInferer))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -1929,7 +2264,7 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerStakeInTopicRequest) + x := input.Message.Interface().(*QueryOneOutInfererForecasterNetworkRegretRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -1961,15 +2296,34 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerStakeInTopicRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutInfererForecasterNetworkRegretRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerStakeInTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutInfererForecasterNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OneOutInferer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1997,13 +2351,13 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) ProtoMethods() *protoif if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Address = string(dAtA[iNdEx:postIndex]) + x.OneOutInferer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) } - x.TopicId = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2013,11 +2367,24 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) ProtoMethods() *protoif } b := dAtA[iNdEx] iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Forecaster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -2054,26 +2421,26 @@ func (x *fastReflection_QueryReputerStakeInTopicRequest) ProtoMethods() *protoif } var ( - md_QueryReputerStakeInTopicResponse protoreflect.MessageDescriptor - fd_QueryReputerStakeInTopicResponse_amount protoreflect.FieldDescriptor + md_QueryOneOutInfererForecasterNetworkRegretResponse protoreflect.MessageDescriptor + fd_QueryOneOutInfererForecasterNetworkRegretResponse_regret protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryReputerStakeInTopicResponse = File_emissions_v1_query_proto.Messages().ByName("QueryReputerStakeInTopicResponse") - fd_QueryReputerStakeInTopicResponse_amount = md_QueryReputerStakeInTopicResponse.Fields().ByName("amount") + file_emissions_v2_query_proto_init() + md_QueryOneOutInfererForecasterNetworkRegretResponse = File_emissions_v2_query_proto.Messages().ByName("QueryOneOutInfererForecasterNetworkRegretResponse") + fd_QueryOneOutInfererForecasterNetworkRegretResponse_regret = md_QueryOneOutInfererForecasterNetworkRegretResponse.Fields().ByName("regret") } -var _ protoreflect.Message = (*fastReflection_QueryReputerStakeInTopicResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse)(nil) -type fastReflection_QueryReputerStakeInTopicResponse QueryReputerStakeInTopicResponse +type fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse QueryOneOutInfererForecasterNetworkRegretResponse -func (x *QueryReputerStakeInTopicResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryReputerStakeInTopicResponse)(x) +func (x *QueryOneOutInfererForecasterNetworkRegretResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse)(x) } -func (x *QueryReputerStakeInTopicResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[5] +func (x *QueryOneOutInfererForecasterNetworkRegretResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2084,43 +2451,43 @@ func (x *QueryReputerStakeInTopicResponse) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_QueryReputerStakeInTopicResponse_messageType fastReflection_QueryReputerStakeInTopicResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryReputerStakeInTopicResponse_messageType{} +var _fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse_messageType fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse_messageType{} -type fastReflection_QueryReputerStakeInTopicResponse_messageType struct{} +type fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse_messageType struct{} -func (x fastReflection_QueryReputerStakeInTopicResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryReputerStakeInTopicResponse)(nil) +func (x fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse)(nil) } -func (x fastReflection_QueryReputerStakeInTopicResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryReputerStakeInTopicResponse) +func (x fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) } -func (x fastReflection_QueryReputerStakeInTopicResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerStakeInTopicResponse +func (x fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutInfererForecasterNetworkRegretResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryReputerStakeInTopicResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerStakeInTopicResponse +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutInfererForecasterNetworkRegretResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryReputerStakeInTopicResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryReputerStakeInTopicResponse_messageType +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryReputerStakeInTopicResponse) New() protoreflect.Message { - return new(fastReflection_QueryReputerStakeInTopicResponse) +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) New() protoreflect.Message { + return new(fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryReputerStakeInTopicResponse) Interface() protoreflect.ProtoMessage { - return (*QueryReputerStakeInTopicResponse)(x) +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) Interface() protoreflect.ProtoMessage { + return (*QueryOneOutInfererForecasterNetworkRegretResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -2128,10 +2495,10 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryReputerStakeInTopicResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Amount != "" { - value := protoreflect.ValueOfString(x.Amount) - if !f(fd_QueryReputerStakeInTopicResponse_amount, value) { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Regret != nil { + value := protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) + if !f(fd_QueryOneOutInfererForecasterNetworkRegretResponse_regret, value) { return } } @@ -2148,15 +2515,15 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) Range(f func(protorefl // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryReputerStakeInTopicResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryReputerStakeInTopicResponse.amount": - return x.Amount != "" + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse.regret": + return x.Regret != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerStakeInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerStakeInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -2166,15 +2533,15 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerStakeInTopicResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryReputerStakeInTopicResponse.amount": - x.Amount = "" + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse.regret": + x.Regret = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerStakeInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerStakeInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -2184,16 +2551,16 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) Clear(fd protoreflect. // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryReputerStakeInTopicResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryReputerStakeInTopicResponse.amount": - value := x.Amount - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse.regret": + value := x.Regret + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerStakeInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerStakeInTopicResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse does not contain field %s", descriptor.FullName())) } } @@ -2207,15 +2574,15 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerStakeInTopicResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryReputerStakeInTopicResponse.amount": - x.Amount = value.Interface().(string) + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse.regret": + x.Regret = value.Message().Interface().(*TimestampedValue) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerStakeInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerStakeInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -2229,40 +2596,44 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerStakeInTopicResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerStakeInTopicResponse.amount": - panic(fmt.Errorf("field amount of message emissions.v1.QueryReputerStakeInTopicResponse is not mutable")) + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse.regret": + if x.Regret == nil { + x.Regret = new(TimestampedValue) + } + return protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerStakeInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerStakeInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryReputerStakeInTopicResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerStakeInTopicResponse.amount": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse.regret": + m := new(TimestampedValue) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerStakeInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerStakeInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryReputerStakeInTopicResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryReputerStakeInTopicResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse", d.FullName())) } panic("unreachable") } @@ -2270,7 +2641,7 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) WhichOneof(d protorefl // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryReputerStakeInTopicResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2281,7 +2652,7 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerStakeInTopicResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2293,7 +2664,7 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) SetUnknown(fields prot // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryReputerStakeInTopicResponse) IsValid() bool { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) IsValid() bool { return x != nil } @@ -2303,9 +2674,9 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryReputerStakeInTopicResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryOneOutInfererForecasterNetworkRegretResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryReputerStakeInTopicResponse) + x := input.Message.Interface().(*QueryOneOutInfererForecasterNetworkRegretResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2317,8 +2688,8 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) ProtoMethods() *protoi var n int var l int _ = l - l = len(x.Amount) - if l > 0 { + if x.Regret != nil { + l = options.Size(x.Regret) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -2331,7 +2702,7 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerStakeInTopicResponse) + x := input.Message.Interface().(*QueryOneOutInfererForecasterNetworkRegretResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2350,10 +2721,17 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) ProtoMethods() *protoi i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amount) > 0 { - i -= len(x.Amount) - copy(dAtA[i:], x.Amount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + if x.Regret != nil { + encoded, err := options.Marshal(x.Regret) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -2368,7 +2746,7 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerStakeInTopicResponse) + x := input.Message.Interface().(*QueryOneOutInfererForecasterNetworkRegretResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2400,17 +2778,17 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) ProtoMethods() *protoi fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerStakeInTopicResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutInfererForecasterNetworkRegretResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerStakeInTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutInfererForecasterNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2420,23 +2798,27 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) ProtoMethods() *protoi } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Amount = string(dAtA[iNdEx:postIndex]) + if x.Regret == nil { + x.Regret = &TimestampedValue{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Regret); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -2473,75 +2855,31 @@ func (x *fastReflection_QueryReputerStakeInTopicResponse) ProtoMethods() *protoi } } -var _ protoreflect.List = (*_QueryMultiReputerStakeInTopicRequest_1_list)(nil) - -type _QueryMultiReputerStakeInTopicRequest_1_list struct { - list *[]string -} - -func (x *_QueryMultiReputerStakeInTopicRequest_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryMultiReputerStakeInTopicRequest_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_QueryMultiReputerStakeInTopicRequest_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryMultiReputerStakeInTopicRequest_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryMultiReputerStakeInTopicRequest_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryMultiReputerStakeInTopicRequest at list field Addresses as it is not of Message kind")) -} - -func (x *_QueryMultiReputerStakeInTopicRequest_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryMultiReputerStakeInTopicRequest_1_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_QueryMultiReputerStakeInTopicRequest_1_list) IsValid() bool { - return x.list != nil -} - var ( - md_QueryMultiReputerStakeInTopicRequest protoreflect.MessageDescriptor - fd_QueryMultiReputerStakeInTopicRequest_addresses protoreflect.FieldDescriptor - fd_QueryMultiReputerStakeInTopicRequest_topic_id protoreflect.FieldDescriptor + md_QueryOneOutForecasterInfererNetworkRegretRequest protoreflect.MessageDescriptor + fd_QueryOneOutForecasterInfererNetworkRegretRequest_topic_id protoreflect.FieldDescriptor + fd_QueryOneOutForecasterInfererNetworkRegretRequest_one_out_forecaster protoreflect.FieldDescriptor + fd_QueryOneOutForecasterInfererNetworkRegretRequest_inferer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryMultiReputerStakeInTopicRequest = File_emissions_v1_query_proto.Messages().ByName("QueryMultiReputerStakeInTopicRequest") - fd_QueryMultiReputerStakeInTopicRequest_addresses = md_QueryMultiReputerStakeInTopicRequest.Fields().ByName("addresses") - fd_QueryMultiReputerStakeInTopicRequest_topic_id = md_QueryMultiReputerStakeInTopicRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryOneOutForecasterInfererNetworkRegretRequest = File_emissions_v2_query_proto.Messages().ByName("QueryOneOutForecasterInfererNetworkRegretRequest") + fd_QueryOneOutForecasterInfererNetworkRegretRequest_topic_id = md_QueryOneOutForecasterInfererNetworkRegretRequest.Fields().ByName("topic_id") + fd_QueryOneOutForecasterInfererNetworkRegretRequest_one_out_forecaster = md_QueryOneOutForecasterInfererNetworkRegretRequest.Fields().ByName("one_out_forecaster") + fd_QueryOneOutForecasterInfererNetworkRegretRequest_inferer = md_QueryOneOutForecasterInfererNetworkRegretRequest.Fields().ByName("inferer") } -var _ protoreflect.Message = (*fastReflection_QueryMultiReputerStakeInTopicRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest)(nil) -type fastReflection_QueryMultiReputerStakeInTopicRequest QueryMultiReputerStakeInTopicRequest +type fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest QueryOneOutForecasterInfererNetworkRegretRequest -func (x *QueryMultiReputerStakeInTopicRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryMultiReputerStakeInTopicRequest)(x) +func (x *QueryOneOutForecasterInfererNetworkRegretRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest)(x) } -func (x *QueryMultiReputerStakeInTopicRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[6] +func (x *QueryOneOutForecasterInfererNetworkRegretRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2552,43 +2890,43 @@ func (x *QueryMultiReputerStakeInTopicRequest) slowProtoReflect() protoreflect.M return mi.MessageOf(x) } -var _fastReflection_QueryMultiReputerStakeInTopicRequest_messageType fastReflection_QueryMultiReputerStakeInTopicRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryMultiReputerStakeInTopicRequest_messageType{} +var _fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest_messageType fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest_messageType{} -type fastReflection_QueryMultiReputerStakeInTopicRequest_messageType struct{} +type fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest_messageType struct{} -func (x fastReflection_QueryMultiReputerStakeInTopicRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryMultiReputerStakeInTopicRequest)(nil) +func (x fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest)(nil) } -func (x fastReflection_QueryMultiReputerStakeInTopicRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryMultiReputerStakeInTopicRequest) +func (x fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) } -func (x fastReflection_QueryMultiReputerStakeInTopicRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMultiReputerStakeInTopicRequest +func (x fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutForecasterInfererNetworkRegretRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMultiReputerStakeInTopicRequest +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutForecasterInfererNetworkRegretRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryMultiReputerStakeInTopicRequest_messageType +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) New() protoreflect.Message { - return new(fastReflection_QueryMultiReputerStakeInTopicRequest) +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) New() protoreflect.Message { + return new(fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Interface() protoreflect.ProtoMessage { - return (*QueryMultiReputerStakeInTopicRequest)(x) +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) Interface() protoreflect.ProtoMessage { + return (*QueryOneOutForecasterInfererNetworkRegretRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -2596,16 +2934,22 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Interface() protor // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Addresses) != 0 { - value := protoreflect.ValueOfList(&_QueryMultiReputerStakeInTopicRequest_1_list{list: &x.Addresses}) - if !f(fd_QueryMultiReputerStakeInTopicRequest_addresses, value) { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryOneOutForecasterInfererNetworkRegretRequest_topic_id, value) { return } } - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryMultiReputerStakeInTopicRequest_topic_id, value) { + if x.OneOutForecaster != "" { + value := protoreflect.ValueOfString(x.OneOutForecaster) + if !f(fd_QueryOneOutForecasterInfererNetworkRegretRequest_one_out_forecaster, value) { + return + } + } + if x.Inferer != "" { + value := protoreflect.ValueOfString(x.Inferer) + if !f(fd_QueryOneOutForecasterInfererNetworkRegretRequest_inferer, value) { return } } @@ -2622,17 +2966,19 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Range(f func(proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryMultiReputerStakeInTopicRequest.addresses": - return len(x.Addresses) != 0 - case "emissions.v1.QueryMultiReputerStakeInTopicRequest.topic_id": + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.topic_id": return x.TopicId != uint64(0) + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.one_out_forecaster": + return x.OneOutForecaster != "" + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.inferer": + return x.Inferer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryMultiReputerStakeInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryMultiReputerStakeInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -2642,17 +2988,19 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Has(fd protoreflec // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryMultiReputerStakeInTopicRequest.addresses": - x.Addresses = nil - case "emissions.v1.QueryMultiReputerStakeInTopicRequest.topic_id": + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.topic_id": x.TopicId = uint64(0) + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.one_out_forecaster": + x.OneOutForecaster = "" + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.inferer": + x.Inferer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryMultiReputerStakeInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryMultiReputerStakeInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -2662,22 +3010,22 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Clear(fd protorefl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryMultiReputerStakeInTopicRequest.addresses": - if len(x.Addresses) == 0 { - return protoreflect.ValueOfList(&_QueryMultiReputerStakeInTopicRequest_1_list{}) - } - listValue := &_QueryMultiReputerStakeInTopicRequest_1_list{list: &x.Addresses} - return protoreflect.ValueOfList(listValue) - case "emissions.v1.QueryMultiReputerStakeInTopicRequest.topic_id": + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.one_out_forecaster": + value := x.OneOutForecaster + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.inferer": + value := x.Inferer + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryMultiReputerStakeInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryMultiReputerStakeInTopicRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest does not contain field %s", descriptor.FullName())) } } @@ -2691,19 +3039,19 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Get(descriptor pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryMultiReputerStakeInTopicRequest.addresses": - lv := value.List() - clv := lv.(*_QueryMultiReputerStakeInTopicRequest_1_list) - x.Addresses = *clv.list - case "emissions.v1.QueryMultiReputerStakeInTopicRequest.topic_id": + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.topic_id": x.TopicId = value.Uint() + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.one_out_forecaster": + x.OneOutForecaster = value.Interface().(string) + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.inferer": + x.Inferer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryMultiReputerStakeInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryMultiReputerStakeInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -2717,49 +3065,48 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Set(fd protoreflec // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryMultiReputerStakeInTopicRequest.addresses": - if x.Addresses == nil { - x.Addresses = []string{} - } - value := &_QueryMultiReputerStakeInTopicRequest_1_list{list: &x.Addresses} - return protoreflect.ValueOfList(value) - case "emissions.v1.QueryMultiReputerStakeInTopicRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryMultiReputerStakeInTopicRequest is not mutable")) + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.one_out_forecaster": + panic(fmt.Errorf("field one_out_forecaster of message emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.inferer": + panic(fmt.Errorf("field inferer of message emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryMultiReputerStakeInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryMultiReputerStakeInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryMultiReputerStakeInTopicRequest.addresses": - list := []string{} - return protoreflect.ValueOfList(&_QueryMultiReputerStakeInTopicRequest_1_list{list: &list}) - case "emissions.v1.QueryMultiReputerStakeInTopicRequest.topic_id": + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.one_out_forecaster": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest.inferer": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryMultiReputerStakeInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryMultiReputerStakeInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryMultiReputerStakeInTopicRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest", d.FullName())) } panic("unreachable") } @@ -2767,7 +3114,7 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) WhichOneof(d proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -2778,7 +3125,7 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) GetUnknown() proto // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -2790,7 +3137,7 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) IsValid() bool { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) IsValid() bool { return x != nil } @@ -2800,9 +3147,9 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryMultiReputerStakeInTopicRequest) + x := input.Message.Interface().(*QueryOneOutForecasterInfererNetworkRegretRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2814,15 +3161,17 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) ProtoMethods() *pr var n int var l int _ = l - if len(x.Addresses) > 0 { - for _, s := range x.Addresses { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } + l = len(x.OneOutForecaster) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Inferer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2833,7 +3182,7 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) ProtoMethods() *pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryMultiReputerStakeInTopicRequest) + x := input.Message.Interface().(*QueryOneOutForecasterInfererNetworkRegretRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2852,19 +3201,24 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) ProtoMethods() *pr i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Inferer) > 0 { + i -= len(x.Inferer) + copy(dAtA[i:], x.Inferer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Inferer))) + i-- + dAtA[i] = 0x1a + } + if len(x.OneOutForecaster) > 0 { + i -= len(x.OneOutForecaster) + copy(dAtA[i:], x.OneOutForecaster) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OneOutForecaster))) + i-- + dAtA[i] = 0x12 + } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- - dAtA[i] = 0x10 - } - if len(x.Addresses) > 0 { - for iNdEx := len(x.Addresses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.Addresses[iNdEx]) - copy(dAtA[i:], x.Addresses[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Addresses[iNdEx]))) - i-- - dAtA[i] = 0xa - } + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -2877,7 +3231,7 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) ProtoMethods() *pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryMultiReputerStakeInTopicRequest) + x := input.Message.Interface().(*QueryOneOutForecasterInfererNetworkRegretRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -2909,15 +3263,34 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) ProtoMethods() *pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMultiReputerStakeInTopicRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutForecasterInfererNetworkRegretRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMultiReputerStakeInTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutForecasterInfererNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OneOutForecaster", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2945,13 +3318,13 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) ProtoMethods() *pr if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Addresses = append(x.Addresses, string(dAtA[iNdEx:postIndex])) + x.OneOutForecaster = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) } - x.TopicId = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -2961,11 +3334,24 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) ProtoMethods() *pr } b := dAtA[iNdEx] iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Inferer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -3001,78 +3387,27 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) ProtoMethods() *pr } } -var _ protoreflect.List = (*_QueryMultiReputerStakeInTopicResponse_1_list)(nil) - -type _QueryMultiReputerStakeInTopicResponse_1_list struct { - list *[]*StakeInfo -} - -func (x *_QueryMultiReputerStakeInTopicResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryMultiReputerStakeInTopicResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryMultiReputerStakeInTopicResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*StakeInfo) - (*x.list)[i] = concreteValue -} - -func (x *_QueryMultiReputerStakeInTopicResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*StakeInfo) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryMultiReputerStakeInTopicResponse_1_list) AppendMutable() protoreflect.Value { - v := new(StakeInfo) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryMultiReputerStakeInTopicResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryMultiReputerStakeInTopicResponse_1_list) NewElement() protoreflect.Value { - v := new(StakeInfo) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryMultiReputerStakeInTopicResponse_1_list) IsValid() bool { - return x.list != nil -} - var ( - md_QueryMultiReputerStakeInTopicResponse protoreflect.MessageDescriptor - fd_QueryMultiReputerStakeInTopicResponse_amounts protoreflect.FieldDescriptor + md_QueryOneOutForecasterInfererNetworkRegretResponse protoreflect.MessageDescriptor + fd_QueryOneOutForecasterInfererNetworkRegretResponse_regret protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryMultiReputerStakeInTopicResponse = File_emissions_v1_query_proto.Messages().ByName("QueryMultiReputerStakeInTopicResponse") - fd_QueryMultiReputerStakeInTopicResponse_amounts = md_QueryMultiReputerStakeInTopicResponse.Fields().ByName("amounts") + file_emissions_v2_query_proto_init() + md_QueryOneOutForecasterInfererNetworkRegretResponse = File_emissions_v2_query_proto.Messages().ByName("QueryOneOutForecasterInfererNetworkRegretResponse") + fd_QueryOneOutForecasterInfererNetworkRegretResponse_regret = md_QueryOneOutForecasterInfererNetworkRegretResponse.Fields().ByName("regret") } -var _ protoreflect.Message = (*fastReflection_QueryMultiReputerStakeInTopicResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse)(nil) -type fastReflection_QueryMultiReputerStakeInTopicResponse QueryMultiReputerStakeInTopicResponse +type fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse QueryOneOutForecasterInfererNetworkRegretResponse -func (x *QueryMultiReputerStakeInTopicResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryMultiReputerStakeInTopicResponse)(x) +func (x *QueryOneOutForecasterInfererNetworkRegretResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse)(x) } -func (x *QueryMultiReputerStakeInTopicResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[7] +func (x *QueryOneOutForecasterInfererNetworkRegretResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3083,43 +3418,43 @@ func (x *QueryMultiReputerStakeInTopicResponse) slowProtoReflect() protoreflect. return mi.MessageOf(x) } -var _fastReflection_QueryMultiReputerStakeInTopicResponse_messageType fastReflection_QueryMultiReputerStakeInTopicResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryMultiReputerStakeInTopicResponse_messageType{} +var _fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse_messageType fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse_messageType{} -type fastReflection_QueryMultiReputerStakeInTopicResponse_messageType struct{} +type fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse_messageType struct{} -func (x fastReflection_QueryMultiReputerStakeInTopicResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryMultiReputerStakeInTopicResponse)(nil) +func (x fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse)(nil) } -func (x fastReflection_QueryMultiReputerStakeInTopicResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryMultiReputerStakeInTopicResponse) +func (x fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) } -func (x fastReflection_QueryMultiReputerStakeInTopicResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMultiReputerStakeInTopicResponse +func (x fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutForecasterInfererNetworkRegretResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryMultiReputerStakeInTopicResponse +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutForecasterInfererNetworkRegretResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryMultiReputerStakeInTopicResponse_messageType +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) New() protoreflect.Message { - return new(fastReflection_QueryMultiReputerStakeInTopicResponse) +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) New() protoreflect.Message { + return new(fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Interface() protoreflect.ProtoMessage { - return (*QueryMultiReputerStakeInTopicResponse)(x) +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) Interface() protoreflect.ProtoMessage { + return (*QueryOneOutForecasterInfererNetworkRegretResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -3127,10 +3462,10 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Interface() proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Amounts) != 0 { - value := protoreflect.ValueOfList(&_QueryMultiReputerStakeInTopicResponse_1_list{list: &x.Amounts}) - if !f(fd_QueryMultiReputerStakeInTopicResponse_amounts, value) { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Regret != nil { + value := protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) + if !f(fd_QueryOneOutForecasterInfererNetworkRegretResponse_regret, value) { return } } @@ -3147,15 +3482,15 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Range(f func(prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryMultiReputerStakeInTopicResponse.amounts": - return len(x.Amounts) != 0 + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse.regret": + return x.Regret != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryMultiReputerStakeInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryMultiReputerStakeInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -3165,15 +3500,15 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Has(fd protorefle // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryMultiReputerStakeInTopicResponse.amounts": - x.Amounts = nil + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse.regret": + x.Regret = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryMultiReputerStakeInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryMultiReputerStakeInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -3183,19 +3518,16 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Clear(fd protoref // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryMultiReputerStakeInTopicResponse.amounts": - if len(x.Amounts) == 0 { - return protoreflect.ValueOfList(&_QueryMultiReputerStakeInTopicResponse_1_list{}) - } - listValue := &_QueryMultiReputerStakeInTopicResponse_1_list{list: &x.Amounts} - return protoreflect.ValueOfList(listValue) + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse.regret": + value := x.Regret + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryMultiReputerStakeInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryMultiReputerStakeInTopicResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse does not contain field %s", descriptor.FullName())) } } @@ -3209,17 +3541,15 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Get(descriptor pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryMultiReputerStakeInTopicResponse.amounts": - lv := value.List() - clv := lv.(*_QueryMultiReputerStakeInTopicResponse_1_list) - x.Amounts = *clv.list + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse.regret": + x.Regret = value.Message().Interface().(*TimestampedValue) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryMultiReputerStakeInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryMultiReputerStakeInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -3233,45 +3563,44 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Set(fd protorefle // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryMultiReputerStakeInTopicResponse.amounts": - if x.Amounts == nil { - x.Amounts = []*StakeInfo{} + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse.regret": + if x.Regret == nil { + x.Regret = new(TimestampedValue) } - value := &_QueryMultiReputerStakeInTopicResponse_1_list{list: &x.Amounts} - return protoreflect.ValueOfList(value) + return protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryMultiReputerStakeInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryMultiReputerStakeInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryMultiReputerStakeInTopicResponse.amounts": - list := []*StakeInfo{} - return protoreflect.ValueOfList(&_QueryMultiReputerStakeInTopicResponse_1_list{list: &list}) + case "emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse.regret": + m := new(TimestampedValue) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryMultiReputerStakeInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryMultiReputerStakeInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryMultiReputerStakeInTopicResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse", d.FullName())) } panic("unreachable") } @@ -3279,7 +3608,7 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) WhichOneof(d prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3290,7 +3619,7 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) GetUnknown() prot // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3302,7 +3631,7 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) IsValid() bool { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) IsValid() bool { return x != nil } @@ -3312,9 +3641,9 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryOneOutForecasterInfererNetworkRegretResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryMultiReputerStakeInTopicResponse) + x := input.Message.Interface().(*QueryOneOutForecasterInfererNetworkRegretResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3326,11 +3655,9 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) ProtoMethods() *p var n int var l int _ = l - if len(x.Amounts) > 0 { - for _, e := range x.Amounts { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + if x.Regret != nil { + l = options.Size(x.Regret) + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -3342,7 +3669,7 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) ProtoMethods() *p } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryMultiReputerStakeInTopicResponse) + x := input.Message.Interface().(*QueryOneOutForecasterInfererNetworkRegretResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3361,21 +3688,19 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) ProtoMethods() *p i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amounts) > 0 { - for iNdEx := len(x.Amounts) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Amounts[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa + if x.Regret != nil { + encoded, err := options.Marshal(x.Regret) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -3388,7 +3713,7 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) ProtoMethods() *p }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryMultiReputerStakeInTopicResponse) + x := input.Message.Interface().(*QueryOneOutForecasterInfererNetworkRegretResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3420,15 +3745,15 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) ProtoMethods() *p fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMultiReputerStakeInTopicResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutForecasterInfererNetworkRegretResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMultiReputerStakeInTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutForecasterInfererNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amounts", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -3455,8 +3780,10 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) ProtoMethods() *p if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Amounts = append(x.Amounts, &StakeInfo{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amounts[len(x.Amounts)-1]); err != nil { + if x.Regret == nil { + x.Regret = &TimestampedValue{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Regret); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -3496,28 +3823,30 @@ func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) ProtoMethods() *p } var ( - md_QueryStakeFromReputerInTopicInSelfRequest protoreflect.MessageDescriptor - fd_QueryStakeFromReputerInTopicInSelfRequest_reputer_address protoreflect.FieldDescriptor - fd_QueryStakeFromReputerInTopicInSelfRequest_topic_id protoreflect.FieldDescriptor + md_QueryOneOutForecasterForecasterNetworkRegretRequest protoreflect.MessageDescriptor + fd_QueryOneOutForecasterForecasterNetworkRegretRequest_topic_id protoreflect.FieldDescriptor + fd_QueryOneOutForecasterForecasterNetworkRegretRequest_one_out_forecaster protoreflect.FieldDescriptor + fd_QueryOneOutForecasterForecasterNetworkRegretRequest_forecaster protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeFromReputerInTopicInSelfRequest = File_emissions_v1_query_proto.Messages().ByName("QueryStakeFromReputerInTopicInSelfRequest") - fd_QueryStakeFromReputerInTopicInSelfRequest_reputer_address = md_QueryStakeFromReputerInTopicInSelfRequest.Fields().ByName("reputer_address") - fd_QueryStakeFromReputerInTopicInSelfRequest_topic_id = md_QueryStakeFromReputerInTopicInSelfRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryOneOutForecasterForecasterNetworkRegretRequest = File_emissions_v2_query_proto.Messages().ByName("QueryOneOutForecasterForecasterNetworkRegretRequest") + fd_QueryOneOutForecasterForecasterNetworkRegretRequest_topic_id = md_QueryOneOutForecasterForecasterNetworkRegretRequest.Fields().ByName("topic_id") + fd_QueryOneOutForecasterForecasterNetworkRegretRequest_one_out_forecaster = md_QueryOneOutForecasterForecasterNetworkRegretRequest.Fields().ByName("one_out_forecaster") + fd_QueryOneOutForecasterForecasterNetworkRegretRequest_forecaster = md_QueryOneOutForecasterForecasterNetworkRegretRequest.Fields().ByName("forecaster") } -var _ protoreflect.Message = (*fastReflection_QueryStakeFromReputerInTopicInSelfRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest)(nil) -type fastReflection_QueryStakeFromReputerInTopicInSelfRequest QueryStakeFromReputerInTopicInSelfRequest +type fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest QueryOneOutForecasterForecasterNetworkRegretRequest -func (x *QueryStakeFromReputerInTopicInSelfRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeFromReputerInTopicInSelfRequest)(x) +func (x *QueryOneOutForecasterForecasterNetworkRegretRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest)(x) } -func (x *QueryStakeFromReputerInTopicInSelfRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[8] +func (x *QueryOneOutForecasterForecasterNetworkRegretRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3528,43 +3857,43 @@ func (x *QueryStakeFromReputerInTopicInSelfRequest) slowProtoReflect() protorefl return mi.MessageOf(x) } -var _fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType{} +var _fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest_messageType fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest_messageType{} -type fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType struct{} +type fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest_messageType struct{} -func (x fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeFromReputerInTopicInSelfRequest)(nil) +func (x fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest)(nil) } -func (x fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeFromReputerInTopicInSelfRequest) +func (x fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) } -func (x fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeFromReputerInTopicInSelfRequest +func (x fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutForecasterForecasterNetworkRegretRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeFromReputerInTopicInSelfRequest +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutForecasterForecasterNetworkRegretRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) New() protoreflect.Message { - return new(fastReflection_QueryStakeFromReputerInTopicInSelfRequest) +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) New() protoreflect.Message { + return new(fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Interface() protoreflect.ProtoMessage { - return (*QueryStakeFromReputerInTopicInSelfRequest)(x) +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) Interface() protoreflect.ProtoMessage { + return (*QueryOneOutForecasterForecasterNetworkRegretRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -3572,16 +3901,22 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Interface() p // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ReputerAddress != "" { - value := protoreflect.ValueOfString(x.ReputerAddress) - if !f(fd_QueryStakeFromReputerInTopicInSelfRequest_reputer_address, value) { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryOneOutForecasterForecasterNetworkRegretRequest_topic_id, value) { return } } - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryStakeFromReputerInTopicInSelfRequest_topic_id, value) { + if x.OneOutForecaster != "" { + value := protoreflect.ValueOfString(x.OneOutForecaster) + if !f(fd_QueryOneOutForecasterForecasterNetworkRegretRequest_one_out_forecaster, value) { + return + } + } + if x.Forecaster != "" { + value := protoreflect.ValueOfString(x.Forecaster) + if !f(fd_QueryOneOutForecasterForecasterNetworkRegretRequest_forecaster, value) { return } } @@ -3598,17 +3933,19 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Range(f func( // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeFromReputerInTopicInSelfRequest.reputer_address": - return x.ReputerAddress != "" - case "emissions.v1.QueryStakeFromReputerInTopicInSelfRequest.topic_id": + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.topic_id": return x.TopicId != uint64(0) + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.one_out_forecaster": + return x.OneOutForecaster != "" + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.forecaster": + return x.Forecaster != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromReputerInTopicInSelfRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromReputerInTopicInSelfRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -3618,17 +3955,19 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Has(fd protor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeFromReputerInTopicInSelfRequest.reputer_address": - x.ReputerAddress = "" - case "emissions.v1.QueryStakeFromReputerInTopicInSelfRequest.topic_id": + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.topic_id": x.TopicId = uint64(0) + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.one_out_forecaster": + x.OneOutForecaster = "" + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.forecaster": + x.Forecaster = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromReputerInTopicInSelfRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromReputerInTopicInSelfRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -3638,19 +3977,22 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Clear(fd prot // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeFromReputerInTopicInSelfRequest.reputer_address": - value := x.ReputerAddress - return protoreflect.ValueOfString(value) - case "emissions.v1.QueryStakeFromReputerInTopicInSelfRequest.topic_id": + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.one_out_forecaster": + value := x.OneOutForecaster + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.forecaster": + value := x.Forecaster + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromReputerInTopicInSelfRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromReputerInTopicInSelfRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest does not contain field %s", descriptor.FullName())) } } @@ -3664,17 +4006,19 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Get(descripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeFromReputerInTopicInSelfRequest.reputer_address": - x.ReputerAddress = value.Interface().(string) - case "emissions.v1.QueryStakeFromReputerInTopicInSelfRequest.topic_id": + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.topic_id": x.TopicId = value.Uint() + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.one_out_forecaster": + x.OneOutForecaster = value.Interface().(string) + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.forecaster": + x.Forecaster = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromReputerInTopicInSelfRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromReputerInTopicInSelfRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -3688,44 +4032,48 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Set(fd protor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeFromReputerInTopicInSelfRequest.reputer_address": - panic(fmt.Errorf("field reputer_address of message emissions.v1.QueryStakeFromReputerInTopicInSelfRequest is not mutable")) - case "emissions.v1.QueryStakeFromReputerInTopicInSelfRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryStakeFromReputerInTopicInSelfRequest is not mutable")) + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.one_out_forecaster": + panic(fmt.Errorf("field one_out_forecaster of message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.forecaster": + panic(fmt.Errorf("field forecaster of message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromReputerInTopicInSelfRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromReputerInTopicInSelfRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeFromReputerInTopicInSelfRequest.reputer_address": - return protoreflect.ValueOfString("") - case "emissions.v1.QueryStakeFromReputerInTopicInSelfRequest.topic_id": + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.one_out_forecaster": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest.forecaster": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromReputerInTopicInSelfRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromReputerInTopicInSelfRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeFromReputerInTopicInSelfRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest", d.FullName())) } panic("unreachable") } @@ -3733,7 +4081,7 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) WhichOneof(d // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -3744,7 +4092,7 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) GetUnknown() // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -3756,7 +4104,7 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) SetUnknown(fi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) IsValid() bool { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) IsValid() bool { return x != nil } @@ -3766,9 +4114,9 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) IsValid() boo // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeFromReputerInTopicInSelfRequest) + x := input.Message.Interface().(*QueryOneOutForecasterForecasterNetworkRegretRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3780,12 +4128,16 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) ProtoMethods( var n int var l int _ = l - l = len(x.ReputerAddress) + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.OneOutForecaster) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) + l = len(x.Forecaster) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -3797,7 +4149,7 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) ProtoMethods( } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeFromReputerInTopicInSelfRequest) + x := input.Message.Interface().(*QueryOneOutForecasterForecasterNetworkRegretRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3816,17 +4168,24 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) ProtoMethods( i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + if len(x.Forecaster) > 0 { + i -= len(x.Forecaster) + copy(dAtA[i:], x.Forecaster) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Forecaster))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x1a } - if len(x.ReputerAddress) > 0 { - i -= len(x.ReputerAddress) - copy(dAtA[i:], x.ReputerAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ReputerAddress))) + if len(x.OneOutForecaster) > 0 { + i -= len(x.OneOutForecaster) + copy(dAtA[i:], x.OneOutForecaster) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.OneOutForecaster))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -3839,7 +4198,7 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) ProtoMethods( }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeFromReputerInTopicInSelfRequest) + x := input.Message.Interface().(*QueryOneOutForecasterForecasterNetworkRegretRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -3871,15 +4230,34 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) ProtoMethods( fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutForecasterForecasterNetworkRegretRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutForecasterForecasterNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OneOutForecaster", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3907,13 +4285,13 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) ProtoMethods( if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.ReputerAddress = string(dAtA[iNdEx:postIndex]) + x.OneOutForecaster = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) } - x.TopicId = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -3923,11 +4301,24 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) ProtoMethods( } b := dAtA[iNdEx] iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Forecaster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -3964,26 +4355,26 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) ProtoMethods( } var ( - md_QueryStakeFromReputerInTopicInSelfResponse protoreflect.MessageDescriptor - fd_QueryStakeFromReputerInTopicInSelfResponse_amount protoreflect.FieldDescriptor + md_QueryOneOutForecasterForecasterNetworkRegretResponse protoreflect.MessageDescriptor + fd_QueryOneOutForecasterForecasterNetworkRegretResponse_regret protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeFromReputerInTopicInSelfResponse = File_emissions_v1_query_proto.Messages().ByName("QueryStakeFromReputerInTopicInSelfResponse") - fd_QueryStakeFromReputerInTopicInSelfResponse_amount = md_QueryStakeFromReputerInTopicInSelfResponse.Fields().ByName("amount") + file_emissions_v2_query_proto_init() + md_QueryOneOutForecasterForecasterNetworkRegretResponse = File_emissions_v2_query_proto.Messages().ByName("QueryOneOutForecasterForecasterNetworkRegretResponse") + fd_QueryOneOutForecasterForecasterNetworkRegretResponse_regret = md_QueryOneOutForecasterForecasterNetworkRegretResponse.Fields().ByName("regret") } -var _ protoreflect.Message = (*fastReflection_QueryStakeFromReputerInTopicInSelfResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse)(nil) -type fastReflection_QueryStakeFromReputerInTopicInSelfResponse QueryStakeFromReputerInTopicInSelfResponse +type fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse QueryOneOutForecasterForecasterNetworkRegretResponse -func (x *QueryStakeFromReputerInTopicInSelfResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeFromReputerInTopicInSelfResponse)(x) +func (x *QueryOneOutForecasterForecasterNetworkRegretResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse)(x) } -func (x *QueryStakeFromReputerInTopicInSelfResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[9] +func (x *QueryOneOutForecasterForecasterNetworkRegretResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3994,43 +4385,43 @@ func (x *QueryStakeFromReputerInTopicInSelfResponse) slowProtoReflect() protoref return mi.MessageOf(x) } -var _fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType{} +var _fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse_messageType fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse_messageType{} -type fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType struct{} +type fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse_messageType struct{} -func (x fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeFromReputerInTopicInSelfResponse)(nil) +func (x fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse)(nil) } -func (x fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeFromReputerInTopicInSelfResponse) +func (x fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) } -func (x fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeFromReputerInTopicInSelfResponse +func (x fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutForecasterForecasterNetworkRegretResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeFromReputerInTopicInSelfResponse +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneOutForecasterForecasterNetworkRegretResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) New() protoreflect.Message { - return new(fastReflection_QueryStakeFromReputerInTopicInSelfResponse) +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) New() protoreflect.Message { + return new(fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Interface() protoreflect.ProtoMessage { - return (*QueryStakeFromReputerInTopicInSelfResponse)(x) +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) Interface() protoreflect.ProtoMessage { + return (*QueryOneOutForecasterForecasterNetworkRegretResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4038,10 +4429,10 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Interface() // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Amount != "" { - value := protoreflect.ValueOfString(x.Amount) - if !f(fd_QueryStakeFromReputerInTopicInSelfResponse_amount, value) { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Regret != nil { + value := protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) + if !f(fd_QueryOneOutForecasterForecasterNetworkRegretResponse_regret, value) { return } } @@ -4058,15 +4449,15 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Range(f func // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeFromReputerInTopicInSelfResponse.amount": - return x.Amount != "" + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse.regret": + return x.Regret != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromReputerInTopicInSelfResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromReputerInTopicInSelfResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -4076,15 +4467,15 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Has(fd proto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeFromReputerInTopicInSelfResponse.amount": - x.Amount = "" + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse.regret": + x.Regret = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromReputerInTopicInSelfResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromReputerInTopicInSelfResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -4094,16 +4485,16 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Clear(fd pro // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeFromReputerInTopicInSelfResponse.amount": - value := x.Amount - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse.regret": + value := x.Regret + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromReputerInTopicInSelfResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromReputerInTopicInSelfResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse does not contain field %s", descriptor.FullName())) } } @@ -4117,15 +4508,15 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Get(descript // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeFromReputerInTopicInSelfResponse.amount": - x.Amount = value.Interface().(string) + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse.regret": + x.Regret = value.Message().Interface().(*TimestampedValue) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromReputerInTopicInSelfResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromReputerInTopicInSelfResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -4139,40 +4530,44 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Set(fd proto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeFromReputerInTopicInSelfResponse.amount": - panic(fmt.Errorf("field amount of message emissions.v1.QueryStakeFromReputerInTopicInSelfResponse is not mutable")) + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse.regret": + if x.Regret == nil { + x.Regret = new(TimestampedValue) + } + return protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromReputerInTopicInSelfResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromReputerInTopicInSelfResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeFromReputerInTopicInSelfResponse.amount": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse.regret": + m := new(TimestampedValue) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromReputerInTopicInSelfResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromReputerInTopicInSelfResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeFromReputerInTopicInSelfResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse", d.FullName())) } panic("unreachable") } @@ -4180,7 +4575,7 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) WhichOneof(d // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4191,7 +4586,7 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) GetUnknown() // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4203,7 +4598,7 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) SetUnknown(f // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) IsValid() bool { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) IsValid() bool { return x != nil } @@ -4213,9 +4608,9 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) IsValid() bo // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryOneOutForecasterForecasterNetworkRegretResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeFromReputerInTopicInSelfResponse) + x := input.Message.Interface().(*QueryOneOutForecasterForecasterNetworkRegretResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4227,8 +4622,8 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) ProtoMethods var n int var l int _ = l - l = len(x.Amount) - if l > 0 { + if x.Regret != nil { + l = options.Size(x.Regret) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -4241,7 +4636,7 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) ProtoMethods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeFromReputerInTopicInSelfResponse) + x := input.Message.Interface().(*QueryOneOutForecasterForecasterNetworkRegretResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4260,10 +4655,17 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) ProtoMethods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amount) > 0 { - i -= len(x.Amount) - copy(dAtA[i:], x.Amount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + if x.Regret != nil { + encoded, err := options.Marshal(x.Regret) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -4278,7 +4680,7 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) ProtoMethods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeFromReputerInTopicInSelfResponse) + x := input.Message.Interface().(*QueryOneOutForecasterForecasterNetworkRegretResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4310,17 +4712,17 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) ProtoMethods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutForecasterForecasterNetworkRegretResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneOutForecasterForecasterNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -4330,23 +4732,27 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) ProtoMethods } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Amount = string(dAtA[iNdEx:postIndex]) + if x.Regret == nil { + x.Regret = &TimestampedValue{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Regret); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -4384,28 +4790,24 @@ func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) ProtoMethods } var ( - md_QueryDelegateStakeInTopicInReputerRequest protoreflect.MessageDescriptor - fd_QueryDelegateStakeInTopicInReputerRequest_reputer_address protoreflect.FieldDescriptor - fd_QueryDelegateStakeInTopicInReputerRequest_topic_id protoreflect.FieldDescriptor + md_QueryParamsRequest protoreflect.MessageDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateStakeInTopicInReputerRequest = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateStakeInTopicInReputerRequest") - fd_QueryDelegateStakeInTopicInReputerRequest_reputer_address = md_QueryDelegateStakeInTopicInReputerRequest.Fields().ByName("reputer_address") - fd_QueryDelegateStakeInTopicInReputerRequest_topic_id = md_QueryDelegateStakeInTopicInReputerRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryParamsRequest = File_emissions_v2_query_proto.Messages().ByName("QueryParamsRequest") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeInTopicInReputerRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryParamsRequest)(nil) -type fastReflection_QueryDelegateStakeInTopicInReputerRequest QueryDelegateStakeInTopicInReputerRequest +type fastReflection_QueryParamsRequest QueryParamsRequest -func (x *QueryDelegateStakeInTopicInReputerRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeInTopicInReputerRequest)(x) +func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryParamsRequest)(x) } -func (x *QueryDelegateStakeInTopicInReputerRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[10] +func (x *QueryParamsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4416,43 +4818,43 @@ func (x *QueryDelegateStakeInTopicInReputerRequest) slowProtoReflect() protorefl return mi.MessageOf(x) } -var _fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType{} +var _fastReflection_QueryParamsRequest_messageType fastReflection_QueryParamsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryParamsRequest_messageType{} -type fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType struct{} +type fastReflection_QueryParamsRequest_messageType struct{} -func (x fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeInTopicInReputerRequest)(nil) +func (x fastReflection_QueryParamsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryParamsRequest)(nil) } -func (x fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeInTopicInReputerRequest) +func (x fastReflection_QueryParamsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryParamsRequest) } -func (x fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeInTopicInReputerRequest +func (x fastReflection_QueryParamsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeInTopicInReputerRequest +func (x *fastReflection_QueryParamsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType +func (x *fastReflection_QueryParamsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryParamsRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeInTopicInReputerRequest) +func (x *fastReflection_QueryParamsRequest) New() protoreflect.Message { + return new(fastReflection_QueryParamsRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateStakeInTopicInReputerRequest)(x) +func (x *fastReflection_QueryParamsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryParamsRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -4460,19 +4862,7 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Interface() p // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ReputerAddress != "" { - value := protoreflect.ValueOfString(x.ReputerAddress) - if !f(fd_QueryDelegateStakeInTopicInReputerRequest_reputer_address, value) { - return - } - } - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryDelegateStakeInTopicInReputerRequest_topic_id, value) { - return - } - } +func (x *fastReflection_QueryParamsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -4486,17 +4876,13 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Range(f func( // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryParamsRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeInTopicInReputerRequest.reputer_address": - return x.ReputerAddress != "" - case "emissions.v1.QueryDelegateStakeInTopicInReputerRequest.topic_id": - return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeInTopicInReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryParamsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeInTopicInReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -4506,17 +4892,13 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Has(fd protor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryParamsRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeInTopicInReputerRequest.reputer_address": - x.ReputerAddress = "" - case "emissions.v1.QueryDelegateStakeInTopicInReputerRequest.topic_id": - x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeInTopicInReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryParamsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeInTopicInReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -4526,19 +4908,13 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Clear(fd prot // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryParamsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateStakeInTopicInReputerRequest.reputer_address": - value := x.ReputerAddress - return protoreflect.ValueOfString(value) - case "emissions.v1.QueryDelegateStakeInTopicInReputerRequest.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeInTopicInReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryParamsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeInTopicInReputerRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryParamsRequest does not contain field %s", descriptor.FullName())) } } @@ -4552,17 +4928,13 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Get(descripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryParamsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeInTopicInReputerRequest.reputer_address": - x.ReputerAddress = value.Interface().(string) - case "emissions.v1.QueryDelegateStakeInTopicInReputerRequest.topic_id": - x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeInTopicInReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryParamsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeInTopicInReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryParamsRequest does not contain field %s", fd.FullName())) } } @@ -4576,44 +4948,36 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Set(fd protor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryParamsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeInTopicInReputerRequest.reputer_address": - panic(fmt.Errorf("field reputer_address of message emissions.v1.QueryDelegateStakeInTopicInReputerRequest is not mutable")) - case "emissions.v1.QueryDelegateStakeInTopicInReputerRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryDelegateStakeInTopicInReputerRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeInTopicInReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryParamsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeInTopicInReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryParamsRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryParamsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeInTopicInReputerRequest.reputer_address": - return protoreflect.ValueOfString("") - case "emissions.v1.QueryDelegateStakeInTopicInReputerRequest.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeInTopicInReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryParamsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeInTopicInReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryParamsRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryParamsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateStakeInTopicInReputerRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryParamsRequest", d.FullName())) } panic("unreachable") } @@ -4621,7 +4985,7 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) WhichOneof(d // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryParamsRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -4632,7 +4996,7 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) GetUnknown() // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryParamsRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -4644,7 +5008,7 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) SetUnknown(fi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) IsValid() bool { +func (x *fastReflection_QueryParamsRequest) IsValid() bool { return x != nil } @@ -4654,9 +5018,9 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) IsValid() boo // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryParamsRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateStakeInTopicInReputerRequest) + x := input.Message.Interface().(*QueryParamsRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4668,13 +5032,6 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) ProtoMethods( var n int var l int _ = l - l = len(x.ReputerAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -4685,7 +5042,7 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) ProtoMethods( } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeInTopicInReputerRequest) + x := input.Message.Interface().(*QueryParamsRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4704,18 +5061,6 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) ProtoMethods( i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) - i-- - dAtA[i] = 0x10 - } - if len(x.ReputerAddress) > 0 { - i -= len(x.ReputerAddress) - copy(dAtA[i:], x.ReputerAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ReputerAddress))) - i-- - dAtA[i] = 0xa - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -4727,7 +5072,7 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) ProtoMethods( }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeInTopicInReputerRequest) + x := input.Message.Interface().(*QueryParamsRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -4759,63 +5104,12 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) ProtoMethods( fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ReputerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - x.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -4852,26 +5146,26 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) ProtoMethods( } var ( - md_QueryDelegateStakeInTopicInReputerResponse protoreflect.MessageDescriptor - fd_QueryDelegateStakeInTopicInReputerResponse_amount protoreflect.FieldDescriptor + md_QueryParamsResponse protoreflect.MessageDescriptor + fd_QueryParamsResponse_params protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateStakeInTopicInReputerResponse = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateStakeInTopicInReputerResponse") - fd_QueryDelegateStakeInTopicInReputerResponse_amount = md_QueryDelegateStakeInTopicInReputerResponse.Fields().ByName("amount") + file_emissions_v2_query_proto_init() + md_QueryParamsResponse = File_emissions_v2_query_proto.Messages().ByName("QueryParamsResponse") + fd_QueryParamsResponse_params = md_QueryParamsResponse.Fields().ByName("params") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeInTopicInReputerResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryParamsResponse)(nil) -type fastReflection_QueryDelegateStakeInTopicInReputerResponse QueryDelegateStakeInTopicInReputerResponse +type fastReflection_QueryParamsResponse QueryParamsResponse -func (x *QueryDelegateStakeInTopicInReputerResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeInTopicInReputerResponse)(x) +func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryParamsResponse)(x) } -func (x *QueryDelegateStakeInTopicInReputerResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[11] +func (x *QueryParamsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4882,43 +5176,43 @@ func (x *QueryDelegateStakeInTopicInReputerResponse) slowProtoReflect() protoref return mi.MessageOf(x) } -var _fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType{} +var _fastReflection_QueryParamsResponse_messageType fastReflection_QueryParamsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryParamsResponse_messageType{} -type fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType struct{} +type fastReflection_QueryParamsResponse_messageType struct{} -func (x fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeInTopicInReputerResponse)(nil) +func (x fastReflection_QueryParamsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryParamsResponse)(nil) } -func (x fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeInTopicInReputerResponse) +func (x fastReflection_QueryParamsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryParamsResponse) } -func (x fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeInTopicInReputerResponse +func (x fastReflection_QueryParamsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeInTopicInReputerResponse +func (x *fastReflection_QueryParamsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryParamsResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType +func (x *fastReflection_QueryParamsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryParamsResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeInTopicInReputerResponse) +func (x *fastReflection_QueryParamsResponse) New() protoreflect.Message { + return new(fastReflection_QueryParamsResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateStakeInTopicInReputerResponse)(x) +func (x *fastReflection_QueryParamsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryParamsResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -4926,10 +5220,10 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Interface() // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Amount != "" { - value := protoreflect.ValueOfString(x.Amount) - if !f(fd_QueryDelegateStakeInTopicInReputerResponse_amount, value) { +func (x *fastReflection_QueryParamsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Params != nil { + value := protoreflect.ValueOfMessage(x.Params.ProtoReflect()) + if !f(fd_QueryParamsResponse_params, value) { return } } @@ -4946,15 +5240,15 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Range(f func // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryParamsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeInTopicInReputerResponse.amount": - return x.Amount != "" + case "emissions.v2.QueryParamsResponse.params": + return x.Params != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeInTopicInReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryParamsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeInTopicInReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -4964,15 +5258,15 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Has(fd proto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryParamsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeInTopicInReputerResponse.amount": - x.Amount = "" + case "emissions.v2.QueryParamsResponse.params": + x.Params = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeInTopicInReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryParamsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeInTopicInReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -4982,16 +5276,16 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Clear(fd pro // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryParamsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateStakeInTopicInReputerResponse.amount": - value := x.Amount - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryParamsResponse.params": + value := x.Params + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeInTopicInReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryParamsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeInTopicInReputerResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryParamsResponse does not contain field %s", descriptor.FullName())) } } @@ -5005,15 +5299,15 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Get(descript // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryParamsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeInTopicInReputerResponse.amount": - x.Amount = value.Interface().(string) + case "emissions.v2.QueryParamsResponse.params": + x.Params = value.Message().Interface().(*Params) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeInTopicInReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryParamsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeInTopicInReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryParamsResponse does not contain field %s", fd.FullName())) } } @@ -5027,40 +5321,44 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Set(fd proto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryParamsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeInTopicInReputerResponse.amount": - panic(fmt.Errorf("field amount of message emissions.v1.QueryDelegateStakeInTopicInReputerResponse is not mutable")) + case "emissions.v2.QueryParamsResponse.params": + if x.Params == nil { + x.Params = new(Params) + } + return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeInTopicInReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryParamsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeInTopicInReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryParamsResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryParamsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeInTopicInReputerResponse.amount": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryParamsResponse.params": + m := new(Params) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeInTopicInReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryParamsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeInTopicInReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryParamsResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateStakeInTopicInReputerResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryParamsResponse", d.FullName())) } panic("unreachable") } @@ -5068,7 +5366,7 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) WhichOneof(d // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryParamsResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5079,7 +5377,7 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) GetUnknown() // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryParamsResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5091,7 +5389,7 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) SetUnknown(f // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) IsValid() bool { +func (x *fastReflection_QueryParamsResponse) IsValid() bool { return x != nil } @@ -5101,9 +5399,9 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) IsValid() bo // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryParamsResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateStakeInTopicInReputerResponse) + x := input.Message.Interface().(*QueryParamsResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5115,8 +5413,8 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) ProtoMethods var n int var l int _ = l - l = len(x.Amount) - if l > 0 { + if x.Params != nil { + l = options.Size(x.Params) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -5129,7 +5427,7 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) ProtoMethods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeInTopicInReputerResponse) + x := input.Message.Interface().(*QueryParamsResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5148,10 +5446,17 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) ProtoMethods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amount) > 0 { - i -= len(x.Amount) - copy(dAtA[i:], x.Amount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) + if x.Params != nil { + encoded, err := options.Marshal(x.Params) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -5166,7 +5471,7 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) ProtoMethods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeInTopicInReputerResponse) + x := input.Message.Interface().(*QueryParamsResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5198,17 +5503,17 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) ProtoMethods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -5218,23 +5523,27 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) ProtoMethods } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Amount = string(dAtA[iNdEx:postIndex]) + if x.Params == nil { + x.Params = &Params{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Params); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -5272,30 +5581,24 @@ func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) ProtoMethods } var ( - md_QueryStakeFromDelegatorInTopicInReputerRequest protoreflect.MessageDescriptor - fd_QueryStakeFromDelegatorInTopicInReputerRequest_delegator_address protoreflect.FieldDescriptor - fd_QueryStakeFromDelegatorInTopicInReputerRequest_reputer_address protoreflect.FieldDescriptor - fd_QueryStakeFromDelegatorInTopicInReputerRequest_topic_id protoreflect.FieldDescriptor + md_QueryTotalStakeRequest protoreflect.MessageDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeFromDelegatorInTopicInReputerRequest = File_emissions_v1_query_proto.Messages().ByName("QueryStakeFromDelegatorInTopicInReputerRequest") - fd_QueryStakeFromDelegatorInTopicInReputerRequest_delegator_address = md_QueryStakeFromDelegatorInTopicInReputerRequest.Fields().ByName("delegator_address") - fd_QueryStakeFromDelegatorInTopicInReputerRequest_reputer_address = md_QueryStakeFromDelegatorInTopicInReputerRequest.Fields().ByName("reputer_address") - fd_QueryStakeFromDelegatorInTopicInReputerRequest_topic_id = md_QueryStakeFromDelegatorInTopicInReputerRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryTotalStakeRequest = File_emissions_v2_query_proto.Messages().ByName("QueryTotalStakeRequest") } -var _ protoreflect.Message = (*fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTotalStakeRequest)(nil) -type fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest QueryStakeFromDelegatorInTopicInReputerRequest +type fastReflection_QueryTotalStakeRequest QueryTotalStakeRequest -func (x *QueryStakeFromDelegatorInTopicInReputerRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest)(x) +func (x *QueryTotalStakeRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTotalStakeRequest)(x) } -func (x *QueryStakeFromDelegatorInTopicInReputerRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[12] +func (x *QueryTotalStakeRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5306,43 +5609,43 @@ func (x *QueryStakeFromDelegatorInTopicInReputerRequest) slowProtoReflect() prot return mi.MessageOf(x) } -var _fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType{} +var _fastReflection_QueryTotalStakeRequest_messageType fastReflection_QueryTotalStakeRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTotalStakeRequest_messageType{} -type fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType struct{} +type fastReflection_QueryTotalStakeRequest_messageType struct{} -func (x fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest)(nil) +func (x fastReflection_QueryTotalStakeRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTotalStakeRequest)(nil) } -func (x fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) +func (x fastReflection_QueryTotalStakeRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTotalStakeRequest) } -func (x fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeFromDelegatorInTopicInReputerRequest +func (x fastReflection_QueryTotalStakeRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTotalStakeRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeFromDelegatorInTopicInReputerRequest +func (x *fastReflection_QueryTotalStakeRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTotalStakeRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType +func (x *fastReflection_QueryTotalStakeRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTotalStakeRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) New() protoreflect.Message { - return new(fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) +func (x *fastReflection_QueryTotalStakeRequest) New() protoreflect.Message { + return new(fastReflection_QueryTotalStakeRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Interface() protoreflect.ProtoMessage { - return (*QueryStakeFromDelegatorInTopicInReputerRequest)(x) +func (x *fastReflection_QueryTotalStakeRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTotalStakeRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -5350,25 +5653,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Interfac // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.DelegatorAddress != "" { - value := protoreflect.ValueOfString(x.DelegatorAddress) - if !f(fd_QueryStakeFromDelegatorInTopicInReputerRequest_delegator_address, value) { - return - } - } - if x.ReputerAddress != "" { - value := protoreflect.ValueOfString(x.ReputerAddress) - if !f(fd_QueryStakeFromDelegatorInTopicInReputerRequest_reputer_address, value) { - return - } - } - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryStakeFromDelegatorInTopicInReputerRequest_topic_id, value) { - return - } - } +func (x *fastReflection_QueryTotalStakeRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -5382,19 +5667,13 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Range(f // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTotalStakeRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.delegator_address": - return x.DelegatorAddress != "" - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.reputer_address": - return x.ReputerAddress != "" - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.topic_id": - return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalStakeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalStakeRequest does not contain field %s", fd.FullName())) } } @@ -5404,19 +5683,13 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Has(fd p // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTotalStakeRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.delegator_address": - x.DelegatorAddress = "" - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.reputer_address": - x.ReputerAddress = "" - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.topic_id": - x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalStakeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalStakeRequest does not contain field %s", fd.FullName())) } } @@ -5426,22 +5699,13 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Clear(fd // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTotalStakeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.delegator_address": - value := x.DelegatorAddress - return protoreflect.ValueOfString(value) - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.reputer_address": - value := x.ReputerAddress - return protoreflect.ValueOfString(value) - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalStakeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalStakeRequest does not contain field %s", descriptor.FullName())) } } @@ -5455,19 +5719,13 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Get(desc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTotalStakeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.delegator_address": - x.DelegatorAddress = value.Interface().(string) - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.reputer_address": - x.ReputerAddress = value.Interface().(string) - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.topic_id": - x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalStakeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalStakeRequest does not contain field %s", fd.FullName())) } } @@ -5481,48 +5739,36 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Set(fd p // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTotalStakeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.delegator_address": - panic(fmt.Errorf("field delegator_address of message emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest is not mutable")) - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.reputer_address": - panic(fmt.Errorf("field reputer_address of message emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest is not mutable")) - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalStakeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalStakeRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTotalStakeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.delegator_address": - return protoreflect.ValueOfString("") - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.reputer_address": - return protoreflect.ValueOfString("") - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalStakeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalStakeRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTotalStakeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTotalStakeRequest", d.FullName())) } panic("unreachable") } @@ -5530,7 +5776,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) WhichOne // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTotalStakeRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -5541,7 +5787,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) GetUnkno // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTotalStakeRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -5553,7 +5799,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) SetUnkno // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) IsValid() bool { +func (x *fastReflection_QueryTotalStakeRequest) IsValid() bool { return x != nil } @@ -5563,9 +5809,9 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) IsValid( // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTotalStakeRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicInReputerRequest) + x := input.Message.Interface().(*QueryTotalStakeRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5577,17 +5823,6 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) ProtoMet var n int var l int _ = l - l = len(x.DelegatorAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.ReputerAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -5598,7 +5833,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) ProtoMet } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicInReputerRequest) + x := input.Message.Interface().(*QueryTotalStakeRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5617,25 +5852,6 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) ProtoMet i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) - i-- - dAtA[i] = 0x18 - } - if len(x.ReputerAddress) > 0 { - i -= len(x.ReputerAddress) - copy(dAtA[i:], x.ReputerAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ReputerAddress))) - i-- - dAtA[i] = 0x12 - } - if len(x.DelegatorAddress) > 0 { - i -= len(x.DelegatorAddress) - copy(dAtA[i:], x.DelegatorAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DelegatorAddress))) - i-- - dAtA[i] = 0xa - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -5647,7 +5863,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) ProtoMet }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicInReputerRequest) + x := input.Message.Interface().(*QueryTotalStakeRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -5679,95 +5895,12 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) ProtoMet fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalStakeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.DelegatorAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ReputerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - x.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -5804,26 +5937,26 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) ProtoMet } var ( - md_QueryStakeFromDelegatorInTopicInReputerResponse protoreflect.MessageDescriptor - fd_QueryStakeFromDelegatorInTopicInReputerResponse_amount protoreflect.FieldDescriptor + md_QueryTotalStakeResponse protoreflect.MessageDescriptor + fd_QueryTotalStakeResponse_amount protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeFromDelegatorInTopicInReputerResponse = File_emissions_v1_query_proto.Messages().ByName("QueryStakeFromDelegatorInTopicInReputerResponse") - fd_QueryStakeFromDelegatorInTopicInReputerResponse_amount = md_QueryStakeFromDelegatorInTopicInReputerResponse.Fields().ByName("amount") + file_emissions_v2_query_proto_init() + md_QueryTotalStakeResponse = File_emissions_v2_query_proto.Messages().ByName("QueryTotalStakeResponse") + fd_QueryTotalStakeResponse_amount = md_QueryTotalStakeResponse.Fields().ByName("amount") } -var _ protoreflect.Message = (*fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTotalStakeResponse)(nil) -type fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse QueryStakeFromDelegatorInTopicInReputerResponse +type fastReflection_QueryTotalStakeResponse QueryTotalStakeResponse -func (x *QueryStakeFromDelegatorInTopicInReputerResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse)(x) +func (x *QueryTotalStakeResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTotalStakeResponse)(x) } -func (x *QueryStakeFromDelegatorInTopicInReputerResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[13] +func (x *QueryTotalStakeResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -5834,43 +5967,43 @@ func (x *QueryStakeFromDelegatorInTopicInReputerResponse) slowProtoReflect() pro return mi.MessageOf(x) } -var _fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType{} +var _fastReflection_QueryTotalStakeResponse_messageType fastReflection_QueryTotalStakeResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTotalStakeResponse_messageType{} -type fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType struct{} +type fastReflection_QueryTotalStakeResponse_messageType struct{} -func (x fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse)(nil) +func (x fastReflection_QueryTotalStakeResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTotalStakeResponse)(nil) } -func (x fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) +func (x fastReflection_QueryTotalStakeResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTotalStakeResponse) } -func (x fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeFromDelegatorInTopicInReputerResponse +func (x fastReflection_QueryTotalStakeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTotalStakeResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeFromDelegatorInTopicInReputerResponse +func (x *fastReflection_QueryTotalStakeResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTotalStakeResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType +func (x *fastReflection_QueryTotalStakeResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTotalStakeResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) New() protoreflect.Message { - return new(fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) +func (x *fastReflection_QueryTotalStakeResponse) New() protoreflect.Message { + return new(fastReflection_QueryTotalStakeResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Interface() protoreflect.ProtoMessage { - return (*QueryStakeFromDelegatorInTopicInReputerResponse)(x) +func (x *fastReflection_QueryTotalStakeResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTotalStakeResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -5878,10 +6011,10 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Interfa // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryTotalStakeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Amount != "" { value := protoreflect.ValueOfString(x.Amount) - if !f(fd_QueryStakeFromDelegatorInTopicInReputerResponse_amount, value) { + if !f(fd_QueryTotalStakeResponse_amount, value) { return } } @@ -5898,15 +6031,15 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Range(f // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTotalStakeResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse.amount": + case "emissions.v2.QueryTotalStakeResponse.amount": return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalStakeResponse does not contain field %s", fd.FullName())) } } @@ -5916,15 +6049,15 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Has(fd // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTotalStakeResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse.amount": + case "emissions.v2.QueryTotalStakeResponse.amount": x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalStakeResponse does not contain field %s", fd.FullName())) } } @@ -5934,16 +6067,16 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Clear(f // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTotalStakeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse.amount": + case "emissions.v2.QueryTotalStakeResponse.amount": value := x.Amount return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalStakeResponse does not contain field %s", descriptor.FullName())) } } @@ -5957,15 +6090,15 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Get(des // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTotalStakeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse.amount": + case "emissions.v2.QueryTotalStakeResponse.amount": x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalStakeResponse does not contain field %s", fd.FullName())) } } @@ -5979,40 +6112,40 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Set(fd // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTotalStakeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse.amount": - panic(fmt.Errorf("field amount of message emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse is not mutable")) + case "emissions.v2.QueryTotalStakeResponse.amount": + panic(fmt.Errorf("field amount of message emissions.v2.QueryTotalStakeResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalStakeResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTotalStakeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse.amount": + case "emissions.v2.QueryTotalStakeResponse.amount": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalStakeResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTotalStakeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTotalStakeResponse", d.FullName())) } panic("unreachable") } @@ -6020,7 +6153,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) WhichOn // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTotalStakeResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6031,7 +6164,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) GetUnkn // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTotalStakeResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6043,7 +6176,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) SetUnkn // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) IsValid() bool { +func (x *fastReflection_QueryTotalStakeResponse) IsValid() bool { return x != nil } @@ -6053,9 +6186,9 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) IsValid // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTotalStakeResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicInReputerResponse) + x := input.Message.Interface().(*QueryTotalStakeResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6081,7 +6214,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) ProtoMe } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicInReputerResponse) + x := input.Message.Interface().(*QueryTotalStakeResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6118,7 +6251,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) ProtoMe }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicInReputerResponse) + x := input.Message.Interface().(*QueryTotalStakeResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6150,10 +6283,10 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) ProtoMe fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalStakeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -6224,28 +6357,28 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) ProtoMe } var ( - md_QueryStakeFromDelegatorInTopicRequest protoreflect.MessageDescriptor - fd_QueryStakeFromDelegatorInTopicRequest_delegator_address protoreflect.FieldDescriptor - fd_QueryStakeFromDelegatorInTopicRequest_topic_id protoreflect.FieldDescriptor + md_QueryReputerStakeInTopicRequest protoreflect.MessageDescriptor + fd_QueryReputerStakeInTopicRequest_address protoreflect.FieldDescriptor + fd_QueryReputerStakeInTopicRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeFromDelegatorInTopicRequest = File_emissions_v1_query_proto.Messages().ByName("QueryStakeFromDelegatorInTopicRequest") - fd_QueryStakeFromDelegatorInTopicRequest_delegator_address = md_QueryStakeFromDelegatorInTopicRequest.Fields().ByName("delegator_address") - fd_QueryStakeFromDelegatorInTopicRequest_topic_id = md_QueryStakeFromDelegatorInTopicRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryReputerStakeInTopicRequest = File_emissions_v2_query_proto.Messages().ByName("QueryReputerStakeInTopicRequest") + fd_QueryReputerStakeInTopicRequest_address = md_QueryReputerStakeInTopicRequest.Fields().ByName("address") + fd_QueryReputerStakeInTopicRequest_topic_id = md_QueryReputerStakeInTopicRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryStakeFromDelegatorInTopicRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryReputerStakeInTopicRequest)(nil) -type fastReflection_QueryStakeFromDelegatorInTopicRequest QueryStakeFromDelegatorInTopicRequest +type fastReflection_QueryReputerStakeInTopicRequest QueryReputerStakeInTopicRequest -func (x *QueryStakeFromDelegatorInTopicRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeFromDelegatorInTopicRequest)(x) +func (x *QueryReputerStakeInTopicRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryReputerStakeInTopicRequest)(x) } -func (x *QueryStakeFromDelegatorInTopicRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[14] +func (x *QueryReputerStakeInTopicRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6256,43 +6389,43 @@ func (x *QueryStakeFromDelegatorInTopicRequest) slowProtoReflect() protoreflect. return mi.MessageOf(x) } -var _fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType{} +var _fastReflection_QueryReputerStakeInTopicRequest_messageType fastReflection_QueryReputerStakeInTopicRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryReputerStakeInTopicRequest_messageType{} -type fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType struct{} +type fastReflection_QueryReputerStakeInTopicRequest_messageType struct{} -func (x fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeFromDelegatorInTopicRequest)(nil) +func (x fastReflection_QueryReputerStakeInTopicRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryReputerStakeInTopicRequest)(nil) } -func (x fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeFromDelegatorInTopicRequest) +func (x fastReflection_QueryReputerStakeInTopicRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryReputerStakeInTopicRequest) } -func (x fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeFromDelegatorInTopicRequest +func (x fastReflection_QueryReputerStakeInTopicRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputerStakeInTopicRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeFromDelegatorInTopicRequest +func (x *fastReflection_QueryReputerStakeInTopicRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputerStakeInTopicRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType +func (x *fastReflection_QueryReputerStakeInTopicRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryReputerStakeInTopicRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) New() protoreflect.Message { - return new(fastReflection_QueryStakeFromDelegatorInTopicRequest) +func (x *fastReflection_QueryReputerStakeInTopicRequest) New() protoreflect.Message { + return new(fastReflection_QueryReputerStakeInTopicRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Interface() protoreflect.ProtoMessage { - return (*QueryStakeFromDelegatorInTopicRequest)(x) +func (x *fastReflection_QueryReputerStakeInTopicRequest) Interface() protoreflect.ProtoMessage { + return (*QueryReputerStakeInTopicRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -6300,16 +6433,16 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Interface() proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.DelegatorAddress != "" { - value := protoreflect.ValueOfString(x.DelegatorAddress) - if !f(fd_QueryStakeFromDelegatorInTopicRequest_delegator_address, value) { +func (x *fastReflection_QueryReputerStakeInTopicRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryReputerStakeInTopicRequest_address, value) { return } } if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryStakeFromDelegatorInTopicRequest_topic_id, value) { + if !f(fd_QueryReputerStakeInTopicRequest_topic_id, value) { return } } @@ -6326,17 +6459,17 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Range(f func(prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryReputerStakeInTopicRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicRequest.delegator_address": - return x.DelegatorAddress != "" - case "emissions.v1.QueryStakeFromDelegatorInTopicRequest.topic_id": + case "emissions.v2.QueryReputerStakeInTopicRequest.address": + return x.Address != "" + case "emissions.v2.QueryReputerStakeInTopicRequest.topic_id": return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerStakeInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerStakeInTopicRequest does not contain field %s", fd.FullName())) } } @@ -6346,17 +6479,17 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Has(fd protorefle // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryReputerStakeInTopicRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicRequest.delegator_address": - x.DelegatorAddress = "" - case "emissions.v1.QueryStakeFromDelegatorInTopicRequest.topic_id": + case "emissions.v2.QueryReputerStakeInTopicRequest.address": + x.Address = "" + case "emissions.v2.QueryReputerStakeInTopicRequest.topic_id": x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerStakeInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerStakeInTopicRequest does not contain field %s", fd.FullName())) } } @@ -6366,19 +6499,19 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Clear(fd protoref // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerStakeInTopicRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicRequest.delegator_address": - value := x.DelegatorAddress + case "emissions.v2.QueryReputerStakeInTopicRequest.address": + value := x.Address return protoreflect.ValueOfString(value) - case "emissions.v1.QueryStakeFromDelegatorInTopicRequest.topic_id": + case "emissions.v2.QueryReputerStakeInTopicRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerStakeInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerStakeInTopicRequest does not contain field %s", descriptor.FullName())) } } @@ -6392,17 +6525,17 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Get(descriptor pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryReputerStakeInTopicRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicRequest.delegator_address": - x.DelegatorAddress = value.Interface().(string) - case "emissions.v1.QueryStakeFromDelegatorInTopicRequest.topic_id": + case "emissions.v2.QueryReputerStakeInTopicRequest.address": + x.Address = value.Interface().(string) + case "emissions.v2.QueryReputerStakeInTopicRequest.topic_id": x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerStakeInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerStakeInTopicRequest does not contain field %s", fd.FullName())) } } @@ -6416,44 +6549,44 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Set(fd protorefle // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerStakeInTopicRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicRequest.delegator_address": - panic(fmt.Errorf("field delegator_address of message emissions.v1.QueryStakeFromDelegatorInTopicRequest is not mutable")) - case "emissions.v1.QueryStakeFromDelegatorInTopicRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryStakeFromDelegatorInTopicRequest is not mutable")) + case "emissions.v2.QueryReputerStakeInTopicRequest.address": + panic(fmt.Errorf("field address of message emissions.v2.QueryReputerStakeInTopicRequest is not mutable")) + case "emissions.v2.QueryReputerStakeInTopicRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryReputerStakeInTopicRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerStakeInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerStakeInTopicRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerStakeInTopicRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicRequest.delegator_address": + case "emissions.v2.QueryReputerStakeInTopicRequest.address": return protoreflect.ValueOfString("") - case "emissions.v1.QueryStakeFromDelegatorInTopicRequest.topic_id": + case "emissions.v2.QueryReputerStakeInTopicRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerStakeInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerStakeInTopicRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryReputerStakeInTopicRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeFromDelegatorInTopicRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryReputerStakeInTopicRequest", d.FullName())) } panic("unreachable") } @@ -6461,7 +6594,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) WhichOneof(d prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryReputerStakeInTopicRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6472,7 +6605,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) GetUnknown() prot // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryReputerStakeInTopicRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6484,7 +6617,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) IsValid() bool { +func (x *fastReflection_QueryReputerStakeInTopicRequest) IsValid() bool { return x != nil } @@ -6494,9 +6627,9 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryReputerStakeInTopicRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicRequest) + x := input.Message.Interface().(*QueryReputerStakeInTopicRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6508,7 +6641,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) ProtoMethods() *p var n int var l int _ = l - l = len(x.DelegatorAddress) + l = len(x.Address) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -6525,7 +6658,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) ProtoMethods() *p } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicRequest) + x := input.Message.Interface().(*QueryReputerStakeInTopicRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6549,10 +6682,10 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) ProtoMethods() *p i-- dAtA[i] = 0x10 } - if len(x.DelegatorAddress) > 0 { - i -= len(x.DelegatorAddress) - copy(dAtA[i:], x.DelegatorAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DelegatorAddress))) + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) i-- dAtA[i] = 0xa } @@ -6567,7 +6700,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) ProtoMethods() *p }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicRequest) + x := input.Message.Interface().(*QueryReputerStakeInTopicRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6599,15 +6732,15 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) ProtoMethods() *p fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerStakeInTopicRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerStakeInTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -6635,7 +6768,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) ProtoMethods() *p if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.DelegatorAddress = string(dAtA[iNdEx:postIndex]) + x.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -6692,26 +6825,26 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) ProtoMethods() *p } var ( - md_QueryStakeFromDelegatorInTopicResponse protoreflect.MessageDescriptor - fd_QueryStakeFromDelegatorInTopicResponse_amount protoreflect.FieldDescriptor + md_QueryReputerStakeInTopicResponse protoreflect.MessageDescriptor + fd_QueryReputerStakeInTopicResponse_amount protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeFromDelegatorInTopicResponse = File_emissions_v1_query_proto.Messages().ByName("QueryStakeFromDelegatorInTopicResponse") - fd_QueryStakeFromDelegatorInTopicResponse_amount = md_QueryStakeFromDelegatorInTopicResponse.Fields().ByName("amount") + file_emissions_v2_query_proto_init() + md_QueryReputerStakeInTopicResponse = File_emissions_v2_query_proto.Messages().ByName("QueryReputerStakeInTopicResponse") + fd_QueryReputerStakeInTopicResponse_amount = md_QueryReputerStakeInTopicResponse.Fields().ByName("amount") } -var _ protoreflect.Message = (*fastReflection_QueryStakeFromDelegatorInTopicResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryReputerStakeInTopicResponse)(nil) -type fastReflection_QueryStakeFromDelegatorInTopicResponse QueryStakeFromDelegatorInTopicResponse +type fastReflection_QueryReputerStakeInTopicResponse QueryReputerStakeInTopicResponse -func (x *QueryStakeFromDelegatorInTopicResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeFromDelegatorInTopicResponse)(x) +func (x *QueryReputerStakeInTopicResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryReputerStakeInTopicResponse)(x) } -func (x *QueryStakeFromDelegatorInTopicResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[15] +func (x *QueryReputerStakeInTopicResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6722,43 +6855,43 @@ func (x *QueryStakeFromDelegatorInTopicResponse) slowProtoReflect() protoreflect return mi.MessageOf(x) } -var _fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType{} +var _fastReflection_QueryReputerStakeInTopicResponse_messageType fastReflection_QueryReputerStakeInTopicResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryReputerStakeInTopicResponse_messageType{} -type fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType struct{} +type fastReflection_QueryReputerStakeInTopicResponse_messageType struct{} -func (x fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeFromDelegatorInTopicResponse)(nil) +func (x fastReflection_QueryReputerStakeInTopicResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryReputerStakeInTopicResponse)(nil) } -func (x fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeFromDelegatorInTopicResponse) +func (x fastReflection_QueryReputerStakeInTopicResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryReputerStakeInTopicResponse) } -func (x fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeFromDelegatorInTopicResponse +func (x fastReflection_QueryReputerStakeInTopicResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputerStakeInTopicResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeFromDelegatorInTopicResponse +func (x *fastReflection_QueryReputerStakeInTopicResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputerStakeInTopicResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType +func (x *fastReflection_QueryReputerStakeInTopicResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryReputerStakeInTopicResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) New() protoreflect.Message { - return new(fastReflection_QueryStakeFromDelegatorInTopicResponse) +func (x *fastReflection_QueryReputerStakeInTopicResponse) New() protoreflect.Message { + return new(fastReflection_QueryReputerStakeInTopicResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Interface() protoreflect.ProtoMessage { - return (*QueryStakeFromDelegatorInTopicResponse)(x) +func (x *fastReflection_QueryReputerStakeInTopicResponse) Interface() protoreflect.ProtoMessage { + return (*QueryReputerStakeInTopicResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -6766,10 +6899,10 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Interface() prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryReputerStakeInTopicResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Amount != "" { value := protoreflect.ValueOfString(x.Amount) - if !f(fd_QueryStakeFromDelegatorInTopicResponse_amount, value) { + if !f(fd_QueryReputerStakeInTopicResponse_amount, value) { return } } @@ -6786,15 +6919,15 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Range(f func(pro // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryReputerStakeInTopicResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicResponse.amount": + case "emissions.v2.QueryReputerStakeInTopicResponse.amount": return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerStakeInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerStakeInTopicResponse does not contain field %s", fd.FullName())) } } @@ -6804,15 +6937,15 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Has(fd protorefl // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryReputerStakeInTopicResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicResponse.amount": + case "emissions.v2.QueryReputerStakeInTopicResponse.amount": x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerStakeInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerStakeInTopicResponse does not contain field %s", fd.FullName())) } } @@ -6822,16 +6955,16 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Clear(fd protore // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerStakeInTopicResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicResponse.amount": + case "emissions.v2.QueryReputerStakeInTopicResponse.amount": value := x.Amount return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerStakeInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerStakeInTopicResponse does not contain field %s", descriptor.FullName())) } } @@ -6845,15 +6978,15 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Get(descriptor p // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryReputerStakeInTopicResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicResponse.amount": + case "emissions.v2.QueryReputerStakeInTopicResponse.amount": x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerStakeInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerStakeInTopicResponse does not contain field %s", fd.FullName())) } } @@ -6867,40 +7000,40 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Set(fd protorefl // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerStakeInTopicResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicResponse.amount": - panic(fmt.Errorf("field amount of message emissions.v1.QueryStakeFromDelegatorInTopicResponse is not mutable")) + case "emissions.v2.QueryReputerStakeInTopicResponse.amount": + panic(fmt.Errorf("field amount of message emissions.v2.QueryReputerStakeInTopicResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerStakeInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerStakeInTopicResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerStakeInTopicResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeFromDelegatorInTopicResponse.amount": + case "emissions.v2.QueryReputerStakeInTopicResponse.amount": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeFromDelegatorInTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerStakeInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeFromDelegatorInTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerStakeInTopicResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryReputerStakeInTopicResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeFromDelegatorInTopicResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryReputerStakeInTopicResponse", d.FullName())) } panic("unreachable") } @@ -6908,7 +7041,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) WhichOneof(d pro // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryReputerStakeInTopicResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -6919,7 +7052,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) GetUnknown() pro // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryReputerStakeInTopicResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -6931,7 +7064,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) SetUnknown(field // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) IsValid() bool { +func (x *fastReflection_QueryReputerStakeInTopicResponse) IsValid() bool { return x != nil } @@ -6941,9 +7074,9 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryReputerStakeInTopicResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicResponse) + x := input.Message.Interface().(*QueryReputerStakeInTopicResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -6969,7 +7102,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) ProtoMethods() * } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicResponse) + x := input.Message.Interface().(*QueryReputerStakeInTopicResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7006,7 +7139,7 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) ProtoMethods() * }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicResponse) + x := input.Message.Interface().(*QueryReputerStakeInTopicResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7038,10 +7171,10 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) ProtoMethods() * fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerStakeInTopicResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerStakeInTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -7111,27 +7244,75 @@ func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) ProtoMethods() * } } +var _ protoreflect.List = (*_QueryMultiReputerStakeInTopicRequest_1_list)(nil) + +type _QueryMultiReputerStakeInTopicRequest_1_list struct { + list *[]string +} + +func (x *_QueryMultiReputerStakeInTopicRequest_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryMultiReputerStakeInTopicRequest_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_QueryMultiReputerStakeInTopicRequest_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_QueryMultiReputerStakeInTopicRequest_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryMultiReputerStakeInTopicRequest_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message QueryMultiReputerStakeInTopicRequest at list field Addresses as it is not of Message kind")) +} + +func (x *_QueryMultiReputerStakeInTopicRequest_1_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_QueryMultiReputerStakeInTopicRequest_1_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_QueryMultiReputerStakeInTopicRequest_1_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryTopicStakeRequest protoreflect.MessageDescriptor - fd_QueryTopicStakeRequest_topic_id protoreflect.FieldDescriptor + md_QueryMultiReputerStakeInTopicRequest protoreflect.MessageDescriptor + fd_QueryMultiReputerStakeInTopicRequest_addresses protoreflect.FieldDescriptor + fd_QueryMultiReputerStakeInTopicRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicStakeRequest = File_emissions_v1_query_proto.Messages().ByName("QueryTopicStakeRequest") - fd_QueryTopicStakeRequest_topic_id = md_QueryTopicStakeRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryMultiReputerStakeInTopicRequest = File_emissions_v2_query_proto.Messages().ByName("QueryMultiReputerStakeInTopicRequest") + fd_QueryMultiReputerStakeInTopicRequest_addresses = md_QueryMultiReputerStakeInTopicRequest.Fields().ByName("addresses") + fd_QueryMultiReputerStakeInTopicRequest_topic_id = md_QueryMultiReputerStakeInTopicRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryTopicStakeRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryMultiReputerStakeInTopicRequest)(nil) -type fastReflection_QueryTopicStakeRequest QueryTopicStakeRequest +type fastReflection_QueryMultiReputerStakeInTopicRequest QueryMultiReputerStakeInTopicRequest -func (x *QueryTopicStakeRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicStakeRequest)(x) +func (x *QueryMultiReputerStakeInTopicRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryMultiReputerStakeInTopicRequest)(x) } -func (x *QueryTopicStakeRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[16] +func (x *QueryMultiReputerStakeInTopicRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7142,43 +7323,43 @@ func (x *QueryTopicStakeRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTopicStakeRequest_messageType fastReflection_QueryTopicStakeRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicStakeRequest_messageType{} +var _fastReflection_QueryMultiReputerStakeInTopicRequest_messageType fastReflection_QueryMultiReputerStakeInTopicRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryMultiReputerStakeInTopicRequest_messageType{} -type fastReflection_QueryTopicStakeRequest_messageType struct{} +type fastReflection_QueryMultiReputerStakeInTopicRequest_messageType struct{} -func (x fastReflection_QueryTopicStakeRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicStakeRequest)(nil) +func (x fastReflection_QueryMultiReputerStakeInTopicRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryMultiReputerStakeInTopicRequest)(nil) } -func (x fastReflection_QueryTopicStakeRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicStakeRequest) +func (x fastReflection_QueryMultiReputerStakeInTopicRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryMultiReputerStakeInTopicRequest) } -func (x fastReflection_QueryTopicStakeRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicStakeRequest +func (x fastReflection_QueryMultiReputerStakeInTopicRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryMultiReputerStakeInTopicRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicStakeRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicStakeRequest +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryMultiReputerStakeInTopicRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicStakeRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicStakeRequest_messageType +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryMultiReputerStakeInTopicRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicStakeRequest) New() protoreflect.Message { - return new(fastReflection_QueryTopicStakeRequest) +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) New() protoreflect.Message { + return new(fastReflection_QueryMultiReputerStakeInTopicRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicStakeRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTopicStakeRequest)(x) +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Interface() protoreflect.ProtoMessage { + return (*QueryMultiReputerStakeInTopicRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -7186,10 +7367,16 @@ func (x *fastReflection_QueryTopicStakeRequest) Interface() protoreflect.ProtoMe // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicStakeRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Addresses) != 0 { + value := protoreflect.ValueOfList(&_QueryMultiReputerStakeInTopicRequest_1_list{list: &x.Addresses}) + if !f(fd_QueryMultiReputerStakeInTopicRequest_addresses, value) { + return + } + } if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryTopicStakeRequest_topic_id, value) { + if !f(fd_QueryMultiReputerStakeInTopicRequest_topic_id, value) { return } } @@ -7206,15 +7393,17 @@ func (x *fastReflection_QueryTopicStakeRequest) Range(f func(protoreflect.FieldD // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicStakeRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicStakeRequest.topic_id": + case "emissions.v2.QueryMultiReputerStakeInTopicRequest.addresses": + return len(x.Addresses) != 0 + case "emissions.v2.QueryMultiReputerStakeInTopicRequest.topic_id": return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicStakeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryMultiReputerStakeInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicStakeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryMultiReputerStakeInTopicRequest does not contain field %s", fd.FullName())) } } @@ -7224,15 +7413,17 @@ func (x *fastReflection_QueryTopicStakeRequest) Has(fd protoreflect.FieldDescrip // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicStakeRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicStakeRequest.topic_id": + case "emissions.v2.QueryMultiReputerStakeInTopicRequest.addresses": + x.Addresses = nil + case "emissions.v2.QueryMultiReputerStakeInTopicRequest.topic_id": x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicStakeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryMultiReputerStakeInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicStakeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryMultiReputerStakeInTopicRequest does not contain field %s", fd.FullName())) } } @@ -7242,16 +7433,22 @@ func (x *fastReflection_QueryTopicStakeRequest) Clear(fd protoreflect.FieldDescr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicStakeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicStakeRequest.topic_id": + case "emissions.v2.QueryMultiReputerStakeInTopicRequest.addresses": + if len(x.Addresses) == 0 { + return protoreflect.ValueOfList(&_QueryMultiReputerStakeInTopicRequest_1_list{}) + } + listValue := &_QueryMultiReputerStakeInTopicRequest_1_list{list: &x.Addresses} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.QueryMultiReputerStakeInTopicRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicStakeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryMultiReputerStakeInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicStakeRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryMultiReputerStakeInTopicRequest does not contain field %s", descriptor.FullName())) } } @@ -7265,15 +7462,19 @@ func (x *fastReflection_QueryTopicStakeRequest) Get(descriptor protoreflect.Fiel // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicStakeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicStakeRequest.topic_id": + case "emissions.v2.QueryMultiReputerStakeInTopicRequest.addresses": + lv := value.List() + clv := lv.(*_QueryMultiReputerStakeInTopicRequest_1_list) + x.Addresses = *clv.list + case "emissions.v2.QueryMultiReputerStakeInTopicRequest.topic_id": x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicStakeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryMultiReputerStakeInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicStakeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryMultiReputerStakeInTopicRequest does not contain field %s", fd.FullName())) } } @@ -7287,40 +7488,49 @@ func (x *fastReflection_QueryTopicStakeRequest) Set(fd protoreflect.FieldDescrip // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicStakeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicStakeRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryTopicStakeRequest is not mutable")) + case "emissions.v2.QueryMultiReputerStakeInTopicRequest.addresses": + if x.Addresses == nil { + x.Addresses = []string{} + } + value := &_QueryMultiReputerStakeInTopicRequest_1_list{list: &x.Addresses} + return protoreflect.ValueOfList(value) + case "emissions.v2.QueryMultiReputerStakeInTopicRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryMultiReputerStakeInTopicRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicStakeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryMultiReputerStakeInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicStakeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryMultiReputerStakeInTopicRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicStakeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicStakeRequest.topic_id": + case "emissions.v2.QueryMultiReputerStakeInTopicRequest.addresses": + list := []string{} + return protoreflect.ValueOfList(&_QueryMultiReputerStakeInTopicRequest_1_list{list: &list}) + case "emissions.v2.QueryMultiReputerStakeInTopicRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicStakeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryMultiReputerStakeInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicStakeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryMultiReputerStakeInTopicRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicStakeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicStakeRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryMultiReputerStakeInTopicRequest", d.FullName())) } panic("unreachable") } @@ -7328,7 +7538,7 @@ func (x *fastReflection_QueryTopicStakeRequest) WhichOneof(d protoreflect.OneofD // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicStakeRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7339,7 +7549,7 @@ func (x *fastReflection_QueryTopicStakeRequest) GetUnknown() protoreflect.RawFie // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicStakeRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7351,7 +7561,7 @@ func (x *fastReflection_QueryTopicStakeRequest) SetUnknown(fields protoreflect.R // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicStakeRequest) IsValid() bool { +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) IsValid() bool { return x != nil } @@ -7361,9 +7571,9 @@ func (x *fastReflection_QueryTopicStakeRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicStakeRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryMultiReputerStakeInTopicRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicStakeRequest) + x := input.Message.Interface().(*QueryMultiReputerStakeInTopicRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7375,6 +7585,12 @@ func (x *fastReflection_QueryTopicStakeRequest) ProtoMethods() *protoiface.Metho var n int var l int _ = l + if len(x.Addresses) > 0 { + for _, s := range x.Addresses { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } @@ -7388,7 +7604,7 @@ func (x *fastReflection_QueryTopicStakeRequest) ProtoMethods() *protoiface.Metho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicStakeRequest) + x := input.Message.Interface().(*QueryMultiReputerStakeInTopicRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7410,7 +7626,16 @@ func (x *fastReflection_QueryTopicStakeRequest) ProtoMethods() *protoiface.Metho if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x10 + } + if len(x.Addresses) > 0 { + for iNdEx := len(x.Addresses) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.Addresses[iNdEx]) + copy(dAtA[i:], x.Addresses[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Addresses[iNdEx]))) + i-- + dAtA[i] = 0xa + } } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -7423,7 +7648,7 @@ func (x *fastReflection_QueryTopicStakeRequest) ProtoMethods() *protoiface.Metho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicStakeRequest) + x := input.Message.Interface().(*QueryMultiReputerStakeInTopicRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7455,13 +7680,45 @@ func (x *fastReflection_QueryTopicStakeRequest) ProtoMethods() *protoiface.Metho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicStakeRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMultiReputerStakeInTopicRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMultiReputerStakeInTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Addresses = append(x.Addresses, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 2: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } @@ -7515,27 +7772,78 @@ func (x *fastReflection_QueryTopicStakeRequest) ProtoMethods() *protoiface.Metho } } +var _ protoreflect.List = (*_QueryMultiReputerStakeInTopicResponse_1_list)(nil) + +type _QueryMultiReputerStakeInTopicResponse_1_list struct { + list *[]*StakeInfo +} + +func (x *_QueryMultiReputerStakeInTopicResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryMultiReputerStakeInTopicResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryMultiReputerStakeInTopicResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*StakeInfo) + (*x.list)[i] = concreteValue +} + +func (x *_QueryMultiReputerStakeInTopicResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*StakeInfo) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryMultiReputerStakeInTopicResponse_1_list) AppendMutable() protoreflect.Value { + v := new(StakeInfo) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryMultiReputerStakeInTopicResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryMultiReputerStakeInTopicResponse_1_list) NewElement() protoreflect.Value { + v := new(StakeInfo) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryMultiReputerStakeInTopicResponse_1_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryTopicStakeResponse protoreflect.MessageDescriptor - fd_QueryTopicStakeResponse_amount protoreflect.FieldDescriptor + md_QueryMultiReputerStakeInTopicResponse protoreflect.MessageDescriptor + fd_QueryMultiReputerStakeInTopicResponse_amounts protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicStakeResponse = File_emissions_v1_query_proto.Messages().ByName("QueryTopicStakeResponse") - fd_QueryTopicStakeResponse_amount = md_QueryTopicStakeResponse.Fields().ByName("amount") + file_emissions_v2_query_proto_init() + md_QueryMultiReputerStakeInTopicResponse = File_emissions_v2_query_proto.Messages().ByName("QueryMultiReputerStakeInTopicResponse") + fd_QueryMultiReputerStakeInTopicResponse_amounts = md_QueryMultiReputerStakeInTopicResponse.Fields().ByName("amounts") } -var _ protoreflect.Message = (*fastReflection_QueryTopicStakeResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryMultiReputerStakeInTopicResponse)(nil) -type fastReflection_QueryTopicStakeResponse QueryTopicStakeResponse +type fastReflection_QueryMultiReputerStakeInTopicResponse QueryMultiReputerStakeInTopicResponse -func (x *QueryTopicStakeResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicStakeResponse)(x) +func (x *QueryMultiReputerStakeInTopicResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryMultiReputerStakeInTopicResponse)(x) } -func (x *QueryTopicStakeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[17] +func (x *QueryMultiReputerStakeInTopicResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7546,43 +7854,43 @@ func (x *QueryTopicStakeResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTopicStakeResponse_messageType fastReflection_QueryTopicStakeResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicStakeResponse_messageType{} +var _fastReflection_QueryMultiReputerStakeInTopicResponse_messageType fastReflection_QueryMultiReputerStakeInTopicResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryMultiReputerStakeInTopicResponse_messageType{} -type fastReflection_QueryTopicStakeResponse_messageType struct{} +type fastReflection_QueryMultiReputerStakeInTopicResponse_messageType struct{} -func (x fastReflection_QueryTopicStakeResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicStakeResponse)(nil) +func (x fastReflection_QueryMultiReputerStakeInTopicResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryMultiReputerStakeInTopicResponse)(nil) } -func (x fastReflection_QueryTopicStakeResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicStakeResponse) +func (x fastReflection_QueryMultiReputerStakeInTopicResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryMultiReputerStakeInTopicResponse) } -func (x fastReflection_QueryTopicStakeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicStakeResponse +func (x fastReflection_QueryMultiReputerStakeInTopicResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryMultiReputerStakeInTopicResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicStakeResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicStakeResponse +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryMultiReputerStakeInTopicResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicStakeResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicStakeResponse_messageType +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryMultiReputerStakeInTopicResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicStakeResponse) New() protoreflect.Message { - return new(fastReflection_QueryTopicStakeResponse) +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) New() protoreflect.Message { + return new(fastReflection_QueryMultiReputerStakeInTopicResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicStakeResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTopicStakeResponse)(x) +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Interface() protoreflect.ProtoMessage { + return (*QueryMultiReputerStakeInTopicResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -7590,10 +7898,10 @@ func (x *fastReflection_QueryTopicStakeResponse) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicStakeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Amount != "" { - value := protoreflect.ValueOfString(x.Amount) - if !f(fd_QueryTopicStakeResponse_amount, value) { +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Amounts) != 0 { + value := protoreflect.ValueOfList(&_QueryMultiReputerStakeInTopicResponse_1_list{list: &x.Amounts}) + if !f(fd_QueryMultiReputerStakeInTopicResponse_amounts, value) { return } } @@ -7610,15 +7918,15 @@ func (x *fastReflection_QueryTopicStakeResponse) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicStakeResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicStakeResponse.amount": - return x.Amount != "" + case "emissions.v2.QueryMultiReputerStakeInTopicResponse.amounts": + return len(x.Amounts) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryMultiReputerStakeInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryMultiReputerStakeInTopicResponse does not contain field %s", fd.FullName())) } } @@ -7628,15 +7936,15 @@ func (x *fastReflection_QueryTopicStakeResponse) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicStakeResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicStakeResponse.amount": - x.Amount = "" + case "emissions.v2.QueryMultiReputerStakeInTopicResponse.amounts": + x.Amounts = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryMultiReputerStakeInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryMultiReputerStakeInTopicResponse does not contain field %s", fd.FullName())) } } @@ -7646,16 +7954,19 @@ func (x *fastReflection_QueryTopicStakeResponse) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicStakeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicStakeResponse.amount": - value := x.Amount - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryMultiReputerStakeInTopicResponse.amounts": + if len(x.Amounts) == 0 { + return protoreflect.ValueOfList(&_QueryMultiReputerStakeInTopicResponse_1_list{}) + } + listValue := &_QueryMultiReputerStakeInTopicResponse_1_list{list: &x.Amounts} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryMultiReputerStakeInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicStakeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryMultiReputerStakeInTopicResponse does not contain field %s", descriptor.FullName())) } } @@ -7669,15 +7980,17 @@ func (x *fastReflection_QueryTopicStakeResponse) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicStakeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicStakeResponse.amount": - x.Amount = value.Interface().(string) + case "emissions.v2.QueryMultiReputerStakeInTopicResponse.amounts": + lv := value.List() + clv := lv.(*_QueryMultiReputerStakeInTopicResponse_1_list) + x.Amounts = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryMultiReputerStakeInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryMultiReputerStakeInTopicResponse does not contain field %s", fd.FullName())) } } @@ -7691,40 +8004,45 @@ func (x *fastReflection_QueryTopicStakeResponse) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicStakeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicStakeResponse.amount": - panic(fmt.Errorf("field amount of message emissions.v1.QueryTopicStakeResponse is not mutable")) + case "emissions.v2.QueryMultiReputerStakeInTopicResponse.amounts": + if x.Amounts == nil { + x.Amounts = []*StakeInfo{} + } + value := &_QueryMultiReputerStakeInTopicResponse_1_list{list: &x.Amounts} + return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryMultiReputerStakeInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryMultiReputerStakeInTopicResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicStakeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicStakeResponse.amount": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryMultiReputerStakeInTopicResponse.amounts": + list := []*StakeInfo{} + return protoreflect.ValueOfList(&_QueryMultiReputerStakeInTopicResponse_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryMultiReputerStakeInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryMultiReputerStakeInTopicResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicStakeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicStakeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryMultiReputerStakeInTopicResponse", d.FullName())) } panic("unreachable") } @@ -7732,7 +8050,7 @@ func (x *fastReflection_QueryTopicStakeResponse) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicStakeResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -7743,7 +8061,7 @@ func (x *fastReflection_QueryTopicStakeResponse) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicStakeResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -7755,7 +8073,7 @@ func (x *fastReflection_QueryTopicStakeResponse) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicStakeResponse) IsValid() bool { +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) IsValid() bool { return x != nil } @@ -7765,9 +8083,9 @@ func (x *fastReflection_QueryTopicStakeResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicStakeResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryMultiReputerStakeInTopicResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicStakeResponse) + x := input.Message.Interface().(*QueryMultiReputerStakeInTopicResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7779,9 +8097,11 @@ func (x *fastReflection_QueryTopicStakeResponse) ProtoMethods() *protoiface.Meth var n int var l int _ = l - l = len(x.Amount) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if len(x.Amounts) > 0 { + for _, e := range x.Amounts { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } } if x.unknownFields != nil { n += len(x.unknownFields) @@ -7793,7 +8113,7 @@ func (x *fastReflection_QueryTopicStakeResponse) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicStakeResponse) + x := input.Message.Interface().(*QueryMultiReputerStakeInTopicResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7812,12 +8132,21 @@ func (x *fastReflection_QueryTopicStakeResponse) ProtoMethods() *protoiface.Meth i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Amount) > 0 { - i -= len(x.Amount) - copy(dAtA[i:], x.Amount) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) - i-- - dAtA[i] = 0xa + if len(x.Amounts) > 0 { + for iNdEx := len(x.Amounts) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Amounts[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -7830,7 +8159,7 @@ func (x *fastReflection_QueryTopicStakeResponse) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicStakeResponse) + x := input.Message.Interface().(*QueryMultiReputerStakeInTopicResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -7862,17 +8191,17 @@ func (x *fastReflection_QueryTopicStakeResponse) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicStakeResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMultiReputerStakeInTopicResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryMultiReputerStakeInTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amounts", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -7882,23 +8211,25 @@ func (x *fastReflection_QueryTopicStakeResponse) ProtoMethods() *protoiface.Meth } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Amount = string(dAtA[iNdEx:postIndex]) + x.Amounts = append(x.Amounts, &StakeInfo{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Amounts[len(x.Amounts)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -7936,28 +8267,28 @@ func (x *fastReflection_QueryTopicStakeResponse) ProtoMethods() *protoiface.Meth } var ( - md_QueryNetworkLossBundleAtBlockRequest protoreflect.MessageDescriptor - fd_QueryNetworkLossBundleAtBlockRequest_topic_id protoreflect.FieldDescriptor - fd_QueryNetworkLossBundleAtBlockRequest_block_height protoreflect.FieldDescriptor + md_QueryStakeFromReputerInTopicInSelfRequest protoreflect.MessageDescriptor + fd_QueryStakeFromReputerInTopicInSelfRequest_reputer_address protoreflect.FieldDescriptor + fd_QueryStakeFromReputerInTopicInSelfRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryNetworkLossBundleAtBlockRequest = File_emissions_v1_query_proto.Messages().ByName("QueryNetworkLossBundleAtBlockRequest") - fd_QueryNetworkLossBundleAtBlockRequest_topic_id = md_QueryNetworkLossBundleAtBlockRequest.Fields().ByName("topic_id") - fd_QueryNetworkLossBundleAtBlockRequest_block_height = md_QueryNetworkLossBundleAtBlockRequest.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryStakeFromReputerInTopicInSelfRequest = File_emissions_v2_query_proto.Messages().ByName("QueryStakeFromReputerInTopicInSelfRequest") + fd_QueryStakeFromReputerInTopicInSelfRequest_reputer_address = md_QueryStakeFromReputerInTopicInSelfRequest.Fields().ByName("reputer_address") + fd_QueryStakeFromReputerInTopicInSelfRequest_topic_id = md_QueryStakeFromReputerInTopicInSelfRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryNetworkLossBundleAtBlockRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeFromReputerInTopicInSelfRequest)(nil) -type fastReflection_QueryNetworkLossBundleAtBlockRequest QueryNetworkLossBundleAtBlockRequest +type fastReflection_QueryStakeFromReputerInTopicInSelfRequest QueryStakeFromReputerInTopicInSelfRequest -func (x *QueryNetworkLossBundleAtBlockRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNetworkLossBundleAtBlockRequest)(x) +func (x *QueryStakeFromReputerInTopicInSelfRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeFromReputerInTopicInSelfRequest)(x) } -func (x *QueryNetworkLossBundleAtBlockRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[18] +func (x *QueryStakeFromReputerInTopicInSelfRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7968,43 +8299,43 @@ func (x *QueryNetworkLossBundleAtBlockRequest) slowProtoReflect() protoreflect.M return mi.MessageOf(x) } -var _fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType{} +var _fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType{} -type fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType struct{} +type fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType struct{} -func (x fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNetworkLossBundleAtBlockRequest)(nil) +func (x fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeFromReputerInTopicInSelfRequest)(nil) } -func (x fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNetworkLossBundleAtBlockRequest) +func (x fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeFromReputerInTopicInSelfRequest) } -func (x fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNetworkLossBundleAtBlockRequest +func (x fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeFromReputerInTopicInSelfRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNetworkLossBundleAtBlockRequest +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeFromReputerInTopicInSelfRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeFromReputerInTopicInSelfRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) New() protoreflect.Message { - return new(fastReflection_QueryNetworkLossBundleAtBlockRequest) +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) New() protoreflect.Message { + return new(fastReflection_QueryStakeFromReputerInTopicInSelfRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Interface() protoreflect.ProtoMessage { - return (*QueryNetworkLossBundleAtBlockRequest)(x) +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Interface() protoreflect.ProtoMessage { + return (*QueryStakeFromReputerInTopicInSelfRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -8012,16 +8343,16 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Interface() protor // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryNetworkLossBundleAtBlockRequest_topic_id, value) { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ReputerAddress != "" { + value := protoreflect.ValueOfString(x.ReputerAddress) + if !f(fd_QueryStakeFromReputerInTopicInSelfRequest_reputer_address, value) { return } } - if x.BlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryNetworkLossBundleAtBlockRequest_block_height, value) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryStakeFromReputerInTopicInSelfRequest_topic_id, value) { return } } @@ -8038,17 +8369,17 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Range(f func(proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryNetworkLossBundleAtBlockRequest.topic_id": + case "emissions.v2.QueryStakeFromReputerInTopicInSelfRequest.reputer_address": + return x.ReputerAddress != "" + case "emissions.v2.QueryStakeFromReputerInTopicInSelfRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryNetworkLossBundleAtBlockRequest.block_height": - return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkLossBundleAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromReputerInTopicInSelfRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkLossBundleAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromReputerInTopicInSelfRequest does not contain field %s", fd.FullName())) } } @@ -8058,17 +8389,17 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Has(fd protoreflec // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryNetworkLossBundleAtBlockRequest.topic_id": + case "emissions.v2.QueryStakeFromReputerInTopicInSelfRequest.reputer_address": + x.ReputerAddress = "" + case "emissions.v2.QueryStakeFromReputerInTopicInSelfRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryNetworkLossBundleAtBlockRequest.block_height": - x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkLossBundleAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromReputerInTopicInSelfRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkLossBundleAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromReputerInTopicInSelfRequest does not contain field %s", fd.FullName())) } } @@ -8078,19 +8409,19 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Clear(fd protorefl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryNetworkLossBundleAtBlockRequest.topic_id": + case "emissions.v2.QueryStakeFromReputerInTopicInSelfRequest.reputer_address": + value := x.ReputerAddress + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryStakeFromReputerInTopicInSelfRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryNetworkLossBundleAtBlockRequest.block_height": - value := x.BlockHeight - return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkLossBundleAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromReputerInTopicInSelfRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkLossBundleAtBlockRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromReputerInTopicInSelfRequest does not contain field %s", descriptor.FullName())) } } @@ -8104,17 +8435,17 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Get(descriptor pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryNetworkLossBundleAtBlockRequest.topic_id": + case "emissions.v2.QueryStakeFromReputerInTopicInSelfRequest.reputer_address": + x.ReputerAddress = value.Interface().(string) + case "emissions.v2.QueryStakeFromReputerInTopicInSelfRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryNetworkLossBundleAtBlockRequest.block_height": - x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkLossBundleAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromReputerInTopicInSelfRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkLossBundleAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromReputerInTopicInSelfRequest does not contain field %s", fd.FullName())) } } @@ -8128,44 +8459,44 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Set(fd protoreflec // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryNetworkLossBundleAtBlockRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryNetworkLossBundleAtBlockRequest is not mutable")) - case "emissions.v1.QueryNetworkLossBundleAtBlockRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryNetworkLossBundleAtBlockRequest is not mutable")) + case "emissions.v2.QueryStakeFromReputerInTopicInSelfRequest.reputer_address": + panic(fmt.Errorf("field reputer_address of message emissions.v2.QueryStakeFromReputerInTopicInSelfRequest is not mutable")) + case "emissions.v2.QueryStakeFromReputerInTopicInSelfRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryStakeFromReputerInTopicInSelfRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkLossBundleAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromReputerInTopicInSelfRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkLossBundleAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromReputerInTopicInSelfRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryNetworkLossBundleAtBlockRequest.topic_id": + case "emissions.v2.QueryStakeFromReputerInTopicInSelfRequest.reputer_address": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryStakeFromReputerInTopicInSelfRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryNetworkLossBundleAtBlockRequest.block_height": - return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkLossBundleAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromReputerInTopicInSelfRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkLossBundleAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromReputerInTopicInSelfRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryNetworkLossBundleAtBlockRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeFromReputerInTopicInSelfRequest", d.FullName())) } panic("unreachable") } @@ -8173,7 +8504,7 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) WhichOneof(d proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8184,7 +8515,7 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) GetUnknown() proto // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8196,7 +8527,7 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) IsValid() bool { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) IsValid() bool { return x != nil } @@ -8206,9 +8537,9 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNetworkLossBundleAtBlockRequest) + x := input.Message.Interface().(*QueryStakeFromReputerInTopicInSelfRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8220,12 +8551,13 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) ProtoMethods() *pr var n int var l int _ = l + l = len(x.ReputerAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - if x.BlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeight)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -8236,7 +8568,7 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) ProtoMethods() *pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNetworkLossBundleAtBlockRequest) + x := input.Message.Interface().(*QueryStakeFromReputerInTopicInSelfRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8255,15 +8587,17 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) ProtoMethods() *pr i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.BlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- dAtA[i] = 0x10 } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + if len(x.ReputerAddress) > 0 { + i -= len(x.ReputerAddress) + copy(dAtA[i:], x.ReputerAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ReputerAddress))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -8276,7 +8610,7 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) ProtoMethods() *pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNetworkLossBundleAtBlockRequest) + x := input.Message.Interface().(*QueryStakeFromReputerInTopicInSelfRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8308,17 +8642,17 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) ProtoMethods() *pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkLossBundleAtBlockRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkLossBundleAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerAddress", wireType) } - x.TopicId = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -8328,16 +8662,29 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) ProtoMethods() *pr } b := dAtA[iNdEx] iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ReputerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 2: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } - x.BlockHeight = 0 + x.TopicId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -8347,7 +8694,7 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) ProtoMethods() *pr } b := dAtA[iNdEx] iNdEx++ - x.BlockHeight |= int64(b&0x7F) << shift + x.TopicId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8388,26 +8735,26 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) ProtoMethods() *pr } var ( - md_QueryNetworkLossBundleAtBlockResponse protoreflect.MessageDescriptor - fd_QueryNetworkLossBundleAtBlockResponse_loss_bundle protoreflect.FieldDescriptor + md_QueryStakeFromReputerInTopicInSelfResponse protoreflect.MessageDescriptor + fd_QueryStakeFromReputerInTopicInSelfResponse_amount protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryNetworkLossBundleAtBlockResponse = File_emissions_v1_query_proto.Messages().ByName("QueryNetworkLossBundleAtBlockResponse") - fd_QueryNetworkLossBundleAtBlockResponse_loss_bundle = md_QueryNetworkLossBundleAtBlockResponse.Fields().ByName("loss_bundle") + file_emissions_v2_query_proto_init() + md_QueryStakeFromReputerInTopicInSelfResponse = File_emissions_v2_query_proto.Messages().ByName("QueryStakeFromReputerInTopicInSelfResponse") + fd_QueryStakeFromReputerInTopicInSelfResponse_amount = md_QueryStakeFromReputerInTopicInSelfResponse.Fields().ByName("amount") } -var _ protoreflect.Message = (*fastReflection_QueryNetworkLossBundleAtBlockResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeFromReputerInTopicInSelfResponse)(nil) -type fastReflection_QueryNetworkLossBundleAtBlockResponse QueryNetworkLossBundleAtBlockResponse +type fastReflection_QueryStakeFromReputerInTopicInSelfResponse QueryStakeFromReputerInTopicInSelfResponse -func (x *QueryNetworkLossBundleAtBlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNetworkLossBundleAtBlockResponse)(x) +func (x *QueryStakeFromReputerInTopicInSelfResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeFromReputerInTopicInSelfResponse)(x) } -func (x *QueryNetworkLossBundleAtBlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[19] +func (x *QueryStakeFromReputerInTopicInSelfResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8418,43 +8765,43 @@ func (x *QueryNetworkLossBundleAtBlockResponse) slowProtoReflect() protoreflect. return mi.MessageOf(x) } -var _fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType{} +var _fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType{} -type fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType struct{} +type fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType struct{} -func (x fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNetworkLossBundleAtBlockResponse)(nil) +func (x fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeFromReputerInTopicInSelfResponse)(nil) } -func (x fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNetworkLossBundleAtBlockResponse) +func (x fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeFromReputerInTopicInSelfResponse) } -func (x fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNetworkLossBundleAtBlockResponse +func (x fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeFromReputerInTopicInSelfResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNetworkLossBundleAtBlockResponse +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeFromReputerInTopicInSelfResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeFromReputerInTopicInSelfResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) New() protoreflect.Message { - return new(fastReflection_QueryNetworkLossBundleAtBlockResponse) +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) New() protoreflect.Message { + return new(fastReflection_QueryStakeFromReputerInTopicInSelfResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Interface() protoreflect.ProtoMessage { - return (*QueryNetworkLossBundleAtBlockResponse)(x) +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Interface() protoreflect.ProtoMessage { + return (*QueryStakeFromReputerInTopicInSelfResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -8462,10 +8809,10 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Interface() proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.LossBundle != nil { - value := protoreflect.ValueOfMessage(x.LossBundle.ProtoReflect()) - if !f(fd_QueryNetworkLossBundleAtBlockResponse_loss_bundle, value) { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_QueryStakeFromReputerInTopicInSelfResponse_amount, value) { return } } @@ -8482,15 +8829,15 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Range(f func(prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryNetworkLossBundleAtBlockResponse.loss_bundle": - return x.LossBundle != nil + case "emissions.v2.QueryStakeFromReputerInTopicInSelfResponse.amount": + return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkLossBundleAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromReputerInTopicInSelfResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkLossBundleAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromReputerInTopicInSelfResponse does not contain field %s", fd.FullName())) } } @@ -8500,15 +8847,15 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Has(fd protorefle // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryNetworkLossBundleAtBlockResponse.loss_bundle": - x.LossBundle = nil + case "emissions.v2.QueryStakeFromReputerInTopicInSelfResponse.amount": + x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkLossBundleAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromReputerInTopicInSelfResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkLossBundleAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromReputerInTopicInSelfResponse does not contain field %s", fd.FullName())) } } @@ -8518,16 +8865,16 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Clear(fd protoref // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryNetworkLossBundleAtBlockResponse.loss_bundle": - value := x.LossBundle - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryStakeFromReputerInTopicInSelfResponse.amount": + value := x.Amount + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkLossBundleAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromReputerInTopicInSelfResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkLossBundleAtBlockResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromReputerInTopicInSelfResponse does not contain field %s", descriptor.FullName())) } } @@ -8541,15 +8888,15 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Get(descriptor pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryNetworkLossBundleAtBlockResponse.loss_bundle": - x.LossBundle = value.Message().Interface().(*ValueBundle) + case "emissions.v2.QueryStakeFromReputerInTopicInSelfResponse.amount": + x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkLossBundleAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromReputerInTopicInSelfResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkLossBundleAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromReputerInTopicInSelfResponse does not contain field %s", fd.FullName())) } } @@ -8563,44 +8910,40 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Set(fd protorefle // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryNetworkLossBundleAtBlockResponse.loss_bundle": - if x.LossBundle == nil { - x.LossBundle = new(ValueBundle) - } - return protoreflect.ValueOfMessage(x.LossBundle.ProtoReflect()) + case "emissions.v2.QueryStakeFromReputerInTopicInSelfResponse.amount": + panic(fmt.Errorf("field amount of message emissions.v2.QueryStakeFromReputerInTopicInSelfResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkLossBundleAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromReputerInTopicInSelfResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkLossBundleAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromReputerInTopicInSelfResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryNetworkLossBundleAtBlockResponse.loss_bundle": - m := new(ValueBundle) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryStakeFromReputerInTopicInSelfResponse.amount": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkLossBundleAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromReputerInTopicInSelfResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkLossBundleAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromReputerInTopicInSelfResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryNetworkLossBundleAtBlockResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeFromReputerInTopicInSelfResponse", d.FullName())) } panic("unreachable") } @@ -8608,7 +8951,7 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) WhichOneof(d prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -8619,7 +8962,7 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) GetUnknown() prot // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -8631,7 +8974,7 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) IsValid() bool { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) IsValid() bool { return x != nil } @@ -8641,9 +8984,9 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeFromReputerInTopicInSelfResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNetworkLossBundleAtBlockResponse) + x := input.Message.Interface().(*QueryStakeFromReputerInTopicInSelfResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8655,8 +8998,8 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) ProtoMethods() *p var n int var l int _ = l - if x.LossBundle != nil { - l = options.Size(x.LossBundle) + l = len(x.Amount) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -8669,7 +9012,7 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) ProtoMethods() *p } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNetworkLossBundleAtBlockResponse) + x := input.Message.Interface().(*QueryStakeFromReputerInTopicInSelfResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8688,17 +9031,10 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) ProtoMethods() *p i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.LossBundle != nil { - encoded, err := options.Marshal(x.LossBundle) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) i-- dAtA[i] = 0xa } @@ -8713,7 +9049,7 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) ProtoMethods() *p }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNetworkLossBundleAtBlockResponse) + x := input.Message.Interface().(*QueryStakeFromReputerInTopicInSelfResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -8745,17 +9081,17 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) ProtoMethods() *p fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkLossBundleAtBlockResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkLossBundleAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LossBundle", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -8765,27 +9101,23 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) ProtoMethods() *p } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.LossBundle == nil { - x.LossBundle = &ValueBundle{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LossBundle); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Amount = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -8823,24 +9155,28 @@ func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) ProtoMethods() *p } var ( - md_QueryNextTopicIdRequest protoreflect.MessageDescriptor + md_QueryDelegateStakeInTopicInReputerRequest protoreflect.MessageDescriptor + fd_QueryDelegateStakeInTopicInReputerRequest_reputer_address protoreflect.FieldDescriptor + fd_QueryDelegateStakeInTopicInReputerRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryNextTopicIdRequest = File_emissions_v1_query_proto.Messages().ByName("QueryNextTopicIdRequest") + file_emissions_v2_query_proto_init() + md_QueryDelegateStakeInTopicInReputerRequest = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateStakeInTopicInReputerRequest") + fd_QueryDelegateStakeInTopicInReputerRequest_reputer_address = md_QueryDelegateStakeInTopicInReputerRequest.Fields().ByName("reputer_address") + fd_QueryDelegateStakeInTopicInReputerRequest_topic_id = md_QueryDelegateStakeInTopicInReputerRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryNextTopicIdRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeInTopicInReputerRequest)(nil) -type fastReflection_QueryNextTopicIdRequest QueryNextTopicIdRequest +type fastReflection_QueryDelegateStakeInTopicInReputerRequest QueryDelegateStakeInTopicInReputerRequest -func (x *QueryNextTopicIdRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNextTopicIdRequest)(x) +func (x *QueryDelegateStakeInTopicInReputerRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeInTopicInReputerRequest)(x) } -func (x *QueryNextTopicIdRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[20] +func (x *QueryDelegateStakeInTopicInReputerRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8851,43 +9187,43 @@ func (x *QueryNextTopicIdRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryNextTopicIdRequest_messageType fastReflection_QueryNextTopicIdRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryNextTopicIdRequest_messageType{} +var _fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType{} -type fastReflection_QueryNextTopicIdRequest_messageType struct{} +type fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType struct{} -func (x fastReflection_QueryNextTopicIdRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNextTopicIdRequest)(nil) +func (x fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeInTopicInReputerRequest)(nil) } -func (x fastReflection_QueryNextTopicIdRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNextTopicIdRequest) +func (x fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeInTopicInReputerRequest) } -func (x fastReflection_QueryNextTopicIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNextTopicIdRequest +func (x fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeInTopicInReputerRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryNextTopicIdRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNextTopicIdRequest +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeInTopicInReputerRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryNextTopicIdRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryNextTopicIdRequest_messageType +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateStakeInTopicInReputerRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNextTopicIdRequest) New() protoreflect.Message { - return new(fastReflection_QueryNextTopicIdRequest) +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeInTopicInReputerRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNextTopicIdRequest) Interface() protoreflect.ProtoMessage { - return (*QueryNextTopicIdRequest)(x) +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateStakeInTopicInReputerRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -8895,7 +9231,19 @@ func (x *fastReflection_QueryNextTopicIdRequest) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryNextTopicIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ReputerAddress != "" { + value := protoreflect.ValueOfString(x.ReputerAddress) + if !f(fd_QueryDelegateStakeInTopicInReputerRequest_reputer_address, value) { + return + } + } + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryDelegateStakeInTopicInReputerRequest_topic_id, value) { + return + } + } } // Has reports whether a field is populated. @@ -8909,13 +9257,17 @@ func (x *fastReflection_QueryNextTopicIdRequest) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNextTopicIdRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "emissions.v2.QueryDelegateStakeInTopicInReputerRequest.reputer_address": + return x.ReputerAddress != "" + case "emissions.v2.QueryDelegateStakeInTopicInReputerRequest.topic_id": + return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNextTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeInTopicInReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNextTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeInTopicInReputerRequest does not contain field %s", fd.FullName())) } } @@ -8925,13 +9277,17 @@ func (x *fastReflection_QueryNextTopicIdRequest) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNextTopicIdRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "emissions.v2.QueryDelegateStakeInTopicInReputerRequest.reputer_address": + x.ReputerAddress = "" + case "emissions.v2.QueryDelegateStakeInTopicInReputerRequest.topic_id": + x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNextTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeInTopicInReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNextTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeInTopicInReputerRequest does not contain field %s", fd.FullName())) } } @@ -8941,13 +9297,19 @@ func (x *fastReflection_QueryNextTopicIdRequest) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNextTopicIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "emissions.v2.QueryDelegateStakeInTopicInReputerRequest.reputer_address": + value := x.ReputerAddress + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryDelegateStakeInTopicInReputerRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNextTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeInTopicInReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNextTopicIdRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeInTopicInReputerRequest does not contain field %s", descriptor.FullName())) } } @@ -8961,13 +9323,17 @@ func (x *fastReflection_QueryNextTopicIdRequest) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNextTopicIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "emissions.v2.QueryDelegateStakeInTopicInReputerRequest.reputer_address": + x.ReputerAddress = value.Interface().(string) + case "emissions.v2.QueryDelegateStakeInTopicInReputerRequest.topic_id": + x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNextTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeInTopicInReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNextTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeInTopicInReputerRequest does not contain field %s", fd.FullName())) } } @@ -8981,36 +9347,44 @@ func (x *fastReflection_QueryNextTopicIdRequest) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNextTopicIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryDelegateStakeInTopicInReputerRequest.reputer_address": + panic(fmt.Errorf("field reputer_address of message emissions.v2.QueryDelegateStakeInTopicInReputerRequest is not mutable")) + case "emissions.v2.QueryDelegateStakeInTopicInReputerRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryDelegateStakeInTopicInReputerRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNextTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeInTopicInReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNextTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeInTopicInReputerRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryNextTopicIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryDelegateStakeInTopicInReputerRequest.reputer_address": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryDelegateStakeInTopicInReputerRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNextTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeInTopicInReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNextTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeInTopicInReputerRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryNextTopicIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryNextTopicIdRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateStakeInTopicInReputerRequest", d.FullName())) } panic("unreachable") } @@ -9018,7 +9392,7 @@ func (x *fastReflection_QueryNextTopicIdRequest) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNextTopicIdRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9029,7 +9403,7 @@ func (x *fastReflection_QueryNextTopicIdRequest) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNextTopicIdRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9041,7 +9415,7 @@ func (x *fastReflection_QueryNextTopicIdRequest) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryNextTopicIdRequest) IsValid() bool { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) IsValid() bool { return x != nil } @@ -9051,9 +9425,9 @@ func (x *fastReflection_QueryNextTopicIdRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryNextTopicIdRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNextTopicIdRequest) + x := input.Message.Interface().(*QueryDelegateStakeInTopicInReputerRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9065,6 +9439,13 @@ func (x *fastReflection_QueryNextTopicIdRequest) ProtoMethods() *protoiface.Meth var n int var l int _ = l + l = len(x.ReputerAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -9075,7 +9456,7 @@ func (x *fastReflection_QueryNextTopicIdRequest) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNextTopicIdRequest) + x := input.Message.Interface().(*QueryDelegateStakeInTopicInReputerRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9094,6 +9475,18 @@ func (x *fastReflection_QueryNextTopicIdRequest) ProtoMethods() *protoiface.Meth i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(x.ReputerAddress) > 0 { + i -= len(x.ReputerAddress) + copy(dAtA[i:], x.ReputerAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ReputerAddress))) + i-- + dAtA[i] = 0xa + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -9105,7 +9498,7 @@ func (x *fastReflection_QueryNextTopicIdRequest) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNextTopicIdRequest) + x := input.Message.Interface().(*QueryDelegateStakeInTopicInReputerRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9137,12 +9530,63 @@ func (x *fastReflection_QueryNextTopicIdRequest) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNextTopicIdRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNextTopicIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ReputerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -9179,26 +9623,26 @@ func (x *fastReflection_QueryNextTopicIdRequest) ProtoMethods() *protoiface.Meth } var ( - md_QueryNextTopicIdResponse protoreflect.MessageDescriptor - fd_QueryNextTopicIdResponse_next_topic_id protoreflect.FieldDescriptor + md_QueryDelegateStakeInTopicInReputerResponse protoreflect.MessageDescriptor + fd_QueryDelegateStakeInTopicInReputerResponse_amount protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryNextTopicIdResponse = File_emissions_v1_query_proto.Messages().ByName("QueryNextTopicIdResponse") - fd_QueryNextTopicIdResponse_next_topic_id = md_QueryNextTopicIdResponse.Fields().ByName("next_topic_id") + file_emissions_v2_query_proto_init() + md_QueryDelegateStakeInTopicInReputerResponse = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateStakeInTopicInReputerResponse") + fd_QueryDelegateStakeInTopicInReputerResponse_amount = md_QueryDelegateStakeInTopicInReputerResponse.Fields().ByName("amount") } -var _ protoreflect.Message = (*fastReflection_QueryNextTopicIdResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeInTopicInReputerResponse)(nil) -type fastReflection_QueryNextTopicIdResponse QueryNextTopicIdResponse +type fastReflection_QueryDelegateStakeInTopicInReputerResponse QueryDelegateStakeInTopicInReputerResponse -func (x *QueryNextTopicIdResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNextTopicIdResponse)(x) +func (x *QueryDelegateStakeInTopicInReputerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeInTopicInReputerResponse)(x) } -func (x *QueryNextTopicIdResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[21] +func (x *QueryDelegateStakeInTopicInReputerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9209,43 +9653,43 @@ func (x *QueryNextTopicIdResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryNextTopicIdResponse_messageType fastReflection_QueryNextTopicIdResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryNextTopicIdResponse_messageType{} +var _fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType{} -type fastReflection_QueryNextTopicIdResponse_messageType struct{} +type fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType struct{} -func (x fastReflection_QueryNextTopicIdResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNextTopicIdResponse)(nil) +func (x fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeInTopicInReputerResponse)(nil) } -func (x fastReflection_QueryNextTopicIdResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNextTopicIdResponse) +func (x fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeInTopicInReputerResponse) } -func (x fastReflection_QueryNextTopicIdResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNextTopicIdResponse +func (x fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeInTopicInReputerResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryNextTopicIdResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNextTopicIdResponse +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeInTopicInReputerResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryNextTopicIdResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryNextTopicIdResponse_messageType +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateStakeInTopicInReputerResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNextTopicIdResponse) New() protoreflect.Message { - return new(fastReflection_QueryNextTopicIdResponse) +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeInTopicInReputerResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNextTopicIdResponse) Interface() protoreflect.ProtoMessage { - return (*QueryNextTopicIdResponse)(x) +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateStakeInTopicInReputerResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -9253,10 +9697,10 @@ func (x *fastReflection_QueryNextTopicIdResponse) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryNextTopicIdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.NextTopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.NextTopicId) - if !f(fd_QueryNextTopicIdResponse_next_topic_id, value) { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_QueryDelegateStakeInTopicInReputerResponse_amount, value) { return } } @@ -9273,15 +9717,15 @@ func (x *fastReflection_QueryNextTopicIdResponse) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNextTopicIdResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryNextTopicIdResponse.next_topic_id": - return x.NextTopicId != uint64(0) + case "emissions.v2.QueryDelegateStakeInTopicInReputerResponse.amount": + return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNextTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeInTopicInReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryNextTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeInTopicInReputerResponse does not contain field %s", fd.FullName())) } } @@ -9291,15 +9735,15 @@ func (x *fastReflection_QueryNextTopicIdResponse) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNextTopicIdResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryNextTopicIdResponse.next_topic_id": - x.NextTopicId = uint64(0) + case "emissions.v2.QueryDelegateStakeInTopicInReputerResponse.amount": + x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNextTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeInTopicInReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryNextTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeInTopicInReputerResponse does not contain field %s", fd.FullName())) } } @@ -9309,16 +9753,16 @@ func (x *fastReflection_QueryNextTopicIdResponse) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNextTopicIdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryNextTopicIdResponse.next_topic_id": - value := x.NextTopicId - return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryDelegateStakeInTopicInReputerResponse.amount": + value := x.Amount + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNextTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeInTopicInReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryNextTopicIdResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeInTopicInReputerResponse does not contain field %s", descriptor.FullName())) } } @@ -9332,15 +9776,15 @@ func (x *fastReflection_QueryNextTopicIdResponse) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNextTopicIdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryNextTopicIdResponse.next_topic_id": - x.NextTopicId = value.Uint() + case "emissions.v2.QueryDelegateStakeInTopicInReputerResponse.amount": + x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNextTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeInTopicInReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryNextTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeInTopicInReputerResponse does not contain field %s", fd.FullName())) } } @@ -9354,40 +9798,40 @@ func (x *fastReflection_QueryNextTopicIdResponse) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNextTopicIdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryNextTopicIdResponse.next_topic_id": - panic(fmt.Errorf("field next_topic_id of message emissions.v1.QueryNextTopicIdResponse is not mutable")) + case "emissions.v2.QueryDelegateStakeInTopicInReputerResponse.amount": + panic(fmt.Errorf("field amount of message emissions.v2.QueryDelegateStakeInTopicInReputerResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNextTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeInTopicInReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryNextTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeInTopicInReputerResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryNextTopicIdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryNextTopicIdResponse.next_topic_id": - return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryDelegateStakeInTopicInReputerResponse.amount": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNextTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeInTopicInReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryNextTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeInTopicInReputerResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryNextTopicIdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryNextTopicIdResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateStakeInTopicInReputerResponse", d.FullName())) } panic("unreachable") } @@ -9395,7 +9839,7 @@ func (x *fastReflection_QueryNextTopicIdResponse) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNextTopicIdResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9406,7 +9850,7 @@ func (x *fastReflection_QueryNextTopicIdResponse) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNextTopicIdResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9418,7 +9862,7 @@ func (x *fastReflection_QueryNextTopicIdResponse) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryNextTopicIdResponse) IsValid() bool { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) IsValid() bool { return x != nil } @@ -9428,9 +9872,9 @@ func (x *fastReflection_QueryNextTopicIdResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryNextTopicIdResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateStakeInTopicInReputerResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNextTopicIdResponse) + x := input.Message.Interface().(*QueryDelegateStakeInTopicInReputerResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9442,8 +9886,9 @@ func (x *fastReflection_QueryNextTopicIdResponse) ProtoMethods() *protoiface.Met var n int var l int _ = l - if x.NextTopicId != 0 { - n += 1 + runtime.Sov(uint64(x.NextTopicId)) + l = len(x.Amount) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -9455,7 +9900,7 @@ func (x *fastReflection_QueryNextTopicIdResponse) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNextTopicIdResponse) + x := input.Message.Interface().(*QueryDelegateStakeInTopicInReputerResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9474,10 +9919,12 @@ func (x *fastReflection_QueryNextTopicIdResponse) ProtoMethods() *protoiface.Met i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.NextTopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.NextTopicId)) + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -9490,7 +9937,7 @@ func (x *fastReflection_QueryNextTopicIdResponse) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNextTopicIdResponse) + x := input.Message.Interface().(*QueryDelegateStakeInTopicInReputerResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9522,17 +9969,17 @@ func (x *fastReflection_QueryNextTopicIdResponse) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNextTopicIdResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNextTopicIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NextTopicId", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - x.NextTopicId = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -9542,11 +9989,24 @@ func (x *fastReflection_QueryNextTopicIdResponse) ProtoMethods() *protoiface.Met } b := dAtA[iNdEx] iNdEx++ - x.NextTopicId |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Amount = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -9583,26 +10043,30 @@ func (x *fastReflection_QueryNextTopicIdResponse) ProtoMethods() *protoiface.Met } var ( - md_QueryTopicRequest protoreflect.MessageDescriptor - fd_QueryTopicRequest_topic_id protoreflect.FieldDescriptor + md_QueryStakeFromDelegatorInTopicInReputerRequest protoreflect.MessageDescriptor + fd_QueryStakeFromDelegatorInTopicInReputerRequest_delegator_address protoreflect.FieldDescriptor + fd_QueryStakeFromDelegatorInTopicInReputerRequest_reputer_address protoreflect.FieldDescriptor + fd_QueryStakeFromDelegatorInTopicInReputerRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicRequest = File_emissions_v1_query_proto.Messages().ByName("QueryTopicRequest") - fd_QueryTopicRequest_topic_id = md_QueryTopicRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryStakeFromDelegatorInTopicInReputerRequest = File_emissions_v2_query_proto.Messages().ByName("QueryStakeFromDelegatorInTopicInReputerRequest") + fd_QueryStakeFromDelegatorInTopicInReputerRequest_delegator_address = md_QueryStakeFromDelegatorInTopicInReputerRequest.Fields().ByName("delegator_address") + fd_QueryStakeFromDelegatorInTopicInReputerRequest_reputer_address = md_QueryStakeFromDelegatorInTopicInReputerRequest.Fields().ByName("reputer_address") + fd_QueryStakeFromDelegatorInTopicInReputerRequest_topic_id = md_QueryStakeFromDelegatorInTopicInReputerRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryTopicRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest)(nil) -type fastReflection_QueryTopicRequest QueryTopicRequest +type fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest QueryStakeFromDelegatorInTopicInReputerRequest -func (x *QueryTopicRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicRequest)(x) +func (x *QueryStakeFromDelegatorInTopicInReputerRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest)(x) } -func (x *QueryTopicRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[22] +func (x *QueryStakeFromDelegatorInTopicInReputerRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9613,43 +10077,43 @@ func (x *QueryTopicRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTopicRequest_messageType fastReflection_QueryTopicRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicRequest_messageType{} +var _fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType{} -type fastReflection_QueryTopicRequest_messageType struct{} +type fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType struct{} -func (x fastReflection_QueryTopicRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicRequest)(nil) +func (x fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest)(nil) } -func (x fastReflection_QueryTopicRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicRequest) +func (x fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) } -func (x fastReflection_QueryTopicRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicRequest +func (x fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeFromDelegatorInTopicInReputerRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicRequest +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeFromDelegatorInTopicInReputerRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicRequest_messageType +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicRequest) New() protoreflect.Message { - return new(fastReflection_QueryTopicRequest) +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) New() protoreflect.Message { + return new(fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTopicRequest)(x) +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Interface() protoreflect.ProtoMessage { + return (*QueryStakeFromDelegatorInTopicInReputerRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -9657,10 +10121,22 @@ func (x *fastReflection_QueryTopicRequest) Interface() protoreflect.ProtoMessage // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DelegatorAddress != "" { + value := protoreflect.ValueOfString(x.DelegatorAddress) + if !f(fd_QueryStakeFromDelegatorInTopicInReputerRequest_delegator_address, value) { + return + } + } + if x.ReputerAddress != "" { + value := protoreflect.ValueOfString(x.ReputerAddress) + if !f(fd_QueryStakeFromDelegatorInTopicInReputerRequest_reputer_address, value) { + return + } + } if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryTopicRequest_topic_id, value) { + if !f(fd_QueryStakeFromDelegatorInTopicInReputerRequest_topic_id, value) { return } } @@ -9677,15 +10153,19 @@ func (x *fastReflection_QueryTopicRequest) Range(f func(protoreflect.FieldDescri // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicRequest.topic_id": + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.delegator_address": + return x.DelegatorAddress != "" + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.reputer_address": + return x.ReputerAddress != "" + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.topic_id": return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest does not contain field %s", fd.FullName())) } } @@ -9695,15 +10175,19 @@ func (x *fastReflection_QueryTopicRequest) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicRequest.topic_id": + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.delegator_address": + x.DelegatorAddress = "" + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.reputer_address": + x.ReputerAddress = "" + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.topic_id": x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest does not contain field %s", fd.FullName())) } } @@ -9713,16 +10197,22 @@ func (x *fastReflection_QueryTopicRequest) Clear(fd protoreflect.FieldDescriptor // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicRequest.topic_id": + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.delegator_address": + value := x.DelegatorAddress + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.reputer_address": + value := x.ReputerAddress + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest does not contain field %s", descriptor.FullName())) } } @@ -9736,15 +10226,19 @@ func (x *fastReflection_QueryTopicRequest) Get(descriptor protoreflect.FieldDesc // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicRequest.topic_id": + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.delegator_address": + x.DelegatorAddress = value.Interface().(string) + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.reputer_address": + x.ReputerAddress = value.Interface().(string) + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.topic_id": x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest does not contain field %s", fd.FullName())) } } @@ -9758,40 +10252,48 @@ func (x *fastReflection_QueryTopicRequest) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryTopicRequest is not mutable")) + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.delegator_address": + panic(fmt.Errorf("field delegator_address of message emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest is not mutable")) + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.reputer_address": + panic(fmt.Errorf("field reputer_address of message emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest is not mutable")) + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicRequest.topic_id": + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.delegator_address": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.reputer_address": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest", d.FullName())) } panic("unreachable") } @@ -9799,7 +10301,7 @@ func (x *fastReflection_QueryTopicRequest) WhichOneof(d protoreflect.OneofDescri // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9810,7 +10312,7 @@ func (x *fastReflection_QueryTopicRequest) GetUnknown() protoreflect.RawFields { // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9822,7 +10324,7 @@ func (x *fastReflection_QueryTopicRequest) SetUnknown(fields protoreflect.RawFie // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicRequest) IsValid() bool { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) IsValid() bool { return x != nil } @@ -9832,9 +10334,9 @@ func (x *fastReflection_QueryTopicRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicRequest) + x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicInReputerRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9846,6 +10348,14 @@ func (x *fastReflection_QueryTopicRequest) ProtoMethods() *protoiface.Methods { var n int var l int _ = l + l = len(x.DelegatorAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ReputerAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } @@ -9859,7 +10369,7 @@ func (x *fastReflection_QueryTopicRequest) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicRequest) + x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicInReputerRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9881,7 +10391,21 @@ func (x *fastReflection_QueryTopicRequest) ProtoMethods() *protoiface.Methods { if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x18 + } + if len(x.ReputerAddress) > 0 { + i -= len(x.ReputerAddress) + copy(dAtA[i:], x.ReputerAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ReputerAddress))) + i-- + dAtA[i] = 0x12 + } + if len(x.DelegatorAddress) > 0 { + i -= len(x.DelegatorAddress) + copy(dAtA[i:], x.DelegatorAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DelegatorAddress))) + i-- + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -9894,7 +10418,7 @@ func (x *fastReflection_QueryTopicRequest) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicRequest) + x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicInReputerRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9926,13 +10450,77 @@ func (x *fastReflection_QueryTopicRequest) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.DelegatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ReputerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } @@ -9987,30 +10575,26 @@ func (x *fastReflection_QueryTopicRequest) ProtoMethods() *protoiface.Methods { } var ( - md_QueryTopicResponse protoreflect.MessageDescriptor - fd_QueryTopicResponse_topic protoreflect.FieldDescriptor - fd_QueryTopicResponse_weight protoreflect.FieldDescriptor - fd_QueryTopicResponse_effective_revenue protoreflect.FieldDescriptor + md_QueryStakeFromDelegatorInTopicInReputerResponse protoreflect.MessageDescriptor + fd_QueryStakeFromDelegatorInTopicInReputerResponse_amount protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicResponse = File_emissions_v1_query_proto.Messages().ByName("QueryTopicResponse") - fd_QueryTopicResponse_topic = md_QueryTopicResponse.Fields().ByName("topic") - fd_QueryTopicResponse_weight = md_QueryTopicResponse.Fields().ByName("weight") - fd_QueryTopicResponse_effective_revenue = md_QueryTopicResponse.Fields().ByName("effective_revenue") + file_emissions_v2_query_proto_init() + md_QueryStakeFromDelegatorInTopicInReputerResponse = File_emissions_v2_query_proto.Messages().ByName("QueryStakeFromDelegatorInTopicInReputerResponse") + fd_QueryStakeFromDelegatorInTopicInReputerResponse_amount = md_QueryStakeFromDelegatorInTopicInReputerResponse.Fields().ByName("amount") } -var _ protoreflect.Message = (*fastReflection_QueryTopicResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse)(nil) -type fastReflection_QueryTopicResponse QueryTopicResponse +type fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse QueryStakeFromDelegatorInTopicInReputerResponse -func (x *QueryTopicResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicResponse)(x) +func (x *QueryStakeFromDelegatorInTopicInReputerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse)(x) } -func (x *QueryTopicResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[23] +func (x *QueryStakeFromDelegatorInTopicInReputerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10021,43 +10605,43 @@ func (x *QueryTopicResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTopicResponse_messageType fastReflection_QueryTopicResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicResponse_messageType{} +var _fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType{} -type fastReflection_QueryTopicResponse_messageType struct{} +type fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType struct{} -func (x fastReflection_QueryTopicResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicResponse)(nil) +func (x fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse)(nil) } -func (x fastReflection_QueryTopicResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicResponse) +func (x fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) } -func (x fastReflection_QueryTopicResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicResponse +func (x fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeFromDelegatorInTopicInReputerResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicResponse +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeFromDelegatorInTopicInReputerResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicResponse_messageType +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicResponse) New() protoreflect.Message { - return new(fastReflection_QueryTopicResponse) +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) New() protoreflect.Message { + return new(fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTopicResponse)(x) +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Interface() protoreflect.ProtoMessage { + return (*QueryStakeFromDelegatorInTopicInReputerResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -10065,22 +10649,10 @@ func (x *fastReflection_QueryTopicResponse) Interface() protoreflect.ProtoMessag // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Topic != nil { - value := protoreflect.ValueOfMessage(x.Topic.ProtoReflect()) - if !f(fd_QueryTopicResponse_topic, value) { - return - } - } - if x.Weight != "" { - value := protoreflect.ValueOfString(x.Weight) - if !f(fd_QueryTopicResponse_weight, value) { - return - } - } - if x.EffectiveRevenue != "" { - value := protoreflect.ValueOfString(x.EffectiveRevenue) - if !f(fd_QueryTopicResponse_effective_revenue, value) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_QueryStakeFromDelegatorInTopicInReputerResponse_amount, value) { return } } @@ -10097,19 +10669,15 @@ func (x *fastReflection_QueryTopicResponse) Range(f func(protoreflect.FieldDescr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicResponse.topic": - return x.Topic != nil - case "emissions.v1.QueryTopicResponse.weight": - return x.Weight != "" - case "emissions.v1.QueryTopicResponse.effective_revenue": - return x.EffectiveRevenue != "" + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse.amount": + return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse does not contain field %s", fd.FullName())) } } @@ -10119,19 +10687,15 @@ func (x *fastReflection_QueryTopicResponse) Has(fd protoreflect.FieldDescriptor) // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicResponse.topic": - x.Topic = nil - case "emissions.v1.QueryTopicResponse.weight": - x.Weight = "" - case "emissions.v1.QueryTopicResponse.effective_revenue": - x.EffectiveRevenue = "" + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse.amount": + x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse does not contain field %s", fd.FullName())) } } @@ -10141,22 +10705,16 @@ func (x *fastReflection_QueryTopicResponse) Clear(fd protoreflect.FieldDescripto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicResponse.topic": - value := x.Topic - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "emissions.v1.QueryTopicResponse.weight": - value := x.Weight - return protoreflect.ValueOfString(value) - case "emissions.v1.QueryTopicResponse.effective_revenue": - value := x.EffectiveRevenue + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse.amount": + value := x.Amount return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse does not contain field %s", descriptor.FullName())) } } @@ -10170,19 +10728,15 @@ func (x *fastReflection_QueryTopicResponse) Get(descriptor protoreflect.FieldDes // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicResponse.topic": - x.Topic = value.Message().Interface().(*Topic) - case "emissions.v1.QueryTopicResponse.weight": - x.Weight = value.Interface().(string) - case "emissions.v1.QueryTopicResponse.effective_revenue": - x.EffectiveRevenue = value.Interface().(string) + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse.amount": + x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse does not contain field %s", fd.FullName())) } } @@ -10196,52 +10750,40 @@ func (x *fastReflection_QueryTopicResponse) Set(fd protoreflect.FieldDescriptor, // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicResponse.topic": - if x.Topic == nil { - x.Topic = new(Topic) - } - return protoreflect.ValueOfMessage(x.Topic.ProtoReflect()) - case "emissions.v1.QueryTopicResponse.weight": - panic(fmt.Errorf("field weight of message emissions.v1.QueryTopicResponse is not mutable")) - case "emissions.v1.QueryTopicResponse.effective_revenue": - panic(fmt.Errorf("field effective_revenue of message emissions.v1.QueryTopicResponse is not mutable")) + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse.amount": + panic(fmt.Errorf("field amount of message emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicResponse.topic": - m := new(Topic) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "emissions.v1.QueryTopicResponse.weight": - return protoreflect.ValueOfString("") - case "emissions.v1.QueryTopicResponse.effective_revenue": + case "emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse.amount": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse", d.FullName())) } panic("unreachable") } @@ -10249,7 +10791,7 @@ func (x *fastReflection_QueryTopicResponse) WhichOneof(d protoreflect.OneofDescr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10260,7 +10802,7 @@ func (x *fastReflection_QueryTopicResponse) GetUnknown() protoreflect.RawFields // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10272,7 +10814,7 @@ func (x *fastReflection_QueryTopicResponse) SetUnknown(fields protoreflect.RawFi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicResponse) IsValid() bool { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) IsValid() bool { return x != nil } @@ -10282,9 +10824,9 @@ func (x *fastReflection_QueryTopicResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeFromDelegatorInTopicInReputerResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicResponse) + x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicInReputerResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10296,15 +10838,7 @@ func (x *fastReflection_QueryTopicResponse) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - if x.Topic != nil { - l = options.Size(x.Topic) - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Weight) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.EffectiveRevenue) + l = len(x.Amount) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -10318,7 +10852,7 @@ func (x *fastReflection_QueryTopicResponse) ProtoMethods() *protoiface.Methods { } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicResponse) + x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicInReputerResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10337,31 +10871,10 @@ func (x *fastReflection_QueryTopicResponse) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.EffectiveRevenue) > 0 { - i -= len(x.EffectiveRevenue) - copy(dAtA[i:], x.EffectiveRevenue) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.EffectiveRevenue))) - i-- - dAtA[i] = 0x1a - } - if len(x.Weight) > 0 { - i -= len(x.Weight) - copy(dAtA[i:], x.Weight) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Weight))) - i-- - dAtA[i] = 0x12 - } - if x.Topic != nil { - encoded, err := options.Marshal(x.Topic) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) i-- dAtA[i] = 0xa } @@ -10376,7 +10889,7 @@ func (x *fastReflection_QueryTopicResponse) ProtoMethods() *protoiface.Methods { }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicResponse) + x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicInReputerResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10408,83 +10921,15 @@ func (x *fastReflection_QueryTopicResponse) ProtoMethods() *protoiface.Methods { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Topic == nil { - x.Topic = &Topic{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Topic); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Weight = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EffectiveRevenue", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -10512,7 +10957,7 @@ func (x *fastReflection_QueryTopicResponse) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.EffectiveRevenue = string(dAtA[iNdEx:postIndex]) + x.Amount = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -10550,26 +10995,28 @@ func (x *fastReflection_QueryTopicResponse) ProtoMethods() *protoiface.Methods { } var ( - md_QueryActiveTopicsRequest protoreflect.MessageDescriptor - fd_QueryActiveTopicsRequest_pagination protoreflect.FieldDescriptor + md_QueryStakeFromDelegatorInTopicRequest protoreflect.MessageDescriptor + fd_QueryStakeFromDelegatorInTopicRequest_delegator_address protoreflect.FieldDescriptor + fd_QueryStakeFromDelegatorInTopicRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryActiveTopicsRequest = File_emissions_v1_query_proto.Messages().ByName("QueryActiveTopicsRequest") - fd_QueryActiveTopicsRequest_pagination = md_QueryActiveTopicsRequest.Fields().ByName("pagination") + file_emissions_v2_query_proto_init() + md_QueryStakeFromDelegatorInTopicRequest = File_emissions_v2_query_proto.Messages().ByName("QueryStakeFromDelegatorInTopicRequest") + fd_QueryStakeFromDelegatorInTopicRequest_delegator_address = md_QueryStakeFromDelegatorInTopicRequest.Fields().ByName("delegator_address") + fd_QueryStakeFromDelegatorInTopicRequest_topic_id = md_QueryStakeFromDelegatorInTopicRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryActiveTopicsRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeFromDelegatorInTopicRequest)(nil) -type fastReflection_QueryActiveTopicsRequest QueryActiveTopicsRequest +type fastReflection_QueryStakeFromDelegatorInTopicRequest QueryStakeFromDelegatorInTopicRequest -func (x *QueryActiveTopicsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryActiveTopicsRequest)(x) +func (x *QueryStakeFromDelegatorInTopicRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeFromDelegatorInTopicRequest)(x) } -func (x *QueryActiveTopicsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[24] +func (x *QueryStakeFromDelegatorInTopicRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10580,43 +11027,43 @@ func (x *QueryActiveTopicsRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryActiveTopicsRequest_messageType fastReflection_QueryActiveTopicsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryActiveTopicsRequest_messageType{} +var _fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType{} -type fastReflection_QueryActiveTopicsRequest_messageType struct{} +type fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType struct{} -func (x fastReflection_QueryActiveTopicsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryActiveTopicsRequest)(nil) +func (x fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeFromDelegatorInTopicRequest)(nil) } -func (x fastReflection_QueryActiveTopicsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryActiveTopicsRequest) +func (x fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeFromDelegatorInTopicRequest) } -func (x fastReflection_QueryActiveTopicsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryActiveTopicsRequest +func (x fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeFromDelegatorInTopicRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryActiveTopicsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryActiveTopicsRequest +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeFromDelegatorInTopicRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryActiveTopicsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryActiveTopicsRequest_messageType +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeFromDelegatorInTopicRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryActiveTopicsRequest) New() protoreflect.Message { - return new(fastReflection_QueryActiveTopicsRequest) +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) New() protoreflect.Message { + return new(fastReflection_QueryStakeFromDelegatorInTopicRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryActiveTopicsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryActiveTopicsRequest)(x) +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Interface() protoreflect.ProtoMessage { + return (*QueryStakeFromDelegatorInTopicRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -10624,10 +11071,16 @@ func (x *fastReflection_QueryActiveTopicsRequest) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryActiveTopicsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryActiveTopicsRequest_pagination, value) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DelegatorAddress != "" { + value := protoreflect.ValueOfString(x.DelegatorAddress) + if !f(fd_QueryStakeFromDelegatorInTopicRequest_delegator_address, value) { + return + } + } + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryStakeFromDelegatorInTopicRequest_topic_id, value) { return } } @@ -10644,15 +11097,17 @@ func (x *fastReflection_QueryActiveTopicsRequest) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryActiveTopicsRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryActiveTopicsRequest.pagination": - return x.Pagination != nil + case "emissions.v2.QueryStakeFromDelegatorInTopicRequest.delegator_address": + return x.DelegatorAddress != "" + case "emissions.v2.QueryStakeFromDelegatorInTopicRequest.topic_id": + return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryActiveTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryActiveTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicRequest does not contain field %s", fd.FullName())) } } @@ -10662,15 +11117,17 @@ func (x *fastReflection_QueryActiveTopicsRequest) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryActiveTopicsRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryActiveTopicsRequest.pagination": - x.Pagination = nil + case "emissions.v2.QueryStakeFromDelegatorInTopicRequest.delegator_address": + x.DelegatorAddress = "" + case "emissions.v2.QueryStakeFromDelegatorInTopicRequest.topic_id": + x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryActiveTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryActiveTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicRequest does not contain field %s", fd.FullName())) } } @@ -10680,16 +11137,19 @@ func (x *fastReflection_QueryActiveTopicsRequest) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryActiveTopicsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryActiveTopicsRequest.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryStakeFromDelegatorInTopicRequest.delegator_address": + value := x.DelegatorAddress + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryStakeFromDelegatorInTopicRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryActiveTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryActiveTopicsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicRequest does not contain field %s", descriptor.FullName())) } } @@ -10703,15 +11163,17 @@ func (x *fastReflection_QueryActiveTopicsRequest) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryActiveTopicsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryActiveTopicsRequest.pagination": - x.Pagination = value.Message().Interface().(*SimpleCursorPaginationRequest) + case "emissions.v2.QueryStakeFromDelegatorInTopicRequest.delegator_address": + x.DelegatorAddress = value.Interface().(string) + case "emissions.v2.QueryStakeFromDelegatorInTopicRequest.topic_id": + x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryActiveTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryActiveTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicRequest does not contain field %s", fd.FullName())) } } @@ -10725,44 +11187,44 @@ func (x *fastReflection_QueryActiveTopicsRequest) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryActiveTopicsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryActiveTopicsRequest.pagination": - if x.Pagination == nil { - x.Pagination = new(SimpleCursorPaginationRequest) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "emissions.v2.QueryStakeFromDelegatorInTopicRequest.delegator_address": + panic(fmt.Errorf("field delegator_address of message emissions.v2.QueryStakeFromDelegatorInTopicRequest is not mutable")) + case "emissions.v2.QueryStakeFromDelegatorInTopicRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryStakeFromDelegatorInTopicRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryActiveTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryActiveTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryActiveTopicsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryActiveTopicsRequest.pagination": - m := new(SimpleCursorPaginationRequest) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryStakeFromDelegatorInTopicRequest.delegator_address": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryStakeFromDelegatorInTopicRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryActiveTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryActiveTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryActiveTopicsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryActiveTopicsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeFromDelegatorInTopicRequest", d.FullName())) } panic("unreachable") } @@ -10770,7 +11232,7 @@ func (x *fastReflection_QueryActiveTopicsRequest) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryActiveTopicsRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10781,7 +11243,7 @@ func (x *fastReflection_QueryActiveTopicsRequest) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryActiveTopicsRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10793,7 +11255,7 @@ func (x *fastReflection_QueryActiveTopicsRequest) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryActiveTopicsRequest) IsValid() bool { +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) IsValid() bool { return x != nil } @@ -10803,9 +11265,9 @@ func (x *fastReflection_QueryActiveTopicsRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryActiveTopicsRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeFromDelegatorInTopicRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryActiveTopicsRequest) + x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10817,10 +11279,13 @@ func (x *fastReflection_QueryActiveTopicsRequest) ProtoMethods() *protoiface.Met var n int var l int _ = l - if x.Pagination != nil { - l = options.Size(x.Pagination) + l = len(x.DelegatorAddress) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -10831,7 +11296,7 @@ func (x *fastReflection_QueryActiveTopicsRequest) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryActiveTopicsRequest) + x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10850,17 +11315,15 @@ func (x *fastReflection_QueryActiveTopicsRequest) ProtoMethods() *protoiface.Met i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(x.DelegatorAddress) > 0 { + i -= len(x.DelegatorAddress) + copy(dAtA[i:], x.DelegatorAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DelegatorAddress))) i-- dAtA[i] = 0xa } @@ -10875,7 +11338,7 @@ func (x *fastReflection_QueryActiveTopicsRequest) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryActiveTopicsRequest) + x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10907,17 +11370,17 @@ func (x *fastReflection_QueryActiveTopicsRequest) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryActiveTopicsRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryActiveTopicsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -10927,28 +11390,43 @@ func (x *fastReflection_QueryActiveTopicsRequest) ProtoMethods() *protoiface.Met } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Pagination == nil { - x.Pagination = &SimpleCursorPaginationRequest{} + x.DelegatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -10984,80 +11462,27 @@ func (x *fastReflection_QueryActiveTopicsRequest) ProtoMethods() *protoiface.Met } } -var _ protoreflect.List = (*_QueryActiveTopicsResponse_1_list)(nil) - -type _QueryActiveTopicsResponse_1_list struct { - list *[]*Topic -} - -func (x *_QueryActiveTopicsResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryActiveTopicsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryActiveTopicsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Topic) - (*x.list)[i] = concreteValue -} - -func (x *_QueryActiveTopicsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Topic) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryActiveTopicsResponse_1_list) AppendMutable() protoreflect.Value { - v := new(Topic) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryActiveTopicsResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryActiveTopicsResponse_1_list) NewElement() protoreflect.Value { - v := new(Topic) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryActiveTopicsResponse_1_list) IsValid() bool { - return x.list != nil -} - var ( - md_QueryActiveTopicsResponse protoreflect.MessageDescriptor - fd_QueryActiveTopicsResponse_topics protoreflect.FieldDescriptor - fd_QueryActiveTopicsResponse_pagination protoreflect.FieldDescriptor + md_QueryStakeFromDelegatorInTopicResponse protoreflect.MessageDescriptor + fd_QueryStakeFromDelegatorInTopicResponse_amount protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryActiveTopicsResponse = File_emissions_v1_query_proto.Messages().ByName("QueryActiveTopicsResponse") - fd_QueryActiveTopicsResponse_topics = md_QueryActiveTopicsResponse.Fields().ByName("topics") - fd_QueryActiveTopicsResponse_pagination = md_QueryActiveTopicsResponse.Fields().ByName("pagination") + file_emissions_v2_query_proto_init() + md_QueryStakeFromDelegatorInTopicResponse = File_emissions_v2_query_proto.Messages().ByName("QueryStakeFromDelegatorInTopicResponse") + fd_QueryStakeFromDelegatorInTopicResponse_amount = md_QueryStakeFromDelegatorInTopicResponse.Fields().ByName("amount") } -var _ protoreflect.Message = (*fastReflection_QueryActiveTopicsResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeFromDelegatorInTopicResponse)(nil) -type fastReflection_QueryActiveTopicsResponse QueryActiveTopicsResponse +type fastReflection_QueryStakeFromDelegatorInTopicResponse QueryStakeFromDelegatorInTopicResponse -func (x *QueryActiveTopicsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryActiveTopicsResponse)(x) +func (x *QueryStakeFromDelegatorInTopicResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeFromDelegatorInTopicResponse)(x) } -func (x *QueryActiveTopicsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[25] +func (x *QueryStakeFromDelegatorInTopicResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11068,43 +11493,43 @@ func (x *QueryActiveTopicsResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryActiveTopicsResponse_messageType fastReflection_QueryActiveTopicsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryActiveTopicsResponse_messageType{} +var _fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType{} -type fastReflection_QueryActiveTopicsResponse_messageType struct{} +type fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType struct{} -func (x fastReflection_QueryActiveTopicsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryActiveTopicsResponse)(nil) +func (x fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeFromDelegatorInTopicResponse)(nil) } -func (x fastReflection_QueryActiveTopicsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryActiveTopicsResponse) +func (x fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeFromDelegatorInTopicResponse) } -func (x fastReflection_QueryActiveTopicsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryActiveTopicsResponse +func (x fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeFromDelegatorInTopicResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryActiveTopicsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryActiveTopicsResponse +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeFromDelegatorInTopicResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryActiveTopicsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryActiveTopicsResponse_messageType +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeFromDelegatorInTopicResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryActiveTopicsResponse) New() protoreflect.Message { - return new(fastReflection_QueryActiveTopicsResponse) +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) New() protoreflect.Message { + return new(fastReflection_QueryStakeFromDelegatorInTopicResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryActiveTopicsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryActiveTopicsResponse)(x) +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Interface() protoreflect.ProtoMessage { + return (*QueryStakeFromDelegatorInTopicResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -11112,16 +11537,10 @@ func (x *fastReflection_QueryActiveTopicsResponse) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryActiveTopicsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Topics) != 0 { - value := protoreflect.ValueOfList(&_QueryActiveTopicsResponse_1_list{list: &x.Topics}) - if !f(fd_QueryActiveTopicsResponse_topics, value) { - return - } - } - if x.Pagination != nil { - value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) - if !f(fd_QueryActiveTopicsResponse_pagination, value) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_QueryStakeFromDelegatorInTopicResponse_amount, value) { return } } @@ -11138,17 +11557,15 @@ func (x *fastReflection_QueryActiveTopicsResponse) Range(f func(protoreflect.Fie // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryActiveTopicsResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryActiveTopicsResponse.topics": - return len(x.Topics) != 0 - case "emissions.v1.QueryActiveTopicsResponse.pagination": - return x.Pagination != nil + case "emissions.v2.QueryStakeFromDelegatorInTopicResponse.amount": + return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryActiveTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryActiveTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicResponse does not contain field %s", fd.FullName())) } } @@ -11158,17 +11575,15 @@ func (x *fastReflection_QueryActiveTopicsResponse) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryActiveTopicsResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryActiveTopicsResponse.topics": - x.Topics = nil - case "emissions.v1.QueryActiveTopicsResponse.pagination": - x.Pagination = nil + case "emissions.v2.QueryStakeFromDelegatorInTopicResponse.amount": + x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryActiveTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryActiveTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicResponse does not contain field %s", fd.FullName())) } } @@ -11178,22 +11593,16 @@ func (x *fastReflection_QueryActiveTopicsResponse) Clear(fd protoreflect.FieldDe // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryActiveTopicsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryActiveTopicsResponse.topics": - if len(x.Topics) == 0 { - return protoreflect.ValueOfList(&_QueryActiveTopicsResponse_1_list{}) - } - listValue := &_QueryActiveTopicsResponse_1_list{list: &x.Topics} - return protoreflect.ValueOfList(listValue) - case "emissions.v1.QueryActiveTopicsResponse.pagination": - value := x.Pagination - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryStakeFromDelegatorInTopicResponse.amount": + value := x.Amount + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryActiveTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryActiveTopicsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicResponse does not contain field %s", descriptor.FullName())) } } @@ -11207,19 +11616,15 @@ func (x *fastReflection_QueryActiveTopicsResponse) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryActiveTopicsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryActiveTopicsResponse.topics": - lv := value.List() - clv := lv.(*_QueryActiveTopicsResponse_1_list) - x.Topics = *clv.list - case "emissions.v1.QueryActiveTopicsResponse.pagination": - x.Pagination = value.Message().Interface().(*SimpleCursorPaginationResponse) + case "emissions.v2.QueryStakeFromDelegatorInTopicResponse.amount": + x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryActiveTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryActiveTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicResponse does not contain field %s", fd.FullName())) } } @@ -11233,53 +11638,40 @@ func (x *fastReflection_QueryActiveTopicsResponse) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryActiveTopicsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryActiveTopicsResponse.topics": - if x.Topics == nil { - x.Topics = []*Topic{} - } - value := &_QueryActiveTopicsResponse_1_list{list: &x.Topics} - return protoreflect.ValueOfList(value) - case "emissions.v1.QueryActiveTopicsResponse.pagination": - if x.Pagination == nil { - x.Pagination = new(SimpleCursorPaginationResponse) - } - return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + case "emissions.v2.QueryStakeFromDelegatorInTopicResponse.amount": + panic(fmt.Errorf("field amount of message emissions.v2.QueryStakeFromDelegatorInTopicResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryActiveTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryActiveTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryActiveTopicsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryActiveTopicsResponse.topics": - list := []*Topic{} - return protoreflect.ValueOfList(&_QueryActiveTopicsResponse_1_list{list: &list}) - case "emissions.v1.QueryActiveTopicsResponse.pagination": - m := new(SimpleCursorPaginationResponse) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryStakeFromDelegatorInTopicResponse.amount": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryActiveTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeFromDelegatorInTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryActiveTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeFromDelegatorInTopicResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryActiveTopicsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryActiveTopicsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeFromDelegatorInTopicResponse", d.FullName())) } panic("unreachable") } @@ -11287,7 +11679,7 @@ func (x *fastReflection_QueryActiveTopicsResponse) WhichOneof(d protoreflect.One // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryActiveTopicsResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11298,7 +11690,7 @@ func (x *fastReflection_QueryActiveTopicsResponse) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryActiveTopicsResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11310,7 +11702,7 @@ func (x *fastReflection_QueryActiveTopicsResponse) SetUnknown(fields protoreflec // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryActiveTopicsResponse) IsValid() bool { +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) IsValid() bool { return x != nil } @@ -11320,9 +11712,9 @@ func (x *fastReflection_QueryActiveTopicsResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryActiveTopicsResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeFromDelegatorInTopicResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryActiveTopicsResponse) + x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11334,14 +11726,8 @@ func (x *fastReflection_QueryActiveTopicsResponse) ProtoMethods() *protoiface.Me var n int var l int _ = l - if len(x.Topics) > 0 { - for _, e := range x.Topics { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.Pagination != nil { - l = options.Size(x.Pagination) + l = len(x.Amount) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -11354,7 +11740,7 @@ func (x *fastReflection_QueryActiveTopicsResponse) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryActiveTopicsResponse) + x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11373,35 +11759,12 @@ func (x *fastReflection_QueryActiveTopicsResponse) ProtoMethods() *protoiface.Me i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Pagination != nil { - encoded, err := options.Marshal(x.Pagination) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) i-- - dAtA[i] = 0x12 - } - if len(x.Topics) > 0 { - for iNdEx := len(x.Topics) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Topics[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -11414,7 +11777,7 @@ func (x *fastReflection_QueryActiveTopicsResponse) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryActiveTopicsResponse) + x := input.Message.Interface().(*QueryStakeFromDelegatorInTopicResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11446,51 +11809,17 @@ func (x *fastReflection_QueryActiveTopicsResponse) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryActiveTopicsResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryActiveTopicsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeFromDelegatorInTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Topics = append(x.Topics, &Topic{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Topics[len(x.Topics)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -11500,27 +11829,23 @@ func (x *fastReflection_QueryActiveTopicsResponse) ProtoMethods() *protoiface.Me } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Pagination == nil { - x.Pagination = &SimpleCursorPaginationResponse{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Amount = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -11558,28 +11883,26 @@ func (x *fastReflection_QueryActiveTopicsResponse) ProtoMethods() *protoiface.Me } var ( - md_QueryInferencesAtBlockRequest protoreflect.MessageDescriptor - fd_QueryInferencesAtBlockRequest_topic_id protoreflect.FieldDescriptor - fd_QueryInferencesAtBlockRequest_block_height protoreflect.FieldDescriptor + md_QueryTopicStakeRequest protoreflect.MessageDescriptor + fd_QueryTopicStakeRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryInferencesAtBlockRequest = File_emissions_v1_query_proto.Messages().ByName("QueryInferencesAtBlockRequest") - fd_QueryInferencesAtBlockRequest_topic_id = md_QueryInferencesAtBlockRequest.Fields().ByName("topic_id") - fd_QueryInferencesAtBlockRequest_block_height = md_QueryInferencesAtBlockRequest.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryTopicStakeRequest = File_emissions_v2_query_proto.Messages().ByName("QueryTopicStakeRequest") + fd_QueryTopicStakeRequest_topic_id = md_QueryTopicStakeRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryInferencesAtBlockRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTopicStakeRequest)(nil) -type fastReflection_QueryInferencesAtBlockRequest QueryInferencesAtBlockRequest +type fastReflection_QueryTopicStakeRequest QueryTopicStakeRequest -func (x *QueryInferencesAtBlockRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryInferencesAtBlockRequest)(x) +func (x *QueryTopicStakeRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTopicStakeRequest)(x) } -func (x *QueryInferencesAtBlockRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[26] +func (x *QueryTopicStakeRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11590,43 +11913,43 @@ func (x *QueryInferencesAtBlockRequest) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryInferencesAtBlockRequest_messageType fastReflection_QueryInferencesAtBlockRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryInferencesAtBlockRequest_messageType{} +var _fastReflection_QueryTopicStakeRequest_messageType fastReflection_QueryTopicStakeRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTopicStakeRequest_messageType{} -type fastReflection_QueryInferencesAtBlockRequest_messageType struct{} +type fastReflection_QueryTopicStakeRequest_messageType struct{} -func (x fastReflection_QueryInferencesAtBlockRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryInferencesAtBlockRequest)(nil) +func (x fastReflection_QueryTopicStakeRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTopicStakeRequest)(nil) } -func (x fastReflection_QueryInferencesAtBlockRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryInferencesAtBlockRequest) +func (x fastReflection_QueryTopicStakeRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTopicStakeRequest) } -func (x fastReflection_QueryInferencesAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryInferencesAtBlockRequest +func (x fastReflection_QueryTopicStakeRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicStakeRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryInferencesAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryInferencesAtBlockRequest +func (x *fastReflection_QueryTopicStakeRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicStakeRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryInferencesAtBlockRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryInferencesAtBlockRequest_messageType +func (x *fastReflection_QueryTopicStakeRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTopicStakeRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryInferencesAtBlockRequest) New() protoreflect.Message { - return new(fastReflection_QueryInferencesAtBlockRequest) +func (x *fastReflection_QueryTopicStakeRequest) New() protoreflect.Message { + return new(fastReflection_QueryTopicStakeRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryInferencesAtBlockRequest) Interface() protoreflect.ProtoMessage { - return (*QueryInferencesAtBlockRequest)(x) +func (x *fastReflection_QueryTopicStakeRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTopicStakeRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -11634,16 +11957,10 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryInferencesAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryTopicStakeRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryInferencesAtBlockRequest_topic_id, value) { - return - } - } - if x.BlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryInferencesAtBlockRequest_block_height, value) { + if !f(fd_QueryTopicStakeRequest_topic_id, value) { return } } @@ -11660,17 +11977,15 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) Range(f func(protoreflect // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryInferencesAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTopicStakeRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryInferencesAtBlockRequest.topic_id": + case "emissions.v2.QueryTopicStakeRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryInferencesAtBlockRequest.block_height": - return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferencesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicStakeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInferencesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicStakeRequest does not contain field %s", fd.FullName())) } } @@ -11680,17 +11995,15 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferencesAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTopicStakeRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryInferencesAtBlockRequest.topic_id": + case "emissions.v2.QueryTopicStakeRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryInferencesAtBlockRequest.block_height": - x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferencesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicStakeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInferencesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicStakeRequest does not contain field %s", fd.FullName())) } } @@ -11700,19 +12013,16 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) Clear(fd protoreflect.Fie // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryInferencesAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicStakeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryInferencesAtBlockRequest.topic_id": + case "emissions.v2.QueryTopicStakeRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryInferencesAtBlockRequest.block_height": - value := x.BlockHeight - return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferencesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicStakeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInferencesAtBlockRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicStakeRequest does not contain field %s", descriptor.FullName())) } } @@ -11726,17 +12036,15 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferencesAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTopicStakeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryInferencesAtBlockRequest.topic_id": + case "emissions.v2.QueryTopicStakeRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryInferencesAtBlockRequest.block_height": - x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferencesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicStakeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInferencesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicStakeRequest does not contain field %s", fd.FullName())) } } @@ -11750,44 +12058,40 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferencesAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicStakeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryInferencesAtBlockRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryInferencesAtBlockRequest is not mutable")) - case "emissions.v1.QueryInferencesAtBlockRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryInferencesAtBlockRequest is not mutable")) + case "emissions.v2.QueryTopicStakeRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryTopicStakeRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferencesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicStakeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInferencesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicStakeRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryInferencesAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicStakeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryInferencesAtBlockRequest.topic_id": + case "emissions.v2.QueryTopicStakeRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryInferencesAtBlockRequest.block_height": - return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferencesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicStakeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInferencesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicStakeRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryInferencesAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTopicStakeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryInferencesAtBlockRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTopicStakeRequest", d.FullName())) } panic("unreachable") } @@ -11795,7 +12099,7 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) WhichOneof(d protoreflect // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryInferencesAtBlockRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTopicStakeRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -11806,7 +12110,7 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferencesAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTopicStakeRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -11818,7 +12122,7 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) SetUnknown(fields protore // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryInferencesAtBlockRequest) IsValid() bool { +func (x *fastReflection_QueryTopicStakeRequest) IsValid() bool { return x != nil } @@ -11828,9 +12132,9 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryInferencesAtBlockRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTopicStakeRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryInferencesAtBlockRequest) + x := input.Message.Interface().(*QueryTopicStakeRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11845,9 +12149,6 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) ProtoMethods() *protoifac if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - if x.BlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeight)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -11858,7 +12159,7 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryInferencesAtBlockRequest) + x := input.Message.Interface().(*QueryTopicStakeRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11877,11 +12178,6 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) ProtoMethods() *protoifac i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.BlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) - i-- - dAtA[i] = 0x10 - } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- @@ -11898,7 +12194,7 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryInferencesAtBlockRequest) + x := input.Message.Interface().(*QueryTopicStakeRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -11930,10 +12226,10 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferencesAtBlockRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicStakeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferencesAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -11955,25 +12251,6 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) ProtoMethods() *protoifac break } } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) - } - x.BlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.BlockHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -12010,26 +12287,26 @@ func (x *fastReflection_QueryInferencesAtBlockRequest) ProtoMethods() *protoifac } var ( - md_QueryInferencesAtBlockResponse protoreflect.MessageDescriptor - fd_QueryInferencesAtBlockResponse_inferences protoreflect.FieldDescriptor + md_QueryTopicStakeResponse protoreflect.MessageDescriptor + fd_QueryTopicStakeResponse_amount protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryInferencesAtBlockResponse = File_emissions_v1_query_proto.Messages().ByName("QueryInferencesAtBlockResponse") - fd_QueryInferencesAtBlockResponse_inferences = md_QueryInferencesAtBlockResponse.Fields().ByName("inferences") + file_emissions_v2_query_proto_init() + md_QueryTopicStakeResponse = File_emissions_v2_query_proto.Messages().ByName("QueryTopicStakeResponse") + fd_QueryTopicStakeResponse_amount = md_QueryTopicStakeResponse.Fields().ByName("amount") } -var _ protoreflect.Message = (*fastReflection_QueryInferencesAtBlockResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTopicStakeResponse)(nil) -type fastReflection_QueryInferencesAtBlockResponse QueryInferencesAtBlockResponse +type fastReflection_QueryTopicStakeResponse QueryTopicStakeResponse -func (x *QueryInferencesAtBlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryInferencesAtBlockResponse)(x) +func (x *QueryTopicStakeResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTopicStakeResponse)(x) } -func (x *QueryInferencesAtBlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[27] +func (x *QueryTopicStakeResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12040,43 +12317,43 @@ func (x *QueryInferencesAtBlockResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryInferencesAtBlockResponse_messageType fastReflection_QueryInferencesAtBlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryInferencesAtBlockResponse_messageType{} +var _fastReflection_QueryTopicStakeResponse_messageType fastReflection_QueryTopicStakeResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTopicStakeResponse_messageType{} -type fastReflection_QueryInferencesAtBlockResponse_messageType struct{} +type fastReflection_QueryTopicStakeResponse_messageType struct{} -func (x fastReflection_QueryInferencesAtBlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryInferencesAtBlockResponse)(nil) +func (x fastReflection_QueryTopicStakeResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTopicStakeResponse)(nil) } -func (x fastReflection_QueryInferencesAtBlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryInferencesAtBlockResponse) +func (x fastReflection_QueryTopicStakeResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTopicStakeResponse) } -func (x fastReflection_QueryInferencesAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryInferencesAtBlockResponse +func (x fastReflection_QueryTopicStakeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicStakeResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryInferencesAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryInferencesAtBlockResponse +func (x *fastReflection_QueryTopicStakeResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicStakeResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryInferencesAtBlockResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryInferencesAtBlockResponse_messageType +func (x *fastReflection_QueryTopicStakeResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTopicStakeResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryInferencesAtBlockResponse) New() protoreflect.Message { - return new(fastReflection_QueryInferencesAtBlockResponse) +func (x *fastReflection_QueryTopicStakeResponse) New() protoreflect.Message { + return new(fastReflection_QueryTopicStakeResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryInferencesAtBlockResponse) Interface() protoreflect.ProtoMessage { - return (*QueryInferencesAtBlockResponse)(x) +func (x *fastReflection_QueryTopicStakeResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTopicStakeResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -12084,10 +12361,10 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryInferencesAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Inferences != nil { - value := protoreflect.ValueOfMessage(x.Inferences.ProtoReflect()) - if !f(fd_QueryInferencesAtBlockResponse_inferences, value) { +func (x *fastReflection_QueryTopicStakeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Amount != "" { + value := protoreflect.ValueOfString(x.Amount) + if !f(fd_QueryTopicStakeResponse_amount, value) { return } } @@ -12104,15 +12381,15 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) Range(f func(protoreflec // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryInferencesAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTopicStakeResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryInferencesAtBlockResponse.inferences": - return x.Inferences != nil + case "emissions.v2.QueryTopicStakeResponse.amount": + return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferencesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInferencesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicStakeResponse does not contain field %s", fd.FullName())) } } @@ -12122,15 +12399,15 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferencesAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTopicStakeResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryInferencesAtBlockResponse.inferences": - x.Inferences = nil + case "emissions.v2.QueryTopicStakeResponse.amount": + x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferencesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInferencesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicStakeResponse does not contain field %s", fd.FullName())) } } @@ -12140,16 +12417,16 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) Clear(fd protoreflect.Fi // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryInferencesAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicStakeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryInferencesAtBlockResponse.inferences": - value := x.Inferences - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryTopicStakeResponse.amount": + value := x.Amount + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferencesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInferencesAtBlockResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicStakeResponse does not contain field %s", descriptor.FullName())) } } @@ -12163,15 +12440,15 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferencesAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTopicStakeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryInferencesAtBlockResponse.inferences": - x.Inferences = value.Message().Interface().(*Inferences) + case "emissions.v2.QueryTopicStakeResponse.amount": + x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferencesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInferencesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicStakeResponse does not contain field %s", fd.FullName())) } } @@ -12185,44 +12462,40 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferencesAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicStakeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryInferencesAtBlockResponse.inferences": - if x.Inferences == nil { - x.Inferences = new(Inferences) - } - return protoreflect.ValueOfMessage(x.Inferences.ProtoReflect()) + case "emissions.v2.QueryTopicStakeResponse.amount": + panic(fmt.Errorf("field amount of message emissions.v2.QueryTopicStakeResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferencesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInferencesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicStakeResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryInferencesAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicStakeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryInferencesAtBlockResponse.inferences": - m := new(Inferences) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryTopicStakeResponse.amount": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferencesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInferencesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicStakeResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryInferencesAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTopicStakeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryInferencesAtBlockResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTopicStakeResponse", d.FullName())) } panic("unreachable") } @@ -12230,7 +12503,7 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) WhichOneof(d protoreflec // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryInferencesAtBlockResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTopicStakeResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -12241,7 +12514,7 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferencesAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTopicStakeResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -12253,7 +12526,7 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) SetUnknown(fields protor // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryInferencesAtBlockResponse) IsValid() bool { +func (x *fastReflection_QueryTopicStakeResponse) IsValid() bool { return x != nil } @@ -12263,9 +12536,9 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryInferencesAtBlockResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTopicStakeResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryInferencesAtBlockResponse) + x := input.Message.Interface().(*QueryTopicStakeResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12277,8 +12550,8 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) ProtoMethods() *protoifa var n int var l int _ = l - if x.Inferences != nil { - l = options.Size(x.Inferences) + l = len(x.Amount) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -12291,7 +12564,7 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryInferencesAtBlockResponse) + x := input.Message.Interface().(*QueryTopicStakeResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12310,17 +12583,10 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) ProtoMethods() *protoifa i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Inferences != nil { - encoded, err := options.Marshal(x.Inferences) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.Amount) > 0 { + i -= len(x.Amount) + copy(dAtA[i:], x.Amount) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Amount))) i-- dAtA[i] = 0xa } @@ -12335,7 +12601,7 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryInferencesAtBlockResponse) + x := input.Message.Interface().(*QueryTopicStakeResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12367,17 +12633,17 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferencesAtBlockResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicStakeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferencesAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inferences", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -12387,27 +12653,23 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) ProtoMethods() *protoifa } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Inferences == nil { - x.Inferences = &Inferences{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Inferences); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Amount = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -12445,26 +12707,28 @@ func (x *fastReflection_QueryInferencesAtBlockResponse) ProtoMethods() *protoifa } var ( - md_QueryLatestTopicInferencesRequest protoreflect.MessageDescriptor - fd_QueryLatestTopicInferencesRequest_topic_id protoreflect.FieldDescriptor + md_QueryNetworkLossBundleAtBlockRequest protoreflect.MessageDescriptor + fd_QueryNetworkLossBundleAtBlockRequest_topic_id protoreflect.FieldDescriptor + fd_QueryNetworkLossBundleAtBlockRequest_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryLatestTopicInferencesRequest = File_emissions_v1_query_proto.Messages().ByName("QueryLatestTopicInferencesRequest") - fd_QueryLatestTopicInferencesRequest_topic_id = md_QueryLatestTopicInferencesRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryNetworkLossBundleAtBlockRequest = File_emissions_v2_query_proto.Messages().ByName("QueryNetworkLossBundleAtBlockRequest") + fd_QueryNetworkLossBundleAtBlockRequest_topic_id = md_QueryNetworkLossBundleAtBlockRequest.Fields().ByName("topic_id") + fd_QueryNetworkLossBundleAtBlockRequest_block_height = md_QueryNetworkLossBundleAtBlockRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryLatestTopicInferencesRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNetworkLossBundleAtBlockRequest)(nil) -type fastReflection_QueryLatestTopicInferencesRequest QueryLatestTopicInferencesRequest +type fastReflection_QueryNetworkLossBundleAtBlockRequest QueryNetworkLossBundleAtBlockRequest -func (x *QueryLatestTopicInferencesRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryLatestTopicInferencesRequest)(x) +func (x *QueryNetworkLossBundleAtBlockRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNetworkLossBundleAtBlockRequest)(x) } -func (x *QueryLatestTopicInferencesRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[28] +func (x *QueryNetworkLossBundleAtBlockRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12475,43 +12739,43 @@ func (x *QueryLatestTopicInferencesRequest) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryLatestTopicInferencesRequest_messageType fastReflection_QueryLatestTopicInferencesRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryLatestTopicInferencesRequest_messageType{} +var _fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType{} -type fastReflection_QueryLatestTopicInferencesRequest_messageType struct{} +type fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType struct{} -func (x fastReflection_QueryLatestTopicInferencesRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryLatestTopicInferencesRequest)(nil) +func (x fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNetworkLossBundleAtBlockRequest)(nil) } -func (x fastReflection_QueryLatestTopicInferencesRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryLatestTopicInferencesRequest) +func (x fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNetworkLossBundleAtBlockRequest) } -func (x fastReflection_QueryLatestTopicInferencesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestTopicInferencesRequest +func (x fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNetworkLossBundleAtBlockRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryLatestTopicInferencesRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestTopicInferencesRequest +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNetworkLossBundleAtBlockRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryLatestTopicInferencesRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryLatestTopicInferencesRequest_messageType +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryNetworkLossBundleAtBlockRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryLatestTopicInferencesRequest) New() protoreflect.Message { - return new(fastReflection_QueryLatestTopicInferencesRequest) +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) New() protoreflect.Message { + return new(fastReflection_QueryNetworkLossBundleAtBlockRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryLatestTopicInferencesRequest) Interface() protoreflect.ProtoMessage { - return (*QueryLatestTopicInferencesRequest)(x) +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Interface() protoreflect.ProtoMessage { + return (*QueryNetworkLossBundleAtBlockRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -12519,10 +12783,16 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryLatestTopicInferencesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryLatestTopicInferencesRequest_topic_id, value) { + if !f(fd_QueryNetworkLossBundleAtBlockRequest_topic_id, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_QueryNetworkLossBundleAtBlockRequest_block_height, value) { return } } @@ -12539,15 +12809,17 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryLatestTopicInferencesRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryLatestTopicInferencesRequest.topic_id": + case "emissions.v2.QueryNetworkLossBundleAtBlockRequest.topic_id": return x.TopicId != uint64(0) + case "emissions.v2.QueryNetworkLossBundleAtBlockRequest.block_height": + return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestTopicInferencesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkLossBundleAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestTopicInferencesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkLossBundleAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -12557,15 +12829,17 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestTopicInferencesRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryLatestTopicInferencesRequest.topic_id": + case "emissions.v2.QueryNetworkLossBundleAtBlockRequest.topic_id": x.TopicId = uint64(0) + case "emissions.v2.QueryNetworkLossBundleAtBlockRequest.block_height": + x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestTopicInferencesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkLossBundleAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestTopicInferencesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkLossBundleAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -12575,16 +12849,19 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryLatestTopicInferencesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryLatestTopicInferencesRequest.topic_id": + case "emissions.v2.QueryNetworkLossBundleAtBlockRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryNetworkLossBundleAtBlockRequest.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestTopicInferencesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkLossBundleAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestTopicInferencesRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkLossBundleAtBlockRequest does not contain field %s", descriptor.FullName())) } } @@ -12598,15 +12875,17 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestTopicInferencesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryLatestTopicInferencesRequest.topic_id": + case "emissions.v2.QueryNetworkLossBundleAtBlockRequest.topic_id": x.TopicId = value.Uint() + case "emissions.v2.QueryNetworkLossBundleAtBlockRequest.block_height": + x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestTopicInferencesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkLossBundleAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestTopicInferencesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkLossBundleAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -12620,40 +12899,44 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestTopicInferencesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestTopicInferencesRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryLatestTopicInferencesRequest is not mutable")) + case "emissions.v2.QueryNetworkLossBundleAtBlockRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryNetworkLossBundleAtBlockRequest is not mutable")) + case "emissions.v2.QueryNetworkLossBundleAtBlockRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryNetworkLossBundleAtBlockRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestTopicInferencesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkLossBundleAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestTopicInferencesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkLossBundleAtBlockRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryLatestTopicInferencesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestTopicInferencesRequest.topic_id": + case "emissions.v2.QueryNetworkLossBundleAtBlockRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryNetworkLossBundleAtBlockRequest.block_height": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestTopicInferencesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkLossBundleAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestTopicInferencesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkLossBundleAtBlockRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryLatestTopicInferencesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryLatestTopicInferencesRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryNetworkLossBundleAtBlockRequest", d.FullName())) } panic("unreachable") } @@ -12661,7 +12944,7 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryLatestTopicInferencesRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -12672,7 +12955,7 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestTopicInferencesRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -12684,7 +12967,7 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryLatestTopicInferencesRequest) IsValid() bool { +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) IsValid() bool { return x != nil } @@ -12694,9 +12977,9 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryLatestTopicInferencesRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNetworkLossBundleAtBlockRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryLatestTopicInferencesRequest) + x := input.Message.Interface().(*QueryNetworkLossBundleAtBlockRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12711,6 +12994,9 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) ProtoMethods() *proto if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -12721,7 +13007,7 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestTopicInferencesRequest) + x := input.Message.Interface().(*QueryNetworkLossBundleAtBlockRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12740,6 +13026,11 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) ProtoMethods() *proto i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x10 + } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- @@ -12756,7 +13047,7 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestTopicInferencesRequest) + x := input.Message.Interface().(*QueryNetworkLossBundleAtBlockRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -12788,10 +13079,10 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestTopicInferencesRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkLossBundleAtBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestTopicInferencesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkLossBundleAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -12813,6 +13104,25 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) ProtoMethods() *proto break } } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -12849,28 +13159,26 @@ func (x *fastReflection_QueryLatestTopicInferencesRequest) ProtoMethods() *proto } var ( - md_QueryLatestTopicInferencesResponse protoreflect.MessageDescriptor - fd_QueryLatestTopicInferencesResponse_inferences protoreflect.FieldDescriptor - fd_QueryLatestTopicInferencesResponse_block_height protoreflect.FieldDescriptor + md_QueryNetworkLossBundleAtBlockResponse protoreflect.MessageDescriptor + fd_QueryNetworkLossBundleAtBlockResponse_loss_bundle protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryLatestTopicInferencesResponse = File_emissions_v1_query_proto.Messages().ByName("QueryLatestTopicInferencesResponse") - fd_QueryLatestTopicInferencesResponse_inferences = md_QueryLatestTopicInferencesResponse.Fields().ByName("inferences") - fd_QueryLatestTopicInferencesResponse_block_height = md_QueryLatestTopicInferencesResponse.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryNetworkLossBundleAtBlockResponse = File_emissions_v2_query_proto.Messages().ByName("QueryNetworkLossBundleAtBlockResponse") + fd_QueryNetworkLossBundleAtBlockResponse_loss_bundle = md_QueryNetworkLossBundleAtBlockResponse.Fields().ByName("loss_bundle") } -var _ protoreflect.Message = (*fastReflection_QueryLatestTopicInferencesResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNetworkLossBundleAtBlockResponse)(nil) -type fastReflection_QueryLatestTopicInferencesResponse QueryLatestTopicInferencesResponse +type fastReflection_QueryNetworkLossBundleAtBlockResponse QueryNetworkLossBundleAtBlockResponse -func (x *QueryLatestTopicInferencesResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryLatestTopicInferencesResponse)(x) +func (x *QueryNetworkLossBundleAtBlockResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNetworkLossBundleAtBlockResponse)(x) } -func (x *QueryLatestTopicInferencesResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[29] +func (x *QueryNetworkLossBundleAtBlockResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12881,43 +13189,43 @@ func (x *QueryLatestTopicInferencesResponse) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryLatestTopicInferencesResponse_messageType fastReflection_QueryLatestTopicInferencesResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryLatestTopicInferencesResponse_messageType{} +var _fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType{} -type fastReflection_QueryLatestTopicInferencesResponse_messageType struct{} +type fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType struct{} -func (x fastReflection_QueryLatestTopicInferencesResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryLatestTopicInferencesResponse)(nil) +func (x fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNetworkLossBundleAtBlockResponse)(nil) } -func (x fastReflection_QueryLatestTopicInferencesResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryLatestTopicInferencesResponse) +func (x fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNetworkLossBundleAtBlockResponse) } -func (x fastReflection_QueryLatestTopicInferencesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestTopicInferencesResponse +func (x fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNetworkLossBundleAtBlockResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryLatestTopicInferencesResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestTopicInferencesResponse +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNetworkLossBundleAtBlockResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryLatestTopicInferencesResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryLatestTopicInferencesResponse_messageType +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryNetworkLossBundleAtBlockResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryLatestTopicInferencesResponse) New() protoreflect.Message { - return new(fastReflection_QueryLatestTopicInferencesResponse) +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) New() protoreflect.Message { + return new(fastReflection_QueryNetworkLossBundleAtBlockResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryLatestTopicInferencesResponse) Interface() protoreflect.ProtoMessage { - return (*QueryLatestTopicInferencesResponse)(x) +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Interface() protoreflect.ProtoMessage { + return (*QueryNetworkLossBundleAtBlockResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -12925,16 +13233,10 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryLatestTopicInferencesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Inferences != nil { - value := protoreflect.ValueOfMessage(x.Inferences.ProtoReflect()) - if !f(fd_QueryLatestTopicInferencesResponse_inferences, value) { - return - } - } - if x.BlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryLatestTopicInferencesResponse_block_height, value) { +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.LossBundle != nil { + value := protoreflect.ValueOfMessage(x.LossBundle.ProtoReflect()) + if !f(fd_QueryNetworkLossBundleAtBlockResponse_loss_bundle, value) { return } } @@ -12951,17 +13253,15 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryLatestTopicInferencesResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryLatestTopicInferencesResponse.inferences": - return x.Inferences != nil - case "emissions.v1.QueryLatestTopicInferencesResponse.block_height": - return x.BlockHeight != int64(0) + case "emissions.v2.QueryNetworkLossBundleAtBlockResponse.loss_bundle": + return x.LossBundle != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestTopicInferencesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkLossBundleAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestTopicInferencesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkLossBundleAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -12971,17 +13271,15 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestTopicInferencesResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryLatestTopicInferencesResponse.inferences": - x.Inferences = nil - case "emissions.v1.QueryLatestTopicInferencesResponse.block_height": - x.BlockHeight = int64(0) + case "emissions.v2.QueryNetworkLossBundleAtBlockResponse.loss_bundle": + x.LossBundle = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestTopicInferencesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkLossBundleAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestTopicInferencesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkLossBundleAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -12991,19 +13289,16 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryLatestTopicInferencesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryLatestTopicInferencesResponse.inferences": - value := x.Inferences + case "emissions.v2.QueryNetworkLossBundleAtBlockResponse.loss_bundle": + value := x.LossBundle return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "emissions.v1.QueryLatestTopicInferencesResponse.block_height": - value := x.BlockHeight - return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestTopicInferencesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkLossBundleAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestTopicInferencesResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkLossBundleAtBlockResponse does not contain field %s", descriptor.FullName())) } } @@ -13017,17 +13312,15 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestTopicInferencesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryLatestTopicInferencesResponse.inferences": - x.Inferences = value.Message().Interface().(*Inferences) - case "emissions.v1.QueryLatestTopicInferencesResponse.block_height": - x.BlockHeight = value.Int() + case "emissions.v2.QueryNetworkLossBundleAtBlockResponse.loss_bundle": + x.LossBundle = value.Message().Interface().(*ValueBundle) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestTopicInferencesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkLossBundleAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestTopicInferencesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkLossBundleAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -13041,48 +13334,44 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestTopicInferencesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestTopicInferencesResponse.inferences": - if x.Inferences == nil { - x.Inferences = new(Inferences) + case "emissions.v2.QueryNetworkLossBundleAtBlockResponse.loss_bundle": + if x.LossBundle == nil { + x.LossBundle = new(ValueBundle) } - return protoreflect.ValueOfMessage(x.Inferences.ProtoReflect()) - case "emissions.v1.QueryLatestTopicInferencesResponse.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryLatestTopicInferencesResponse is not mutable")) + return protoreflect.ValueOfMessage(x.LossBundle.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestTopicInferencesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkLossBundleAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestTopicInferencesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkLossBundleAtBlockResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryLatestTopicInferencesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestTopicInferencesResponse.inferences": - m := new(Inferences) + case "emissions.v2.QueryNetworkLossBundleAtBlockResponse.loss_bundle": + m := new(ValueBundle) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "emissions.v1.QueryLatestTopicInferencesResponse.block_height": - return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestTopicInferencesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkLossBundleAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestTopicInferencesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkLossBundleAtBlockResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryLatestTopicInferencesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryLatestTopicInferencesResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryNetworkLossBundleAtBlockResponse", d.FullName())) } panic("unreachable") } @@ -13090,7 +13379,7 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryLatestTopicInferencesResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -13101,7 +13390,7 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestTopicInferencesResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -13113,7 +13402,7 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryLatestTopicInferencesResponse) IsValid() bool { +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) IsValid() bool { return x != nil } @@ -13123,9 +13412,9 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryLatestTopicInferencesResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNetworkLossBundleAtBlockResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryLatestTopicInferencesResponse) + x := input.Message.Interface().(*QueryNetworkLossBundleAtBlockResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13137,13 +13426,10 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) ProtoMethods() *prot var n int var l int _ = l - if x.Inferences != nil { - l = options.Size(x.Inferences) + if x.LossBundle != nil { + l = options.Size(x.LossBundle) n += 1 + l + runtime.Sov(uint64(l)) } - if x.BlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeight)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -13154,7 +13440,7 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestTopicInferencesResponse) + x := input.Message.Interface().(*QueryNetworkLossBundleAtBlockResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13173,13 +13459,8 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) ProtoMethods() *prot i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.BlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) - i-- - dAtA[i] = 0x10 - } - if x.Inferences != nil { - encoded, err := options.Marshal(x.Inferences) + if x.LossBundle != nil { + encoded, err := options.Marshal(x.LossBundle) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13203,7 +13484,7 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestTopicInferencesResponse) + x := input.Message.Interface().(*QueryNetworkLossBundleAtBlockResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13235,15 +13516,15 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestTopicInferencesResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkLossBundleAtBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestTopicInferencesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkLossBundleAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inferences", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LossBundle", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13270,32 +13551,13 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) ProtoMethods() *prot if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Inferences == nil { - x.Inferences = &Inferences{} + if x.LossBundle == nil { + x.LossBundle = &ValueBundle{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Inferences); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LossBundle); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) - } - x.BlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.BlockHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -13332,28 +13594,24 @@ func (x *fastReflection_QueryLatestTopicInferencesResponse) ProtoMethods() *prot } var ( - md_QueryForecastsAtBlockRequest protoreflect.MessageDescriptor - fd_QueryForecastsAtBlockRequest_topic_id protoreflect.FieldDescriptor - fd_QueryForecastsAtBlockRequest_block_height protoreflect.FieldDescriptor + md_QueryNextTopicIdRequest protoreflect.MessageDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryForecastsAtBlockRequest = File_emissions_v1_query_proto.Messages().ByName("QueryForecastsAtBlockRequest") - fd_QueryForecastsAtBlockRequest_topic_id = md_QueryForecastsAtBlockRequest.Fields().ByName("topic_id") - fd_QueryForecastsAtBlockRequest_block_height = md_QueryForecastsAtBlockRequest.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryNextTopicIdRequest = File_emissions_v2_query_proto.Messages().ByName("QueryNextTopicIdRequest") } -var _ protoreflect.Message = (*fastReflection_QueryForecastsAtBlockRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNextTopicIdRequest)(nil) -type fastReflection_QueryForecastsAtBlockRequest QueryForecastsAtBlockRequest +type fastReflection_QueryNextTopicIdRequest QueryNextTopicIdRequest -func (x *QueryForecastsAtBlockRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryForecastsAtBlockRequest)(x) +func (x *QueryNextTopicIdRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNextTopicIdRequest)(x) } -func (x *QueryForecastsAtBlockRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[30] +func (x *QueryNextTopicIdRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13364,43 +13622,43 @@ func (x *QueryForecastsAtBlockRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryForecastsAtBlockRequest_messageType fastReflection_QueryForecastsAtBlockRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryForecastsAtBlockRequest_messageType{} +var _fastReflection_QueryNextTopicIdRequest_messageType fastReflection_QueryNextTopicIdRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryNextTopicIdRequest_messageType{} -type fastReflection_QueryForecastsAtBlockRequest_messageType struct{} +type fastReflection_QueryNextTopicIdRequest_messageType struct{} -func (x fastReflection_QueryForecastsAtBlockRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryForecastsAtBlockRequest)(nil) +func (x fastReflection_QueryNextTopicIdRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNextTopicIdRequest)(nil) } -func (x fastReflection_QueryForecastsAtBlockRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryForecastsAtBlockRequest) +func (x fastReflection_QueryNextTopicIdRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNextTopicIdRequest) } -func (x fastReflection_QueryForecastsAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryForecastsAtBlockRequest +func (x fastReflection_QueryNextTopicIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNextTopicIdRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryForecastsAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryForecastsAtBlockRequest +func (x *fastReflection_QueryNextTopicIdRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNextTopicIdRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryForecastsAtBlockRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryForecastsAtBlockRequest_messageType +func (x *fastReflection_QueryNextTopicIdRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryNextTopicIdRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryForecastsAtBlockRequest) New() protoreflect.Message { - return new(fastReflection_QueryForecastsAtBlockRequest) +func (x *fastReflection_QueryNextTopicIdRequest) New() protoreflect.Message { + return new(fastReflection_QueryNextTopicIdRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryForecastsAtBlockRequest) Interface() protoreflect.ProtoMessage { - return (*QueryForecastsAtBlockRequest)(x) +func (x *fastReflection_QueryNextTopicIdRequest) Interface() protoreflect.ProtoMessage { + return (*QueryNextTopicIdRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -13408,19 +13666,7 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryForecastsAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryForecastsAtBlockRequest_topic_id, value) { - return - } - } - if x.BlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryForecastsAtBlockRequest_block_height, value) { - return - } - } +func (x *fastReflection_QueryNextTopicIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -13434,17 +13680,13 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryForecastsAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNextTopicIdRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryForecastsAtBlockRequest.topic_id": - return x.TopicId != uint64(0) - case "emissions.v1.QueryForecastsAtBlockRequest.block_height": - return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastsAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNextTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastsAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNextTopicIdRequest does not contain field %s", fd.FullName())) } } @@ -13454,17 +13696,13 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastsAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNextTopicIdRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryForecastsAtBlockRequest.topic_id": - x.TopicId = uint64(0) - case "emissions.v1.QueryForecastsAtBlockRequest.block_height": - x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastsAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNextTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastsAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNextTopicIdRequest does not contain field %s", fd.FullName())) } } @@ -13474,19 +13712,13 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryForecastsAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNextTopicIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryForecastsAtBlockRequest.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryForecastsAtBlockRequest.block_height": - value := x.BlockHeight - return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastsAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNextTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastsAtBlockRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNextTopicIdRequest does not contain field %s", descriptor.FullName())) } } @@ -13500,17 +13732,13 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastsAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryNextTopicIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryForecastsAtBlockRequest.topic_id": - x.TopicId = value.Uint() - case "emissions.v1.QueryForecastsAtBlockRequest.block_height": - x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastsAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNextTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastsAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNextTopicIdRequest does not contain field %s", fd.FullName())) } } @@ -13524,44 +13752,36 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastsAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNextTopicIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryForecastsAtBlockRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryForecastsAtBlockRequest is not mutable")) - case "emissions.v1.QueryForecastsAtBlockRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryForecastsAtBlockRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastsAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNextTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastsAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNextTopicIdRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryForecastsAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNextTopicIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryForecastsAtBlockRequest.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryForecastsAtBlockRequest.block_height": - return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastsAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNextTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastsAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNextTopicIdRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryForecastsAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryNextTopicIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryForecastsAtBlockRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryNextTopicIdRequest", d.FullName())) } panic("unreachable") } @@ -13569,7 +13789,7 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryForecastsAtBlockRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNextTopicIdRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -13580,7 +13800,7 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastsAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNextTopicIdRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -13592,7 +13812,7 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryForecastsAtBlockRequest) IsValid() bool { +func (x *fastReflection_QueryNextTopicIdRequest) IsValid() bool { return x != nil } @@ -13602,9 +13822,9 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryForecastsAtBlockRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNextTopicIdRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryForecastsAtBlockRequest) + x := input.Message.Interface().(*QueryNextTopicIdRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13616,12 +13836,6 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) ProtoMethods() *protoiface var n int var l int _ = l - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) - } - if x.BlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeight)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -13632,7 +13846,7 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryForecastsAtBlockRequest) + x := input.Message.Interface().(*QueryNextTopicIdRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13651,16 +13865,6 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.BlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) - i-- - dAtA[i] = 0x10 - } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) - i-- - dAtA[i] = 0x8 - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -13672,7 +13876,7 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryForecastsAtBlockRequest) + x := input.Message.Interface().(*QueryNextTopicIdRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -13704,50 +13908,12 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastsAtBlockRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNextTopicIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastsAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNextTopicIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - x.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) - } - x.BlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.BlockHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -13784,26 +13950,26 @@ func (x *fastReflection_QueryForecastsAtBlockRequest) ProtoMethods() *protoiface } var ( - md_QueryForecastsAtBlockResponse protoreflect.MessageDescriptor - fd_QueryForecastsAtBlockResponse_forecasts protoreflect.FieldDescriptor + md_QueryNextTopicIdResponse protoreflect.MessageDescriptor + fd_QueryNextTopicIdResponse_next_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryForecastsAtBlockResponse = File_emissions_v1_query_proto.Messages().ByName("QueryForecastsAtBlockResponse") - fd_QueryForecastsAtBlockResponse_forecasts = md_QueryForecastsAtBlockResponse.Fields().ByName("forecasts") + file_emissions_v2_query_proto_init() + md_QueryNextTopicIdResponse = File_emissions_v2_query_proto.Messages().ByName("QueryNextTopicIdResponse") + fd_QueryNextTopicIdResponse_next_topic_id = md_QueryNextTopicIdResponse.Fields().ByName("next_topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryForecastsAtBlockResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNextTopicIdResponse)(nil) -type fastReflection_QueryForecastsAtBlockResponse QueryForecastsAtBlockResponse +type fastReflection_QueryNextTopicIdResponse QueryNextTopicIdResponse -func (x *QueryForecastsAtBlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryForecastsAtBlockResponse)(x) +func (x *QueryNextTopicIdResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNextTopicIdResponse)(x) } -func (x *QueryForecastsAtBlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[31] +func (x *QueryNextTopicIdResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13814,43 +13980,43 @@ func (x *QueryForecastsAtBlockResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryForecastsAtBlockResponse_messageType fastReflection_QueryForecastsAtBlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryForecastsAtBlockResponse_messageType{} +var _fastReflection_QueryNextTopicIdResponse_messageType fastReflection_QueryNextTopicIdResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryNextTopicIdResponse_messageType{} -type fastReflection_QueryForecastsAtBlockResponse_messageType struct{} +type fastReflection_QueryNextTopicIdResponse_messageType struct{} -func (x fastReflection_QueryForecastsAtBlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryForecastsAtBlockResponse)(nil) +func (x fastReflection_QueryNextTopicIdResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNextTopicIdResponse)(nil) } -func (x fastReflection_QueryForecastsAtBlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryForecastsAtBlockResponse) +func (x fastReflection_QueryNextTopicIdResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNextTopicIdResponse) } -func (x fastReflection_QueryForecastsAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryForecastsAtBlockResponse +func (x fastReflection_QueryNextTopicIdResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNextTopicIdResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryForecastsAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryForecastsAtBlockResponse +func (x *fastReflection_QueryNextTopicIdResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNextTopicIdResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryForecastsAtBlockResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryForecastsAtBlockResponse_messageType +func (x *fastReflection_QueryNextTopicIdResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryNextTopicIdResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryForecastsAtBlockResponse) New() protoreflect.Message { - return new(fastReflection_QueryForecastsAtBlockResponse) +func (x *fastReflection_QueryNextTopicIdResponse) New() protoreflect.Message { + return new(fastReflection_QueryNextTopicIdResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryForecastsAtBlockResponse) Interface() protoreflect.ProtoMessage { - return (*QueryForecastsAtBlockResponse)(x) +func (x *fastReflection_QueryNextTopicIdResponse) Interface() protoreflect.ProtoMessage { + return (*QueryNextTopicIdResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -13858,10 +14024,10 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryForecastsAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Forecasts != nil { - value := protoreflect.ValueOfMessage(x.Forecasts.ProtoReflect()) - if !f(fd_QueryForecastsAtBlockResponse_forecasts, value) { +func (x *fastReflection_QueryNextTopicIdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.NextTopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.NextTopicId) + if !f(fd_QueryNextTopicIdResponse_next_topic_id, value) { return } } @@ -13878,15 +14044,15 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) Range(f func(protoreflect // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryForecastsAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNextTopicIdResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryForecastsAtBlockResponse.forecasts": - return x.Forecasts != nil + case "emissions.v2.QueryNextTopicIdResponse.next_topic_id": + return x.NextTopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastsAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNextTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastsAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNextTopicIdResponse does not contain field %s", fd.FullName())) } } @@ -13896,15 +14062,15 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastsAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNextTopicIdResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryForecastsAtBlockResponse.forecasts": - x.Forecasts = nil + case "emissions.v2.QueryNextTopicIdResponse.next_topic_id": + x.NextTopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastsAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNextTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastsAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNextTopicIdResponse does not contain field %s", fd.FullName())) } } @@ -13914,16 +14080,16 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) Clear(fd protoreflect.Fie // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryForecastsAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNextTopicIdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryForecastsAtBlockResponse.forecasts": - value := x.Forecasts - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryNextTopicIdResponse.next_topic_id": + value := x.NextTopicId + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastsAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNextTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastsAtBlockResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNextTopicIdResponse does not contain field %s", descriptor.FullName())) } } @@ -13937,15 +14103,15 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastsAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryNextTopicIdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryForecastsAtBlockResponse.forecasts": - x.Forecasts = value.Message().Interface().(*Forecasts) + case "emissions.v2.QueryNextTopicIdResponse.next_topic_id": + x.NextTopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastsAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNextTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastsAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNextTopicIdResponse does not contain field %s", fd.FullName())) } } @@ -13959,44 +14125,40 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastsAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNextTopicIdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryForecastsAtBlockResponse.forecasts": - if x.Forecasts == nil { - x.Forecasts = new(Forecasts) - } - return protoreflect.ValueOfMessage(x.Forecasts.ProtoReflect()) + case "emissions.v2.QueryNextTopicIdResponse.next_topic_id": + panic(fmt.Errorf("field next_topic_id of message emissions.v2.QueryNextTopicIdResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastsAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNextTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastsAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNextTopicIdResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryForecastsAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNextTopicIdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryForecastsAtBlockResponse.forecasts": - m := new(Forecasts) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryNextTopicIdResponse.next_topic_id": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastsAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNextTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastsAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNextTopicIdResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryForecastsAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryNextTopicIdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryForecastsAtBlockResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryNextTopicIdResponse", d.FullName())) } panic("unreachable") } @@ -14004,7 +14166,7 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) WhichOneof(d protoreflect // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryForecastsAtBlockResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNextTopicIdResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -14015,7 +14177,7 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastsAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNextTopicIdResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -14027,7 +14189,7 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) SetUnknown(fields protore // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryForecastsAtBlockResponse) IsValid() bool { +func (x *fastReflection_QueryNextTopicIdResponse) IsValid() bool { return x != nil } @@ -14037,9 +14199,9 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryForecastsAtBlockResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNextTopicIdResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryForecastsAtBlockResponse) + x := input.Message.Interface().(*QueryNextTopicIdResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14051,9 +14213,8 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) ProtoMethods() *protoifac var n int var l int _ = l - if x.Forecasts != nil { - l = options.Size(x.Forecasts) - n += 1 + l + runtime.Sov(uint64(l)) + if x.NextTopicId != 0 { + n += 1 + runtime.Sov(uint64(x.NextTopicId)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -14065,7 +14226,7 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryForecastsAtBlockResponse) + x := input.Message.Interface().(*QueryNextTopicIdResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14084,19 +14245,10 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) ProtoMethods() *protoifac i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Forecasts != nil { - encoded, err := options.Marshal(x.Forecasts) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if x.NextTopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.NextTopicId)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -14109,7 +14261,7 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryForecastsAtBlockResponse) + x := input.Message.Interface().(*QueryNextTopicIdResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14141,17 +14293,17 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastsAtBlockResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNextTopicIdResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastsAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNextTopicIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Forecasts", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NextTopicId", wireType) } - var msglen int + x.NextTopicId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -14161,28 +14313,11 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) ProtoMethods() *protoifac } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + x.NextTopicId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Forecasts == nil { - x.Forecasts = &Forecasts{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Forecasts); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -14219,28 +14354,26 @@ func (x *fastReflection_QueryForecastsAtBlockResponse) ProtoMethods() *protoifac } var ( - md_QueryWorkerLatestInferenceRequest protoreflect.MessageDescriptor - fd_QueryWorkerLatestInferenceRequest_topic_id protoreflect.FieldDescriptor - fd_QueryWorkerLatestInferenceRequest_worker_address protoreflect.FieldDescriptor + md_QueryTopicRequest protoreflect.MessageDescriptor + fd_QueryTopicRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryWorkerLatestInferenceRequest = File_emissions_v1_query_proto.Messages().ByName("QueryWorkerLatestInferenceRequest") - fd_QueryWorkerLatestInferenceRequest_topic_id = md_QueryWorkerLatestInferenceRequest.Fields().ByName("topic_id") - fd_QueryWorkerLatestInferenceRequest_worker_address = md_QueryWorkerLatestInferenceRequest.Fields().ByName("worker_address") + file_emissions_v2_query_proto_init() + md_QueryTopicRequest = File_emissions_v2_query_proto.Messages().ByName("QueryTopicRequest") + fd_QueryTopicRequest_topic_id = md_QueryTopicRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryWorkerLatestInferenceRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTopicRequest)(nil) -type fastReflection_QueryWorkerLatestInferenceRequest QueryWorkerLatestInferenceRequest +type fastReflection_QueryTopicRequest QueryTopicRequest -func (x *QueryWorkerLatestInferenceRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryWorkerLatestInferenceRequest)(x) +func (x *QueryTopicRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTopicRequest)(x) } -func (x *QueryWorkerLatestInferenceRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[32] +func (x *QueryTopicRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14251,43 +14384,43 @@ func (x *QueryWorkerLatestInferenceRequest) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryWorkerLatestInferenceRequest_messageType fastReflection_QueryWorkerLatestInferenceRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryWorkerLatestInferenceRequest_messageType{} +var _fastReflection_QueryTopicRequest_messageType fastReflection_QueryTopicRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTopicRequest_messageType{} -type fastReflection_QueryWorkerLatestInferenceRequest_messageType struct{} +type fastReflection_QueryTopicRequest_messageType struct{} -func (x fastReflection_QueryWorkerLatestInferenceRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryWorkerLatestInferenceRequest)(nil) +func (x fastReflection_QueryTopicRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTopicRequest)(nil) } -func (x fastReflection_QueryWorkerLatestInferenceRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryWorkerLatestInferenceRequest) +func (x fastReflection_QueryTopicRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTopicRequest) } -func (x fastReflection_QueryWorkerLatestInferenceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerLatestInferenceRequest +func (x fastReflection_QueryTopicRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerLatestInferenceRequest +func (x *fastReflection_QueryTopicRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryWorkerLatestInferenceRequest_messageType +func (x *fastReflection_QueryTopicRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTopicRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) New() protoreflect.Message { - return new(fastReflection_QueryWorkerLatestInferenceRequest) +func (x *fastReflection_QueryTopicRequest) New() protoreflect.Message { + return new(fastReflection_QueryTopicRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) Interface() protoreflect.ProtoMessage { - return (*QueryWorkerLatestInferenceRequest)(x) +func (x *fastReflection_QueryTopicRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTopicRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -14295,16 +14428,10 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryTopicRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryWorkerLatestInferenceRequest_topic_id, value) { - return - } - } - if x.WorkerAddress != "" { - value := protoreflect.ValueOfString(x.WorkerAddress) - if !f(fd_QueryWorkerLatestInferenceRequest_worker_address, value) { + if !f(fd_QueryTopicRequest_topic_id, value) { return } } @@ -14321,17 +14448,15 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTopicRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryWorkerLatestInferenceRequest.topic_id": + case "emissions.v2.QueryTopicRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryWorkerLatestInferenceRequest.worker_address": - return x.WorkerAddress != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerLatestInferenceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerLatestInferenceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRequest does not contain field %s", fd.FullName())) } } @@ -14341,17 +14466,15 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTopicRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryWorkerLatestInferenceRequest.topic_id": + case "emissions.v2.QueryTopicRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryWorkerLatestInferenceRequest.worker_address": - x.WorkerAddress = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerLatestInferenceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerLatestInferenceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRequest does not contain field %s", fd.FullName())) } } @@ -14361,19 +14484,16 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryWorkerLatestInferenceRequest.topic_id": + case "emissions.v2.QueryTopicRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryWorkerLatestInferenceRequest.worker_address": - value := x.WorkerAddress - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerLatestInferenceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerLatestInferenceRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRequest does not contain field %s", descriptor.FullName())) } } @@ -14387,17 +14507,15 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTopicRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryWorkerLatestInferenceRequest.topic_id": + case "emissions.v2.QueryTopicRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryWorkerLatestInferenceRequest.worker_address": - x.WorkerAddress = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerLatestInferenceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerLatestInferenceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRequest does not contain field %s", fd.FullName())) } } @@ -14411,44 +14529,40 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerLatestInferenceRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryWorkerLatestInferenceRequest is not mutable")) - case "emissions.v1.QueryWorkerLatestInferenceRequest.worker_address": - panic(fmt.Errorf("field worker_address of message emissions.v1.QueryWorkerLatestInferenceRequest is not mutable")) + case "emissions.v2.QueryTopicRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryTopicRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerLatestInferenceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerLatestInferenceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerLatestInferenceRequest.topic_id": + case "emissions.v2.QueryTopicRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryWorkerLatestInferenceRequest.worker_address": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerLatestInferenceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerLatestInferenceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTopicRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryWorkerLatestInferenceRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTopicRequest", d.FullName())) } panic("unreachable") } @@ -14456,7 +14570,7 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTopicRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -14467,7 +14581,7 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTopicRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -14479,7 +14593,7 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) IsValid() bool { +func (x *fastReflection_QueryTopicRequest) IsValid() bool { return x != nil } @@ -14489,9 +14603,9 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryWorkerLatestInferenceRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTopicRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryWorkerLatestInferenceRequest) + x := input.Message.Interface().(*QueryTopicRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14506,10 +14620,6 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) ProtoMethods() *proto if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.WorkerAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -14520,7 +14630,7 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerLatestInferenceRequest) + x := input.Message.Interface().(*QueryTopicRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14539,13 +14649,6 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) ProtoMethods() *proto i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.WorkerAddress) > 0 { - i -= len(x.WorkerAddress) - copy(dAtA[i:], x.WorkerAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WorkerAddress))) - i-- - dAtA[i] = 0x12 - } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- @@ -14562,7 +14665,7 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerLatestInferenceRequest) + x := input.Message.Interface().(*QueryTopicRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14594,10 +14697,10 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerLatestInferenceRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerLatestInferenceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -14619,38 +14722,6 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) ProtoMethods() *proto break } } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WorkerAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.WorkerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -14687,26 +14758,30 @@ func (x *fastReflection_QueryWorkerLatestInferenceRequest) ProtoMethods() *proto } var ( - md_QueryWorkerLatestInferenceResponse protoreflect.MessageDescriptor - fd_QueryWorkerLatestInferenceResponse_latest_inference protoreflect.FieldDescriptor + md_QueryTopicResponse protoreflect.MessageDescriptor + fd_QueryTopicResponse_topic protoreflect.FieldDescriptor + fd_QueryTopicResponse_weight protoreflect.FieldDescriptor + fd_QueryTopicResponse_effective_revenue protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryWorkerLatestInferenceResponse = File_emissions_v1_query_proto.Messages().ByName("QueryWorkerLatestInferenceResponse") - fd_QueryWorkerLatestInferenceResponse_latest_inference = md_QueryWorkerLatestInferenceResponse.Fields().ByName("latest_inference") + file_emissions_v2_query_proto_init() + md_QueryTopicResponse = File_emissions_v2_query_proto.Messages().ByName("QueryTopicResponse") + fd_QueryTopicResponse_topic = md_QueryTopicResponse.Fields().ByName("topic") + fd_QueryTopicResponse_weight = md_QueryTopicResponse.Fields().ByName("weight") + fd_QueryTopicResponse_effective_revenue = md_QueryTopicResponse.Fields().ByName("effective_revenue") } -var _ protoreflect.Message = (*fastReflection_QueryWorkerLatestInferenceResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTopicResponse)(nil) -type fastReflection_QueryWorkerLatestInferenceResponse QueryWorkerLatestInferenceResponse +type fastReflection_QueryTopicResponse QueryTopicResponse -func (x *QueryWorkerLatestInferenceResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryWorkerLatestInferenceResponse)(x) +func (x *QueryTopicResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTopicResponse)(x) } -func (x *QueryWorkerLatestInferenceResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[33] +func (x *QueryTopicResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14717,43 +14792,43 @@ func (x *QueryWorkerLatestInferenceResponse) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryWorkerLatestInferenceResponse_messageType fastReflection_QueryWorkerLatestInferenceResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryWorkerLatestInferenceResponse_messageType{} +var _fastReflection_QueryTopicResponse_messageType fastReflection_QueryTopicResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTopicResponse_messageType{} -type fastReflection_QueryWorkerLatestInferenceResponse_messageType struct{} +type fastReflection_QueryTopicResponse_messageType struct{} -func (x fastReflection_QueryWorkerLatestInferenceResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryWorkerLatestInferenceResponse)(nil) +func (x fastReflection_QueryTopicResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTopicResponse)(nil) } -func (x fastReflection_QueryWorkerLatestInferenceResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryWorkerLatestInferenceResponse) +func (x fastReflection_QueryTopicResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTopicResponse) } -func (x fastReflection_QueryWorkerLatestInferenceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerLatestInferenceResponse +func (x fastReflection_QueryTopicResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerLatestInferenceResponse +func (x *fastReflection_QueryTopicResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryWorkerLatestInferenceResponse_messageType +func (x *fastReflection_QueryTopicResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTopicResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) New() protoreflect.Message { - return new(fastReflection_QueryWorkerLatestInferenceResponse) +func (x *fastReflection_QueryTopicResponse) New() protoreflect.Message { + return new(fastReflection_QueryTopicResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) Interface() protoreflect.ProtoMessage { - return (*QueryWorkerLatestInferenceResponse)(x) +func (x *fastReflection_QueryTopicResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTopicResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -14761,10 +14836,22 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.LatestInference != nil { - value := protoreflect.ValueOfMessage(x.LatestInference.ProtoReflect()) - if !f(fd_QueryWorkerLatestInferenceResponse_latest_inference, value) { +func (x *fastReflection_QueryTopicResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Topic != nil { + value := protoreflect.ValueOfMessage(x.Topic.ProtoReflect()) + if !f(fd_QueryTopicResponse_topic, value) { + return + } + } + if x.Weight != "" { + value := protoreflect.ValueOfString(x.Weight) + if !f(fd_QueryTopicResponse_weight, value) { + return + } + } + if x.EffectiveRevenue != "" { + value := protoreflect.ValueOfString(x.EffectiveRevenue) + if !f(fd_QueryTopicResponse_effective_revenue, value) { return } } @@ -14781,15 +14868,19 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTopicResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryWorkerLatestInferenceResponse.latest_inference": - return x.LatestInference != nil + case "emissions.v2.QueryTopicResponse.topic": + return x.Topic != nil + case "emissions.v2.QueryTopicResponse.weight": + return x.Weight != "" + case "emissions.v2.QueryTopicResponse.effective_revenue": + return x.EffectiveRevenue != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerLatestInferenceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerLatestInferenceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicResponse does not contain field %s", fd.FullName())) } } @@ -14799,15 +14890,19 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTopicResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryWorkerLatestInferenceResponse.latest_inference": - x.LatestInference = nil + case "emissions.v2.QueryTopicResponse.topic": + x.Topic = nil + case "emissions.v2.QueryTopicResponse.weight": + x.Weight = "" + case "emissions.v2.QueryTopicResponse.effective_revenue": + x.EffectiveRevenue = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerLatestInferenceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerLatestInferenceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicResponse does not contain field %s", fd.FullName())) } } @@ -14817,16 +14912,22 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryWorkerLatestInferenceResponse.latest_inference": - value := x.LatestInference + case "emissions.v2.QueryTopicResponse.topic": + value := x.Topic return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryTopicResponse.weight": + value := x.Weight + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryTopicResponse.effective_revenue": + value := x.EffectiveRevenue + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerLatestInferenceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerLatestInferenceResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicResponse does not contain field %s", descriptor.FullName())) } } @@ -14840,15 +14941,19 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTopicResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryWorkerLatestInferenceResponse.latest_inference": - x.LatestInference = value.Message().Interface().(*Inference) + case "emissions.v2.QueryTopicResponse.topic": + x.Topic = value.Message().Interface().(*Topic) + case "emissions.v2.QueryTopicResponse.weight": + x.Weight = value.Interface().(string) + case "emissions.v2.QueryTopicResponse.effective_revenue": + x.EffectiveRevenue = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerLatestInferenceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerLatestInferenceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicResponse does not contain field %s", fd.FullName())) } } @@ -14862,44 +14967,52 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerLatestInferenceResponse.latest_inference": - if x.LatestInference == nil { - x.LatestInference = new(Inference) + case "emissions.v2.QueryTopicResponse.topic": + if x.Topic == nil { + x.Topic = new(Topic) } - return protoreflect.ValueOfMessage(x.LatestInference.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Topic.ProtoReflect()) + case "emissions.v2.QueryTopicResponse.weight": + panic(fmt.Errorf("field weight of message emissions.v2.QueryTopicResponse is not mutable")) + case "emissions.v2.QueryTopicResponse.effective_revenue": + panic(fmt.Errorf("field effective_revenue of message emissions.v2.QueryTopicResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerLatestInferenceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerLatestInferenceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerLatestInferenceResponse.latest_inference": - m := new(Inference) + case "emissions.v2.QueryTopicResponse.topic": + m := new(Topic) return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryTopicResponse.weight": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryTopicResponse.effective_revenue": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerLatestInferenceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerLatestInferenceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTopicResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryWorkerLatestInferenceResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTopicResponse", d.FullName())) } panic("unreachable") } @@ -14907,7 +15020,7 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTopicResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -14918,7 +15031,7 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTopicResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -14930,7 +15043,7 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) IsValid() bool { +func (x *fastReflection_QueryTopicResponse) IsValid() bool { return x != nil } @@ -14940,9 +15053,9 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryWorkerLatestInferenceResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTopicResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryWorkerLatestInferenceResponse) + x := input.Message.Interface().(*QueryTopicResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14954,8 +15067,16 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) ProtoMethods() *prot var n int var l int _ = l - if x.LatestInference != nil { - l = options.Size(x.LatestInference) + if x.Topic != nil { + l = options.Size(x.Topic) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Weight) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.EffectiveRevenue) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -14968,7 +15089,7 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerLatestInferenceResponse) + x := input.Message.Interface().(*QueryTopicResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -14987,8 +15108,22 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) ProtoMethods() *prot i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.LatestInference != nil { - encoded, err := options.Marshal(x.LatestInference) + if len(x.EffectiveRevenue) > 0 { + i -= len(x.EffectiveRevenue) + copy(dAtA[i:], x.EffectiveRevenue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.EffectiveRevenue))) + i-- + dAtA[i] = 0x1a + } + if len(x.Weight) > 0 { + i -= len(x.Weight) + copy(dAtA[i:], x.Weight) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Weight))) + i-- + dAtA[i] = 0x12 + } + if x.Topic != nil { + encoded, err := options.Marshal(x.Topic) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15012,7 +15147,7 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerLatestInferenceResponse) + x := input.Message.Interface().(*QueryTopicResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15044,15 +15179,15 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerLatestInferenceResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerLatestInferenceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LatestInference", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15079,13 +15214,77 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) ProtoMethods() *prot if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.LatestInference == nil { - x.LatestInference = &Inference{} + if x.Topic == nil { + x.Topic = &Topic{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestInference); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Topic); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Weight = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EffectiveRevenue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.EffectiveRevenue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -15122,26 +15321,26 @@ func (x *fastReflection_QueryWorkerLatestInferenceResponse) ProtoMethods() *prot } var ( - md_QueryWorkerNodeInfoRequest protoreflect.MessageDescriptor - fd_QueryWorkerNodeInfoRequest_libp2p_key protoreflect.FieldDescriptor + md_QueryActiveTopicsRequest protoreflect.MessageDescriptor + fd_QueryActiveTopicsRequest_pagination protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryWorkerNodeInfoRequest = File_emissions_v1_query_proto.Messages().ByName("QueryWorkerNodeInfoRequest") - fd_QueryWorkerNodeInfoRequest_libp2p_key = md_QueryWorkerNodeInfoRequest.Fields().ByName("libp2p_key") + file_emissions_v2_query_proto_init() + md_QueryActiveTopicsRequest = File_emissions_v2_query_proto.Messages().ByName("QueryActiveTopicsRequest") + fd_QueryActiveTopicsRequest_pagination = md_QueryActiveTopicsRequest.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryWorkerNodeInfoRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryActiveTopicsRequest)(nil) -type fastReflection_QueryWorkerNodeInfoRequest QueryWorkerNodeInfoRequest +type fastReflection_QueryActiveTopicsRequest QueryActiveTopicsRequest -func (x *QueryWorkerNodeInfoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryWorkerNodeInfoRequest)(x) +func (x *QueryActiveTopicsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryActiveTopicsRequest)(x) } -func (x *QueryWorkerNodeInfoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[34] +func (x *QueryActiveTopicsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15152,43 +15351,43 @@ func (x *QueryWorkerNodeInfoRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryWorkerNodeInfoRequest_messageType fastReflection_QueryWorkerNodeInfoRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryWorkerNodeInfoRequest_messageType{} +var _fastReflection_QueryActiveTopicsRequest_messageType fastReflection_QueryActiveTopicsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryActiveTopicsRequest_messageType{} -type fastReflection_QueryWorkerNodeInfoRequest_messageType struct{} +type fastReflection_QueryActiveTopicsRequest_messageType struct{} -func (x fastReflection_QueryWorkerNodeInfoRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryWorkerNodeInfoRequest)(nil) +func (x fastReflection_QueryActiveTopicsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryActiveTopicsRequest)(nil) } -func (x fastReflection_QueryWorkerNodeInfoRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryWorkerNodeInfoRequest) +func (x fastReflection_QueryActiveTopicsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryActiveTopicsRequest) } -func (x fastReflection_QueryWorkerNodeInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerNodeInfoRequest +func (x fastReflection_QueryActiveTopicsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryActiveTopicsRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryWorkerNodeInfoRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerNodeInfoRequest +func (x *fastReflection_QueryActiveTopicsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryActiveTopicsRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryWorkerNodeInfoRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryWorkerNodeInfoRequest_messageType +func (x *fastReflection_QueryActiveTopicsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryActiveTopicsRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryWorkerNodeInfoRequest) New() protoreflect.Message { - return new(fastReflection_QueryWorkerNodeInfoRequest) +func (x *fastReflection_QueryActiveTopicsRequest) New() protoreflect.Message { + return new(fastReflection_QueryActiveTopicsRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryWorkerNodeInfoRequest) Interface() protoreflect.ProtoMessage { - return (*QueryWorkerNodeInfoRequest)(x) +func (x *fastReflection_QueryActiveTopicsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryActiveTopicsRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -15196,10 +15395,10 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryWorkerNodeInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Libp2PKey != "" { - value := protoreflect.ValueOfString(x.Libp2PKey) - if !f(fd_QueryWorkerNodeInfoRequest_libp2p_key, value) { +func (x *fastReflection_QueryActiveTopicsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryActiveTopicsRequest_pagination, value) { return } } @@ -15216,15 +15415,15 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) Range(f func(protoreflect.Fi // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryWorkerNodeInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryActiveTopicsRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryWorkerNodeInfoRequest.libp2p_key": - return x.Libp2PKey != "" + case "emissions.v2.QueryActiveTopicsRequest.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerNodeInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryActiveTopicsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerNodeInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryActiveTopicsRequest does not contain field %s", fd.FullName())) } } @@ -15234,15 +15433,15 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerNodeInfoRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryActiveTopicsRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryWorkerNodeInfoRequest.libp2p_key": - x.Libp2PKey = "" + case "emissions.v2.QueryActiveTopicsRequest.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerNodeInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryActiveTopicsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerNodeInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryActiveTopicsRequest does not contain field %s", fd.FullName())) } } @@ -15252,16 +15451,16 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) Clear(fd protoreflect.FieldD // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryWorkerNodeInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryActiveTopicsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryWorkerNodeInfoRequest.libp2p_key": - value := x.Libp2PKey - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryActiveTopicsRequest.pagination": + value := x.Pagination + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerNodeInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryActiveTopicsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerNodeInfoRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryActiveTopicsRequest does not contain field %s", descriptor.FullName())) } } @@ -15275,15 +15474,15 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerNodeInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryActiveTopicsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryWorkerNodeInfoRequest.libp2p_key": - x.Libp2PKey = value.Interface().(string) + case "emissions.v2.QueryActiveTopicsRequest.pagination": + x.Pagination = value.Message().Interface().(*SimpleCursorPaginationRequest) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerNodeInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryActiveTopicsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerNodeInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryActiveTopicsRequest does not contain field %s", fd.FullName())) } } @@ -15297,40 +15496,44 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerNodeInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryActiveTopicsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerNodeInfoRequest.libp2p_key": - panic(fmt.Errorf("field libp2p_key of message emissions.v1.QueryWorkerNodeInfoRequest is not mutable")) + case "emissions.v2.QueryActiveTopicsRequest.pagination": + if x.Pagination == nil { + x.Pagination = new(SimpleCursorPaginationRequest) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerNodeInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryActiveTopicsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerNodeInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryActiveTopicsRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryWorkerNodeInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryActiveTopicsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerNodeInfoRequest.libp2p_key": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryActiveTopicsRequest.pagination": + m := new(SimpleCursorPaginationRequest) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerNodeInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryActiveTopicsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerNodeInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryActiveTopicsRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryWorkerNodeInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryActiveTopicsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryWorkerNodeInfoRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryActiveTopicsRequest", d.FullName())) } panic("unreachable") } @@ -15338,7 +15541,7 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) WhichOneof(d protoreflect.On // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryWorkerNodeInfoRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryActiveTopicsRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -15349,7 +15552,7 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerNodeInfoRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryActiveTopicsRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -15361,7 +15564,7 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) SetUnknown(fields protorefle // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryWorkerNodeInfoRequest) IsValid() bool { +func (x *fastReflection_QueryActiveTopicsRequest) IsValid() bool { return x != nil } @@ -15371,9 +15574,9 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryWorkerNodeInfoRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryActiveTopicsRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryWorkerNodeInfoRequest) + x := input.Message.Interface().(*QueryActiveTopicsRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15385,8 +15588,8 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) ProtoMethods() *protoiface.M var n int var l int _ = l - l = len(x.Libp2PKey) - if l > 0 { + if x.Pagination != nil { + l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -15399,7 +15602,7 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerNodeInfoRequest) + x := input.Message.Interface().(*QueryActiveTopicsRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15418,10 +15621,17 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) ProtoMethods() *protoiface.M i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Libp2PKey) > 0 { - i -= len(x.Libp2PKey) - copy(dAtA[i:], x.Libp2PKey) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Libp2PKey))) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -15436,7 +15646,7 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerNodeInfoRequest) + x := input.Message.Interface().(*QueryActiveTopicsRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15468,17 +15678,17 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerNodeInfoRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryActiveTopicsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerNodeInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryActiveTopicsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Libp2PKey", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -15488,23 +15698,27 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) ProtoMethods() *protoiface.M } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Libp2PKey = string(dAtA[iNdEx:postIndex]) + if x.Pagination == nil { + x.Pagination = &SimpleCursorPaginationRequest{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -15541,27 +15755,80 @@ func (x *fastReflection_QueryWorkerNodeInfoRequest) ProtoMethods() *protoiface.M } } +var _ protoreflect.List = (*_QueryActiveTopicsResponse_1_list)(nil) + +type _QueryActiveTopicsResponse_1_list struct { + list *[]*Topic +} + +func (x *_QueryActiveTopicsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryActiveTopicsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryActiveTopicsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Topic) + (*x.list)[i] = concreteValue +} + +func (x *_QueryActiveTopicsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Topic) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryActiveTopicsResponse_1_list) AppendMutable() protoreflect.Value { + v := new(Topic) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryActiveTopicsResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryActiveTopicsResponse_1_list) NewElement() protoreflect.Value { + v := new(Topic) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryActiveTopicsResponse_1_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryWorkerNodeInfoResponse protoreflect.MessageDescriptor - fd_QueryWorkerNodeInfoResponse_node_info protoreflect.FieldDescriptor + md_QueryActiveTopicsResponse protoreflect.MessageDescriptor + fd_QueryActiveTopicsResponse_topics protoreflect.FieldDescriptor + fd_QueryActiveTopicsResponse_pagination protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryWorkerNodeInfoResponse = File_emissions_v1_query_proto.Messages().ByName("QueryWorkerNodeInfoResponse") - fd_QueryWorkerNodeInfoResponse_node_info = md_QueryWorkerNodeInfoResponse.Fields().ByName("node_info") + file_emissions_v2_query_proto_init() + md_QueryActiveTopicsResponse = File_emissions_v2_query_proto.Messages().ByName("QueryActiveTopicsResponse") + fd_QueryActiveTopicsResponse_topics = md_QueryActiveTopicsResponse.Fields().ByName("topics") + fd_QueryActiveTopicsResponse_pagination = md_QueryActiveTopicsResponse.Fields().ByName("pagination") } -var _ protoreflect.Message = (*fastReflection_QueryWorkerNodeInfoResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryActiveTopicsResponse)(nil) -type fastReflection_QueryWorkerNodeInfoResponse QueryWorkerNodeInfoResponse +type fastReflection_QueryActiveTopicsResponse QueryActiveTopicsResponse -func (x *QueryWorkerNodeInfoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryWorkerNodeInfoResponse)(x) +func (x *QueryActiveTopicsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryActiveTopicsResponse)(x) } -func (x *QueryWorkerNodeInfoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[35] +func (x *QueryActiveTopicsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15572,43 +15839,43 @@ func (x *QueryWorkerNodeInfoResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryWorkerNodeInfoResponse_messageType fastReflection_QueryWorkerNodeInfoResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryWorkerNodeInfoResponse_messageType{} +var _fastReflection_QueryActiveTopicsResponse_messageType fastReflection_QueryActiveTopicsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryActiveTopicsResponse_messageType{} -type fastReflection_QueryWorkerNodeInfoResponse_messageType struct{} +type fastReflection_QueryActiveTopicsResponse_messageType struct{} -func (x fastReflection_QueryWorkerNodeInfoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryWorkerNodeInfoResponse)(nil) +func (x fastReflection_QueryActiveTopicsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryActiveTopicsResponse)(nil) } -func (x fastReflection_QueryWorkerNodeInfoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryWorkerNodeInfoResponse) +func (x fastReflection_QueryActiveTopicsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryActiveTopicsResponse) } -func (x fastReflection_QueryWorkerNodeInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerNodeInfoResponse +func (x fastReflection_QueryActiveTopicsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryActiveTopicsResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryWorkerNodeInfoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerNodeInfoResponse +func (x *fastReflection_QueryActiveTopicsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryActiveTopicsResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryWorkerNodeInfoResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryWorkerNodeInfoResponse_messageType +func (x *fastReflection_QueryActiveTopicsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryActiveTopicsResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryWorkerNodeInfoResponse) New() protoreflect.Message { - return new(fastReflection_QueryWorkerNodeInfoResponse) +func (x *fastReflection_QueryActiveTopicsResponse) New() protoreflect.Message { + return new(fastReflection_QueryActiveTopicsResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryWorkerNodeInfoResponse) Interface() protoreflect.ProtoMessage { - return (*QueryWorkerNodeInfoResponse)(x) +func (x *fastReflection_QueryActiveTopicsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryActiveTopicsResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -15616,10 +15883,16 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryWorkerNodeInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.NodeInfo != nil { - value := protoreflect.ValueOfMessage(x.NodeInfo.ProtoReflect()) - if !f(fd_QueryWorkerNodeInfoResponse_node_info, value) { +func (x *fastReflection_QueryActiveTopicsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Topics) != 0 { + value := protoreflect.ValueOfList(&_QueryActiveTopicsResponse_1_list{list: &x.Topics}) + if !f(fd_QueryActiveTopicsResponse_topics, value) { + return + } + } + if x.Pagination != nil { + value := protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) + if !f(fd_QueryActiveTopicsResponse_pagination, value) { return } } @@ -15636,15 +15909,17 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryWorkerNodeInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryActiveTopicsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryWorkerNodeInfoResponse.node_info": - return x.NodeInfo != nil + case "emissions.v2.QueryActiveTopicsResponse.topics": + return len(x.Topics) != 0 + case "emissions.v2.QueryActiveTopicsResponse.pagination": + return x.Pagination != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerNodeInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryActiveTopicsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerNodeInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryActiveTopicsResponse does not contain field %s", fd.FullName())) } } @@ -15654,15 +15929,17 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerNodeInfoResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryActiveTopicsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryWorkerNodeInfoResponse.node_info": - x.NodeInfo = nil + case "emissions.v2.QueryActiveTopicsResponse.topics": + x.Topics = nil + case "emissions.v2.QueryActiveTopicsResponse.pagination": + x.Pagination = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerNodeInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryActiveTopicsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerNodeInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryActiveTopicsResponse does not contain field %s", fd.FullName())) } } @@ -15672,16 +15949,22 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryWorkerNodeInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryActiveTopicsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryWorkerNodeInfoResponse.node_info": - value := x.NodeInfo + case "emissions.v2.QueryActiveTopicsResponse.topics": + if len(x.Topics) == 0 { + return protoreflect.ValueOfList(&_QueryActiveTopicsResponse_1_list{}) + } + listValue := &_QueryActiveTopicsResponse_1_list{list: &x.Topics} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.QueryActiveTopicsResponse.pagination": + value := x.Pagination return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerNodeInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryActiveTopicsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerNodeInfoResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryActiveTopicsResponse does not contain field %s", descriptor.FullName())) } } @@ -15695,15 +15978,19 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerNodeInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryActiveTopicsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryWorkerNodeInfoResponse.node_info": - x.NodeInfo = value.Message().Interface().(*OffchainNode) + case "emissions.v2.QueryActiveTopicsResponse.topics": + lv := value.List() + clv := lv.(*_QueryActiveTopicsResponse_1_list) + x.Topics = *clv.list + case "emissions.v2.QueryActiveTopicsResponse.pagination": + x.Pagination = value.Message().Interface().(*SimpleCursorPaginationResponse) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerNodeInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryActiveTopicsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerNodeInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryActiveTopicsResponse does not contain field %s", fd.FullName())) } } @@ -15717,44 +16004,53 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerNodeInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryActiveTopicsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerNodeInfoResponse.node_info": - if x.NodeInfo == nil { - x.NodeInfo = new(OffchainNode) + case "emissions.v2.QueryActiveTopicsResponse.topics": + if x.Topics == nil { + x.Topics = []*Topic{} } - return protoreflect.ValueOfMessage(x.NodeInfo.ProtoReflect()) + value := &_QueryActiveTopicsResponse_1_list{list: &x.Topics} + return protoreflect.ValueOfList(value) + case "emissions.v2.QueryActiveTopicsResponse.pagination": + if x.Pagination == nil { + x.Pagination = new(SimpleCursorPaginationResponse) + } + return protoreflect.ValueOfMessage(x.Pagination.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerNodeInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryActiveTopicsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerNodeInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryActiveTopicsResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryWorkerNodeInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryActiveTopicsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerNodeInfoResponse.node_info": - m := new(OffchainNode) + case "emissions.v2.QueryActiveTopicsResponse.topics": + list := []*Topic{} + return protoreflect.ValueOfList(&_QueryActiveTopicsResponse_1_list{list: &list}) + case "emissions.v2.QueryActiveTopicsResponse.pagination": + m := new(SimpleCursorPaginationResponse) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerNodeInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryActiveTopicsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerNodeInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryActiveTopicsResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryWorkerNodeInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryActiveTopicsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryWorkerNodeInfoResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryActiveTopicsResponse", d.FullName())) } panic("unreachable") } @@ -15762,7 +16058,7 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryWorkerNodeInfoResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryActiveTopicsResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -15773,7 +16069,7 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerNodeInfoResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryActiveTopicsResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -15785,7 +16081,7 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryWorkerNodeInfoResponse) IsValid() bool { +func (x *fastReflection_QueryActiveTopicsResponse) IsValid() bool { return x != nil } @@ -15795,9 +16091,9 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryWorkerNodeInfoResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryActiveTopicsResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryWorkerNodeInfoResponse) + x := input.Message.Interface().(*QueryActiveTopicsResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15809,8 +16105,14 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) ProtoMethods() *protoiface. var n int var l int _ = l - if x.NodeInfo != nil { - l = options.Size(x.NodeInfo) + if len(x.Topics) > 0 { + for _, e := range x.Topics { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.Pagination != nil { + l = options.Size(x.Pagination) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -15823,7 +16125,7 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerNodeInfoResponse) + x := input.Message.Interface().(*QueryActiveTopicsResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15842,8 +16144,8 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) ProtoMethods() *protoiface. i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.NodeInfo != nil { - encoded, err := options.Marshal(x.NodeInfo) + if x.Pagination != nil { + encoded, err := options.Marshal(x.Pagination) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15854,7 +16156,23 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) ProtoMethods() *protoiface. copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if len(x.Topics) > 0 { + for iNdEx := len(x.Topics) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Topics[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -15867,7 +16185,7 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerNodeInfoResponse) + x := input.Message.Interface().(*QueryActiveTopicsResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -15899,15 +16217,15 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerNodeInfoResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryActiveTopicsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerNodeInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryActiveTopicsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeInfo", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15934,10 +16252,44 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) ProtoMethods() *protoiface. if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.NodeInfo == nil { - x.NodeInfo = &OffchainNode{} + x.Topics = append(x.Topics, &Topic{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Topics[len(x.Topics)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NodeInfo); err != nil { + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Pagination == nil { + x.Pagination = &SimpleCursorPaginationResponse{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Pagination); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -15977,26 +16329,28 @@ func (x *fastReflection_QueryWorkerNodeInfoResponse) ProtoMethods() *protoiface. } var ( - md_QueryReputerNodeInfoRequest protoreflect.MessageDescriptor - fd_QueryReputerNodeInfoRequest_libp2p_key protoreflect.FieldDescriptor + md_QueryInferencesAtBlockRequest protoreflect.MessageDescriptor + fd_QueryInferencesAtBlockRequest_topic_id protoreflect.FieldDescriptor + fd_QueryInferencesAtBlockRequest_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryReputerNodeInfoRequest = File_emissions_v1_query_proto.Messages().ByName("QueryReputerNodeInfoRequest") - fd_QueryReputerNodeInfoRequest_libp2p_key = md_QueryReputerNodeInfoRequest.Fields().ByName("libp2p_key") + file_emissions_v2_query_proto_init() + md_QueryInferencesAtBlockRequest = File_emissions_v2_query_proto.Messages().ByName("QueryInferencesAtBlockRequest") + fd_QueryInferencesAtBlockRequest_topic_id = md_QueryInferencesAtBlockRequest.Fields().ByName("topic_id") + fd_QueryInferencesAtBlockRequest_block_height = md_QueryInferencesAtBlockRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryReputerNodeInfoRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryInferencesAtBlockRequest)(nil) -type fastReflection_QueryReputerNodeInfoRequest QueryReputerNodeInfoRequest +type fastReflection_QueryInferencesAtBlockRequest QueryInferencesAtBlockRequest -func (x *QueryReputerNodeInfoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryReputerNodeInfoRequest)(x) +func (x *QueryInferencesAtBlockRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryInferencesAtBlockRequest)(x) } -func (x *QueryReputerNodeInfoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[36] +func (x *QueryInferencesAtBlockRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16007,43 +16361,43 @@ func (x *QueryReputerNodeInfoRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryReputerNodeInfoRequest_messageType fastReflection_QueryReputerNodeInfoRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryReputerNodeInfoRequest_messageType{} +var _fastReflection_QueryInferencesAtBlockRequest_messageType fastReflection_QueryInferencesAtBlockRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryInferencesAtBlockRequest_messageType{} -type fastReflection_QueryReputerNodeInfoRequest_messageType struct{} +type fastReflection_QueryInferencesAtBlockRequest_messageType struct{} -func (x fastReflection_QueryReputerNodeInfoRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryReputerNodeInfoRequest)(nil) +func (x fastReflection_QueryInferencesAtBlockRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryInferencesAtBlockRequest)(nil) } -func (x fastReflection_QueryReputerNodeInfoRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryReputerNodeInfoRequest) +func (x fastReflection_QueryInferencesAtBlockRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryInferencesAtBlockRequest) } -func (x fastReflection_QueryReputerNodeInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerNodeInfoRequest +func (x fastReflection_QueryInferencesAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInferencesAtBlockRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryReputerNodeInfoRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerNodeInfoRequest +func (x *fastReflection_QueryInferencesAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInferencesAtBlockRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryReputerNodeInfoRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryReputerNodeInfoRequest_messageType +func (x *fastReflection_QueryInferencesAtBlockRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryInferencesAtBlockRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryReputerNodeInfoRequest) New() protoreflect.Message { - return new(fastReflection_QueryReputerNodeInfoRequest) +func (x *fastReflection_QueryInferencesAtBlockRequest) New() protoreflect.Message { + return new(fastReflection_QueryInferencesAtBlockRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryReputerNodeInfoRequest) Interface() protoreflect.ProtoMessage { - return (*QueryReputerNodeInfoRequest)(x) +func (x *fastReflection_QueryInferencesAtBlockRequest) Interface() protoreflect.ProtoMessage { + return (*QueryInferencesAtBlockRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -16051,10 +16405,16 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryReputerNodeInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Libp2PKey != "" { - value := protoreflect.ValueOfString(x.Libp2PKey) - if !f(fd_QueryReputerNodeInfoRequest_libp2p_key, value) { +func (x *fastReflection_QueryInferencesAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryInferencesAtBlockRequest_topic_id, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_QueryInferencesAtBlockRequest_block_height, value) { return } } @@ -16071,15 +16431,17 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryReputerNodeInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryInferencesAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryReputerNodeInfoRequest.libp2p_key": - return x.Libp2PKey != "" + case "emissions.v2.QueryInferencesAtBlockRequest.topic_id": + return x.TopicId != uint64(0) + case "emissions.v2.QueryInferencesAtBlockRequest.block_height": + return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerNodeInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferencesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerNodeInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferencesAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -16089,15 +16451,17 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerNodeInfoRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryInferencesAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryReputerNodeInfoRequest.libp2p_key": - x.Libp2PKey = "" + case "emissions.v2.QueryInferencesAtBlockRequest.topic_id": + x.TopicId = uint64(0) + case "emissions.v2.QueryInferencesAtBlockRequest.block_height": + x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerNodeInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferencesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerNodeInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferencesAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -16107,16 +16471,19 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryReputerNodeInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInferencesAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryReputerNodeInfoRequest.libp2p_key": - value := x.Libp2PKey - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryInferencesAtBlockRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryInferencesAtBlockRequest.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerNodeInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferencesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerNodeInfoRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferencesAtBlockRequest does not contain field %s", descriptor.FullName())) } } @@ -16130,15 +16497,17 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerNodeInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryInferencesAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryReputerNodeInfoRequest.libp2p_key": - x.Libp2PKey = value.Interface().(string) + case "emissions.v2.QueryInferencesAtBlockRequest.topic_id": + x.TopicId = value.Uint() + case "emissions.v2.QueryInferencesAtBlockRequest.block_height": + x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerNodeInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferencesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerNodeInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferencesAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -16152,40 +16521,44 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerNodeInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInferencesAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerNodeInfoRequest.libp2p_key": - panic(fmt.Errorf("field libp2p_key of message emissions.v1.QueryReputerNodeInfoRequest is not mutable")) + case "emissions.v2.QueryInferencesAtBlockRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryInferencesAtBlockRequest is not mutable")) + case "emissions.v2.QueryInferencesAtBlockRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryInferencesAtBlockRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerNodeInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferencesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerNodeInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferencesAtBlockRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryReputerNodeInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInferencesAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerNodeInfoRequest.libp2p_key": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryInferencesAtBlockRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryInferencesAtBlockRequest.block_height": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerNodeInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferencesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerNodeInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferencesAtBlockRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryReputerNodeInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryInferencesAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryReputerNodeInfoRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryInferencesAtBlockRequest", d.FullName())) } panic("unreachable") } @@ -16193,7 +16566,7 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryReputerNodeInfoRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryInferencesAtBlockRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -16204,7 +16577,7 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerNodeInfoRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryInferencesAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -16216,7 +16589,7 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryReputerNodeInfoRequest) IsValid() bool { +func (x *fastReflection_QueryInferencesAtBlockRequest) IsValid() bool { return x != nil } @@ -16226,9 +16599,9 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryReputerNodeInfoRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryInferencesAtBlockRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryReputerNodeInfoRequest) + x := input.Message.Interface().(*QueryInferencesAtBlockRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16240,9 +16613,11 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) ProtoMethods() *protoiface. var n int var l int _ = l - l = len(x.Libp2PKey) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -16254,7 +16629,7 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerNodeInfoRequest) + x := input.Message.Interface().(*QueryInferencesAtBlockRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16273,12 +16648,15 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) ProtoMethods() *protoiface. i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Libp2PKey) > 0 { - i -= len(x.Libp2PKey) - copy(dAtA[i:], x.Libp2PKey) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Libp2PKey))) + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x10 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -16291,7 +16669,7 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerNodeInfoRequest) + x := input.Message.Interface().(*QueryInferencesAtBlockRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16323,17 +16701,17 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerNodeInfoRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferencesAtBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerNodeInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferencesAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Libp2PKey", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } - var stringLen uint64 + x.TopicId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -16343,24 +16721,30 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) ProtoMethods() *protoiface. } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.TopicId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - x.Libp2PKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -16397,26 +16781,26 @@ func (x *fastReflection_QueryReputerNodeInfoRequest) ProtoMethods() *protoiface. } var ( - md_QueryReputerNodeInfoResponse protoreflect.MessageDescriptor - fd_QueryReputerNodeInfoResponse_node_info protoreflect.FieldDescriptor + md_QueryInferencesAtBlockResponse protoreflect.MessageDescriptor + fd_QueryInferencesAtBlockResponse_inferences protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryReputerNodeInfoResponse = File_emissions_v1_query_proto.Messages().ByName("QueryReputerNodeInfoResponse") - fd_QueryReputerNodeInfoResponse_node_info = md_QueryReputerNodeInfoResponse.Fields().ByName("node_info") + file_emissions_v2_query_proto_init() + md_QueryInferencesAtBlockResponse = File_emissions_v2_query_proto.Messages().ByName("QueryInferencesAtBlockResponse") + fd_QueryInferencesAtBlockResponse_inferences = md_QueryInferencesAtBlockResponse.Fields().ByName("inferences") } -var _ protoreflect.Message = (*fastReflection_QueryReputerNodeInfoResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryInferencesAtBlockResponse)(nil) -type fastReflection_QueryReputerNodeInfoResponse QueryReputerNodeInfoResponse +type fastReflection_QueryInferencesAtBlockResponse QueryInferencesAtBlockResponse -func (x *QueryReputerNodeInfoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryReputerNodeInfoResponse)(x) +func (x *QueryInferencesAtBlockResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryInferencesAtBlockResponse)(x) } -func (x *QueryReputerNodeInfoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[37] +func (x *QueryInferencesAtBlockResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16427,43 +16811,43 @@ func (x *QueryReputerNodeInfoResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryReputerNodeInfoResponse_messageType fastReflection_QueryReputerNodeInfoResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryReputerNodeInfoResponse_messageType{} +var _fastReflection_QueryInferencesAtBlockResponse_messageType fastReflection_QueryInferencesAtBlockResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryInferencesAtBlockResponse_messageType{} -type fastReflection_QueryReputerNodeInfoResponse_messageType struct{} +type fastReflection_QueryInferencesAtBlockResponse_messageType struct{} -func (x fastReflection_QueryReputerNodeInfoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryReputerNodeInfoResponse)(nil) +func (x fastReflection_QueryInferencesAtBlockResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryInferencesAtBlockResponse)(nil) } -func (x fastReflection_QueryReputerNodeInfoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryReputerNodeInfoResponse) +func (x fastReflection_QueryInferencesAtBlockResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryInferencesAtBlockResponse) } -func (x fastReflection_QueryReputerNodeInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerNodeInfoResponse +func (x fastReflection_QueryInferencesAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInferencesAtBlockResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryReputerNodeInfoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerNodeInfoResponse +func (x *fastReflection_QueryInferencesAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInferencesAtBlockResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryReputerNodeInfoResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryReputerNodeInfoResponse_messageType +func (x *fastReflection_QueryInferencesAtBlockResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryInferencesAtBlockResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryReputerNodeInfoResponse) New() protoreflect.Message { - return new(fastReflection_QueryReputerNodeInfoResponse) +func (x *fastReflection_QueryInferencesAtBlockResponse) New() protoreflect.Message { + return new(fastReflection_QueryInferencesAtBlockResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryReputerNodeInfoResponse) Interface() protoreflect.ProtoMessage { - return (*QueryReputerNodeInfoResponse)(x) +func (x *fastReflection_QueryInferencesAtBlockResponse) Interface() protoreflect.ProtoMessage { + return (*QueryInferencesAtBlockResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -16471,10 +16855,10 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryReputerNodeInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.NodeInfo != nil { - value := protoreflect.ValueOfMessage(x.NodeInfo.ProtoReflect()) - if !f(fd_QueryReputerNodeInfoResponse_node_info, value) { +func (x *fastReflection_QueryInferencesAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Inferences != nil { + value := protoreflect.ValueOfMessage(x.Inferences.ProtoReflect()) + if !f(fd_QueryInferencesAtBlockResponse_inferences, value) { return } } @@ -16491,15 +16875,15 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryReputerNodeInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryInferencesAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryReputerNodeInfoResponse.node_info": - return x.NodeInfo != nil + case "emissions.v2.QueryInferencesAtBlockResponse.inferences": + return x.Inferences != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerNodeInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferencesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerNodeInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferencesAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -16509,15 +16893,15 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerNodeInfoResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryInferencesAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryReputerNodeInfoResponse.node_info": - x.NodeInfo = nil + case "emissions.v2.QueryInferencesAtBlockResponse.inferences": + x.Inferences = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerNodeInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferencesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerNodeInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferencesAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -16527,16 +16911,16 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryReputerNodeInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInferencesAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryReputerNodeInfoResponse.node_info": - value := x.NodeInfo + case "emissions.v2.QueryInferencesAtBlockResponse.inferences": + value := x.Inferences return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerNodeInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferencesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerNodeInfoResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferencesAtBlockResponse does not contain field %s", descriptor.FullName())) } } @@ -16550,15 +16934,15 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerNodeInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryInferencesAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryReputerNodeInfoResponse.node_info": - x.NodeInfo = value.Message().Interface().(*OffchainNode) + case "emissions.v2.QueryInferencesAtBlockResponse.inferences": + x.Inferences = value.Message().Interface().(*Inferences) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerNodeInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferencesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerNodeInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferencesAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -16572,44 +16956,44 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerNodeInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInferencesAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerNodeInfoResponse.node_info": - if x.NodeInfo == nil { - x.NodeInfo = new(OffchainNode) + case "emissions.v2.QueryInferencesAtBlockResponse.inferences": + if x.Inferences == nil { + x.Inferences = new(Inferences) } - return protoreflect.ValueOfMessage(x.NodeInfo.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Inferences.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerNodeInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferencesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerNodeInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferencesAtBlockResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryReputerNodeInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInferencesAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerNodeInfoResponse.node_info": - m := new(OffchainNode) + case "emissions.v2.QueryInferencesAtBlockResponse.inferences": + m := new(Inferences) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerNodeInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferencesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerNodeInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferencesAtBlockResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryReputerNodeInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryInferencesAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryReputerNodeInfoResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryInferencesAtBlockResponse", d.FullName())) } panic("unreachable") } @@ -16617,7 +17001,7 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryReputerNodeInfoResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryInferencesAtBlockResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -16628,7 +17012,7 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerNodeInfoResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryInferencesAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -16640,7 +17024,7 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryReputerNodeInfoResponse) IsValid() bool { +func (x *fastReflection_QueryInferencesAtBlockResponse) IsValid() bool { return x != nil } @@ -16650,9 +17034,9 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryReputerNodeInfoResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryInferencesAtBlockResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryReputerNodeInfoResponse) + x := input.Message.Interface().(*QueryInferencesAtBlockResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16664,8 +17048,8 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) ProtoMethods() *protoiface var n int var l int _ = l - if x.NodeInfo != nil { - l = options.Size(x.NodeInfo) + if x.Inferences != nil { + l = options.Size(x.Inferences) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -16678,7 +17062,7 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerNodeInfoResponse) + x := input.Message.Interface().(*QueryInferencesAtBlockResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16697,8 +17081,8 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.NodeInfo != nil { - encoded, err := options.Marshal(x.NodeInfo) + if x.Inferences != nil { + encoded, err := options.Marshal(x.Inferences) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16722,7 +17106,7 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerNodeInfoResponse) + x := input.Message.Interface().(*QueryInferencesAtBlockResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -16754,15 +17138,15 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerNodeInfoResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferencesAtBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerNodeInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferencesAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeInfo", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inferences", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16789,10 +17173,10 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) ProtoMethods() *protoiface if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.NodeInfo == nil { - x.NodeInfo = &OffchainNode{} + if x.Inferences == nil { + x.Inferences = &Inferences{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NodeInfo); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Inferences); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -16832,26 +17216,26 @@ func (x *fastReflection_QueryReputerNodeInfoResponse) ProtoMethods() *protoiface } var ( - md_QueryWorkerAddressByP2PKeyRequest protoreflect.MessageDescriptor - fd_QueryWorkerAddressByP2PKeyRequest_libp2p_key protoreflect.FieldDescriptor + md_QueryLatestTopicInferencesRequest protoreflect.MessageDescriptor + fd_QueryLatestTopicInferencesRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryWorkerAddressByP2PKeyRequest = File_emissions_v1_query_proto.Messages().ByName("QueryWorkerAddressByP2PKeyRequest") - fd_QueryWorkerAddressByP2PKeyRequest_libp2p_key = md_QueryWorkerAddressByP2PKeyRequest.Fields().ByName("libp2p_key") + file_emissions_v2_query_proto_init() + md_QueryLatestTopicInferencesRequest = File_emissions_v2_query_proto.Messages().ByName("QueryLatestTopicInferencesRequest") + fd_QueryLatestTopicInferencesRequest_topic_id = md_QueryLatestTopicInferencesRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryWorkerAddressByP2PKeyRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryLatestTopicInferencesRequest)(nil) -type fastReflection_QueryWorkerAddressByP2PKeyRequest QueryWorkerAddressByP2PKeyRequest +type fastReflection_QueryLatestTopicInferencesRequest QueryLatestTopicInferencesRequest -func (x *QueryWorkerAddressByP2PKeyRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryWorkerAddressByP2PKeyRequest)(x) +func (x *QueryLatestTopicInferencesRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLatestTopicInferencesRequest)(x) } -func (x *QueryWorkerAddressByP2PKeyRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[38] +func (x *QueryLatestTopicInferencesRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16862,43 +17246,43 @@ func (x *QueryWorkerAddressByP2PKeyRequest) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryWorkerAddressByP2PKeyRequest_messageType fastReflection_QueryWorkerAddressByP2PKeyRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryWorkerAddressByP2PKeyRequest_messageType{} +var _fastReflection_QueryLatestTopicInferencesRequest_messageType fastReflection_QueryLatestTopicInferencesRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryLatestTopicInferencesRequest_messageType{} -type fastReflection_QueryWorkerAddressByP2PKeyRequest_messageType struct{} +type fastReflection_QueryLatestTopicInferencesRequest_messageType struct{} -func (x fastReflection_QueryWorkerAddressByP2PKeyRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryWorkerAddressByP2PKeyRequest)(nil) +func (x fastReflection_QueryLatestTopicInferencesRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLatestTopicInferencesRequest)(nil) } -func (x fastReflection_QueryWorkerAddressByP2PKeyRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryWorkerAddressByP2PKeyRequest) +func (x fastReflection_QueryLatestTopicInferencesRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLatestTopicInferencesRequest) } -func (x fastReflection_QueryWorkerAddressByP2PKeyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerAddressByP2PKeyRequest +func (x fastReflection_QueryLatestTopicInferencesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestTopicInferencesRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerAddressByP2PKeyRequest +func (x *fastReflection_QueryLatestTopicInferencesRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestTopicInferencesRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryWorkerAddressByP2PKeyRequest_messageType +func (x *fastReflection_QueryLatestTopicInferencesRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryLatestTopicInferencesRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) New() protoreflect.Message { - return new(fastReflection_QueryWorkerAddressByP2PKeyRequest) +func (x *fastReflection_QueryLatestTopicInferencesRequest) New() protoreflect.Message { + return new(fastReflection_QueryLatestTopicInferencesRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Interface() protoreflect.ProtoMessage { - return (*QueryWorkerAddressByP2PKeyRequest)(x) +func (x *fastReflection_QueryLatestTopicInferencesRequest) Interface() protoreflect.ProtoMessage { + return (*QueryLatestTopicInferencesRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -16906,10 +17290,10 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Libp2PKey != "" { - value := protoreflect.ValueOfString(x.Libp2PKey) - if !f(fd_QueryWorkerAddressByP2PKeyRequest_libp2p_key, value) { +func (x *fastReflection_QueryLatestTopicInferencesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryLatestTopicInferencesRequest_topic_id, value) { return } } @@ -16926,15 +17310,15 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryLatestTopicInferencesRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryWorkerAddressByP2PKeyRequest.libp2p_key": - return x.Libp2PKey != "" + case "emissions.v2.QueryLatestTopicInferencesRequest.topic_id": + return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerAddressByP2PKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestTopicInferencesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerAddressByP2PKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestTopicInferencesRequest does not contain field %s", fd.FullName())) } } @@ -16944,15 +17328,15 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryLatestTopicInferencesRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryWorkerAddressByP2PKeyRequest.libp2p_key": - x.Libp2PKey = "" + case "emissions.v2.QueryLatestTopicInferencesRequest.topic_id": + x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerAddressByP2PKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestTopicInferencesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerAddressByP2PKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestTopicInferencesRequest does not contain field %s", fd.FullName())) } } @@ -16962,16 +17346,16 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestTopicInferencesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryWorkerAddressByP2PKeyRequest.libp2p_key": - value := x.Libp2PKey - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryLatestTopicInferencesRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerAddressByP2PKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestTopicInferencesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerAddressByP2PKeyRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestTopicInferencesRequest does not contain field %s", descriptor.FullName())) } } @@ -16985,15 +17369,15 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryLatestTopicInferencesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryWorkerAddressByP2PKeyRequest.libp2p_key": - x.Libp2PKey = value.Interface().(string) + case "emissions.v2.QueryLatestTopicInferencesRequest.topic_id": + x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerAddressByP2PKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestTopicInferencesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerAddressByP2PKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestTopicInferencesRequest does not contain field %s", fd.FullName())) } } @@ -17007,40 +17391,40 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestTopicInferencesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerAddressByP2PKeyRequest.libp2p_key": - panic(fmt.Errorf("field libp2p_key of message emissions.v1.QueryWorkerAddressByP2PKeyRequest is not mutable")) + case "emissions.v2.QueryLatestTopicInferencesRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryLatestTopicInferencesRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerAddressByP2PKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestTopicInferencesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerAddressByP2PKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestTopicInferencesRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestTopicInferencesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerAddressByP2PKeyRequest.libp2p_key": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryLatestTopicInferencesRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerAddressByP2PKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestTopicInferencesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerAddressByP2PKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestTopicInferencesRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryLatestTopicInferencesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryWorkerAddressByP2PKeyRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryLatestTopicInferencesRequest", d.FullName())) } panic("unreachable") } @@ -17048,7 +17432,7 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryLatestTopicInferencesRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -17059,7 +17443,7 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryLatestTopicInferencesRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -17071,7 +17455,7 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) IsValid() bool { +func (x *fastReflection_QueryLatestTopicInferencesRequest) IsValid() bool { return x != nil } @@ -17081,9 +17465,9 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryLatestTopicInferencesRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryWorkerAddressByP2PKeyRequest) + x := input.Message.Interface().(*QueryLatestTopicInferencesRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17095,9 +17479,8 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) ProtoMethods() *proto var n int var l int _ = l - l = len(x.Libp2PKey) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -17109,7 +17492,7 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerAddressByP2PKeyRequest) + x := input.Message.Interface().(*QueryLatestTopicInferencesRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17128,12 +17511,10 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) ProtoMethods() *proto i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Libp2PKey) > 0 { - i -= len(x.Libp2PKey) - copy(dAtA[i:], x.Libp2PKey) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Libp2PKey))) + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -17146,7 +17527,7 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerAddressByP2PKeyRequest) + x := input.Message.Interface().(*QueryLatestTopicInferencesRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17178,17 +17559,17 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerAddressByP2PKeyRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestTopicInferencesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerAddressByP2PKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestTopicInferencesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Libp2PKey", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } - var stringLen uint64 + x.TopicId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -17198,24 +17579,11 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) ProtoMethods() *proto } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.TopicId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Libp2PKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -17252,26 +17620,28 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyRequest) ProtoMethods() *proto } var ( - md_QueryWorkerAddressByP2PKeyResponse protoreflect.MessageDescriptor - fd_QueryWorkerAddressByP2PKeyResponse_address protoreflect.FieldDescriptor + md_QueryLatestTopicInferencesResponse protoreflect.MessageDescriptor + fd_QueryLatestTopicInferencesResponse_inferences protoreflect.FieldDescriptor + fd_QueryLatestTopicInferencesResponse_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryWorkerAddressByP2PKeyResponse = File_emissions_v1_query_proto.Messages().ByName("QueryWorkerAddressByP2PKeyResponse") - fd_QueryWorkerAddressByP2PKeyResponse_address = md_QueryWorkerAddressByP2PKeyResponse.Fields().ByName("address") + file_emissions_v2_query_proto_init() + md_QueryLatestTopicInferencesResponse = File_emissions_v2_query_proto.Messages().ByName("QueryLatestTopicInferencesResponse") + fd_QueryLatestTopicInferencesResponse_inferences = md_QueryLatestTopicInferencesResponse.Fields().ByName("inferences") + fd_QueryLatestTopicInferencesResponse_block_height = md_QueryLatestTopicInferencesResponse.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryWorkerAddressByP2PKeyResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryLatestTopicInferencesResponse)(nil) -type fastReflection_QueryWorkerAddressByP2PKeyResponse QueryWorkerAddressByP2PKeyResponse +type fastReflection_QueryLatestTopicInferencesResponse QueryLatestTopicInferencesResponse -func (x *QueryWorkerAddressByP2PKeyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryWorkerAddressByP2PKeyResponse)(x) +func (x *QueryLatestTopicInferencesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLatestTopicInferencesResponse)(x) } -func (x *QueryWorkerAddressByP2PKeyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[39] +func (x *QueryLatestTopicInferencesResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17282,43 +17652,43 @@ func (x *QueryWorkerAddressByP2PKeyResponse) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryWorkerAddressByP2PKeyResponse_messageType fastReflection_QueryWorkerAddressByP2PKeyResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryWorkerAddressByP2PKeyResponse_messageType{} +var _fastReflection_QueryLatestTopicInferencesResponse_messageType fastReflection_QueryLatestTopicInferencesResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryLatestTopicInferencesResponse_messageType{} -type fastReflection_QueryWorkerAddressByP2PKeyResponse_messageType struct{} +type fastReflection_QueryLatestTopicInferencesResponse_messageType struct{} -func (x fastReflection_QueryWorkerAddressByP2PKeyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryWorkerAddressByP2PKeyResponse)(nil) +func (x fastReflection_QueryLatestTopicInferencesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLatestTopicInferencesResponse)(nil) } -func (x fastReflection_QueryWorkerAddressByP2PKeyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryWorkerAddressByP2PKeyResponse) +func (x fastReflection_QueryLatestTopicInferencesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLatestTopicInferencesResponse) } -func (x fastReflection_QueryWorkerAddressByP2PKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerAddressByP2PKeyResponse +func (x fastReflection_QueryLatestTopicInferencesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestTopicInferencesResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerAddressByP2PKeyResponse +func (x *fastReflection_QueryLatestTopicInferencesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestTopicInferencesResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryWorkerAddressByP2PKeyResponse_messageType +func (x *fastReflection_QueryLatestTopicInferencesResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryLatestTopicInferencesResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) New() protoreflect.Message { - return new(fastReflection_QueryWorkerAddressByP2PKeyResponse) +func (x *fastReflection_QueryLatestTopicInferencesResponse) New() protoreflect.Message { + return new(fastReflection_QueryLatestTopicInferencesResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Interface() protoreflect.ProtoMessage { - return (*QueryWorkerAddressByP2PKeyResponse)(x) +func (x *fastReflection_QueryLatestTopicInferencesResponse) Interface() protoreflect.ProtoMessage { + return (*QueryLatestTopicInferencesResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -17326,10 +17696,16 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryWorkerAddressByP2PKeyResponse_address, value) { +func (x *fastReflection_QueryLatestTopicInferencesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Inferences != nil { + value := protoreflect.ValueOfMessage(x.Inferences.ProtoReflect()) + if !f(fd_QueryLatestTopicInferencesResponse_inferences, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_QueryLatestTopicInferencesResponse_block_height, value) { return } } @@ -17346,15 +17722,17 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryLatestTopicInferencesResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryWorkerAddressByP2PKeyResponse.address": - return x.Address != "" + case "emissions.v2.QueryLatestTopicInferencesResponse.inferences": + return x.Inferences != nil + case "emissions.v2.QueryLatestTopicInferencesResponse.block_height": + return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerAddressByP2PKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestTopicInferencesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerAddressByP2PKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestTopicInferencesResponse does not contain field %s", fd.FullName())) } } @@ -17364,15 +17742,17 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryLatestTopicInferencesResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryWorkerAddressByP2PKeyResponse.address": - x.Address = "" + case "emissions.v2.QueryLatestTopicInferencesResponse.inferences": + x.Inferences = nil + case "emissions.v2.QueryLatestTopicInferencesResponse.block_height": + x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerAddressByP2PKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestTopicInferencesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerAddressByP2PKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestTopicInferencesResponse does not contain field %s", fd.FullName())) } } @@ -17382,16 +17762,19 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestTopicInferencesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryWorkerAddressByP2PKeyResponse.address": - value := x.Address - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryLatestTopicInferencesResponse.inferences": + value := x.Inferences + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryLatestTopicInferencesResponse.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerAddressByP2PKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestTopicInferencesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerAddressByP2PKeyResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestTopicInferencesResponse does not contain field %s", descriptor.FullName())) } } @@ -17405,15 +17788,17 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryLatestTopicInferencesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryWorkerAddressByP2PKeyResponse.address": - x.Address = value.Interface().(string) + case "emissions.v2.QueryLatestTopicInferencesResponse.inferences": + x.Inferences = value.Message().Interface().(*Inferences) + case "emissions.v2.QueryLatestTopicInferencesResponse.block_height": + x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerAddressByP2PKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestTopicInferencesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerAddressByP2PKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestTopicInferencesResponse does not contain field %s", fd.FullName())) } } @@ -17427,40 +17812,48 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestTopicInferencesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerAddressByP2PKeyResponse.address": - panic(fmt.Errorf("field address of message emissions.v1.QueryWorkerAddressByP2PKeyResponse is not mutable")) + case "emissions.v2.QueryLatestTopicInferencesResponse.inferences": + if x.Inferences == nil { + x.Inferences = new(Inferences) + } + return protoreflect.ValueOfMessage(x.Inferences.ProtoReflect()) + case "emissions.v2.QueryLatestTopicInferencesResponse.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryLatestTopicInferencesResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerAddressByP2PKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestTopicInferencesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerAddressByP2PKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestTopicInferencesResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestTopicInferencesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerAddressByP2PKeyResponse.address": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryLatestTopicInferencesResponse.inferences": + m := new(Inferences) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryLatestTopicInferencesResponse.block_height": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerAddressByP2PKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestTopicInferencesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerAddressByP2PKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestTopicInferencesResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryLatestTopicInferencesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryWorkerAddressByP2PKeyResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryLatestTopicInferencesResponse", d.FullName())) } panic("unreachable") } @@ -17468,7 +17861,7 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryLatestTopicInferencesResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -17479,7 +17872,7 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryLatestTopicInferencesResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -17491,7 +17884,7 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) IsValid() bool { +func (x *fastReflection_QueryLatestTopicInferencesResponse) IsValid() bool { return x != nil } @@ -17501,9 +17894,9 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryLatestTopicInferencesResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryWorkerAddressByP2PKeyResponse) + x := input.Message.Interface().(*QueryLatestTopicInferencesResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17515,10 +17908,13 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) ProtoMethods() *prot var n int var l int _ = l - l = len(x.Address) - if l > 0 { + if x.Inferences != nil { + l = options.Size(x.Inferences) n += 1 + l + runtime.Sov(uint64(l)) } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -17529,7 +17925,7 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerAddressByP2PKeyResponse) + x := input.Message.Interface().(*QueryLatestTopicInferencesResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17548,10 +17944,22 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) ProtoMethods() *prot i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if x.Inferences != nil { + encoded, err := options.Marshal(x.Inferences) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -17566,7 +17974,7 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerAddressByP2PKeyResponse) + x := input.Message.Interface().(*QueryLatestTopicInferencesResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17598,17 +18006,17 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerAddressByP2PKeyResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestTopicInferencesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerAddressByP2PKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestTopicInferencesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inferences", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -17618,24 +18026,47 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) ProtoMethods() *prot } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Address = string(dAtA[iNdEx:postIndex]) + if x.Inferences == nil { + x.Inferences = &Inferences{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Inferences); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -17672,26 +18103,28 @@ func (x *fastReflection_QueryWorkerAddressByP2PKeyResponse) ProtoMethods() *prot } var ( - md_QueryReputerAddressByP2PKeyRequest protoreflect.MessageDescriptor - fd_QueryReputerAddressByP2PKeyRequest_libp2p_key protoreflect.FieldDescriptor + md_QueryForecastsAtBlockRequest protoreflect.MessageDescriptor + fd_QueryForecastsAtBlockRequest_topic_id protoreflect.FieldDescriptor + fd_QueryForecastsAtBlockRequest_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryReputerAddressByP2PKeyRequest = File_emissions_v1_query_proto.Messages().ByName("QueryReputerAddressByP2PKeyRequest") - fd_QueryReputerAddressByP2PKeyRequest_libp2p_key = md_QueryReputerAddressByP2PKeyRequest.Fields().ByName("libp2p_key") + file_emissions_v2_query_proto_init() + md_QueryForecastsAtBlockRequest = File_emissions_v2_query_proto.Messages().ByName("QueryForecastsAtBlockRequest") + fd_QueryForecastsAtBlockRequest_topic_id = md_QueryForecastsAtBlockRequest.Fields().ByName("topic_id") + fd_QueryForecastsAtBlockRequest_block_height = md_QueryForecastsAtBlockRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryReputerAddressByP2PKeyRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryForecastsAtBlockRequest)(nil) -type fastReflection_QueryReputerAddressByP2PKeyRequest QueryReputerAddressByP2PKeyRequest +type fastReflection_QueryForecastsAtBlockRequest QueryForecastsAtBlockRequest -func (x *QueryReputerAddressByP2PKeyRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryReputerAddressByP2PKeyRequest)(x) +func (x *QueryForecastsAtBlockRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryForecastsAtBlockRequest)(x) } -func (x *QueryReputerAddressByP2PKeyRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[40] +func (x *QueryForecastsAtBlockRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17702,43 +18135,43 @@ func (x *QueryReputerAddressByP2PKeyRequest) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryReputerAddressByP2PKeyRequest_messageType fastReflection_QueryReputerAddressByP2PKeyRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryReputerAddressByP2PKeyRequest_messageType{} +var _fastReflection_QueryForecastsAtBlockRequest_messageType fastReflection_QueryForecastsAtBlockRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryForecastsAtBlockRequest_messageType{} -type fastReflection_QueryReputerAddressByP2PKeyRequest_messageType struct{} +type fastReflection_QueryForecastsAtBlockRequest_messageType struct{} -func (x fastReflection_QueryReputerAddressByP2PKeyRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryReputerAddressByP2PKeyRequest)(nil) +func (x fastReflection_QueryForecastsAtBlockRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryForecastsAtBlockRequest)(nil) } -func (x fastReflection_QueryReputerAddressByP2PKeyRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryReputerAddressByP2PKeyRequest) +func (x fastReflection_QueryForecastsAtBlockRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryForecastsAtBlockRequest) } -func (x fastReflection_QueryReputerAddressByP2PKeyRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerAddressByP2PKeyRequest +func (x fastReflection_QueryForecastsAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryForecastsAtBlockRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerAddressByP2PKeyRequest +func (x *fastReflection_QueryForecastsAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryForecastsAtBlockRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryReputerAddressByP2PKeyRequest_messageType +func (x *fastReflection_QueryForecastsAtBlockRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryForecastsAtBlockRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) New() protoreflect.Message { - return new(fastReflection_QueryReputerAddressByP2PKeyRequest) +func (x *fastReflection_QueryForecastsAtBlockRequest) New() protoreflect.Message { + return new(fastReflection_QueryForecastsAtBlockRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Interface() protoreflect.ProtoMessage { - return (*QueryReputerAddressByP2PKeyRequest)(x) +func (x *fastReflection_QueryForecastsAtBlockRequest) Interface() protoreflect.ProtoMessage { + return (*QueryForecastsAtBlockRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -17746,10 +18179,16 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Libp2PKey != "" { - value := protoreflect.ValueOfString(x.Libp2PKey) - if !f(fd_QueryReputerAddressByP2PKeyRequest_libp2p_key, value) { +func (x *fastReflection_QueryForecastsAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryForecastsAtBlockRequest_topic_id, value) { + return + } + } + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_QueryForecastsAtBlockRequest_block_height, value) { return } } @@ -17766,15 +18205,17 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryForecastsAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryReputerAddressByP2PKeyRequest.libp2p_key": - return x.Libp2PKey != "" + case "emissions.v2.QueryForecastsAtBlockRequest.topic_id": + return x.TopicId != uint64(0) + case "emissions.v2.QueryForecastsAtBlockRequest.block_height": + return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerAddressByP2PKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastsAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerAddressByP2PKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastsAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -17784,15 +18225,17 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryForecastsAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryReputerAddressByP2PKeyRequest.libp2p_key": - x.Libp2PKey = "" + case "emissions.v2.QueryForecastsAtBlockRequest.topic_id": + x.TopicId = uint64(0) + case "emissions.v2.QueryForecastsAtBlockRequest.block_height": + x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerAddressByP2PKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastsAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerAddressByP2PKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastsAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -17802,16 +18245,19 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecastsAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryReputerAddressByP2PKeyRequest.libp2p_key": - value := x.Libp2PKey - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryForecastsAtBlockRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryForecastsAtBlockRequest.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerAddressByP2PKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastsAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerAddressByP2PKeyRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastsAtBlockRequest does not contain field %s", descriptor.FullName())) } } @@ -17825,15 +18271,17 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryForecastsAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryReputerAddressByP2PKeyRequest.libp2p_key": - x.Libp2PKey = value.Interface().(string) + case "emissions.v2.QueryForecastsAtBlockRequest.topic_id": + x.TopicId = value.Uint() + case "emissions.v2.QueryForecastsAtBlockRequest.block_height": + x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerAddressByP2PKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastsAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerAddressByP2PKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastsAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -17847,40 +18295,44 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecastsAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerAddressByP2PKeyRequest.libp2p_key": - panic(fmt.Errorf("field libp2p_key of message emissions.v1.QueryReputerAddressByP2PKeyRequest is not mutable")) + case "emissions.v2.QueryForecastsAtBlockRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryForecastsAtBlockRequest is not mutable")) + case "emissions.v2.QueryForecastsAtBlockRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryForecastsAtBlockRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerAddressByP2PKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastsAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerAddressByP2PKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastsAtBlockRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecastsAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerAddressByP2PKeyRequest.libp2p_key": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryForecastsAtBlockRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryForecastsAtBlockRequest.block_height": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerAddressByP2PKeyRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastsAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerAddressByP2PKeyRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastsAtBlockRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryForecastsAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryReputerAddressByP2PKeyRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryForecastsAtBlockRequest", d.FullName())) } panic("unreachable") } @@ -17888,7 +18340,7 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryForecastsAtBlockRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -17899,7 +18351,7 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryForecastsAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -17911,7 +18363,7 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) IsValid() bool { +func (x *fastReflection_QueryForecastsAtBlockRequest) IsValid() bool { return x != nil } @@ -17921,9 +18373,9 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryForecastsAtBlockRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryReputerAddressByP2PKeyRequest) + x := input.Message.Interface().(*QueryForecastsAtBlockRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17935,9 +18387,11 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) ProtoMethods() *prot var n int var l int _ = l - l = len(x.Libp2PKey) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -17949,7 +18403,7 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerAddressByP2PKeyRequest) + x := input.Message.Interface().(*QueryForecastsAtBlockRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -17968,12 +18422,15 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) ProtoMethods() *prot i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Libp2PKey) > 0 { - i -= len(x.Libp2PKey) - copy(dAtA[i:], x.Libp2PKey) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Libp2PKey))) + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x10 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -17986,7 +18443,7 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerAddressByP2PKeyRequest) + x := input.Message.Interface().(*QueryForecastsAtBlockRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -18018,17 +18475,17 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerAddressByP2PKeyRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastsAtBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerAddressByP2PKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastsAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Libp2PKey", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } - var stringLen uint64 + x.TopicId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -18038,24 +18495,30 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) ProtoMethods() *prot } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.TopicId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - x.Libp2PKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -18092,26 +18555,26 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyRequest) ProtoMethods() *prot } var ( - md_QueryReputerAddressByP2PKeyResponse protoreflect.MessageDescriptor - fd_QueryReputerAddressByP2PKeyResponse_address protoreflect.FieldDescriptor + md_QueryForecastsAtBlockResponse protoreflect.MessageDescriptor + fd_QueryForecastsAtBlockResponse_forecasts protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryReputerAddressByP2PKeyResponse = File_emissions_v1_query_proto.Messages().ByName("QueryReputerAddressByP2PKeyResponse") - fd_QueryReputerAddressByP2PKeyResponse_address = md_QueryReputerAddressByP2PKeyResponse.Fields().ByName("address") + file_emissions_v2_query_proto_init() + md_QueryForecastsAtBlockResponse = File_emissions_v2_query_proto.Messages().ByName("QueryForecastsAtBlockResponse") + fd_QueryForecastsAtBlockResponse_forecasts = md_QueryForecastsAtBlockResponse.Fields().ByName("forecasts") } -var _ protoreflect.Message = (*fastReflection_QueryReputerAddressByP2PKeyResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryForecastsAtBlockResponse)(nil) -type fastReflection_QueryReputerAddressByP2PKeyResponse QueryReputerAddressByP2PKeyResponse +type fastReflection_QueryForecastsAtBlockResponse QueryForecastsAtBlockResponse -func (x *QueryReputerAddressByP2PKeyResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryReputerAddressByP2PKeyResponse)(x) +func (x *QueryForecastsAtBlockResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryForecastsAtBlockResponse)(x) } -func (x *QueryReputerAddressByP2PKeyResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[41] +func (x *QueryForecastsAtBlockResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18122,43 +18585,43 @@ func (x *QueryReputerAddressByP2PKeyResponse) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_QueryReputerAddressByP2PKeyResponse_messageType fastReflection_QueryReputerAddressByP2PKeyResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryReputerAddressByP2PKeyResponse_messageType{} +var _fastReflection_QueryForecastsAtBlockResponse_messageType fastReflection_QueryForecastsAtBlockResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryForecastsAtBlockResponse_messageType{} -type fastReflection_QueryReputerAddressByP2PKeyResponse_messageType struct{} +type fastReflection_QueryForecastsAtBlockResponse_messageType struct{} -func (x fastReflection_QueryReputerAddressByP2PKeyResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryReputerAddressByP2PKeyResponse)(nil) +func (x fastReflection_QueryForecastsAtBlockResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryForecastsAtBlockResponse)(nil) } -func (x fastReflection_QueryReputerAddressByP2PKeyResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryReputerAddressByP2PKeyResponse) +func (x fastReflection_QueryForecastsAtBlockResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryForecastsAtBlockResponse) } -func (x fastReflection_QueryReputerAddressByP2PKeyResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerAddressByP2PKeyResponse +func (x fastReflection_QueryForecastsAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryForecastsAtBlockResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerAddressByP2PKeyResponse +func (x *fastReflection_QueryForecastsAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryForecastsAtBlockResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryReputerAddressByP2PKeyResponse_messageType +func (x *fastReflection_QueryForecastsAtBlockResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryForecastsAtBlockResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) New() protoreflect.Message { - return new(fastReflection_QueryReputerAddressByP2PKeyResponse) +func (x *fastReflection_QueryForecastsAtBlockResponse) New() protoreflect.Message { + return new(fastReflection_QueryForecastsAtBlockResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Interface() protoreflect.ProtoMessage { - return (*QueryReputerAddressByP2PKeyResponse)(x) +func (x *fastReflection_QueryForecastsAtBlockResponse) Interface() protoreflect.ProtoMessage { + return (*QueryForecastsAtBlockResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -18166,10 +18629,10 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryReputerAddressByP2PKeyResponse_address, value) { +func (x *fastReflection_QueryForecastsAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Forecasts != nil { + value := protoreflect.ValueOfMessage(x.Forecasts.ProtoReflect()) + if !f(fd_QueryForecastsAtBlockResponse_forecasts, value) { return } } @@ -18186,15 +18649,15 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Range(f func(protor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryForecastsAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryReputerAddressByP2PKeyResponse.address": - return x.Address != "" + case "emissions.v2.QueryForecastsAtBlockResponse.forecasts": + return x.Forecasts != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerAddressByP2PKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastsAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerAddressByP2PKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastsAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -18204,15 +18667,15 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryForecastsAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryReputerAddressByP2PKeyResponse.address": - x.Address = "" + case "emissions.v2.QueryForecastsAtBlockResponse.forecasts": + x.Forecasts = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerAddressByP2PKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastsAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerAddressByP2PKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastsAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -18222,16 +18685,16 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Clear(fd protorefle // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecastsAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryReputerAddressByP2PKeyResponse.address": - value := x.Address - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryForecastsAtBlockResponse.forecasts": + value := x.Forecasts + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerAddressByP2PKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastsAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerAddressByP2PKeyResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastsAtBlockResponse does not contain field %s", descriptor.FullName())) } } @@ -18245,15 +18708,15 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryForecastsAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryReputerAddressByP2PKeyResponse.address": - x.Address = value.Interface().(string) + case "emissions.v2.QueryForecastsAtBlockResponse.forecasts": + x.Forecasts = value.Message().Interface().(*Forecasts) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerAddressByP2PKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastsAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerAddressByP2PKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastsAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -18267,40 +18730,44 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecastsAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerAddressByP2PKeyResponse.address": - panic(fmt.Errorf("field address of message emissions.v1.QueryReputerAddressByP2PKeyResponse is not mutable")) + case "emissions.v2.QueryForecastsAtBlockResponse.forecasts": + if x.Forecasts == nil { + x.Forecasts = new(Forecasts) + } + return protoreflect.ValueOfMessage(x.Forecasts.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerAddressByP2PKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastsAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerAddressByP2PKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastsAtBlockResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecastsAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerAddressByP2PKeyResponse.address": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryForecastsAtBlockResponse.forecasts": + m := new(Forecasts) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerAddressByP2PKeyResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastsAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerAddressByP2PKeyResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastsAtBlockResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryForecastsAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryReputerAddressByP2PKeyResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryForecastsAtBlockResponse", d.FullName())) } panic("unreachable") } @@ -18308,7 +18775,7 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) WhichOneof(d protor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryForecastsAtBlockResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -18319,7 +18786,7 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryForecastsAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -18331,7 +18798,7 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) SetUnknown(fields p // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) IsValid() bool { +func (x *fastReflection_QueryForecastsAtBlockResponse) IsValid() bool { return x != nil } @@ -18341,9 +18808,9 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryForecastsAtBlockResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryReputerAddressByP2PKeyResponse) + x := input.Message.Interface().(*QueryForecastsAtBlockResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -18355,8 +18822,8 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) ProtoMethods() *pro var n int var l int _ = l - l = len(x.Address) - if l > 0 { + if x.Forecasts != nil { + l = options.Size(x.Forecasts) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -18369,7 +18836,7 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerAddressByP2PKeyResponse) + x := input.Message.Interface().(*QueryForecastsAtBlockResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -18388,10 +18855,17 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) ProtoMethods() *pro i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + if x.Forecasts != nil { + encoded, err := options.Marshal(x.Forecasts) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -18406,7 +18880,7 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerAddressByP2PKeyResponse) + x := input.Message.Interface().(*QueryForecastsAtBlockResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -18438,17 +18912,17 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerAddressByP2PKeyResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastsAtBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerAddressByP2PKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastsAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Forecasts", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -18458,23 +18932,27 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) ProtoMethods() *pro } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Address = string(dAtA[iNdEx:postIndex]) + if x.Forecasts == nil { + x.Forecasts = &Forecasts{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Forecasts); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -18512,30 +18990,28 @@ func (x *fastReflection_QueryReputerAddressByP2PKeyResponse) ProtoMethods() *pro } var ( - md_QueryNetworkInferencesAtBlockRequest protoreflect.MessageDescriptor - fd_QueryNetworkInferencesAtBlockRequest_topic_id protoreflect.FieldDescriptor - fd_QueryNetworkInferencesAtBlockRequest_block_height_last_inference protoreflect.FieldDescriptor - fd_QueryNetworkInferencesAtBlockRequest_block_height_last_reward protoreflect.FieldDescriptor + md_QueryWorkerLatestInferenceRequest protoreflect.MessageDescriptor + fd_QueryWorkerLatestInferenceRequest_topic_id protoreflect.FieldDescriptor + fd_QueryWorkerLatestInferenceRequest_worker_address protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryNetworkInferencesAtBlockRequest = File_emissions_v1_query_proto.Messages().ByName("QueryNetworkInferencesAtBlockRequest") - fd_QueryNetworkInferencesAtBlockRequest_topic_id = md_QueryNetworkInferencesAtBlockRequest.Fields().ByName("topic_id") - fd_QueryNetworkInferencesAtBlockRequest_block_height_last_inference = md_QueryNetworkInferencesAtBlockRequest.Fields().ByName("block_height_last_inference") - fd_QueryNetworkInferencesAtBlockRequest_block_height_last_reward = md_QueryNetworkInferencesAtBlockRequest.Fields().ByName("block_height_last_reward") + file_emissions_v2_query_proto_init() + md_QueryWorkerLatestInferenceRequest = File_emissions_v2_query_proto.Messages().ByName("QueryWorkerLatestInferenceRequest") + fd_QueryWorkerLatestInferenceRequest_topic_id = md_QueryWorkerLatestInferenceRequest.Fields().ByName("topic_id") + fd_QueryWorkerLatestInferenceRequest_worker_address = md_QueryWorkerLatestInferenceRequest.Fields().ByName("worker_address") } -var _ protoreflect.Message = (*fastReflection_QueryNetworkInferencesAtBlockRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryWorkerLatestInferenceRequest)(nil) -type fastReflection_QueryNetworkInferencesAtBlockRequest QueryNetworkInferencesAtBlockRequest +type fastReflection_QueryWorkerLatestInferenceRequest QueryWorkerLatestInferenceRequest -func (x *QueryNetworkInferencesAtBlockRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNetworkInferencesAtBlockRequest)(x) +func (x *QueryWorkerLatestInferenceRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryWorkerLatestInferenceRequest)(x) } -func (x *QueryNetworkInferencesAtBlockRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[42] +func (x *QueryWorkerLatestInferenceRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18546,43 +19022,43 @@ func (x *QueryNetworkInferencesAtBlockRequest) slowProtoReflect() protoreflect.M return mi.MessageOf(x) } -var _fastReflection_QueryNetworkInferencesAtBlockRequest_messageType fastReflection_QueryNetworkInferencesAtBlockRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryNetworkInferencesAtBlockRequest_messageType{} +var _fastReflection_QueryWorkerLatestInferenceRequest_messageType fastReflection_QueryWorkerLatestInferenceRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryWorkerLatestInferenceRequest_messageType{} -type fastReflection_QueryNetworkInferencesAtBlockRequest_messageType struct{} +type fastReflection_QueryWorkerLatestInferenceRequest_messageType struct{} -func (x fastReflection_QueryNetworkInferencesAtBlockRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNetworkInferencesAtBlockRequest)(nil) +func (x fastReflection_QueryWorkerLatestInferenceRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryWorkerLatestInferenceRequest)(nil) } -func (x fastReflection_QueryNetworkInferencesAtBlockRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNetworkInferencesAtBlockRequest) +func (x fastReflection_QueryWorkerLatestInferenceRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryWorkerLatestInferenceRequest) } -func (x fastReflection_QueryNetworkInferencesAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNetworkInferencesAtBlockRequest +func (x fastReflection_QueryWorkerLatestInferenceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerLatestInferenceRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNetworkInferencesAtBlockRequest +func (x *fastReflection_QueryWorkerLatestInferenceRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerLatestInferenceRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryNetworkInferencesAtBlockRequest_messageType +func (x *fastReflection_QueryWorkerLatestInferenceRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryWorkerLatestInferenceRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) New() protoreflect.Message { - return new(fastReflection_QueryNetworkInferencesAtBlockRequest) +func (x *fastReflection_QueryWorkerLatestInferenceRequest) New() protoreflect.Message { + return new(fastReflection_QueryWorkerLatestInferenceRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Interface() protoreflect.ProtoMessage { - return (*QueryNetworkInferencesAtBlockRequest)(x) +func (x *fastReflection_QueryWorkerLatestInferenceRequest) Interface() protoreflect.ProtoMessage { + return (*QueryWorkerLatestInferenceRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -18590,22 +19066,16 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Interface() protor // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryWorkerLatestInferenceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryNetworkInferencesAtBlockRequest_topic_id, value) { - return - } - } - if x.BlockHeightLastInference != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeightLastInference) - if !f(fd_QueryNetworkInferencesAtBlockRequest_block_height_last_inference, value) { + if !f(fd_QueryWorkerLatestInferenceRequest_topic_id, value) { return } } - if x.BlockHeightLastReward != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeightLastReward) - if !f(fd_QueryNetworkInferencesAtBlockRequest_block_height_last_reward, value) { + if x.WorkerAddress != "" { + value := protoreflect.ValueOfString(x.WorkerAddress) + if !f(fd_QueryWorkerLatestInferenceRequest_worker_address, value) { return } } @@ -18622,19 +19092,17 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Range(f func(proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryWorkerLatestInferenceRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.topic_id": + case "emissions.v2.QueryWorkerLatestInferenceRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.block_height_last_inference": - return x.BlockHeightLastInference != int64(0) - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.block_height_last_reward": - return x.BlockHeightLastReward != int64(0) + case "emissions.v2.QueryWorkerLatestInferenceRequest.worker_address": + return x.WorkerAddress != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkInferencesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerLatestInferenceRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkInferencesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerLatestInferenceRequest does not contain field %s", fd.FullName())) } } @@ -18644,19 +19112,17 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Has(fd protoreflec // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryWorkerLatestInferenceRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.topic_id": + case "emissions.v2.QueryWorkerLatestInferenceRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.block_height_last_inference": - x.BlockHeightLastInference = int64(0) - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.block_height_last_reward": - x.BlockHeightLastReward = int64(0) + case "emissions.v2.QueryWorkerLatestInferenceRequest.worker_address": + x.WorkerAddress = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkInferencesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerLatestInferenceRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkInferencesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerLatestInferenceRequest does not contain field %s", fd.FullName())) } } @@ -18666,22 +19132,19 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Clear(fd protorefl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerLatestInferenceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.topic_id": + case "emissions.v2.QueryWorkerLatestInferenceRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.block_height_last_inference": - value := x.BlockHeightLastInference - return protoreflect.ValueOfInt64(value) - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.block_height_last_reward": - value := x.BlockHeightLastReward - return protoreflect.ValueOfInt64(value) + case "emissions.v2.QueryWorkerLatestInferenceRequest.worker_address": + value := x.WorkerAddress + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkInferencesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerLatestInferenceRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkInferencesAtBlockRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerLatestInferenceRequest does not contain field %s", descriptor.FullName())) } } @@ -18695,19 +19158,17 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Get(descriptor pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryWorkerLatestInferenceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.topic_id": + case "emissions.v2.QueryWorkerLatestInferenceRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.block_height_last_inference": - x.BlockHeightLastInference = value.Int() - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.block_height_last_reward": - x.BlockHeightLastReward = value.Int() + case "emissions.v2.QueryWorkerLatestInferenceRequest.worker_address": + x.WorkerAddress = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkInferencesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerLatestInferenceRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkInferencesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerLatestInferenceRequest does not contain field %s", fd.FullName())) } } @@ -18721,48 +19182,44 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Set(fd protoreflec // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerLatestInferenceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryNetworkInferencesAtBlockRequest is not mutable")) - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.block_height_last_inference": - panic(fmt.Errorf("field block_height_last_inference of message emissions.v1.QueryNetworkInferencesAtBlockRequest is not mutable")) - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.block_height_last_reward": - panic(fmt.Errorf("field block_height_last_reward of message emissions.v1.QueryNetworkInferencesAtBlockRequest is not mutable")) + case "emissions.v2.QueryWorkerLatestInferenceRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryWorkerLatestInferenceRequest is not mutable")) + case "emissions.v2.QueryWorkerLatestInferenceRequest.worker_address": + panic(fmt.Errorf("field worker_address of message emissions.v2.QueryWorkerLatestInferenceRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkInferencesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerLatestInferenceRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkInferencesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerLatestInferenceRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerLatestInferenceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.topic_id": + case "emissions.v2.QueryWorkerLatestInferenceRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.block_height_last_inference": - return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.QueryNetworkInferencesAtBlockRequest.block_height_last_reward": - return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.QueryWorkerLatestInferenceRequest.worker_address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkInferencesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerLatestInferenceRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkInferencesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerLatestInferenceRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryWorkerLatestInferenceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryNetworkInferencesAtBlockRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryWorkerLatestInferenceRequest", d.FullName())) } panic("unreachable") } @@ -18770,7 +19227,7 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) WhichOneof(d proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryWorkerLatestInferenceRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -18781,7 +19238,7 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) GetUnknown() proto // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryWorkerLatestInferenceRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -18793,7 +19250,7 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) IsValid() bool { +func (x *fastReflection_QueryWorkerLatestInferenceRequest) IsValid() bool { return x != nil } @@ -18803,9 +19260,9 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryWorkerLatestInferenceRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNetworkInferencesAtBlockRequest) + x := input.Message.Interface().(*QueryWorkerLatestInferenceRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -18820,11 +19277,9 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) ProtoMethods() *pr if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - if x.BlockHeightLastInference != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeightLastInference)) - } - if x.BlockHeightLastReward != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeightLastReward)) + l = len(x.WorkerAddress) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -18836,7 +19291,7 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) ProtoMethods() *pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNetworkInferencesAtBlockRequest) + x := input.Message.Interface().(*QueryWorkerLatestInferenceRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -18855,15 +19310,12 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) ProtoMethods() *pr i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.BlockHeightLastReward != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeightLastReward)) - i-- - dAtA[i] = 0x18 - } - if x.BlockHeightLastInference != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeightLastInference)) + if len(x.WorkerAddress) > 0 { + i -= len(x.WorkerAddress) + copy(dAtA[i:], x.WorkerAddress) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.WorkerAddress))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) @@ -18881,7 +19333,7 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) ProtoMethods() *pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNetworkInferencesAtBlockRequest) + x := input.Message.Interface().(*QueryWorkerLatestInferenceRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -18913,10 +19365,10 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) ProtoMethods() *pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkInferencesAtBlockRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerLatestInferenceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkInferencesAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerLatestInferenceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -18939,10 +19391,10 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) ProtoMethods() *pr } } case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeightLastInference", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WorkerAddress", wireType) } - x.BlockHeightLastInference = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -18952,30 +19404,24 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) ProtoMethods() *pr } b := dAtA[iNdEx] iNdEx++ - x.BlockHeightLastInference |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeightLastReward", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - x.BlockHeightLastReward = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.BlockHeightLastReward |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } + x.WorkerAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -19012,26 +19458,26 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) ProtoMethods() *pr } var ( - md_QueryLatestNetworkInferencesRequest protoreflect.MessageDescriptor - fd_QueryLatestNetworkInferencesRequest_topic_id protoreflect.FieldDescriptor + md_QueryWorkerLatestInferenceResponse protoreflect.MessageDescriptor + fd_QueryWorkerLatestInferenceResponse_latest_inference protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryLatestNetworkInferencesRequest = File_emissions_v1_query_proto.Messages().ByName("QueryLatestNetworkInferencesRequest") - fd_QueryLatestNetworkInferencesRequest_topic_id = md_QueryLatestNetworkInferencesRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryWorkerLatestInferenceResponse = File_emissions_v2_query_proto.Messages().ByName("QueryWorkerLatestInferenceResponse") + fd_QueryWorkerLatestInferenceResponse_latest_inference = md_QueryWorkerLatestInferenceResponse.Fields().ByName("latest_inference") } -var _ protoreflect.Message = (*fastReflection_QueryLatestNetworkInferencesRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryWorkerLatestInferenceResponse)(nil) -type fastReflection_QueryLatestNetworkInferencesRequest QueryLatestNetworkInferencesRequest +type fastReflection_QueryWorkerLatestInferenceResponse QueryWorkerLatestInferenceResponse -func (x *QueryLatestNetworkInferencesRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryLatestNetworkInferencesRequest)(x) +func (x *QueryWorkerLatestInferenceResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryWorkerLatestInferenceResponse)(x) } -func (x *QueryLatestNetworkInferencesRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[43] +func (x *QueryWorkerLatestInferenceResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19042,43 +19488,43 @@ func (x *QueryLatestNetworkInferencesRequest) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_QueryLatestNetworkInferencesRequest_messageType fastReflection_QueryLatestNetworkInferencesRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryLatestNetworkInferencesRequest_messageType{} +var _fastReflection_QueryWorkerLatestInferenceResponse_messageType fastReflection_QueryWorkerLatestInferenceResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryWorkerLatestInferenceResponse_messageType{} -type fastReflection_QueryLatestNetworkInferencesRequest_messageType struct{} +type fastReflection_QueryWorkerLatestInferenceResponse_messageType struct{} -func (x fastReflection_QueryLatestNetworkInferencesRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryLatestNetworkInferencesRequest)(nil) +func (x fastReflection_QueryWorkerLatestInferenceResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryWorkerLatestInferenceResponse)(nil) } -func (x fastReflection_QueryLatestNetworkInferencesRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryLatestNetworkInferencesRequest) +func (x fastReflection_QueryWorkerLatestInferenceResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryWorkerLatestInferenceResponse) } -func (x fastReflection_QueryLatestNetworkInferencesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestNetworkInferencesRequest +func (x fastReflection_QueryWorkerLatestInferenceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerLatestInferenceResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestNetworkInferencesRequest +func (x *fastReflection_QueryWorkerLatestInferenceResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerLatestInferenceResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryLatestNetworkInferencesRequest_messageType +func (x *fastReflection_QueryWorkerLatestInferenceResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryWorkerLatestInferenceResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) New() protoreflect.Message { - return new(fastReflection_QueryLatestNetworkInferencesRequest) +func (x *fastReflection_QueryWorkerLatestInferenceResponse) New() protoreflect.Message { + return new(fastReflection_QueryWorkerLatestInferenceResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) Interface() protoreflect.ProtoMessage { - return (*QueryLatestNetworkInferencesRequest)(x) +func (x *fastReflection_QueryWorkerLatestInferenceResponse) Interface() protoreflect.ProtoMessage { + return (*QueryWorkerLatestInferenceResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -19086,10 +19532,10 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryLatestNetworkInferencesRequest_topic_id, value) { +func (x *fastReflection_QueryWorkerLatestInferenceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.LatestInference != nil { + value := protoreflect.ValueOfMessage(x.LatestInference.ProtoReflect()) + if !f(fd_QueryWorkerLatestInferenceResponse_latest_inference, value) { return } } @@ -19106,15 +19552,15 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) Range(f func(protor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryWorkerLatestInferenceResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryLatestNetworkInferencesRequest.topic_id": - return x.TopicId != uint64(0) + case "emissions.v2.QueryWorkerLatestInferenceResponse.latest_inference": + return x.LatestInference != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestNetworkInferencesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerLatestInferenceResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestNetworkInferencesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerLatestInferenceResponse does not contain field %s", fd.FullName())) } } @@ -19124,15 +19570,15 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryWorkerLatestInferenceResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryLatestNetworkInferencesRequest.topic_id": - x.TopicId = uint64(0) + case "emissions.v2.QueryWorkerLatestInferenceResponse.latest_inference": + x.LatestInference = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestNetworkInferencesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerLatestInferenceResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestNetworkInferencesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerLatestInferenceResponse does not contain field %s", fd.FullName())) } } @@ -19142,16 +19588,16 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) Clear(fd protorefle // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerLatestInferenceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryLatestNetworkInferencesRequest.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryWorkerLatestInferenceResponse.latest_inference": + value := x.LatestInference + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestNetworkInferencesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerLatestInferenceResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestNetworkInferencesRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerLatestInferenceResponse does not contain field %s", descriptor.FullName())) } } @@ -19165,15 +19611,15 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryWorkerLatestInferenceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryLatestNetworkInferencesRequest.topic_id": - x.TopicId = value.Uint() + case "emissions.v2.QueryWorkerLatestInferenceResponse.latest_inference": + x.LatestInference = value.Message().Interface().(*Inference) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestNetworkInferencesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerLatestInferenceResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestNetworkInferencesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerLatestInferenceResponse does not contain field %s", fd.FullName())) } } @@ -19187,40 +19633,44 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerLatestInferenceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestNetworkInferencesRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryLatestNetworkInferencesRequest is not mutable")) + case "emissions.v2.QueryWorkerLatestInferenceResponse.latest_inference": + if x.LatestInference == nil { + x.LatestInference = new(Inference) + } + return protoreflect.ValueOfMessage(x.LatestInference.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestNetworkInferencesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerLatestInferenceResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestNetworkInferencesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerLatestInferenceResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerLatestInferenceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestNetworkInferencesRequest.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryWorkerLatestInferenceResponse.latest_inference": + m := new(Inference) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestNetworkInferencesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerLatestInferenceResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestNetworkInferencesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerLatestInferenceResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryWorkerLatestInferenceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryLatestNetworkInferencesRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryWorkerLatestInferenceResponse", d.FullName())) } panic("unreachable") } @@ -19228,7 +19678,7 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) WhichOneof(d protor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryWorkerLatestInferenceResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -19239,7 +19689,7 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryWorkerLatestInferenceResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -19251,7 +19701,7 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) SetUnknown(fields p // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) IsValid() bool { +func (x *fastReflection_QueryWorkerLatestInferenceResponse) IsValid() bool { return x != nil } @@ -19261,9 +19711,9 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryLatestNetworkInferencesRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryWorkerLatestInferenceResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryLatestNetworkInferencesRequest) + x := input.Message.Interface().(*QueryWorkerLatestInferenceResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19275,8 +19725,9 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) ProtoMethods() *pro var n int var l int _ = l - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) + if x.LatestInference != nil { + l = options.Size(x.LatestInference) + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -19288,7 +19739,7 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestNetworkInferencesRequest) + x := input.Message.Interface().(*QueryWorkerLatestInferenceResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19307,10 +19758,19 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) ProtoMethods() *pro i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + if x.LatestInference != nil { + encoded, err := options.Marshal(x.LatestInference) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -19323,7 +19783,7 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestNetworkInferencesRequest) + x := input.Message.Interface().(*QueryWorkerLatestInferenceResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19355,17 +19815,17 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestNetworkInferencesRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerLatestInferenceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestNetworkInferencesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerLatestInferenceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LatestInference", wireType) } - x.TopicId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -19375,11 +19835,28 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) ProtoMethods() *pro } b := dAtA[iNdEx] iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.LatestInference == nil { + x.LatestInference = &Inference{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LatestInference); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -19416,28 +19893,26 @@ func (x *fastReflection_QueryLatestNetworkInferencesRequest) ProtoMethods() *pro } var ( - md_QueryIsWorkerNonceUnfulfilledRequest protoreflect.MessageDescriptor - fd_QueryIsWorkerNonceUnfulfilledRequest_topic_id protoreflect.FieldDescriptor - fd_QueryIsWorkerNonceUnfulfilledRequest_block_height protoreflect.FieldDescriptor + md_QueryWorkerNodeInfoRequest protoreflect.MessageDescriptor + fd_QueryWorkerNodeInfoRequest_address protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryIsWorkerNonceUnfulfilledRequest = File_emissions_v1_query_proto.Messages().ByName("QueryIsWorkerNonceUnfulfilledRequest") - fd_QueryIsWorkerNonceUnfulfilledRequest_topic_id = md_QueryIsWorkerNonceUnfulfilledRequest.Fields().ByName("topic_id") - fd_QueryIsWorkerNonceUnfulfilledRequest_block_height = md_QueryIsWorkerNonceUnfulfilledRequest.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryWorkerNodeInfoRequest = File_emissions_v2_query_proto.Messages().ByName("QueryWorkerNodeInfoRequest") + fd_QueryWorkerNodeInfoRequest_address = md_QueryWorkerNodeInfoRequest.Fields().ByName("address") } -var _ protoreflect.Message = (*fastReflection_QueryIsWorkerNonceUnfulfilledRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryWorkerNodeInfoRequest)(nil) -type fastReflection_QueryIsWorkerNonceUnfulfilledRequest QueryIsWorkerNonceUnfulfilledRequest +type fastReflection_QueryWorkerNodeInfoRequest QueryWorkerNodeInfoRequest -func (x *QueryIsWorkerNonceUnfulfilledRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsWorkerNonceUnfulfilledRequest)(x) +func (x *QueryWorkerNodeInfoRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryWorkerNodeInfoRequest)(x) } -func (x *QueryIsWorkerNonceUnfulfilledRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[44] +func (x *QueryWorkerNodeInfoRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19448,43 +19923,43 @@ func (x *QueryIsWorkerNonceUnfulfilledRequest) slowProtoReflect() protoreflect.M return mi.MessageOf(x) } -var _fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType{} +var _fastReflection_QueryWorkerNodeInfoRequest_messageType fastReflection_QueryWorkerNodeInfoRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryWorkerNodeInfoRequest_messageType{} -type fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType struct{} +type fastReflection_QueryWorkerNodeInfoRequest_messageType struct{} -func (x fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsWorkerNonceUnfulfilledRequest)(nil) +func (x fastReflection_QueryWorkerNodeInfoRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryWorkerNodeInfoRequest)(nil) } -func (x fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsWorkerNonceUnfulfilledRequest) +func (x fastReflection_QueryWorkerNodeInfoRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryWorkerNodeInfoRequest) } -func (x fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsWorkerNonceUnfulfilledRequest +func (x fastReflection_QueryWorkerNodeInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerNodeInfoRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsWorkerNonceUnfulfilledRequest +func (x *fastReflection_QueryWorkerNodeInfoRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerNodeInfoRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType +func (x *fastReflection_QueryWorkerNodeInfoRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryWorkerNodeInfoRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) New() protoreflect.Message { - return new(fastReflection_QueryIsWorkerNonceUnfulfilledRequest) +func (x *fastReflection_QueryWorkerNodeInfoRequest) New() protoreflect.Message { + return new(fastReflection_QueryWorkerNodeInfoRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Interface() protoreflect.ProtoMessage { - return (*QueryIsWorkerNonceUnfulfilledRequest)(x) +func (x *fastReflection_QueryWorkerNodeInfoRequest) Interface() protoreflect.ProtoMessage { + return (*QueryWorkerNodeInfoRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -19492,16 +19967,10 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Interface() protor // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryIsWorkerNonceUnfulfilledRequest_topic_id, value) { - return - } - } - if x.BlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryIsWorkerNonceUnfulfilledRequest_block_height, value) { +func (x *fastReflection_QueryWorkerNodeInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryWorkerNodeInfoRequest_address, value) { return } } @@ -19518,17 +19987,15 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Range(f func(proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryWorkerNodeInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryIsWorkerNonceUnfulfilledRequest.topic_id": - return x.TopicId != uint64(0) - case "emissions.v1.QueryIsWorkerNonceUnfulfilledRequest.block_height": - return x.BlockHeight != int64(0) + case "emissions.v2.QueryWorkerNodeInfoRequest.address": + return x.Address != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerNonceUnfulfilledRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerNodeInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerNodeInfoRequest does not contain field %s", fd.FullName())) } } @@ -19538,17 +20005,15 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Has(fd protoreflec // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryWorkerNodeInfoRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryIsWorkerNonceUnfulfilledRequest.topic_id": - x.TopicId = uint64(0) - case "emissions.v1.QueryIsWorkerNonceUnfulfilledRequest.block_height": - x.BlockHeight = int64(0) + case "emissions.v2.QueryWorkerNodeInfoRequest.address": + x.Address = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerNonceUnfulfilledRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerNodeInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerNodeInfoRequest does not contain field %s", fd.FullName())) } } @@ -19558,19 +20023,16 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Clear(fd protorefl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerNodeInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryIsWorkerNonceUnfulfilledRequest.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryIsWorkerNonceUnfulfilledRequest.block_height": - value := x.BlockHeight - return protoreflect.ValueOfInt64(value) + case "emissions.v2.QueryWorkerNodeInfoRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerNonceUnfulfilledRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerNodeInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerNonceUnfulfilledRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerNodeInfoRequest does not contain field %s", descriptor.FullName())) } } @@ -19584,17 +20046,15 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Get(descriptor pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryWorkerNodeInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryIsWorkerNonceUnfulfilledRequest.topic_id": - x.TopicId = value.Uint() - case "emissions.v1.QueryIsWorkerNonceUnfulfilledRequest.block_height": - x.BlockHeight = value.Int() + case "emissions.v2.QueryWorkerNodeInfoRequest.address": + x.Address = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerNonceUnfulfilledRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerNodeInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerNodeInfoRequest does not contain field %s", fd.FullName())) } } @@ -19608,44 +20068,40 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Set(fd protoreflec // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerNodeInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsWorkerNonceUnfulfilledRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryIsWorkerNonceUnfulfilledRequest is not mutable")) - case "emissions.v1.QueryIsWorkerNonceUnfulfilledRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryIsWorkerNonceUnfulfilledRequest is not mutable")) + case "emissions.v2.QueryWorkerNodeInfoRequest.address": + panic(fmt.Errorf("field address of message emissions.v2.QueryWorkerNodeInfoRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerNonceUnfulfilledRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerNodeInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerNodeInfoRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerNodeInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsWorkerNonceUnfulfilledRequest.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryIsWorkerNonceUnfulfilledRequest.block_height": - return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.QueryWorkerNodeInfoRequest.address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerNonceUnfulfilledRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerNodeInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerNodeInfoRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryWorkerNodeInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryIsWorkerNonceUnfulfilledRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryWorkerNodeInfoRequest", d.FullName())) } panic("unreachable") } @@ -19653,7 +20109,7 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) WhichOneof(d proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryWorkerNodeInfoRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -19664,7 +20120,7 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) GetUnknown() proto // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryWorkerNodeInfoRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -19676,7 +20132,7 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) IsValid() bool { +func (x *fastReflection_QueryWorkerNodeInfoRequest) IsValid() bool { return x != nil } @@ -19686,9 +20142,9 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryWorkerNodeInfoRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsWorkerNonceUnfulfilledRequest) + x := input.Message.Interface().(*QueryWorkerNodeInfoRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19700,11 +20156,9 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) ProtoMethods() *pr var n int var l int _ = l - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) - } - if x.BlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeight)) + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -19716,7 +20170,7 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) ProtoMethods() *pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsWorkerNonceUnfulfilledRequest) + x := input.Message.Interface().(*QueryWorkerNodeInfoRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19735,15 +20189,12 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) ProtoMethods() *pr i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.BlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) - i-- - dAtA[i] = 0x10 - } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x12 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -19756,7 +20207,7 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) ProtoMethods() *pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsWorkerNonceUnfulfilledRequest) + x := input.Message.Interface().(*QueryWorkerNodeInfoRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -19788,17 +20239,17 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) ProtoMethods() *pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerNonceUnfulfilledRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerNodeInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerNonceUnfulfilledRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerNodeInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - x.TopicId = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -19808,30 +20259,24 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) ProtoMethods() *pr } b := dAtA[iNdEx] iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - x.BlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.BlockHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -19868,26 +20313,26 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) ProtoMethods() *pr } var ( - md_QueryIsWorkerNonceUnfulfilledResponse protoreflect.MessageDescriptor - fd_QueryIsWorkerNonceUnfulfilledResponse_is_worker_nonce_unfulfilled protoreflect.FieldDescriptor + md_QueryWorkerNodeInfoResponse protoreflect.MessageDescriptor + fd_QueryWorkerNodeInfoResponse_node_info protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryIsWorkerNonceUnfulfilledResponse = File_emissions_v1_query_proto.Messages().ByName("QueryIsWorkerNonceUnfulfilledResponse") - fd_QueryIsWorkerNonceUnfulfilledResponse_is_worker_nonce_unfulfilled = md_QueryIsWorkerNonceUnfulfilledResponse.Fields().ByName("is_worker_nonce_unfulfilled") + file_emissions_v2_query_proto_init() + md_QueryWorkerNodeInfoResponse = File_emissions_v2_query_proto.Messages().ByName("QueryWorkerNodeInfoResponse") + fd_QueryWorkerNodeInfoResponse_node_info = md_QueryWorkerNodeInfoResponse.Fields().ByName("node_info") } -var _ protoreflect.Message = (*fastReflection_QueryIsWorkerNonceUnfulfilledResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryWorkerNodeInfoResponse)(nil) -type fastReflection_QueryIsWorkerNonceUnfulfilledResponse QueryIsWorkerNonceUnfulfilledResponse +type fastReflection_QueryWorkerNodeInfoResponse QueryWorkerNodeInfoResponse -func (x *QueryIsWorkerNonceUnfulfilledResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsWorkerNonceUnfulfilledResponse)(x) +func (x *QueryWorkerNodeInfoResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryWorkerNodeInfoResponse)(x) } -func (x *QueryIsWorkerNonceUnfulfilledResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[45] +func (x *QueryWorkerNodeInfoResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19898,43 +20343,43 @@ func (x *QueryIsWorkerNonceUnfulfilledResponse) slowProtoReflect() protoreflect. return mi.MessageOf(x) } -var _fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType{} +var _fastReflection_QueryWorkerNodeInfoResponse_messageType fastReflection_QueryWorkerNodeInfoResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryWorkerNodeInfoResponse_messageType{} -type fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType struct{} +type fastReflection_QueryWorkerNodeInfoResponse_messageType struct{} -func (x fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsWorkerNonceUnfulfilledResponse)(nil) +func (x fastReflection_QueryWorkerNodeInfoResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryWorkerNodeInfoResponse)(nil) } -func (x fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsWorkerNonceUnfulfilledResponse) +func (x fastReflection_QueryWorkerNodeInfoResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryWorkerNodeInfoResponse) } -func (x fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsWorkerNonceUnfulfilledResponse +func (x fastReflection_QueryWorkerNodeInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerNodeInfoResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsWorkerNonceUnfulfilledResponse +func (x *fastReflection_QueryWorkerNodeInfoResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerNodeInfoResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType +func (x *fastReflection_QueryWorkerNodeInfoResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryWorkerNodeInfoResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) New() protoreflect.Message { - return new(fastReflection_QueryIsWorkerNonceUnfulfilledResponse) +func (x *fastReflection_QueryWorkerNodeInfoResponse) New() protoreflect.Message { + return new(fastReflection_QueryWorkerNodeInfoResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Interface() protoreflect.ProtoMessage { - return (*QueryIsWorkerNonceUnfulfilledResponse)(x) +func (x *fastReflection_QueryWorkerNodeInfoResponse) Interface() protoreflect.ProtoMessage { + return (*QueryWorkerNodeInfoResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -19942,10 +20387,10 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Interface() proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.IsWorkerNonceUnfulfilled != false { - value := protoreflect.ValueOfBool(x.IsWorkerNonceUnfulfilled) - if !f(fd_QueryIsWorkerNonceUnfulfilledResponse_is_worker_nonce_unfulfilled, value) { +func (x *fastReflection_QueryWorkerNodeInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.NodeInfo != nil { + value := protoreflect.ValueOfMessage(x.NodeInfo.ProtoReflect()) + if !f(fd_QueryWorkerNodeInfoResponse_node_info, value) { return } } @@ -19962,15 +20407,15 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Range(f func(prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryWorkerNodeInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryIsWorkerNonceUnfulfilledResponse.is_worker_nonce_unfulfilled": - return x.IsWorkerNonceUnfulfilled != false + case "emissions.v2.QueryWorkerNodeInfoResponse.node_info": + return x.NodeInfo != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerNonceUnfulfilledResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerNodeInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerNodeInfoResponse does not contain field %s", fd.FullName())) } } @@ -19980,15 +20425,15 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Has(fd protorefle // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryWorkerNodeInfoResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryIsWorkerNonceUnfulfilledResponse.is_worker_nonce_unfulfilled": - x.IsWorkerNonceUnfulfilled = false + case "emissions.v2.QueryWorkerNodeInfoResponse.node_info": + x.NodeInfo = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerNonceUnfulfilledResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerNodeInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerNodeInfoResponse does not contain field %s", fd.FullName())) } } @@ -19998,16 +20443,16 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Clear(fd protoref // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerNodeInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryIsWorkerNonceUnfulfilledResponse.is_worker_nonce_unfulfilled": - value := x.IsWorkerNonceUnfulfilled - return protoreflect.ValueOfBool(value) + case "emissions.v2.QueryWorkerNodeInfoResponse.node_info": + value := x.NodeInfo + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerNonceUnfulfilledResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerNodeInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerNonceUnfulfilledResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerNodeInfoResponse does not contain field %s", descriptor.FullName())) } } @@ -20021,15 +20466,15 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Get(descriptor pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryWorkerNodeInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryIsWorkerNonceUnfulfilledResponse.is_worker_nonce_unfulfilled": - x.IsWorkerNonceUnfulfilled = value.Bool() + case "emissions.v2.QueryWorkerNodeInfoResponse.node_info": + x.NodeInfo = value.Message().Interface().(*OffchainNode) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerNonceUnfulfilledResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerNodeInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerNodeInfoResponse does not contain field %s", fd.FullName())) } } @@ -20043,40 +20488,44 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Set(fd protorefle // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerNodeInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsWorkerNonceUnfulfilledResponse.is_worker_nonce_unfulfilled": - panic(fmt.Errorf("field is_worker_nonce_unfulfilled of message emissions.v1.QueryIsWorkerNonceUnfulfilledResponse is not mutable")) + case "emissions.v2.QueryWorkerNodeInfoResponse.node_info": + if x.NodeInfo == nil { + x.NodeInfo = new(OffchainNode) + } + return protoreflect.ValueOfMessage(x.NodeInfo.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerNonceUnfulfilledResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerNodeInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerNodeInfoResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerNodeInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsWorkerNonceUnfulfilledResponse.is_worker_nonce_unfulfilled": - return protoreflect.ValueOfBool(false) + case "emissions.v2.QueryWorkerNodeInfoResponse.node_info": + m := new(OffchainNode) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerNonceUnfulfilledResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerNodeInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerNodeInfoResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryWorkerNodeInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryIsWorkerNonceUnfulfilledResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryWorkerNodeInfoResponse", d.FullName())) } panic("unreachable") } @@ -20084,7 +20533,7 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) WhichOneof(d prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryWorkerNodeInfoResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -20095,7 +20544,7 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) GetUnknown() prot // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryWorkerNodeInfoResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -20107,7 +20556,7 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) IsValid() bool { +func (x *fastReflection_QueryWorkerNodeInfoResponse) IsValid() bool { return x != nil } @@ -20117,9 +20566,9 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryWorkerNodeInfoResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsWorkerNonceUnfulfilledResponse) + x := input.Message.Interface().(*QueryWorkerNodeInfoResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20131,8 +20580,9 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) ProtoMethods() *p var n int var l int _ = l - if x.IsWorkerNonceUnfulfilled { - n += 2 + if x.NodeInfo != nil { + l = options.Size(x.NodeInfo) + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -20144,7 +20594,7 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) ProtoMethods() *p } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsWorkerNonceUnfulfilledResponse) + x := input.Message.Interface().(*QueryWorkerNodeInfoResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20163,15 +20613,19 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) ProtoMethods() *p i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.IsWorkerNonceUnfulfilled { - i-- - if x.IsWorkerNonceUnfulfilled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if x.NodeInfo != nil { + encoded, err := options.Marshal(x.NodeInfo) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -20184,7 +20638,7 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) ProtoMethods() *p }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsWorkerNonceUnfulfilledResponse) + x := input.Message.Interface().(*QueryWorkerNodeInfoResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20216,17 +20670,17 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) ProtoMethods() *p fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerNonceUnfulfilledResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerNodeInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerNonceUnfulfilledResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerNodeInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsWorkerNonceUnfulfilled", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeInfo", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -20236,12 +20690,28 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) ProtoMethods() *p } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - x.IsWorkerNonceUnfulfilled = bool(v != 0) + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.NodeInfo == nil { + x.NodeInfo = &OffchainNode{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NodeInfo); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -20278,26 +20748,26 @@ func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) ProtoMethods() *p } var ( - md_QueryUnfulfilledReputerNoncesRequest protoreflect.MessageDescriptor - fd_QueryUnfulfilledReputerNoncesRequest_topic_id protoreflect.FieldDescriptor + md_QueryReputerNodeInfoRequest protoreflect.MessageDescriptor + fd_QueryReputerNodeInfoRequest_address protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryUnfulfilledReputerNoncesRequest = File_emissions_v1_query_proto.Messages().ByName("QueryUnfulfilledReputerNoncesRequest") - fd_QueryUnfulfilledReputerNoncesRequest_topic_id = md_QueryUnfulfilledReputerNoncesRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryReputerNodeInfoRequest = File_emissions_v2_query_proto.Messages().ByName("QueryReputerNodeInfoRequest") + fd_QueryReputerNodeInfoRequest_address = md_QueryReputerNodeInfoRequest.Fields().ByName("address") } -var _ protoreflect.Message = (*fastReflection_QueryUnfulfilledReputerNoncesRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryReputerNodeInfoRequest)(nil) -type fastReflection_QueryUnfulfilledReputerNoncesRequest QueryUnfulfilledReputerNoncesRequest +type fastReflection_QueryReputerNodeInfoRequest QueryReputerNodeInfoRequest -func (x *QueryUnfulfilledReputerNoncesRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryUnfulfilledReputerNoncesRequest)(x) +func (x *QueryReputerNodeInfoRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryReputerNodeInfoRequest)(x) } -func (x *QueryUnfulfilledReputerNoncesRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[46] +func (x *QueryReputerNodeInfoRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -20308,43 +20778,43 @@ func (x *QueryUnfulfilledReputerNoncesRequest) slowProtoReflect() protoreflect.M return mi.MessageOf(x) } -var _fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType{} +var _fastReflection_QueryReputerNodeInfoRequest_messageType fastReflection_QueryReputerNodeInfoRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryReputerNodeInfoRequest_messageType{} -type fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType struct{} +type fastReflection_QueryReputerNodeInfoRequest_messageType struct{} -func (x fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryUnfulfilledReputerNoncesRequest)(nil) +func (x fastReflection_QueryReputerNodeInfoRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryReputerNodeInfoRequest)(nil) } -func (x fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryUnfulfilledReputerNoncesRequest) +func (x fastReflection_QueryReputerNodeInfoRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryReputerNodeInfoRequest) } -func (x fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryUnfulfilledReputerNoncesRequest +func (x fastReflection_QueryReputerNodeInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputerNodeInfoRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryUnfulfilledReputerNoncesRequest +func (x *fastReflection_QueryReputerNodeInfoRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputerNodeInfoRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType +func (x *fastReflection_QueryReputerNodeInfoRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryReputerNodeInfoRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) New() protoreflect.Message { - return new(fastReflection_QueryUnfulfilledReputerNoncesRequest) +func (x *fastReflection_QueryReputerNodeInfoRequest) New() protoreflect.Message { + return new(fastReflection_QueryReputerNodeInfoRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Interface() protoreflect.ProtoMessage { - return (*QueryUnfulfilledReputerNoncesRequest)(x) +func (x *fastReflection_QueryReputerNodeInfoRequest) Interface() protoreflect.ProtoMessage { + return (*QueryReputerNodeInfoRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -20352,10 +20822,10 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Interface() protor // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryUnfulfilledReputerNoncesRequest_topic_id, value) { +func (x *fastReflection_QueryReputerNodeInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryReputerNodeInfoRequest_address, value) { return } } @@ -20372,15 +20842,15 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Range(f func(proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryReputerNodeInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledReputerNoncesRequest.topic_id": - return x.TopicId != uint64(0) + case "emissions.v2.QueryReputerNodeInfoRequest.address": + return x.Address != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledReputerNoncesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerNodeInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledReputerNoncesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerNodeInfoRequest does not contain field %s", fd.FullName())) } } @@ -20390,15 +20860,15 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Has(fd protoreflec // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryReputerNodeInfoRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledReputerNoncesRequest.topic_id": - x.TopicId = uint64(0) + case "emissions.v2.QueryReputerNodeInfoRequest.address": + x.Address = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledReputerNoncesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerNodeInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledReputerNoncesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerNodeInfoRequest does not contain field %s", fd.FullName())) } } @@ -20408,16 +20878,16 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Clear(fd protorefl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerNodeInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryUnfulfilledReputerNoncesRequest.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryReputerNodeInfoRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledReputerNoncesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerNodeInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledReputerNoncesRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerNodeInfoRequest does not contain field %s", descriptor.FullName())) } } @@ -20431,15 +20901,15 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Get(descriptor pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryReputerNodeInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledReputerNoncesRequest.topic_id": - x.TopicId = value.Uint() + case "emissions.v2.QueryReputerNodeInfoRequest.address": + x.Address = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledReputerNoncesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerNodeInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledReputerNoncesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerNodeInfoRequest does not contain field %s", fd.FullName())) } } @@ -20453,40 +20923,40 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Set(fd protoreflec // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerNodeInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledReputerNoncesRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryUnfulfilledReputerNoncesRequest is not mutable")) + case "emissions.v2.QueryReputerNodeInfoRequest.address": + panic(fmt.Errorf("field address of message emissions.v2.QueryReputerNodeInfoRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledReputerNoncesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerNodeInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledReputerNoncesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerNodeInfoRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerNodeInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledReputerNoncesRequest.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryReputerNodeInfoRequest.address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledReputerNoncesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerNodeInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledReputerNoncesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerNodeInfoRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryReputerNodeInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryUnfulfilledReputerNoncesRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryReputerNodeInfoRequest", d.FullName())) } panic("unreachable") } @@ -20494,7 +20964,7 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) WhichOneof(d proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryReputerNodeInfoRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -20505,7 +20975,7 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) GetUnknown() proto // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryReputerNodeInfoRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -20517,7 +20987,7 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) IsValid() bool { +func (x *fastReflection_QueryReputerNodeInfoRequest) IsValid() bool { return x != nil } @@ -20527,9 +20997,9 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryReputerNodeInfoRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryUnfulfilledReputerNoncesRequest) + x := input.Message.Interface().(*QueryReputerNodeInfoRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20541,8 +21011,9 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) ProtoMethods() *pr var n int var l int _ = l - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -20554,7 +21025,7 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) ProtoMethods() *pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryUnfulfilledReputerNoncesRequest) + x := input.Message.Interface().(*QueryReputerNodeInfoRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20573,10 +21044,12 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) ProtoMethods() *pr i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x12 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -20589,7 +21062,7 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) ProtoMethods() *pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryUnfulfilledReputerNoncesRequest) + x := input.Message.Interface().(*QueryReputerNodeInfoRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20621,17 +21094,17 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) ProtoMethods() *pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledReputerNoncesRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerNodeInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledReputerNoncesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerNodeInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } - x.TopicId = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -20641,11 +21114,24 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) ProtoMethods() *pr } b := dAtA[iNdEx] iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -20682,26 +21168,26 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) ProtoMethods() *pr } var ( - md_QueryUnfulfilledReputerNoncesResponse protoreflect.MessageDescriptor - fd_QueryUnfulfilledReputerNoncesResponse_nonces protoreflect.FieldDescriptor + md_QueryReputerNodeInfoResponse protoreflect.MessageDescriptor + fd_QueryReputerNodeInfoResponse_node_info protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryUnfulfilledReputerNoncesResponse = File_emissions_v1_query_proto.Messages().ByName("QueryUnfulfilledReputerNoncesResponse") - fd_QueryUnfulfilledReputerNoncesResponse_nonces = md_QueryUnfulfilledReputerNoncesResponse.Fields().ByName("nonces") + file_emissions_v2_query_proto_init() + md_QueryReputerNodeInfoResponse = File_emissions_v2_query_proto.Messages().ByName("QueryReputerNodeInfoResponse") + fd_QueryReputerNodeInfoResponse_node_info = md_QueryReputerNodeInfoResponse.Fields().ByName("node_info") } -var _ protoreflect.Message = (*fastReflection_QueryUnfulfilledReputerNoncesResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryReputerNodeInfoResponse)(nil) -type fastReflection_QueryUnfulfilledReputerNoncesResponse QueryUnfulfilledReputerNoncesResponse +type fastReflection_QueryReputerNodeInfoResponse QueryReputerNodeInfoResponse -func (x *QueryUnfulfilledReputerNoncesResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryUnfulfilledReputerNoncesResponse)(x) +func (x *QueryReputerNodeInfoResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryReputerNodeInfoResponse)(x) } -func (x *QueryUnfulfilledReputerNoncesResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[47] +func (x *QueryReputerNodeInfoResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -20712,43 +21198,43 @@ func (x *QueryUnfulfilledReputerNoncesResponse) slowProtoReflect() protoreflect. return mi.MessageOf(x) } -var _fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType{} +var _fastReflection_QueryReputerNodeInfoResponse_messageType fastReflection_QueryReputerNodeInfoResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryReputerNodeInfoResponse_messageType{} -type fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType struct{} +type fastReflection_QueryReputerNodeInfoResponse_messageType struct{} -func (x fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryUnfulfilledReputerNoncesResponse)(nil) +func (x fastReflection_QueryReputerNodeInfoResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryReputerNodeInfoResponse)(nil) } -func (x fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryUnfulfilledReputerNoncesResponse) +func (x fastReflection_QueryReputerNodeInfoResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryReputerNodeInfoResponse) } -func (x fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryUnfulfilledReputerNoncesResponse +func (x fastReflection_QueryReputerNodeInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputerNodeInfoResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryUnfulfilledReputerNoncesResponse +func (x *fastReflection_QueryReputerNodeInfoResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputerNodeInfoResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType +func (x *fastReflection_QueryReputerNodeInfoResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryReputerNodeInfoResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) New() protoreflect.Message { - return new(fastReflection_QueryUnfulfilledReputerNoncesResponse) +func (x *fastReflection_QueryReputerNodeInfoResponse) New() protoreflect.Message { + return new(fastReflection_QueryReputerNodeInfoResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Interface() protoreflect.ProtoMessage { - return (*QueryUnfulfilledReputerNoncesResponse)(x) +func (x *fastReflection_QueryReputerNodeInfoResponse) Interface() protoreflect.ProtoMessage { + return (*QueryReputerNodeInfoResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -20756,10 +21242,10 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Interface() proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Nonces != nil { - value := protoreflect.ValueOfMessage(x.Nonces.ProtoReflect()) - if !f(fd_QueryUnfulfilledReputerNoncesResponse_nonces, value) { +func (x *fastReflection_QueryReputerNodeInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.NodeInfo != nil { + value := protoreflect.ValueOfMessage(x.NodeInfo.ProtoReflect()) + if !f(fd_QueryReputerNodeInfoResponse_node_info, value) { return } } @@ -20776,15 +21262,15 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Range(f func(prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryReputerNodeInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledReputerNoncesResponse.nonces": - return x.Nonces != nil + case "emissions.v2.QueryReputerNodeInfoResponse.node_info": + return x.NodeInfo != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledReputerNoncesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerNodeInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledReputerNoncesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerNodeInfoResponse does not contain field %s", fd.FullName())) } } @@ -20794,15 +21280,15 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Has(fd protorefle // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryReputerNodeInfoResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledReputerNoncesResponse.nonces": - x.Nonces = nil + case "emissions.v2.QueryReputerNodeInfoResponse.node_info": + x.NodeInfo = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledReputerNoncesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerNodeInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledReputerNoncesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerNodeInfoResponse does not contain field %s", fd.FullName())) } } @@ -20812,16 +21298,16 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Clear(fd protoref // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerNodeInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryUnfulfilledReputerNoncesResponse.nonces": - value := x.Nonces + case "emissions.v2.QueryReputerNodeInfoResponse.node_info": + value := x.NodeInfo return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledReputerNoncesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerNodeInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledReputerNoncesResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerNodeInfoResponse does not contain field %s", descriptor.FullName())) } } @@ -20835,15 +21321,15 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Get(descriptor pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryReputerNodeInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledReputerNoncesResponse.nonces": - x.Nonces = value.Message().Interface().(*ReputerRequestNonces) + case "emissions.v2.QueryReputerNodeInfoResponse.node_info": + x.NodeInfo = value.Message().Interface().(*OffchainNode) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledReputerNoncesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerNodeInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledReputerNoncesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerNodeInfoResponse does not contain field %s", fd.FullName())) } } @@ -20857,44 +21343,44 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Set(fd protorefle // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerNodeInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledReputerNoncesResponse.nonces": - if x.Nonces == nil { - x.Nonces = new(ReputerRequestNonces) + case "emissions.v2.QueryReputerNodeInfoResponse.node_info": + if x.NodeInfo == nil { + x.NodeInfo = new(OffchainNode) } - return protoreflect.ValueOfMessage(x.Nonces.ProtoReflect()) + return protoreflect.ValueOfMessage(x.NodeInfo.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledReputerNoncesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerNodeInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledReputerNoncesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerNodeInfoResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerNodeInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledReputerNoncesResponse.nonces": - m := new(ReputerRequestNonces) + case "emissions.v2.QueryReputerNodeInfoResponse.node_info": + m := new(OffchainNode) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledReputerNoncesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerNodeInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledReputerNoncesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerNodeInfoResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryReputerNodeInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryUnfulfilledReputerNoncesResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryReputerNodeInfoResponse", d.FullName())) } panic("unreachable") } @@ -20902,7 +21388,7 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) WhichOneof(d prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryReputerNodeInfoResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -20913,7 +21399,7 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) GetUnknown() prot // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryReputerNodeInfoResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -20925,7 +21411,7 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) IsValid() bool { +func (x *fastReflection_QueryReputerNodeInfoResponse) IsValid() bool { return x != nil } @@ -20935,9 +21421,9 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryReputerNodeInfoResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryUnfulfilledReputerNoncesResponse) + x := input.Message.Interface().(*QueryReputerNodeInfoResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20949,8 +21435,8 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) ProtoMethods() *p var n int var l int _ = l - if x.Nonces != nil { - l = options.Size(x.Nonces) + if x.NodeInfo != nil { + l = options.Size(x.NodeInfo) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -20963,7 +21449,7 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) ProtoMethods() *p } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryUnfulfilledReputerNoncesResponse) + x := input.Message.Interface().(*QueryReputerNodeInfoResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -20982,8 +21468,8 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) ProtoMethods() *p i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Nonces != nil { - encoded, err := options.Marshal(x.Nonces) + if x.NodeInfo != nil { + encoded, err := options.Marshal(x.NodeInfo) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21007,7 +21493,7 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) ProtoMethods() *p }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryUnfulfilledReputerNoncesResponse) + x := input.Message.Interface().(*QueryReputerNodeInfoResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21039,15 +21525,15 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) ProtoMethods() *p fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledReputerNoncesResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerNodeInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledReputerNoncesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerNodeInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonces", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NodeInfo", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -21074,10 +21560,10 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) ProtoMethods() *p if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Nonces == nil { - x.Nonces = &ReputerRequestNonces{} + if x.NodeInfo == nil { + x.NodeInfo = &OffchainNode{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nonces); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NodeInfo); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -21117,26 +21603,30 @@ func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) ProtoMethods() *p } var ( - md_QueryUnfulfilledWorkerNoncesRequest protoreflect.MessageDescriptor - fd_QueryUnfulfilledWorkerNoncesRequest_topic_id protoreflect.FieldDescriptor + md_QueryNetworkInferencesAtBlockRequest protoreflect.MessageDescriptor + fd_QueryNetworkInferencesAtBlockRequest_topic_id protoreflect.FieldDescriptor + fd_QueryNetworkInferencesAtBlockRequest_block_height_last_inference protoreflect.FieldDescriptor + fd_QueryNetworkInferencesAtBlockRequest_block_height_last_reward protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryUnfulfilledWorkerNoncesRequest = File_emissions_v1_query_proto.Messages().ByName("QueryUnfulfilledWorkerNoncesRequest") - fd_QueryUnfulfilledWorkerNoncesRequest_topic_id = md_QueryUnfulfilledWorkerNoncesRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryNetworkInferencesAtBlockRequest = File_emissions_v2_query_proto.Messages().ByName("QueryNetworkInferencesAtBlockRequest") + fd_QueryNetworkInferencesAtBlockRequest_topic_id = md_QueryNetworkInferencesAtBlockRequest.Fields().ByName("topic_id") + fd_QueryNetworkInferencesAtBlockRequest_block_height_last_inference = md_QueryNetworkInferencesAtBlockRequest.Fields().ByName("block_height_last_inference") + fd_QueryNetworkInferencesAtBlockRequest_block_height_last_reward = md_QueryNetworkInferencesAtBlockRequest.Fields().ByName("block_height_last_reward") } -var _ protoreflect.Message = (*fastReflection_QueryUnfulfilledWorkerNoncesRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNetworkInferencesAtBlockRequest)(nil) -type fastReflection_QueryUnfulfilledWorkerNoncesRequest QueryUnfulfilledWorkerNoncesRequest +type fastReflection_QueryNetworkInferencesAtBlockRequest QueryNetworkInferencesAtBlockRequest -func (x *QueryUnfulfilledWorkerNoncesRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryUnfulfilledWorkerNoncesRequest)(x) +func (x *QueryNetworkInferencesAtBlockRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNetworkInferencesAtBlockRequest)(x) } -func (x *QueryUnfulfilledWorkerNoncesRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[48] +func (x *QueryNetworkInferencesAtBlockRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -21147,43 +21637,43 @@ func (x *QueryUnfulfilledWorkerNoncesRequest) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType{} +var _fastReflection_QueryNetworkInferencesAtBlockRequest_messageType fastReflection_QueryNetworkInferencesAtBlockRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryNetworkInferencesAtBlockRequest_messageType{} -type fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType struct{} +type fastReflection_QueryNetworkInferencesAtBlockRequest_messageType struct{} -func (x fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryUnfulfilledWorkerNoncesRequest)(nil) +func (x fastReflection_QueryNetworkInferencesAtBlockRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNetworkInferencesAtBlockRequest)(nil) } -func (x fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryUnfulfilledWorkerNoncesRequest) +func (x fastReflection_QueryNetworkInferencesAtBlockRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNetworkInferencesAtBlockRequest) } -func (x fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryUnfulfilledWorkerNoncesRequest +func (x fastReflection_QueryNetworkInferencesAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNetworkInferencesAtBlockRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryUnfulfilledWorkerNoncesRequest +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNetworkInferencesAtBlockRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryNetworkInferencesAtBlockRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) New() protoreflect.Message { - return new(fastReflection_QueryUnfulfilledWorkerNoncesRequest) +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) New() protoreflect.Message { + return new(fastReflection_QueryNetworkInferencesAtBlockRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Interface() protoreflect.ProtoMessage { - return (*QueryUnfulfilledWorkerNoncesRequest)(x) +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Interface() protoreflect.ProtoMessage { + return (*QueryNetworkInferencesAtBlockRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -21191,10 +21681,22 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryUnfulfilledWorkerNoncesRequest_topic_id, value) { + if !f(fd_QueryNetworkInferencesAtBlockRequest_topic_id, value) { + return + } + } + if x.BlockHeightLastInference != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeightLastInference) + if !f(fd_QueryNetworkInferencesAtBlockRequest_block_height_last_inference, value) { + return + } + } + if x.BlockHeightLastReward != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeightLastReward) + if !f(fd_QueryNetworkInferencesAtBlockRequest_block_height_last_reward, value) { return } } @@ -21211,15 +21713,19 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Range(f func(protor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledWorkerNoncesRequest.topic_id": + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.topic_id": return x.TopicId != uint64(0) + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.block_height_last_inference": + return x.BlockHeightLastInference != int64(0) + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.block_height_last_reward": + return x.BlockHeightLastReward != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledWorkerNoncesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkInferencesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledWorkerNoncesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkInferencesAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -21229,15 +21735,19 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledWorkerNoncesRequest.topic_id": + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.topic_id": x.TopicId = uint64(0) + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.block_height_last_inference": + x.BlockHeightLastInference = int64(0) + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.block_height_last_reward": + x.BlockHeightLastReward = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledWorkerNoncesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkInferencesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledWorkerNoncesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkInferencesAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -21247,16 +21757,22 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Clear(fd protorefle // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryUnfulfilledWorkerNoncesRequest.topic_id": + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.block_height_last_inference": + value := x.BlockHeightLastInference + return protoreflect.ValueOfInt64(value) + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.block_height_last_reward": + value := x.BlockHeightLastReward + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledWorkerNoncesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkInferencesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledWorkerNoncesRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkInferencesAtBlockRequest does not contain field %s", descriptor.FullName())) } } @@ -21270,15 +21786,19 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledWorkerNoncesRequest.topic_id": + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.topic_id": x.TopicId = value.Uint() + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.block_height_last_inference": + x.BlockHeightLastInference = value.Int() + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.block_height_last_reward": + x.BlockHeightLastReward = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledWorkerNoncesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkInferencesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledWorkerNoncesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkInferencesAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -21292,40 +21812,48 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledWorkerNoncesRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryUnfulfilledWorkerNoncesRequest is not mutable")) + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryNetworkInferencesAtBlockRequest is not mutable")) + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.block_height_last_inference": + panic(fmt.Errorf("field block_height_last_inference of message emissions.v2.QueryNetworkInferencesAtBlockRequest is not mutable")) + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.block_height_last_reward": + panic(fmt.Errorf("field block_height_last_reward of message emissions.v2.QueryNetworkInferencesAtBlockRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledWorkerNoncesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkInferencesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledWorkerNoncesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkInferencesAtBlockRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledWorkerNoncesRequest.topic_id": + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.block_height_last_inference": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.QueryNetworkInferencesAtBlockRequest.block_height_last_reward": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledWorkerNoncesRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkInferencesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledWorkerNoncesRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkInferencesAtBlockRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryUnfulfilledWorkerNoncesRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryNetworkInferencesAtBlockRequest", d.FullName())) } panic("unreachable") } @@ -21333,7 +21861,7 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) WhichOneof(d protor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -21344,7 +21872,7 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -21356,7 +21884,7 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) SetUnknown(fields p // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) IsValid() bool { +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) IsValid() bool { return x != nil } @@ -21366,9 +21894,9 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNetworkInferencesAtBlockRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryUnfulfilledWorkerNoncesRequest) + x := input.Message.Interface().(*QueryNetworkInferencesAtBlockRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21383,6 +21911,12 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) ProtoMethods() *pro if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } + if x.BlockHeightLastInference != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeightLastInference)) + } + if x.BlockHeightLastReward != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeightLastReward)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -21393,7 +21927,7 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryUnfulfilledWorkerNoncesRequest) + x := input.Message.Interface().(*QueryNetworkInferencesAtBlockRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21412,6 +21946,16 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) ProtoMethods() *pro i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.BlockHeightLastReward != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeightLastReward)) + i-- + dAtA[i] = 0x18 + } + if x.BlockHeightLastInference != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeightLastInference)) + i-- + dAtA[i] = 0x10 + } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- @@ -21428,7 +21972,7 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryUnfulfilledWorkerNoncesRequest) + x := input.Message.Interface().(*QueryNetworkInferencesAtBlockRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21460,10 +22004,10 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledWorkerNoncesRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkInferencesAtBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledWorkerNoncesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkInferencesAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21485,6 +22029,44 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) ProtoMethods() *pro break } } + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeightLastInference", wireType) + } + x.BlockHeightLastInference = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeightLastInference |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeightLastReward", wireType) + } + x.BlockHeightLastReward = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeightLastReward |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -21521,26 +22103,26 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) ProtoMethods() *pro } var ( - md_QueryUnfulfilledWorkerNoncesResponse protoreflect.MessageDescriptor - fd_QueryUnfulfilledWorkerNoncesResponse_nonces protoreflect.FieldDescriptor + md_QueryLatestNetworkInferencesRequest protoreflect.MessageDescriptor + fd_QueryLatestNetworkInferencesRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryUnfulfilledWorkerNoncesResponse = File_emissions_v1_query_proto.Messages().ByName("QueryUnfulfilledWorkerNoncesResponse") - fd_QueryUnfulfilledWorkerNoncesResponse_nonces = md_QueryUnfulfilledWorkerNoncesResponse.Fields().ByName("nonces") + file_emissions_v2_query_proto_init() + md_QueryLatestNetworkInferencesRequest = File_emissions_v2_query_proto.Messages().ByName("QueryLatestNetworkInferencesRequest") + fd_QueryLatestNetworkInferencesRequest_topic_id = md_QueryLatestNetworkInferencesRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryUnfulfilledWorkerNoncesResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryLatestNetworkInferencesRequest)(nil) -type fastReflection_QueryUnfulfilledWorkerNoncesResponse QueryUnfulfilledWorkerNoncesResponse +type fastReflection_QueryLatestNetworkInferencesRequest QueryLatestNetworkInferencesRequest -func (x *QueryUnfulfilledWorkerNoncesResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryUnfulfilledWorkerNoncesResponse)(x) +func (x *QueryLatestNetworkInferencesRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLatestNetworkInferencesRequest)(x) } -func (x *QueryUnfulfilledWorkerNoncesResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[49] +func (x *QueryLatestNetworkInferencesRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -21551,43 +22133,43 @@ func (x *QueryUnfulfilledWorkerNoncesResponse) slowProtoReflect() protoreflect.M return mi.MessageOf(x) } -var _fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType{} +var _fastReflection_QueryLatestNetworkInferencesRequest_messageType fastReflection_QueryLatestNetworkInferencesRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryLatestNetworkInferencesRequest_messageType{} -type fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType struct{} +type fastReflection_QueryLatestNetworkInferencesRequest_messageType struct{} -func (x fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryUnfulfilledWorkerNoncesResponse)(nil) +func (x fastReflection_QueryLatestNetworkInferencesRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLatestNetworkInferencesRequest)(nil) } -func (x fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryUnfulfilledWorkerNoncesResponse) +func (x fastReflection_QueryLatestNetworkInferencesRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLatestNetworkInferencesRequest) } -func (x fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryUnfulfilledWorkerNoncesResponse +func (x fastReflection_QueryLatestNetworkInferencesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestNetworkInferencesRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryUnfulfilledWorkerNoncesResponse +func (x *fastReflection_QueryLatestNetworkInferencesRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestNetworkInferencesRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType +func (x *fastReflection_QueryLatestNetworkInferencesRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryLatestNetworkInferencesRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) New() protoreflect.Message { - return new(fastReflection_QueryUnfulfilledWorkerNoncesResponse) +func (x *fastReflection_QueryLatestNetworkInferencesRequest) New() protoreflect.Message { + return new(fastReflection_QueryLatestNetworkInferencesRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Interface() protoreflect.ProtoMessage { - return (*QueryUnfulfilledWorkerNoncesResponse)(x) +func (x *fastReflection_QueryLatestNetworkInferencesRequest) Interface() protoreflect.ProtoMessage { + return (*QueryLatestNetworkInferencesRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -21595,10 +22177,10 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Interface() protor // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Nonces != nil { - value := protoreflect.ValueOfMessage(x.Nonces.ProtoReflect()) - if !f(fd_QueryUnfulfilledWorkerNoncesResponse_nonces, value) { +func (x *fastReflection_QueryLatestNetworkInferencesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryLatestNetworkInferencesRequest_topic_id, value) { return } } @@ -21615,15 +22197,15 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Range(f func(proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryLatestNetworkInferencesRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledWorkerNoncesResponse.nonces": - return x.Nonces != nil + case "emissions.v2.QueryLatestNetworkInferencesRequest.topic_id": + return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledWorkerNoncesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestNetworkInferencesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledWorkerNoncesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestNetworkInferencesRequest does not contain field %s", fd.FullName())) } } @@ -21633,15 +22215,15 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Has(fd protoreflec // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryLatestNetworkInferencesRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledWorkerNoncesResponse.nonces": - x.Nonces = nil + case "emissions.v2.QueryLatestNetworkInferencesRequest.topic_id": + x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledWorkerNoncesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestNetworkInferencesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledWorkerNoncesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestNetworkInferencesRequest does not contain field %s", fd.FullName())) } } @@ -21651,16 +22233,16 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Clear(fd protorefl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestNetworkInferencesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryUnfulfilledWorkerNoncesResponse.nonces": - value := x.Nonces - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryLatestNetworkInferencesRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledWorkerNoncesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestNetworkInferencesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledWorkerNoncesResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestNetworkInferencesRequest does not contain field %s", descriptor.FullName())) } } @@ -21674,15 +22256,15 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Get(descriptor pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryLatestNetworkInferencesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledWorkerNoncesResponse.nonces": - x.Nonces = value.Message().Interface().(*Nonces) + case "emissions.v2.QueryLatestNetworkInferencesRequest.topic_id": + x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledWorkerNoncesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestNetworkInferencesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledWorkerNoncesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestNetworkInferencesRequest does not contain field %s", fd.FullName())) } } @@ -21696,44 +22278,40 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Set(fd protoreflec // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestNetworkInferencesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledWorkerNoncesResponse.nonces": - if x.Nonces == nil { - x.Nonces = new(Nonces) - } - return protoreflect.ValueOfMessage(x.Nonces.ProtoReflect()) + case "emissions.v2.QueryLatestNetworkInferencesRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryLatestNetworkInferencesRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledWorkerNoncesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestNetworkInferencesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledWorkerNoncesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestNetworkInferencesRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestNetworkInferencesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryUnfulfilledWorkerNoncesResponse.nonces": - m := new(Nonces) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryLatestNetworkInferencesRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryUnfulfilledWorkerNoncesResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestNetworkInferencesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryUnfulfilledWorkerNoncesResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestNetworkInferencesRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryLatestNetworkInferencesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryUnfulfilledWorkerNoncesResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryLatestNetworkInferencesRequest", d.FullName())) } panic("unreachable") } @@ -21741,7 +22319,7 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) WhichOneof(d proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryLatestNetworkInferencesRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -21752,7 +22330,7 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) GetUnknown() proto // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryLatestNetworkInferencesRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -21764,7 +22342,7 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) IsValid() bool { +func (x *fastReflection_QueryLatestNetworkInferencesRequest) IsValid() bool { return x != nil } @@ -21774,9 +22352,9 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryLatestNetworkInferencesRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryUnfulfilledWorkerNoncesResponse) + x := input.Message.Interface().(*QueryLatestNetworkInferencesRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21788,9 +22366,8 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) ProtoMethods() *pr var n int var l int _ = l - if x.Nonces != nil { - l = options.Size(x.Nonces) - n += 1 + l + runtime.Sov(uint64(l)) + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -21802,7 +22379,7 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) ProtoMethods() *pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryUnfulfilledWorkerNoncesResponse) + x := input.Message.Interface().(*QueryLatestNetworkInferencesRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21821,19 +22398,10 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) ProtoMethods() *pr i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Nonces != nil { - encoded, err := options.Marshal(x.Nonces) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -21846,7 +22414,7 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) ProtoMethods() *pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryUnfulfilledWorkerNoncesResponse) + x := input.Message.Interface().(*QueryLatestNetworkInferencesRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -21878,17 +22446,17 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) ProtoMethods() *pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledWorkerNoncesResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestNetworkInferencesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledWorkerNoncesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestNetworkInferencesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonces", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } - var msglen int + x.TopicId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -21898,28 +22466,11 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) ProtoMethods() *pr } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + x.TopicId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Nonces == nil { - x.Nonces = &Nonces{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nonces); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -21956,28 +22507,28 @@ func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) ProtoMethods() *pr } var ( - md_QueryInfererNetworkRegretRequest protoreflect.MessageDescriptor - fd_QueryInfererNetworkRegretRequest_topic_id protoreflect.FieldDescriptor - fd_QueryInfererNetworkRegretRequest_actor_id protoreflect.FieldDescriptor + md_QueryIsWorkerNonceUnfulfilledRequest protoreflect.MessageDescriptor + fd_QueryIsWorkerNonceUnfulfilledRequest_topic_id protoreflect.FieldDescriptor + fd_QueryIsWorkerNonceUnfulfilledRequest_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryInfererNetworkRegretRequest = File_emissions_v1_query_proto.Messages().ByName("QueryInfererNetworkRegretRequest") - fd_QueryInfererNetworkRegretRequest_topic_id = md_QueryInfererNetworkRegretRequest.Fields().ByName("topic_id") - fd_QueryInfererNetworkRegretRequest_actor_id = md_QueryInfererNetworkRegretRequest.Fields().ByName("actor_id") + file_emissions_v2_query_proto_init() + md_QueryIsWorkerNonceUnfulfilledRequest = File_emissions_v2_query_proto.Messages().ByName("QueryIsWorkerNonceUnfulfilledRequest") + fd_QueryIsWorkerNonceUnfulfilledRequest_topic_id = md_QueryIsWorkerNonceUnfulfilledRequest.Fields().ByName("topic_id") + fd_QueryIsWorkerNonceUnfulfilledRequest_block_height = md_QueryIsWorkerNonceUnfulfilledRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryInfererNetworkRegretRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsWorkerNonceUnfulfilledRequest)(nil) -type fastReflection_QueryInfererNetworkRegretRequest QueryInfererNetworkRegretRequest +type fastReflection_QueryIsWorkerNonceUnfulfilledRequest QueryIsWorkerNonceUnfulfilledRequest -func (x *QueryInfererNetworkRegretRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryInfererNetworkRegretRequest)(x) +func (x *QueryIsWorkerNonceUnfulfilledRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsWorkerNonceUnfulfilledRequest)(x) } -func (x *QueryInfererNetworkRegretRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[50] +func (x *QueryIsWorkerNonceUnfulfilledRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -21988,43 +22539,43 @@ func (x *QueryInfererNetworkRegretRequest) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_QueryInfererNetworkRegretRequest_messageType fastReflection_QueryInfererNetworkRegretRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryInfererNetworkRegretRequest_messageType{} +var _fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType{} -type fastReflection_QueryInfererNetworkRegretRequest_messageType struct{} +type fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType struct{} -func (x fastReflection_QueryInfererNetworkRegretRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryInfererNetworkRegretRequest)(nil) +func (x fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsWorkerNonceUnfulfilledRequest)(nil) } -func (x fastReflection_QueryInfererNetworkRegretRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryInfererNetworkRegretRequest) +func (x fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsWorkerNonceUnfulfilledRequest) } -func (x fastReflection_QueryInfererNetworkRegretRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryInfererNetworkRegretRequest +func (x fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsWorkerNonceUnfulfilledRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryInfererNetworkRegretRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryInfererNetworkRegretRequest +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsWorkerNonceUnfulfilledRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryInfererNetworkRegretRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryInfererNetworkRegretRequest_messageType +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryIsWorkerNonceUnfulfilledRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryInfererNetworkRegretRequest) New() protoreflect.Message { - return new(fastReflection_QueryInfererNetworkRegretRequest) +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) New() protoreflect.Message { + return new(fastReflection_QueryIsWorkerNonceUnfulfilledRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryInfererNetworkRegretRequest) Interface() protoreflect.ProtoMessage { - return (*QueryInfererNetworkRegretRequest)(x) +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Interface() protoreflect.ProtoMessage { + return (*QueryIsWorkerNonceUnfulfilledRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -22032,16 +22583,16 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryInfererNetworkRegretRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryInfererNetworkRegretRequest_topic_id, value) { + if !f(fd_QueryIsWorkerNonceUnfulfilledRequest_topic_id, value) { return } } - if x.ActorId != "" { - value := protoreflect.ValueOfString(x.ActorId) - if !f(fd_QueryInfererNetworkRegretRequest_actor_id, value) { + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_QueryIsWorkerNonceUnfulfilledRequest_block_height, value) { return } } @@ -22058,17 +22609,17 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) Range(f func(protorefl // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryInfererNetworkRegretRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryInfererNetworkRegretRequest.topic_id": + case "emissions.v2.QueryIsWorkerNonceUnfulfilledRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryInfererNetworkRegretRequest.actor_id": - return x.ActorId != "" + case "emissions.v2.QueryIsWorkerNonceUnfulfilledRequest.block_height": + return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInfererNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerNonceUnfulfilledRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInfererNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) } } @@ -22078,17 +22629,17 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInfererNetworkRegretRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryInfererNetworkRegretRequest.topic_id": + case "emissions.v2.QueryIsWorkerNonceUnfulfilledRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryInfererNetworkRegretRequest.actor_id": - x.ActorId = "" + case "emissions.v2.QueryIsWorkerNonceUnfulfilledRequest.block_height": + x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInfererNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerNonceUnfulfilledRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInfererNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) } } @@ -22098,19 +22649,19 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) Clear(fd protoreflect. // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryInfererNetworkRegretRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryInfererNetworkRegretRequest.topic_id": + case "emissions.v2.QueryIsWorkerNonceUnfulfilledRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryInfererNetworkRegretRequest.actor_id": - value := x.ActorId - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryIsWorkerNonceUnfulfilledRequest.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInfererNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerNonceUnfulfilledRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInfererNetworkRegretRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerNonceUnfulfilledRequest does not contain field %s", descriptor.FullName())) } } @@ -22124,17 +22675,17 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInfererNetworkRegretRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryInfererNetworkRegretRequest.topic_id": + case "emissions.v2.QueryIsWorkerNonceUnfulfilledRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryInfererNetworkRegretRequest.actor_id": - x.ActorId = value.Interface().(string) + case "emissions.v2.QueryIsWorkerNonceUnfulfilledRequest.block_height": + x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInfererNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerNonceUnfulfilledRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInfererNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) } } @@ -22148,44 +22699,44 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInfererNetworkRegretRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryInfererNetworkRegretRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryInfererNetworkRegretRequest is not mutable")) - case "emissions.v1.QueryInfererNetworkRegretRequest.actor_id": - panic(fmt.Errorf("field actor_id of message emissions.v1.QueryInfererNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryIsWorkerNonceUnfulfilledRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryIsWorkerNonceUnfulfilledRequest is not mutable")) + case "emissions.v2.QueryIsWorkerNonceUnfulfilledRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryIsWorkerNonceUnfulfilledRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInfererNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerNonceUnfulfilledRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInfererNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryInfererNetworkRegretRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryInfererNetworkRegretRequest.topic_id": + case "emissions.v2.QueryIsWorkerNonceUnfulfilledRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryInfererNetworkRegretRequest.actor_id": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryIsWorkerNonceUnfulfilledRequest.block_height": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInfererNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerNonceUnfulfilledRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInfererNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryInfererNetworkRegretRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryInfererNetworkRegretRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryIsWorkerNonceUnfulfilledRequest", d.FullName())) } panic("unreachable") } @@ -22193,7 +22744,7 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) WhichOneof(d protorefl // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryInfererNetworkRegretRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -22204,7 +22755,7 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInfererNetworkRegretRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -22216,7 +22767,7 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) SetUnknown(fields prot // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryInfererNetworkRegretRequest) IsValid() bool { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) IsValid() bool { return x != nil } @@ -22226,9 +22777,9 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryInfererNetworkRegretRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryInfererNetworkRegretRequest) + x := input.Message.Interface().(*QueryIsWorkerNonceUnfulfilledRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22243,9 +22794,8 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) ProtoMethods() *protoi if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.ActorId) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -22257,7 +22807,7 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryInfererNetworkRegretRequest) + x := input.Message.Interface().(*QueryIsWorkerNonceUnfulfilledRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22276,12 +22826,10 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) ProtoMethods() *protoi i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.ActorId) > 0 { - i -= len(x.ActorId) - copy(dAtA[i:], x.ActorId) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ActorId))) + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) @@ -22299,7 +22847,7 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryInfererNetworkRegretRequest) + x := input.Message.Interface().(*QueryIsWorkerNonceUnfulfilledRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22331,10 +22879,10 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) ProtoMethods() *protoi fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInfererNetworkRegretRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerNonceUnfulfilledRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInfererNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerNonceUnfulfilledRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22357,10 +22905,10 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) ProtoMethods() *protoi } } case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } - var stringLen uint64 + x.BlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -22370,24 +22918,11 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) ProtoMethods() *protoi } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.BlockHeight |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ActorId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -22424,26 +22959,26 @@ func (x *fastReflection_QueryInfererNetworkRegretRequest) ProtoMethods() *protoi } var ( - md_QueryInfererNetworkRegretResponse protoreflect.MessageDescriptor - fd_QueryInfererNetworkRegretResponse_regret protoreflect.FieldDescriptor + md_QueryIsWorkerNonceUnfulfilledResponse protoreflect.MessageDescriptor + fd_QueryIsWorkerNonceUnfulfilledResponse_is_worker_nonce_unfulfilled protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryInfererNetworkRegretResponse = File_emissions_v1_query_proto.Messages().ByName("QueryInfererNetworkRegretResponse") - fd_QueryInfererNetworkRegretResponse_regret = md_QueryInfererNetworkRegretResponse.Fields().ByName("regret") + file_emissions_v2_query_proto_init() + md_QueryIsWorkerNonceUnfulfilledResponse = File_emissions_v2_query_proto.Messages().ByName("QueryIsWorkerNonceUnfulfilledResponse") + fd_QueryIsWorkerNonceUnfulfilledResponse_is_worker_nonce_unfulfilled = md_QueryIsWorkerNonceUnfulfilledResponse.Fields().ByName("is_worker_nonce_unfulfilled") } -var _ protoreflect.Message = (*fastReflection_QueryInfererNetworkRegretResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsWorkerNonceUnfulfilledResponse)(nil) -type fastReflection_QueryInfererNetworkRegretResponse QueryInfererNetworkRegretResponse +type fastReflection_QueryIsWorkerNonceUnfulfilledResponse QueryIsWorkerNonceUnfulfilledResponse -func (x *QueryInfererNetworkRegretResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryInfererNetworkRegretResponse)(x) +func (x *QueryIsWorkerNonceUnfulfilledResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsWorkerNonceUnfulfilledResponse)(x) } -func (x *QueryInfererNetworkRegretResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[51] +func (x *QueryIsWorkerNonceUnfulfilledResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -22454,43 +22989,43 @@ func (x *QueryInfererNetworkRegretResponse) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryInfererNetworkRegretResponse_messageType fastReflection_QueryInfererNetworkRegretResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryInfererNetworkRegretResponse_messageType{} +var _fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType{} -type fastReflection_QueryInfererNetworkRegretResponse_messageType struct{} +type fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType struct{} -func (x fastReflection_QueryInfererNetworkRegretResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryInfererNetworkRegretResponse)(nil) +func (x fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsWorkerNonceUnfulfilledResponse)(nil) } -func (x fastReflection_QueryInfererNetworkRegretResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryInfererNetworkRegretResponse) +func (x fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsWorkerNonceUnfulfilledResponse) } -func (x fastReflection_QueryInfererNetworkRegretResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryInfererNetworkRegretResponse +func (x fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsWorkerNonceUnfulfilledResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryInfererNetworkRegretResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryInfererNetworkRegretResponse +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsWorkerNonceUnfulfilledResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryInfererNetworkRegretResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryInfererNetworkRegretResponse_messageType +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryIsWorkerNonceUnfulfilledResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryInfererNetworkRegretResponse) New() protoreflect.Message { - return new(fastReflection_QueryInfererNetworkRegretResponse) +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) New() protoreflect.Message { + return new(fastReflection_QueryIsWorkerNonceUnfulfilledResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryInfererNetworkRegretResponse) Interface() protoreflect.ProtoMessage { - return (*QueryInfererNetworkRegretResponse)(x) +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Interface() protoreflect.ProtoMessage { + return (*QueryIsWorkerNonceUnfulfilledResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -22498,10 +23033,10 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryInfererNetworkRegretResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Regret != nil { - value := protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) - if !f(fd_QueryInfererNetworkRegretResponse_regret, value) { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.IsWorkerNonceUnfulfilled != false { + value := protoreflect.ValueOfBool(x.IsWorkerNonceUnfulfilled) + if !f(fd_QueryIsWorkerNonceUnfulfilledResponse_is_worker_nonce_unfulfilled, value) { return } } @@ -22518,15 +23053,15 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryInfererNetworkRegretResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryInfererNetworkRegretResponse.regret": - return x.Regret != nil + case "emissions.v2.QueryIsWorkerNonceUnfulfilledResponse.is_worker_nonce_unfulfilled": + return x.IsWorkerNonceUnfulfilled != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInfererNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerNonceUnfulfilledResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInfererNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) } } @@ -22536,15 +23071,15 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInfererNetworkRegretResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryInfererNetworkRegretResponse.regret": - x.Regret = nil + case "emissions.v2.QueryIsWorkerNonceUnfulfilledResponse.is_worker_nonce_unfulfilled": + x.IsWorkerNonceUnfulfilled = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInfererNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerNonceUnfulfilledResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInfererNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) } } @@ -22554,16 +23089,16 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryInfererNetworkRegretResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryInfererNetworkRegretResponse.regret": - value := x.Regret - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryIsWorkerNonceUnfulfilledResponse.is_worker_nonce_unfulfilled": + value := x.IsWorkerNonceUnfulfilled + return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInfererNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerNonceUnfulfilledResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInfererNetworkRegretResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerNonceUnfulfilledResponse does not contain field %s", descriptor.FullName())) } } @@ -22577,15 +23112,15 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInfererNetworkRegretResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryInfererNetworkRegretResponse.regret": - x.Regret = value.Message().Interface().(*TimestampedValue) + case "emissions.v2.QueryIsWorkerNonceUnfulfilledResponse.is_worker_nonce_unfulfilled": + x.IsWorkerNonceUnfulfilled = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInfererNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerNonceUnfulfilledResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInfererNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) } } @@ -22599,44 +23134,40 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInfererNetworkRegretResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryInfererNetworkRegretResponse.regret": - if x.Regret == nil { - x.Regret = new(TimestampedValue) - } - return protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) + case "emissions.v2.QueryIsWorkerNonceUnfulfilledResponse.is_worker_nonce_unfulfilled": + panic(fmt.Errorf("field is_worker_nonce_unfulfilled of message emissions.v2.QueryIsWorkerNonceUnfulfilledResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInfererNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerNonceUnfulfilledResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInfererNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryInfererNetworkRegretResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryInfererNetworkRegretResponse.regret": - m := new(TimestampedValue) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryIsWorkerNonceUnfulfilledResponse.is_worker_nonce_unfulfilled": + return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInfererNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerNonceUnfulfilledResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInfererNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryInfererNetworkRegretResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryInfererNetworkRegretResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryIsWorkerNonceUnfulfilledResponse", d.FullName())) } panic("unreachable") } @@ -22644,7 +23175,7 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryInfererNetworkRegretResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -22655,7 +23186,7 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInfererNetworkRegretResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -22667,7 +23198,7 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryInfererNetworkRegretResponse) IsValid() bool { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) IsValid() bool { return x != nil } @@ -22677,9 +23208,9 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryInfererNetworkRegretResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsWorkerNonceUnfulfilledResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryInfererNetworkRegretResponse) + x := input.Message.Interface().(*QueryIsWorkerNonceUnfulfilledResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22691,9 +23222,8 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) ProtoMethods() *proto var n int var l int _ = l - if x.Regret != nil { - l = options.Size(x.Regret) - n += 1 + l + runtime.Sov(uint64(l)) + if x.IsWorkerNonceUnfulfilled { + n += 2 } if x.unknownFields != nil { n += len(x.unknownFields) @@ -22705,7 +23235,7 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryInfererNetworkRegretResponse) + x := input.Message.Interface().(*QueryIsWorkerNonceUnfulfilledResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22724,19 +23254,15 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) ProtoMethods() *proto i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Regret != nil { - encoded, err := options.Marshal(x.Regret) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + if x.IsWorkerNonceUnfulfilled { + i-- + if x.IsWorkerNonceUnfulfilled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -22749,7 +23275,7 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryInfererNetworkRegretResponse) + x := input.Message.Interface().(*QueryIsWorkerNonceUnfulfilledResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -22781,17 +23307,17 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInfererNetworkRegretResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerNonceUnfulfilledResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInfererNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerNonceUnfulfilledResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsWorkerNonceUnfulfilled", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -22801,28 +23327,12 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) ProtoMethods() *proto } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Regret == nil { - x.Regret = &TimestampedValue{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Regret); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex + x.IsWorkerNonceUnfulfilled = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -22859,28 +23369,26 @@ func (x *fastReflection_QueryInfererNetworkRegretResponse) ProtoMethods() *proto } var ( - md_QueryForecasterNetworkRegretRequest protoreflect.MessageDescriptor - fd_QueryForecasterNetworkRegretRequest_topic_id protoreflect.FieldDescriptor - fd_QueryForecasterNetworkRegretRequest_worker protoreflect.FieldDescriptor + md_QueryUnfulfilledReputerNoncesRequest protoreflect.MessageDescriptor + fd_QueryUnfulfilledReputerNoncesRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryForecasterNetworkRegretRequest = File_emissions_v1_query_proto.Messages().ByName("QueryForecasterNetworkRegretRequest") - fd_QueryForecasterNetworkRegretRequest_topic_id = md_QueryForecasterNetworkRegretRequest.Fields().ByName("topic_id") - fd_QueryForecasterNetworkRegretRequest_worker = md_QueryForecasterNetworkRegretRequest.Fields().ByName("worker") + file_emissions_v2_query_proto_init() + md_QueryUnfulfilledReputerNoncesRequest = File_emissions_v2_query_proto.Messages().ByName("QueryUnfulfilledReputerNoncesRequest") + fd_QueryUnfulfilledReputerNoncesRequest_topic_id = md_QueryUnfulfilledReputerNoncesRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryForecasterNetworkRegretRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryUnfulfilledReputerNoncesRequest)(nil) -type fastReflection_QueryForecasterNetworkRegretRequest QueryForecasterNetworkRegretRequest +type fastReflection_QueryUnfulfilledReputerNoncesRequest QueryUnfulfilledReputerNoncesRequest -func (x *QueryForecasterNetworkRegretRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryForecasterNetworkRegretRequest)(x) +func (x *QueryUnfulfilledReputerNoncesRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryUnfulfilledReputerNoncesRequest)(x) } -func (x *QueryForecasterNetworkRegretRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[52] +func (x *QueryUnfulfilledReputerNoncesRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -22891,43 +23399,43 @@ func (x *QueryForecasterNetworkRegretRequest) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_QueryForecasterNetworkRegretRequest_messageType fastReflection_QueryForecasterNetworkRegretRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryForecasterNetworkRegretRequest_messageType{} +var _fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType{} -type fastReflection_QueryForecasterNetworkRegretRequest_messageType struct{} +type fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType struct{} -func (x fastReflection_QueryForecasterNetworkRegretRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryForecasterNetworkRegretRequest)(nil) +func (x fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryUnfulfilledReputerNoncesRequest)(nil) } -func (x fastReflection_QueryForecasterNetworkRegretRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryForecasterNetworkRegretRequest) +func (x fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryUnfulfilledReputerNoncesRequest) } -func (x fastReflection_QueryForecasterNetworkRegretRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryForecasterNetworkRegretRequest +func (x fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUnfulfilledReputerNoncesRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryForecasterNetworkRegretRequest +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUnfulfilledReputerNoncesRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryForecasterNetworkRegretRequest_messageType +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryUnfulfilledReputerNoncesRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) New() protoreflect.Message { - return new(fastReflection_QueryForecasterNetworkRegretRequest) +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) New() protoreflect.Message { + return new(fastReflection_QueryUnfulfilledReputerNoncesRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) Interface() protoreflect.ProtoMessage { - return (*QueryForecasterNetworkRegretRequest)(x) +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Interface() protoreflect.ProtoMessage { + return (*QueryUnfulfilledReputerNoncesRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -22935,16 +23443,10 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryForecasterNetworkRegretRequest_topic_id, value) { - return - } - } - if x.Worker != "" { - value := protoreflect.ValueOfString(x.Worker) - if !f(fd_QueryForecasterNetworkRegretRequest_worker, value) { + if !f(fd_QueryUnfulfilledReputerNoncesRequest_topic_id, value) { return } } @@ -22961,17 +23463,15 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) Range(f func(protor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryForecasterNetworkRegretRequest.topic_id": + case "emissions.v2.QueryUnfulfilledReputerNoncesRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryForecasterNetworkRegretRequest.worker": - return x.Worker != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecasterNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledReputerNoncesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledReputerNoncesRequest does not contain field %s", fd.FullName())) } } @@ -22981,17 +23481,15 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryForecasterNetworkRegretRequest.topic_id": + case "emissions.v2.QueryUnfulfilledReputerNoncesRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryForecasterNetworkRegretRequest.worker": - x.Worker = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecasterNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledReputerNoncesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledReputerNoncesRequest does not contain field %s", fd.FullName())) } } @@ -23001,19 +23499,16 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) Clear(fd protorefle // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryForecasterNetworkRegretRequest.topic_id": + case "emissions.v2.QueryUnfulfilledReputerNoncesRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryForecasterNetworkRegretRequest.worker": - value := x.Worker - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecasterNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledReputerNoncesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecasterNetworkRegretRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledReputerNoncesRequest does not contain field %s", descriptor.FullName())) } } @@ -23027,17 +23522,15 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryForecasterNetworkRegretRequest.topic_id": + case "emissions.v2.QueryUnfulfilledReputerNoncesRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryForecasterNetworkRegretRequest.worker": - x.Worker = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecasterNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledReputerNoncesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledReputerNoncesRequest does not contain field %s", fd.FullName())) } } @@ -23051,44 +23544,40 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryForecasterNetworkRegretRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryForecasterNetworkRegretRequest is not mutable")) - case "emissions.v1.QueryForecasterNetworkRegretRequest.worker": - panic(fmt.Errorf("field worker of message emissions.v1.QueryForecasterNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryUnfulfilledReputerNoncesRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryUnfulfilledReputerNoncesRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecasterNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledReputerNoncesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledReputerNoncesRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryForecasterNetworkRegretRequest.topic_id": + case "emissions.v2.QueryUnfulfilledReputerNoncesRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryForecasterNetworkRegretRequest.worker": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecasterNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledReputerNoncesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledReputerNoncesRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryForecasterNetworkRegretRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryUnfulfilledReputerNoncesRequest", d.FullName())) } panic("unreachable") } @@ -23096,7 +23585,7 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) WhichOneof(d protor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -23107,7 +23596,7 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -23119,7 +23608,7 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) SetUnknown(fields p // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) IsValid() bool { +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) IsValid() bool { return x != nil } @@ -23129,9 +23618,9 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryForecasterNetworkRegretRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryUnfulfilledReputerNoncesRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryForecasterNetworkRegretRequest) + x := input.Message.Interface().(*QueryUnfulfilledReputerNoncesRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -23146,10 +23635,6 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) ProtoMethods() *pro if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Worker) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -23160,7 +23645,7 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryForecasterNetworkRegretRequest) + x := input.Message.Interface().(*QueryUnfulfilledReputerNoncesRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -23179,13 +23664,6 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) ProtoMethods() *pro i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Worker) > 0 { - i -= len(x.Worker) - copy(dAtA[i:], x.Worker) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Worker))) - i-- - dAtA[i] = 0x12 - } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- @@ -23202,7 +23680,7 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryForecasterNetworkRegretRequest) + x := input.Message.Interface().(*QueryUnfulfilledReputerNoncesRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -23234,10 +23712,10 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecasterNetworkRegretRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledReputerNoncesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecasterNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledReputerNoncesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -23259,38 +23737,6 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) ProtoMethods() *pro break } } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Worker = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -23327,26 +23773,26 @@ func (x *fastReflection_QueryForecasterNetworkRegretRequest) ProtoMethods() *pro } var ( - md_QueryForecasterNetworkRegretResponse protoreflect.MessageDescriptor - fd_QueryForecasterNetworkRegretResponse_regret protoreflect.FieldDescriptor + md_QueryUnfulfilledReputerNoncesResponse protoreflect.MessageDescriptor + fd_QueryUnfulfilledReputerNoncesResponse_nonces protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryForecasterNetworkRegretResponse = File_emissions_v1_query_proto.Messages().ByName("QueryForecasterNetworkRegretResponse") - fd_QueryForecasterNetworkRegretResponse_regret = md_QueryForecasterNetworkRegretResponse.Fields().ByName("regret") + file_emissions_v2_query_proto_init() + md_QueryUnfulfilledReputerNoncesResponse = File_emissions_v2_query_proto.Messages().ByName("QueryUnfulfilledReputerNoncesResponse") + fd_QueryUnfulfilledReputerNoncesResponse_nonces = md_QueryUnfulfilledReputerNoncesResponse.Fields().ByName("nonces") } -var _ protoreflect.Message = (*fastReflection_QueryForecasterNetworkRegretResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryUnfulfilledReputerNoncesResponse)(nil) -type fastReflection_QueryForecasterNetworkRegretResponse QueryForecasterNetworkRegretResponse +type fastReflection_QueryUnfulfilledReputerNoncesResponse QueryUnfulfilledReputerNoncesResponse -func (x *QueryForecasterNetworkRegretResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryForecasterNetworkRegretResponse)(x) +func (x *QueryUnfulfilledReputerNoncesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryUnfulfilledReputerNoncesResponse)(x) } -func (x *QueryForecasterNetworkRegretResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[53] +func (x *QueryUnfulfilledReputerNoncesResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[53] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -23357,43 +23803,43 @@ func (x *QueryForecasterNetworkRegretResponse) slowProtoReflect() protoreflect.M return mi.MessageOf(x) } -var _fastReflection_QueryForecasterNetworkRegretResponse_messageType fastReflection_QueryForecasterNetworkRegretResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryForecasterNetworkRegretResponse_messageType{} +var _fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType{} -type fastReflection_QueryForecasterNetworkRegretResponse_messageType struct{} +type fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType struct{} -func (x fastReflection_QueryForecasterNetworkRegretResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryForecasterNetworkRegretResponse)(nil) +func (x fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryUnfulfilledReputerNoncesResponse)(nil) } -func (x fastReflection_QueryForecasterNetworkRegretResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryForecasterNetworkRegretResponse) +func (x fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryUnfulfilledReputerNoncesResponse) } -func (x fastReflection_QueryForecasterNetworkRegretResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryForecasterNetworkRegretResponse +func (x fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUnfulfilledReputerNoncesResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryForecasterNetworkRegretResponse +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUnfulfilledReputerNoncesResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryForecasterNetworkRegretResponse_messageType +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryUnfulfilledReputerNoncesResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) New() protoreflect.Message { - return new(fastReflection_QueryForecasterNetworkRegretResponse) +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) New() protoreflect.Message { + return new(fastReflection_QueryUnfulfilledReputerNoncesResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) Interface() protoreflect.ProtoMessage { - return (*QueryForecasterNetworkRegretResponse)(x) +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Interface() protoreflect.ProtoMessage { + return (*QueryUnfulfilledReputerNoncesResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -23401,10 +23847,10 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) Interface() protor // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Regret != nil { - value := protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) - if !f(fd_QueryForecasterNetworkRegretResponse_regret, value) { +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonces != nil { + value := protoreflect.ValueOfMessage(x.Nonces.ProtoReflect()) + if !f(fd_QueryUnfulfilledReputerNoncesResponse_nonces, value) { return } } @@ -23421,15 +23867,15 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) Range(f func(proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryForecasterNetworkRegretResponse.regret": - return x.Regret != nil + case "emissions.v2.QueryUnfulfilledReputerNoncesResponse.nonces": + return x.Nonces != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecasterNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledReputerNoncesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledReputerNoncesResponse does not contain field %s", fd.FullName())) } } @@ -23439,15 +23885,15 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) Has(fd protoreflec // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryForecasterNetworkRegretResponse.regret": - x.Regret = nil + case "emissions.v2.QueryUnfulfilledReputerNoncesResponse.nonces": + x.Nonces = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecasterNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledReputerNoncesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledReputerNoncesResponse does not contain field %s", fd.FullName())) } } @@ -23457,16 +23903,16 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) Clear(fd protorefl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryForecasterNetworkRegretResponse.regret": - value := x.Regret + case "emissions.v2.QueryUnfulfilledReputerNoncesResponse.nonces": + value := x.Nonces return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecasterNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledReputerNoncesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecasterNetworkRegretResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledReputerNoncesResponse does not contain field %s", descriptor.FullName())) } } @@ -23480,15 +23926,15 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) Get(descriptor pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryForecasterNetworkRegretResponse.regret": - x.Regret = value.Message().Interface().(*TimestampedValue) + case "emissions.v2.QueryUnfulfilledReputerNoncesResponse.nonces": + x.Nonces = value.Message().Interface().(*ReputerRequestNonces) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecasterNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledReputerNoncesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledReputerNoncesResponse does not contain field %s", fd.FullName())) } } @@ -23502,44 +23948,44 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) Set(fd protoreflec // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryForecasterNetworkRegretResponse.regret": - if x.Regret == nil { - x.Regret = new(TimestampedValue) + case "emissions.v2.QueryUnfulfilledReputerNoncesResponse.nonces": + if x.Nonces == nil { + x.Nonces = new(ReputerRequestNonces) } - return protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Nonces.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecasterNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledReputerNoncesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledReputerNoncesResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryForecasterNetworkRegretResponse.regret": - m := new(TimestampedValue) + case "emissions.v2.QueryUnfulfilledReputerNoncesResponse.nonces": + m := new(ReputerRequestNonces) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecasterNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledReputerNoncesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledReputerNoncesResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryForecasterNetworkRegretResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryUnfulfilledReputerNoncesResponse", d.FullName())) } panic("unreachable") } @@ -23547,7 +23993,7 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) WhichOneof(d proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -23558,7 +24004,7 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) GetUnknown() proto // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -23570,7 +24016,7 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) IsValid() bool { +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) IsValid() bool { return x != nil } @@ -23580,9 +24026,9 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryForecasterNetworkRegretResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryUnfulfilledReputerNoncesResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryForecasterNetworkRegretResponse) + x := input.Message.Interface().(*QueryUnfulfilledReputerNoncesResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -23594,8 +24040,8 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) ProtoMethods() *pr var n int var l int _ = l - if x.Regret != nil { - l = options.Size(x.Regret) + if x.Nonces != nil { + l = options.Size(x.Nonces) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -23608,7 +24054,7 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) ProtoMethods() *pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryForecasterNetworkRegretResponse) + x := input.Message.Interface().(*QueryUnfulfilledReputerNoncesResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -23627,8 +24073,8 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) ProtoMethods() *pr i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Regret != nil { - encoded, err := options.Marshal(x.Regret) + if x.Nonces != nil { + encoded, err := options.Marshal(x.Nonces) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -23652,7 +24098,7 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) ProtoMethods() *pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryForecasterNetworkRegretResponse) + x := input.Message.Interface().(*QueryUnfulfilledReputerNoncesResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -23684,15 +24130,15 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) ProtoMethods() *pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecasterNetworkRegretResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledReputerNoncesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecasterNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledReputerNoncesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonces", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -23719,10 +24165,10 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) ProtoMethods() *pr if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Regret == nil { - x.Regret = &TimestampedValue{} + if x.Nonces == nil { + x.Nonces = &ReputerRequestNonces{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Regret); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nonces); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -23762,30 +24208,26 @@ func (x *fastReflection_QueryForecasterNetworkRegretResponse) ProtoMethods() *pr } var ( - md_QueryOneInForecasterNetworkRegretRequest protoreflect.MessageDescriptor - fd_QueryOneInForecasterNetworkRegretRequest_topic_id protoreflect.FieldDescriptor - fd_QueryOneInForecasterNetworkRegretRequest_forecaster protoreflect.FieldDescriptor - fd_QueryOneInForecasterNetworkRegretRequest_inferer protoreflect.FieldDescriptor + md_QueryUnfulfilledWorkerNoncesRequest protoreflect.MessageDescriptor + fd_QueryUnfulfilledWorkerNoncesRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryOneInForecasterNetworkRegretRequest = File_emissions_v1_query_proto.Messages().ByName("QueryOneInForecasterNetworkRegretRequest") - fd_QueryOneInForecasterNetworkRegretRequest_topic_id = md_QueryOneInForecasterNetworkRegretRequest.Fields().ByName("topic_id") - fd_QueryOneInForecasterNetworkRegretRequest_forecaster = md_QueryOneInForecasterNetworkRegretRequest.Fields().ByName("forecaster") - fd_QueryOneInForecasterNetworkRegretRequest_inferer = md_QueryOneInForecasterNetworkRegretRequest.Fields().ByName("inferer") + file_emissions_v2_query_proto_init() + md_QueryUnfulfilledWorkerNoncesRequest = File_emissions_v2_query_proto.Messages().ByName("QueryUnfulfilledWorkerNoncesRequest") + fd_QueryUnfulfilledWorkerNoncesRequest_topic_id = md_QueryUnfulfilledWorkerNoncesRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryOneInForecasterNetworkRegretRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryUnfulfilledWorkerNoncesRequest)(nil) -type fastReflection_QueryOneInForecasterNetworkRegretRequest QueryOneInForecasterNetworkRegretRequest +type fastReflection_QueryUnfulfilledWorkerNoncesRequest QueryUnfulfilledWorkerNoncesRequest -func (x *QueryOneInForecasterNetworkRegretRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryOneInForecasterNetworkRegretRequest)(x) +func (x *QueryUnfulfilledWorkerNoncesRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryUnfulfilledWorkerNoncesRequest)(x) } -func (x *QueryOneInForecasterNetworkRegretRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[54] +func (x *QueryUnfulfilledWorkerNoncesRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[54] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -23796,43 +24238,43 @@ func (x *QueryOneInForecasterNetworkRegretRequest) slowProtoReflect() protorefle return mi.MessageOf(x) } -var _fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType{} +var _fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType{} -type fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType struct{} +type fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType struct{} -func (x fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryOneInForecasterNetworkRegretRequest)(nil) +func (x fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryUnfulfilledWorkerNoncesRequest)(nil) } -func (x fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryOneInForecasterNetworkRegretRequest) +func (x fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryUnfulfilledWorkerNoncesRequest) } -func (x fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryOneInForecasterNetworkRegretRequest +func (x fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUnfulfilledWorkerNoncesRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryOneInForecasterNetworkRegretRequest +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUnfulfilledWorkerNoncesRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryUnfulfilledWorkerNoncesRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) New() protoreflect.Message { - return new(fastReflection_QueryOneInForecasterNetworkRegretRequest) +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) New() protoreflect.Message { + return new(fastReflection_QueryUnfulfilledWorkerNoncesRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Interface() protoreflect.ProtoMessage { - return (*QueryOneInForecasterNetworkRegretRequest)(x) +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Interface() protoreflect.ProtoMessage { + return (*QueryUnfulfilledWorkerNoncesRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -23840,22 +24282,10 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Interface() pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryOneInForecasterNetworkRegretRequest_topic_id, value) { - return - } - } - if x.Forecaster != "" { - value := protoreflect.ValueOfString(x.Forecaster) - if !f(fd_QueryOneInForecasterNetworkRegretRequest_forecaster, value) { - return - } - } - if x.Inferer != "" { - value := protoreflect.ValueOfString(x.Inferer) - if !f(fd_QueryOneInForecasterNetworkRegretRequest_inferer, value) { + if !f(fd_QueryUnfulfilledWorkerNoncesRequest_topic_id, value) { return } } @@ -23872,19 +24302,15 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Range(f func(p // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.topic_id": + case "emissions.v2.QueryUnfulfilledWorkerNoncesRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.forecaster": - return x.Forecaster != "" - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.inferer": - return x.Inferer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledWorkerNoncesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledWorkerNoncesRequest does not contain field %s", fd.FullName())) } } @@ -23894,19 +24320,15 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Has(fd protore // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.topic_id": + case "emissions.v2.QueryUnfulfilledWorkerNoncesRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.forecaster": - x.Forecaster = "" - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.inferer": - x.Inferer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledWorkerNoncesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledWorkerNoncesRequest does not contain field %s", fd.FullName())) } } @@ -23916,22 +24338,16 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Clear(fd proto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.topic_id": + case "emissions.v2.QueryUnfulfilledWorkerNoncesRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.forecaster": - value := x.Forecaster - return protoreflect.ValueOfString(value) - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.inferer": - value := x.Inferer - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledWorkerNoncesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterNetworkRegretRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledWorkerNoncesRequest does not contain field %s", descriptor.FullName())) } } @@ -23945,19 +24361,15 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Get(descriptor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.topic_id": + case "emissions.v2.QueryUnfulfilledWorkerNoncesRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.forecaster": - x.Forecaster = value.Interface().(string) - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.inferer": - x.Inferer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledWorkerNoncesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledWorkerNoncesRequest does not contain field %s", fd.FullName())) } } @@ -23971,48 +24383,40 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Set(fd protore // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryOneInForecasterNetworkRegretRequest is not mutable")) - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.forecaster": - panic(fmt.Errorf("field forecaster of message emissions.v1.QueryOneInForecasterNetworkRegretRequest is not mutable")) - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.inferer": - panic(fmt.Errorf("field inferer of message emissions.v1.QueryOneInForecasterNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryUnfulfilledWorkerNoncesRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryUnfulfilledWorkerNoncesRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledWorkerNoncesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledWorkerNoncesRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.topic_id": + case "emissions.v2.QueryUnfulfilledWorkerNoncesRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.forecaster": - return protoreflect.ValueOfString("") - case "emissions.v1.QueryOneInForecasterNetworkRegretRequest.inferer": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledWorkerNoncesRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledWorkerNoncesRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryOneInForecasterNetworkRegretRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryUnfulfilledWorkerNoncesRequest", d.FullName())) } panic("unreachable") } @@ -24020,7 +24424,7 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) WhichOneof(d p // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -24031,7 +24435,7 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) GetUnknown() p // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -24043,7 +24447,7 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) SetUnknown(fie // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) IsValid() bool { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) IsValid() bool { return x != nil } @@ -24053,9 +24457,9 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) IsValid() bool // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryOneInForecasterNetworkRegretRequest) + x := input.Message.Interface().(*QueryUnfulfilledWorkerNoncesRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -24070,14 +24474,6 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) ProtoMethods() if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Forecaster) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Inferer) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -24088,7 +24484,7 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) ProtoMethods() } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryOneInForecasterNetworkRegretRequest) + x := input.Message.Interface().(*QueryUnfulfilledWorkerNoncesRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -24107,20 +24503,6 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) ProtoMethods() i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Inferer) > 0 { - i -= len(x.Inferer) - copy(dAtA[i:], x.Inferer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Inferer))) - i-- - dAtA[i] = 0x1a - } - if len(x.Forecaster) > 0 { - i -= len(x.Forecaster) - copy(dAtA[i:], x.Forecaster) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Forecaster))) - i-- - dAtA[i] = 0x12 - } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- @@ -24137,7 +24519,7 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) ProtoMethods() }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryOneInForecasterNetworkRegretRequest) + x := input.Message.Interface().(*QueryUnfulfilledWorkerNoncesRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -24169,10 +24551,10 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) ProtoMethods() fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneInForecasterNetworkRegretRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledWorkerNoncesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneInForecasterNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledWorkerNoncesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -24194,70 +24576,6 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) ProtoMethods() break } } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Forecaster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Inferer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -24294,26 +24612,26 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) ProtoMethods() } var ( - md_QueryOneInForecasterNetworkRegretResponse protoreflect.MessageDescriptor - fd_QueryOneInForecasterNetworkRegretResponse_regret protoreflect.FieldDescriptor + md_QueryUnfulfilledWorkerNoncesResponse protoreflect.MessageDescriptor + fd_QueryUnfulfilledWorkerNoncesResponse_nonces protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryOneInForecasterNetworkRegretResponse = File_emissions_v1_query_proto.Messages().ByName("QueryOneInForecasterNetworkRegretResponse") - fd_QueryOneInForecasterNetworkRegretResponse_regret = md_QueryOneInForecasterNetworkRegretResponse.Fields().ByName("regret") + file_emissions_v2_query_proto_init() + md_QueryUnfulfilledWorkerNoncesResponse = File_emissions_v2_query_proto.Messages().ByName("QueryUnfulfilledWorkerNoncesResponse") + fd_QueryUnfulfilledWorkerNoncesResponse_nonces = md_QueryUnfulfilledWorkerNoncesResponse.Fields().ByName("nonces") } -var _ protoreflect.Message = (*fastReflection_QueryOneInForecasterNetworkRegretResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryUnfulfilledWorkerNoncesResponse)(nil) -type fastReflection_QueryOneInForecasterNetworkRegretResponse QueryOneInForecasterNetworkRegretResponse +type fastReflection_QueryUnfulfilledWorkerNoncesResponse QueryUnfulfilledWorkerNoncesResponse -func (x *QueryOneInForecasterNetworkRegretResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryOneInForecasterNetworkRegretResponse)(x) +func (x *QueryUnfulfilledWorkerNoncesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryUnfulfilledWorkerNoncesResponse)(x) } -func (x *QueryOneInForecasterNetworkRegretResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[55] +func (x *QueryUnfulfilledWorkerNoncesResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[55] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -24324,43 +24642,43 @@ func (x *QueryOneInForecasterNetworkRegretResponse) slowProtoReflect() protorefl return mi.MessageOf(x) } -var _fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType{} +var _fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType{} -type fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType struct{} +type fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType struct{} -func (x fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryOneInForecasterNetworkRegretResponse)(nil) +func (x fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryUnfulfilledWorkerNoncesResponse)(nil) } -func (x fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryOneInForecasterNetworkRegretResponse) +func (x fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryUnfulfilledWorkerNoncesResponse) } -func (x fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryOneInForecasterNetworkRegretResponse +func (x fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUnfulfilledWorkerNoncesResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryOneInForecasterNetworkRegretResponse +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryUnfulfilledWorkerNoncesResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryUnfulfilledWorkerNoncesResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) New() protoreflect.Message { - return new(fastReflection_QueryOneInForecasterNetworkRegretResponse) +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) New() protoreflect.Message { + return new(fastReflection_QueryUnfulfilledWorkerNoncesResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Interface() protoreflect.ProtoMessage { - return (*QueryOneInForecasterNetworkRegretResponse)(x) +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Interface() protoreflect.ProtoMessage { + return (*QueryUnfulfilledWorkerNoncesResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -24368,10 +24686,10 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Interface() p // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Regret != nil { - value := protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) - if !f(fd_QueryOneInForecasterNetworkRegretResponse_regret, value) { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonces != nil { + value := protoreflect.ValueOfMessage(x.Nonces.ProtoReflect()) + if !f(fd_QueryUnfulfilledWorkerNoncesResponse_nonces, value) { return } } @@ -24388,15 +24706,15 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Range(f func( // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterNetworkRegretResponse.regret": - return x.Regret != nil + case "emissions.v2.QueryUnfulfilledWorkerNoncesResponse.nonces": + return x.Nonces != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledWorkerNoncesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledWorkerNoncesResponse does not contain field %s", fd.FullName())) } } @@ -24406,15 +24724,15 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Has(fd protor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterNetworkRegretResponse.regret": - x.Regret = nil + case "emissions.v2.QueryUnfulfilledWorkerNoncesResponse.nonces": + x.Nonces = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledWorkerNoncesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledWorkerNoncesResponse does not contain field %s", fd.FullName())) } } @@ -24424,16 +24742,16 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Clear(fd prot // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryOneInForecasterNetworkRegretResponse.regret": - value := x.Regret + case "emissions.v2.QueryUnfulfilledWorkerNoncesResponse.nonces": + value := x.Nonces return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledWorkerNoncesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterNetworkRegretResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledWorkerNoncesResponse does not contain field %s", descriptor.FullName())) } } @@ -24447,15 +24765,15 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Get(descripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterNetworkRegretResponse.regret": - x.Regret = value.Message().Interface().(*TimestampedValue) + case "emissions.v2.QueryUnfulfilledWorkerNoncesResponse.nonces": + x.Nonces = value.Message().Interface().(*Nonces) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledWorkerNoncesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledWorkerNoncesResponse does not contain field %s", fd.FullName())) } } @@ -24469,44 +24787,44 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Set(fd protor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterNetworkRegretResponse.regret": - if x.Regret == nil { - x.Regret = new(TimestampedValue) + case "emissions.v2.QueryUnfulfilledWorkerNoncesResponse.nonces": + if x.Nonces == nil { + x.Nonces = new(Nonces) } - return protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Nonces.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledWorkerNoncesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledWorkerNoncesResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterNetworkRegretResponse.regret": - m := new(TimestampedValue) + case "emissions.v2.QueryUnfulfilledWorkerNoncesResponse.nonces": + m := new(Nonces) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryUnfulfilledWorkerNoncesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryUnfulfilledWorkerNoncesResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryOneInForecasterNetworkRegretResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryUnfulfilledWorkerNoncesResponse", d.FullName())) } panic("unreachable") } @@ -24514,7 +24832,7 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) WhichOneof(d // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -24525,7 +24843,7 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) GetUnknown() // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -24537,7 +24855,7 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) SetUnknown(fi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) IsValid() bool { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) IsValid() bool { return x != nil } @@ -24547,9 +24865,9 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) IsValid() boo // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryUnfulfilledWorkerNoncesResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryOneInForecasterNetworkRegretResponse) + x := input.Message.Interface().(*QueryUnfulfilledWorkerNoncesResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -24561,8 +24879,8 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) ProtoMethods( var n int var l int _ = l - if x.Regret != nil { - l = options.Size(x.Regret) + if x.Nonces != nil { + l = options.Size(x.Nonces) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -24575,7 +24893,7 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) ProtoMethods( } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryOneInForecasterNetworkRegretResponse) + x := input.Message.Interface().(*QueryUnfulfilledWorkerNoncesResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -24594,8 +24912,8 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) ProtoMethods( i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Regret != nil { - encoded, err := options.Marshal(x.Regret) + if x.Nonces != nil { + encoded, err := options.Marshal(x.Nonces) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -24619,7 +24937,7 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) ProtoMethods( }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryOneInForecasterNetworkRegretResponse) + x := input.Message.Interface().(*QueryUnfulfilledWorkerNoncesResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -24651,15 +24969,15 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) ProtoMethods( fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneInForecasterNetworkRegretResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledWorkerNoncesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneInForecasterNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryUnfulfilledWorkerNoncesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonces", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -24686,10 +25004,10 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) ProtoMethods( if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Regret == nil { - x.Regret = &TimestampedValue{} + if x.Nonces == nil { + x.Nonces = &Nonces{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Regret); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nonces); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -24729,28 +25047,28 @@ func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) ProtoMethods( } var ( - md_QueryOneInForecasterSelfNetworkRegretRequest protoreflect.MessageDescriptor - fd_QueryOneInForecasterSelfNetworkRegretRequest_topic_id protoreflect.FieldDescriptor - fd_QueryOneInForecasterSelfNetworkRegretRequest_forecaster protoreflect.FieldDescriptor + md_QueryInfererNetworkRegretRequest protoreflect.MessageDescriptor + fd_QueryInfererNetworkRegretRequest_topic_id protoreflect.FieldDescriptor + fd_QueryInfererNetworkRegretRequest_actor_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryOneInForecasterSelfNetworkRegretRequest = File_emissions_v1_query_proto.Messages().ByName("QueryOneInForecasterSelfNetworkRegretRequest") - fd_QueryOneInForecasterSelfNetworkRegretRequest_topic_id = md_QueryOneInForecasterSelfNetworkRegretRequest.Fields().ByName("topic_id") - fd_QueryOneInForecasterSelfNetworkRegretRequest_forecaster = md_QueryOneInForecasterSelfNetworkRegretRequest.Fields().ByName("forecaster") + file_emissions_v2_query_proto_init() + md_QueryInfererNetworkRegretRequest = File_emissions_v2_query_proto.Messages().ByName("QueryInfererNetworkRegretRequest") + fd_QueryInfererNetworkRegretRequest_topic_id = md_QueryInfererNetworkRegretRequest.Fields().ByName("topic_id") + fd_QueryInfererNetworkRegretRequest_actor_id = md_QueryInfererNetworkRegretRequest.Fields().ByName("actor_id") } -var _ protoreflect.Message = (*fastReflection_QueryOneInForecasterSelfNetworkRegretRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryInfererNetworkRegretRequest)(nil) -type fastReflection_QueryOneInForecasterSelfNetworkRegretRequest QueryOneInForecasterSelfNetworkRegretRequest +type fastReflection_QueryInfererNetworkRegretRequest QueryInfererNetworkRegretRequest -func (x *QueryOneInForecasterSelfNetworkRegretRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryOneInForecasterSelfNetworkRegretRequest)(x) +func (x *QueryInfererNetworkRegretRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryInfererNetworkRegretRequest)(x) } -func (x *QueryOneInForecasterSelfNetworkRegretRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[56] +func (x *QueryInfererNetworkRegretRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[56] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -24761,43 +25079,43 @@ func (x *QueryOneInForecasterSelfNetworkRegretRequest) slowProtoReflect() protor return mi.MessageOf(x) } -var _fastReflection_QueryOneInForecasterSelfNetworkRegretRequest_messageType fastReflection_QueryOneInForecasterSelfNetworkRegretRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryOneInForecasterSelfNetworkRegretRequest_messageType{} +var _fastReflection_QueryInfererNetworkRegretRequest_messageType fastReflection_QueryInfererNetworkRegretRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryInfererNetworkRegretRequest_messageType{} -type fastReflection_QueryOneInForecasterSelfNetworkRegretRequest_messageType struct{} +type fastReflection_QueryInfererNetworkRegretRequest_messageType struct{} -func (x fastReflection_QueryOneInForecasterSelfNetworkRegretRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryOneInForecasterSelfNetworkRegretRequest)(nil) +func (x fastReflection_QueryInfererNetworkRegretRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryInfererNetworkRegretRequest)(nil) } -func (x fastReflection_QueryOneInForecasterSelfNetworkRegretRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) +func (x fastReflection_QueryInfererNetworkRegretRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryInfererNetworkRegretRequest) } -func (x fastReflection_QueryOneInForecasterSelfNetworkRegretRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryOneInForecasterSelfNetworkRegretRequest +func (x fastReflection_QueryInfererNetworkRegretRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInfererNetworkRegretRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryOneInForecasterSelfNetworkRegretRequest +func (x *fastReflection_QueryInfererNetworkRegretRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInfererNetworkRegretRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryOneInForecasterSelfNetworkRegretRequest_messageType +func (x *fastReflection_QueryInfererNetworkRegretRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryInfererNetworkRegretRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) New() protoreflect.Message { - return new(fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) +func (x *fastReflection_QueryInfererNetworkRegretRequest) New() protoreflect.Message { + return new(fastReflection_QueryInfererNetworkRegretRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Interface() protoreflect.ProtoMessage { - return (*QueryOneInForecasterSelfNetworkRegretRequest)(x) +func (x *fastReflection_QueryInfererNetworkRegretRequest) Interface() protoreflect.ProtoMessage { + return (*QueryInfererNetworkRegretRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -24805,16 +25123,16 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Interface( // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryInfererNetworkRegretRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryOneInForecasterSelfNetworkRegretRequest_topic_id, value) { + if !f(fd_QueryInfererNetworkRegretRequest_topic_id, value) { return } } - if x.Forecaster != "" { - value := protoreflect.ValueOfString(x.Forecaster) - if !f(fd_QueryOneInForecasterSelfNetworkRegretRequest_forecaster, value) { + if x.ActorId != "" { + value := protoreflect.ValueOfString(x.ActorId) + if !f(fd_QueryInfererNetworkRegretRequest_actor_id, value) { return } } @@ -24831,17 +25149,17 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Range(f fu // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryInfererNetworkRegretRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest.topic_id": + case "emissions.v2.QueryInfererNetworkRegretRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest.forecaster": - return x.Forecaster != "" + case "emissions.v2.QueryInfererNetworkRegretRequest.actor_id": + return x.ActorId != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -24851,17 +25169,17 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Has(fd pro // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryInfererNetworkRegretRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest.topic_id": + case "emissions.v2.QueryInfererNetworkRegretRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest.forecaster": - x.Forecaster = "" + case "emissions.v2.QueryInfererNetworkRegretRequest.actor_id": + x.ActorId = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -24871,19 +25189,19 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Clear(fd p // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInfererNetworkRegretRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest.topic_id": + case "emissions.v2.QueryInfererNetworkRegretRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest.forecaster": - value := x.Forecaster + case "emissions.v2.QueryInfererNetworkRegretRequest.actor_id": + value := x.ActorId return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInfererNetworkRegretRequest does not contain field %s", descriptor.FullName())) } } @@ -24897,17 +25215,17 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Get(descri // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryInfererNetworkRegretRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest.topic_id": + case "emissions.v2.QueryInfererNetworkRegretRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest.forecaster": - x.Forecaster = value.Interface().(string) + case "emissions.v2.QueryInfererNetworkRegretRequest.actor_id": + x.ActorId = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -24921,44 +25239,44 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Set(fd pro // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInfererNetworkRegretRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest is not mutable")) - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest.forecaster": - panic(fmt.Errorf("field forecaster of message emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryInfererNetworkRegretRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryInfererNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryInfererNetworkRegretRequest.actor_id": + panic(fmt.Errorf("field actor_id of message emissions.v2.QueryInfererNetworkRegretRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInfererNetworkRegretRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest.topic_id": + case "emissions.v2.QueryInfererNetworkRegretRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest.forecaster": + case "emissions.v2.QueryInfererNetworkRegretRequest.actor_id": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInfererNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInfererNetworkRegretRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryInfererNetworkRegretRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryInfererNetworkRegretRequest", d.FullName())) } panic("unreachable") } @@ -24966,7 +25284,7 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) WhichOneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryInfererNetworkRegretRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -24977,7 +25295,7 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) GetUnknown // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryInfererNetworkRegretRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -24989,7 +25307,7 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) SetUnknown // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) IsValid() bool { +func (x *fastReflection_QueryInfererNetworkRegretRequest) IsValid() bool { return x != nil } @@ -24999,9 +25317,9 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) IsValid() // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryInfererNetworkRegretRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryOneInForecasterSelfNetworkRegretRequest) + x := input.Message.Interface().(*QueryInfererNetworkRegretRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -25016,7 +25334,7 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) ProtoMetho if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Forecaster) + l = len(x.ActorId) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -25030,7 +25348,7 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) ProtoMetho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryOneInForecasterSelfNetworkRegretRequest) + x := input.Message.Interface().(*QueryInfererNetworkRegretRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -25049,10 +25367,10 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) ProtoMetho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Forecaster) > 0 { - i -= len(x.Forecaster) - copy(dAtA[i:], x.Forecaster) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Forecaster))) + if len(x.ActorId) > 0 { + i -= len(x.ActorId) + copy(dAtA[i:], x.ActorId) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ActorId))) i-- dAtA[i] = 0x12 } @@ -25072,7 +25390,7 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) ProtoMetho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryOneInForecasterSelfNetworkRegretRequest) + x := input.Message.Interface().(*QueryInfererNetworkRegretRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -25104,10 +25422,10 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) ProtoMetho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneInForecasterSelfNetworkRegretRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInfererNetworkRegretRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneInForecasterSelfNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInfererNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -25131,7 +25449,7 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) ProtoMetho } case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -25159,7 +25477,7 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) ProtoMetho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Forecaster = string(dAtA[iNdEx:postIndex]) + x.ActorId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -25197,26 +25515,26 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretRequest) ProtoMetho } var ( - md_QueryOneInForecasterSelfNetworkRegretResponse protoreflect.MessageDescriptor - fd_QueryOneInForecasterSelfNetworkRegretResponse_regret protoreflect.FieldDescriptor + md_QueryInfererNetworkRegretResponse protoreflect.MessageDescriptor + fd_QueryInfererNetworkRegretResponse_regret protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryOneInForecasterSelfNetworkRegretResponse = File_emissions_v1_query_proto.Messages().ByName("QueryOneInForecasterSelfNetworkRegretResponse") - fd_QueryOneInForecasterSelfNetworkRegretResponse_regret = md_QueryOneInForecasterSelfNetworkRegretResponse.Fields().ByName("regret") + file_emissions_v2_query_proto_init() + md_QueryInfererNetworkRegretResponse = File_emissions_v2_query_proto.Messages().ByName("QueryInfererNetworkRegretResponse") + fd_QueryInfererNetworkRegretResponse_regret = md_QueryInfererNetworkRegretResponse.Fields().ByName("regret") } -var _ protoreflect.Message = (*fastReflection_QueryOneInForecasterSelfNetworkRegretResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryInfererNetworkRegretResponse)(nil) -type fastReflection_QueryOneInForecasterSelfNetworkRegretResponse QueryOneInForecasterSelfNetworkRegretResponse +type fastReflection_QueryInfererNetworkRegretResponse QueryInfererNetworkRegretResponse -func (x *QueryOneInForecasterSelfNetworkRegretResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryOneInForecasterSelfNetworkRegretResponse)(x) +func (x *QueryInfererNetworkRegretResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryInfererNetworkRegretResponse)(x) } -func (x *QueryOneInForecasterSelfNetworkRegretResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[57] +func (x *QueryInfererNetworkRegretResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -25227,43 +25545,43 @@ func (x *QueryOneInForecasterSelfNetworkRegretResponse) slowProtoReflect() proto return mi.MessageOf(x) } -var _fastReflection_QueryOneInForecasterSelfNetworkRegretResponse_messageType fastReflection_QueryOneInForecasterSelfNetworkRegretResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryOneInForecasterSelfNetworkRegretResponse_messageType{} +var _fastReflection_QueryInfererNetworkRegretResponse_messageType fastReflection_QueryInfererNetworkRegretResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryInfererNetworkRegretResponse_messageType{} -type fastReflection_QueryOneInForecasterSelfNetworkRegretResponse_messageType struct{} +type fastReflection_QueryInfererNetworkRegretResponse_messageType struct{} -func (x fastReflection_QueryOneInForecasterSelfNetworkRegretResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryOneInForecasterSelfNetworkRegretResponse)(nil) +func (x fastReflection_QueryInfererNetworkRegretResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryInfererNetworkRegretResponse)(nil) } -func (x fastReflection_QueryOneInForecasterSelfNetworkRegretResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) +func (x fastReflection_QueryInfererNetworkRegretResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryInfererNetworkRegretResponse) } -func (x fastReflection_QueryOneInForecasterSelfNetworkRegretResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryOneInForecasterSelfNetworkRegretResponse +func (x fastReflection_QueryInfererNetworkRegretResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInfererNetworkRegretResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryOneInForecasterSelfNetworkRegretResponse +func (x *fastReflection_QueryInfererNetworkRegretResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInfererNetworkRegretResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryOneInForecasterSelfNetworkRegretResponse_messageType +func (x *fastReflection_QueryInfererNetworkRegretResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryInfererNetworkRegretResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) New() protoreflect.Message { - return new(fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) +func (x *fastReflection_QueryInfererNetworkRegretResponse) New() protoreflect.Message { + return new(fastReflection_QueryInfererNetworkRegretResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Interface() protoreflect.ProtoMessage { - return (*QueryOneInForecasterSelfNetworkRegretResponse)(x) +func (x *fastReflection_QueryInfererNetworkRegretResponse) Interface() protoreflect.ProtoMessage { + return (*QueryInfererNetworkRegretResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -25271,10 +25589,10 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Interface // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryInfererNetworkRegretResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Regret != nil { value := protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) - if !f(fd_QueryOneInForecasterSelfNetworkRegretResponse_regret, value) { + if !f(fd_QueryInfererNetworkRegretResponse_regret, value) { return } } @@ -25291,15 +25609,15 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Range(f f // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryInfererNetworkRegretResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse.regret": + case "emissions.v2.QueryInfererNetworkRegretResponse.regret": return x.Regret != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -25309,15 +25627,15 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Has(fd pr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryInfererNetworkRegretResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse.regret": + case "emissions.v2.QueryInfererNetworkRegretResponse.regret": x.Regret = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -25327,16 +25645,16 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Clear(fd // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInfererNetworkRegretResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse.regret": + case "emissions.v2.QueryInfererNetworkRegretResponse.regret": value := x.Regret return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInfererNetworkRegretResponse does not contain field %s", descriptor.FullName())) } } @@ -25350,15 +25668,15 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Get(descr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryInfererNetworkRegretResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse.regret": + case "emissions.v2.QueryInfererNetworkRegretResponse.regret": x.Regret = value.Message().Interface().(*TimestampedValue) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -25372,44 +25690,44 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Set(fd pr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInfererNetworkRegretResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse.regret": + case "emissions.v2.QueryInfererNetworkRegretResponse.regret": if x.Regret == nil { x.Regret = new(TimestampedValue) } return protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInfererNetworkRegretResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse.regret": + case "emissions.v2.QueryInfererNetworkRegretResponse.regret": m := new(TimestampedValue) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInfererNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInfererNetworkRegretResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryInfererNetworkRegretResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryInfererNetworkRegretResponse", d.FullName())) } panic("unreachable") } @@ -25417,7 +25735,7 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) WhichOneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryInfererNetworkRegretResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -25428,7 +25746,7 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) GetUnknow // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryInfererNetworkRegretResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -25440,7 +25758,7 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) SetUnknow // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) IsValid() bool { +func (x *fastReflection_QueryInfererNetworkRegretResponse) IsValid() bool { return x != nil } @@ -25450,9 +25768,9 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) IsValid() // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryInfererNetworkRegretResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryOneInForecasterSelfNetworkRegretResponse) + x := input.Message.Interface().(*QueryInfererNetworkRegretResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -25478,7 +25796,7 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) ProtoMeth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryOneInForecasterSelfNetworkRegretResponse) + x := input.Message.Interface().(*QueryInfererNetworkRegretResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -25522,7 +25840,7 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) ProtoMeth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryOneInForecasterSelfNetworkRegretResponse) + x := input.Message.Interface().(*QueryInfererNetworkRegretResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -25554,10 +25872,10 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) ProtoMeth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneInForecasterSelfNetworkRegretResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInfererNetworkRegretResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneInForecasterSelfNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInfererNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -25632,28 +25950,28 @@ func (x *fastReflection_QueryOneInForecasterSelfNetworkRegretResponse) ProtoMeth } var ( - md_QueryIsReputerNonceUnfulfilledRequest protoreflect.MessageDescriptor - fd_QueryIsReputerNonceUnfulfilledRequest_topic_id protoreflect.FieldDescriptor - fd_QueryIsReputerNonceUnfulfilledRequest_block_height protoreflect.FieldDescriptor + md_QueryForecasterNetworkRegretRequest protoreflect.MessageDescriptor + fd_QueryForecasterNetworkRegretRequest_topic_id protoreflect.FieldDescriptor + fd_QueryForecasterNetworkRegretRequest_worker protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryIsReputerNonceUnfulfilledRequest = File_emissions_v1_query_proto.Messages().ByName("QueryIsReputerNonceUnfulfilledRequest") - fd_QueryIsReputerNonceUnfulfilledRequest_topic_id = md_QueryIsReputerNonceUnfulfilledRequest.Fields().ByName("topic_id") - fd_QueryIsReputerNonceUnfulfilledRequest_block_height = md_QueryIsReputerNonceUnfulfilledRequest.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryForecasterNetworkRegretRequest = File_emissions_v2_query_proto.Messages().ByName("QueryForecasterNetworkRegretRequest") + fd_QueryForecasterNetworkRegretRequest_topic_id = md_QueryForecasterNetworkRegretRequest.Fields().ByName("topic_id") + fd_QueryForecasterNetworkRegretRequest_worker = md_QueryForecasterNetworkRegretRequest.Fields().ByName("worker") } -var _ protoreflect.Message = (*fastReflection_QueryIsReputerNonceUnfulfilledRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryForecasterNetworkRegretRequest)(nil) -type fastReflection_QueryIsReputerNonceUnfulfilledRequest QueryIsReputerNonceUnfulfilledRequest +type fastReflection_QueryForecasterNetworkRegretRequest QueryForecasterNetworkRegretRequest -func (x *QueryIsReputerNonceUnfulfilledRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsReputerNonceUnfulfilledRequest)(x) +func (x *QueryForecasterNetworkRegretRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryForecasterNetworkRegretRequest)(x) } -func (x *QueryIsReputerNonceUnfulfilledRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[58] +func (x *QueryForecasterNetworkRegretRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -25664,43 +25982,43 @@ func (x *QueryIsReputerNonceUnfulfilledRequest) slowProtoReflect() protoreflect. return mi.MessageOf(x) } -var _fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType{} +var _fastReflection_QueryForecasterNetworkRegretRequest_messageType fastReflection_QueryForecasterNetworkRegretRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryForecasterNetworkRegretRequest_messageType{} -type fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType struct{} +type fastReflection_QueryForecasterNetworkRegretRequest_messageType struct{} -func (x fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsReputerNonceUnfulfilledRequest)(nil) +func (x fastReflection_QueryForecasterNetworkRegretRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryForecasterNetworkRegretRequest)(nil) } -func (x fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsReputerNonceUnfulfilledRequest) +func (x fastReflection_QueryForecasterNetworkRegretRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryForecasterNetworkRegretRequest) } -func (x fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsReputerNonceUnfulfilledRequest +func (x fastReflection_QueryForecasterNetworkRegretRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryForecasterNetworkRegretRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsReputerNonceUnfulfilledRequest +func (x *fastReflection_QueryForecasterNetworkRegretRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryForecasterNetworkRegretRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType +func (x *fastReflection_QueryForecasterNetworkRegretRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryForecasterNetworkRegretRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) New() protoreflect.Message { - return new(fastReflection_QueryIsReputerNonceUnfulfilledRequest) +func (x *fastReflection_QueryForecasterNetworkRegretRequest) New() protoreflect.Message { + return new(fastReflection_QueryForecasterNetworkRegretRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Interface() protoreflect.ProtoMessage { - return (*QueryIsReputerNonceUnfulfilledRequest)(x) +func (x *fastReflection_QueryForecasterNetworkRegretRequest) Interface() protoreflect.ProtoMessage { + return (*QueryForecasterNetworkRegretRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -25708,16 +26026,16 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Interface() proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryForecasterNetworkRegretRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryIsReputerNonceUnfulfilledRequest_topic_id, value) { + if !f(fd_QueryForecasterNetworkRegretRequest_topic_id, value) { return } } - if x.BlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryIsReputerNonceUnfulfilledRequest_block_height, value) { + if x.Worker != "" { + value := protoreflect.ValueOfString(x.Worker) + if !f(fd_QueryForecasterNetworkRegretRequest_worker, value) { return } } @@ -25734,17 +26052,17 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Range(f func(prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryForecasterNetworkRegretRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryIsReputerNonceUnfulfilledRequest.topic_id": + case "emissions.v2.QueryForecasterNetworkRegretRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryIsReputerNonceUnfulfilledRequest.block_height": - return x.BlockHeight != int64(0) + case "emissions.v2.QueryForecasterNetworkRegretRequest.worker": + return x.Worker != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerNonceUnfulfilledRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -25754,17 +26072,17 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Has(fd protorefle // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryForecasterNetworkRegretRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryIsReputerNonceUnfulfilledRequest.topic_id": + case "emissions.v2.QueryForecasterNetworkRegretRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryIsReputerNonceUnfulfilledRequest.block_height": - x.BlockHeight = int64(0) + case "emissions.v2.QueryForecasterNetworkRegretRequest.worker": + x.Worker = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerNonceUnfulfilledRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -25774,19 +26092,19 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Clear(fd protoref // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecasterNetworkRegretRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryIsReputerNonceUnfulfilledRequest.topic_id": + case "emissions.v2.QueryForecasterNetworkRegretRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryIsReputerNonceUnfulfilledRequest.block_height": - value := x.BlockHeight - return protoreflect.ValueOfInt64(value) + case "emissions.v2.QueryForecasterNetworkRegretRequest.worker": + value := x.Worker + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerNonceUnfulfilledRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerNonceUnfulfilledRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecasterNetworkRegretRequest does not contain field %s", descriptor.FullName())) } } @@ -25800,17 +26118,17 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Get(descriptor pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryForecasterNetworkRegretRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryIsReputerNonceUnfulfilledRequest.topic_id": + case "emissions.v2.QueryForecasterNetworkRegretRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryIsReputerNonceUnfulfilledRequest.block_height": - x.BlockHeight = value.Int() + case "emissions.v2.QueryForecasterNetworkRegretRequest.worker": + x.Worker = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerNonceUnfulfilledRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -25824,44 +26142,44 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Set(fd protorefle // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecasterNetworkRegretRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsReputerNonceUnfulfilledRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryIsReputerNonceUnfulfilledRequest is not mutable")) - case "emissions.v1.QueryIsReputerNonceUnfulfilledRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryIsReputerNonceUnfulfilledRequest is not mutable")) + case "emissions.v2.QueryForecasterNetworkRegretRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryForecasterNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryForecasterNetworkRegretRequest.worker": + panic(fmt.Errorf("field worker of message emissions.v2.QueryForecasterNetworkRegretRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerNonceUnfulfilledRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecasterNetworkRegretRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsReputerNonceUnfulfilledRequest.topic_id": + case "emissions.v2.QueryForecasterNetworkRegretRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryIsReputerNonceUnfulfilledRequest.block_height": - return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.QueryForecasterNetworkRegretRequest.worker": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerNonceUnfulfilledRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryForecasterNetworkRegretRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryIsReputerNonceUnfulfilledRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryForecasterNetworkRegretRequest", d.FullName())) } panic("unreachable") } @@ -25869,7 +26187,7 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) WhichOneof(d prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryForecasterNetworkRegretRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -25880,7 +26198,7 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) GetUnknown() prot // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryForecasterNetworkRegretRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -25892,7 +26210,7 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) IsValid() bool { +func (x *fastReflection_QueryForecasterNetworkRegretRequest) IsValid() bool { return x != nil } @@ -25902,9 +26220,9 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryForecasterNetworkRegretRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsReputerNonceUnfulfilledRequest) + x := input.Message.Interface().(*QueryForecasterNetworkRegretRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -25919,8 +26237,9 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) ProtoMethods() *p if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - if x.BlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeight)) + l = len(x.Worker) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -25932,7 +26251,7 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) ProtoMethods() *p } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsReputerNonceUnfulfilledRequest) + x := input.Message.Interface().(*QueryForecasterNetworkRegretRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -25951,10 +26270,12 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) ProtoMethods() *p i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.BlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + if len(x.Worker) > 0 { + i -= len(x.Worker) + copy(dAtA[i:], x.Worker) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Worker))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) @@ -25972,7 +26293,7 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) ProtoMethods() *p }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsReputerNonceUnfulfilledRequest) + x := input.Message.Interface().(*QueryForecasterNetworkRegretRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -26004,10 +26325,10 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) ProtoMethods() *p fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerNonceUnfulfilledRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecasterNetworkRegretRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerNonceUnfulfilledRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecasterNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -26030,10 +26351,10 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) ProtoMethods() *p } } case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) } - x.BlockHeight = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -26043,11 +26364,24 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) ProtoMethods() *p } b := dAtA[iNdEx] iNdEx++ - x.BlockHeight |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Worker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -26084,26 +26418,26 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) ProtoMethods() *p } var ( - md_QueryIsReputerNonceUnfulfilledResponse protoreflect.MessageDescriptor - fd_QueryIsReputerNonceUnfulfilledResponse_is_reputer_nonce_unfulfilled protoreflect.FieldDescriptor + md_QueryForecasterNetworkRegretResponse protoreflect.MessageDescriptor + fd_QueryForecasterNetworkRegretResponse_regret protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryIsReputerNonceUnfulfilledResponse = File_emissions_v1_query_proto.Messages().ByName("QueryIsReputerNonceUnfulfilledResponse") - fd_QueryIsReputerNonceUnfulfilledResponse_is_reputer_nonce_unfulfilled = md_QueryIsReputerNonceUnfulfilledResponse.Fields().ByName("is_reputer_nonce_unfulfilled") + file_emissions_v2_query_proto_init() + md_QueryForecasterNetworkRegretResponse = File_emissions_v2_query_proto.Messages().ByName("QueryForecasterNetworkRegretResponse") + fd_QueryForecasterNetworkRegretResponse_regret = md_QueryForecasterNetworkRegretResponse.Fields().ByName("regret") } -var _ protoreflect.Message = (*fastReflection_QueryIsReputerNonceUnfulfilledResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryForecasterNetworkRegretResponse)(nil) -type fastReflection_QueryIsReputerNonceUnfulfilledResponse QueryIsReputerNonceUnfulfilledResponse +type fastReflection_QueryForecasterNetworkRegretResponse QueryForecasterNetworkRegretResponse -func (x *QueryIsReputerNonceUnfulfilledResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsReputerNonceUnfulfilledResponse)(x) +func (x *QueryForecasterNetworkRegretResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryForecasterNetworkRegretResponse)(x) } -func (x *QueryIsReputerNonceUnfulfilledResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[59] +func (x *QueryForecasterNetworkRegretResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -26114,43 +26448,43 @@ func (x *QueryIsReputerNonceUnfulfilledResponse) slowProtoReflect() protoreflect return mi.MessageOf(x) } -var _fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType{} +var _fastReflection_QueryForecasterNetworkRegretResponse_messageType fastReflection_QueryForecasterNetworkRegretResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryForecasterNetworkRegretResponse_messageType{} -type fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType struct{} +type fastReflection_QueryForecasterNetworkRegretResponse_messageType struct{} -func (x fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsReputerNonceUnfulfilledResponse)(nil) +func (x fastReflection_QueryForecasterNetworkRegretResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryForecasterNetworkRegretResponse)(nil) } -func (x fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsReputerNonceUnfulfilledResponse) +func (x fastReflection_QueryForecasterNetworkRegretResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryForecasterNetworkRegretResponse) } -func (x fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsReputerNonceUnfulfilledResponse +func (x fastReflection_QueryForecasterNetworkRegretResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryForecasterNetworkRegretResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsReputerNonceUnfulfilledResponse +func (x *fastReflection_QueryForecasterNetworkRegretResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryForecasterNetworkRegretResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType +func (x *fastReflection_QueryForecasterNetworkRegretResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryForecasterNetworkRegretResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) New() protoreflect.Message { - return new(fastReflection_QueryIsReputerNonceUnfulfilledResponse) +func (x *fastReflection_QueryForecasterNetworkRegretResponse) New() protoreflect.Message { + return new(fastReflection_QueryForecasterNetworkRegretResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Interface() protoreflect.ProtoMessage { - return (*QueryIsReputerNonceUnfulfilledResponse)(x) +func (x *fastReflection_QueryForecasterNetworkRegretResponse) Interface() protoreflect.ProtoMessage { + return (*QueryForecasterNetworkRegretResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -26158,10 +26492,10 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Interface() prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.IsReputerNonceUnfulfilled != false { - value := protoreflect.ValueOfBool(x.IsReputerNonceUnfulfilled) - if !f(fd_QueryIsReputerNonceUnfulfilledResponse_is_reputer_nonce_unfulfilled, value) { +func (x *fastReflection_QueryForecasterNetworkRegretResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Regret != nil { + value := protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) + if !f(fd_QueryForecasterNetworkRegretResponse_regret, value) { return } } @@ -26178,15 +26512,15 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Range(f func(pro // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryForecasterNetworkRegretResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryIsReputerNonceUnfulfilledResponse.is_reputer_nonce_unfulfilled": - return x.IsReputerNonceUnfulfilled != false + case "emissions.v2.QueryForecasterNetworkRegretResponse.regret": + return x.Regret != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerNonceUnfulfilledResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -26196,15 +26530,15 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Has(fd protorefl // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryForecasterNetworkRegretResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryIsReputerNonceUnfulfilledResponse.is_reputer_nonce_unfulfilled": - x.IsReputerNonceUnfulfilled = false + case "emissions.v2.QueryForecasterNetworkRegretResponse.regret": + x.Regret = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerNonceUnfulfilledResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -26214,16 +26548,16 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Clear(fd protore // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecasterNetworkRegretResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryIsReputerNonceUnfulfilledResponse.is_reputer_nonce_unfulfilled": - value := x.IsReputerNonceUnfulfilled - return protoreflect.ValueOfBool(value) + case "emissions.v2.QueryForecasterNetworkRegretResponse.regret": + value := x.Regret + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerNonceUnfulfilledResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerNonceUnfulfilledResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecasterNetworkRegretResponse does not contain field %s", descriptor.FullName())) } } @@ -26237,15 +26571,15 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Get(descriptor p // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryForecasterNetworkRegretResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryIsReputerNonceUnfulfilledResponse.is_reputer_nonce_unfulfilled": - x.IsReputerNonceUnfulfilled = value.Bool() + case "emissions.v2.QueryForecasterNetworkRegretResponse.regret": + x.Regret = value.Message().Interface().(*TimestampedValue) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerNonceUnfulfilledResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } @@ -26259,40 +26593,44 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Set(fd protorefl // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecasterNetworkRegretResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsReputerNonceUnfulfilledResponse.is_reputer_nonce_unfulfilled": - panic(fmt.Errorf("field is_reputer_nonce_unfulfilled of message emissions.v1.QueryIsReputerNonceUnfulfilledResponse is not mutable")) + case "emissions.v2.QueryForecasterNetworkRegretResponse.regret": + if x.Regret == nil { + x.Regret = new(TimestampedValue) + } + return protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerNonceUnfulfilledResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecasterNetworkRegretResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsReputerNonceUnfulfilledResponse.is_reputer_nonce_unfulfilled": - return protoreflect.ValueOfBool(false) + case "emissions.v2.QueryForecasterNetworkRegretResponse.regret": + m := new(TimestampedValue) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerNonceUnfulfilledResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecasterNetworkRegretResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryForecasterNetworkRegretResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryIsReputerNonceUnfulfilledResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryForecasterNetworkRegretResponse", d.FullName())) } panic("unreachable") } @@ -26300,7 +26638,7 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) WhichOneof(d pro // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryForecasterNetworkRegretResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -26311,7 +26649,7 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) GetUnknown() pro // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryForecasterNetworkRegretResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -26323,7 +26661,7 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) SetUnknown(field // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) IsValid() bool { +func (x *fastReflection_QueryForecasterNetworkRegretResponse) IsValid() bool { return x != nil } @@ -26333,9 +26671,9 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryForecasterNetworkRegretResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsReputerNonceUnfulfilledResponse) + x := input.Message.Interface().(*QueryForecasterNetworkRegretResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -26347,8 +26685,9 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) ProtoMethods() * var n int var l int _ = l - if x.IsReputerNonceUnfulfilled { - n += 2 + if x.Regret != nil { + l = options.Size(x.Regret) + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -26360,7 +26699,7 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) ProtoMethods() * } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsReputerNonceUnfulfilledResponse) + x := input.Message.Interface().(*QueryForecasterNetworkRegretResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -26379,15 +26718,19 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) ProtoMethods() * i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.IsReputerNonceUnfulfilled { - i-- - if x.IsReputerNonceUnfulfilled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if x.Regret != nil { + encoded, err := options.Marshal(x.Regret) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -26400,7 +26743,7 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) ProtoMethods() * }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsReputerNonceUnfulfilledResponse) + x := input.Message.Interface().(*QueryForecasterNetworkRegretResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -26432,17 +26775,17 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) ProtoMethods() * fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerNonceUnfulfilledResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecasterNetworkRegretResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerNonceUnfulfilledResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecasterNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsReputerNonceUnfulfilled", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -26452,12 +26795,28 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) ProtoMethods() * } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - x.IsReputerNonceUnfulfilled = bool(v != 0) + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Regret == nil { + x.Regret = &TimestampedValue{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Regret); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -26494,26 +26853,30 @@ func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) ProtoMethods() * } var ( - md_QueryNetworkInferencesAtBlockResponse protoreflect.MessageDescriptor - fd_QueryNetworkInferencesAtBlockResponse_network_inferences protoreflect.FieldDescriptor + md_QueryOneInForecasterNetworkRegretRequest protoreflect.MessageDescriptor + fd_QueryOneInForecasterNetworkRegretRequest_topic_id protoreflect.FieldDescriptor + fd_QueryOneInForecasterNetworkRegretRequest_forecaster protoreflect.FieldDescriptor + fd_QueryOneInForecasterNetworkRegretRequest_inferer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryNetworkInferencesAtBlockResponse = File_emissions_v1_query_proto.Messages().ByName("QueryNetworkInferencesAtBlockResponse") - fd_QueryNetworkInferencesAtBlockResponse_network_inferences = md_QueryNetworkInferencesAtBlockResponse.Fields().ByName("network_inferences") + file_emissions_v2_query_proto_init() + md_QueryOneInForecasterNetworkRegretRequest = File_emissions_v2_query_proto.Messages().ByName("QueryOneInForecasterNetworkRegretRequest") + fd_QueryOneInForecasterNetworkRegretRequest_topic_id = md_QueryOneInForecasterNetworkRegretRequest.Fields().ByName("topic_id") + fd_QueryOneInForecasterNetworkRegretRequest_forecaster = md_QueryOneInForecasterNetworkRegretRequest.Fields().ByName("forecaster") + fd_QueryOneInForecasterNetworkRegretRequest_inferer = md_QueryOneInForecasterNetworkRegretRequest.Fields().ByName("inferer") } -var _ protoreflect.Message = (*fastReflection_QueryNetworkInferencesAtBlockResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryOneInForecasterNetworkRegretRequest)(nil) -type fastReflection_QueryNetworkInferencesAtBlockResponse QueryNetworkInferencesAtBlockResponse +type fastReflection_QueryOneInForecasterNetworkRegretRequest QueryOneInForecasterNetworkRegretRequest -func (x *QueryNetworkInferencesAtBlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryNetworkInferencesAtBlockResponse)(x) +func (x *QueryOneInForecasterNetworkRegretRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryOneInForecasterNetworkRegretRequest)(x) } -func (x *QueryNetworkInferencesAtBlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[60] +func (x *QueryOneInForecasterNetworkRegretRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -26524,43 +26887,43 @@ func (x *QueryNetworkInferencesAtBlockResponse) slowProtoReflect() protoreflect. return mi.MessageOf(x) } -var _fastReflection_QueryNetworkInferencesAtBlockResponse_messageType fastReflection_QueryNetworkInferencesAtBlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryNetworkInferencesAtBlockResponse_messageType{} +var _fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType{} -type fastReflection_QueryNetworkInferencesAtBlockResponse_messageType struct{} +type fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType struct{} -func (x fastReflection_QueryNetworkInferencesAtBlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryNetworkInferencesAtBlockResponse)(nil) +func (x fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryOneInForecasterNetworkRegretRequest)(nil) } -func (x fastReflection_QueryNetworkInferencesAtBlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryNetworkInferencesAtBlockResponse) +func (x fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryOneInForecasterNetworkRegretRequest) } -func (x fastReflection_QueryNetworkInferencesAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNetworkInferencesAtBlockResponse +func (x fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneInForecasterNetworkRegretRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryNetworkInferencesAtBlockResponse +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneInForecasterNetworkRegretRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryNetworkInferencesAtBlockResponse_messageType +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryOneInForecasterNetworkRegretRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) New() protoreflect.Message { - return new(fastReflection_QueryNetworkInferencesAtBlockResponse) +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) New() protoreflect.Message { + return new(fastReflection_QueryOneInForecasterNetworkRegretRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Interface() protoreflect.ProtoMessage { - return (*QueryNetworkInferencesAtBlockResponse)(x) +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Interface() protoreflect.ProtoMessage { + return (*QueryOneInForecasterNetworkRegretRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -26568,10 +26931,22 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Interface() proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.NetworkInferences != nil { - value := protoreflect.ValueOfMessage(x.NetworkInferences.ProtoReflect()) - if !f(fd_QueryNetworkInferencesAtBlockResponse_network_inferences, value) { +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryOneInForecasterNetworkRegretRequest_topic_id, value) { + return + } + } + if x.Forecaster != "" { + value := protoreflect.ValueOfString(x.Forecaster) + if !f(fd_QueryOneInForecasterNetworkRegretRequest_forecaster, value) { + return + } + } + if x.Inferer != "" { + value := protoreflect.ValueOfString(x.Inferer) + if !f(fd_QueryOneInForecasterNetworkRegretRequest_inferer, value) { return } } @@ -26588,15 +26963,19 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Range(f func(prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryNetworkInferencesAtBlockResponse.network_inferences": - return x.NetworkInferences != nil + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.topic_id": + return x.TopicId != uint64(0) + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.forecaster": + return x.Forecaster != "" + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.inferer": + return x.Inferer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkInferencesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneInForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkInferencesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneInForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -26606,15 +26985,19 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Has(fd protorefle // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryNetworkInferencesAtBlockResponse.network_inferences": - x.NetworkInferences = nil + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.topic_id": + x.TopicId = uint64(0) + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.forecaster": + x.Forecaster = "" + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.inferer": + x.Inferer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkInferencesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneInForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkInferencesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneInForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -26624,16 +27007,22 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Clear(fd protoref // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryNetworkInferencesAtBlockResponse.network_inferences": - value := x.NetworkInferences - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.forecaster": + value := x.Forecaster + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.inferer": + value := x.Inferer + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkInferencesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneInForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkInferencesAtBlockResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneInForecasterNetworkRegretRequest does not contain field %s", descriptor.FullName())) } } @@ -26647,15 +27036,19 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Get(descriptor pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryNetworkInferencesAtBlockResponse.network_inferences": - x.NetworkInferences = value.Message().Interface().(*ValueBundle) + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.topic_id": + x.TopicId = value.Uint() + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.forecaster": + x.Forecaster = value.Interface().(string) + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.inferer": + x.Inferer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkInferencesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneInForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkInferencesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneInForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } @@ -26669,44 +27062,48 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Set(fd protorefle // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryNetworkInferencesAtBlockResponse.network_inferences": - if x.NetworkInferences == nil { - x.NetworkInferences = new(ValueBundle) - } - return protoreflect.ValueOfMessage(x.NetworkInferences.ProtoReflect()) + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryOneInForecasterNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.forecaster": + panic(fmt.Errorf("field forecaster of message emissions.v2.QueryOneInForecasterNetworkRegretRequest is not mutable")) + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.inferer": + panic(fmt.Errorf("field inferer of message emissions.v2.QueryOneInForecasterNetworkRegretRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkInferencesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneInForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkInferencesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneInForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryNetworkInferencesAtBlockResponse.network_inferences": - m := new(ValueBundle) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.forecaster": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryOneInForecasterNetworkRegretRequest.inferer": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryNetworkInferencesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneInForecasterNetworkRegretRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryNetworkInferencesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryOneInForecasterNetworkRegretRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryNetworkInferencesAtBlockResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryOneInForecasterNetworkRegretRequest", d.FullName())) } panic("unreachable") } @@ -26714,7 +27111,7 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) WhichOneof(d prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -26725,7 +27122,7 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) GetUnknown() prot // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -26737,7 +27134,7 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) IsValid() bool { +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) IsValid() bool { return x != nil } @@ -26747,9 +27144,9 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryOneInForecasterNetworkRegretRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryNetworkInferencesAtBlockResponse) + x := input.Message.Interface().(*QueryOneInForecasterNetworkRegretRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -26761,8 +27158,15 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) ProtoMethods() *p var n int var l int _ = l - if x.NetworkInferences != nil { - l = options.Size(x.NetworkInferences) + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.Forecaster) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Inferer) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -26775,7 +27179,7 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) ProtoMethods() *p } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryNetworkInferencesAtBlockResponse) + x := input.Message.Interface().(*QueryOneInForecasterNetworkRegretRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -26794,19 +27198,24 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) ProtoMethods() *p i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.NetworkInferences != nil { - encoded, err := options.Marshal(x.NetworkInferences) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.Inferer) > 0 { + i -= len(x.Inferer) + copy(dAtA[i:], x.Inferer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Inferer))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x1a + } + if len(x.Forecaster) > 0 { + i -= len(x.Forecaster) + copy(dAtA[i:], x.Forecaster) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Forecaster))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -26819,7 +27228,7 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) ProtoMethods() *p }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryNetworkInferencesAtBlockResponse) + x := input.Message.Interface().(*QueryOneInForecasterNetworkRegretRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -26851,17 +27260,36 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) ProtoMethods() *p fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkInferencesAtBlockResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneInForecasterNetworkRegretRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkInferencesAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneInForecasterNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkInferences", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -26871,27 +27299,55 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) ProtoMethods() *p } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.NetworkInferences == nil { - x.NetworkInferences = &ValueBundle{} + x.Forecaster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NetworkInferences); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } + x.Inferer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -26928,1438 +27384,228 @@ func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) ProtoMethods() *p } } -var _ protoreflect.List = (*_QueryLatestNetworkInferencesResponse_2_list)(nil) +var ( + md_QueryOneInForecasterNetworkRegretResponse protoreflect.MessageDescriptor + fd_QueryOneInForecasterNetworkRegretResponse_regret protoreflect.FieldDescriptor +) -type _QueryLatestNetworkInferencesResponse_2_list struct { - list *[]*RegretInformedWeight +func init() { + file_emissions_v2_query_proto_init() + md_QueryOneInForecasterNetworkRegretResponse = File_emissions_v2_query_proto.Messages().ByName("QueryOneInForecasterNetworkRegretResponse") + fd_QueryOneInForecasterNetworkRegretResponse_regret = md_QueryOneInForecasterNetworkRegretResponse.Fields().ByName("regret") } -func (x *_QueryLatestNetworkInferencesResponse_2_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} +var _ protoreflect.Message = (*fastReflection_QueryOneInForecasterNetworkRegretResponse)(nil) -func (x *_QueryLatestNetworkInferencesResponse_2_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} +type fastReflection_QueryOneInForecasterNetworkRegretResponse QueryOneInForecasterNetworkRegretResponse -func (x *_QueryLatestNetworkInferencesResponse_2_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*RegretInformedWeight) - (*x.list)[i] = concreteValue +func (x *QueryOneInForecasterNetworkRegretResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryOneInForecasterNetworkRegretResponse)(x) } -func (x *_QueryLatestNetworkInferencesResponse_2_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*RegretInformedWeight) - *x.list = append(*x.list, concreteValue) +func (x *QueryOneInForecasterNetworkRegretResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[61] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) } -func (x *_QueryLatestNetworkInferencesResponse_2_list) AppendMutable() protoreflect.Value { - v := new(RegretInformedWeight) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} +var _fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType{} -func (x *_QueryLatestNetworkInferencesResponse_2_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} +type fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType struct{} -func (x *_QueryLatestNetworkInferencesResponse_2_list) NewElement() protoreflect.Value { - v := new(RegretInformedWeight) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +func (x fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryOneInForecasterNetworkRegretResponse)(nil) } - -func (x *_QueryLatestNetworkInferencesResponse_2_list) IsValid() bool { - return x.list != nil +func (x fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryOneInForecasterNetworkRegretResponse) } - -var _ protoreflect.List = (*_QueryLatestNetworkInferencesResponse_3_list)(nil) - -type _QueryLatestNetworkInferencesResponse_3_list struct { - list *[]*RegretInformedWeight +func (x fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneInForecasterNetworkRegretResponse } -func (x *_QueryLatestNetworkInferencesResponse_3_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryOneInForecasterNetworkRegretResponse } -func (x *_QueryLatestNetworkInferencesResponse_3_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryOneInForecasterNetworkRegretResponse_messageType } -func (x *_QueryLatestNetworkInferencesResponse_3_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*RegretInformedWeight) - (*x.list)[i] = concreteValue +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) New() protoreflect.Message { + return new(fastReflection_QueryOneInForecasterNetworkRegretResponse) } -func (x *_QueryLatestNetworkInferencesResponse_3_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*RegretInformedWeight) - *x.list = append(*x.list, concreteValue) +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Interface() protoreflect.ProtoMessage { + return (*QueryOneInForecasterNetworkRegretResponse)(x) } -func (x *_QueryLatestNetworkInferencesResponse_3_list) AppendMutable() protoreflect.Value { - v := new(RegretInformedWeight) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Regret != nil { + value := protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) + if !f(fd_QueryOneInForecasterNetworkRegretResponse_regret, value) { + return + } + } } -func (x *_QueryLatestNetworkInferencesResponse_3_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.QueryOneInForecasterNetworkRegretResponse.regret": + return x.Regret != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneInForecasterNetworkRegretResponse")) + } + panic(fmt.Errorf("message emissions.v2.QueryOneInForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } - *x.list = (*x.list)[:n] } -func (x *_QueryLatestNetworkInferencesResponse_3_list) NewElement() protoreflect.Value { - v := new(RegretInformedWeight) - return protoreflect.ValueOfMessage(v.ProtoReflect()) +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.QueryOneInForecasterNetworkRegretResponse.regret": + x.Regret = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneInForecasterNetworkRegretResponse")) + } + panic(fmt.Errorf("message emissions.v2.QueryOneInForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) + } } -func (x *_QueryLatestNetworkInferencesResponse_3_list) IsValid() bool { - return x.list != nil +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.QueryOneInForecasterNetworkRegretResponse.regret": + value := x.Regret + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneInForecasterNetworkRegretResponse")) + } + panic(fmt.Errorf("message emissions.v2.QueryOneInForecasterNetworkRegretResponse does not contain field %s", descriptor.FullName())) + } } -var _ protoreflect.List = (*_QueryLatestNetworkInferencesResponse_4_list)(nil) - -type _QueryLatestNetworkInferencesResponse_4_list struct { - list *[]*WorkerAttributedValue +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.QueryOneInForecasterNetworkRegretResponse.regret": + x.Regret = value.Message().Interface().(*TimestampedValue) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneInForecasterNetworkRegretResponse")) + } + panic(fmt.Errorf("message emissions.v2.QueryOneInForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) + } } -func (x *_QueryLatestNetworkInferencesResponse_4_list) Len() int { - if x.list == nil { - return 0 +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.QueryOneInForecasterNetworkRegretResponse.regret": + if x.Regret == nil { + x.Regret = new(TimestampedValue) + } + return protoreflect.ValueOfMessage(x.Regret.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneInForecasterNetworkRegretResponse")) + } + panic(fmt.Errorf("message emissions.v2.QueryOneInForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) } - return len(*x.list) } -func (x *_QueryLatestNetworkInferencesResponse_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.QueryOneInForecasterNetworkRegretResponse.regret": + m := new(TimestampedValue) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryOneInForecasterNetworkRegretResponse")) + } + panic(fmt.Errorf("message emissions.v2.QueryOneInForecasterNetworkRegretResponse does not contain field %s", fd.FullName())) + } } -func (x *_QueryLatestNetworkInferencesResponse_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*WorkerAttributedValue) - (*x.list)[i] = concreteValue -} - -func (x *_QueryLatestNetworkInferencesResponse_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*WorkerAttributedValue) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryLatestNetworkInferencesResponse_4_list) AppendMutable() protoreflect.Value { - v := new(WorkerAttributedValue) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryLatestNetworkInferencesResponse_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryLatestNetworkInferencesResponse_4_list) NewElement() protoreflect.Value { - v := new(WorkerAttributedValue) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryLatestNetworkInferencesResponse_4_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_QueryLatestNetworkInferencesResponse_7_list)(nil) - -type _QueryLatestNetworkInferencesResponse_7_list struct { - list *[]string -} - -func (x *_QueryLatestNetworkInferencesResponse_7_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryLatestNetworkInferencesResponse_7_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_QueryLatestNetworkInferencesResponse_7_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryLatestNetworkInferencesResponse_7_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryLatestNetworkInferencesResponse_7_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryLatestNetworkInferencesResponse at list field ConfidenceIntervalRawPercentiles as it is not of Message kind")) -} - -func (x *_QueryLatestNetworkInferencesResponse_7_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryLatestNetworkInferencesResponse_7_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_QueryLatestNetworkInferencesResponse_7_list) IsValid() bool { - return x.list != nil -} - -var _ protoreflect.List = (*_QueryLatestNetworkInferencesResponse_8_list)(nil) - -type _QueryLatestNetworkInferencesResponse_8_list struct { - list *[]string -} - -func (x *_QueryLatestNetworkInferencesResponse_8_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryLatestNetworkInferencesResponse_8_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfString((*x.list)[i]) -} - -func (x *_QueryLatestNetworkInferencesResponse_8_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryLatestNetworkInferencesResponse_8_list) Append(value protoreflect.Value) { - valueUnwrapped := value.String() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryLatestNetworkInferencesResponse_8_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryLatestNetworkInferencesResponse at list field ConfidenceIntervalValues as it is not of Message kind")) -} - -func (x *_QueryLatestNetworkInferencesResponse_8_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryLatestNetworkInferencesResponse_8_list) NewElement() protoreflect.Value { - v := "" - return protoreflect.ValueOfString(v) -} - -func (x *_QueryLatestNetworkInferencesResponse_8_list) IsValid() bool { - return x.list != nil -} - -var ( - md_QueryLatestNetworkInferencesResponse protoreflect.MessageDescriptor - fd_QueryLatestNetworkInferencesResponse_network_inferences protoreflect.FieldDescriptor - fd_QueryLatestNetworkInferencesResponse_inferer_weights protoreflect.FieldDescriptor - fd_QueryLatestNetworkInferencesResponse_forecaster_weights protoreflect.FieldDescriptor - fd_QueryLatestNetworkInferencesResponse_forecastImpliedInferences protoreflect.FieldDescriptor - fd_QueryLatestNetworkInferencesResponse_inference_block_height protoreflect.FieldDescriptor - fd_QueryLatestNetworkInferencesResponse_loss_block_height protoreflect.FieldDescriptor - fd_QueryLatestNetworkInferencesResponse_confidence_interval_raw_percentiles protoreflect.FieldDescriptor - fd_QueryLatestNetworkInferencesResponse_confidence_interval_values protoreflect.FieldDescriptor -) - -func init() { - file_emissions_v1_query_proto_init() - md_QueryLatestNetworkInferencesResponse = File_emissions_v1_query_proto.Messages().ByName("QueryLatestNetworkInferencesResponse") - fd_QueryLatestNetworkInferencesResponse_network_inferences = md_QueryLatestNetworkInferencesResponse.Fields().ByName("network_inferences") - fd_QueryLatestNetworkInferencesResponse_inferer_weights = md_QueryLatestNetworkInferencesResponse.Fields().ByName("inferer_weights") - fd_QueryLatestNetworkInferencesResponse_forecaster_weights = md_QueryLatestNetworkInferencesResponse.Fields().ByName("forecaster_weights") - fd_QueryLatestNetworkInferencesResponse_forecastImpliedInferences = md_QueryLatestNetworkInferencesResponse.Fields().ByName("forecastImpliedInferences") - fd_QueryLatestNetworkInferencesResponse_inference_block_height = md_QueryLatestNetworkInferencesResponse.Fields().ByName("inference_block_height") - fd_QueryLatestNetworkInferencesResponse_loss_block_height = md_QueryLatestNetworkInferencesResponse.Fields().ByName("loss_block_height") - fd_QueryLatestNetworkInferencesResponse_confidence_interval_raw_percentiles = md_QueryLatestNetworkInferencesResponse.Fields().ByName("confidence_interval_raw_percentiles") - fd_QueryLatestNetworkInferencesResponse_confidence_interval_values = md_QueryLatestNetworkInferencesResponse.Fields().ByName("confidence_interval_values") -} - -var _ protoreflect.Message = (*fastReflection_QueryLatestNetworkInferencesResponse)(nil) - -type fastReflection_QueryLatestNetworkInferencesResponse QueryLatestNetworkInferencesResponse - -func (x *QueryLatestNetworkInferencesResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryLatestNetworkInferencesResponse)(x) -} - -func (x *QueryLatestNetworkInferencesResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryLatestNetworkInferencesResponse_messageType fastReflection_QueryLatestNetworkInferencesResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryLatestNetworkInferencesResponse_messageType{} - -type fastReflection_QueryLatestNetworkInferencesResponse_messageType struct{} - -func (x fastReflection_QueryLatestNetworkInferencesResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryLatestNetworkInferencesResponse)(nil) -} -func (x fastReflection_QueryLatestNetworkInferencesResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryLatestNetworkInferencesResponse) -} -func (x fastReflection_QueryLatestNetworkInferencesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestNetworkInferencesResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestNetworkInferencesResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryLatestNetworkInferencesResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) New() protoreflect.Message { - return new(fastReflection_QueryLatestNetworkInferencesResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) Interface() protoreflect.ProtoMessage { - return (*QueryLatestNetworkInferencesResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.NetworkInferences != nil { - value := protoreflect.ValueOfMessage(x.NetworkInferences.ProtoReflect()) - if !f(fd_QueryLatestNetworkInferencesResponse_network_inferences, value) { - return - } - } - if len(x.InfererWeights) != 0 { - value := protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_2_list{list: &x.InfererWeights}) - if !f(fd_QueryLatestNetworkInferencesResponse_inferer_weights, value) { - return - } - } - if len(x.ForecasterWeights) != 0 { - value := protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_3_list{list: &x.ForecasterWeights}) - if !f(fd_QueryLatestNetworkInferencesResponse_forecaster_weights, value) { - return - } - } - if len(x.ForecastImpliedInferences) != 0 { - value := protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_4_list{list: &x.ForecastImpliedInferences}) - if !f(fd_QueryLatestNetworkInferencesResponse_forecastImpliedInferences, value) { - return - } - } - if x.InferenceBlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.InferenceBlockHeight) - if !f(fd_QueryLatestNetworkInferencesResponse_inference_block_height, value) { - return - } - } - if x.LossBlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.LossBlockHeight) - if !f(fd_QueryLatestNetworkInferencesResponse_loss_block_height, value) { - return - } - } - if len(x.ConfidenceIntervalRawPercentiles) != 0 { - value := protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_7_list{list: &x.ConfidenceIntervalRawPercentiles}) - if !f(fd_QueryLatestNetworkInferencesResponse_confidence_interval_raw_percentiles, value) { - return - } - } - if len(x.ConfidenceIntervalValues) != 0 { - value := protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_8_list{list: &x.ConfidenceIntervalValues}) - if !f(fd_QueryLatestNetworkInferencesResponse_confidence_interval_values, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "emissions.v1.QueryLatestNetworkInferencesResponse.network_inferences": - return x.NetworkInferences != nil - case "emissions.v1.QueryLatestNetworkInferencesResponse.inferer_weights": - return len(x.InfererWeights) != 0 - case "emissions.v1.QueryLatestNetworkInferencesResponse.forecaster_weights": - return len(x.ForecasterWeights) != 0 - case "emissions.v1.QueryLatestNetworkInferencesResponse.forecastImpliedInferences": - return len(x.ForecastImpliedInferences) != 0 - case "emissions.v1.QueryLatestNetworkInferencesResponse.inference_block_height": - return x.InferenceBlockHeight != int64(0) - case "emissions.v1.QueryLatestNetworkInferencesResponse.loss_block_height": - return x.LossBlockHeight != int64(0) - case "emissions.v1.QueryLatestNetworkInferencesResponse.confidence_interval_raw_percentiles": - return len(x.ConfidenceIntervalRawPercentiles) != 0 - case "emissions.v1.QueryLatestNetworkInferencesResponse.confidence_interval_values": - return len(x.ConfidenceIntervalValues) != 0 - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestNetworkInferencesResponse")) - } - panic(fmt.Errorf("message emissions.v1.QueryLatestNetworkInferencesResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "emissions.v1.QueryLatestNetworkInferencesResponse.network_inferences": - x.NetworkInferences = nil - case "emissions.v1.QueryLatestNetworkInferencesResponse.inferer_weights": - x.InfererWeights = nil - case "emissions.v1.QueryLatestNetworkInferencesResponse.forecaster_weights": - x.ForecasterWeights = nil - case "emissions.v1.QueryLatestNetworkInferencesResponse.forecastImpliedInferences": - x.ForecastImpliedInferences = nil - case "emissions.v1.QueryLatestNetworkInferencesResponse.inference_block_height": - x.InferenceBlockHeight = int64(0) - case "emissions.v1.QueryLatestNetworkInferencesResponse.loss_block_height": - x.LossBlockHeight = int64(0) - case "emissions.v1.QueryLatestNetworkInferencesResponse.confidence_interval_raw_percentiles": - x.ConfidenceIntervalRawPercentiles = nil - case "emissions.v1.QueryLatestNetworkInferencesResponse.confidence_interval_values": - x.ConfidenceIntervalValues = nil - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestNetworkInferencesResponse")) - } - panic(fmt.Errorf("message emissions.v1.QueryLatestNetworkInferencesResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "emissions.v1.QueryLatestNetworkInferencesResponse.network_inferences": - value := x.NetworkInferences - return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "emissions.v1.QueryLatestNetworkInferencesResponse.inferer_weights": - if len(x.InfererWeights) == 0 { - return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_2_list{}) - } - listValue := &_QueryLatestNetworkInferencesResponse_2_list{list: &x.InfererWeights} - return protoreflect.ValueOfList(listValue) - case "emissions.v1.QueryLatestNetworkInferencesResponse.forecaster_weights": - if len(x.ForecasterWeights) == 0 { - return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_3_list{}) - } - listValue := &_QueryLatestNetworkInferencesResponse_3_list{list: &x.ForecasterWeights} - return protoreflect.ValueOfList(listValue) - case "emissions.v1.QueryLatestNetworkInferencesResponse.forecastImpliedInferences": - if len(x.ForecastImpliedInferences) == 0 { - return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_4_list{}) - } - listValue := &_QueryLatestNetworkInferencesResponse_4_list{list: &x.ForecastImpliedInferences} - return protoreflect.ValueOfList(listValue) - case "emissions.v1.QueryLatestNetworkInferencesResponse.inference_block_height": - value := x.InferenceBlockHeight - return protoreflect.ValueOfInt64(value) - case "emissions.v1.QueryLatestNetworkInferencesResponse.loss_block_height": - value := x.LossBlockHeight - return protoreflect.ValueOfInt64(value) - case "emissions.v1.QueryLatestNetworkInferencesResponse.confidence_interval_raw_percentiles": - if len(x.ConfidenceIntervalRawPercentiles) == 0 { - return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_7_list{}) - } - listValue := &_QueryLatestNetworkInferencesResponse_7_list{list: &x.ConfidenceIntervalRawPercentiles} - return protoreflect.ValueOfList(listValue) - case "emissions.v1.QueryLatestNetworkInferencesResponse.confidence_interval_values": - if len(x.ConfidenceIntervalValues) == 0 { - return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_8_list{}) - } - listValue := &_QueryLatestNetworkInferencesResponse_8_list{list: &x.ConfidenceIntervalValues} - return protoreflect.ValueOfList(listValue) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestNetworkInferencesResponse")) - } - panic(fmt.Errorf("message emissions.v1.QueryLatestNetworkInferencesResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "emissions.v1.QueryLatestNetworkInferencesResponse.network_inferences": - x.NetworkInferences = value.Message().Interface().(*ValueBundle) - case "emissions.v1.QueryLatestNetworkInferencesResponse.inferer_weights": - lv := value.List() - clv := lv.(*_QueryLatestNetworkInferencesResponse_2_list) - x.InfererWeights = *clv.list - case "emissions.v1.QueryLatestNetworkInferencesResponse.forecaster_weights": - lv := value.List() - clv := lv.(*_QueryLatestNetworkInferencesResponse_3_list) - x.ForecasterWeights = *clv.list - case "emissions.v1.QueryLatestNetworkInferencesResponse.forecastImpliedInferences": - lv := value.List() - clv := lv.(*_QueryLatestNetworkInferencesResponse_4_list) - x.ForecastImpliedInferences = *clv.list - case "emissions.v1.QueryLatestNetworkInferencesResponse.inference_block_height": - x.InferenceBlockHeight = value.Int() - case "emissions.v1.QueryLatestNetworkInferencesResponse.loss_block_height": - x.LossBlockHeight = value.Int() - case "emissions.v1.QueryLatestNetworkInferencesResponse.confidence_interval_raw_percentiles": - lv := value.List() - clv := lv.(*_QueryLatestNetworkInferencesResponse_7_list) - x.ConfidenceIntervalRawPercentiles = *clv.list - case "emissions.v1.QueryLatestNetworkInferencesResponse.confidence_interval_values": - lv := value.List() - clv := lv.(*_QueryLatestNetworkInferencesResponse_8_list) - x.ConfidenceIntervalValues = *clv.list - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestNetworkInferencesResponse")) - } - panic(fmt.Errorf("message emissions.v1.QueryLatestNetworkInferencesResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "emissions.v1.QueryLatestNetworkInferencesResponse.network_inferences": - if x.NetworkInferences == nil { - x.NetworkInferences = new(ValueBundle) - } - return protoreflect.ValueOfMessage(x.NetworkInferences.ProtoReflect()) - case "emissions.v1.QueryLatestNetworkInferencesResponse.inferer_weights": - if x.InfererWeights == nil { - x.InfererWeights = []*RegretInformedWeight{} - } - value := &_QueryLatestNetworkInferencesResponse_2_list{list: &x.InfererWeights} - return protoreflect.ValueOfList(value) - case "emissions.v1.QueryLatestNetworkInferencesResponse.forecaster_weights": - if x.ForecasterWeights == nil { - x.ForecasterWeights = []*RegretInformedWeight{} - } - value := &_QueryLatestNetworkInferencesResponse_3_list{list: &x.ForecasterWeights} - return protoreflect.ValueOfList(value) - case "emissions.v1.QueryLatestNetworkInferencesResponse.forecastImpliedInferences": - if x.ForecastImpliedInferences == nil { - x.ForecastImpliedInferences = []*WorkerAttributedValue{} - } - value := &_QueryLatestNetworkInferencesResponse_4_list{list: &x.ForecastImpliedInferences} - return protoreflect.ValueOfList(value) - case "emissions.v1.QueryLatestNetworkInferencesResponse.confidence_interval_raw_percentiles": - if x.ConfidenceIntervalRawPercentiles == nil { - x.ConfidenceIntervalRawPercentiles = []string{} - } - value := &_QueryLatestNetworkInferencesResponse_7_list{list: &x.ConfidenceIntervalRawPercentiles} - return protoreflect.ValueOfList(value) - case "emissions.v1.QueryLatestNetworkInferencesResponse.confidence_interval_values": - if x.ConfidenceIntervalValues == nil { - x.ConfidenceIntervalValues = []string{} - } - value := &_QueryLatestNetworkInferencesResponse_8_list{list: &x.ConfidenceIntervalValues} - return protoreflect.ValueOfList(value) - case "emissions.v1.QueryLatestNetworkInferencesResponse.inference_block_height": - panic(fmt.Errorf("field inference_block_height of message emissions.v1.QueryLatestNetworkInferencesResponse is not mutable")) - case "emissions.v1.QueryLatestNetworkInferencesResponse.loss_block_height": - panic(fmt.Errorf("field loss_block_height of message emissions.v1.QueryLatestNetworkInferencesResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestNetworkInferencesResponse")) - } - panic(fmt.Errorf("message emissions.v1.QueryLatestNetworkInferencesResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "emissions.v1.QueryLatestNetworkInferencesResponse.network_inferences": - m := new(ValueBundle) - return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "emissions.v1.QueryLatestNetworkInferencesResponse.inferer_weights": - list := []*RegretInformedWeight{} - return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_2_list{list: &list}) - case "emissions.v1.QueryLatestNetworkInferencesResponse.forecaster_weights": - list := []*RegretInformedWeight{} - return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_3_list{list: &list}) - case "emissions.v1.QueryLatestNetworkInferencesResponse.forecastImpliedInferences": - list := []*WorkerAttributedValue{} - return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_4_list{list: &list}) - case "emissions.v1.QueryLatestNetworkInferencesResponse.inference_block_height": - return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.QueryLatestNetworkInferencesResponse.loss_block_height": - return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.QueryLatestNetworkInferencesResponse.confidence_interval_raw_percentiles": - list := []string{} - return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_7_list{list: &list}) - case "emissions.v1.QueryLatestNetworkInferencesResponse.confidence_interval_values": - list := []string{} - return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_8_list{list: &list}) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestNetworkInferencesResponse")) - } - panic(fmt.Errorf("message emissions.v1.QueryLatestNetworkInferencesResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryLatestNetworkInferencesResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryLatestNetworkInferencesResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryLatestNetworkInferencesResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.NetworkInferences != nil { - l = options.Size(x.NetworkInferences) - n += 1 + l + runtime.Sov(uint64(l)) - } - if len(x.InfererWeights) > 0 { - for _, e := range x.InfererWeights { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.ForecasterWeights) > 0 { - for _, e := range x.ForecasterWeights { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.ForecastImpliedInferences) > 0 { - for _, e := range x.ForecastImpliedInferences { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.InferenceBlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.InferenceBlockHeight)) - } - if x.LossBlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.LossBlockHeight)) - } - if len(x.ConfidenceIntervalRawPercentiles) > 0 { - for _, s := range x.ConfidenceIntervalRawPercentiles { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if len(x.ConfidenceIntervalValues) > 0 { - for _, s := range x.ConfidenceIntervalValues { - l = len(s) - n += 1 + l + runtime.Sov(uint64(l)) - } - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestNetworkInferencesResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if len(x.ConfidenceIntervalValues) > 0 { - for iNdEx := len(x.ConfidenceIntervalValues) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.ConfidenceIntervalValues[iNdEx]) - copy(dAtA[i:], x.ConfidenceIntervalValues[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConfidenceIntervalValues[iNdEx]))) - i-- - dAtA[i] = 0x42 - } - } - if len(x.ConfidenceIntervalRawPercentiles) > 0 { - for iNdEx := len(x.ConfidenceIntervalRawPercentiles) - 1; iNdEx >= 0; iNdEx-- { - i -= len(x.ConfidenceIntervalRawPercentiles[iNdEx]) - copy(dAtA[i:], x.ConfidenceIntervalRawPercentiles[iNdEx]) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConfidenceIntervalRawPercentiles[iNdEx]))) - i-- - dAtA[i] = 0x3a - } - } - if x.LossBlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.LossBlockHeight)) - i-- - dAtA[i] = 0x30 - } - if x.InferenceBlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.InferenceBlockHeight)) - i-- - dAtA[i] = 0x28 - } - if len(x.ForecastImpliedInferences) > 0 { - for iNdEx := len(x.ForecastImpliedInferences) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.ForecastImpliedInferences[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if len(x.ForecasterWeights) > 0 { - for iNdEx := len(x.ForecasterWeights) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.ForecasterWeights[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x1a - } - } - if len(x.InfererWeights) > 0 { - for iNdEx := len(x.InfererWeights) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.InfererWeights[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x12 - } - } - if x.NetworkInferences != nil { - encoded, err := options.Marshal(x.NetworkInferences) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestNetworkInferencesResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestNetworkInferencesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestNetworkInferencesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkInferences", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.NetworkInferences == nil { - x.NetworkInferences = &ValueBundle{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NetworkInferences); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InfererWeights", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.InfererWeights = append(x.InfererWeights, &RegretInformedWeight{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.InfererWeights[len(x.InfererWeights)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ForecasterWeights", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ForecasterWeights = append(x.ForecasterWeights, &RegretInformedWeight{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ForecasterWeights[len(x.ForecasterWeights)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ForecastImpliedInferences", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ForecastImpliedInferences = append(x.ForecastImpliedInferences, &WorkerAttributedValue{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ForecastImpliedInferences[len(x.ForecastImpliedInferences)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 5: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InferenceBlockHeight", wireType) - } - x.InferenceBlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.InferenceBlockHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 6: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LossBlockHeight", wireType) - } - x.LossBlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.LossBlockHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 7: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ConfidenceIntervalRawPercentiles", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ConfidenceIntervalRawPercentiles = append(x.ConfidenceIntervalRawPercentiles, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - case 8: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ConfidenceIntervalValues", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.ConfidenceIntervalValues = append(x.ConfidenceIntervalValues, string(dAtA[iNdEx:postIndex])) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryIsWorkerRegisteredInTopicIdRequest protoreflect.MessageDescriptor - fd_QueryIsWorkerRegisteredInTopicIdRequest_topic_id protoreflect.FieldDescriptor - fd_QueryIsWorkerRegisteredInTopicIdRequest_address protoreflect.FieldDescriptor -) - -func init() { - file_emissions_v1_query_proto_init() - md_QueryIsWorkerRegisteredInTopicIdRequest = File_emissions_v1_query_proto.Messages().ByName("QueryIsWorkerRegisteredInTopicIdRequest") - fd_QueryIsWorkerRegisteredInTopicIdRequest_topic_id = md_QueryIsWorkerRegisteredInTopicIdRequest.Fields().ByName("topic_id") - fd_QueryIsWorkerRegisteredInTopicIdRequest_address = md_QueryIsWorkerRegisteredInTopicIdRequest.Fields().ByName("address") -} - -var _ protoreflect.Message = (*fastReflection_QueryIsWorkerRegisteredInTopicIdRequest)(nil) - -type fastReflection_QueryIsWorkerRegisteredInTopicIdRequest QueryIsWorkerRegisteredInTopicIdRequest - -func (x *QueryIsWorkerRegisteredInTopicIdRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsWorkerRegisteredInTopicIdRequest)(x) -} - -func (x *QueryIsWorkerRegisteredInTopicIdRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType{} - -type fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType struct{} - -func (x fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsWorkerRegisteredInTopicIdRequest)(nil) -} -func (x fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) -} -func (x fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsWorkerRegisteredInTopicIdRequest -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsWorkerRegisteredInTopicIdRequest -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) New() protoreflect.Message { - return new(fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Interface() protoreflect.ProtoMessage { - return (*QueryIsWorkerRegisteredInTopicIdRequest)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryIsWorkerRegisteredInTopicIdRequest_topic_id, value) { - return - } - } - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryIsWorkerRegisteredInTopicIdRequest_address, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest.topic_id": - return x.TopicId != uint64(0) - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest.address": - return x.Address != "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest")) - } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest.topic_id": - x.TopicId = uint64(0) - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest.address": - x.Address = "" - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest")) - } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest.address": - value := x.Address - return protoreflect.ValueOfString(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest")) - } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest.topic_id": - x.TopicId = value.Uint() - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest.address": - x.Address = value.Interface().(string) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest")) - } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest is not mutable")) - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest.address": - panic(fmt.Errorf("field address of message emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest")) - } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest.address": - return protoreflect.ValueOfString("") - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest")) - } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest", d.FullName())) - } - panic("unreachable") +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryOneInForecasterNetworkRegretResponse", d.FullName())) + } + panic("unreachable") } // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -28370,7 +27616,7 @@ func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) GetUnknown() pr // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -28382,7 +27628,7 @@ func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) SetUnknown(fiel // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) IsValid() bool { +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) IsValid() bool { return x != nil } @@ -28392,9 +27638,9 @@ func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) IsValid() bool // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryOneInForecasterNetworkRegretResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsWorkerRegisteredInTopicIdRequest) + x := input.Message.Interface().(*QueryOneInForecasterNetworkRegretResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -28406,11 +27652,8 @@ func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) ProtoMethods() var n int var l int _ = l - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) - } - l = len(x.Address) - if l > 0 { + if x.Regret != nil { + l = options.Size(x.Regret) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -28423,7 +27666,7 @@ func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) ProtoMethods() } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsWorkerRegisteredInTopicIdRequest) + x := input.Message.Interface().(*QueryOneInForecasterNetworkRegretResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -28442,17 +27685,19 @@ func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) ProtoMethods() i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) - i-- - dAtA[i] = 0x12 - } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + if x.Regret != nil { + encoded, err := options.Marshal(x.Regret) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -28465,7 +27710,7 @@ func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) ProtoMethods() }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsWorkerRegisteredInTopicIdRequest) + x := input.Message.Interface().(*QueryOneInForecasterNetworkRegretResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -28497,36 +27742,17 @@ func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) ProtoMethods() fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerRegisteredInTopicIdRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneInForecasterNetworkRegretResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerRegisteredInTopicIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryOneInForecasterNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - x.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -28536,434 +27762,28 @@ func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) ProtoMethods() } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_QueryIsWorkerRegisteredInTopicIdResponse protoreflect.MessageDescriptor - fd_QueryIsWorkerRegisteredInTopicIdResponse_is_registered protoreflect.FieldDescriptor -) - -func init() { - file_emissions_v1_query_proto_init() - md_QueryIsWorkerRegisteredInTopicIdResponse = File_emissions_v1_query_proto.Messages().ByName("QueryIsWorkerRegisteredInTopicIdResponse") - fd_QueryIsWorkerRegisteredInTopicIdResponse_is_registered = md_QueryIsWorkerRegisteredInTopicIdResponse.Fields().ByName("is_registered") -} - -var _ protoreflect.Message = (*fastReflection_QueryIsWorkerRegisteredInTopicIdResponse)(nil) - -type fastReflection_QueryIsWorkerRegisteredInTopicIdResponse QueryIsWorkerRegisteredInTopicIdResponse - -func (x *QueryIsWorkerRegisteredInTopicIdResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsWorkerRegisteredInTopicIdResponse)(x) -} - -func (x *QueryIsWorkerRegisteredInTopicIdResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -var _fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType{} - -type fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType struct{} - -func (x fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsWorkerRegisteredInTopicIdResponse)(nil) -} -func (x fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) -} -func (x fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsWorkerRegisteredInTopicIdResponse -} - -// Descriptor returns message descriptor, which contains only the protobuf -// type information for the message. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsWorkerRegisteredInTopicIdResponse -} - -// Type returns the message type, which encapsulates both Go and protobuf -// type information. If the Go type information is not needed, -// it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType -} - -// New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) New() protoreflect.Message { - return new(fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) -} - -// Interface unwraps the message reflection interface and -// returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Interface() protoreflect.ProtoMessage { - return (*QueryIsWorkerRegisteredInTopicIdResponse)(x) -} - -// Range iterates over every populated field in an undefined order, -// calling f for each field descriptor and value encountered. -// Range returns immediately if f returns false. -// While iterating, mutating operations may only be performed -// on the current field descriptor. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.IsRegistered != false { - value := protoreflect.ValueOfBool(x.IsRegistered) - if !f(fd_QueryIsWorkerRegisteredInTopicIdResponse_is_registered, value) { - return - } - } -} - -// Has reports whether a field is populated. -// -// Some fields have the property of nullability where it is possible to -// distinguish between the default value of a field and whether the field -// was explicitly populated with the default value. Singular message fields, -// member fields of a oneof, and proto2 scalar fields are nullable. Such -// fields are populated only if explicitly set. -// -// In other cases (aside from the nullable cases above), -// a proto3 scalar field is populated if it contains a non-zero value, and -// a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Has(fd protoreflect.FieldDescriptor) bool { - switch fd.FullName() { - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse.is_registered": - return x.IsRegistered != false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse")) - } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) - } -} - -// Clear clears the field such that a subsequent Has call reports false. -// -// Clearing an extension field clears both the extension type and value -// associated with the given field number. -// -// Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Clear(fd protoreflect.FieldDescriptor) { - switch fd.FullName() { - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse.is_registered": - x.IsRegistered = false - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse")) - } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) - } -} - -// Get retrieves the value for a field. -// -// For unpopulated scalars, it returns the default value, where -// the default value of a bytes scalar is guaranteed to be a copy. -// For unpopulated composite types, it returns an empty, read-only view -// of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { - switch descriptor.FullName() { - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse.is_registered": - value := x.IsRegistered - return protoreflect.ValueOfBool(value) - default: - if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse")) - } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse does not contain field %s", descriptor.FullName())) - } -} - -// Set stores the value for a field. -// -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType. -// When setting a composite type, it is unspecified whether the stored value -// aliases the source's memory in any way. If the composite value is an -// empty, read-only value, then it panics. -// -// Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { - switch fd.FullName() { - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse.is_registered": - x.IsRegistered = value.Bool() - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse")) - } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) - } -} - -// Mutable returns a mutable reference to a composite type. -// -// If the field is unpopulated, it may allocate a composite value. -// For a field belonging to a oneof, it implicitly clears any other field -// that may be currently set within the same oneof. -// For extension fields, it implicitly stores the provided ExtensionType -// if not already stored. -// It panics if the field does not contain a composite type. -// -// Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse.is_registered": - panic(fmt.Errorf("field is_registered of message emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse is not mutable")) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse")) - } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) - } -} - -// NewField returns a new value that is assignable to the field -// for the given descriptor. For scalars, this returns the default value. -// For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { - switch fd.FullName() { - case "emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse.is_registered": - return protoreflect.ValueOfBool(false) - default: - if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse")) - } - panic(fmt.Errorf("message emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) - } -} - -// WhichOneof reports which field within the oneof is populated, -// returning nil if none are populated. -// It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { - switch d.FullName() { - default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse", d.FullName())) - } - panic("unreachable") -} - -// GetUnknown retrieves the entire list of unknown fields. -// The caller may only mutate the contents of the RawFields -// if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) GetUnknown() protoreflect.RawFields { - return x.unknownFields -} - -// SetUnknown stores an entire list of unknown fields. -// The raw fields must be syntactically valid according to the wire format. -// An implementation may panic if this is not the case. -// Once stored, the caller must not mutate the content of the RawFields. -// An empty RawFields may be passed to clear the fields. -// -// SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) SetUnknown(fields protoreflect.RawFields) { - x.unknownFields = fields -} - -// IsValid reports whether the message is valid. -// -// An invalid message is an empty, read-only value. -// -// An invalid message often corresponds to a nil pointer of the concrete -// message type, but the details are implementation dependent. -// Validity is not part of the protobuf data model, and may not -// be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) IsValid() bool { - return x != nil -} - -// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. -// This method may return nil. -// -// The returned methods type is identical to -// "google.golang.org/protobuf/runtime/protoiface".Methods. -// Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) ProtoMethods() *protoiface.Methods { - size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsWorkerRegisteredInTopicIdResponse) - if x == nil { - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: 0, - } - } - options := runtime.SizeInputToOptions(input) - _ = options - var n int - var l int - _ = l - if x.IsRegistered { - n += 2 - } - if x.unknownFields != nil { - n += len(x.unknownFields) - } - return protoiface.SizeOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Size: n, - } - } - - marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsWorkerRegisteredInTopicIdResponse) - if x == nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - options := runtime.MarshalInputToOptions(input) - _ = options - size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.IsRegistered { - i-- - if x.IsRegistered { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x8 - } - if input.Buf != nil { - input.Buf = append(input.Buf, dAtA...) - } else { - input.Buf = dAtA - } - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, nil - } - unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsWorkerRegisteredInTopicIdResponse) - if x == nil { - return protoiface.UnmarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Flags: input.Flags, - }, nil - } - options := runtime.UnmarshalInputToOptions(input) - _ = options - dAtA := input.Buf - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerRegisteredInTopicIdResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerRegisteredInTopicIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsRegistered", wireType) + if x.Regret == nil { + x.Regret = &TimestampedValue{} } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Regret); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - x.IsRegistered = bool(v != 0) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -29000,28 +27820,28 @@ func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) ProtoMethods() } var ( - md_QueryIsReputerRegisteredInTopicIdRequest protoreflect.MessageDescriptor - fd_QueryIsReputerRegisteredInTopicIdRequest_topic_id protoreflect.FieldDescriptor - fd_QueryIsReputerRegisteredInTopicIdRequest_address protoreflect.FieldDescriptor + md_QueryIsReputerNonceUnfulfilledRequest protoreflect.MessageDescriptor + fd_QueryIsReputerNonceUnfulfilledRequest_topic_id protoreflect.FieldDescriptor + fd_QueryIsReputerNonceUnfulfilledRequest_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryIsReputerRegisteredInTopicIdRequest = File_emissions_v1_query_proto.Messages().ByName("QueryIsReputerRegisteredInTopicIdRequest") - fd_QueryIsReputerRegisteredInTopicIdRequest_topic_id = md_QueryIsReputerRegisteredInTopicIdRequest.Fields().ByName("topic_id") - fd_QueryIsReputerRegisteredInTopicIdRequest_address = md_QueryIsReputerRegisteredInTopicIdRequest.Fields().ByName("address") + file_emissions_v2_query_proto_init() + md_QueryIsReputerNonceUnfulfilledRequest = File_emissions_v2_query_proto.Messages().ByName("QueryIsReputerNonceUnfulfilledRequest") + fd_QueryIsReputerNonceUnfulfilledRequest_topic_id = md_QueryIsReputerNonceUnfulfilledRequest.Fields().ByName("topic_id") + fd_QueryIsReputerNonceUnfulfilledRequest_block_height = md_QueryIsReputerNonceUnfulfilledRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryIsReputerRegisteredInTopicIdRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsReputerNonceUnfulfilledRequest)(nil) -type fastReflection_QueryIsReputerRegisteredInTopicIdRequest QueryIsReputerRegisteredInTopicIdRequest +type fastReflection_QueryIsReputerNonceUnfulfilledRequest QueryIsReputerNonceUnfulfilledRequest -func (x *QueryIsReputerRegisteredInTopicIdRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsReputerRegisteredInTopicIdRequest)(x) +func (x *QueryIsReputerNonceUnfulfilledRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsReputerNonceUnfulfilledRequest)(x) } -func (x *QueryIsReputerRegisteredInTopicIdRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[64] +func (x *QueryIsReputerNonceUnfulfilledRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[62] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -29032,43 +27852,43 @@ func (x *QueryIsReputerRegisteredInTopicIdRequest) slowProtoReflect() protorefle return mi.MessageOf(x) } -var _fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType{} +var _fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType{} -type fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType struct{} +type fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType struct{} -func (x fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsReputerRegisteredInTopicIdRequest)(nil) +func (x fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsReputerNonceUnfulfilledRequest)(nil) } -func (x fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsReputerRegisteredInTopicIdRequest) +func (x fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsReputerNonceUnfulfilledRequest) } -func (x fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsReputerRegisteredInTopicIdRequest +func (x fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsReputerNonceUnfulfilledRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsReputerRegisteredInTopicIdRequest +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsReputerNonceUnfulfilledRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryIsReputerNonceUnfulfilledRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) New() protoreflect.Message { - return new(fastReflection_QueryIsReputerRegisteredInTopicIdRequest) +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) New() protoreflect.Message { + return new(fastReflection_QueryIsReputerNonceUnfulfilledRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Interface() protoreflect.ProtoMessage { - return (*QueryIsReputerRegisteredInTopicIdRequest)(x) +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Interface() protoreflect.ProtoMessage { + return (*QueryIsReputerNonceUnfulfilledRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -29076,16 +27896,16 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Interface() pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryIsReputerRegisteredInTopicIdRequest_topic_id, value) { + if !f(fd_QueryIsReputerNonceUnfulfilledRequest_topic_id, value) { return } } - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryIsReputerRegisteredInTopicIdRequest_address, value) { + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_QueryIsReputerNonceUnfulfilledRequest_block_height, value) { return } } @@ -29102,17 +27922,17 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Range(f func(p // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryIsReputerRegisteredInTopicIdRequest.topic_id": + case "emissions.v2.QueryIsReputerNonceUnfulfilledRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryIsReputerRegisteredInTopicIdRequest.address": - return x.Address != "" + case "emissions.v2.QueryIsReputerNonceUnfulfilledRequest.block_height": + return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerRegisteredInTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerNonceUnfulfilledRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) } } @@ -29122,17 +27942,17 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Has(fd protore // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryIsReputerRegisteredInTopicIdRequest.topic_id": + case "emissions.v2.QueryIsReputerNonceUnfulfilledRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryIsReputerRegisteredInTopicIdRequest.address": - x.Address = "" + case "emissions.v2.QueryIsReputerNonceUnfulfilledRequest.block_height": + x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerRegisteredInTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerNonceUnfulfilledRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) } } @@ -29142,19 +27962,19 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Clear(fd proto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryIsReputerRegisteredInTopicIdRequest.topic_id": + case "emissions.v2.QueryIsReputerNonceUnfulfilledRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryIsReputerRegisteredInTopicIdRequest.address": - value := x.Address - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryIsReputerNonceUnfulfilledRequest.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerRegisteredInTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerNonceUnfulfilledRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerRegisteredInTopicIdRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerNonceUnfulfilledRequest does not contain field %s", descriptor.FullName())) } } @@ -29168,17 +27988,17 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Get(descriptor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryIsReputerRegisteredInTopicIdRequest.topic_id": + case "emissions.v2.QueryIsReputerNonceUnfulfilledRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryIsReputerRegisteredInTopicIdRequest.address": - x.Address = value.Interface().(string) + case "emissions.v2.QueryIsReputerNonceUnfulfilledRequest.block_height": + x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerRegisteredInTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerNonceUnfulfilledRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) } } @@ -29192,44 +28012,44 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Set(fd protore // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsReputerRegisteredInTopicIdRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryIsReputerRegisteredInTopicIdRequest is not mutable")) - case "emissions.v1.QueryIsReputerRegisteredInTopicIdRequest.address": - panic(fmt.Errorf("field address of message emissions.v1.QueryIsReputerRegisteredInTopicIdRequest is not mutable")) + case "emissions.v2.QueryIsReputerNonceUnfulfilledRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryIsReputerNonceUnfulfilledRequest is not mutable")) + case "emissions.v2.QueryIsReputerNonceUnfulfilledRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryIsReputerNonceUnfulfilledRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerRegisteredInTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerNonceUnfulfilledRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsReputerRegisteredInTopicIdRequest.topic_id": + case "emissions.v2.QueryIsReputerNonceUnfulfilledRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryIsReputerRegisteredInTopicIdRequest.address": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryIsReputerNonceUnfulfilledRequest.block_height": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerRegisteredInTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerNonceUnfulfilledRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerNonceUnfulfilledRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryIsReputerRegisteredInTopicIdRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryIsReputerNonceUnfulfilledRequest", d.FullName())) } panic("unreachable") } @@ -29237,7 +28057,7 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) WhichOneof(d p // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -29248,7 +28068,7 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) GetUnknown() p // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -29260,7 +28080,7 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) SetUnknown(fie // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) IsValid() bool { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) IsValid() bool { return x != nil } @@ -29270,9 +28090,9 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) IsValid() bool // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsReputerRegisteredInTopicIdRequest) + x := input.Message.Interface().(*QueryIsReputerNonceUnfulfilledRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -29287,9 +28107,8 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) ProtoMethods() if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Address) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -29301,7 +28120,7 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) ProtoMethods() } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsReputerRegisteredInTopicIdRequest) + x := input.Message.Interface().(*QueryIsReputerNonceUnfulfilledRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -29320,12 +28139,10 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) ProtoMethods() i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) @@ -29343,7 +28160,7 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) ProtoMethods() }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsReputerRegisteredInTopicIdRequest) + x := input.Message.Interface().(*QueryIsReputerNonceUnfulfilledRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -29375,10 +28192,10 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) ProtoMethods() fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerRegisteredInTopicIdRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerNonceUnfulfilledRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerRegisteredInTopicIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerNonceUnfulfilledRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -29401,10 +28218,10 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) ProtoMethods() } } case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } - var stringLen uint64 + x.BlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -29414,24 +28231,11 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) ProtoMethods() } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.BlockHeight |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -29468,26 +28272,26 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) ProtoMethods() } var ( - md_QueryIsReputerRegisteredInTopicIdResponse protoreflect.MessageDescriptor - fd_QueryIsReputerRegisteredInTopicIdResponse_is_registered protoreflect.FieldDescriptor + md_QueryIsReputerNonceUnfulfilledResponse protoreflect.MessageDescriptor + fd_QueryIsReputerNonceUnfulfilledResponse_is_reputer_nonce_unfulfilled protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryIsReputerRegisteredInTopicIdResponse = File_emissions_v1_query_proto.Messages().ByName("QueryIsReputerRegisteredInTopicIdResponse") - fd_QueryIsReputerRegisteredInTopicIdResponse_is_registered = md_QueryIsReputerRegisteredInTopicIdResponse.Fields().ByName("is_registered") + file_emissions_v2_query_proto_init() + md_QueryIsReputerNonceUnfulfilledResponse = File_emissions_v2_query_proto.Messages().ByName("QueryIsReputerNonceUnfulfilledResponse") + fd_QueryIsReputerNonceUnfulfilledResponse_is_reputer_nonce_unfulfilled = md_QueryIsReputerNonceUnfulfilledResponse.Fields().ByName("is_reputer_nonce_unfulfilled") } -var _ protoreflect.Message = (*fastReflection_QueryIsReputerRegisteredInTopicIdResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsReputerNonceUnfulfilledResponse)(nil) -type fastReflection_QueryIsReputerRegisteredInTopicIdResponse QueryIsReputerRegisteredInTopicIdResponse +type fastReflection_QueryIsReputerNonceUnfulfilledResponse QueryIsReputerNonceUnfulfilledResponse -func (x *QueryIsReputerRegisteredInTopicIdResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsReputerRegisteredInTopicIdResponse)(x) +func (x *QueryIsReputerNonceUnfulfilledResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsReputerNonceUnfulfilledResponse)(x) } -func (x *QueryIsReputerRegisteredInTopicIdResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[65] +func (x *QueryIsReputerNonceUnfulfilledResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[63] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -29498,43 +28302,43 @@ func (x *QueryIsReputerRegisteredInTopicIdResponse) slowProtoReflect() protorefl return mi.MessageOf(x) } -var _fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType{} +var _fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType{} -type fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType struct{} +type fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType struct{} -func (x fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsReputerRegisteredInTopicIdResponse)(nil) +func (x fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsReputerNonceUnfulfilledResponse)(nil) } -func (x fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsReputerRegisteredInTopicIdResponse) +func (x fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsReputerNonceUnfulfilledResponse) } -func (x fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsReputerRegisteredInTopicIdResponse +func (x fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsReputerNonceUnfulfilledResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsReputerRegisteredInTopicIdResponse +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsReputerNonceUnfulfilledResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryIsReputerNonceUnfulfilledResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) New() protoreflect.Message { - return new(fastReflection_QueryIsReputerRegisteredInTopicIdResponse) +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) New() protoreflect.Message { + return new(fastReflection_QueryIsReputerNonceUnfulfilledResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Interface() protoreflect.ProtoMessage { - return (*QueryIsReputerRegisteredInTopicIdResponse)(x) +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Interface() protoreflect.ProtoMessage { + return (*QueryIsReputerNonceUnfulfilledResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -29542,10 +28346,10 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Interface() p // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.IsRegistered != false { - value := protoreflect.ValueOfBool(x.IsRegistered) - if !f(fd_QueryIsReputerRegisteredInTopicIdResponse_is_registered, value) { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.IsReputerNonceUnfulfilled != false { + value := protoreflect.ValueOfBool(x.IsReputerNonceUnfulfilled) + if !f(fd_QueryIsReputerNonceUnfulfilledResponse_is_reputer_nonce_unfulfilled, value) { return } } @@ -29562,15 +28366,15 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Range(f func( // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryIsReputerRegisteredInTopicIdResponse.is_registered": - return x.IsRegistered != false + case "emissions.v2.QueryIsReputerNonceUnfulfilledResponse.is_reputer_nonce_unfulfilled": + return x.IsReputerNonceUnfulfilled != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerRegisteredInTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerNonceUnfulfilledResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) } } @@ -29580,15 +28384,15 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Has(fd protor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryIsReputerRegisteredInTopicIdResponse.is_registered": - x.IsRegistered = false + case "emissions.v2.QueryIsReputerNonceUnfulfilledResponse.is_reputer_nonce_unfulfilled": + x.IsReputerNonceUnfulfilled = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerRegisteredInTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerNonceUnfulfilledResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) } } @@ -29598,16 +28402,16 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Clear(fd prot // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryIsReputerRegisteredInTopicIdResponse.is_registered": - value := x.IsRegistered + case "emissions.v2.QueryIsReputerNonceUnfulfilledResponse.is_reputer_nonce_unfulfilled": + value := x.IsReputerNonceUnfulfilled return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerRegisteredInTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerNonceUnfulfilledResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerRegisteredInTopicIdResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerNonceUnfulfilledResponse does not contain field %s", descriptor.FullName())) } } @@ -29621,15 +28425,15 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Get(descripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryIsReputerRegisteredInTopicIdResponse.is_registered": - x.IsRegistered = value.Bool() + case "emissions.v2.QueryIsReputerNonceUnfulfilledResponse.is_reputer_nonce_unfulfilled": + x.IsReputerNonceUnfulfilled = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerRegisteredInTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerNonceUnfulfilledResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) } } @@ -29643,40 +28447,40 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Set(fd protor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsReputerRegisteredInTopicIdResponse.is_registered": - panic(fmt.Errorf("field is_registered of message emissions.v1.QueryIsReputerRegisteredInTopicIdResponse is not mutable")) + case "emissions.v2.QueryIsReputerNonceUnfulfilledResponse.is_reputer_nonce_unfulfilled": + panic(fmt.Errorf("field is_reputer_nonce_unfulfilled of message emissions.v2.QueryIsReputerNonceUnfulfilledResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerRegisteredInTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerNonceUnfulfilledResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsReputerRegisteredInTopicIdResponse.is_registered": + case "emissions.v2.QueryIsReputerNonceUnfulfilledResponse.is_reputer_nonce_unfulfilled": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsReputerRegisteredInTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerNonceUnfulfilledResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsReputerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerNonceUnfulfilledResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryIsReputerRegisteredInTopicIdResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryIsReputerNonceUnfulfilledResponse", d.FullName())) } panic("unreachable") } @@ -29684,7 +28488,7 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) WhichOneof(d // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -29695,7 +28499,7 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) GetUnknown() // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -29707,7 +28511,7 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) SetUnknown(fi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) IsValid() bool { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) IsValid() bool { return x != nil } @@ -29717,9 +28521,9 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) IsValid() boo // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsReputerNonceUnfulfilledResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsReputerRegisteredInTopicIdResponse) + x := input.Message.Interface().(*QueryIsReputerNonceUnfulfilledResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -29731,7 +28535,7 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) ProtoMethods( var n int var l int _ = l - if x.IsRegistered { + if x.IsReputerNonceUnfulfilled { n += 2 } if x.unknownFields != nil { @@ -29744,7 +28548,7 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) ProtoMethods( } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsReputerRegisteredInTopicIdResponse) + x := input.Message.Interface().(*QueryIsReputerNonceUnfulfilledResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -29763,9 +28567,9 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) ProtoMethods( i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.IsRegistered { + if x.IsReputerNonceUnfulfilled { i-- - if x.IsRegistered { + if x.IsReputerNonceUnfulfilled { dAtA[i] = 1 } else { dAtA[i] = 0 @@ -29784,7 +28588,7 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) ProtoMethods( }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsReputerRegisteredInTopicIdResponse) + x := input.Message.Interface().(*QueryIsReputerNonceUnfulfilledResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -29816,15 +28620,15 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) ProtoMethods( fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerRegisteredInTopicIdResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerNonceUnfulfilledResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerRegisteredInTopicIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerNonceUnfulfilledResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsRegistered", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsReputerNonceUnfulfilled", wireType) } var v int for shift := uint(0); ; shift += 7 { @@ -29841,7 +28645,7 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) ProtoMethods( break } } - x.IsRegistered = bool(v != 0) + x.IsReputerNonceUnfulfilled = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -29878,26 +28682,26 @@ func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) ProtoMethods( } var ( - md_QueryIsWhitelistAdminRequest protoreflect.MessageDescriptor - fd_QueryIsWhitelistAdminRequest_address protoreflect.FieldDescriptor + md_QueryNetworkInferencesAtBlockResponse protoreflect.MessageDescriptor + fd_QueryNetworkInferencesAtBlockResponse_network_inferences protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryIsWhitelistAdminRequest = File_emissions_v1_query_proto.Messages().ByName("QueryIsWhitelistAdminRequest") - fd_QueryIsWhitelistAdminRequest_address = md_QueryIsWhitelistAdminRequest.Fields().ByName("address") + file_emissions_v2_query_proto_init() + md_QueryNetworkInferencesAtBlockResponse = File_emissions_v2_query_proto.Messages().ByName("QueryNetworkInferencesAtBlockResponse") + fd_QueryNetworkInferencesAtBlockResponse_network_inferences = md_QueryNetworkInferencesAtBlockResponse.Fields().ByName("network_inferences") } -var _ protoreflect.Message = (*fastReflection_QueryIsWhitelistAdminRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryNetworkInferencesAtBlockResponse)(nil) -type fastReflection_QueryIsWhitelistAdminRequest QueryIsWhitelistAdminRequest +type fastReflection_QueryNetworkInferencesAtBlockResponse QueryNetworkInferencesAtBlockResponse -func (x *QueryIsWhitelistAdminRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsWhitelistAdminRequest)(x) +func (x *QueryNetworkInferencesAtBlockResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryNetworkInferencesAtBlockResponse)(x) } -func (x *QueryIsWhitelistAdminRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[66] +func (x *QueryNetworkInferencesAtBlockResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[64] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -29908,43 +28712,43 @@ func (x *QueryIsWhitelistAdminRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryIsWhitelistAdminRequest_messageType fastReflection_QueryIsWhitelistAdminRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsWhitelistAdminRequest_messageType{} +var _fastReflection_QueryNetworkInferencesAtBlockResponse_messageType fastReflection_QueryNetworkInferencesAtBlockResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryNetworkInferencesAtBlockResponse_messageType{} -type fastReflection_QueryIsWhitelistAdminRequest_messageType struct{} +type fastReflection_QueryNetworkInferencesAtBlockResponse_messageType struct{} -func (x fastReflection_QueryIsWhitelistAdminRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsWhitelistAdminRequest)(nil) +func (x fastReflection_QueryNetworkInferencesAtBlockResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryNetworkInferencesAtBlockResponse)(nil) } -func (x fastReflection_QueryIsWhitelistAdminRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsWhitelistAdminRequest) +func (x fastReflection_QueryNetworkInferencesAtBlockResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryNetworkInferencesAtBlockResponse) } -func (x fastReflection_QueryIsWhitelistAdminRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsWhitelistAdminRequest +func (x fastReflection_QueryNetworkInferencesAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNetworkInferencesAtBlockResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryIsWhitelistAdminRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsWhitelistAdminRequest +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryNetworkInferencesAtBlockResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsWhitelistAdminRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryIsWhitelistAdminRequest_messageType +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryNetworkInferencesAtBlockResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsWhitelistAdminRequest) New() protoreflect.Message { - return new(fastReflection_QueryIsWhitelistAdminRequest) +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) New() protoreflect.Message { + return new(fastReflection_QueryNetworkInferencesAtBlockResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsWhitelistAdminRequest) Interface() protoreflect.ProtoMessage { - return (*QueryIsWhitelistAdminRequest)(x) +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Interface() protoreflect.ProtoMessage { + return (*QueryNetworkInferencesAtBlockResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -29952,10 +28756,10 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryIsWhitelistAdminRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Address != "" { - value := protoreflect.ValueOfString(x.Address) - if !f(fd_QueryIsWhitelistAdminRequest_address, value) { +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.NetworkInferences != nil { + value := protoreflect.ValueOfMessage(x.NetworkInferences.ProtoReflect()) + if !f(fd_QueryNetworkInferencesAtBlockResponse_network_inferences, value) { return } } @@ -29972,15 +28776,15 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsWhitelistAdminRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryIsWhitelistAdminRequest.address": - return x.Address != "" + case "emissions.v2.QueryNetworkInferencesAtBlockResponse.network_inferences": + return x.NetworkInferences != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWhitelistAdminRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkInferencesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWhitelistAdminRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkInferencesAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -29990,15 +28794,15 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWhitelistAdminRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryIsWhitelistAdminRequest.address": - x.Address = "" + case "emissions.v2.QueryNetworkInferencesAtBlockResponse.network_inferences": + x.NetworkInferences = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWhitelistAdminRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkInferencesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWhitelistAdminRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkInferencesAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -30008,16 +28812,16 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsWhitelistAdminRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryIsWhitelistAdminRequest.address": - value := x.Address - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryNetworkInferencesAtBlockResponse.network_inferences": + value := x.NetworkInferences + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWhitelistAdminRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkInferencesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWhitelistAdminRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkInferencesAtBlockResponse does not contain field %s", descriptor.FullName())) } } @@ -30031,15 +28835,15 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWhitelistAdminRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryIsWhitelistAdminRequest.address": - x.Address = value.Interface().(string) + case "emissions.v2.QueryNetworkInferencesAtBlockResponse.network_inferences": + x.NetworkInferences = value.Message().Interface().(*ValueBundle) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWhitelistAdminRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkInferencesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWhitelistAdminRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkInferencesAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -30053,40 +28857,44 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWhitelistAdminRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsWhitelistAdminRequest.address": - panic(fmt.Errorf("field address of message emissions.v1.QueryIsWhitelistAdminRequest is not mutable")) + case "emissions.v2.QueryNetworkInferencesAtBlockResponse.network_inferences": + if x.NetworkInferences == nil { + x.NetworkInferences = new(ValueBundle) + } + return protoreflect.ValueOfMessage(x.NetworkInferences.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWhitelistAdminRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkInferencesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWhitelistAdminRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkInferencesAtBlockResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsWhitelistAdminRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsWhitelistAdminRequest.address": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryNetworkInferencesAtBlockResponse.network_inferences": + m := new(ValueBundle) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWhitelistAdminRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryNetworkInferencesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWhitelistAdminRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryNetworkInferencesAtBlockResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsWhitelistAdminRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryIsWhitelistAdminRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryNetworkInferencesAtBlockResponse", d.FullName())) } panic("unreachable") } @@ -30094,7 +28902,7 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsWhitelistAdminRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -30105,7 +28913,7 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWhitelistAdminRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -30117,7 +28925,7 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsWhitelistAdminRequest) IsValid() bool { +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) IsValid() bool { return x != nil } @@ -30127,9 +28935,9 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsWhitelistAdminRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryNetworkInferencesAtBlockResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsWhitelistAdminRequest) + x := input.Message.Interface().(*QueryNetworkInferencesAtBlockResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -30141,8 +28949,8 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) ProtoMethods() *protoiface var n int var l int _ = l - l = len(x.Address) - if l > 0 { + if x.NetworkInferences != nil { + l = options.Size(x.NetworkInferences) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -30155,7 +28963,7 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsWhitelistAdminRequest) + x := input.Message.Interface().(*QueryNetworkInferencesAtBlockResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -30174,10 +28982,17 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Address) > 0 { - i -= len(x.Address) - copy(dAtA[i:], x.Address) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + if x.NetworkInferences != nil { + encoded, err := options.Marshal(x.NetworkInferences) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -30192,7 +29007,7 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsWhitelistAdminRequest) + x := input.Message.Interface().(*QueryNetworkInferencesAtBlockResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -30224,17 +29039,17 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWhitelistAdminRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkInferencesAtBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWhitelistAdminRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryNetworkInferencesAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkInferences", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -30244,23 +29059,27 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) ProtoMethods() *protoiface } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Address = string(dAtA[iNdEx:postIndex]) + if x.NetworkInferences == nil { + x.NetworkInferences = &ValueBundle{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NetworkInferences); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -30297,27 +29116,286 @@ func (x *fastReflection_QueryIsWhitelistAdminRequest) ProtoMethods() *protoiface } } +var _ protoreflect.List = (*_QueryLatestNetworkInferencesResponse_2_list)(nil) + +type _QueryLatestNetworkInferencesResponse_2_list struct { + list *[]*RegretInformedWeight +} + +func (x *_QueryLatestNetworkInferencesResponse_2_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryLatestNetworkInferencesResponse_2_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryLatestNetworkInferencesResponse_2_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RegretInformedWeight) + (*x.list)[i] = concreteValue +} + +func (x *_QueryLatestNetworkInferencesResponse_2_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RegretInformedWeight) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryLatestNetworkInferencesResponse_2_list) AppendMutable() protoreflect.Value { + v := new(RegretInformedWeight) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryLatestNetworkInferencesResponse_2_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryLatestNetworkInferencesResponse_2_list) NewElement() protoreflect.Value { + v := new(RegretInformedWeight) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryLatestNetworkInferencesResponse_2_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_QueryLatestNetworkInferencesResponse_3_list)(nil) + +type _QueryLatestNetworkInferencesResponse_3_list struct { + list *[]*RegretInformedWeight +} + +func (x *_QueryLatestNetworkInferencesResponse_3_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryLatestNetworkInferencesResponse_3_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryLatestNetworkInferencesResponse_3_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RegretInformedWeight) + (*x.list)[i] = concreteValue +} + +func (x *_QueryLatestNetworkInferencesResponse_3_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*RegretInformedWeight) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryLatestNetworkInferencesResponse_3_list) AppendMutable() protoreflect.Value { + v := new(RegretInformedWeight) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryLatestNetworkInferencesResponse_3_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryLatestNetworkInferencesResponse_3_list) NewElement() protoreflect.Value { + v := new(RegretInformedWeight) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryLatestNetworkInferencesResponse_3_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_QueryLatestNetworkInferencesResponse_4_list)(nil) + +type _QueryLatestNetworkInferencesResponse_4_list struct { + list *[]*WorkerAttributedValue +} + +func (x *_QueryLatestNetworkInferencesResponse_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryLatestNetworkInferencesResponse_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryLatestNetworkInferencesResponse_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WorkerAttributedValue) + (*x.list)[i] = concreteValue +} + +func (x *_QueryLatestNetworkInferencesResponse_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WorkerAttributedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryLatestNetworkInferencesResponse_4_list) AppendMutable() protoreflect.Value { + v := new(WorkerAttributedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryLatestNetworkInferencesResponse_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryLatestNetworkInferencesResponse_4_list) NewElement() protoreflect.Value { + v := new(WorkerAttributedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryLatestNetworkInferencesResponse_4_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_QueryLatestNetworkInferencesResponse_7_list)(nil) + +type _QueryLatestNetworkInferencesResponse_7_list struct { + list *[]string +} + +func (x *_QueryLatestNetworkInferencesResponse_7_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryLatestNetworkInferencesResponse_7_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_QueryLatestNetworkInferencesResponse_7_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_QueryLatestNetworkInferencesResponse_7_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryLatestNetworkInferencesResponse_7_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message QueryLatestNetworkInferencesResponse at list field ConfidenceIntervalRawPercentiles as it is not of Message kind")) +} + +func (x *_QueryLatestNetworkInferencesResponse_7_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_QueryLatestNetworkInferencesResponse_7_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_QueryLatestNetworkInferencesResponse_7_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_QueryLatestNetworkInferencesResponse_8_list)(nil) + +type _QueryLatestNetworkInferencesResponse_8_list struct { + list *[]string +} + +func (x *_QueryLatestNetworkInferencesResponse_8_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryLatestNetworkInferencesResponse_8_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_QueryLatestNetworkInferencesResponse_8_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_QueryLatestNetworkInferencesResponse_8_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryLatestNetworkInferencesResponse_8_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message QueryLatestNetworkInferencesResponse at list field ConfidenceIntervalValues as it is not of Message kind")) +} + +func (x *_QueryLatestNetworkInferencesResponse_8_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_QueryLatestNetworkInferencesResponse_8_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_QueryLatestNetworkInferencesResponse_8_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryIsWhitelistAdminResponse protoreflect.MessageDescriptor - fd_QueryIsWhitelistAdminResponse_is_admin protoreflect.FieldDescriptor + md_QueryLatestNetworkInferencesResponse protoreflect.MessageDescriptor + fd_QueryLatestNetworkInferencesResponse_network_inferences protoreflect.FieldDescriptor + fd_QueryLatestNetworkInferencesResponse_inferer_weights protoreflect.FieldDescriptor + fd_QueryLatestNetworkInferencesResponse_forecaster_weights protoreflect.FieldDescriptor + fd_QueryLatestNetworkInferencesResponse_forecastImpliedInferences protoreflect.FieldDescriptor + fd_QueryLatestNetworkInferencesResponse_inference_block_height protoreflect.FieldDescriptor + fd_QueryLatestNetworkInferencesResponse_loss_block_height protoreflect.FieldDescriptor + fd_QueryLatestNetworkInferencesResponse_confidence_interval_raw_percentiles protoreflect.FieldDescriptor + fd_QueryLatestNetworkInferencesResponse_confidence_interval_values protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryIsWhitelistAdminResponse = File_emissions_v1_query_proto.Messages().ByName("QueryIsWhitelistAdminResponse") - fd_QueryIsWhitelistAdminResponse_is_admin = md_QueryIsWhitelistAdminResponse.Fields().ByName("is_admin") + file_emissions_v2_query_proto_init() + md_QueryLatestNetworkInferencesResponse = File_emissions_v2_query_proto.Messages().ByName("QueryLatestNetworkInferencesResponse") + fd_QueryLatestNetworkInferencesResponse_network_inferences = md_QueryLatestNetworkInferencesResponse.Fields().ByName("network_inferences") + fd_QueryLatestNetworkInferencesResponse_inferer_weights = md_QueryLatestNetworkInferencesResponse.Fields().ByName("inferer_weights") + fd_QueryLatestNetworkInferencesResponse_forecaster_weights = md_QueryLatestNetworkInferencesResponse.Fields().ByName("forecaster_weights") + fd_QueryLatestNetworkInferencesResponse_forecastImpliedInferences = md_QueryLatestNetworkInferencesResponse.Fields().ByName("forecastImpliedInferences") + fd_QueryLatestNetworkInferencesResponse_inference_block_height = md_QueryLatestNetworkInferencesResponse.Fields().ByName("inference_block_height") + fd_QueryLatestNetworkInferencesResponse_loss_block_height = md_QueryLatestNetworkInferencesResponse.Fields().ByName("loss_block_height") + fd_QueryLatestNetworkInferencesResponse_confidence_interval_raw_percentiles = md_QueryLatestNetworkInferencesResponse.Fields().ByName("confidence_interval_raw_percentiles") + fd_QueryLatestNetworkInferencesResponse_confidence_interval_values = md_QueryLatestNetworkInferencesResponse.Fields().ByName("confidence_interval_values") } -var _ protoreflect.Message = (*fastReflection_QueryIsWhitelistAdminResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryLatestNetworkInferencesResponse)(nil) -type fastReflection_QueryIsWhitelistAdminResponse QueryIsWhitelistAdminResponse +type fastReflection_QueryLatestNetworkInferencesResponse QueryLatestNetworkInferencesResponse -func (x *QueryIsWhitelistAdminResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsWhitelistAdminResponse)(x) +func (x *QueryLatestNetworkInferencesResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLatestNetworkInferencesResponse)(x) } -func (x *QueryIsWhitelistAdminResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[67] +func (x *QueryLatestNetworkInferencesResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[65] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -30328,43 +29406,43 @@ func (x *QueryIsWhitelistAdminResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryIsWhitelistAdminResponse_messageType fastReflection_QueryIsWhitelistAdminResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsWhitelistAdminResponse_messageType{} +var _fastReflection_QueryLatestNetworkInferencesResponse_messageType fastReflection_QueryLatestNetworkInferencesResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryLatestNetworkInferencesResponse_messageType{} -type fastReflection_QueryIsWhitelistAdminResponse_messageType struct{} +type fastReflection_QueryLatestNetworkInferencesResponse_messageType struct{} -func (x fastReflection_QueryIsWhitelistAdminResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsWhitelistAdminResponse)(nil) +func (x fastReflection_QueryLatestNetworkInferencesResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLatestNetworkInferencesResponse)(nil) } -func (x fastReflection_QueryIsWhitelistAdminResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsWhitelistAdminResponse) +func (x fastReflection_QueryLatestNetworkInferencesResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLatestNetworkInferencesResponse) } -func (x fastReflection_QueryIsWhitelistAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsWhitelistAdminResponse +func (x fastReflection_QueryLatestNetworkInferencesResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestNetworkInferencesResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryIsWhitelistAdminResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsWhitelistAdminResponse +func (x *fastReflection_QueryLatestNetworkInferencesResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestNetworkInferencesResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsWhitelistAdminResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryIsWhitelistAdminResponse_messageType +func (x *fastReflection_QueryLatestNetworkInferencesResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryLatestNetworkInferencesResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsWhitelistAdminResponse) New() protoreflect.Message { - return new(fastReflection_QueryIsWhitelistAdminResponse) +func (x *fastReflection_QueryLatestNetworkInferencesResponse) New() protoreflect.Message { + return new(fastReflection_QueryLatestNetworkInferencesResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsWhitelistAdminResponse) Interface() protoreflect.ProtoMessage { - return (*QueryIsWhitelistAdminResponse)(x) +func (x *fastReflection_QueryLatestNetworkInferencesResponse) Interface() protoreflect.ProtoMessage { + return (*QueryLatestNetworkInferencesResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -30372,10 +29450,52 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryIsWhitelistAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.IsAdmin != false { - value := protoreflect.ValueOfBool(x.IsAdmin) - if !f(fd_QueryIsWhitelistAdminResponse_is_admin, value) { +func (x *fastReflection_QueryLatestNetworkInferencesResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.NetworkInferences != nil { + value := protoreflect.ValueOfMessage(x.NetworkInferences.ProtoReflect()) + if !f(fd_QueryLatestNetworkInferencesResponse_network_inferences, value) { + return + } + } + if len(x.InfererWeights) != 0 { + value := protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_2_list{list: &x.InfererWeights}) + if !f(fd_QueryLatestNetworkInferencesResponse_inferer_weights, value) { + return + } + } + if len(x.ForecasterWeights) != 0 { + value := protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_3_list{list: &x.ForecasterWeights}) + if !f(fd_QueryLatestNetworkInferencesResponse_forecaster_weights, value) { + return + } + } + if len(x.ForecastImpliedInferences) != 0 { + value := protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_4_list{list: &x.ForecastImpliedInferences}) + if !f(fd_QueryLatestNetworkInferencesResponse_forecastImpliedInferences, value) { + return + } + } + if x.InferenceBlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.InferenceBlockHeight) + if !f(fd_QueryLatestNetworkInferencesResponse_inference_block_height, value) { + return + } + } + if x.LossBlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.LossBlockHeight) + if !f(fd_QueryLatestNetworkInferencesResponse_loss_block_height, value) { + return + } + } + if len(x.ConfidenceIntervalRawPercentiles) != 0 { + value := protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_7_list{list: &x.ConfidenceIntervalRawPercentiles}) + if !f(fd_QueryLatestNetworkInferencesResponse_confidence_interval_raw_percentiles, value) { + return + } + } + if len(x.ConfidenceIntervalValues) != 0 { + value := protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_8_list{list: &x.ConfidenceIntervalValues}) + if !f(fd_QueryLatestNetworkInferencesResponse_confidence_interval_values, value) { return } } @@ -30392,15 +29512,29 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) Range(f func(protoreflect // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsWhitelistAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryLatestNetworkInferencesResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryIsWhitelistAdminResponse.is_admin": - return x.IsAdmin != false + case "emissions.v2.QueryLatestNetworkInferencesResponse.network_inferences": + return x.NetworkInferences != nil + case "emissions.v2.QueryLatestNetworkInferencesResponse.inferer_weights": + return len(x.InfererWeights) != 0 + case "emissions.v2.QueryLatestNetworkInferencesResponse.forecaster_weights": + return len(x.ForecasterWeights) != 0 + case "emissions.v2.QueryLatestNetworkInferencesResponse.forecastImpliedInferences": + return len(x.ForecastImpliedInferences) != 0 + case "emissions.v2.QueryLatestNetworkInferencesResponse.inference_block_height": + return x.InferenceBlockHeight != int64(0) + case "emissions.v2.QueryLatestNetworkInferencesResponse.loss_block_height": + return x.LossBlockHeight != int64(0) + case "emissions.v2.QueryLatestNetworkInferencesResponse.confidence_interval_raw_percentiles": + return len(x.ConfidenceIntervalRawPercentiles) != 0 + case "emissions.v2.QueryLatestNetworkInferencesResponse.confidence_interval_values": + return len(x.ConfidenceIntervalValues) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestNetworkInferencesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestNetworkInferencesResponse does not contain field %s", fd.FullName())) } } @@ -30410,15 +29544,29 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWhitelistAdminResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryLatestNetworkInferencesResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryIsWhitelistAdminResponse.is_admin": - x.IsAdmin = false + case "emissions.v2.QueryLatestNetworkInferencesResponse.network_inferences": + x.NetworkInferences = nil + case "emissions.v2.QueryLatestNetworkInferencesResponse.inferer_weights": + x.InfererWeights = nil + case "emissions.v2.QueryLatestNetworkInferencesResponse.forecaster_weights": + x.ForecasterWeights = nil + case "emissions.v2.QueryLatestNetworkInferencesResponse.forecastImpliedInferences": + x.ForecastImpliedInferences = nil + case "emissions.v2.QueryLatestNetworkInferencesResponse.inference_block_height": + x.InferenceBlockHeight = int64(0) + case "emissions.v2.QueryLatestNetworkInferencesResponse.loss_block_height": + x.LossBlockHeight = int64(0) + case "emissions.v2.QueryLatestNetworkInferencesResponse.confidence_interval_raw_percentiles": + x.ConfidenceIntervalRawPercentiles = nil + case "emissions.v2.QueryLatestNetworkInferencesResponse.confidence_interval_values": + x.ConfidenceIntervalValues = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestNetworkInferencesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestNetworkInferencesResponse does not contain field %s", fd.FullName())) } } @@ -30428,16 +29576,52 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) Clear(fd protoreflect.Fie // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsWhitelistAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestNetworkInferencesResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryIsWhitelistAdminResponse.is_admin": - value := x.IsAdmin - return protoreflect.ValueOfBool(value) + case "emissions.v2.QueryLatestNetworkInferencesResponse.network_inferences": + value := x.NetworkInferences + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryLatestNetworkInferencesResponse.inferer_weights": + if len(x.InfererWeights) == 0 { + return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_2_list{}) + } + listValue := &_QueryLatestNetworkInferencesResponse_2_list{list: &x.InfererWeights} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.QueryLatestNetworkInferencesResponse.forecaster_weights": + if len(x.ForecasterWeights) == 0 { + return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_3_list{}) + } + listValue := &_QueryLatestNetworkInferencesResponse_3_list{list: &x.ForecasterWeights} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.QueryLatestNetworkInferencesResponse.forecastImpliedInferences": + if len(x.ForecastImpliedInferences) == 0 { + return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_4_list{}) + } + listValue := &_QueryLatestNetworkInferencesResponse_4_list{list: &x.ForecastImpliedInferences} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.QueryLatestNetworkInferencesResponse.inference_block_height": + value := x.InferenceBlockHeight + return protoreflect.ValueOfInt64(value) + case "emissions.v2.QueryLatestNetworkInferencesResponse.loss_block_height": + value := x.LossBlockHeight + return protoreflect.ValueOfInt64(value) + case "emissions.v2.QueryLatestNetworkInferencesResponse.confidence_interval_raw_percentiles": + if len(x.ConfidenceIntervalRawPercentiles) == 0 { + return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_7_list{}) + } + listValue := &_QueryLatestNetworkInferencesResponse_7_list{list: &x.ConfidenceIntervalRawPercentiles} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.QueryLatestNetworkInferencesResponse.confidence_interval_values": + if len(x.ConfidenceIntervalValues) == 0 { + return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_8_list{}) + } + listValue := &_QueryLatestNetworkInferencesResponse_8_list{list: &x.ConfidenceIntervalValues} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestNetworkInferencesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWhitelistAdminResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestNetworkInferencesResponse does not contain field %s", descriptor.FullName())) } } @@ -30451,15 +29635,39 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWhitelistAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryLatestNetworkInferencesResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryIsWhitelistAdminResponse.is_admin": - x.IsAdmin = value.Bool() + case "emissions.v2.QueryLatestNetworkInferencesResponse.network_inferences": + x.NetworkInferences = value.Message().Interface().(*ValueBundle) + case "emissions.v2.QueryLatestNetworkInferencesResponse.inferer_weights": + lv := value.List() + clv := lv.(*_QueryLatestNetworkInferencesResponse_2_list) + x.InfererWeights = *clv.list + case "emissions.v2.QueryLatestNetworkInferencesResponse.forecaster_weights": + lv := value.List() + clv := lv.(*_QueryLatestNetworkInferencesResponse_3_list) + x.ForecasterWeights = *clv.list + case "emissions.v2.QueryLatestNetworkInferencesResponse.forecastImpliedInferences": + lv := value.List() + clv := lv.(*_QueryLatestNetworkInferencesResponse_4_list) + x.ForecastImpliedInferences = *clv.list + case "emissions.v2.QueryLatestNetworkInferencesResponse.inference_block_height": + x.InferenceBlockHeight = value.Int() + case "emissions.v2.QueryLatestNetworkInferencesResponse.loss_block_height": + x.LossBlockHeight = value.Int() + case "emissions.v2.QueryLatestNetworkInferencesResponse.confidence_interval_raw_percentiles": + lv := value.List() + clv := lv.(*_QueryLatestNetworkInferencesResponse_7_list) + x.ConfidenceIntervalRawPercentiles = *clv.list + case "emissions.v2.QueryLatestNetworkInferencesResponse.confidence_interval_values": + lv := value.List() + clv := lv.(*_QueryLatestNetworkInferencesResponse_8_list) + x.ConfidenceIntervalValues = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestNetworkInferencesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestNetworkInferencesResponse does not contain field %s", fd.FullName())) } } @@ -30473,40 +29681,97 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWhitelistAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestNetworkInferencesResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsWhitelistAdminResponse.is_admin": - panic(fmt.Errorf("field is_admin of message emissions.v1.QueryIsWhitelistAdminResponse is not mutable")) + case "emissions.v2.QueryLatestNetworkInferencesResponse.network_inferences": + if x.NetworkInferences == nil { + x.NetworkInferences = new(ValueBundle) + } + return protoreflect.ValueOfMessage(x.NetworkInferences.ProtoReflect()) + case "emissions.v2.QueryLatestNetworkInferencesResponse.inferer_weights": + if x.InfererWeights == nil { + x.InfererWeights = []*RegretInformedWeight{} + } + value := &_QueryLatestNetworkInferencesResponse_2_list{list: &x.InfererWeights} + return protoreflect.ValueOfList(value) + case "emissions.v2.QueryLatestNetworkInferencesResponse.forecaster_weights": + if x.ForecasterWeights == nil { + x.ForecasterWeights = []*RegretInformedWeight{} + } + value := &_QueryLatestNetworkInferencesResponse_3_list{list: &x.ForecasterWeights} + return protoreflect.ValueOfList(value) + case "emissions.v2.QueryLatestNetworkInferencesResponse.forecastImpliedInferences": + if x.ForecastImpliedInferences == nil { + x.ForecastImpliedInferences = []*WorkerAttributedValue{} + } + value := &_QueryLatestNetworkInferencesResponse_4_list{list: &x.ForecastImpliedInferences} + return protoreflect.ValueOfList(value) + case "emissions.v2.QueryLatestNetworkInferencesResponse.confidence_interval_raw_percentiles": + if x.ConfidenceIntervalRawPercentiles == nil { + x.ConfidenceIntervalRawPercentiles = []string{} + } + value := &_QueryLatestNetworkInferencesResponse_7_list{list: &x.ConfidenceIntervalRawPercentiles} + return protoreflect.ValueOfList(value) + case "emissions.v2.QueryLatestNetworkInferencesResponse.confidence_interval_values": + if x.ConfidenceIntervalValues == nil { + x.ConfidenceIntervalValues = []string{} + } + value := &_QueryLatestNetworkInferencesResponse_8_list{list: &x.ConfidenceIntervalValues} + return protoreflect.ValueOfList(value) + case "emissions.v2.QueryLatestNetworkInferencesResponse.inference_block_height": + panic(fmt.Errorf("field inference_block_height of message emissions.v2.QueryLatestNetworkInferencesResponse is not mutable")) + case "emissions.v2.QueryLatestNetworkInferencesResponse.loss_block_height": + panic(fmt.Errorf("field loss_block_height of message emissions.v2.QueryLatestNetworkInferencesResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestNetworkInferencesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestNetworkInferencesResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsWhitelistAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestNetworkInferencesResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsWhitelistAdminResponse.is_admin": - return protoreflect.ValueOfBool(false) + case "emissions.v2.QueryLatestNetworkInferencesResponse.network_inferences": + m := new(ValueBundle) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryLatestNetworkInferencesResponse.inferer_weights": + list := []*RegretInformedWeight{} + return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_2_list{list: &list}) + case "emissions.v2.QueryLatestNetworkInferencesResponse.forecaster_weights": + list := []*RegretInformedWeight{} + return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_3_list{list: &list}) + case "emissions.v2.QueryLatestNetworkInferencesResponse.forecastImpliedInferences": + list := []*WorkerAttributedValue{} + return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_4_list{list: &list}) + case "emissions.v2.QueryLatestNetworkInferencesResponse.inference_block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.QueryLatestNetworkInferencesResponse.loss_block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.QueryLatestNetworkInferencesResponse.confidence_interval_raw_percentiles": + list := []string{} + return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_7_list{list: &list}) + case "emissions.v2.QueryLatestNetworkInferencesResponse.confidence_interval_values": + list := []string{} + return protoreflect.ValueOfList(&_QueryLatestNetworkInferencesResponse_8_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestNetworkInferencesResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestNetworkInferencesResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsWhitelistAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryLatestNetworkInferencesResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryIsWhitelistAdminResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryLatestNetworkInferencesResponse", d.FullName())) } panic("unreachable") } @@ -30514,7 +29779,7 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) WhichOneof(d protoreflect // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsWhitelistAdminResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryLatestNetworkInferencesResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -30525,7 +29790,7 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsWhitelistAdminResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryLatestNetworkInferencesResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -30537,7 +29802,7 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) SetUnknown(fields protore // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsWhitelistAdminResponse) IsValid() bool { +func (x *fastReflection_QueryLatestNetworkInferencesResponse) IsValid() bool { return x != nil } @@ -30547,9 +29812,9 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsWhitelistAdminResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryLatestNetworkInferencesResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsWhitelistAdminResponse) + x := input.Message.Interface().(*QueryLatestNetworkInferencesResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -30561,8 +29826,45 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) ProtoMethods() *protoifac var n int var l int _ = l - if x.IsAdmin { - n += 2 + if x.NetworkInferences != nil { + l = options.Size(x.NetworkInferences) + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.InfererWeights) > 0 { + for _, e := range x.InfererWeights { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.ForecasterWeights) > 0 { + for _, e := range x.ForecasterWeights { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.ForecastImpliedInferences) > 0 { + for _, e := range x.ForecastImpliedInferences { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.InferenceBlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.InferenceBlockHeight)) + } + if x.LossBlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.LossBlockHeight)) + } + if len(x.ConfidenceIntervalRawPercentiles) > 0 { + for _, s := range x.ConfidenceIntervalRawPercentiles { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.ConfidenceIntervalValues) > 0 { + for _, s := range x.ConfidenceIntervalValues { + l = len(s) + n += 1 + l + runtime.Sov(uint64(l)) + } } if x.unknownFields != nil { n += len(x.unknownFields) @@ -30574,7 +29876,7 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsWhitelistAdminResponse) + x := input.Message.Interface().(*QueryLatestNetworkInferencesResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -30593,15 +29895,95 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) ProtoMethods() *protoifac i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.IsAdmin { + if len(x.ConfidenceIntervalValues) > 0 { + for iNdEx := len(x.ConfidenceIntervalValues) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.ConfidenceIntervalValues[iNdEx]) + copy(dAtA[i:], x.ConfidenceIntervalValues[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConfidenceIntervalValues[iNdEx]))) + i-- + dAtA[i] = 0x42 + } + } + if len(x.ConfidenceIntervalRawPercentiles) > 0 { + for iNdEx := len(x.ConfidenceIntervalRawPercentiles) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.ConfidenceIntervalRawPercentiles[iNdEx]) + copy(dAtA[i:], x.ConfidenceIntervalRawPercentiles[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ConfidenceIntervalRawPercentiles[iNdEx]))) + i-- + dAtA[i] = 0x3a + } + } + if x.LossBlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.LossBlockHeight)) i-- - if x.IsAdmin { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + dAtA[i] = 0x30 + } + if x.InferenceBlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.InferenceBlockHeight)) + i-- + dAtA[i] = 0x28 + } + if len(x.ForecastImpliedInferences) > 0 { + for iNdEx := len(x.ForecastImpliedInferences) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.ForecastImpliedInferences[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } + if len(x.ForecasterWeights) > 0 { + for iNdEx := len(x.ForecasterWeights) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.ForecasterWeights[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + } + if len(x.InfererWeights) > 0 { + for iNdEx := len(x.InfererWeights) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.InfererWeights[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + } + if x.NetworkInferences != nil { + encoded, err := options.Marshal(x.NetworkInferences) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -30614,7 +29996,7 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsWhitelistAdminResponse) + x := input.Message.Interface().(*QueryLatestNetworkInferencesResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -30646,17 +30028,155 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWhitelistAdminResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestNetworkInferencesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWhitelistAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestNetworkInferencesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NetworkInferences", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.NetworkInferences == nil { + x.NetworkInferences = &ValueBundle{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.NetworkInferences); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InfererWeights", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.InfererWeights = append(x.InfererWeights, &RegretInformedWeight{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.InfererWeights[len(x.InfererWeights)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ForecasterWeights", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ForecasterWeights = append(x.ForecasterWeights, &RegretInformedWeight{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ForecasterWeights[len(x.ForecasterWeights)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ForecastImpliedInferences", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ForecastImpliedInferences = append(x.ForecastImpliedInferences, &WorkerAttributedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ForecastImpliedInferences[len(x.ForecastImpliedInferences)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 5: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsAdmin", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InferenceBlockHeight", wireType) } - var v int + x.InferenceBlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -30666,12 +30186,94 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) ProtoMethods() *protoifac } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + x.InferenceBlockHeight |= int64(b&0x7F) << shift if b < 0x80 { break } } - x.IsAdmin = bool(v != 0) + case 6: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LossBlockHeight", wireType) + } + x.LossBlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.LossBlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ConfidenceIntervalRawPercentiles", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ConfidenceIntervalRawPercentiles = append(x.ConfidenceIntervalRawPercentiles, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ConfidenceIntervalValues", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ConfidenceIntervalValues = append(x.ConfidenceIntervalValues, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -30708,26 +30310,28 @@ func (x *fastReflection_QueryIsWhitelistAdminResponse) ProtoMethods() *protoifac } var ( - md_QueryStakeRemovalsForBlockRequest protoreflect.MessageDescriptor - fd_QueryStakeRemovalsForBlockRequest_block_height protoreflect.FieldDescriptor + md_QueryIsWorkerRegisteredInTopicIdRequest protoreflect.MessageDescriptor + fd_QueryIsWorkerRegisteredInTopicIdRequest_topic_id protoreflect.FieldDescriptor + fd_QueryIsWorkerRegisteredInTopicIdRequest_address protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeRemovalsForBlockRequest = File_emissions_v1_query_proto.Messages().ByName("QueryStakeRemovalsForBlockRequest") - fd_QueryStakeRemovalsForBlockRequest_block_height = md_QueryStakeRemovalsForBlockRequest.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryIsWorkerRegisteredInTopicIdRequest = File_emissions_v2_query_proto.Messages().ByName("QueryIsWorkerRegisteredInTopicIdRequest") + fd_QueryIsWorkerRegisteredInTopicIdRequest_topic_id = md_QueryIsWorkerRegisteredInTopicIdRequest.Fields().ByName("topic_id") + fd_QueryIsWorkerRegisteredInTopicIdRequest_address = md_QueryIsWorkerRegisteredInTopicIdRequest.Fields().ByName("address") } -var _ protoreflect.Message = (*fastReflection_QueryStakeRemovalsForBlockRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsWorkerRegisteredInTopicIdRequest)(nil) -type fastReflection_QueryStakeRemovalsForBlockRequest QueryStakeRemovalsForBlockRequest +type fastReflection_QueryIsWorkerRegisteredInTopicIdRequest QueryIsWorkerRegisteredInTopicIdRequest -func (x *QueryStakeRemovalsForBlockRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeRemovalsForBlockRequest)(x) +func (x *QueryIsWorkerRegisteredInTopicIdRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsWorkerRegisteredInTopicIdRequest)(x) } -func (x *QueryStakeRemovalsForBlockRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[68] +func (x *QueryIsWorkerRegisteredInTopicIdRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[66] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -30738,43 +30342,43 @@ func (x *QueryStakeRemovalsForBlockRequest) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryStakeRemovalsForBlockRequest_messageType fastReflection_QueryStakeRemovalsForBlockRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeRemovalsForBlockRequest_messageType{} +var _fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType{} -type fastReflection_QueryStakeRemovalsForBlockRequest_messageType struct{} +type fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType struct{} -func (x fastReflection_QueryStakeRemovalsForBlockRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeRemovalsForBlockRequest)(nil) +func (x fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsWorkerRegisteredInTopicIdRequest)(nil) } -func (x fastReflection_QueryStakeRemovalsForBlockRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeRemovalsForBlockRequest) +func (x fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) } -func (x fastReflection_QueryStakeRemovalsForBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeRemovalsForBlockRequest +func (x fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsWorkerRegisteredInTopicIdRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeRemovalsForBlockRequest +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsWorkerRegisteredInTopicIdRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeRemovalsForBlockRequest_messageType +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryIsWorkerRegisteredInTopicIdRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) New() protoreflect.Message { - return new(fastReflection_QueryStakeRemovalsForBlockRequest) +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) New() protoreflect.Message { + return new(fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Interface() protoreflect.ProtoMessage { - return (*QueryStakeRemovalsForBlockRequest)(x) +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Interface() protoreflect.ProtoMessage { + return (*QueryIsWorkerRegisteredInTopicIdRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -30782,10 +30386,16 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.BlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryStakeRemovalsForBlockRequest_block_height, value) { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryIsWorkerRegisteredInTopicIdRequest_topic_id, value) { + return + } + } + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryIsWorkerRegisteredInTopicIdRequest_address, value) { return } } @@ -30802,15 +30412,17 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalsForBlockRequest.block_height": - return x.BlockHeight != int64(0) + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest.topic_id": + return x.TopicId != uint64(0) + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest.address": + return x.Address != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalsForBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalsForBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) } } @@ -30820,15 +30432,17 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalsForBlockRequest.block_height": - x.BlockHeight = int64(0) + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest.topic_id": + x.TopicId = uint64(0) + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest.address": + x.Address = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalsForBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalsForBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) } } @@ -30838,16 +30452,19 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeRemovalsForBlockRequest.block_height": - value := x.BlockHeight - return protoreflect.ValueOfInt64(value) + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalsForBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalsForBlockRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest does not contain field %s", descriptor.FullName())) } } @@ -30861,15 +30478,17 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalsForBlockRequest.block_height": - x.BlockHeight = value.Int() + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest.topic_id": + x.TopicId = value.Uint() + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest.address": + x.Address = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalsForBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalsForBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) } } @@ -30883,40 +30502,44 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalsForBlockRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryStakeRemovalsForBlockRequest is not mutable")) + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest is not mutable")) + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest.address": + panic(fmt.Errorf("field address of message emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalsForBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalsForBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalsForBlockRequest.block_height": - return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest.address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalsForBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalsForBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeRemovalsForBlockRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest", d.FullName())) } panic("unreachable") } @@ -30924,7 +30547,7 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -30935,7 +30558,7 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -30947,7 +30570,7 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) IsValid() bool { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) IsValid() bool { return x != nil } @@ -30957,9 +30580,9 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeRemovalsForBlockRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeRemovalsForBlockRequest) + x := input.Message.Interface().(*QueryIsWorkerRegisteredInTopicIdRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -30971,8 +30594,12 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) ProtoMethods() *proto var n int var l int _ = l - if x.BlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeight)) + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -30984,7 +30611,7 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeRemovalsForBlockRequest) + x := input.Message.Interface().(*QueryIsWorkerRegisteredInTopicIdRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -31003,8 +30630,15 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) ProtoMethods() *proto i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.BlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- dAtA[i] = 0x8 } @@ -31019,7 +30653,7 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeRemovalsForBlockRequest) + x := input.Message.Interface().(*QueryIsWorkerRegisteredInTopicIdRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -31051,17 +30685,17 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalsForBlockRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerRegisteredInTopicIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalsForBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerRegisteredInTopicIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } - x.BlockHeight = 0 + x.TopicId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -31071,11 +30705,43 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) ProtoMethods() *proto } b := dAtA[iNdEx] iNdEx++ - x.BlockHeight |= int64(b&0x7F) << shift + x.TopicId |= uint64(b&0x7F) << shift if b < 0x80 { break } } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -31111,78 +30777,27 @@ func (x *fastReflection_QueryStakeRemovalsForBlockRequest) ProtoMethods() *proto } } -var _ protoreflect.List = (*_QueryStakeRemovalsForBlockResponse_1_list)(nil) - -type _QueryStakeRemovalsForBlockResponse_1_list struct { - list *[]*StakeRemovalInfo -} - -func (x *_QueryStakeRemovalsForBlockResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryStakeRemovalsForBlockResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryStakeRemovalsForBlockResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*StakeRemovalInfo) - (*x.list)[i] = concreteValue -} - -func (x *_QueryStakeRemovalsForBlockResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*StakeRemovalInfo) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryStakeRemovalsForBlockResponse_1_list) AppendMutable() protoreflect.Value { - v := new(StakeRemovalInfo) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryStakeRemovalsForBlockResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryStakeRemovalsForBlockResponse_1_list) NewElement() protoreflect.Value { - v := new(StakeRemovalInfo) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryStakeRemovalsForBlockResponse_1_list) IsValid() bool { - return x.list != nil -} - var ( - md_QueryStakeRemovalsForBlockResponse protoreflect.MessageDescriptor - fd_QueryStakeRemovalsForBlockResponse_removals protoreflect.FieldDescriptor + md_QueryIsWorkerRegisteredInTopicIdResponse protoreflect.MessageDescriptor + fd_QueryIsWorkerRegisteredInTopicIdResponse_is_registered protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeRemovalsForBlockResponse = File_emissions_v1_query_proto.Messages().ByName("QueryStakeRemovalsForBlockResponse") - fd_QueryStakeRemovalsForBlockResponse_removals = md_QueryStakeRemovalsForBlockResponse.Fields().ByName("removals") + file_emissions_v2_query_proto_init() + md_QueryIsWorkerRegisteredInTopicIdResponse = File_emissions_v2_query_proto.Messages().ByName("QueryIsWorkerRegisteredInTopicIdResponse") + fd_QueryIsWorkerRegisteredInTopicIdResponse_is_registered = md_QueryIsWorkerRegisteredInTopicIdResponse.Fields().ByName("is_registered") } -var _ protoreflect.Message = (*fastReflection_QueryStakeRemovalsForBlockResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsWorkerRegisteredInTopicIdResponse)(nil) -type fastReflection_QueryStakeRemovalsForBlockResponse QueryStakeRemovalsForBlockResponse +type fastReflection_QueryIsWorkerRegisteredInTopicIdResponse QueryIsWorkerRegisteredInTopicIdResponse -func (x *QueryStakeRemovalsForBlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeRemovalsForBlockResponse)(x) +func (x *QueryIsWorkerRegisteredInTopicIdResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsWorkerRegisteredInTopicIdResponse)(x) } -func (x *QueryStakeRemovalsForBlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[69] +func (x *QueryIsWorkerRegisteredInTopicIdResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[67] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -31193,43 +30808,43 @@ func (x *QueryStakeRemovalsForBlockResponse) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryStakeRemovalsForBlockResponse_messageType fastReflection_QueryStakeRemovalsForBlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeRemovalsForBlockResponse_messageType{} +var _fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType{} -type fastReflection_QueryStakeRemovalsForBlockResponse_messageType struct{} +type fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType struct{} -func (x fastReflection_QueryStakeRemovalsForBlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeRemovalsForBlockResponse)(nil) +func (x fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsWorkerRegisteredInTopicIdResponse)(nil) } -func (x fastReflection_QueryStakeRemovalsForBlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeRemovalsForBlockResponse) +func (x fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) } -func (x fastReflection_QueryStakeRemovalsForBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeRemovalsForBlockResponse +func (x fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsWorkerRegisteredInTopicIdResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeRemovalsForBlockResponse +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsWorkerRegisteredInTopicIdResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeRemovalsForBlockResponse_messageType +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryIsWorkerRegisteredInTopicIdResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) New() protoreflect.Message { - return new(fastReflection_QueryStakeRemovalsForBlockResponse) +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) New() protoreflect.Message { + return new(fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Interface() protoreflect.ProtoMessage { - return (*QueryStakeRemovalsForBlockResponse)(x) +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Interface() protoreflect.ProtoMessage { + return (*QueryIsWorkerRegisteredInTopicIdResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -31237,10 +30852,10 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Removals) != 0 { - value := protoreflect.ValueOfList(&_QueryStakeRemovalsForBlockResponse_1_list{list: &x.Removals}) - if !f(fd_QueryStakeRemovalsForBlockResponse_removals, value) { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.IsRegistered != false { + value := protoreflect.ValueOfBool(x.IsRegistered) + if !f(fd_QueryIsWorkerRegisteredInTopicIdResponse_is_registered, value) { return } } @@ -31257,15 +30872,15 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalsForBlockResponse.removals": - return len(x.Removals) != 0 + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse.is_registered": + return x.IsRegistered != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalsForBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalsForBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) } } @@ -31275,15 +30890,15 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalsForBlockResponse.removals": - x.Removals = nil + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse.is_registered": + x.IsRegistered = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalsForBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalsForBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) } } @@ -31293,19 +30908,16 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeRemovalsForBlockResponse.removals": - if len(x.Removals) == 0 { - return protoreflect.ValueOfList(&_QueryStakeRemovalsForBlockResponse_1_list{}) - } - listValue := &_QueryStakeRemovalsForBlockResponse_1_list{list: &x.Removals} - return protoreflect.ValueOfList(listValue) + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse.is_registered": + value := x.IsRegistered + return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalsForBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalsForBlockResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse does not contain field %s", descriptor.FullName())) } } @@ -31319,17 +30931,15 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalsForBlockResponse.removals": - lv := value.List() - clv := lv.(*_QueryStakeRemovalsForBlockResponse_1_list) - x.Removals = *clv.list + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse.is_registered": + x.IsRegistered = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalsForBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalsForBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) } } @@ -31343,45 +30953,40 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalsForBlockResponse.removals": - if x.Removals == nil { - x.Removals = []*StakeRemovalInfo{} - } - value := &_QueryStakeRemovalsForBlockResponse_1_list{list: &x.Removals} - return protoreflect.ValueOfList(value) + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse.is_registered": + panic(fmt.Errorf("field is_registered of message emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalsForBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalsForBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalsForBlockResponse.removals": - list := []*StakeRemovalInfo{} - return protoreflect.ValueOfList(&_QueryStakeRemovalsForBlockResponse_1_list{list: &list}) + case "emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse.is_registered": + return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalsForBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalsForBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeRemovalsForBlockResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse", d.FullName())) } panic("unreachable") } @@ -31389,7 +30994,7 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -31400,7 +31005,7 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -31412,7 +31017,7 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) IsValid() bool { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) IsValid() bool { return x != nil } @@ -31422,9 +31027,9 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeRemovalsForBlockResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsWorkerRegisteredInTopicIdResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeRemovalsForBlockResponse) + x := input.Message.Interface().(*QueryIsWorkerRegisteredInTopicIdResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -31436,11 +31041,8 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) ProtoMethods() *prot var n int var l int _ = l - if len(x.Removals) > 0 { - for _, e := range x.Removals { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + if x.IsRegistered { + n += 2 } if x.unknownFields != nil { n += len(x.unknownFields) @@ -31452,7 +31054,7 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeRemovalsForBlockResponse) + x := input.Message.Interface().(*QueryIsWorkerRegisteredInTopicIdResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -31471,21 +31073,15 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) ProtoMethods() *prot i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Removals) > 0 { - for iNdEx := len(x.Removals) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Removals[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa + if x.IsRegistered { + i-- + if x.IsRegistered { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -31498,7 +31094,7 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeRemovalsForBlockResponse) + x := input.Message.Interface().(*QueryIsWorkerRegisteredInTopicIdResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -31530,17 +31126,17 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalsForBlockResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerRegisteredInTopicIdResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalsForBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWorkerRegisteredInTopicIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Removals", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsRegistered", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -31550,26 +31146,12 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) ProtoMethods() *prot } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Removals = append(x.Removals, &StakeRemovalInfo{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Removals[len(x.Removals)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex + x.IsRegistered = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -31606,26 +31188,28 @@ func (x *fastReflection_QueryStakeRemovalsForBlockResponse) ProtoMethods() *prot } var ( - md_QueryDelegateStakeRemovalsForBlockRequest protoreflect.MessageDescriptor - fd_QueryDelegateStakeRemovalsForBlockRequest_block_height protoreflect.FieldDescriptor + md_QueryIsReputerRegisteredInTopicIdRequest protoreflect.MessageDescriptor + fd_QueryIsReputerRegisteredInTopicIdRequest_topic_id protoreflect.FieldDescriptor + fd_QueryIsReputerRegisteredInTopicIdRequest_address protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateStakeRemovalsForBlockRequest = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateStakeRemovalsForBlockRequest") - fd_QueryDelegateStakeRemovalsForBlockRequest_block_height = md_QueryDelegateStakeRemovalsForBlockRequest.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryIsReputerRegisteredInTopicIdRequest = File_emissions_v2_query_proto.Messages().ByName("QueryIsReputerRegisteredInTopicIdRequest") + fd_QueryIsReputerRegisteredInTopicIdRequest_topic_id = md_QueryIsReputerRegisteredInTopicIdRequest.Fields().ByName("topic_id") + fd_QueryIsReputerRegisteredInTopicIdRequest_address = md_QueryIsReputerRegisteredInTopicIdRequest.Fields().ByName("address") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeRemovalsForBlockRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsReputerRegisteredInTopicIdRequest)(nil) -type fastReflection_QueryDelegateStakeRemovalsForBlockRequest QueryDelegateStakeRemovalsForBlockRequest +type fastReflection_QueryIsReputerRegisteredInTopicIdRequest QueryIsReputerRegisteredInTopicIdRequest -func (x *QueryDelegateStakeRemovalsForBlockRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeRemovalsForBlockRequest)(x) +func (x *QueryIsReputerRegisteredInTopicIdRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsReputerRegisteredInTopicIdRequest)(x) } -func (x *QueryDelegateStakeRemovalsForBlockRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[70] +func (x *QueryIsReputerRegisteredInTopicIdRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[68] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -31636,43 +31220,43 @@ func (x *QueryDelegateStakeRemovalsForBlockRequest) slowProtoReflect() protorefl return mi.MessageOf(x) } -var _fastReflection_QueryDelegateStakeRemovalsForBlockRequest_messageType fastReflection_QueryDelegateStakeRemovalsForBlockRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeRemovalsForBlockRequest_messageType{} +var _fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType{} -type fastReflection_QueryDelegateStakeRemovalsForBlockRequest_messageType struct{} +type fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType struct{} -func (x fastReflection_QueryDelegateStakeRemovalsForBlockRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeRemovalsForBlockRequest)(nil) +func (x fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsReputerRegisteredInTopicIdRequest)(nil) } -func (x fastReflection_QueryDelegateStakeRemovalsForBlockRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeRemovalsForBlockRequest) +func (x fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsReputerRegisteredInTopicIdRequest) } -func (x fastReflection_QueryDelegateStakeRemovalsForBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeRemovalsForBlockRequest +func (x fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsReputerRegisteredInTopicIdRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeRemovalsForBlockRequest +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsReputerRegisteredInTopicIdRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateStakeRemovalsForBlockRequest_messageType +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryIsReputerRegisteredInTopicIdRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeRemovalsForBlockRequest) +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) New() protoreflect.Message { + return new(fastReflection_QueryIsReputerRegisteredInTopicIdRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateStakeRemovalsForBlockRequest)(x) +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Interface() protoreflect.ProtoMessage { + return (*QueryIsReputerRegisteredInTopicIdRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -31680,10 +31264,16 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Interface() p // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.BlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryDelegateStakeRemovalsForBlockRequest_block_height, value) { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryIsReputerRegisteredInTopicIdRequest_topic_id, value) { + return + } + } + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryIsReputerRegisteredInTopicIdRequest_address, value) { return } } @@ -31700,15 +31290,17 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Range(f func( // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalsForBlockRequest.block_height": - return x.BlockHeight != int64(0) + case "emissions.v2.QueryIsReputerRegisteredInTopicIdRequest.topic_id": + return x.TopicId != uint64(0) + case "emissions.v2.QueryIsReputerRegisteredInTopicIdRequest.address": + return x.Address != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalsForBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerRegisteredInTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalsForBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) } } @@ -31718,15 +31310,17 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Has(fd protor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalsForBlockRequest.block_height": - x.BlockHeight = int64(0) + case "emissions.v2.QueryIsReputerRegisteredInTopicIdRequest.topic_id": + x.TopicId = uint64(0) + case "emissions.v2.QueryIsReputerRegisteredInTopicIdRequest.address": + x.Address = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalsForBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerRegisteredInTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalsForBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) } } @@ -31736,16 +31330,19 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Clear(fd prot // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalsForBlockRequest.block_height": - value := x.BlockHeight - return protoreflect.ValueOfInt64(value) + case "emissions.v2.QueryIsReputerRegisteredInTopicIdRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryIsReputerRegisteredInTopicIdRequest.address": + value := x.Address + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalsForBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerRegisteredInTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalsForBlockRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerRegisteredInTopicIdRequest does not contain field %s", descriptor.FullName())) } } @@ -31759,15 +31356,17 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Get(descripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalsForBlockRequest.block_height": - x.BlockHeight = value.Int() + case "emissions.v2.QueryIsReputerRegisteredInTopicIdRequest.topic_id": + x.TopicId = value.Uint() + case "emissions.v2.QueryIsReputerRegisteredInTopicIdRequest.address": + x.Address = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalsForBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerRegisteredInTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalsForBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) } } @@ -31781,40 +31380,44 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Set(fd protor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalsForBlockRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryDelegateStakeRemovalsForBlockRequest is not mutable")) + case "emissions.v2.QueryIsReputerRegisteredInTopicIdRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryIsReputerRegisteredInTopicIdRequest is not mutable")) + case "emissions.v2.QueryIsReputerRegisteredInTopicIdRequest.address": + panic(fmt.Errorf("field address of message emissions.v2.QueryIsReputerRegisteredInTopicIdRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalsForBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerRegisteredInTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalsForBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalsForBlockRequest.block_height": - return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.QueryIsReputerRegisteredInTopicIdRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryIsReputerRegisteredInTopicIdRequest.address": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalsForBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerRegisteredInTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalsForBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerRegisteredInTopicIdRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateStakeRemovalsForBlockRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryIsReputerRegisteredInTopicIdRequest", d.FullName())) } panic("unreachable") } @@ -31822,7 +31425,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) WhichOneof(d // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -31833,7 +31436,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) GetUnknown() // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -31845,7 +31448,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) SetUnknown(fi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) IsValid() bool { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) IsValid() bool { return x != nil } @@ -31855,9 +31458,9 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) IsValid() boo // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateStakeRemovalsForBlockRequest) + x := input.Message.Interface().(*QueryIsReputerRegisteredInTopicIdRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -31869,8 +31472,12 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) ProtoMethods( var n int var l int _ = l - if x.BlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeight)) + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.Address) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -31882,7 +31489,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) ProtoMethods( } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeRemovalsForBlockRequest) + x := input.Message.Interface().(*QueryIsReputerRegisteredInTopicIdRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -31901,8 +31508,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) ProtoMethods( i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.BlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- dAtA[i] = 0x8 } @@ -31917,7 +31531,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) ProtoMethods( }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeRemovalsForBlockRequest) + x := input.Message.Interface().(*QueryIsReputerRegisteredInTopicIdRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -31949,17 +31563,17 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) ProtoMethods( fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalsForBlockRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerRegisteredInTopicIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalsForBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerRegisteredInTopicIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } - x.BlockHeight = 0 + x.TopicId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -31969,11 +31583,43 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) ProtoMethods( } b := dAtA[iNdEx] iNdEx++ - x.BlockHeight |= int64(b&0x7F) << shift + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Address = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -32009,78 +31655,27 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockRequest) ProtoMethods( } } -var _ protoreflect.List = (*_QueryDelegateStakeRemovalsForBlockResponse_1_list)(nil) - -type _QueryDelegateStakeRemovalsForBlockResponse_1_list struct { - list *[]*DelegateStakeRemovalInfo -} - -func (x *_QueryDelegateStakeRemovalsForBlockResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryDelegateStakeRemovalsForBlockResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryDelegateStakeRemovalsForBlockResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*DelegateStakeRemovalInfo) - (*x.list)[i] = concreteValue -} - -func (x *_QueryDelegateStakeRemovalsForBlockResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*DelegateStakeRemovalInfo) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryDelegateStakeRemovalsForBlockResponse_1_list) AppendMutable() protoreflect.Value { - v := new(DelegateStakeRemovalInfo) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryDelegateStakeRemovalsForBlockResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryDelegateStakeRemovalsForBlockResponse_1_list) NewElement() protoreflect.Value { - v := new(DelegateStakeRemovalInfo) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryDelegateStakeRemovalsForBlockResponse_1_list) IsValid() bool { - return x.list != nil -} - var ( - md_QueryDelegateStakeRemovalsForBlockResponse protoreflect.MessageDescriptor - fd_QueryDelegateStakeRemovalsForBlockResponse_removals protoreflect.FieldDescriptor + md_QueryIsReputerRegisteredInTopicIdResponse protoreflect.MessageDescriptor + fd_QueryIsReputerRegisteredInTopicIdResponse_is_registered protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateStakeRemovalsForBlockResponse = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateStakeRemovalsForBlockResponse") - fd_QueryDelegateStakeRemovalsForBlockResponse_removals = md_QueryDelegateStakeRemovalsForBlockResponse.Fields().ByName("removals") + file_emissions_v2_query_proto_init() + md_QueryIsReputerRegisteredInTopicIdResponse = File_emissions_v2_query_proto.Messages().ByName("QueryIsReputerRegisteredInTopicIdResponse") + fd_QueryIsReputerRegisteredInTopicIdResponse_is_registered = md_QueryIsReputerRegisteredInTopicIdResponse.Fields().ByName("is_registered") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeRemovalsForBlockResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsReputerRegisteredInTopicIdResponse)(nil) -type fastReflection_QueryDelegateStakeRemovalsForBlockResponse QueryDelegateStakeRemovalsForBlockResponse +type fastReflection_QueryIsReputerRegisteredInTopicIdResponse QueryIsReputerRegisteredInTopicIdResponse -func (x *QueryDelegateStakeRemovalsForBlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeRemovalsForBlockResponse)(x) +func (x *QueryIsReputerRegisteredInTopicIdResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsReputerRegisteredInTopicIdResponse)(x) } -func (x *QueryDelegateStakeRemovalsForBlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[71] +func (x *QueryIsReputerRegisteredInTopicIdResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[69] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -32091,43 +31686,43 @@ func (x *QueryDelegateStakeRemovalsForBlockResponse) slowProtoReflect() protoref return mi.MessageOf(x) } -var _fastReflection_QueryDelegateStakeRemovalsForBlockResponse_messageType fastReflection_QueryDelegateStakeRemovalsForBlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeRemovalsForBlockResponse_messageType{} +var _fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType{} -type fastReflection_QueryDelegateStakeRemovalsForBlockResponse_messageType struct{} +type fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType struct{} -func (x fastReflection_QueryDelegateStakeRemovalsForBlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeRemovalsForBlockResponse)(nil) +func (x fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsReputerRegisteredInTopicIdResponse)(nil) } -func (x fastReflection_QueryDelegateStakeRemovalsForBlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeRemovalsForBlockResponse) +func (x fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsReputerRegisteredInTopicIdResponse) } -func (x fastReflection_QueryDelegateStakeRemovalsForBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeRemovalsForBlockResponse +func (x fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsReputerRegisteredInTopicIdResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeRemovalsForBlockResponse +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsReputerRegisteredInTopicIdResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateStakeRemovalsForBlockResponse_messageType +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryIsReputerRegisteredInTopicIdResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeRemovalsForBlockResponse) +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) New() protoreflect.Message { + return new(fastReflection_QueryIsReputerRegisteredInTopicIdResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateStakeRemovalsForBlockResponse)(x) +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Interface() protoreflect.ProtoMessage { + return (*QueryIsReputerRegisteredInTopicIdResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -32135,10 +31730,10 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Interface() // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Removals) != 0 { - value := protoreflect.ValueOfList(&_QueryDelegateStakeRemovalsForBlockResponse_1_list{list: &x.Removals}) - if !f(fd_QueryDelegateStakeRemovalsForBlockResponse_removals, value) { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.IsRegistered != false { + value := protoreflect.ValueOfBool(x.IsRegistered) + if !f(fd_QueryIsReputerRegisteredInTopicIdResponse_is_registered, value) { return } } @@ -32155,15 +31750,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Range(f func // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalsForBlockResponse.removals": - return len(x.Removals) != 0 + case "emissions.v2.QueryIsReputerRegisteredInTopicIdResponse.is_registered": + return x.IsRegistered != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalsForBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerRegisteredInTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalsForBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) } } @@ -32173,15 +31768,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Has(fd proto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalsForBlockResponse.removals": - x.Removals = nil + case "emissions.v2.QueryIsReputerRegisteredInTopicIdResponse.is_registered": + x.IsRegistered = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalsForBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerRegisteredInTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalsForBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) } } @@ -32191,19 +31786,16 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Clear(fd pro // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalsForBlockResponse.removals": - if len(x.Removals) == 0 { - return protoreflect.ValueOfList(&_QueryDelegateStakeRemovalsForBlockResponse_1_list{}) - } - listValue := &_QueryDelegateStakeRemovalsForBlockResponse_1_list{list: &x.Removals} - return protoreflect.ValueOfList(listValue) + case "emissions.v2.QueryIsReputerRegisteredInTopicIdResponse.is_registered": + value := x.IsRegistered + return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalsForBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerRegisteredInTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalsForBlockResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerRegisteredInTopicIdResponse does not contain field %s", descriptor.FullName())) } } @@ -32217,17 +31809,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Get(descript // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalsForBlockResponse.removals": - lv := value.List() - clv := lv.(*_QueryDelegateStakeRemovalsForBlockResponse_1_list) - x.Removals = *clv.list + case "emissions.v2.QueryIsReputerRegisteredInTopicIdResponse.is_registered": + x.IsRegistered = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalsForBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerRegisteredInTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalsForBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) } } @@ -32241,45 +31831,40 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Set(fd proto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalsForBlockResponse.removals": - if x.Removals == nil { - x.Removals = []*DelegateStakeRemovalInfo{} - } - value := &_QueryDelegateStakeRemovalsForBlockResponse_1_list{list: &x.Removals} - return protoreflect.ValueOfList(value) + case "emissions.v2.QueryIsReputerRegisteredInTopicIdResponse.is_registered": + panic(fmt.Errorf("field is_registered of message emissions.v2.QueryIsReputerRegisteredInTopicIdResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalsForBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerRegisteredInTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalsForBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalsForBlockResponse.removals": - list := []*DelegateStakeRemovalInfo{} - return protoreflect.ValueOfList(&_QueryDelegateStakeRemovalsForBlockResponse_1_list{list: &list}) + case "emissions.v2.QueryIsReputerRegisteredInTopicIdResponse.is_registered": + return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalsForBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsReputerRegisteredInTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalsForBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsReputerRegisteredInTopicIdResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateStakeRemovalsForBlockResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryIsReputerRegisteredInTopicIdResponse", d.FullName())) } panic("unreachable") } @@ -32287,7 +31872,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) WhichOneof(d // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -32298,7 +31883,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) GetUnknown() // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -32310,7 +31895,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) SetUnknown(f // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) IsValid() bool { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) IsValid() bool { return x != nil } @@ -32320,9 +31905,9 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) IsValid() bo // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsReputerRegisteredInTopicIdResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateStakeRemovalsForBlockResponse) + x := input.Message.Interface().(*QueryIsReputerRegisteredInTopicIdResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -32334,11 +31919,8 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) ProtoMethods var n int var l int _ = l - if len(x.Removals) > 0 { - for _, e := range x.Removals { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + if x.IsRegistered { + n += 2 } if x.unknownFields != nil { n += len(x.unknownFields) @@ -32350,7 +31932,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) ProtoMethods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeRemovalsForBlockResponse) + x := input.Message.Interface().(*QueryIsReputerRegisteredInTopicIdResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -32369,21 +31951,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) ProtoMethods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Removals) > 0 { - for iNdEx := len(x.Removals) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Removals[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa + if x.IsRegistered { + i-- + if x.IsRegistered { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -32396,7 +31972,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) ProtoMethods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeRemovalsForBlockResponse) + x := input.Message.Interface().(*QueryIsReputerRegisteredInTopicIdResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -32428,17 +32004,17 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) ProtoMethods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalsForBlockResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerRegisteredInTopicIdResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalsForBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsReputerRegisteredInTopicIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Removals", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsRegistered", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -32448,26 +32024,12 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) ProtoMethods } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Removals = append(x.Removals, &DelegateStakeRemovalInfo{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Removals[len(x.Removals)-1]); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex + x.IsRegistered = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -32504,28 +32066,26 @@ func (x *fastReflection_QueryDelegateStakeRemovalsForBlockResponse) ProtoMethods } var ( - md_QueryStakeRemovalInfoRequest protoreflect.MessageDescriptor - fd_QueryStakeRemovalInfoRequest_topic_id protoreflect.FieldDescriptor - fd_QueryStakeRemovalInfoRequest_reputer protoreflect.FieldDescriptor + md_QueryIsWhitelistAdminRequest protoreflect.MessageDescriptor + fd_QueryIsWhitelistAdminRequest_address protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeRemovalInfoRequest = File_emissions_v1_query_proto.Messages().ByName("QueryStakeRemovalInfoRequest") - fd_QueryStakeRemovalInfoRequest_topic_id = md_QueryStakeRemovalInfoRequest.Fields().ByName("topic_id") - fd_QueryStakeRemovalInfoRequest_reputer = md_QueryStakeRemovalInfoRequest.Fields().ByName("reputer") + file_emissions_v2_query_proto_init() + md_QueryIsWhitelistAdminRequest = File_emissions_v2_query_proto.Messages().ByName("QueryIsWhitelistAdminRequest") + fd_QueryIsWhitelistAdminRequest_address = md_QueryIsWhitelistAdminRequest.Fields().ByName("address") } -var _ protoreflect.Message = (*fastReflection_QueryStakeRemovalInfoRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsWhitelistAdminRequest)(nil) -type fastReflection_QueryStakeRemovalInfoRequest QueryStakeRemovalInfoRequest +type fastReflection_QueryIsWhitelistAdminRequest QueryIsWhitelistAdminRequest -func (x *QueryStakeRemovalInfoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeRemovalInfoRequest)(x) +func (x *QueryIsWhitelistAdminRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsWhitelistAdminRequest)(x) } -func (x *QueryStakeRemovalInfoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[72] +func (x *QueryIsWhitelistAdminRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[70] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -32536,43 +32096,43 @@ func (x *QueryStakeRemovalInfoRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryStakeRemovalInfoRequest_messageType fastReflection_QueryStakeRemovalInfoRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeRemovalInfoRequest_messageType{} +var _fastReflection_QueryIsWhitelistAdminRequest_messageType fastReflection_QueryIsWhitelistAdminRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsWhitelistAdminRequest_messageType{} -type fastReflection_QueryStakeRemovalInfoRequest_messageType struct{} +type fastReflection_QueryIsWhitelistAdminRequest_messageType struct{} -func (x fastReflection_QueryStakeRemovalInfoRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeRemovalInfoRequest)(nil) +func (x fastReflection_QueryIsWhitelistAdminRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsWhitelistAdminRequest)(nil) } -func (x fastReflection_QueryStakeRemovalInfoRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeRemovalInfoRequest) +func (x fastReflection_QueryIsWhitelistAdminRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsWhitelistAdminRequest) } -func (x fastReflection_QueryStakeRemovalInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeRemovalInfoRequest +func (x fastReflection_QueryIsWhitelistAdminRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsWhitelistAdminRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeRemovalInfoRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeRemovalInfoRequest +func (x *fastReflection_QueryIsWhitelistAdminRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsWhitelistAdminRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeRemovalInfoRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeRemovalInfoRequest_messageType +func (x *fastReflection_QueryIsWhitelistAdminRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryIsWhitelistAdminRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeRemovalInfoRequest) New() protoreflect.Message { - return new(fastReflection_QueryStakeRemovalInfoRequest) +func (x *fastReflection_QueryIsWhitelistAdminRequest) New() protoreflect.Message { + return new(fastReflection_QueryIsWhitelistAdminRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeRemovalInfoRequest) Interface() protoreflect.ProtoMessage { - return (*QueryStakeRemovalInfoRequest)(x) +func (x *fastReflection_QueryIsWhitelistAdminRequest) Interface() protoreflect.ProtoMessage { + return (*QueryIsWhitelistAdminRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -32580,16 +32140,10 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeRemovalInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryStakeRemovalInfoRequest_topic_id, value) { - return - } - } - if x.Reputer != "" { - value := protoreflect.ValueOfString(x.Reputer) - if !f(fd_QueryStakeRemovalInfoRequest_reputer, value) { +func (x *fastReflection_QueryIsWhitelistAdminRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Address != "" { + value := protoreflect.ValueOfString(x.Address) + if !f(fd_QueryIsWhitelistAdminRequest_address, value) { return } } @@ -32606,17 +32160,15 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeRemovalInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsWhitelistAdminRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalInfoRequest.topic_id": - return x.TopicId != uint64(0) - case "emissions.v1.QueryStakeRemovalInfoRequest.reputer": - return x.Reputer != "" + case "emissions.v2.QueryIsWhitelistAdminRequest.address": + return x.Address != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWhitelistAdminRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWhitelistAdminRequest does not contain field %s", fd.FullName())) } } @@ -32626,17 +32178,15 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalInfoRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsWhitelistAdminRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalInfoRequest.topic_id": - x.TopicId = uint64(0) - case "emissions.v1.QueryStakeRemovalInfoRequest.reputer": - x.Reputer = "" + case "emissions.v2.QueryIsWhitelistAdminRequest.address": + x.Address = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWhitelistAdminRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWhitelistAdminRequest does not contain field %s", fd.FullName())) } } @@ -32646,19 +32196,16 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeRemovalInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWhitelistAdminRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeRemovalInfoRequest.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryStakeRemovalInfoRequest.reputer": - value := x.Reputer + case "emissions.v2.QueryIsWhitelistAdminRequest.address": + value := x.Address return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWhitelistAdminRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalInfoRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWhitelistAdminRequest does not contain field %s", descriptor.FullName())) } } @@ -32672,17 +32219,15 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsWhitelistAdminRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalInfoRequest.topic_id": - x.TopicId = value.Uint() - case "emissions.v1.QueryStakeRemovalInfoRequest.reputer": - x.Reputer = value.Interface().(string) + case "emissions.v2.QueryIsWhitelistAdminRequest.address": + x.Address = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWhitelistAdminRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWhitelistAdminRequest does not contain field %s", fd.FullName())) } } @@ -32696,44 +32241,40 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWhitelistAdminRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalInfoRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryStakeRemovalInfoRequest is not mutable")) - case "emissions.v1.QueryStakeRemovalInfoRequest.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.QueryStakeRemovalInfoRequest is not mutable")) + case "emissions.v2.QueryIsWhitelistAdminRequest.address": + panic(fmt.Errorf("field address of message emissions.v2.QueryIsWhitelistAdminRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWhitelistAdminRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWhitelistAdminRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeRemovalInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWhitelistAdminRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalInfoRequest.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryStakeRemovalInfoRequest.reputer": + case "emissions.v2.QueryIsWhitelistAdminRequest.address": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWhitelistAdminRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWhitelistAdminRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeRemovalInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsWhitelistAdminRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeRemovalInfoRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryIsWhitelistAdminRequest", d.FullName())) } panic("unreachable") } @@ -32741,7 +32282,7 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeRemovalInfoRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsWhitelistAdminRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -32752,7 +32293,7 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalInfoRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsWhitelistAdminRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -32764,7 +32305,7 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeRemovalInfoRequest) IsValid() bool { +func (x *fastReflection_QueryIsWhitelistAdminRequest) IsValid() bool { return x != nil } @@ -32774,9 +32315,9 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeRemovalInfoRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsWhitelistAdminRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeRemovalInfoRequest) + x := input.Message.Interface().(*QueryIsWhitelistAdminRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -32788,10 +32329,7 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) ProtoMethods() *protoiface var n int var l int _ = l - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) - } - l = len(x.Reputer) + l = len(x.Address) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -32805,7 +32343,7 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeRemovalInfoRequest) + x := input.Message.Interface().(*QueryIsWhitelistAdminRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -32824,17 +32362,12 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Reputer) > 0 { - i -= len(x.Reputer) - copy(dAtA[i:], x.Reputer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) - i-- - dAtA[i] = 0x12 - } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + if len(x.Address) > 0 { + i -= len(x.Address) + copy(dAtA[i:], x.Address) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Address))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -32847,7 +32380,7 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeRemovalInfoRequest) + x := input.Message.Interface().(*QueryIsWhitelistAdminRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -32879,34 +32412,15 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalInfoRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWhitelistAdminRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWhitelistAdminRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - x.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -32934,7 +32448,7 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) ProtoMethods() *protoiface if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Reputer = string(dAtA[iNdEx:postIndex]) + x.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -32972,26 +32486,26 @@ func (x *fastReflection_QueryStakeRemovalInfoRequest) ProtoMethods() *protoiface } var ( - md_QueryStakeRemovalInfoResponse protoreflect.MessageDescriptor - fd_QueryStakeRemovalInfoResponse_removal protoreflect.FieldDescriptor + md_QueryIsWhitelistAdminResponse protoreflect.MessageDescriptor + fd_QueryIsWhitelistAdminResponse_is_admin protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeRemovalInfoResponse = File_emissions_v1_query_proto.Messages().ByName("QueryStakeRemovalInfoResponse") - fd_QueryStakeRemovalInfoResponse_removal = md_QueryStakeRemovalInfoResponse.Fields().ByName("removal") + file_emissions_v2_query_proto_init() + md_QueryIsWhitelistAdminResponse = File_emissions_v2_query_proto.Messages().ByName("QueryIsWhitelistAdminResponse") + fd_QueryIsWhitelistAdminResponse_is_admin = md_QueryIsWhitelistAdminResponse.Fields().ByName("is_admin") } -var _ protoreflect.Message = (*fastReflection_QueryStakeRemovalInfoResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsWhitelistAdminResponse)(nil) -type fastReflection_QueryStakeRemovalInfoResponse QueryStakeRemovalInfoResponse +type fastReflection_QueryIsWhitelistAdminResponse QueryIsWhitelistAdminResponse -func (x *QueryStakeRemovalInfoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeRemovalInfoResponse)(x) +func (x *QueryIsWhitelistAdminResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsWhitelistAdminResponse)(x) } -func (x *QueryStakeRemovalInfoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[73] +func (x *QueryIsWhitelistAdminResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[71] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -33002,43 +32516,43 @@ func (x *QueryStakeRemovalInfoResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryStakeRemovalInfoResponse_messageType fastReflection_QueryStakeRemovalInfoResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeRemovalInfoResponse_messageType{} +var _fastReflection_QueryIsWhitelistAdminResponse_messageType fastReflection_QueryIsWhitelistAdminResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsWhitelistAdminResponse_messageType{} -type fastReflection_QueryStakeRemovalInfoResponse_messageType struct{} +type fastReflection_QueryIsWhitelistAdminResponse_messageType struct{} -func (x fastReflection_QueryStakeRemovalInfoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeRemovalInfoResponse)(nil) +func (x fastReflection_QueryIsWhitelistAdminResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsWhitelistAdminResponse)(nil) } -func (x fastReflection_QueryStakeRemovalInfoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeRemovalInfoResponse) +func (x fastReflection_QueryIsWhitelistAdminResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsWhitelistAdminResponse) } -func (x fastReflection_QueryStakeRemovalInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeRemovalInfoResponse +func (x fastReflection_QueryIsWhitelistAdminResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsWhitelistAdminResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeRemovalInfoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeRemovalInfoResponse +func (x *fastReflection_QueryIsWhitelistAdminResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsWhitelistAdminResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeRemovalInfoResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeRemovalInfoResponse_messageType +func (x *fastReflection_QueryIsWhitelistAdminResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryIsWhitelistAdminResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeRemovalInfoResponse) New() protoreflect.Message { - return new(fastReflection_QueryStakeRemovalInfoResponse) +func (x *fastReflection_QueryIsWhitelistAdminResponse) New() protoreflect.Message { + return new(fastReflection_QueryIsWhitelistAdminResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeRemovalInfoResponse) Interface() protoreflect.ProtoMessage { - return (*QueryStakeRemovalInfoResponse)(x) +func (x *fastReflection_QueryIsWhitelistAdminResponse) Interface() protoreflect.ProtoMessage { + return (*QueryIsWhitelistAdminResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -33046,10 +32560,10 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeRemovalInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Removal != nil { - value := protoreflect.ValueOfMessage(x.Removal.ProtoReflect()) - if !f(fd_QueryStakeRemovalInfoResponse_removal, value) { +func (x *fastReflection_QueryIsWhitelistAdminResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.IsAdmin != false { + value := protoreflect.ValueOfBool(x.IsAdmin) + if !f(fd_QueryIsWhitelistAdminResponse_is_admin, value) { return } } @@ -33066,15 +32580,15 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) Range(f func(protoreflect // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeRemovalInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsWhitelistAdminResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalInfoResponse.removal": - return x.Removal != nil + case "emissions.v2.QueryIsWhitelistAdminResponse.is_admin": + return x.IsAdmin != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWhitelistAdminResponse does not contain field %s", fd.FullName())) } } @@ -33084,15 +32598,15 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalInfoResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsWhitelistAdminResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalInfoResponse.removal": - x.Removal = nil + case "emissions.v2.QueryIsWhitelistAdminResponse.is_admin": + x.IsAdmin = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWhitelistAdminResponse does not contain field %s", fd.FullName())) } } @@ -33102,16 +32616,16 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) Clear(fd protoreflect.Fie // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeRemovalInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWhitelistAdminResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeRemovalInfoResponse.removal": - value := x.Removal - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryIsWhitelistAdminResponse.is_admin": + value := x.IsAdmin + return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalInfoResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWhitelistAdminResponse does not contain field %s", descriptor.FullName())) } } @@ -33125,15 +32639,15 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsWhitelistAdminResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalInfoResponse.removal": - x.Removal = value.Message().Interface().(*StakeRemovalInfo) + case "emissions.v2.QueryIsWhitelistAdminResponse.is_admin": + x.IsAdmin = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWhitelistAdminResponse does not contain field %s", fd.FullName())) } } @@ -33147,44 +32661,40 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWhitelistAdminResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalInfoResponse.removal": - if x.Removal == nil { - x.Removal = new(StakeRemovalInfo) - } - return protoreflect.ValueOfMessage(x.Removal.ProtoReflect()) + case "emissions.v2.QueryIsWhitelistAdminResponse.is_admin": + panic(fmt.Errorf("field is_admin of message emissions.v2.QueryIsWhitelistAdminResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWhitelistAdminResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeRemovalInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsWhitelistAdminResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalInfoResponse.removal": - m := new(StakeRemovalInfo) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryIsWhitelistAdminResponse.is_admin": + return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsWhitelistAdminResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeRemovalInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsWhitelistAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeRemovalInfoResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryIsWhitelistAdminResponse", d.FullName())) } panic("unreachable") } @@ -33192,7 +32702,7 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) WhichOneof(d protoreflect // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeRemovalInfoResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsWhitelistAdminResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -33203,7 +32713,7 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalInfoResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsWhitelistAdminResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -33215,7 +32725,7 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) SetUnknown(fields protore // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeRemovalInfoResponse) IsValid() bool { +func (x *fastReflection_QueryIsWhitelistAdminResponse) IsValid() bool { return x != nil } @@ -33225,9 +32735,9 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeRemovalInfoResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsWhitelistAdminResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeRemovalInfoResponse) + x := input.Message.Interface().(*QueryIsWhitelistAdminResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -33239,9 +32749,8 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) ProtoMethods() *protoifac var n int var l int _ = l - if x.Removal != nil { - l = options.Size(x.Removal) - n += 1 + l + runtime.Sov(uint64(l)) + if x.IsAdmin { + n += 2 } if x.unknownFields != nil { n += len(x.unknownFields) @@ -33253,7 +32762,7 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeRemovalInfoResponse) + x := input.Message.Interface().(*QueryIsWhitelistAdminResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -33272,19 +32781,15 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) ProtoMethods() *protoifac i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Removal != nil { - encoded, err := options.Marshal(x.Removal) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + if x.IsAdmin { + i-- + if x.IsAdmin { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -33297,7 +32802,7 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeRemovalInfoResponse) + x := input.Message.Interface().(*QueryIsWhitelistAdminResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -33329,17 +32834,17 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalInfoResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWhitelistAdminResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsWhitelistAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Removal", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsAdmin", wireType) } - var msglen int + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -33349,28 +32854,12 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) ProtoMethods() *protoifac } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Removal == nil { - x.Removal = &StakeRemovalInfo{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Removal); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex + x.IsAdmin = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -33407,30 +32896,26 @@ func (x *fastReflection_QueryStakeRemovalInfoResponse) ProtoMethods() *protoifac } var ( - md_QueryDelegateStakeRemovalInfoRequest protoreflect.MessageDescriptor - fd_QueryDelegateStakeRemovalInfoRequest_topic_id protoreflect.FieldDescriptor - fd_QueryDelegateStakeRemovalInfoRequest_delegator protoreflect.FieldDescriptor - fd_QueryDelegateStakeRemovalInfoRequest_reputer protoreflect.FieldDescriptor + md_QueryStakeRemovalsUpUntilBlockRequest protoreflect.MessageDescriptor + fd_QueryStakeRemovalsUpUntilBlockRequest_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateStakeRemovalInfoRequest = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateStakeRemovalInfoRequest") - fd_QueryDelegateStakeRemovalInfoRequest_topic_id = md_QueryDelegateStakeRemovalInfoRequest.Fields().ByName("topic_id") - fd_QueryDelegateStakeRemovalInfoRequest_delegator = md_QueryDelegateStakeRemovalInfoRequest.Fields().ByName("delegator") - fd_QueryDelegateStakeRemovalInfoRequest_reputer = md_QueryDelegateStakeRemovalInfoRequest.Fields().ByName("reputer") + file_emissions_v2_query_proto_init() + md_QueryStakeRemovalsUpUntilBlockRequest = File_emissions_v2_query_proto.Messages().ByName("QueryStakeRemovalsUpUntilBlockRequest") + fd_QueryStakeRemovalsUpUntilBlockRequest_block_height = md_QueryStakeRemovalsUpUntilBlockRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeRemovalInfoRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeRemovalsUpUntilBlockRequest)(nil) -type fastReflection_QueryDelegateStakeRemovalInfoRequest QueryDelegateStakeRemovalInfoRequest +type fastReflection_QueryStakeRemovalsUpUntilBlockRequest QueryStakeRemovalsUpUntilBlockRequest -func (x *QueryDelegateStakeRemovalInfoRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeRemovalInfoRequest)(x) +func (x *QueryStakeRemovalsUpUntilBlockRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeRemovalsUpUntilBlockRequest)(x) } -func (x *QueryDelegateStakeRemovalInfoRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[74] +func (x *QueryStakeRemovalsUpUntilBlockRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[72] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -33441,43 +32926,43 @@ func (x *QueryDelegateStakeRemovalInfoRequest) slowProtoReflect() protoreflect.M return mi.MessageOf(x) } -var _fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType{} +var _fastReflection_QueryStakeRemovalsUpUntilBlockRequest_messageType fastReflection_QueryStakeRemovalsUpUntilBlockRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeRemovalsUpUntilBlockRequest_messageType{} -type fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType struct{} +type fastReflection_QueryStakeRemovalsUpUntilBlockRequest_messageType struct{} -func (x fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeRemovalInfoRequest)(nil) +func (x fastReflection_QueryStakeRemovalsUpUntilBlockRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeRemovalsUpUntilBlockRequest)(nil) } -func (x fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeRemovalInfoRequest) +func (x fastReflection_QueryStakeRemovalsUpUntilBlockRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeRemovalsUpUntilBlockRequest) } -func (x fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeRemovalInfoRequest +func (x fastReflection_QueryStakeRemovalsUpUntilBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeRemovalsUpUntilBlockRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeRemovalInfoRequest +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeRemovalsUpUntilBlockRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeRemovalsUpUntilBlockRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeRemovalInfoRequest) +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) New() protoreflect.Message { + return new(fastReflection_QueryStakeRemovalsUpUntilBlockRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateStakeRemovalInfoRequest)(x) +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) Interface() protoreflect.ProtoMessage { + return (*QueryStakeRemovalsUpUntilBlockRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -33485,22 +32970,10 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Interface() protor // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryDelegateStakeRemovalInfoRequest_topic_id, value) { - return - } - } - if x.Delegator != "" { - value := protoreflect.ValueOfString(x.Delegator) - if !f(fd_QueryDelegateStakeRemovalInfoRequest_delegator, value) { - return - } - } - if x.Reputer != "" { - value := protoreflect.ValueOfString(x.Reputer) - if !f(fd_QueryDelegateStakeRemovalInfoRequest_reputer, value) { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_QueryStakeRemovalsUpUntilBlockRequest_block_height, value) { return } } @@ -33517,19 +32990,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Range(f func(proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.topic_id": - return x.TopicId != uint64(0) - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.delegator": - return x.Delegator != "" - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.reputer": - return x.Reputer != "" + case "emissions.v2.QueryStakeRemovalsUpUntilBlockRequest.block_height": + return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalsUpUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalsUpUntilBlockRequest does not contain field %s", fd.FullName())) } } @@ -33539,19 +33008,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Has(fd protoreflec // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.topic_id": - x.TopicId = uint64(0) - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.delegator": - x.Delegator = "" - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.reputer": - x.Reputer = "" + case "emissions.v2.QueryStakeRemovalsUpUntilBlockRequest.block_height": + x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalsUpUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalsUpUntilBlockRequest does not contain field %s", fd.FullName())) } } @@ -33561,22 +33026,16 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Clear(fd protorefl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.delegator": - value := x.Delegator - return protoreflect.ValueOfString(value) - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.reputer": - value := x.Reputer - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryStakeRemovalsUpUntilBlockRequest.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalsUpUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalInfoRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalsUpUntilBlockRequest does not contain field %s", descriptor.FullName())) } } @@ -33590,19 +33049,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Get(descriptor pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.topic_id": - x.TopicId = value.Uint() - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.delegator": - x.Delegator = value.Interface().(string) - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.reputer": - x.Reputer = value.Interface().(string) + case "emissions.v2.QueryStakeRemovalsUpUntilBlockRequest.block_height": + x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalsUpUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalsUpUntilBlockRequest does not contain field %s", fd.FullName())) } } @@ -33616,48 +33071,40 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Set(fd protoreflec // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryDelegateStakeRemovalInfoRequest is not mutable")) - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.delegator": - panic(fmt.Errorf("field delegator of message emissions.v1.QueryDelegateStakeRemovalInfoRequest is not mutable")) - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.QueryDelegateStakeRemovalInfoRequest is not mutable")) + case "emissions.v2.QueryStakeRemovalsUpUntilBlockRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryStakeRemovalsUpUntilBlockRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalsUpUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalsUpUntilBlockRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.delegator": - return protoreflect.ValueOfString("") - case "emissions.v1.QueryDelegateStakeRemovalInfoRequest.reputer": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryStakeRemovalsUpUntilBlockRequest.block_height": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalInfoRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalsUpUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalInfoRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalsUpUntilBlockRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateStakeRemovalInfoRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeRemovalsUpUntilBlockRequest", d.FullName())) } panic("unreachable") } @@ -33665,7 +33112,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) WhichOneof(d proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -33676,7 +33123,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) GetUnknown() proto // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -33688,7 +33135,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) IsValid() bool { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) IsValid() bool { return x != nil } @@ -33698,9 +33145,9 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateStakeRemovalInfoRequest) + x := input.Message.Interface().(*QueryStakeRemovalsUpUntilBlockRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -33712,16 +33159,8 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) ProtoMethods() *pr var n int var l int _ = l - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) - } - l = len(x.Delegator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Reputer) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -33733,7 +33172,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) ProtoMethods() *pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeRemovalInfoRequest) + x := input.Message.Interface().(*QueryStakeRemovalsUpUntilBlockRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -33752,22 +33191,8 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) ProtoMethods() *pr i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Reputer) > 0 { - i -= len(x.Reputer) - copy(dAtA[i:], x.Reputer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) - i-- - dAtA[i] = 0x1a - } - if len(x.Delegator) > 0 { - i -= len(x.Delegator) - copy(dAtA[i:], x.Delegator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Delegator))) - i-- - dAtA[i] = 0x12 - } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- dAtA[i] = 0x8 } @@ -33782,7 +33207,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) ProtoMethods() *pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeRemovalInfoRequest) + x := input.Message.Interface().(*QueryStakeRemovalsUpUntilBlockRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -33814,68 +33239,17 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) ProtoMethods() *pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalInfoRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalsUpUntilBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalsUpUntilBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - x.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Delegator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Delegator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } - var stringLen uint64 + x.BlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -33885,24 +33259,11 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) ProtoMethods() *pr } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.BlockHeight |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Reputer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -33938,27 +33299,78 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) ProtoMethods() *pr } } +var _ protoreflect.List = (*_QueryStakeRemovalsUpUntilBlockResponse_1_list)(nil) + +type _QueryStakeRemovalsUpUntilBlockResponse_1_list struct { + list *[]*StakeRemovalInfo +} + +func (x *_QueryStakeRemovalsUpUntilBlockResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryStakeRemovalsUpUntilBlockResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryStakeRemovalsUpUntilBlockResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*StakeRemovalInfo) + (*x.list)[i] = concreteValue +} + +func (x *_QueryStakeRemovalsUpUntilBlockResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*StakeRemovalInfo) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryStakeRemovalsUpUntilBlockResponse_1_list) AppendMutable() protoreflect.Value { + v := new(StakeRemovalInfo) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryStakeRemovalsUpUntilBlockResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryStakeRemovalsUpUntilBlockResponse_1_list) NewElement() protoreflect.Value { + v := new(StakeRemovalInfo) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryStakeRemovalsUpUntilBlockResponse_1_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryDelegateStakeRemovalInfoResponse protoreflect.MessageDescriptor - fd_QueryDelegateStakeRemovalInfoResponse_removal protoreflect.FieldDescriptor + md_QueryStakeRemovalsUpUntilBlockResponse protoreflect.MessageDescriptor + fd_QueryStakeRemovalsUpUntilBlockResponse_removals protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateStakeRemovalInfoResponse = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateStakeRemovalInfoResponse") - fd_QueryDelegateStakeRemovalInfoResponse_removal = md_QueryDelegateStakeRemovalInfoResponse.Fields().ByName("removal") + file_emissions_v2_query_proto_init() + md_QueryStakeRemovalsUpUntilBlockResponse = File_emissions_v2_query_proto.Messages().ByName("QueryStakeRemovalsUpUntilBlockResponse") + fd_QueryStakeRemovalsUpUntilBlockResponse_removals = md_QueryStakeRemovalsUpUntilBlockResponse.Fields().ByName("removals") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeRemovalInfoResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeRemovalsUpUntilBlockResponse)(nil) -type fastReflection_QueryDelegateStakeRemovalInfoResponse QueryDelegateStakeRemovalInfoResponse +type fastReflection_QueryStakeRemovalsUpUntilBlockResponse QueryStakeRemovalsUpUntilBlockResponse -func (x *QueryDelegateStakeRemovalInfoResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeRemovalInfoResponse)(x) +func (x *QueryStakeRemovalsUpUntilBlockResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeRemovalsUpUntilBlockResponse)(x) } -func (x *QueryDelegateStakeRemovalInfoResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[75] +func (x *QueryStakeRemovalsUpUntilBlockResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[73] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -33969,43 +33381,43 @@ func (x *QueryDelegateStakeRemovalInfoResponse) slowProtoReflect() protoreflect. return mi.MessageOf(x) } -var _fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType{} +var _fastReflection_QueryStakeRemovalsUpUntilBlockResponse_messageType fastReflection_QueryStakeRemovalsUpUntilBlockResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeRemovalsUpUntilBlockResponse_messageType{} -type fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType struct{} +type fastReflection_QueryStakeRemovalsUpUntilBlockResponse_messageType struct{} -func (x fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeRemovalInfoResponse)(nil) +func (x fastReflection_QueryStakeRemovalsUpUntilBlockResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeRemovalsUpUntilBlockResponse)(nil) } -func (x fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeRemovalInfoResponse) +func (x fastReflection_QueryStakeRemovalsUpUntilBlockResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeRemovalsUpUntilBlockResponse) } -func (x fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeRemovalInfoResponse +func (x fastReflection_QueryStakeRemovalsUpUntilBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeRemovalsUpUntilBlockResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeRemovalInfoResponse +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeRemovalsUpUntilBlockResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeRemovalsUpUntilBlockResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeRemovalInfoResponse) +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) New() protoreflect.Message { + return new(fastReflection_QueryStakeRemovalsUpUntilBlockResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateStakeRemovalInfoResponse)(x) +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) Interface() protoreflect.ProtoMessage { + return (*QueryStakeRemovalsUpUntilBlockResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -34013,10 +33425,10 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Interface() proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Removal != nil { - value := protoreflect.ValueOfMessage(x.Removal.ProtoReflect()) - if !f(fd_QueryDelegateStakeRemovalInfoResponse_removal, value) { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Removals) != 0 { + value := protoreflect.ValueOfList(&_QueryStakeRemovalsUpUntilBlockResponse_1_list{list: &x.Removals}) + if !f(fd_QueryStakeRemovalsUpUntilBlockResponse_removals, value) { return } } @@ -34033,15 +33445,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Range(f func(prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalInfoResponse.removal": - return x.Removal != nil + case "emissions.v2.QueryStakeRemovalsUpUntilBlockResponse.removals": + return len(x.Removals) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalsUpUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalsUpUntilBlockResponse does not contain field %s", fd.FullName())) } } @@ -34051,15 +33463,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Has(fd protorefle // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalInfoResponse.removal": - x.Removal = nil + case "emissions.v2.QueryStakeRemovalsUpUntilBlockResponse.removals": + x.Removals = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalsUpUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalsUpUntilBlockResponse does not contain field %s", fd.FullName())) } } @@ -34069,16 +33481,19 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Clear(fd protoref // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalInfoResponse.removal": - value := x.Removal - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryStakeRemovalsUpUntilBlockResponse.removals": + if len(x.Removals) == 0 { + return protoreflect.ValueOfList(&_QueryStakeRemovalsUpUntilBlockResponse_1_list{}) + } + listValue := &_QueryStakeRemovalsUpUntilBlockResponse_1_list{list: &x.Removals} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalsUpUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalInfoResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalsUpUntilBlockResponse does not contain field %s", descriptor.FullName())) } } @@ -34092,15 +33507,17 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Get(descriptor pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalInfoResponse.removal": - x.Removal = value.Message().Interface().(*DelegateStakeRemovalInfo) + case "emissions.v2.QueryStakeRemovalsUpUntilBlockResponse.removals": + lv := value.List() + clv := lv.(*_QueryStakeRemovalsUpUntilBlockResponse_1_list) + x.Removals = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalsUpUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalsUpUntilBlockResponse does not contain field %s", fd.FullName())) } } @@ -34114,44 +33531,45 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Set(fd protorefle // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalInfoResponse.removal": - if x.Removal == nil { - x.Removal = new(DelegateStakeRemovalInfo) + case "emissions.v2.QueryStakeRemovalsUpUntilBlockResponse.removals": + if x.Removals == nil { + x.Removals = []*StakeRemovalInfo{} } - return protoreflect.ValueOfMessage(x.Removal.ProtoReflect()) + value := &_QueryStakeRemovalsUpUntilBlockResponse_1_list{list: &x.Removals} + return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalsUpUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalsUpUntilBlockResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalInfoResponse.removal": - m := new(DelegateStakeRemovalInfo) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryStakeRemovalsUpUntilBlockResponse.removals": + list := []*StakeRemovalInfo{} + return protoreflect.ValueOfList(&_QueryStakeRemovalsUpUntilBlockResponse_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalInfoResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalsUpUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalInfoResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalsUpUntilBlockResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateStakeRemovalInfoResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeRemovalsUpUntilBlockResponse", d.FullName())) } panic("unreachable") } @@ -34159,7 +33577,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) WhichOneof(d prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -34170,7 +33588,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) GetUnknown() prot // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -34182,7 +33600,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) IsValid() bool { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) IsValid() bool { return x != nil } @@ -34192,9 +33610,9 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeRemovalsUpUntilBlockResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateStakeRemovalInfoResponse) + x := input.Message.Interface().(*QueryStakeRemovalsUpUntilBlockResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -34206,9 +33624,11 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) ProtoMethods() *p var n int var l int _ = l - if x.Removal != nil { - l = options.Size(x.Removal) - n += 1 + l + runtime.Sov(uint64(l)) + if len(x.Removals) > 0 { + for _, e := range x.Removals { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } } if x.unknownFields != nil { n += len(x.unknownFields) @@ -34220,7 +33640,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) ProtoMethods() *p } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeRemovalInfoResponse) + x := input.Message.Interface().(*QueryStakeRemovalsUpUntilBlockResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -34239,19 +33659,21 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) ProtoMethods() *p i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Removal != nil { - encoded, err := options.Marshal(x.Removal) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + if len(x.Removals) > 0 { + for iNdEx := len(x.Removals) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Removals[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -34264,7 +33686,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) ProtoMethods() *p }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeRemovalInfoResponse) + x := input.Message.Interface().(*QueryStakeRemovalsUpUntilBlockResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -34296,15 +33718,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) ProtoMethods() *p fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalInfoResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalsUpUntilBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalsUpUntilBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Removal", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Removals", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -34331,10 +33753,8 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) ProtoMethods() *p if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Removal == nil { - x.Removal = &DelegateStakeRemovalInfo{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Removal); err != nil { + x.Removals = append(x.Removals, &StakeRemovalInfo{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Removals[len(x.Removals)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -34374,26 +33794,26 @@ func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) ProtoMethods() *p } var ( - md_QueryTopicLastCommitRequest protoreflect.MessageDescriptor - fd_QueryTopicLastCommitRequest_topic_id protoreflect.FieldDescriptor + md_QueryDelegateStakeRemovalsUpUntilBlockRequest protoreflect.MessageDescriptor + fd_QueryDelegateStakeRemovalsUpUntilBlockRequest_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicLastCommitRequest = File_emissions_v1_query_proto.Messages().ByName("QueryTopicLastCommitRequest") - fd_QueryTopicLastCommitRequest_topic_id = md_QueryTopicLastCommitRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryDelegateStakeRemovalsUpUntilBlockRequest = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateStakeRemovalsUpUntilBlockRequest") + fd_QueryDelegateStakeRemovalsUpUntilBlockRequest_block_height = md_QueryDelegateStakeRemovalsUpUntilBlockRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryTopicLastCommitRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest)(nil) -type fastReflection_QueryTopicLastCommitRequest QueryTopicLastCommitRequest +type fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest QueryDelegateStakeRemovalsUpUntilBlockRequest -func (x *QueryTopicLastCommitRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicLastCommitRequest)(x) +func (x *QueryDelegateStakeRemovalsUpUntilBlockRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest)(x) } -func (x *QueryTopicLastCommitRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[76] +func (x *QueryDelegateStakeRemovalsUpUntilBlockRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[74] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -34404,43 +33824,43 @@ func (x *QueryTopicLastCommitRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTopicLastCommitRequest_messageType fastReflection_QueryTopicLastCommitRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicLastCommitRequest_messageType{} +var _fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest_messageType fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest_messageType{} -type fastReflection_QueryTopicLastCommitRequest_messageType struct{} +type fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest_messageType struct{} -func (x fastReflection_QueryTopicLastCommitRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicLastCommitRequest)(nil) +func (x fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest)(nil) } -func (x fastReflection_QueryTopicLastCommitRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicLastCommitRequest) +func (x fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) } -func (x fastReflection_QueryTopicLastCommitRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicLastCommitRequest +func (x fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeRemovalsUpUntilBlockRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicLastCommitRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicLastCommitRequest +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeRemovalsUpUntilBlockRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicLastCommitRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicLastCommitRequest_messageType +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicLastCommitRequest) New() protoreflect.Message { - return new(fastReflection_QueryTopicLastCommitRequest) +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicLastCommitRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTopicLastCommitRequest)(x) +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateStakeRemovalsUpUntilBlockRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -34448,10 +33868,10 @@ func (x *fastReflection_QueryTopicLastCommitRequest) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicLastCommitRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryTopicLastCommitRequest_topic_id, value) { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_QueryDelegateStakeRemovalsUpUntilBlockRequest_block_height, value) { return } } @@ -34468,15 +33888,15 @@ func (x *fastReflection_QueryTopicLastCommitRequest) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicLastCommitRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicLastCommitRequest.topic_id": - return x.TopicId != uint64(0) + case "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest.block_height": + return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastCommitRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastCommitRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest does not contain field %s", fd.FullName())) } } @@ -34486,15 +33906,15 @@ func (x *fastReflection_QueryTopicLastCommitRequest) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastCommitRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicLastCommitRequest.topic_id": - x.TopicId = uint64(0) + case "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest.block_height": + x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastCommitRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastCommitRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest does not contain field %s", fd.FullName())) } } @@ -34504,16 +33924,16 @@ func (x *fastReflection_QueryTopicLastCommitRequest) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicLastCommitRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicLastCommitRequest.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastCommitRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastCommitRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest does not contain field %s", descriptor.FullName())) } } @@ -34527,15 +33947,15 @@ func (x *fastReflection_QueryTopicLastCommitRequest) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastCommitRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicLastCommitRequest.topic_id": - x.TopicId = value.Uint() + case "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest.block_height": + x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastCommitRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastCommitRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest does not contain field %s", fd.FullName())) } } @@ -34549,40 +33969,40 @@ func (x *fastReflection_QueryTopicLastCommitRequest) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastCommitRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicLastCommitRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryTopicLastCommitRequest is not mutable")) + case "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastCommitRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastCommitRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicLastCommitRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicLastCommitRequest.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest.block_height": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastCommitRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastCommitRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicLastCommitRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicLastCommitRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest", d.FullName())) } panic("unreachable") } @@ -34590,7 +34010,7 @@ func (x *fastReflection_QueryTopicLastCommitRequest) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicLastCommitRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -34601,7 +34021,7 @@ func (x *fastReflection_QueryTopicLastCommitRequest) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastCommitRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -34613,7 +34033,7 @@ func (x *fastReflection_QueryTopicLastCommitRequest) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicLastCommitRequest) IsValid() bool { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) IsValid() bool { return x != nil } @@ -34623,9 +34043,9 @@ func (x *fastReflection_QueryTopicLastCommitRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicLastCommitRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicLastCommitRequest) + x := input.Message.Interface().(*QueryDelegateStakeRemovalsUpUntilBlockRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -34637,8 +34057,8 @@ func (x *fastReflection_QueryTopicLastCommitRequest) ProtoMethods() *protoiface. var n int var l int _ = l - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -34650,7 +34070,7 @@ func (x *fastReflection_QueryTopicLastCommitRequest) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicLastCommitRequest) + x := input.Message.Interface().(*QueryDelegateStakeRemovalsUpUntilBlockRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -34669,8 +34089,8 @@ func (x *fastReflection_QueryTopicLastCommitRequest) ProtoMethods() *protoiface. i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- dAtA[i] = 0x8 } @@ -34685,7 +34105,7 @@ func (x *fastReflection_QueryTopicLastCommitRequest) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicLastCommitRequest) + x := input.Message.Interface().(*QueryDelegateStakeRemovalsUpUntilBlockRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -34717,17 +34137,17 @@ func (x *fastReflection_QueryTopicLastCommitRequest) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastCommitRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalsUpUntilBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastCommitRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalsUpUntilBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } - x.TopicId = 0 + x.BlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -34737,7 +34157,7 @@ func (x *fastReflection_QueryTopicLastCommitRequest) ProtoMethods() *protoiface. } b := dAtA[iNdEx] iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift + x.BlockHeight |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -34777,27 +34197,78 @@ func (x *fastReflection_QueryTopicLastCommitRequest) ProtoMethods() *protoiface. } } +var _ protoreflect.List = (*_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list)(nil) + +type _QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list struct { + list *[]*DelegateStakeRemovalInfo +} + +func (x *_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*DelegateStakeRemovalInfo) + (*x.list)[i] = concreteValue +} + +func (x *_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*DelegateStakeRemovalInfo) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list) AppendMutable() protoreflect.Value { + v := new(DelegateStakeRemovalInfo) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list) NewElement() protoreflect.Value { + v := new(DelegateStakeRemovalInfo) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryTopicLastCommitResponse protoreflect.MessageDescriptor - fd_QueryTopicLastCommitResponse_last_commit protoreflect.FieldDescriptor + md_QueryDelegateStakeRemovalsUpUntilBlockResponse protoreflect.MessageDescriptor + fd_QueryDelegateStakeRemovalsUpUntilBlockResponse_removals protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicLastCommitResponse = File_emissions_v1_query_proto.Messages().ByName("QueryTopicLastCommitResponse") - fd_QueryTopicLastCommitResponse_last_commit = md_QueryTopicLastCommitResponse.Fields().ByName("last_commit") + file_emissions_v2_query_proto_init() + md_QueryDelegateStakeRemovalsUpUntilBlockResponse = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateStakeRemovalsUpUntilBlockResponse") + fd_QueryDelegateStakeRemovalsUpUntilBlockResponse_removals = md_QueryDelegateStakeRemovalsUpUntilBlockResponse.Fields().ByName("removals") } -var _ protoreflect.Message = (*fastReflection_QueryTopicLastCommitResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse)(nil) -type fastReflection_QueryTopicLastCommitResponse QueryTopicLastCommitResponse +type fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse QueryDelegateStakeRemovalsUpUntilBlockResponse -func (x *QueryTopicLastCommitResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicLastCommitResponse)(x) +func (x *QueryDelegateStakeRemovalsUpUntilBlockResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse)(x) } -func (x *QueryTopicLastCommitResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[77] +func (x *QueryDelegateStakeRemovalsUpUntilBlockResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[75] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -34808,43 +34279,43 @@ func (x *QueryTopicLastCommitResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTopicLastCommitResponse_messageType fastReflection_QueryTopicLastCommitResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicLastCommitResponse_messageType{} +var _fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse_messageType fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse_messageType{} -type fastReflection_QueryTopicLastCommitResponse_messageType struct{} +type fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse_messageType struct{} -func (x fastReflection_QueryTopicLastCommitResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicLastCommitResponse)(nil) +func (x fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse)(nil) } -func (x fastReflection_QueryTopicLastCommitResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicLastCommitResponse) +func (x fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) } -func (x fastReflection_QueryTopicLastCommitResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicLastCommitResponse +func (x fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeRemovalsUpUntilBlockResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicLastCommitResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicLastCommitResponse +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeRemovalsUpUntilBlockResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicLastCommitResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicLastCommitResponse_messageType +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicLastCommitResponse) New() protoreflect.Message { - return new(fastReflection_QueryTopicLastCommitResponse) +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicLastCommitResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTopicLastCommitResponse)(x) +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateStakeRemovalsUpUntilBlockResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -34852,10 +34323,10 @@ func (x *fastReflection_QueryTopicLastCommitResponse) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicLastCommitResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.LastCommit != nil { - value := protoreflect.ValueOfMessage(x.LastCommit.ProtoReflect()) - if !f(fd_QueryTopicLastCommitResponse_last_commit, value) { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Removals) != 0 { + value := protoreflect.ValueOfList(&_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list{list: &x.Removals}) + if !f(fd_QueryDelegateStakeRemovalsUpUntilBlockResponse_removals, value) { return } } @@ -34872,15 +34343,15 @@ func (x *fastReflection_QueryTopicLastCommitResponse) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicLastCommitResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicLastCommitResponse.last_commit": - return x.LastCommit != nil + case "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse.removals": + return len(x.Removals) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastCommitResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastCommitResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse does not contain field %s", fd.FullName())) } } @@ -34890,15 +34361,15 @@ func (x *fastReflection_QueryTopicLastCommitResponse) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastCommitResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicLastCommitResponse.last_commit": - x.LastCommit = nil + case "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse.removals": + x.Removals = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastCommitResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastCommitResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse does not contain field %s", fd.FullName())) } } @@ -34908,16 +34379,19 @@ func (x *fastReflection_QueryTopicLastCommitResponse) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicLastCommitResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicLastCommitResponse.last_commit": - value := x.LastCommit - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse.removals": + if len(x.Removals) == 0 { + return protoreflect.ValueOfList(&_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list{}) + } + listValue := &_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list{list: &x.Removals} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastCommitResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastCommitResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse does not contain field %s", descriptor.FullName())) } } @@ -34931,15 +34405,17 @@ func (x *fastReflection_QueryTopicLastCommitResponse) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastCommitResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicLastCommitResponse.last_commit": - x.LastCommit = value.Message().Interface().(*TimestampedActorNonce) + case "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse.removals": + lv := value.List() + clv := lv.(*_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list) + x.Removals = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastCommitResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastCommitResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse does not contain field %s", fd.FullName())) } } @@ -34953,44 +34429,45 @@ func (x *fastReflection_QueryTopicLastCommitResponse) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastCommitResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicLastCommitResponse.last_commit": - if x.LastCommit == nil { - x.LastCommit = new(TimestampedActorNonce) + case "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse.removals": + if x.Removals == nil { + x.Removals = []*DelegateStakeRemovalInfo{} } - return protoreflect.ValueOfMessage(x.LastCommit.ProtoReflect()) + value := &_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list{list: &x.Removals} + return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastCommitResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastCommitResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicLastCommitResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicLastCommitResponse.last_commit": - m := new(TimestampedActorNonce) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse.removals": + list := []*DelegateStakeRemovalInfo{} + return protoreflect.ValueOfList(&_QueryDelegateStakeRemovalsUpUntilBlockResponse_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastCommitResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastCommitResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicLastCommitResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicLastCommitResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse", d.FullName())) } panic("unreachable") } @@ -34998,7 +34475,7 @@ func (x *fastReflection_QueryTopicLastCommitResponse) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicLastCommitResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -35009,7 +34486,7 @@ func (x *fastReflection_QueryTopicLastCommitResponse) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastCommitResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -35021,7 +34498,7 @@ func (x *fastReflection_QueryTopicLastCommitResponse) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicLastCommitResponse) IsValid() bool { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) IsValid() bool { return x != nil } @@ -35031,9 +34508,9 @@ func (x *fastReflection_QueryTopicLastCommitResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicLastCommitResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateStakeRemovalsUpUntilBlockResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicLastCommitResponse) + x := input.Message.Interface().(*QueryDelegateStakeRemovalsUpUntilBlockResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -35045,9 +34522,11 @@ func (x *fastReflection_QueryTopicLastCommitResponse) ProtoMethods() *protoiface var n int var l int _ = l - if x.LastCommit != nil { - l = options.Size(x.LastCommit) - n += 1 + l + runtime.Sov(uint64(l)) + if len(x.Removals) > 0 { + for _, e := range x.Removals { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } } if x.unknownFields != nil { n += len(x.unknownFields) @@ -35059,7 +34538,7 @@ func (x *fastReflection_QueryTopicLastCommitResponse) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicLastCommitResponse) + x := input.Message.Interface().(*QueryDelegateStakeRemovalsUpUntilBlockResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -35078,19 +34557,21 @@ func (x *fastReflection_QueryTopicLastCommitResponse) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.LastCommit != nil { - encoded, err := options.Marshal(x.LastCommit) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + if len(x.Removals) > 0 { + for iNdEx := len(x.Removals) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Removals[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -35103,7 +34584,7 @@ func (x *fastReflection_QueryTopicLastCommitResponse) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicLastCommitResponse) + x := input.Message.Interface().(*QueryDelegateStakeRemovalsUpUntilBlockResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -35135,15 +34616,15 @@ func (x *fastReflection_QueryTopicLastCommitResponse) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastCommitResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalsUpUntilBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastCommitResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalsUpUntilBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastCommit", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Removals", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -35170,10 +34651,8 @@ func (x *fastReflection_QueryTopicLastCommitResponse) ProtoMethods() *protoiface if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.LastCommit == nil { - x.LastCommit = &TimestampedActorNonce{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastCommit); err != nil { + x.Removals = append(x.Removals, &DelegateStakeRemovalInfo{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Removals[len(x.Removals)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -35213,26 +34692,28 @@ func (x *fastReflection_QueryTopicLastCommitResponse) ProtoMethods() *protoiface } var ( - md_QueryTopicRewardNonceRequest protoreflect.MessageDescriptor - fd_QueryTopicRewardNonceRequest_topic_id protoreflect.FieldDescriptor + md_QueryStakeRemovalInfoRequest protoreflect.MessageDescriptor + fd_QueryStakeRemovalInfoRequest_topic_id protoreflect.FieldDescriptor + fd_QueryStakeRemovalInfoRequest_reputer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicRewardNonceRequest = File_emissions_v1_query_proto.Messages().ByName("QueryTopicRewardNonceRequest") - fd_QueryTopicRewardNonceRequest_topic_id = md_QueryTopicRewardNonceRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryStakeRemovalInfoRequest = File_emissions_v2_query_proto.Messages().ByName("QueryStakeRemovalInfoRequest") + fd_QueryStakeRemovalInfoRequest_topic_id = md_QueryStakeRemovalInfoRequest.Fields().ByName("topic_id") + fd_QueryStakeRemovalInfoRequest_reputer = md_QueryStakeRemovalInfoRequest.Fields().ByName("reputer") } -var _ protoreflect.Message = (*fastReflection_QueryTopicRewardNonceRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeRemovalInfoRequest)(nil) -type fastReflection_QueryTopicRewardNonceRequest QueryTopicRewardNonceRequest +type fastReflection_QueryStakeRemovalInfoRequest QueryStakeRemovalInfoRequest -func (x *QueryTopicRewardNonceRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicRewardNonceRequest)(x) +func (x *QueryStakeRemovalInfoRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeRemovalInfoRequest)(x) } -func (x *QueryTopicRewardNonceRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[78] +func (x *QueryStakeRemovalInfoRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[76] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -35243,43 +34724,43 @@ func (x *QueryTopicRewardNonceRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTopicRewardNonceRequest_messageType fastReflection_QueryTopicRewardNonceRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicRewardNonceRequest_messageType{} +var _fastReflection_QueryStakeRemovalInfoRequest_messageType fastReflection_QueryStakeRemovalInfoRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeRemovalInfoRequest_messageType{} -type fastReflection_QueryTopicRewardNonceRequest_messageType struct{} +type fastReflection_QueryStakeRemovalInfoRequest_messageType struct{} -func (x fastReflection_QueryTopicRewardNonceRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicRewardNonceRequest)(nil) +func (x fastReflection_QueryStakeRemovalInfoRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeRemovalInfoRequest)(nil) } -func (x fastReflection_QueryTopicRewardNonceRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicRewardNonceRequest) +func (x fastReflection_QueryStakeRemovalInfoRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeRemovalInfoRequest) } -func (x fastReflection_QueryTopicRewardNonceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicRewardNonceRequest +func (x fastReflection_QueryStakeRemovalInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeRemovalInfoRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicRewardNonceRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicRewardNonceRequest +func (x *fastReflection_QueryStakeRemovalInfoRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeRemovalInfoRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicRewardNonceRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicRewardNonceRequest_messageType +func (x *fastReflection_QueryStakeRemovalInfoRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeRemovalInfoRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicRewardNonceRequest) New() protoreflect.Message { - return new(fastReflection_QueryTopicRewardNonceRequest) +func (x *fastReflection_QueryStakeRemovalInfoRequest) New() protoreflect.Message { + return new(fastReflection_QueryStakeRemovalInfoRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicRewardNonceRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTopicRewardNonceRequest)(x) +func (x *fastReflection_QueryStakeRemovalInfoRequest) Interface() protoreflect.ProtoMessage { + return (*QueryStakeRemovalInfoRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -35287,10 +34768,16 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicRewardNonceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryStakeRemovalInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryTopicRewardNonceRequest_topic_id, value) { + if !f(fd_QueryStakeRemovalInfoRequest_topic_id, value) { + return + } + } + if x.Reputer != "" { + value := protoreflect.ValueOfString(x.Reputer) + if !f(fd_QueryStakeRemovalInfoRequest_reputer, value) { return } } @@ -35307,15 +34794,17 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicRewardNonceRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeRemovalInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicRewardNonceRequest.topic_id": + case "emissions.v2.QueryStakeRemovalInfoRequest.topic_id": return x.TopicId != uint64(0) + case "emissions.v2.QueryStakeRemovalInfoRequest.reputer": + return x.Reputer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRewardNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRewardNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalInfoRequest does not contain field %s", fd.FullName())) } } @@ -35325,15 +34814,17 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicRewardNonceRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeRemovalInfoRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicRewardNonceRequest.topic_id": + case "emissions.v2.QueryStakeRemovalInfoRequest.topic_id": x.TopicId = uint64(0) + case "emissions.v2.QueryStakeRemovalInfoRequest.reputer": + x.Reputer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRewardNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRewardNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalInfoRequest does not contain field %s", fd.FullName())) } } @@ -35343,16 +34834,19 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicRewardNonceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicRewardNonceRequest.topic_id": + case "emissions.v2.QueryStakeRemovalInfoRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryStakeRemovalInfoRequest.reputer": + value := x.Reputer + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRewardNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRewardNonceRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalInfoRequest does not contain field %s", descriptor.FullName())) } } @@ -35366,15 +34860,17 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicRewardNonceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeRemovalInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicRewardNonceRequest.topic_id": + case "emissions.v2.QueryStakeRemovalInfoRequest.topic_id": x.TopicId = value.Uint() + case "emissions.v2.QueryStakeRemovalInfoRequest.reputer": + x.Reputer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRewardNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRewardNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalInfoRequest does not contain field %s", fd.FullName())) } } @@ -35388,40 +34884,44 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicRewardNonceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicRewardNonceRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryTopicRewardNonceRequest is not mutable")) + case "emissions.v2.QueryStakeRemovalInfoRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryStakeRemovalInfoRequest is not mutable")) + case "emissions.v2.QueryStakeRemovalInfoRequest.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.QueryStakeRemovalInfoRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRewardNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRewardNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalInfoRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicRewardNonceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicRewardNonceRequest.topic_id": + case "emissions.v2.QueryStakeRemovalInfoRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryStakeRemovalInfoRequest.reputer": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRewardNonceRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRewardNonceRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalInfoRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicRewardNonceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeRemovalInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicRewardNonceRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeRemovalInfoRequest", d.FullName())) } panic("unreachable") } @@ -35429,7 +34929,7 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicRewardNonceRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeRemovalInfoRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -35440,7 +34940,7 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicRewardNonceRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeRemovalInfoRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -35452,7 +34952,7 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicRewardNonceRequest) IsValid() bool { +func (x *fastReflection_QueryStakeRemovalInfoRequest) IsValid() bool { return x != nil } @@ -35462,9 +34962,9 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicRewardNonceRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeRemovalInfoRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicRewardNonceRequest) + x := input.Message.Interface().(*QueryStakeRemovalInfoRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -35479,6 +34979,10 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) ProtoMethods() *protoiface if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } + l = len(x.Reputer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -35489,7 +34993,7 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicRewardNonceRequest) + x := input.Message.Interface().(*QueryStakeRemovalInfoRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -35508,6 +35012,13 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Reputer) > 0 { + i -= len(x.Reputer) + copy(dAtA[i:], x.Reputer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) + i-- + dAtA[i] = 0x12 + } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- @@ -35524,7 +35035,7 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicRewardNonceRequest) + x := input.Message.Interface().(*QueryStakeRemovalInfoRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -35556,10 +35067,10 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicRewardNonceRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicRewardNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -35581,6 +35092,38 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) ProtoMethods() *protoiface break } } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -35617,26 +35160,26 @@ func (x *fastReflection_QueryTopicRewardNonceRequest) ProtoMethods() *protoiface } var ( - md_QueryTopicRewardNonceResponse protoreflect.MessageDescriptor - fd_QueryTopicRewardNonceResponse_nonce protoreflect.FieldDescriptor + md_QueryStakeRemovalInfoResponse protoreflect.MessageDescriptor + fd_QueryStakeRemovalInfoResponse_removal protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicRewardNonceResponse = File_emissions_v1_query_proto.Messages().ByName("QueryTopicRewardNonceResponse") - fd_QueryTopicRewardNonceResponse_nonce = md_QueryTopicRewardNonceResponse.Fields().ByName("nonce") + file_emissions_v2_query_proto_init() + md_QueryStakeRemovalInfoResponse = File_emissions_v2_query_proto.Messages().ByName("QueryStakeRemovalInfoResponse") + fd_QueryStakeRemovalInfoResponse_removal = md_QueryStakeRemovalInfoResponse.Fields().ByName("removal") } -var _ protoreflect.Message = (*fastReflection_QueryTopicRewardNonceResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeRemovalInfoResponse)(nil) -type fastReflection_QueryTopicRewardNonceResponse QueryTopicRewardNonceResponse +type fastReflection_QueryStakeRemovalInfoResponse QueryStakeRemovalInfoResponse -func (x *QueryTopicRewardNonceResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicRewardNonceResponse)(x) +func (x *QueryStakeRemovalInfoResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeRemovalInfoResponse)(x) } -func (x *QueryTopicRewardNonceResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[79] +func (x *QueryStakeRemovalInfoResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[77] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -35647,43 +35190,43 @@ func (x *QueryTopicRewardNonceResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryTopicRewardNonceResponse_messageType fastReflection_QueryTopicRewardNonceResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicRewardNonceResponse_messageType{} +var _fastReflection_QueryStakeRemovalInfoResponse_messageType fastReflection_QueryStakeRemovalInfoResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeRemovalInfoResponse_messageType{} -type fastReflection_QueryTopicRewardNonceResponse_messageType struct{} +type fastReflection_QueryStakeRemovalInfoResponse_messageType struct{} -func (x fastReflection_QueryTopicRewardNonceResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicRewardNonceResponse)(nil) +func (x fastReflection_QueryStakeRemovalInfoResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeRemovalInfoResponse)(nil) } -func (x fastReflection_QueryTopicRewardNonceResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicRewardNonceResponse) +func (x fastReflection_QueryStakeRemovalInfoResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeRemovalInfoResponse) } -func (x fastReflection_QueryTopicRewardNonceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicRewardNonceResponse +func (x fastReflection_QueryStakeRemovalInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeRemovalInfoResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicRewardNonceResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicRewardNonceResponse +func (x *fastReflection_QueryStakeRemovalInfoResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeRemovalInfoResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicRewardNonceResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicRewardNonceResponse_messageType +func (x *fastReflection_QueryStakeRemovalInfoResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeRemovalInfoResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicRewardNonceResponse) New() protoreflect.Message { - return new(fastReflection_QueryTopicRewardNonceResponse) +func (x *fastReflection_QueryStakeRemovalInfoResponse) New() protoreflect.Message { + return new(fastReflection_QueryStakeRemovalInfoResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicRewardNonceResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTopicRewardNonceResponse)(x) +func (x *fastReflection_QueryStakeRemovalInfoResponse) Interface() protoreflect.ProtoMessage { + return (*QueryStakeRemovalInfoResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -35691,10 +35234,10 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicRewardNonceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Nonce != int64(0) { - value := protoreflect.ValueOfInt64(x.Nonce) - if !f(fd_QueryTopicRewardNonceResponse_nonce, value) { +func (x *fastReflection_QueryStakeRemovalInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Removal != nil { + value := protoreflect.ValueOfMessage(x.Removal.ProtoReflect()) + if !f(fd_QueryStakeRemovalInfoResponse_removal, value) { return } } @@ -35711,15 +35254,15 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) Range(f func(protoreflect // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicRewardNonceResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeRemovalInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicRewardNonceResponse.nonce": - return x.Nonce != int64(0) + case "emissions.v2.QueryStakeRemovalInfoResponse.removal": + return x.Removal != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRewardNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRewardNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalInfoResponse does not contain field %s", fd.FullName())) } } @@ -35729,15 +35272,15 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicRewardNonceResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeRemovalInfoResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicRewardNonceResponse.nonce": - x.Nonce = int64(0) + case "emissions.v2.QueryStakeRemovalInfoResponse.removal": + x.Removal = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRewardNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRewardNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalInfoResponse does not contain field %s", fd.FullName())) } } @@ -35747,16 +35290,16 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) Clear(fd protoreflect.Fie // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicRewardNonceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicRewardNonceResponse.nonce": - value := x.Nonce - return protoreflect.ValueOfInt64(value) + case "emissions.v2.QueryStakeRemovalInfoResponse.removal": + value := x.Removal + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRewardNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRewardNonceResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalInfoResponse does not contain field %s", descriptor.FullName())) } } @@ -35770,15 +35313,15 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicRewardNonceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeRemovalInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicRewardNonceResponse.nonce": - x.Nonce = value.Int() + case "emissions.v2.QueryStakeRemovalInfoResponse.removal": + x.Removal = value.Message().Interface().(*StakeRemovalInfo) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRewardNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRewardNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalInfoResponse does not contain field %s", fd.FullName())) } } @@ -35792,40 +35335,44 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicRewardNonceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicRewardNonceResponse.nonce": - panic(fmt.Errorf("field nonce of message emissions.v1.QueryTopicRewardNonceResponse is not mutable")) + case "emissions.v2.QueryStakeRemovalInfoResponse.removal": + if x.Removal == nil { + x.Removal = new(StakeRemovalInfo) + } + return protoreflect.ValueOfMessage(x.Removal.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRewardNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRewardNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalInfoResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicRewardNonceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicRewardNonceResponse.nonce": - return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.QueryStakeRemovalInfoResponse.removal": + m := new(StakeRemovalInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicRewardNonceResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicRewardNonceResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalInfoResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicRewardNonceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeRemovalInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicRewardNonceResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeRemovalInfoResponse", d.FullName())) } panic("unreachable") } @@ -35833,7 +35380,7 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) WhichOneof(d protoreflect // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicRewardNonceResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeRemovalInfoResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -35844,7 +35391,7 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicRewardNonceResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeRemovalInfoResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -35856,7 +35403,7 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) SetUnknown(fields protore // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicRewardNonceResponse) IsValid() bool { +func (x *fastReflection_QueryStakeRemovalInfoResponse) IsValid() bool { return x != nil } @@ -35866,9 +35413,9 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicRewardNonceResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeRemovalInfoResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicRewardNonceResponse) + x := input.Message.Interface().(*QueryStakeRemovalInfoResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -35880,8 +35427,9 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) ProtoMethods() *protoifac var n int var l int _ = l - if x.Nonce != 0 { - n += 1 + runtime.Sov(uint64(x.Nonce)) + if x.Removal != nil { + l = options.Size(x.Removal) + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -35893,7 +35441,7 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicRewardNonceResponse) + x := input.Message.Interface().(*QueryStakeRemovalInfoResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -35912,10 +35460,19 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) ProtoMethods() *protoifac i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Nonce != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) + if x.Removal != nil { + encoded, err := options.Marshal(x.Removal) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -35928,7 +35485,7 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicRewardNonceResponse) + x := input.Message.Interface().(*QueryStakeRemovalInfoResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -35960,17 +35517,17 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicRewardNonceResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicRewardNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Removal", wireType) } - x.Nonce = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -35980,11 +35537,28 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) ProtoMethods() *protoifac } b := dAtA[iNdEx] iNdEx++ - x.Nonce |= int64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Removal == nil { + x.Removal = &StakeRemovalInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Removal); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -36021,28 +35595,30 @@ func (x *fastReflection_QueryTopicRewardNonceResponse) ProtoMethods() *protoifac } var ( - md_QueryReputerLossBundlesAtBlockRequest protoreflect.MessageDescriptor - fd_QueryReputerLossBundlesAtBlockRequest_topic_id protoreflect.FieldDescriptor - fd_QueryReputerLossBundlesAtBlockRequest_block_height protoreflect.FieldDescriptor + md_QueryDelegateStakeRemovalInfoRequest protoreflect.MessageDescriptor + fd_QueryDelegateStakeRemovalInfoRequest_topic_id protoreflect.FieldDescriptor + fd_QueryDelegateStakeRemovalInfoRequest_delegator protoreflect.FieldDescriptor + fd_QueryDelegateStakeRemovalInfoRequest_reputer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryReputerLossBundlesAtBlockRequest = File_emissions_v1_query_proto.Messages().ByName("QueryReputerLossBundlesAtBlockRequest") - fd_QueryReputerLossBundlesAtBlockRequest_topic_id = md_QueryReputerLossBundlesAtBlockRequest.Fields().ByName("topic_id") - fd_QueryReputerLossBundlesAtBlockRequest_block_height = md_QueryReputerLossBundlesAtBlockRequest.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryDelegateStakeRemovalInfoRequest = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateStakeRemovalInfoRequest") + fd_QueryDelegateStakeRemovalInfoRequest_topic_id = md_QueryDelegateStakeRemovalInfoRequest.Fields().ByName("topic_id") + fd_QueryDelegateStakeRemovalInfoRequest_delegator = md_QueryDelegateStakeRemovalInfoRequest.Fields().ByName("delegator") + fd_QueryDelegateStakeRemovalInfoRequest_reputer = md_QueryDelegateStakeRemovalInfoRequest.Fields().ByName("reputer") } -var _ protoreflect.Message = (*fastReflection_QueryReputerLossBundlesAtBlockRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeRemovalInfoRequest)(nil) -type fastReflection_QueryReputerLossBundlesAtBlockRequest QueryReputerLossBundlesAtBlockRequest +type fastReflection_QueryDelegateStakeRemovalInfoRequest QueryDelegateStakeRemovalInfoRequest -func (x *QueryReputerLossBundlesAtBlockRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryReputerLossBundlesAtBlockRequest)(x) +func (x *QueryDelegateStakeRemovalInfoRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeRemovalInfoRequest)(x) } -func (x *QueryReputerLossBundlesAtBlockRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[80] +func (x *QueryDelegateStakeRemovalInfoRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[78] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -36053,43 +35629,43 @@ func (x *QueryReputerLossBundlesAtBlockRequest) slowProtoReflect() protoreflect. return mi.MessageOf(x) } -var _fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType{} +var _fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType{} -type fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType struct{} +type fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType struct{} -func (x fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryReputerLossBundlesAtBlockRequest)(nil) +func (x fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeRemovalInfoRequest)(nil) } -func (x fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryReputerLossBundlesAtBlockRequest) +func (x fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeRemovalInfoRequest) } -func (x fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerLossBundlesAtBlockRequest +func (x fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeRemovalInfoRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerLossBundlesAtBlockRequest +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeRemovalInfoRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateStakeRemovalInfoRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) New() protoreflect.Message { - return new(fastReflection_QueryReputerLossBundlesAtBlockRequest) +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeRemovalInfoRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Interface() protoreflect.ProtoMessage { - return (*QueryReputerLossBundlesAtBlockRequest)(x) +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateStakeRemovalInfoRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -36097,16 +35673,22 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Interface() proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryReputerLossBundlesAtBlockRequest_topic_id, value) { + if !f(fd_QueryDelegateStakeRemovalInfoRequest_topic_id, value) { return } } - if x.BlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryReputerLossBundlesAtBlockRequest_block_height, value) { + if x.Delegator != "" { + value := protoreflect.ValueOfString(x.Delegator) + if !f(fd_QueryDelegateStakeRemovalInfoRequest_delegator, value) { + return + } + } + if x.Reputer != "" { + value := protoreflect.ValueOfString(x.Reputer) + if !f(fd_QueryDelegateStakeRemovalInfoRequest_reputer, value) { return } } @@ -36123,17 +35705,19 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Range(f func(prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryReputerLossBundlesAtBlockRequest.topic_id": + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryReputerLossBundlesAtBlockRequest.block_height": - return x.BlockHeight != int64(0) + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.delegator": + return x.Delegator != "" + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.reputer": + return x.Reputer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerLossBundlesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerLossBundlesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalInfoRequest does not contain field %s", fd.FullName())) } } @@ -36143,17 +35727,19 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Has(fd protorefle // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryReputerLossBundlesAtBlockRequest.topic_id": + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryReputerLossBundlesAtBlockRequest.block_height": - x.BlockHeight = int64(0) + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.delegator": + x.Delegator = "" + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.reputer": + x.Reputer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerLossBundlesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerLossBundlesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalInfoRequest does not contain field %s", fd.FullName())) } } @@ -36163,19 +35749,22 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Clear(fd protoref // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryReputerLossBundlesAtBlockRequest.topic_id": + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryReputerLossBundlesAtBlockRequest.block_height": - value := x.BlockHeight - return protoreflect.ValueOfInt64(value) + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.delegator": + value := x.Delegator + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.reputer": + value := x.Reputer + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerLossBundlesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerLossBundlesAtBlockRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalInfoRequest does not contain field %s", descriptor.FullName())) } } @@ -36189,17 +35778,19 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Get(descriptor pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryReputerLossBundlesAtBlockRequest.topic_id": + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryReputerLossBundlesAtBlockRequest.block_height": - x.BlockHeight = value.Int() + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.delegator": + x.Delegator = value.Interface().(string) + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.reputer": + x.Reputer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerLossBundlesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerLossBundlesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalInfoRequest does not contain field %s", fd.FullName())) } } @@ -36213,44 +35804,48 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Set(fd protorefle // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerLossBundlesAtBlockRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryReputerLossBundlesAtBlockRequest is not mutable")) - case "emissions.v1.QueryReputerLossBundlesAtBlockRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryReputerLossBundlesAtBlockRequest is not mutable")) + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryDelegateStakeRemovalInfoRequest is not mutable")) + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.delegator": + panic(fmt.Errorf("field delegator of message emissions.v2.QueryDelegateStakeRemovalInfoRequest is not mutable")) + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.QueryDelegateStakeRemovalInfoRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerLossBundlesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerLossBundlesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalInfoRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerLossBundlesAtBlockRequest.topic_id": + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryReputerLossBundlesAtBlockRequest.block_height": - return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.delegator": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryDelegateStakeRemovalInfoRequest.reputer": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerLossBundlesAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalInfoRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerLossBundlesAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalInfoRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryReputerLossBundlesAtBlockRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateStakeRemovalInfoRequest", d.FullName())) } panic("unreachable") } @@ -36258,7 +35853,7 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) WhichOneof(d prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -36269,7 +35864,7 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) GetUnknown() prot // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -36281,7 +35876,7 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) IsValid() bool { +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) IsValid() bool { return x != nil } @@ -36291,9 +35886,9 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateStakeRemovalInfoRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryReputerLossBundlesAtBlockRequest) + x := input.Message.Interface().(*QueryDelegateStakeRemovalInfoRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -36308,8 +35903,13 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) ProtoMethods() *p if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - if x.BlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeight)) + l = len(x.Delegator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reputer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -36321,7 +35921,7 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) ProtoMethods() *p } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerLossBundlesAtBlockRequest) + x := input.Message.Interface().(*QueryDelegateStakeRemovalInfoRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -36340,10 +35940,19 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) ProtoMethods() *p i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.BlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + if len(x.Reputer) > 0 { + i -= len(x.Reputer) + copy(dAtA[i:], x.Reputer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x1a + } + if len(x.Delegator) > 0 { + i -= len(x.Delegator) + copy(dAtA[i:], x.Delegator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Delegator))) + i-- + dAtA[i] = 0x12 } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) @@ -36361,7 +35970,7 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) ProtoMethods() *p }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerLossBundlesAtBlockRequest) + x := input.Message.Interface().(*QueryDelegateStakeRemovalInfoRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -36393,10 +36002,10 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) ProtoMethods() *p fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerLossBundlesAtBlockRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerLossBundlesAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -36419,10 +36028,10 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) ProtoMethods() *p } } case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Delegator", wireType) } - x.BlockHeight = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -36432,11 +36041,56 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) ProtoMethods() *p } b := dAtA[iNdEx] iNdEx++ - x.BlockHeight |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Delegator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -36473,26 +36127,26 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) ProtoMethods() *p } var ( - md_QueryReputerLossBundlesAtBlockResponse protoreflect.MessageDescriptor - fd_QueryReputerLossBundlesAtBlockResponse_loss_bundles protoreflect.FieldDescriptor + md_QueryDelegateStakeRemovalInfoResponse protoreflect.MessageDescriptor + fd_QueryDelegateStakeRemovalInfoResponse_removal protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryReputerLossBundlesAtBlockResponse = File_emissions_v1_query_proto.Messages().ByName("QueryReputerLossBundlesAtBlockResponse") - fd_QueryReputerLossBundlesAtBlockResponse_loss_bundles = md_QueryReputerLossBundlesAtBlockResponse.Fields().ByName("loss_bundles") + file_emissions_v2_query_proto_init() + md_QueryDelegateStakeRemovalInfoResponse = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateStakeRemovalInfoResponse") + fd_QueryDelegateStakeRemovalInfoResponse_removal = md_QueryDelegateStakeRemovalInfoResponse.Fields().ByName("removal") } -var _ protoreflect.Message = (*fastReflection_QueryReputerLossBundlesAtBlockResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeRemovalInfoResponse)(nil) -type fastReflection_QueryReputerLossBundlesAtBlockResponse QueryReputerLossBundlesAtBlockResponse +type fastReflection_QueryDelegateStakeRemovalInfoResponse QueryDelegateStakeRemovalInfoResponse -func (x *QueryReputerLossBundlesAtBlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryReputerLossBundlesAtBlockResponse)(x) +func (x *QueryDelegateStakeRemovalInfoResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeRemovalInfoResponse)(x) } -func (x *QueryReputerLossBundlesAtBlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[81] +func (x *QueryDelegateStakeRemovalInfoResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[79] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -36503,43 +36157,43 @@ func (x *QueryReputerLossBundlesAtBlockResponse) slowProtoReflect() protoreflect return mi.MessageOf(x) } -var _fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType{} +var _fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType{} -type fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType struct{} +type fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType struct{} -func (x fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryReputerLossBundlesAtBlockResponse)(nil) +func (x fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeRemovalInfoResponse)(nil) } -func (x fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryReputerLossBundlesAtBlockResponse) +func (x fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeRemovalInfoResponse) } -func (x fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerLossBundlesAtBlockResponse +func (x fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeRemovalInfoResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputerLossBundlesAtBlockResponse +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeRemovalInfoResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateStakeRemovalInfoResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) New() protoreflect.Message { - return new(fastReflection_QueryReputerLossBundlesAtBlockResponse) +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeRemovalInfoResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Interface() protoreflect.ProtoMessage { - return (*QueryReputerLossBundlesAtBlockResponse)(x) +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateStakeRemovalInfoResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -36547,10 +36201,10 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Interface() prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.LossBundles != nil { - value := protoreflect.ValueOfMessage(x.LossBundles.ProtoReflect()) - if !f(fd_QueryReputerLossBundlesAtBlockResponse_loss_bundles, value) { +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Removal != nil { + value := protoreflect.ValueOfMessage(x.Removal.ProtoReflect()) + if !f(fd_QueryDelegateStakeRemovalInfoResponse_removal, value) { return } } @@ -36567,15 +36221,15 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Range(f func(pro // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryReputerLossBundlesAtBlockResponse.loss_bundles": - return x.LossBundles != nil + case "emissions.v2.QueryDelegateStakeRemovalInfoResponse.removal": + return x.Removal != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerLossBundlesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerLossBundlesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalInfoResponse does not contain field %s", fd.FullName())) } } @@ -36585,15 +36239,15 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Has(fd protorefl // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryReputerLossBundlesAtBlockResponse.loss_bundles": - x.LossBundles = nil + case "emissions.v2.QueryDelegateStakeRemovalInfoResponse.removal": + x.Removal = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerLossBundlesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerLossBundlesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalInfoResponse does not contain field %s", fd.FullName())) } } @@ -36603,16 +36257,16 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Clear(fd protore // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryReputerLossBundlesAtBlockResponse.loss_bundles": - value := x.LossBundles + case "emissions.v2.QueryDelegateStakeRemovalInfoResponse.removal": + value := x.Removal return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerLossBundlesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerLossBundlesAtBlockResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalInfoResponse does not contain field %s", descriptor.FullName())) } } @@ -36626,15 +36280,15 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Get(descriptor p // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryReputerLossBundlesAtBlockResponse.loss_bundles": - x.LossBundles = value.Message().Interface().(*ReputerValueBundles) + case "emissions.v2.QueryDelegateStakeRemovalInfoResponse.removal": + x.Removal = value.Message().Interface().(*DelegateStakeRemovalInfo) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerLossBundlesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerLossBundlesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalInfoResponse does not contain field %s", fd.FullName())) } } @@ -36648,44 +36302,44 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Set(fd protorefl // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerLossBundlesAtBlockResponse.loss_bundles": - if x.LossBundles == nil { - x.LossBundles = new(ReputerValueBundles) + case "emissions.v2.QueryDelegateStakeRemovalInfoResponse.removal": + if x.Removal == nil { + x.Removal = new(DelegateStakeRemovalInfo) } - return protoreflect.ValueOfMessage(x.LossBundles.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Removal.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerLossBundlesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerLossBundlesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalInfoResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputerLossBundlesAtBlockResponse.loss_bundles": - m := new(ReputerValueBundles) + case "emissions.v2.QueryDelegateStakeRemovalInfoResponse.removal": + m := new(DelegateStakeRemovalInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputerLossBundlesAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalInfoResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputerLossBundlesAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalInfoResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryReputerLossBundlesAtBlockResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateStakeRemovalInfoResponse", d.FullName())) } panic("unreachable") } @@ -36693,7 +36347,7 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) WhichOneof(d pro // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -36704,7 +36358,7 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) GetUnknown() pro // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -36716,7 +36370,7 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) SetUnknown(field // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) IsValid() bool { +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) IsValid() bool { return x != nil } @@ -36726,9 +36380,9 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateStakeRemovalInfoResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryReputerLossBundlesAtBlockResponse) + x := input.Message.Interface().(*QueryDelegateStakeRemovalInfoResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -36740,8 +36394,8 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) ProtoMethods() * var n int var l int _ = l - if x.LossBundles != nil { - l = options.Size(x.LossBundles) + if x.Removal != nil { + l = options.Size(x.Removal) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -36754,7 +36408,7 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) ProtoMethods() * } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerLossBundlesAtBlockResponse) + x := input.Message.Interface().(*QueryDelegateStakeRemovalInfoResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -36773,8 +36427,8 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) ProtoMethods() * i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.LossBundles != nil { - encoded, err := options.Marshal(x.LossBundles) + if x.Removal != nil { + encoded, err := options.Marshal(x.Removal) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -36798,7 +36452,7 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) ProtoMethods() * }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryReputerLossBundlesAtBlockResponse) + x := input.Message.Interface().(*QueryDelegateStakeRemovalInfoResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -36830,15 +36484,15 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) ProtoMethods() * fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerLossBundlesAtBlockResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerLossBundlesAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LossBundles", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Removal", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -36865,10 +36519,10 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) ProtoMethods() * if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.LossBundles == nil { - x.LossBundles = &ReputerValueBundles{} + if x.Removal == nil { + x.Removal = &DelegateStakeRemovalInfo{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LossBundles); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Removal); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -36908,28 +36562,26 @@ func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) ProtoMethods() * } var ( - md_QueryStakeReputerAuthorityRequest protoreflect.MessageDescriptor - fd_QueryStakeReputerAuthorityRequest_topic_id protoreflect.FieldDescriptor - fd_QueryStakeReputerAuthorityRequest_reputer protoreflect.FieldDescriptor + md_QueryTopicLastCommitRequest protoreflect.MessageDescriptor + fd_QueryTopicLastCommitRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeReputerAuthorityRequest = File_emissions_v1_query_proto.Messages().ByName("QueryStakeReputerAuthorityRequest") - fd_QueryStakeReputerAuthorityRequest_topic_id = md_QueryStakeReputerAuthorityRequest.Fields().ByName("topic_id") - fd_QueryStakeReputerAuthorityRequest_reputer = md_QueryStakeReputerAuthorityRequest.Fields().ByName("reputer") + file_emissions_v2_query_proto_init() + md_QueryTopicLastCommitRequest = File_emissions_v2_query_proto.Messages().ByName("QueryTopicLastCommitRequest") + fd_QueryTopicLastCommitRequest_topic_id = md_QueryTopicLastCommitRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryStakeReputerAuthorityRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTopicLastCommitRequest)(nil) -type fastReflection_QueryStakeReputerAuthorityRequest QueryStakeReputerAuthorityRequest +type fastReflection_QueryTopicLastCommitRequest QueryTopicLastCommitRequest -func (x *QueryStakeReputerAuthorityRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeReputerAuthorityRequest)(x) +func (x *QueryTopicLastCommitRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTopicLastCommitRequest)(x) } -func (x *QueryStakeReputerAuthorityRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[82] +func (x *QueryTopicLastCommitRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[80] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -36940,43 +36592,43 @@ func (x *QueryStakeReputerAuthorityRequest) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryStakeReputerAuthorityRequest_messageType fastReflection_QueryStakeReputerAuthorityRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeReputerAuthorityRequest_messageType{} +var _fastReflection_QueryTopicLastCommitRequest_messageType fastReflection_QueryTopicLastCommitRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTopicLastCommitRequest_messageType{} -type fastReflection_QueryStakeReputerAuthorityRequest_messageType struct{} +type fastReflection_QueryTopicLastCommitRequest_messageType struct{} -func (x fastReflection_QueryStakeReputerAuthorityRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeReputerAuthorityRequest)(nil) +func (x fastReflection_QueryTopicLastCommitRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTopicLastCommitRequest)(nil) } -func (x fastReflection_QueryStakeReputerAuthorityRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeReputerAuthorityRequest) +func (x fastReflection_QueryTopicLastCommitRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTopicLastCommitRequest) } -func (x fastReflection_QueryStakeReputerAuthorityRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeReputerAuthorityRequest +func (x fastReflection_QueryTopicLastCommitRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicLastCommitRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeReputerAuthorityRequest +func (x *fastReflection_QueryTopicLastCommitRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicLastCommitRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeReputerAuthorityRequest_messageType +func (x *fastReflection_QueryTopicLastCommitRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTopicLastCommitRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) New() protoreflect.Message { - return new(fastReflection_QueryStakeReputerAuthorityRequest) +func (x *fastReflection_QueryTopicLastCommitRequest) New() protoreflect.Message { + return new(fastReflection_QueryTopicLastCommitRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) Interface() protoreflect.ProtoMessage { - return (*QueryStakeReputerAuthorityRequest)(x) +func (x *fastReflection_QueryTopicLastCommitRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTopicLastCommitRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -36984,16 +36636,10 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryTopicLastCommitRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryStakeReputerAuthorityRequest_topic_id, value) { - return - } - } - if x.Reputer != "" { - value := protoreflect.ValueOfString(x.Reputer) - if !f(fd_QueryStakeReputerAuthorityRequest_reputer, value) { + if !f(fd_QueryTopicLastCommitRequest_topic_id, value) { return } } @@ -37010,17 +36656,15 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTopicLastCommitRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeReputerAuthorityRequest.topic_id": + case "emissions.v2.QueryTopicLastCommitRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryStakeReputerAuthorityRequest.reputer": - return x.Reputer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeReputerAuthorityRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicLastCommitRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeReputerAuthorityRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicLastCommitRequest does not contain field %s", fd.FullName())) } } @@ -37030,17 +36674,15 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTopicLastCommitRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeReputerAuthorityRequest.topic_id": + case "emissions.v2.QueryTopicLastCommitRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryStakeReputerAuthorityRequest.reputer": - x.Reputer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeReputerAuthorityRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicLastCommitRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeReputerAuthorityRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicLastCommitRequest does not contain field %s", fd.FullName())) } } @@ -37050,19 +36692,16 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicLastCommitRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeReputerAuthorityRequest.topic_id": + case "emissions.v2.QueryTopicLastCommitRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryStakeReputerAuthorityRequest.reputer": - value := x.Reputer - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeReputerAuthorityRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicLastCommitRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeReputerAuthorityRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicLastCommitRequest does not contain field %s", descriptor.FullName())) } } @@ -37076,17 +36715,15 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTopicLastCommitRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeReputerAuthorityRequest.topic_id": + case "emissions.v2.QueryTopicLastCommitRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryStakeReputerAuthorityRequest.reputer": - x.Reputer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeReputerAuthorityRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicLastCommitRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeReputerAuthorityRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicLastCommitRequest does not contain field %s", fd.FullName())) } } @@ -37100,44 +36737,40 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicLastCommitRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeReputerAuthorityRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryStakeReputerAuthorityRequest is not mutable")) - case "emissions.v1.QueryStakeReputerAuthorityRequest.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.QueryStakeReputerAuthorityRequest is not mutable")) + case "emissions.v2.QueryTopicLastCommitRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryTopicLastCommitRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeReputerAuthorityRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicLastCommitRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeReputerAuthorityRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicLastCommitRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicLastCommitRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeReputerAuthorityRequest.topic_id": + case "emissions.v2.QueryTopicLastCommitRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryStakeReputerAuthorityRequest.reputer": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeReputerAuthorityRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicLastCommitRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeReputerAuthorityRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicLastCommitRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTopicLastCommitRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeReputerAuthorityRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTopicLastCommitRequest", d.FullName())) } panic("unreachable") } @@ -37145,7 +36778,7 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTopicLastCommitRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -37156,7 +36789,7 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTopicLastCommitRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -37168,7 +36801,7 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) IsValid() bool { +func (x *fastReflection_QueryTopicLastCommitRequest) IsValid() bool { return x != nil } @@ -37178,9 +36811,9 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeReputerAuthorityRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTopicLastCommitRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeReputerAuthorityRequest) + x := input.Message.Interface().(*QueryTopicLastCommitRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -37195,10 +36828,6 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) ProtoMethods() *proto if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Reputer) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -37209,7 +36838,7 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeReputerAuthorityRequest) + x := input.Message.Interface().(*QueryTopicLastCommitRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -37228,13 +36857,6 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) ProtoMethods() *proto i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Reputer) > 0 { - i -= len(x.Reputer) - copy(dAtA[i:], x.Reputer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) - i-- - dAtA[i] = 0x12 - } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- @@ -37251,7 +36873,7 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeReputerAuthorityRequest) + x := input.Message.Interface().(*QueryTopicLastCommitRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -37283,10 +36905,10 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeReputerAuthorityRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastCommitRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeReputerAuthorityRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastCommitRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -37308,38 +36930,6 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) ProtoMethods() *proto break } } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Reputer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -37376,26 +36966,26 @@ func (x *fastReflection_QueryStakeReputerAuthorityRequest) ProtoMethods() *proto } var ( - md_QueryStakeReputerAuthorityResponse protoreflect.MessageDescriptor - fd_QueryStakeReputerAuthorityResponse_authority protoreflect.FieldDescriptor + md_QueryTopicLastCommitResponse protoreflect.MessageDescriptor + fd_QueryTopicLastCommitResponse_last_commit protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeReputerAuthorityResponse = File_emissions_v1_query_proto.Messages().ByName("QueryStakeReputerAuthorityResponse") - fd_QueryStakeReputerAuthorityResponse_authority = md_QueryStakeReputerAuthorityResponse.Fields().ByName("authority") + file_emissions_v2_query_proto_init() + md_QueryTopicLastCommitResponse = File_emissions_v2_query_proto.Messages().ByName("QueryTopicLastCommitResponse") + fd_QueryTopicLastCommitResponse_last_commit = md_QueryTopicLastCommitResponse.Fields().ByName("last_commit") } -var _ protoreflect.Message = (*fastReflection_QueryStakeReputerAuthorityResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTopicLastCommitResponse)(nil) -type fastReflection_QueryStakeReputerAuthorityResponse QueryStakeReputerAuthorityResponse +type fastReflection_QueryTopicLastCommitResponse QueryTopicLastCommitResponse -func (x *QueryStakeReputerAuthorityResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeReputerAuthorityResponse)(x) +func (x *QueryTopicLastCommitResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTopicLastCommitResponse)(x) } -func (x *QueryStakeReputerAuthorityResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[83] +func (x *QueryTopicLastCommitResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[81] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -37406,43 +36996,43 @@ func (x *QueryStakeReputerAuthorityResponse) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryStakeReputerAuthorityResponse_messageType fastReflection_QueryStakeReputerAuthorityResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeReputerAuthorityResponse_messageType{} +var _fastReflection_QueryTopicLastCommitResponse_messageType fastReflection_QueryTopicLastCommitResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTopicLastCommitResponse_messageType{} -type fastReflection_QueryStakeReputerAuthorityResponse_messageType struct{} +type fastReflection_QueryTopicLastCommitResponse_messageType struct{} -func (x fastReflection_QueryStakeReputerAuthorityResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeReputerAuthorityResponse)(nil) +func (x fastReflection_QueryTopicLastCommitResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTopicLastCommitResponse)(nil) } -func (x fastReflection_QueryStakeReputerAuthorityResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeReputerAuthorityResponse) +func (x fastReflection_QueryTopicLastCommitResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTopicLastCommitResponse) } -func (x fastReflection_QueryStakeReputerAuthorityResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeReputerAuthorityResponse +func (x fastReflection_QueryTopicLastCommitResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicLastCommitResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeReputerAuthorityResponse +func (x *fastReflection_QueryTopicLastCommitResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicLastCommitResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeReputerAuthorityResponse_messageType +func (x *fastReflection_QueryTopicLastCommitResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTopicLastCommitResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) New() protoreflect.Message { - return new(fastReflection_QueryStakeReputerAuthorityResponse) +func (x *fastReflection_QueryTopicLastCommitResponse) New() protoreflect.Message { + return new(fastReflection_QueryTopicLastCommitResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) Interface() protoreflect.ProtoMessage { - return (*QueryStakeReputerAuthorityResponse)(x) +func (x *fastReflection_QueryTopicLastCommitResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTopicLastCommitResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -37450,10 +37040,10 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Authority != "" { - value := protoreflect.ValueOfString(x.Authority) - if !f(fd_QueryStakeReputerAuthorityResponse_authority, value) { +func (x *fastReflection_QueryTopicLastCommitResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.LastCommit != nil { + value := protoreflect.ValueOfMessage(x.LastCommit.ProtoReflect()) + if !f(fd_QueryTopicLastCommitResponse_last_commit, value) { return } } @@ -37470,15 +37060,15 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTopicLastCommitResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeReputerAuthorityResponse.authority": - return x.Authority != "" + case "emissions.v2.QueryTopicLastCommitResponse.last_commit": + return x.LastCommit != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeReputerAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicLastCommitResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeReputerAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicLastCommitResponse does not contain field %s", fd.FullName())) } } @@ -37488,15 +37078,15 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTopicLastCommitResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeReputerAuthorityResponse.authority": - x.Authority = "" + case "emissions.v2.QueryTopicLastCommitResponse.last_commit": + x.LastCommit = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeReputerAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicLastCommitResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeReputerAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicLastCommitResponse does not contain field %s", fd.FullName())) } } @@ -37506,16 +37096,16 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicLastCommitResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeReputerAuthorityResponse.authority": - value := x.Authority - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryTopicLastCommitResponse.last_commit": + value := x.LastCommit + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeReputerAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicLastCommitResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeReputerAuthorityResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicLastCommitResponse does not contain field %s", descriptor.FullName())) } } @@ -37529,15 +37119,15 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTopicLastCommitResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeReputerAuthorityResponse.authority": - x.Authority = value.Interface().(string) + case "emissions.v2.QueryTopicLastCommitResponse.last_commit": + x.LastCommit = value.Message().Interface().(*TimestampedActorNonce) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeReputerAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicLastCommitResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeReputerAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicLastCommitResponse does not contain field %s", fd.FullName())) } } @@ -37551,40 +37141,44 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicLastCommitResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeReputerAuthorityResponse.authority": - panic(fmt.Errorf("field authority of message emissions.v1.QueryStakeReputerAuthorityResponse is not mutable")) + case "emissions.v2.QueryTopicLastCommitResponse.last_commit": + if x.LastCommit == nil { + x.LastCommit = new(TimestampedActorNonce) + } + return protoreflect.ValueOfMessage(x.LastCommit.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeReputerAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicLastCommitResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeReputerAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicLastCommitResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicLastCommitResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeReputerAuthorityResponse.authority": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryTopicLastCommitResponse.last_commit": + m := new(TimestampedActorNonce) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeReputerAuthorityResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicLastCommitResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeReputerAuthorityResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicLastCommitResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTopicLastCommitResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeReputerAuthorityResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTopicLastCommitResponse", d.FullName())) } panic("unreachable") } @@ -37592,7 +37186,7 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTopicLastCommitResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -37603,7 +37197,7 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTopicLastCommitResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -37615,7 +37209,7 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) IsValid() bool { +func (x *fastReflection_QueryTopicLastCommitResponse) IsValid() bool { return x != nil } @@ -37625,9 +37219,9 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeReputerAuthorityResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTopicLastCommitResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeReputerAuthorityResponse) + x := input.Message.Interface().(*QueryTopicLastCommitResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -37639,8 +37233,8 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) ProtoMethods() *prot var n int var l int _ = l - l = len(x.Authority) - if l > 0 { + if x.LastCommit != nil { + l = options.Size(x.LastCommit) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -37653,7 +37247,7 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeReputerAuthorityResponse) + x := input.Message.Interface().(*QueryTopicLastCommitResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -37672,10 +37266,17 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) ProtoMethods() *prot i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Authority) > 0 { - i -= len(x.Authority) - copy(dAtA[i:], x.Authority) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) + if x.LastCommit != nil { + encoded, err := options.Marshal(x.LastCommit) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -37690,7 +37291,7 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeReputerAuthorityResponse) + x := input.Message.Interface().(*QueryTopicLastCommitResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -37722,17 +37323,17 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeReputerAuthorityResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastCommitResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeReputerAuthorityResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastCommitResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LastCommit", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -37742,23 +37343,27 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) ProtoMethods() *prot } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Authority = string(dAtA[iNdEx:postIndex]) + if x.LastCommit == nil { + x.LastCommit = &TimestampedActorNonce{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LastCommit); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -37796,30 +37401,26 @@ func (x *fastReflection_QueryStakeReputerAuthorityResponse) ProtoMethods() *prot } var ( - md_QueryDelegateStakePlacementRequest protoreflect.MessageDescriptor - fd_QueryDelegateStakePlacementRequest_topic_id protoreflect.FieldDescriptor - fd_QueryDelegateStakePlacementRequest_delegator protoreflect.FieldDescriptor - fd_QueryDelegateStakePlacementRequest_target protoreflect.FieldDescriptor + md_QueryTopicRewardNonceRequest protoreflect.MessageDescriptor + fd_QueryTopicRewardNonceRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateStakePlacementRequest = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateStakePlacementRequest") - fd_QueryDelegateStakePlacementRequest_topic_id = md_QueryDelegateStakePlacementRequest.Fields().ByName("topic_id") - fd_QueryDelegateStakePlacementRequest_delegator = md_QueryDelegateStakePlacementRequest.Fields().ByName("delegator") - fd_QueryDelegateStakePlacementRequest_target = md_QueryDelegateStakePlacementRequest.Fields().ByName("target") + file_emissions_v2_query_proto_init() + md_QueryTopicRewardNonceRequest = File_emissions_v2_query_proto.Messages().ByName("QueryTopicRewardNonceRequest") + fd_QueryTopicRewardNonceRequest_topic_id = md_QueryTopicRewardNonceRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateStakePlacementRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTopicRewardNonceRequest)(nil) -type fastReflection_QueryDelegateStakePlacementRequest QueryDelegateStakePlacementRequest +type fastReflection_QueryTopicRewardNonceRequest QueryTopicRewardNonceRequest -func (x *QueryDelegateStakePlacementRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateStakePlacementRequest)(x) +func (x *QueryTopicRewardNonceRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTopicRewardNonceRequest)(x) } -func (x *QueryDelegateStakePlacementRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[84] +func (x *QueryTopicRewardNonceRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[82] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -37830,43 +37431,43 @@ func (x *QueryDelegateStakePlacementRequest) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryDelegateStakePlacementRequest_messageType fastReflection_QueryDelegateStakePlacementRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateStakePlacementRequest_messageType{} +var _fastReflection_QueryTopicRewardNonceRequest_messageType fastReflection_QueryTopicRewardNonceRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTopicRewardNonceRequest_messageType{} -type fastReflection_QueryDelegateStakePlacementRequest_messageType struct{} +type fastReflection_QueryTopicRewardNonceRequest_messageType struct{} -func (x fastReflection_QueryDelegateStakePlacementRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateStakePlacementRequest)(nil) +func (x fastReflection_QueryTopicRewardNonceRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTopicRewardNonceRequest)(nil) } -func (x fastReflection_QueryDelegateStakePlacementRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakePlacementRequest) +func (x fastReflection_QueryTopicRewardNonceRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTopicRewardNonceRequest) } -func (x fastReflection_QueryDelegateStakePlacementRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakePlacementRequest +func (x fastReflection_QueryTopicRewardNonceRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicRewardNonceRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateStakePlacementRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakePlacementRequest +func (x *fastReflection_QueryTopicRewardNonceRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicRewardNonceRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateStakePlacementRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateStakePlacementRequest_messageType +func (x *fastReflection_QueryTopicRewardNonceRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTopicRewardNonceRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateStakePlacementRequest) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakePlacementRequest) +func (x *fastReflection_QueryTopicRewardNonceRequest) New() protoreflect.Message { + return new(fastReflection_QueryTopicRewardNonceRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateStakePlacementRequest) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateStakePlacementRequest)(x) +func (x *fastReflection_QueryTopicRewardNonceRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTopicRewardNonceRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -37874,22 +37475,10 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateStakePlacementRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryTopicRewardNonceRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryDelegateStakePlacementRequest_topic_id, value) { - return - } - } - if x.Delegator != "" { - value := protoreflect.ValueOfString(x.Delegator) - if !f(fd_QueryDelegateStakePlacementRequest_delegator, value) { - return - } - } - if x.Target != "" { - value := protoreflect.ValueOfString(x.Target) - if !f(fd_QueryDelegateStakePlacementRequest_target, value) { + if !f(fd_QueryTopicRewardNonceRequest_topic_id, value) { return } } @@ -37906,19 +37495,15 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateStakePlacementRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTopicRewardNonceRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakePlacementRequest.topic_id": + case "emissions.v2.QueryTopicRewardNonceRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryDelegateStakePlacementRequest.delegator": - return x.Delegator != "" - case "emissions.v1.QueryDelegateStakePlacementRequest.target": - return x.Target != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakePlacementRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRewardNonceRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakePlacementRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRewardNonceRequest does not contain field %s", fd.FullName())) } } @@ -37928,19 +37513,15 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakePlacementRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTopicRewardNonceRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakePlacementRequest.topic_id": + case "emissions.v2.QueryTopicRewardNonceRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryDelegateStakePlacementRequest.delegator": - x.Delegator = "" - case "emissions.v1.QueryDelegateStakePlacementRequest.target": - x.Target = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakePlacementRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRewardNonceRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakePlacementRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRewardNonceRequest does not contain field %s", fd.FullName())) } } @@ -37950,22 +37531,16 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateStakePlacementRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicRewardNonceRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateStakePlacementRequest.topic_id": + case "emissions.v2.QueryTopicRewardNonceRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryDelegateStakePlacementRequest.delegator": - value := x.Delegator - return protoreflect.ValueOfString(value) - case "emissions.v1.QueryDelegateStakePlacementRequest.target": - value := x.Target - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakePlacementRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRewardNonceRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakePlacementRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRewardNonceRequest does not contain field %s", descriptor.FullName())) } } @@ -37979,19 +37554,15 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakePlacementRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTopicRewardNonceRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakePlacementRequest.topic_id": + case "emissions.v2.QueryTopicRewardNonceRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryDelegateStakePlacementRequest.delegator": - x.Delegator = value.Interface().(string) - case "emissions.v1.QueryDelegateStakePlacementRequest.target": - x.Target = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakePlacementRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRewardNonceRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakePlacementRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRewardNonceRequest does not contain field %s", fd.FullName())) } } @@ -38005,48 +37576,40 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakePlacementRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicRewardNonceRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakePlacementRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryDelegateStakePlacementRequest is not mutable")) - case "emissions.v1.QueryDelegateStakePlacementRequest.delegator": - panic(fmt.Errorf("field delegator of message emissions.v1.QueryDelegateStakePlacementRequest is not mutable")) - case "emissions.v1.QueryDelegateStakePlacementRequest.target": - panic(fmt.Errorf("field target of message emissions.v1.QueryDelegateStakePlacementRequest is not mutable")) + case "emissions.v2.QueryTopicRewardNonceRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryTopicRewardNonceRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakePlacementRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRewardNonceRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakePlacementRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRewardNonceRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateStakePlacementRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicRewardNonceRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakePlacementRequest.topic_id": + case "emissions.v2.QueryTopicRewardNonceRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryDelegateStakePlacementRequest.delegator": - return protoreflect.ValueOfString("") - case "emissions.v1.QueryDelegateStakePlacementRequest.target": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakePlacementRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRewardNonceRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakePlacementRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRewardNonceRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateStakePlacementRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTopicRewardNonceRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateStakePlacementRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTopicRewardNonceRequest", d.FullName())) } panic("unreachable") } @@ -38054,7 +37617,7 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateStakePlacementRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTopicRewardNonceRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -38065,7 +37628,7 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakePlacementRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTopicRewardNonceRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -38077,7 +37640,7 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateStakePlacementRequest) IsValid() bool { +func (x *fastReflection_QueryTopicRewardNonceRequest) IsValid() bool { return x != nil } @@ -38087,9 +37650,9 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateStakePlacementRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTopicRewardNonceRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateStakePlacementRequest) + x := input.Message.Interface().(*QueryTopicRewardNonceRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -38104,14 +37667,6 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) ProtoMethods() *prot if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Delegator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Target) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -38122,7 +37677,7 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakePlacementRequest) + x := input.Message.Interface().(*QueryTopicRewardNonceRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -38141,20 +37696,6 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) ProtoMethods() *prot i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Target) > 0 { - i -= len(x.Target) - copy(dAtA[i:], x.Target) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Target))) - i-- - dAtA[i] = 0x1a - } - if len(x.Delegator) > 0 { - i -= len(x.Delegator) - copy(dAtA[i:], x.Delegator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Delegator))) - i-- - dAtA[i] = 0x12 - } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- @@ -38171,7 +37712,7 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakePlacementRequest) + x := input.Message.Interface().(*QueryTopicRewardNonceRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -38203,10 +37744,10 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakePlacementRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicRewardNonceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakePlacementRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicRewardNonceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -38228,70 +37769,6 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) ProtoMethods() *prot break } } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Delegator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Delegator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Target = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -38328,26 +37805,26 @@ func (x *fastReflection_QueryDelegateStakePlacementRequest) ProtoMethods() *prot } var ( - md_QueryDelegateStakePlacementResponse protoreflect.MessageDescriptor - fd_QueryDelegateStakePlacementResponse_delegator_info protoreflect.FieldDescriptor + md_QueryTopicRewardNonceResponse protoreflect.MessageDescriptor + fd_QueryTopicRewardNonceResponse_nonce protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateStakePlacementResponse = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateStakePlacementResponse") - fd_QueryDelegateStakePlacementResponse_delegator_info = md_QueryDelegateStakePlacementResponse.Fields().ByName("delegator_info") + file_emissions_v2_query_proto_init() + md_QueryTopicRewardNonceResponse = File_emissions_v2_query_proto.Messages().ByName("QueryTopicRewardNonceResponse") + fd_QueryTopicRewardNonceResponse_nonce = md_QueryTopicRewardNonceResponse.Fields().ByName("nonce") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateStakePlacementResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTopicRewardNonceResponse)(nil) -type fastReflection_QueryDelegateStakePlacementResponse QueryDelegateStakePlacementResponse +type fastReflection_QueryTopicRewardNonceResponse QueryTopicRewardNonceResponse -func (x *QueryDelegateStakePlacementResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateStakePlacementResponse)(x) +func (x *QueryTopicRewardNonceResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTopicRewardNonceResponse)(x) } -func (x *QueryDelegateStakePlacementResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[85] +func (x *QueryTopicRewardNonceResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[83] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -38358,43 +37835,43 @@ func (x *QueryDelegateStakePlacementResponse) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_QueryDelegateStakePlacementResponse_messageType fastReflection_QueryDelegateStakePlacementResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateStakePlacementResponse_messageType{} +var _fastReflection_QueryTopicRewardNonceResponse_messageType fastReflection_QueryTopicRewardNonceResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTopicRewardNonceResponse_messageType{} -type fastReflection_QueryDelegateStakePlacementResponse_messageType struct{} +type fastReflection_QueryTopicRewardNonceResponse_messageType struct{} -func (x fastReflection_QueryDelegateStakePlacementResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateStakePlacementResponse)(nil) +func (x fastReflection_QueryTopicRewardNonceResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTopicRewardNonceResponse)(nil) } -func (x fastReflection_QueryDelegateStakePlacementResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakePlacementResponse) +func (x fastReflection_QueryTopicRewardNonceResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTopicRewardNonceResponse) } -func (x fastReflection_QueryDelegateStakePlacementResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakePlacementResponse +func (x fastReflection_QueryTopicRewardNonceResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicRewardNonceResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateStakePlacementResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakePlacementResponse +func (x *fastReflection_QueryTopicRewardNonceResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicRewardNonceResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateStakePlacementResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateStakePlacementResponse_messageType +func (x *fastReflection_QueryTopicRewardNonceResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTopicRewardNonceResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateStakePlacementResponse) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakePlacementResponse) +func (x *fastReflection_QueryTopicRewardNonceResponse) New() protoreflect.Message { + return new(fastReflection_QueryTopicRewardNonceResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateStakePlacementResponse) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateStakePlacementResponse)(x) +func (x *fastReflection_QueryTopicRewardNonceResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTopicRewardNonceResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -38402,10 +37879,10 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateStakePlacementResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.DelegatorInfo != nil { - value := protoreflect.ValueOfMessage(x.DelegatorInfo.ProtoReflect()) - if !f(fd_QueryDelegateStakePlacementResponse_delegator_info, value) { +func (x *fastReflection_QueryTopicRewardNonceResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Nonce != int64(0) { + value := protoreflect.ValueOfInt64(x.Nonce) + if !f(fd_QueryTopicRewardNonceResponse_nonce, value) { return } } @@ -38422,15 +37899,15 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) Range(f func(protor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateStakePlacementResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTopicRewardNonceResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakePlacementResponse.delegator_info": - return x.DelegatorInfo != nil + case "emissions.v2.QueryTopicRewardNonceResponse.nonce": + return x.Nonce != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakePlacementResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRewardNonceResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakePlacementResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRewardNonceResponse does not contain field %s", fd.FullName())) } } @@ -38440,15 +37917,15 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakePlacementResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTopicRewardNonceResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakePlacementResponse.delegator_info": - x.DelegatorInfo = nil + case "emissions.v2.QueryTopicRewardNonceResponse.nonce": + x.Nonce = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakePlacementResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRewardNonceResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakePlacementResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRewardNonceResponse does not contain field %s", fd.FullName())) } } @@ -38458,16 +37935,16 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) Clear(fd protorefle // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateStakePlacementResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicRewardNonceResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateStakePlacementResponse.delegator_info": - value := x.DelegatorInfo - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryTopicRewardNonceResponse.nonce": + value := x.Nonce + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakePlacementResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRewardNonceResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakePlacementResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRewardNonceResponse does not contain field %s", descriptor.FullName())) } } @@ -38481,15 +37958,15 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakePlacementResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTopicRewardNonceResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakePlacementResponse.delegator_info": - x.DelegatorInfo = value.Message().Interface().(*DelegatorInfo) + case "emissions.v2.QueryTopicRewardNonceResponse.nonce": + x.Nonce = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakePlacementResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRewardNonceResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakePlacementResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRewardNonceResponse does not contain field %s", fd.FullName())) } } @@ -38503,44 +37980,40 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakePlacementResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicRewardNonceResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakePlacementResponse.delegator_info": - if x.DelegatorInfo == nil { - x.DelegatorInfo = new(DelegatorInfo) - } - return protoreflect.ValueOfMessage(x.DelegatorInfo.ProtoReflect()) + case "emissions.v2.QueryTopicRewardNonceResponse.nonce": + panic(fmt.Errorf("field nonce of message emissions.v2.QueryTopicRewardNonceResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakePlacementResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRewardNonceResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakePlacementResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRewardNonceResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateStakePlacementResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicRewardNonceResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakePlacementResponse.delegator_info": - m := new(DelegatorInfo) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryTopicRewardNonceResponse.nonce": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakePlacementResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicRewardNonceResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakePlacementResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicRewardNonceResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateStakePlacementResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTopicRewardNonceResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateStakePlacementResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTopicRewardNonceResponse", d.FullName())) } panic("unreachable") } @@ -38548,7 +38021,7 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) WhichOneof(d protor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateStakePlacementResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTopicRewardNonceResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -38559,7 +38032,7 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakePlacementResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTopicRewardNonceResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -38571,7 +38044,7 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) SetUnknown(fields p // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateStakePlacementResponse) IsValid() bool { +func (x *fastReflection_QueryTopicRewardNonceResponse) IsValid() bool { return x != nil } @@ -38581,9 +38054,9 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateStakePlacementResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTopicRewardNonceResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateStakePlacementResponse) + x := input.Message.Interface().(*QueryTopicRewardNonceResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -38595,9 +38068,8 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) ProtoMethods() *pro var n int var l int _ = l - if x.DelegatorInfo != nil { - l = options.Size(x.DelegatorInfo) - n += 1 + l + runtime.Sov(uint64(l)) + if x.Nonce != 0 { + n += 1 + runtime.Sov(uint64(x.Nonce)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -38609,7 +38081,7 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakePlacementResponse) + x := input.Message.Interface().(*QueryTopicRewardNonceResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -38628,19 +38100,10 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) ProtoMethods() *pro i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.DelegatorInfo != nil { - encoded, err := options.Marshal(x.DelegatorInfo) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if x.Nonce != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Nonce)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -38653,7 +38116,7 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakePlacementResponse) + x := input.Message.Interface().(*QueryTopicRewardNonceResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -38685,17 +38148,17 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakePlacementResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicRewardNonceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakePlacementResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicRewardNonceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DelegatorInfo", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) } - var msglen int + x.Nonce = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -38705,28 +38168,11 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) ProtoMethods() *pro } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + x.Nonce |= int64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.DelegatorInfo == nil { - x.DelegatorInfo = &DelegatorInfo{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DelegatorInfo); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -38763,28 +38209,28 @@ func (x *fastReflection_QueryDelegateStakePlacementResponse) ProtoMethods() *pro } var ( - md_QueryDelegateStakeUponReputerRequest protoreflect.MessageDescriptor - fd_QueryDelegateStakeUponReputerRequest_topic_id protoreflect.FieldDescriptor - fd_QueryDelegateStakeUponReputerRequest_target protoreflect.FieldDescriptor + md_QueryReputerLossBundlesAtBlockRequest protoreflect.MessageDescriptor + fd_QueryReputerLossBundlesAtBlockRequest_topic_id protoreflect.FieldDescriptor + fd_QueryReputerLossBundlesAtBlockRequest_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateStakeUponReputerRequest = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateStakeUponReputerRequest") - fd_QueryDelegateStakeUponReputerRequest_topic_id = md_QueryDelegateStakeUponReputerRequest.Fields().ByName("topic_id") - fd_QueryDelegateStakeUponReputerRequest_target = md_QueryDelegateStakeUponReputerRequest.Fields().ByName("target") + file_emissions_v2_query_proto_init() + md_QueryReputerLossBundlesAtBlockRequest = File_emissions_v2_query_proto.Messages().ByName("QueryReputerLossBundlesAtBlockRequest") + fd_QueryReputerLossBundlesAtBlockRequest_topic_id = md_QueryReputerLossBundlesAtBlockRequest.Fields().ByName("topic_id") + fd_QueryReputerLossBundlesAtBlockRequest_block_height = md_QueryReputerLossBundlesAtBlockRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeUponReputerRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryReputerLossBundlesAtBlockRequest)(nil) -type fastReflection_QueryDelegateStakeUponReputerRequest QueryDelegateStakeUponReputerRequest +type fastReflection_QueryReputerLossBundlesAtBlockRequest QueryReputerLossBundlesAtBlockRequest -func (x *QueryDelegateStakeUponReputerRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeUponReputerRequest)(x) +func (x *QueryReputerLossBundlesAtBlockRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryReputerLossBundlesAtBlockRequest)(x) } -func (x *QueryDelegateStakeUponReputerRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[86] +func (x *QueryReputerLossBundlesAtBlockRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[84] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -38795,43 +38241,43 @@ func (x *QueryDelegateStakeUponReputerRequest) slowProtoReflect() protoreflect.M return mi.MessageOf(x) } -var _fastReflection_QueryDelegateStakeUponReputerRequest_messageType fastReflection_QueryDelegateStakeUponReputerRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeUponReputerRequest_messageType{} +var _fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType{} -type fastReflection_QueryDelegateStakeUponReputerRequest_messageType struct{} +type fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType struct{} -func (x fastReflection_QueryDelegateStakeUponReputerRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeUponReputerRequest)(nil) +func (x fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryReputerLossBundlesAtBlockRequest)(nil) } -func (x fastReflection_QueryDelegateStakeUponReputerRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeUponReputerRequest) +func (x fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryReputerLossBundlesAtBlockRequest) } -func (x fastReflection_QueryDelegateStakeUponReputerRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeUponReputerRequest +func (x fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputerLossBundlesAtBlockRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeUponReputerRequest +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputerLossBundlesAtBlockRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateStakeUponReputerRequest_messageType +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryReputerLossBundlesAtBlockRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeUponReputerRequest) +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) New() protoreflect.Message { + return new(fastReflection_QueryReputerLossBundlesAtBlockRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateStakeUponReputerRequest)(x) +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Interface() protoreflect.ProtoMessage { + return (*QueryReputerLossBundlesAtBlockRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -38839,16 +38285,16 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Interface() protor // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryDelegateStakeUponReputerRequest_topic_id, value) { + if !f(fd_QueryReputerLossBundlesAtBlockRequest_topic_id, value) { return } } - if x.Target != "" { - value := protoreflect.ValueOfString(x.Target) - if !f(fd_QueryDelegateStakeUponReputerRequest_target, value) { + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_QueryReputerLossBundlesAtBlockRequest_block_height, value) { return } } @@ -38865,17 +38311,17 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Range(f func(proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeUponReputerRequest.topic_id": + case "emissions.v2.QueryReputerLossBundlesAtBlockRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryDelegateStakeUponReputerRequest.target": - return x.Target != "" + case "emissions.v2.QueryReputerLossBundlesAtBlockRequest.block_height": + return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeUponReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerLossBundlesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeUponReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerLossBundlesAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -38885,17 +38331,17 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Has(fd protoreflec // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeUponReputerRequest.topic_id": + case "emissions.v2.QueryReputerLossBundlesAtBlockRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryDelegateStakeUponReputerRequest.target": - x.Target = "" + case "emissions.v2.QueryReputerLossBundlesAtBlockRequest.block_height": + x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeUponReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerLossBundlesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeUponReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerLossBundlesAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -38905,19 +38351,19 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Clear(fd protorefl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateStakeUponReputerRequest.topic_id": + case "emissions.v2.QueryReputerLossBundlesAtBlockRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryDelegateStakeUponReputerRequest.target": - value := x.Target - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryReputerLossBundlesAtBlockRequest.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeUponReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerLossBundlesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeUponReputerRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerLossBundlesAtBlockRequest does not contain field %s", descriptor.FullName())) } } @@ -38931,17 +38377,17 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Get(descriptor pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeUponReputerRequest.topic_id": + case "emissions.v2.QueryReputerLossBundlesAtBlockRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryDelegateStakeUponReputerRequest.target": - x.Target = value.Interface().(string) + case "emissions.v2.QueryReputerLossBundlesAtBlockRequest.block_height": + x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeUponReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerLossBundlesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeUponReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerLossBundlesAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -38955,44 +38401,44 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Set(fd protoreflec // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeUponReputerRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryDelegateStakeUponReputerRequest is not mutable")) - case "emissions.v1.QueryDelegateStakeUponReputerRequest.target": - panic(fmt.Errorf("field target of message emissions.v1.QueryDelegateStakeUponReputerRequest is not mutable")) + case "emissions.v2.QueryReputerLossBundlesAtBlockRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryReputerLossBundlesAtBlockRequest is not mutable")) + case "emissions.v2.QueryReputerLossBundlesAtBlockRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryReputerLossBundlesAtBlockRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeUponReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerLossBundlesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeUponReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerLossBundlesAtBlockRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeUponReputerRequest.topic_id": + case "emissions.v2.QueryReputerLossBundlesAtBlockRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryDelegateStakeUponReputerRequest.target": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryReputerLossBundlesAtBlockRequest.block_height": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeUponReputerRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerLossBundlesAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeUponReputerRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerLossBundlesAtBlockRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateStakeUponReputerRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryReputerLossBundlesAtBlockRequest", d.FullName())) } panic("unreachable") } @@ -39000,7 +38446,7 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) WhichOneof(d proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -39011,7 +38457,7 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) GetUnknown() proto // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -39023,7 +38469,7 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) IsValid() bool { +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) IsValid() bool { return x != nil } @@ -39033,9 +38479,9 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateStakeUponReputerRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryReputerLossBundlesAtBlockRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateStakeUponReputerRequest) + x := input.Message.Interface().(*QueryReputerLossBundlesAtBlockRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -39050,9 +38496,8 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) ProtoMethods() *pr if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Target) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -39064,7 +38509,7 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) ProtoMethods() *pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeUponReputerRequest) + x := input.Message.Interface().(*QueryReputerLossBundlesAtBlockRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -39083,12 +38528,10 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) ProtoMethods() *pr i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Target) > 0 { - i -= len(x.Target) - copy(dAtA[i:], x.Target) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Target))) + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) @@ -39106,7 +38549,7 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) ProtoMethods() *pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeUponReputerRequest) + x := input.Message.Interface().(*QueryReputerLossBundlesAtBlockRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -39138,10 +38581,10 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) ProtoMethods() *pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeUponReputerRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerLossBundlesAtBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeUponReputerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerLossBundlesAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -39164,10 +38607,10 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) ProtoMethods() *pr } } case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } - var stringLen uint64 + x.BlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -39177,24 +38620,11 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) ProtoMethods() *pr } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.BlockHeight |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Target = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -39231,26 +38661,26 @@ func (x *fastReflection_QueryDelegateStakeUponReputerRequest) ProtoMethods() *pr } var ( - md_QueryDelegateStakeUponReputerResponse protoreflect.MessageDescriptor - fd_QueryDelegateStakeUponReputerResponse_stake protoreflect.FieldDescriptor + md_QueryReputerLossBundlesAtBlockResponse protoreflect.MessageDescriptor + fd_QueryReputerLossBundlesAtBlockResponse_loss_bundles protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateStakeUponReputerResponse = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateStakeUponReputerResponse") - fd_QueryDelegateStakeUponReputerResponse_stake = md_QueryDelegateStakeUponReputerResponse.Fields().ByName("stake") + file_emissions_v2_query_proto_init() + md_QueryReputerLossBundlesAtBlockResponse = File_emissions_v2_query_proto.Messages().ByName("QueryReputerLossBundlesAtBlockResponse") + fd_QueryReputerLossBundlesAtBlockResponse_loss_bundles = md_QueryReputerLossBundlesAtBlockResponse.Fields().ByName("loss_bundles") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeUponReputerResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryReputerLossBundlesAtBlockResponse)(nil) -type fastReflection_QueryDelegateStakeUponReputerResponse QueryDelegateStakeUponReputerResponse +type fastReflection_QueryReputerLossBundlesAtBlockResponse QueryReputerLossBundlesAtBlockResponse -func (x *QueryDelegateStakeUponReputerResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeUponReputerResponse)(x) +func (x *QueryReputerLossBundlesAtBlockResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryReputerLossBundlesAtBlockResponse)(x) } -func (x *QueryDelegateStakeUponReputerResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[87] +func (x *QueryReputerLossBundlesAtBlockResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[85] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -39261,43 +38691,43 @@ func (x *QueryDelegateStakeUponReputerResponse) slowProtoReflect() protoreflect. return mi.MessageOf(x) } -var _fastReflection_QueryDelegateStakeUponReputerResponse_messageType fastReflection_QueryDelegateStakeUponReputerResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeUponReputerResponse_messageType{} +var _fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType{} -type fastReflection_QueryDelegateStakeUponReputerResponse_messageType struct{} +type fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType struct{} -func (x fastReflection_QueryDelegateStakeUponReputerResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeUponReputerResponse)(nil) +func (x fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryReputerLossBundlesAtBlockResponse)(nil) } -func (x fastReflection_QueryDelegateStakeUponReputerResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeUponReputerResponse) +func (x fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryReputerLossBundlesAtBlockResponse) } -func (x fastReflection_QueryDelegateStakeUponReputerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeUponReputerResponse +func (x fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputerLossBundlesAtBlockResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeUponReputerResponse +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputerLossBundlesAtBlockResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateStakeUponReputerResponse_messageType +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryReputerLossBundlesAtBlockResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeUponReputerResponse) +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) New() protoreflect.Message { + return new(fastReflection_QueryReputerLossBundlesAtBlockResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateStakeUponReputerResponse)(x) +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Interface() protoreflect.ProtoMessage { + return (*QueryReputerLossBundlesAtBlockResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -39305,10 +38735,10 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Interface() proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Stake != "" { - value := protoreflect.ValueOfString(x.Stake) - if !f(fd_QueryDelegateStakeUponReputerResponse_stake, value) { +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.LossBundles != nil { + value := protoreflect.ValueOfMessage(x.LossBundles.ProtoReflect()) + if !f(fd_QueryReputerLossBundlesAtBlockResponse_loss_bundles, value) { return } } @@ -39325,15 +38755,15 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Range(f func(prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeUponReputerResponse.stake": - return x.Stake != "" + case "emissions.v2.QueryReputerLossBundlesAtBlockResponse.loss_bundles": + return x.LossBundles != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeUponReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerLossBundlesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeUponReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerLossBundlesAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -39343,15 +38773,15 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Has(fd protorefle // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeUponReputerResponse.stake": - x.Stake = "" + case "emissions.v2.QueryReputerLossBundlesAtBlockResponse.loss_bundles": + x.LossBundles = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeUponReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerLossBundlesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeUponReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerLossBundlesAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -39361,16 +38791,16 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Clear(fd protoref // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateStakeUponReputerResponse.stake": - value := x.Stake - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryReputerLossBundlesAtBlockResponse.loss_bundles": + value := x.LossBundles + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeUponReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerLossBundlesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeUponReputerResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerLossBundlesAtBlockResponse does not contain field %s", descriptor.FullName())) } } @@ -39384,15 +38814,15 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Get(descriptor pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeUponReputerResponse.stake": - x.Stake = value.Interface().(string) + case "emissions.v2.QueryReputerLossBundlesAtBlockResponse.loss_bundles": + x.LossBundles = value.Message().Interface().(*ReputerValueBundles) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeUponReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerLossBundlesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeUponReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerLossBundlesAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -39406,40 +38836,44 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Set(fd protorefle // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeUponReputerResponse.stake": - panic(fmt.Errorf("field stake of message emissions.v1.QueryDelegateStakeUponReputerResponse is not mutable")) + case "emissions.v2.QueryReputerLossBundlesAtBlockResponse.loss_bundles": + if x.LossBundles == nil { + x.LossBundles = new(ReputerValueBundles) + } + return protoreflect.ValueOfMessage(x.LossBundles.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeUponReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerLossBundlesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeUponReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerLossBundlesAtBlockResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeUponReputerResponse.stake": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryReputerLossBundlesAtBlockResponse.loss_bundles": + m := new(ReputerValueBundles) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeUponReputerResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputerLossBundlesAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeUponReputerResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputerLossBundlesAtBlockResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateStakeUponReputerResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryReputerLossBundlesAtBlockResponse", d.FullName())) } panic("unreachable") } @@ -39447,7 +38881,7 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) WhichOneof(d prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -39458,7 +38892,7 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) GetUnknown() prot // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -39470,7 +38904,7 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) IsValid() bool { +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) IsValid() bool { return x != nil } @@ -39480,9 +38914,9 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateStakeUponReputerResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryReputerLossBundlesAtBlockResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateStakeUponReputerResponse) + x := input.Message.Interface().(*QueryReputerLossBundlesAtBlockResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -39494,8 +38928,8 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) ProtoMethods() *p var n int var l int _ = l - l = len(x.Stake) - if l > 0 { + if x.LossBundles != nil { + l = options.Size(x.LossBundles) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -39508,7 +38942,7 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) ProtoMethods() *p } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeUponReputerResponse) + x := input.Message.Interface().(*QueryReputerLossBundlesAtBlockResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -39527,10 +38961,17 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) ProtoMethods() *p i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Stake) > 0 { - i -= len(x.Stake) - copy(dAtA[i:], x.Stake) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Stake))) + if x.LossBundles != nil { + encoded, err := options.Marshal(x.LossBundles) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -39545,7 +38986,7 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) ProtoMethods() *p }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeUponReputerResponse) + x := input.Message.Interface().(*QueryReputerLossBundlesAtBlockResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -39577,17 +39018,17 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) ProtoMethods() *p fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeUponReputerResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerLossBundlesAtBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeUponReputerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputerLossBundlesAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Stake", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LossBundles", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -39597,23 +39038,27 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) ProtoMethods() *p } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Stake = string(dAtA[iNdEx:postIndex]) + if x.LossBundles == nil { + x.LossBundles = &ReputerValueBundles{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.LossBundles); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } iNdEx = postIndex default: iNdEx = preIndex @@ -39651,28 +39096,28 @@ func (x *fastReflection_QueryDelegateStakeUponReputerResponse) ProtoMethods() *p } var ( - md_QueryDelegateRewardPerShareRequest protoreflect.MessageDescriptor - fd_QueryDelegateRewardPerShareRequest_topic_id protoreflect.FieldDescriptor - fd_QueryDelegateRewardPerShareRequest_reputer protoreflect.FieldDescriptor + md_QueryStakeReputerAuthorityRequest protoreflect.MessageDescriptor + fd_QueryStakeReputerAuthorityRequest_topic_id protoreflect.FieldDescriptor + fd_QueryStakeReputerAuthorityRequest_reputer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateRewardPerShareRequest = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateRewardPerShareRequest") - fd_QueryDelegateRewardPerShareRequest_topic_id = md_QueryDelegateRewardPerShareRequest.Fields().ByName("topic_id") - fd_QueryDelegateRewardPerShareRequest_reputer = md_QueryDelegateRewardPerShareRequest.Fields().ByName("reputer") + file_emissions_v2_query_proto_init() + md_QueryStakeReputerAuthorityRequest = File_emissions_v2_query_proto.Messages().ByName("QueryStakeReputerAuthorityRequest") + fd_QueryStakeReputerAuthorityRequest_topic_id = md_QueryStakeReputerAuthorityRequest.Fields().ByName("topic_id") + fd_QueryStakeReputerAuthorityRequest_reputer = md_QueryStakeReputerAuthorityRequest.Fields().ByName("reputer") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateRewardPerShareRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeReputerAuthorityRequest)(nil) -type fastReflection_QueryDelegateRewardPerShareRequest QueryDelegateRewardPerShareRequest +type fastReflection_QueryStakeReputerAuthorityRequest QueryStakeReputerAuthorityRequest -func (x *QueryDelegateRewardPerShareRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateRewardPerShareRequest)(x) +func (x *QueryStakeReputerAuthorityRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeReputerAuthorityRequest)(x) } -func (x *QueryDelegateRewardPerShareRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[88] +func (x *QueryStakeReputerAuthorityRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[86] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -39683,43 +39128,43 @@ func (x *QueryDelegateRewardPerShareRequest) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryDelegateRewardPerShareRequest_messageType fastReflection_QueryDelegateRewardPerShareRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateRewardPerShareRequest_messageType{} +var _fastReflection_QueryStakeReputerAuthorityRequest_messageType fastReflection_QueryStakeReputerAuthorityRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeReputerAuthorityRequest_messageType{} -type fastReflection_QueryDelegateRewardPerShareRequest_messageType struct{} +type fastReflection_QueryStakeReputerAuthorityRequest_messageType struct{} -func (x fastReflection_QueryDelegateRewardPerShareRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateRewardPerShareRequest)(nil) +func (x fastReflection_QueryStakeReputerAuthorityRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeReputerAuthorityRequest)(nil) } -func (x fastReflection_QueryDelegateRewardPerShareRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateRewardPerShareRequest) +func (x fastReflection_QueryStakeReputerAuthorityRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeReputerAuthorityRequest) } -func (x fastReflection_QueryDelegateRewardPerShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateRewardPerShareRequest +func (x fastReflection_QueryStakeReputerAuthorityRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeReputerAuthorityRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateRewardPerShareRequest +func (x *fastReflection_QueryStakeReputerAuthorityRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeReputerAuthorityRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateRewardPerShareRequest_messageType +func (x *fastReflection_QueryStakeReputerAuthorityRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeReputerAuthorityRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) New() protoreflect.Message { - return new(fastReflection_QueryDelegateRewardPerShareRequest) +func (x *fastReflection_QueryStakeReputerAuthorityRequest) New() protoreflect.Message { + return new(fastReflection_QueryStakeReputerAuthorityRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateRewardPerShareRequest)(x) +func (x *fastReflection_QueryStakeReputerAuthorityRequest) Interface() protoreflect.ProtoMessage { + return (*QueryStakeReputerAuthorityRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -39727,16 +39172,16 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryStakeReputerAuthorityRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryDelegateRewardPerShareRequest_topic_id, value) { + if !f(fd_QueryStakeReputerAuthorityRequest_topic_id, value) { return } } if x.Reputer != "" { value := protoreflect.ValueOfString(x.Reputer) - if !f(fd_QueryDelegateRewardPerShareRequest_reputer, value) { + if !f(fd_QueryStakeReputerAuthorityRequest_reputer, value) { return } } @@ -39753,17 +39198,17 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeReputerAuthorityRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateRewardPerShareRequest.topic_id": + case "emissions.v2.QueryStakeReputerAuthorityRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryDelegateRewardPerShareRequest.reputer": + case "emissions.v2.QueryStakeReputerAuthorityRequest.reputer": return x.Reputer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateRewardPerShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeReputerAuthorityRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateRewardPerShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeReputerAuthorityRequest does not contain field %s", fd.FullName())) } } @@ -39773,17 +39218,17 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeReputerAuthorityRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateRewardPerShareRequest.topic_id": + case "emissions.v2.QueryStakeReputerAuthorityRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryDelegateRewardPerShareRequest.reputer": + case "emissions.v2.QueryStakeReputerAuthorityRequest.reputer": x.Reputer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateRewardPerShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeReputerAuthorityRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateRewardPerShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeReputerAuthorityRequest does not contain field %s", fd.FullName())) } } @@ -39793,19 +39238,19 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeReputerAuthorityRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateRewardPerShareRequest.topic_id": + case "emissions.v2.QueryStakeReputerAuthorityRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryDelegateRewardPerShareRequest.reputer": + case "emissions.v2.QueryStakeReputerAuthorityRequest.reputer": value := x.Reputer return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateRewardPerShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeReputerAuthorityRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateRewardPerShareRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeReputerAuthorityRequest does not contain field %s", descriptor.FullName())) } } @@ -39819,17 +39264,17 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeReputerAuthorityRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateRewardPerShareRequest.topic_id": + case "emissions.v2.QueryStakeReputerAuthorityRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryDelegateRewardPerShareRequest.reputer": + case "emissions.v2.QueryStakeReputerAuthorityRequest.reputer": x.Reputer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateRewardPerShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeReputerAuthorityRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateRewardPerShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeReputerAuthorityRequest does not contain field %s", fd.FullName())) } } @@ -39843,44 +39288,44 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeReputerAuthorityRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateRewardPerShareRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryDelegateRewardPerShareRequest is not mutable")) - case "emissions.v1.QueryDelegateRewardPerShareRequest.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.QueryDelegateRewardPerShareRequest is not mutable")) + case "emissions.v2.QueryStakeReputerAuthorityRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryStakeReputerAuthorityRequest is not mutable")) + case "emissions.v2.QueryStakeReputerAuthorityRequest.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.QueryStakeReputerAuthorityRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateRewardPerShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeReputerAuthorityRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateRewardPerShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeReputerAuthorityRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeReputerAuthorityRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateRewardPerShareRequest.topic_id": + case "emissions.v2.QueryStakeReputerAuthorityRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryDelegateRewardPerShareRequest.reputer": + case "emissions.v2.QueryStakeReputerAuthorityRequest.reputer": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateRewardPerShareRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeReputerAuthorityRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateRewardPerShareRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeReputerAuthorityRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeReputerAuthorityRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateRewardPerShareRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeReputerAuthorityRequest", d.FullName())) } panic("unreachable") } @@ -39888,7 +39333,7 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeReputerAuthorityRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -39899,7 +39344,7 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeReputerAuthorityRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -39911,7 +39356,7 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) IsValid() bool { +func (x *fastReflection_QueryStakeReputerAuthorityRequest) IsValid() bool { return x != nil } @@ -39921,9 +39366,9 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateRewardPerShareRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeReputerAuthorityRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateRewardPerShareRequest) + x := input.Message.Interface().(*QueryStakeReputerAuthorityRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -39952,7 +39397,7 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateRewardPerShareRequest) + x := input.Message.Interface().(*QueryStakeReputerAuthorityRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -39994,7 +39439,7 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateRewardPerShareRequest) + x := input.Message.Interface().(*QueryStakeReputerAuthorityRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -40026,10 +39471,10 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateRewardPerShareRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeReputerAuthorityRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateRewardPerShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeReputerAuthorityRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -40119,26 +39564,26 @@ func (x *fastReflection_QueryDelegateRewardPerShareRequest) ProtoMethods() *prot } var ( - md_QueryDelegateRewardPerShareResponse protoreflect.MessageDescriptor - fd_QueryDelegateRewardPerShareResponse_reward_per_share protoreflect.FieldDescriptor + md_QueryStakeReputerAuthorityResponse protoreflect.MessageDescriptor + fd_QueryStakeReputerAuthorityResponse_authority protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateRewardPerShareResponse = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateRewardPerShareResponse") - fd_QueryDelegateRewardPerShareResponse_reward_per_share = md_QueryDelegateRewardPerShareResponse.Fields().ByName("reward_per_share") + file_emissions_v2_query_proto_init() + md_QueryStakeReputerAuthorityResponse = File_emissions_v2_query_proto.Messages().ByName("QueryStakeReputerAuthorityResponse") + fd_QueryStakeReputerAuthorityResponse_authority = md_QueryStakeReputerAuthorityResponse.Fields().ByName("authority") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateRewardPerShareResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeReputerAuthorityResponse)(nil) -type fastReflection_QueryDelegateRewardPerShareResponse QueryDelegateRewardPerShareResponse +type fastReflection_QueryStakeReputerAuthorityResponse QueryStakeReputerAuthorityResponse -func (x *QueryDelegateRewardPerShareResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateRewardPerShareResponse)(x) +func (x *QueryStakeReputerAuthorityResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeReputerAuthorityResponse)(x) } -func (x *QueryDelegateRewardPerShareResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[89] +func (x *QueryStakeReputerAuthorityResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[87] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -40149,43 +39594,43 @@ func (x *QueryDelegateRewardPerShareResponse) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_QueryDelegateRewardPerShareResponse_messageType fastReflection_QueryDelegateRewardPerShareResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateRewardPerShareResponse_messageType{} +var _fastReflection_QueryStakeReputerAuthorityResponse_messageType fastReflection_QueryStakeReputerAuthorityResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeReputerAuthorityResponse_messageType{} -type fastReflection_QueryDelegateRewardPerShareResponse_messageType struct{} +type fastReflection_QueryStakeReputerAuthorityResponse_messageType struct{} -func (x fastReflection_QueryDelegateRewardPerShareResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateRewardPerShareResponse)(nil) +func (x fastReflection_QueryStakeReputerAuthorityResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeReputerAuthorityResponse)(nil) } -func (x fastReflection_QueryDelegateRewardPerShareResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateRewardPerShareResponse) +func (x fastReflection_QueryStakeReputerAuthorityResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeReputerAuthorityResponse) } -func (x fastReflection_QueryDelegateRewardPerShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateRewardPerShareResponse +func (x fastReflection_QueryStakeReputerAuthorityResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeReputerAuthorityResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateRewardPerShareResponse +func (x *fastReflection_QueryStakeReputerAuthorityResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeReputerAuthorityResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateRewardPerShareResponse_messageType +func (x *fastReflection_QueryStakeReputerAuthorityResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeReputerAuthorityResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) New() protoreflect.Message { - return new(fastReflection_QueryDelegateRewardPerShareResponse) +func (x *fastReflection_QueryStakeReputerAuthorityResponse) New() protoreflect.Message { + return new(fastReflection_QueryStakeReputerAuthorityResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateRewardPerShareResponse)(x) +func (x *fastReflection_QueryStakeReputerAuthorityResponse) Interface() protoreflect.ProtoMessage { + return (*QueryStakeReputerAuthorityResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -40193,10 +39638,10 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.RewardPerShare != "" { - value := protoreflect.ValueOfString(x.RewardPerShare) - if !f(fd_QueryDelegateRewardPerShareResponse_reward_per_share, value) { +func (x *fastReflection_QueryStakeReputerAuthorityResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Authority != "" { + value := protoreflect.ValueOfString(x.Authority) + if !f(fd_QueryStakeReputerAuthorityResponse_authority, value) { return } } @@ -40213,15 +39658,15 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) Range(f func(protor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeReputerAuthorityResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateRewardPerShareResponse.reward_per_share": - return x.RewardPerShare != "" + case "emissions.v2.QueryStakeReputerAuthorityResponse.authority": + return x.Authority != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateRewardPerShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeReputerAuthorityResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateRewardPerShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeReputerAuthorityResponse does not contain field %s", fd.FullName())) } } @@ -40231,15 +39676,15 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeReputerAuthorityResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateRewardPerShareResponse.reward_per_share": - x.RewardPerShare = "" + case "emissions.v2.QueryStakeReputerAuthorityResponse.authority": + x.Authority = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateRewardPerShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeReputerAuthorityResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateRewardPerShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeReputerAuthorityResponse does not contain field %s", fd.FullName())) } } @@ -40249,16 +39694,16 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) Clear(fd protorefle // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeReputerAuthorityResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateRewardPerShareResponse.reward_per_share": - value := x.RewardPerShare + case "emissions.v2.QueryStakeReputerAuthorityResponse.authority": + value := x.Authority return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateRewardPerShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeReputerAuthorityResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateRewardPerShareResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeReputerAuthorityResponse does not contain field %s", descriptor.FullName())) } } @@ -40272,15 +39717,15 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeReputerAuthorityResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateRewardPerShareResponse.reward_per_share": - x.RewardPerShare = value.Interface().(string) + case "emissions.v2.QueryStakeReputerAuthorityResponse.authority": + x.Authority = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateRewardPerShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeReputerAuthorityResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateRewardPerShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeReputerAuthorityResponse does not contain field %s", fd.FullName())) } } @@ -40294,40 +39739,40 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeReputerAuthorityResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateRewardPerShareResponse.reward_per_share": - panic(fmt.Errorf("field reward_per_share of message emissions.v1.QueryDelegateRewardPerShareResponse is not mutable")) + case "emissions.v2.QueryStakeReputerAuthorityResponse.authority": + panic(fmt.Errorf("field authority of message emissions.v2.QueryStakeReputerAuthorityResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateRewardPerShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeReputerAuthorityResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateRewardPerShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeReputerAuthorityResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeReputerAuthorityResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateRewardPerShareResponse.reward_per_share": + case "emissions.v2.QueryStakeReputerAuthorityResponse.authority": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateRewardPerShareResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeReputerAuthorityResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateRewardPerShareResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeReputerAuthorityResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeReputerAuthorityResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateRewardPerShareResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeReputerAuthorityResponse", d.FullName())) } panic("unreachable") } @@ -40335,7 +39780,7 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) WhichOneof(d protor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeReputerAuthorityResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -40346,7 +39791,7 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeReputerAuthorityResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -40358,7 +39803,7 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) SetUnknown(fields p // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) IsValid() bool { +func (x *fastReflection_QueryStakeReputerAuthorityResponse) IsValid() bool { return x != nil } @@ -40368,9 +39813,9 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateRewardPerShareResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeReputerAuthorityResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateRewardPerShareResponse) + x := input.Message.Interface().(*QueryStakeReputerAuthorityResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -40382,7 +39827,7 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) ProtoMethods() *pro var n int var l int _ = l - l = len(x.RewardPerShare) + l = len(x.Authority) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -40396,7 +39841,7 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateRewardPerShareResponse) + x := input.Message.Interface().(*QueryStakeReputerAuthorityResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -40415,10 +39860,10 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) ProtoMethods() *pro i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.RewardPerShare) > 0 { - i -= len(x.RewardPerShare) - copy(dAtA[i:], x.RewardPerShare) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RewardPerShare))) + if len(x.Authority) > 0 { + i -= len(x.Authority) + copy(dAtA[i:], x.Authority) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Authority))) i-- dAtA[i] = 0xa } @@ -40433,7 +39878,7 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateRewardPerShareResponse) + x := input.Message.Interface().(*QueryStakeReputerAuthorityResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -40465,15 +39910,15 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateRewardPerShareResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeReputerAuthorityResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateRewardPerShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeReputerAuthorityResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RewardPerShare", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Authority", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -40501,7 +39946,7 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) ProtoMethods() *pro if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.RewardPerShare = string(dAtA[iNdEx:postIndex]) + x.Authority = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -40539,28 +39984,30 @@ func (x *fastReflection_QueryDelegateRewardPerShareResponse) ProtoMethods() *pro } var ( - md_QueryStakeRemovalForReputerAndTopicIdRequest protoreflect.MessageDescriptor - fd_QueryStakeRemovalForReputerAndTopicIdRequest_reputer protoreflect.FieldDescriptor - fd_QueryStakeRemovalForReputerAndTopicIdRequest_topic_id protoreflect.FieldDescriptor + md_QueryDelegateStakePlacementRequest protoreflect.MessageDescriptor + fd_QueryDelegateStakePlacementRequest_topic_id protoreflect.FieldDescriptor + fd_QueryDelegateStakePlacementRequest_delegator protoreflect.FieldDescriptor + fd_QueryDelegateStakePlacementRequest_target protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeRemovalForReputerAndTopicIdRequest = File_emissions_v1_query_proto.Messages().ByName("QueryStakeRemovalForReputerAndTopicIdRequest") - fd_QueryStakeRemovalForReputerAndTopicIdRequest_reputer = md_QueryStakeRemovalForReputerAndTopicIdRequest.Fields().ByName("reputer") - fd_QueryStakeRemovalForReputerAndTopicIdRequest_topic_id = md_QueryStakeRemovalForReputerAndTopicIdRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryDelegateStakePlacementRequest = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateStakePlacementRequest") + fd_QueryDelegateStakePlacementRequest_topic_id = md_QueryDelegateStakePlacementRequest.Fields().ByName("topic_id") + fd_QueryDelegateStakePlacementRequest_delegator = md_QueryDelegateStakePlacementRequest.Fields().ByName("delegator") + fd_QueryDelegateStakePlacementRequest_target = md_QueryDelegateStakePlacementRequest.Fields().ByName("target") } -var _ protoreflect.Message = (*fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateStakePlacementRequest)(nil) -type fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest QueryStakeRemovalForReputerAndTopicIdRequest +type fastReflection_QueryDelegateStakePlacementRequest QueryDelegateStakePlacementRequest -func (x *QueryStakeRemovalForReputerAndTopicIdRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest)(x) +func (x *QueryDelegateStakePlacementRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateStakePlacementRequest)(x) } -func (x *QueryStakeRemovalForReputerAndTopicIdRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[90] +func (x *QueryDelegateStakePlacementRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[88] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -40571,43 +40018,43 @@ func (x *QueryStakeRemovalForReputerAndTopicIdRequest) slowProtoReflect() protor return mi.MessageOf(x) } -var _fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType{} +var _fastReflection_QueryDelegateStakePlacementRequest_messageType fastReflection_QueryDelegateStakePlacementRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateStakePlacementRequest_messageType{} -type fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType struct{} +type fastReflection_QueryDelegateStakePlacementRequest_messageType struct{} -func (x fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest)(nil) +func (x fastReflection_QueryDelegateStakePlacementRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateStakePlacementRequest)(nil) } -func (x fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) +func (x fastReflection_QueryDelegateStakePlacementRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakePlacementRequest) } -func (x fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeRemovalForReputerAndTopicIdRequest +func (x fastReflection_QueryDelegateStakePlacementRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakePlacementRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeRemovalForReputerAndTopicIdRequest +func (x *fastReflection_QueryDelegateStakePlacementRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakePlacementRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType +func (x *fastReflection_QueryDelegateStakePlacementRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateStakePlacementRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) New() protoreflect.Message { - return new(fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) +func (x *fastReflection_QueryDelegateStakePlacementRequest) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakePlacementRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Interface() protoreflect.ProtoMessage { - return (*QueryStakeRemovalForReputerAndTopicIdRequest)(x) +func (x *fastReflection_QueryDelegateStakePlacementRequest) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateStakePlacementRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -40615,16 +40062,22 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Interface( // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Reputer != "" { - value := protoreflect.ValueOfString(x.Reputer) - if !f(fd_QueryStakeRemovalForReputerAndTopicIdRequest_reputer, value) { +func (x *fastReflection_QueryDelegateStakePlacementRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryDelegateStakePlacementRequest_topic_id, value) { return } } - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryStakeRemovalForReputerAndTopicIdRequest_topic_id, value) { + if x.Delegator != "" { + value := protoreflect.ValueOfString(x.Delegator) + if !f(fd_QueryDelegateStakePlacementRequest_delegator, value) { + return + } + } + if x.Target != "" { + value := protoreflect.ValueOfString(x.Target) + if !f(fd_QueryDelegateStakePlacementRequest_target, value) { return } } @@ -40641,17 +40094,19 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Range(f fu // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateStakePlacementRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest.reputer": - return x.Reputer != "" - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest.topic_id": + case "emissions.v2.QueryDelegateStakePlacementRequest.topic_id": return x.TopicId != uint64(0) + case "emissions.v2.QueryDelegateStakePlacementRequest.delegator": + return x.Delegator != "" + case "emissions.v2.QueryDelegateStakePlacementRequest.target": + return x.Target != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakePlacementRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakePlacementRequest does not contain field %s", fd.FullName())) } } @@ -40661,17 +40116,19 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Has(fd pro // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateStakePlacementRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest.reputer": - x.Reputer = "" - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest.topic_id": + case "emissions.v2.QueryDelegateStakePlacementRequest.topic_id": x.TopicId = uint64(0) + case "emissions.v2.QueryDelegateStakePlacementRequest.delegator": + x.Delegator = "" + case "emissions.v2.QueryDelegateStakePlacementRequest.target": + x.Target = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakePlacementRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakePlacementRequest does not contain field %s", fd.FullName())) } } @@ -40681,19 +40138,22 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Clear(fd p // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakePlacementRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest.reputer": - value := x.Reputer - return protoreflect.ValueOfString(value) - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest.topic_id": + case "emissions.v2.QueryDelegateStakePlacementRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryDelegateStakePlacementRequest.delegator": + value := x.Delegator + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryDelegateStakePlacementRequest.target": + value := x.Target + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakePlacementRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakePlacementRequest does not contain field %s", descriptor.FullName())) } } @@ -40707,17 +40167,19 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Get(descri // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateStakePlacementRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest.reputer": - x.Reputer = value.Interface().(string) - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest.topic_id": + case "emissions.v2.QueryDelegateStakePlacementRequest.topic_id": x.TopicId = value.Uint() + case "emissions.v2.QueryDelegateStakePlacementRequest.delegator": + x.Delegator = value.Interface().(string) + case "emissions.v2.QueryDelegateStakePlacementRequest.target": + x.Target = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakePlacementRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakePlacementRequest does not contain field %s", fd.FullName())) } } @@ -40731,44 +40193,48 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Set(fd pro // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakePlacementRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest is not mutable")) - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest is not mutable")) + case "emissions.v2.QueryDelegateStakePlacementRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryDelegateStakePlacementRequest is not mutable")) + case "emissions.v2.QueryDelegateStakePlacementRequest.delegator": + panic(fmt.Errorf("field delegator of message emissions.v2.QueryDelegateStakePlacementRequest is not mutable")) + case "emissions.v2.QueryDelegateStakePlacementRequest.target": + panic(fmt.Errorf("field target of message emissions.v2.QueryDelegateStakePlacementRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakePlacementRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakePlacementRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakePlacementRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest.reputer": - return protoreflect.ValueOfString("") - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest.topic_id": + case "emissions.v2.QueryDelegateStakePlacementRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryDelegateStakePlacementRequest.delegator": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryDelegateStakePlacementRequest.target": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakePlacementRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakePlacementRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateStakePlacementRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateStakePlacementRequest", d.FullName())) } panic("unreachable") } @@ -40776,7 +40242,7 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) WhichOneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateStakePlacementRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -40787,7 +40253,7 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) GetUnknown // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateStakePlacementRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -40799,7 +40265,7 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) SetUnknown // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) IsValid() bool { +func (x *fastReflection_QueryDelegateStakePlacementRequest) IsValid() bool { return x != nil } @@ -40809,9 +40275,9 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) IsValid() // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateStakePlacementRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeRemovalForReputerAndTopicIdRequest) + x := input.Message.Interface().(*QueryDelegateStakePlacementRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -40823,12 +40289,16 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) ProtoMetho var n int var l int _ = l - l = len(x.Reputer) + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.Delegator) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) + l = len(x.Target) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -40840,7 +40310,7 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) ProtoMetho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeRemovalForReputerAndTopicIdRequest) + x := input.Message.Interface().(*QueryDelegateStakePlacementRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -40859,17 +40329,24 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) ProtoMetho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + if len(x.Target) > 0 { + i -= len(x.Target) + copy(dAtA[i:], x.Target) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Target))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x1a } - if len(x.Reputer) > 0 { - i -= len(x.Reputer) - copy(dAtA[i:], x.Reputer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) + if len(x.Delegator) > 0 { + i -= len(x.Delegator) + copy(dAtA[i:], x.Delegator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Delegator))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -40882,7 +40359,7 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) ProtoMetho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeRemovalForReputerAndTopicIdRequest) + x := input.Message.Interface().(*QueryDelegateStakePlacementRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -40914,15 +40391,34 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) ProtoMetho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalForReputerAndTopicIdRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakePlacementRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalForReputerAndTopicIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakePlacementRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Delegator", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -40950,13 +40446,13 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) ProtoMetho if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Reputer = string(dAtA[iNdEx:postIndex]) + x.Delegator = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) } - x.TopicId = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -40966,11 +40462,24 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) ProtoMetho } b := dAtA[iNdEx] iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Target = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -41007,26 +40516,26 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) ProtoMetho } var ( - md_QueryStakeRemovalForReputerAndTopicIdResponse protoreflect.MessageDescriptor - fd_QueryStakeRemovalForReputerAndTopicIdResponse_stake_removal_info protoreflect.FieldDescriptor + md_QueryDelegateStakePlacementResponse protoreflect.MessageDescriptor + fd_QueryDelegateStakePlacementResponse_delegator_info protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryStakeRemovalForReputerAndTopicIdResponse = File_emissions_v1_query_proto.Messages().ByName("QueryStakeRemovalForReputerAndTopicIdResponse") - fd_QueryStakeRemovalForReputerAndTopicIdResponse_stake_removal_info = md_QueryStakeRemovalForReputerAndTopicIdResponse.Fields().ByName("stake_removal_info") + file_emissions_v2_query_proto_init() + md_QueryDelegateStakePlacementResponse = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateStakePlacementResponse") + fd_QueryDelegateStakePlacementResponse_delegator_info = md_QueryDelegateStakePlacementResponse.Fields().ByName("delegator_info") } -var _ protoreflect.Message = (*fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateStakePlacementResponse)(nil) -type fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse QueryStakeRemovalForReputerAndTopicIdResponse +type fastReflection_QueryDelegateStakePlacementResponse QueryDelegateStakePlacementResponse -func (x *QueryStakeRemovalForReputerAndTopicIdResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse)(x) +func (x *QueryDelegateStakePlacementResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateStakePlacementResponse)(x) } -func (x *QueryStakeRemovalForReputerAndTopicIdResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[91] +func (x *QueryDelegateStakePlacementResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[89] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -41037,43 +40546,43 @@ func (x *QueryStakeRemovalForReputerAndTopicIdResponse) slowProtoReflect() proto return mi.MessageOf(x) } -var _fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType{} +var _fastReflection_QueryDelegateStakePlacementResponse_messageType fastReflection_QueryDelegateStakePlacementResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateStakePlacementResponse_messageType{} -type fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType struct{} +type fastReflection_QueryDelegateStakePlacementResponse_messageType struct{} -func (x fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse)(nil) +func (x fastReflection_QueryDelegateStakePlacementResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateStakePlacementResponse)(nil) } -func (x fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) +func (x fastReflection_QueryDelegateStakePlacementResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakePlacementResponse) } -func (x fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeRemovalForReputerAndTopicIdResponse +func (x fastReflection_QueryDelegateStakePlacementResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakePlacementResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryStakeRemovalForReputerAndTopicIdResponse +func (x *fastReflection_QueryDelegateStakePlacementResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakePlacementResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType +func (x *fastReflection_QueryDelegateStakePlacementResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateStakePlacementResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) New() protoreflect.Message { - return new(fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) +func (x *fastReflection_QueryDelegateStakePlacementResponse) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakePlacementResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Interface() protoreflect.ProtoMessage { - return (*QueryStakeRemovalForReputerAndTopicIdResponse)(x) +func (x *fastReflection_QueryDelegateStakePlacementResponse) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateStakePlacementResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -41081,10 +40590,10 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Interface // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.StakeRemovalInfo != nil { - value := protoreflect.ValueOfMessage(x.StakeRemovalInfo.ProtoReflect()) - if !f(fd_QueryStakeRemovalForReputerAndTopicIdResponse_stake_removal_info, value) { +func (x *fastReflection_QueryDelegateStakePlacementResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.DelegatorInfo != nil { + value := protoreflect.ValueOfMessage(x.DelegatorInfo.ProtoReflect()) + if !f(fd_QueryDelegateStakePlacementResponse_delegator_info, value) { return } } @@ -41101,15 +40610,15 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Range(f f // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateStakePlacementResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info": - return x.StakeRemovalInfo != nil + case "emissions.v2.QueryDelegateStakePlacementResponse.delegator_info": + return x.DelegatorInfo != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakePlacementResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakePlacementResponse does not contain field %s", fd.FullName())) } } @@ -41119,15 +40628,15 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Has(fd pr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateStakePlacementResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info": - x.StakeRemovalInfo = nil + case "emissions.v2.QueryDelegateStakePlacementResponse.delegator_info": + x.DelegatorInfo = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakePlacementResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakePlacementResponse does not contain field %s", fd.FullName())) } } @@ -41137,16 +40646,16 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Clear(fd // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakePlacementResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info": - value := x.StakeRemovalInfo + case "emissions.v2.QueryDelegateStakePlacementResponse.delegator_info": + value := x.DelegatorInfo return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakePlacementResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakePlacementResponse does not contain field %s", descriptor.FullName())) } } @@ -41160,15 +40669,15 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Get(descr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateStakePlacementResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info": - x.StakeRemovalInfo = value.Message().Interface().(*StakeRemovalInfo) + case "emissions.v2.QueryDelegateStakePlacementResponse.delegator_info": + x.DelegatorInfo = value.Message().Interface().(*DelegatorInfo) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakePlacementResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakePlacementResponse does not contain field %s", fd.FullName())) } } @@ -41182,44 +40691,44 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Set(fd pr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakePlacementResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info": - if x.StakeRemovalInfo == nil { - x.StakeRemovalInfo = new(StakeRemovalInfo) + case "emissions.v2.QueryDelegateStakePlacementResponse.delegator_info": + if x.DelegatorInfo == nil { + x.DelegatorInfo = new(DelegatorInfo) } - return protoreflect.ValueOfMessage(x.StakeRemovalInfo.ProtoReflect()) + return protoreflect.ValueOfMessage(x.DelegatorInfo.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakePlacementResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakePlacementResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakePlacementResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info": - m := new(StakeRemovalInfo) + case "emissions.v2.QueryDelegateStakePlacementResponse.delegator_info": + m := new(DelegatorInfo) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakePlacementResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakePlacementResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateStakePlacementResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateStakePlacementResponse", d.FullName())) } panic("unreachable") } @@ -41227,7 +40736,7 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) WhichOneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateStakePlacementResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -41238,7 +40747,7 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) GetUnknow // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateStakePlacementResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -41250,7 +40759,7 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) SetUnknow // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) IsValid() bool { +func (x *fastReflection_QueryDelegateStakePlacementResponse) IsValid() bool { return x != nil } @@ -41260,9 +40769,9 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) IsValid() // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateStakePlacementResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryStakeRemovalForReputerAndTopicIdResponse) + x := input.Message.Interface().(*QueryDelegateStakePlacementResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -41274,8 +40783,8 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) ProtoMeth var n int var l int _ = l - if x.StakeRemovalInfo != nil { - l = options.Size(x.StakeRemovalInfo) + if x.DelegatorInfo != nil { + l = options.Size(x.DelegatorInfo) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -41288,7 +40797,7 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) ProtoMeth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeRemovalForReputerAndTopicIdResponse) + x := input.Message.Interface().(*QueryDelegateStakePlacementResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -41307,8 +40816,8 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) ProtoMeth i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.StakeRemovalInfo != nil { - encoded, err := options.Marshal(x.StakeRemovalInfo) + if x.DelegatorInfo != nil { + encoded, err := options.Marshal(x.DelegatorInfo) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -41332,7 +40841,7 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) ProtoMeth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryStakeRemovalForReputerAndTopicIdResponse) + x := input.Message.Interface().(*QueryDelegateStakePlacementResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -41364,15 +40873,15 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) ProtoMeth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalForReputerAndTopicIdResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakePlacementResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalForReputerAndTopicIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakePlacementResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StakeRemovalInfo", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DelegatorInfo", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -41399,10 +40908,10 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) ProtoMeth if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.StakeRemovalInfo == nil { - x.StakeRemovalInfo = &StakeRemovalInfo{} + if x.DelegatorInfo == nil { + x.DelegatorInfo = &DelegatorInfo{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StakeRemovalInfo); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.DelegatorInfo); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -41442,32 +40951,28 @@ func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) ProtoMeth } var ( - md_QueryDelegateStakeRemovalRequest protoreflect.MessageDescriptor - fd_QueryDelegateStakeRemovalRequest_block_height protoreflect.FieldDescriptor - fd_QueryDelegateStakeRemovalRequest_topic_id protoreflect.FieldDescriptor - fd_QueryDelegateStakeRemovalRequest_delegator protoreflect.FieldDescriptor - fd_QueryDelegateStakeRemovalRequest_reputer protoreflect.FieldDescriptor + md_QueryDelegateStakeUponReputerRequest protoreflect.MessageDescriptor + fd_QueryDelegateStakeUponReputerRequest_topic_id protoreflect.FieldDescriptor + fd_QueryDelegateStakeUponReputerRequest_target protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateStakeRemovalRequest = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateStakeRemovalRequest") - fd_QueryDelegateStakeRemovalRequest_block_height = md_QueryDelegateStakeRemovalRequest.Fields().ByName("block_height") - fd_QueryDelegateStakeRemovalRequest_topic_id = md_QueryDelegateStakeRemovalRequest.Fields().ByName("topic_id") - fd_QueryDelegateStakeRemovalRequest_delegator = md_QueryDelegateStakeRemovalRequest.Fields().ByName("delegator") - fd_QueryDelegateStakeRemovalRequest_reputer = md_QueryDelegateStakeRemovalRequest.Fields().ByName("reputer") + file_emissions_v2_query_proto_init() + md_QueryDelegateStakeUponReputerRequest = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateStakeUponReputerRequest") + fd_QueryDelegateStakeUponReputerRequest_topic_id = md_QueryDelegateStakeUponReputerRequest.Fields().ByName("topic_id") + fd_QueryDelegateStakeUponReputerRequest_target = md_QueryDelegateStakeUponReputerRequest.Fields().ByName("target") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeRemovalRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeUponReputerRequest)(nil) -type fastReflection_QueryDelegateStakeRemovalRequest QueryDelegateStakeRemovalRequest +type fastReflection_QueryDelegateStakeUponReputerRequest QueryDelegateStakeUponReputerRequest -func (x *QueryDelegateStakeRemovalRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeRemovalRequest)(x) +func (x *QueryDelegateStakeUponReputerRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeUponReputerRequest)(x) } -func (x *QueryDelegateStakeRemovalRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[92] +func (x *QueryDelegateStakeUponReputerRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[90] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -41478,43 +40983,43 @@ func (x *QueryDelegateStakeRemovalRequest) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_QueryDelegateStakeRemovalRequest_messageType fastReflection_QueryDelegateStakeRemovalRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeRemovalRequest_messageType{} +var _fastReflection_QueryDelegateStakeUponReputerRequest_messageType fastReflection_QueryDelegateStakeUponReputerRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeUponReputerRequest_messageType{} -type fastReflection_QueryDelegateStakeRemovalRequest_messageType struct{} +type fastReflection_QueryDelegateStakeUponReputerRequest_messageType struct{} -func (x fastReflection_QueryDelegateStakeRemovalRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeRemovalRequest)(nil) +func (x fastReflection_QueryDelegateStakeUponReputerRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeUponReputerRequest)(nil) } -func (x fastReflection_QueryDelegateStakeRemovalRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeRemovalRequest) +func (x fastReflection_QueryDelegateStakeUponReputerRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeUponReputerRequest) } -func (x fastReflection_QueryDelegateStakeRemovalRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeRemovalRequest +func (x fastReflection_QueryDelegateStakeUponReputerRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeUponReputerRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeRemovalRequest +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeUponReputerRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateStakeRemovalRequest_messageType +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateStakeUponReputerRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeRemovalRequest) +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeUponReputerRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateStakeRemovalRequest)(x) +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateStakeUponReputerRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -41522,28 +41027,16 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.BlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryDelegateStakeRemovalRequest_block_height, value) { - return - } - } +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryDelegateStakeRemovalRequest_topic_id, value) { - return - } - } - if x.Delegator != "" { - value := protoreflect.ValueOfString(x.Delegator) - if !f(fd_QueryDelegateStakeRemovalRequest_delegator, value) { + if !f(fd_QueryDelegateStakeUponReputerRequest_topic_id, value) { return } } - if x.Reputer != "" { - value := protoreflect.ValueOfString(x.Reputer) - if !f(fd_QueryDelegateStakeRemovalRequest_reputer, value) { + if x.Target != "" { + value := protoreflect.ValueOfString(x.Target) + if !f(fd_QueryDelegateStakeUponReputerRequest_target, value) { return } } @@ -41560,21 +41053,17 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) Range(f func(protorefl // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalRequest.block_height": - return x.BlockHeight != int64(0) - case "emissions.v1.QueryDelegateStakeRemovalRequest.topic_id": + case "emissions.v2.QueryDelegateStakeUponReputerRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryDelegateStakeRemovalRequest.delegator": - return x.Delegator != "" - case "emissions.v1.QueryDelegateStakeRemovalRequest.reputer": - return x.Reputer != "" + case "emissions.v2.QueryDelegateStakeUponReputerRequest.target": + return x.Target != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeUponReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeUponReputerRequest does not contain field %s", fd.FullName())) } } @@ -41584,21 +41073,17 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalRequest.block_height": - x.BlockHeight = int64(0) - case "emissions.v1.QueryDelegateStakeRemovalRequest.topic_id": + case "emissions.v2.QueryDelegateStakeUponReputerRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryDelegateStakeRemovalRequest.delegator": - x.Delegator = "" - case "emissions.v1.QueryDelegateStakeRemovalRequest.reputer": - x.Reputer = "" + case "emissions.v2.QueryDelegateStakeUponReputerRequest.target": + x.Target = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeUponReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeUponReputerRequest does not contain field %s", fd.FullName())) } } @@ -41608,25 +41093,19 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) Clear(fd protoreflect. // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalRequest.block_height": - value := x.BlockHeight - return protoreflect.ValueOfInt64(value) - case "emissions.v1.QueryDelegateStakeRemovalRequest.topic_id": + case "emissions.v2.QueryDelegateStakeUponReputerRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryDelegateStakeRemovalRequest.delegator": - value := x.Delegator - return protoreflect.ValueOfString(value) - case "emissions.v1.QueryDelegateStakeRemovalRequest.reputer": - value := x.Reputer + case "emissions.v2.QueryDelegateStakeUponReputerRequest.target": + value := x.Target return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeUponReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeUponReputerRequest does not contain field %s", descriptor.FullName())) } } @@ -41640,21 +41119,17 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalRequest.block_height": - x.BlockHeight = value.Int() - case "emissions.v1.QueryDelegateStakeRemovalRequest.topic_id": + case "emissions.v2.QueryDelegateStakeUponReputerRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryDelegateStakeRemovalRequest.delegator": - x.Delegator = value.Interface().(string) - case "emissions.v1.QueryDelegateStakeRemovalRequest.reputer": - x.Reputer = value.Interface().(string) + case "emissions.v2.QueryDelegateStakeUponReputerRequest.target": + x.Target = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeUponReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeUponReputerRequest does not contain field %s", fd.FullName())) } } @@ -41668,52 +41143,44 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryDelegateStakeRemovalRequest is not mutable")) - case "emissions.v1.QueryDelegateStakeRemovalRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryDelegateStakeRemovalRequest is not mutable")) - case "emissions.v1.QueryDelegateStakeRemovalRequest.delegator": - panic(fmt.Errorf("field delegator of message emissions.v1.QueryDelegateStakeRemovalRequest is not mutable")) - case "emissions.v1.QueryDelegateStakeRemovalRequest.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.QueryDelegateStakeRemovalRequest is not mutable")) + case "emissions.v2.QueryDelegateStakeUponReputerRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryDelegateStakeUponReputerRequest is not mutable")) + case "emissions.v2.QueryDelegateStakeUponReputerRequest.target": + panic(fmt.Errorf("field target of message emissions.v2.QueryDelegateStakeUponReputerRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeUponReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeUponReputerRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalRequest.block_height": - return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.QueryDelegateStakeRemovalRequest.topic_id": + case "emissions.v2.QueryDelegateStakeUponReputerRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryDelegateStakeRemovalRequest.delegator": - return protoreflect.ValueOfString("") - case "emissions.v1.QueryDelegateStakeRemovalRequest.reputer": + case "emissions.v2.QueryDelegateStakeUponReputerRequest.target": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeUponReputerRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeUponReputerRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateStakeRemovalRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateStakeUponReputerRequest", d.FullName())) } panic("unreachable") } @@ -41721,7 +41188,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) WhichOneof(d protorefl // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -41732,7 +41199,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -41744,7 +41211,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) SetUnknown(fields prot // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) IsValid() bool { +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) IsValid() bool { return x != nil } @@ -41754,9 +41221,9 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateStakeRemovalRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateStakeUponReputerRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateStakeRemovalRequest) + x := input.Message.Interface().(*QueryDelegateStakeUponReputerRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -41768,17 +41235,10 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) ProtoMethods() *protoi var n int var l int _ = l - if x.BlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeight)) - } if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Delegator) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.Reputer) + l = len(x.Target) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -41792,7 +41252,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeRemovalRequest) + x := input.Message.Interface().(*QueryDelegateStakeUponReputerRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -41811,28 +41271,16 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) ProtoMethods() *protoi i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Reputer) > 0 { - i -= len(x.Reputer) - copy(dAtA[i:], x.Reputer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) - i-- - dAtA[i] = 0x22 - } - if len(x.Delegator) > 0 { - i -= len(x.Delegator) - copy(dAtA[i:], x.Delegator) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Delegator))) + if len(x.Target) > 0 { + i -= len(x.Target) + copy(dAtA[i:], x.Target) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Target))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x12 } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- - dAtA[i] = 0x10 - } - if x.BlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) - i-- dAtA[i] = 0x8 } if input.Buf != nil { @@ -41846,7 +41294,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeRemovalRequest) + x := input.Message.Interface().(*QueryDelegateStakeUponReputerRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -41878,32 +41326,13 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) ProtoMethods() *protoi fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeUponReputerRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeUponReputerRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) - } - x.BlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.BlockHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } @@ -41922,41 +41351,9 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) ProtoMethods() *protoi break } } - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Delegator", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Delegator = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 4: + case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -41984,7 +41381,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) ProtoMethods() *protoi if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Reputer = string(dAtA[iNdEx:postIndex]) + x.Target = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -42022,26 +41419,26 @@ func (x *fastReflection_QueryDelegateStakeRemovalRequest) ProtoMethods() *protoi } var ( - md_QueryDelegateStakeRemovalResponse protoreflect.MessageDescriptor - fd_QueryDelegateStakeRemovalResponse_stake_removal_info protoreflect.FieldDescriptor + md_QueryDelegateStakeUponReputerResponse protoreflect.MessageDescriptor + fd_QueryDelegateStakeUponReputerResponse_stake protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryDelegateStakeRemovalResponse = File_emissions_v1_query_proto.Messages().ByName("QueryDelegateStakeRemovalResponse") - fd_QueryDelegateStakeRemovalResponse_stake_removal_info = md_QueryDelegateStakeRemovalResponse.Fields().ByName("stake_removal_info") + file_emissions_v2_query_proto_init() + md_QueryDelegateStakeUponReputerResponse = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateStakeUponReputerResponse") + fd_QueryDelegateStakeUponReputerResponse_stake = md_QueryDelegateStakeUponReputerResponse.Fields().ByName("stake") } -var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeRemovalResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeUponReputerResponse)(nil) -type fastReflection_QueryDelegateStakeRemovalResponse QueryDelegateStakeRemovalResponse +type fastReflection_QueryDelegateStakeUponReputerResponse QueryDelegateStakeUponReputerResponse -func (x *QueryDelegateStakeRemovalResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeRemovalResponse)(x) +func (x *QueryDelegateStakeUponReputerResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeUponReputerResponse)(x) } -func (x *QueryDelegateStakeRemovalResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[93] +func (x *QueryDelegateStakeUponReputerResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[91] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -42052,43 +41449,43 @@ func (x *QueryDelegateStakeRemovalResponse) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryDelegateStakeRemovalResponse_messageType fastReflection_QueryDelegateStakeRemovalResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeRemovalResponse_messageType{} +var _fastReflection_QueryDelegateStakeUponReputerResponse_messageType fastReflection_QueryDelegateStakeUponReputerResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeUponReputerResponse_messageType{} -type fastReflection_QueryDelegateStakeRemovalResponse_messageType struct{} +type fastReflection_QueryDelegateStakeUponReputerResponse_messageType struct{} -func (x fastReflection_QueryDelegateStakeRemovalResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryDelegateStakeRemovalResponse)(nil) +func (x fastReflection_QueryDelegateStakeUponReputerResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeUponReputerResponse)(nil) } -func (x fastReflection_QueryDelegateStakeRemovalResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeRemovalResponse) +func (x fastReflection_QueryDelegateStakeUponReputerResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeUponReputerResponse) } -func (x fastReflection_QueryDelegateStakeRemovalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeRemovalResponse +func (x fastReflection_QueryDelegateStakeUponReputerResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeUponReputerResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryDelegateStakeRemovalResponse +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeUponReputerResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryDelegateStakeRemovalResponse_messageType +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateStakeUponReputerResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) New() protoreflect.Message { - return new(fastReflection_QueryDelegateStakeRemovalResponse) +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeUponReputerResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) Interface() protoreflect.ProtoMessage { - return (*QueryDelegateStakeRemovalResponse)(x) +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateStakeUponReputerResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -42096,10 +41493,10 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.StakeRemovalInfo != nil { - value := protoreflect.ValueOfMessage(x.StakeRemovalInfo.ProtoReflect()) - if !f(fd_QueryDelegateStakeRemovalResponse_stake_removal_info, value) { +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Stake != "" { + value := protoreflect.ValueOfString(x.Stake) + if !f(fd_QueryDelegateStakeUponReputerResponse_stake, value) { return } } @@ -42116,15 +41513,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalResponse.stake_removal_info": - return x.StakeRemovalInfo != nil + case "emissions.v2.QueryDelegateStakeUponReputerResponse.stake": + return x.Stake != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeUponReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeUponReputerResponse does not contain field %s", fd.FullName())) } } @@ -42134,15 +41531,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalResponse.stake_removal_info": - x.StakeRemovalInfo = nil + case "emissions.v2.QueryDelegateStakeUponReputerResponse.stake": + x.Stake = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeUponReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeUponReputerResponse does not contain field %s", fd.FullName())) } } @@ -42152,16 +41549,16 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalResponse.stake_removal_info": - value := x.StakeRemovalInfo - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryDelegateStakeUponReputerResponse.stake": + value := x.Stake + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeUponReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeUponReputerResponse does not contain field %s", descriptor.FullName())) } } @@ -42175,15 +41572,15 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalResponse.stake_removal_info": - x.StakeRemovalInfo = value.Message().Interface().(*DelegateStakeRemovalInfo) + case "emissions.v2.QueryDelegateStakeUponReputerResponse.stake": + x.Stake = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeUponReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeUponReputerResponse does not contain field %s", fd.FullName())) } } @@ -42197,44 +41594,40 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalResponse.stake_removal_info": - if x.StakeRemovalInfo == nil { - x.StakeRemovalInfo = new(DelegateStakeRemovalInfo) - } - return protoreflect.ValueOfMessage(x.StakeRemovalInfo.ProtoReflect()) + case "emissions.v2.QueryDelegateStakeUponReputerResponse.stake": + panic(fmt.Errorf("field stake of message emissions.v2.QueryDelegateStakeUponReputerResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeUponReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeUponReputerResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryDelegateStakeRemovalResponse.stake_removal_info": - m := new(DelegateStakeRemovalInfo) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryDelegateStakeUponReputerResponse.stake": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryDelegateStakeRemovalResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeUponReputerResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryDelegateStakeRemovalResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeUponReputerResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryDelegateStakeRemovalResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateStakeUponReputerResponse", d.FullName())) } panic("unreachable") } @@ -42242,7 +41635,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -42253,7 +41646,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -42265,7 +41658,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) IsValid() bool { +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) IsValid() bool { return x != nil } @@ -42275,9 +41668,9 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryDelegateStakeRemovalResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateStakeUponReputerResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryDelegateStakeRemovalResponse) + x := input.Message.Interface().(*QueryDelegateStakeUponReputerResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -42289,8 +41682,8 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) ProtoMethods() *proto var n int var l int _ = l - if x.StakeRemovalInfo != nil { - l = options.Size(x.StakeRemovalInfo) + l = len(x.Stake) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -42303,7 +41696,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeRemovalResponse) + x := input.Message.Interface().(*QueryDelegateStakeUponReputerResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -42322,17 +41715,10 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) ProtoMethods() *proto i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.StakeRemovalInfo != nil { - encoded, err := options.Marshal(x.StakeRemovalInfo) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.Stake) > 0 { + i -= len(x.Stake) + copy(dAtA[i:], x.Stake) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Stake))) i-- dAtA[i] = 0xa } @@ -42347,7 +41733,7 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryDelegateStakeRemovalResponse) + x := input.Message.Interface().(*QueryDelegateStakeUponReputerResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -42379,17 +41765,17 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeUponReputerResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeUponReputerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StakeRemovalInfo", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Stake", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -42399,27 +41785,23 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) ProtoMethods() *proto } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.StakeRemovalInfo == nil { - x.StakeRemovalInfo = &DelegateStakeRemovalInfo{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StakeRemovalInfo); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Stake = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -42457,26 +41839,28 @@ func (x *fastReflection_QueryDelegateStakeRemovalResponse) ProtoMethods() *proto } var ( - md_QueryPreviousTopicWeightRequest protoreflect.MessageDescriptor - fd_QueryPreviousTopicWeightRequest_topic_id protoreflect.FieldDescriptor + md_QueryDelegateRewardPerShareRequest protoreflect.MessageDescriptor + fd_QueryDelegateRewardPerShareRequest_topic_id protoreflect.FieldDescriptor + fd_QueryDelegateRewardPerShareRequest_reputer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryPreviousTopicWeightRequest = File_emissions_v1_query_proto.Messages().ByName("QueryPreviousTopicWeightRequest") - fd_QueryPreviousTopicWeightRequest_topic_id = md_QueryPreviousTopicWeightRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryDelegateRewardPerShareRequest = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateRewardPerShareRequest") + fd_QueryDelegateRewardPerShareRequest_topic_id = md_QueryDelegateRewardPerShareRequest.Fields().ByName("topic_id") + fd_QueryDelegateRewardPerShareRequest_reputer = md_QueryDelegateRewardPerShareRequest.Fields().ByName("reputer") } -var _ protoreflect.Message = (*fastReflection_QueryPreviousTopicWeightRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateRewardPerShareRequest)(nil) -type fastReflection_QueryPreviousTopicWeightRequest QueryPreviousTopicWeightRequest +type fastReflection_QueryDelegateRewardPerShareRequest QueryDelegateRewardPerShareRequest -func (x *QueryPreviousTopicWeightRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPreviousTopicWeightRequest)(x) +func (x *QueryDelegateRewardPerShareRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateRewardPerShareRequest)(x) } -func (x *QueryPreviousTopicWeightRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[94] +func (x *QueryDelegateRewardPerShareRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[92] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -42487,43 +41871,43 @@ func (x *QueryPreviousTopicWeightRequest) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_QueryPreviousTopicWeightRequest_messageType fastReflection_QueryPreviousTopicWeightRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryPreviousTopicWeightRequest_messageType{} +var _fastReflection_QueryDelegateRewardPerShareRequest_messageType fastReflection_QueryDelegateRewardPerShareRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateRewardPerShareRequest_messageType{} -type fastReflection_QueryPreviousTopicWeightRequest_messageType struct{} +type fastReflection_QueryDelegateRewardPerShareRequest_messageType struct{} -func (x fastReflection_QueryPreviousTopicWeightRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPreviousTopicWeightRequest)(nil) +func (x fastReflection_QueryDelegateRewardPerShareRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateRewardPerShareRequest)(nil) } -func (x fastReflection_QueryPreviousTopicWeightRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPreviousTopicWeightRequest) +func (x fastReflection_QueryDelegateRewardPerShareRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateRewardPerShareRequest) } -func (x fastReflection_QueryPreviousTopicWeightRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousTopicWeightRequest +func (x fastReflection_QueryDelegateRewardPerShareRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateRewardPerShareRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPreviousTopicWeightRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousTopicWeightRequest +func (x *fastReflection_QueryDelegateRewardPerShareRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateRewardPerShareRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPreviousTopicWeightRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryPreviousTopicWeightRequest_messageType +func (x *fastReflection_QueryDelegateRewardPerShareRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateRewardPerShareRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPreviousTopicWeightRequest) New() protoreflect.Message { - return new(fastReflection_QueryPreviousTopicWeightRequest) +func (x *fastReflection_QueryDelegateRewardPerShareRequest) New() protoreflect.Message { + return new(fastReflection_QueryDelegateRewardPerShareRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPreviousTopicWeightRequest) Interface() protoreflect.ProtoMessage { - return (*QueryPreviousTopicWeightRequest)(x) +func (x *fastReflection_QueryDelegateRewardPerShareRequest) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateRewardPerShareRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -42531,10 +41915,16 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPreviousTopicWeightRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryDelegateRewardPerShareRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryPreviousTopicWeightRequest_topic_id, value) { + if !f(fd_QueryDelegateRewardPerShareRequest_topic_id, value) { + return + } + } + if x.Reputer != "" { + value := protoreflect.ValueOfString(x.Reputer) + if !f(fd_QueryDelegateRewardPerShareRequest_reputer, value) { return } } @@ -42551,15 +41941,17 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) Range(f func(protorefle // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPreviousTopicWeightRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateRewardPerShareRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryPreviousTopicWeightRequest.topic_id": + case "emissions.v2.QueryDelegateRewardPerShareRequest.topic_id": return x.TopicId != uint64(0) + case "emissions.v2.QueryDelegateRewardPerShareRequest.reputer": + return x.Reputer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousTopicWeightRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateRewardPerShareRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousTopicWeightRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateRewardPerShareRequest does not contain field %s", fd.FullName())) } } @@ -42569,15 +41961,17 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousTopicWeightRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateRewardPerShareRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryPreviousTopicWeightRequest.topic_id": + case "emissions.v2.QueryDelegateRewardPerShareRequest.topic_id": x.TopicId = uint64(0) + case "emissions.v2.QueryDelegateRewardPerShareRequest.reputer": + x.Reputer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousTopicWeightRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateRewardPerShareRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousTopicWeightRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateRewardPerShareRequest does not contain field %s", fd.FullName())) } } @@ -42587,16 +41981,19 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) Clear(fd protoreflect.F // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPreviousTopicWeightRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateRewardPerShareRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryPreviousTopicWeightRequest.topic_id": + case "emissions.v2.QueryDelegateRewardPerShareRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryDelegateRewardPerShareRequest.reputer": + value := x.Reputer + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousTopicWeightRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateRewardPerShareRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousTopicWeightRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateRewardPerShareRequest does not contain field %s", descriptor.FullName())) } } @@ -42610,15 +42007,17 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousTopicWeightRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateRewardPerShareRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryPreviousTopicWeightRequest.topic_id": + case "emissions.v2.QueryDelegateRewardPerShareRequest.topic_id": x.TopicId = value.Uint() + case "emissions.v2.QueryDelegateRewardPerShareRequest.reputer": + x.Reputer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousTopicWeightRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateRewardPerShareRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousTopicWeightRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateRewardPerShareRequest does not contain field %s", fd.FullName())) } } @@ -42632,40 +42031,44 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousTopicWeightRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateRewardPerShareRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousTopicWeightRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryPreviousTopicWeightRequest is not mutable")) + case "emissions.v2.QueryDelegateRewardPerShareRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryDelegateRewardPerShareRequest is not mutable")) + case "emissions.v2.QueryDelegateRewardPerShareRequest.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.QueryDelegateRewardPerShareRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousTopicWeightRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateRewardPerShareRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousTopicWeightRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateRewardPerShareRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPreviousTopicWeightRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateRewardPerShareRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousTopicWeightRequest.topic_id": + case "emissions.v2.QueryDelegateRewardPerShareRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryDelegateRewardPerShareRequest.reputer": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousTopicWeightRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateRewardPerShareRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousTopicWeightRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateRewardPerShareRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPreviousTopicWeightRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateRewardPerShareRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryPreviousTopicWeightRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateRewardPerShareRequest", d.FullName())) } panic("unreachable") } @@ -42673,7 +42076,7 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) WhichOneof(d protorefle // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPreviousTopicWeightRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateRewardPerShareRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -42684,7 +42087,7 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousTopicWeightRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateRewardPerShareRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -42696,7 +42099,7 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) SetUnknown(fields proto // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPreviousTopicWeightRequest) IsValid() bool { +func (x *fastReflection_QueryDelegateRewardPerShareRequest) IsValid() bool { return x != nil } @@ -42706,9 +42109,9 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPreviousTopicWeightRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateRewardPerShareRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPreviousTopicWeightRequest) + x := input.Message.Interface().(*QueryDelegateRewardPerShareRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -42723,6 +42126,10 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) ProtoMethods() *protoif if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } + l = len(x.Reputer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -42733,7 +42140,7 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousTopicWeightRequest) + x := input.Message.Interface().(*QueryDelegateRewardPerShareRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -42752,6 +42159,13 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) ProtoMethods() *protoif i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Reputer) > 0 { + i -= len(x.Reputer) + copy(dAtA[i:], x.Reputer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) + i-- + dAtA[i] = 0x12 + } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- @@ -42768,7 +42182,7 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousTopicWeightRequest) + x := input.Message.Interface().(*QueryDelegateRewardPerShareRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -42800,10 +42214,10 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousTopicWeightRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateRewardPerShareRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousTopicWeightRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateRewardPerShareRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -42825,6 +42239,38 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) ProtoMethods() *protoif break } } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -42861,28 +42307,26 @@ func (x *fastReflection_QueryPreviousTopicWeightRequest) ProtoMethods() *protoif } var ( - md_QueryPreviousTopicWeightResponse protoreflect.MessageDescriptor - fd_QueryPreviousTopicWeightResponse_weight protoreflect.FieldDescriptor - fd_QueryPreviousTopicWeightResponse_not_found protoreflect.FieldDescriptor + md_QueryDelegateRewardPerShareResponse protoreflect.MessageDescriptor + fd_QueryDelegateRewardPerShareResponse_reward_per_share protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryPreviousTopicWeightResponse = File_emissions_v1_query_proto.Messages().ByName("QueryPreviousTopicWeightResponse") - fd_QueryPreviousTopicWeightResponse_weight = md_QueryPreviousTopicWeightResponse.Fields().ByName("weight") - fd_QueryPreviousTopicWeightResponse_not_found = md_QueryPreviousTopicWeightResponse.Fields().ByName("not_found") + file_emissions_v2_query_proto_init() + md_QueryDelegateRewardPerShareResponse = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateRewardPerShareResponse") + fd_QueryDelegateRewardPerShareResponse_reward_per_share = md_QueryDelegateRewardPerShareResponse.Fields().ByName("reward_per_share") } -var _ protoreflect.Message = (*fastReflection_QueryPreviousTopicWeightResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateRewardPerShareResponse)(nil) -type fastReflection_QueryPreviousTopicWeightResponse QueryPreviousTopicWeightResponse +type fastReflection_QueryDelegateRewardPerShareResponse QueryDelegateRewardPerShareResponse -func (x *QueryPreviousTopicWeightResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPreviousTopicWeightResponse)(x) +func (x *QueryDelegateRewardPerShareResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateRewardPerShareResponse)(x) } -func (x *QueryPreviousTopicWeightResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[95] +func (x *QueryDelegateRewardPerShareResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[93] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -42893,43 +42337,43 @@ func (x *QueryPreviousTopicWeightResponse) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_QueryPreviousTopicWeightResponse_messageType fastReflection_QueryPreviousTopicWeightResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryPreviousTopicWeightResponse_messageType{} +var _fastReflection_QueryDelegateRewardPerShareResponse_messageType fastReflection_QueryDelegateRewardPerShareResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateRewardPerShareResponse_messageType{} -type fastReflection_QueryPreviousTopicWeightResponse_messageType struct{} +type fastReflection_QueryDelegateRewardPerShareResponse_messageType struct{} -func (x fastReflection_QueryPreviousTopicWeightResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPreviousTopicWeightResponse)(nil) +func (x fastReflection_QueryDelegateRewardPerShareResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateRewardPerShareResponse)(nil) } -func (x fastReflection_QueryPreviousTopicWeightResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPreviousTopicWeightResponse) +func (x fastReflection_QueryDelegateRewardPerShareResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateRewardPerShareResponse) } -func (x fastReflection_QueryPreviousTopicWeightResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousTopicWeightResponse +func (x fastReflection_QueryDelegateRewardPerShareResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateRewardPerShareResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPreviousTopicWeightResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousTopicWeightResponse +func (x *fastReflection_QueryDelegateRewardPerShareResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateRewardPerShareResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPreviousTopicWeightResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryPreviousTopicWeightResponse_messageType +func (x *fastReflection_QueryDelegateRewardPerShareResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateRewardPerShareResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPreviousTopicWeightResponse) New() protoreflect.Message { - return new(fastReflection_QueryPreviousTopicWeightResponse) +func (x *fastReflection_QueryDelegateRewardPerShareResponse) New() protoreflect.Message { + return new(fastReflection_QueryDelegateRewardPerShareResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPreviousTopicWeightResponse) Interface() protoreflect.ProtoMessage { - return (*QueryPreviousTopicWeightResponse)(x) +func (x *fastReflection_QueryDelegateRewardPerShareResponse) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateRewardPerShareResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -42937,16 +42381,10 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPreviousTopicWeightResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Weight != "" { - value := protoreflect.ValueOfString(x.Weight) - if !f(fd_QueryPreviousTopicWeightResponse_weight, value) { - return - } - } - if x.NotFound != false { - value := protoreflect.ValueOfBool(x.NotFound) - if !f(fd_QueryPreviousTopicWeightResponse_not_found, value) { +func (x *fastReflection_QueryDelegateRewardPerShareResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RewardPerShare != "" { + value := protoreflect.ValueOfString(x.RewardPerShare) + if !f(fd_QueryDelegateRewardPerShareResponse_reward_per_share, value) { return } } @@ -42963,17 +42401,15 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) Range(f func(protorefl // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPreviousTopicWeightResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateRewardPerShareResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryPreviousTopicWeightResponse.weight": - return x.Weight != "" - case "emissions.v1.QueryPreviousTopicWeightResponse.not_found": - return x.NotFound != false + case "emissions.v2.QueryDelegateRewardPerShareResponse.reward_per_share": + return x.RewardPerShare != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousTopicWeightResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateRewardPerShareResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousTopicWeightResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateRewardPerShareResponse does not contain field %s", fd.FullName())) } } @@ -42983,17 +42419,15 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousTopicWeightResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateRewardPerShareResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryPreviousTopicWeightResponse.weight": - x.Weight = "" - case "emissions.v1.QueryPreviousTopicWeightResponse.not_found": - x.NotFound = false + case "emissions.v2.QueryDelegateRewardPerShareResponse.reward_per_share": + x.RewardPerShare = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousTopicWeightResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateRewardPerShareResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousTopicWeightResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateRewardPerShareResponse does not contain field %s", fd.FullName())) } } @@ -43003,19 +42437,16 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) Clear(fd protoreflect. // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPreviousTopicWeightResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateRewardPerShareResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryPreviousTopicWeightResponse.weight": - value := x.Weight + case "emissions.v2.QueryDelegateRewardPerShareResponse.reward_per_share": + value := x.RewardPerShare return protoreflect.ValueOfString(value) - case "emissions.v1.QueryPreviousTopicWeightResponse.not_found": - value := x.NotFound - return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousTopicWeightResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateRewardPerShareResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousTopicWeightResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateRewardPerShareResponse does not contain field %s", descriptor.FullName())) } } @@ -43029,17 +42460,15 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousTopicWeightResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateRewardPerShareResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryPreviousTopicWeightResponse.weight": - x.Weight = value.Interface().(string) - case "emissions.v1.QueryPreviousTopicWeightResponse.not_found": - x.NotFound = value.Bool() + case "emissions.v2.QueryDelegateRewardPerShareResponse.reward_per_share": + x.RewardPerShare = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousTopicWeightResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateRewardPerShareResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousTopicWeightResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateRewardPerShareResponse does not contain field %s", fd.FullName())) } } @@ -43053,44 +42482,40 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousTopicWeightResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateRewardPerShareResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousTopicWeightResponse.weight": - panic(fmt.Errorf("field weight of message emissions.v1.QueryPreviousTopicWeightResponse is not mutable")) - case "emissions.v1.QueryPreviousTopicWeightResponse.not_found": - panic(fmt.Errorf("field not_found of message emissions.v1.QueryPreviousTopicWeightResponse is not mutable")) + case "emissions.v2.QueryDelegateRewardPerShareResponse.reward_per_share": + panic(fmt.Errorf("field reward_per_share of message emissions.v2.QueryDelegateRewardPerShareResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousTopicWeightResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateRewardPerShareResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousTopicWeightResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateRewardPerShareResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPreviousTopicWeightResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateRewardPerShareResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousTopicWeightResponse.weight": + case "emissions.v2.QueryDelegateRewardPerShareResponse.reward_per_share": return protoreflect.ValueOfString("") - case "emissions.v1.QueryPreviousTopicWeightResponse.not_found": - return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousTopicWeightResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateRewardPerShareResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousTopicWeightResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateRewardPerShareResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPreviousTopicWeightResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateRewardPerShareResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryPreviousTopicWeightResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateRewardPerShareResponse", d.FullName())) } panic("unreachable") } @@ -43098,7 +42523,7 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) WhichOneof(d protorefl // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPreviousTopicWeightResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateRewardPerShareResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -43109,7 +42534,7 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousTopicWeightResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateRewardPerShareResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -43121,7 +42546,7 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) SetUnknown(fields prot // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPreviousTopicWeightResponse) IsValid() bool { +func (x *fastReflection_QueryDelegateRewardPerShareResponse) IsValid() bool { return x != nil } @@ -43131,9 +42556,9 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPreviousTopicWeightResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateRewardPerShareResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPreviousTopicWeightResponse) + x := input.Message.Interface().(*QueryDelegateRewardPerShareResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -43145,13 +42570,10 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) ProtoMethods() *protoi var n int var l int _ = l - l = len(x.Weight) + l = len(x.RewardPerShare) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.NotFound { - n += 2 - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -43162,7 +42584,7 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousTopicWeightResponse) + x := input.Message.Interface().(*QueryDelegateRewardPerShareResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -43181,20 +42603,10 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) ProtoMethods() *protoi i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.NotFound { - i-- - if x.NotFound { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i-- - dAtA[i] = 0x10 - } - if len(x.Weight) > 0 { - i -= len(x.Weight) - copy(dAtA[i:], x.Weight) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Weight))) + if len(x.RewardPerShare) > 0 { + i -= len(x.RewardPerShare) + copy(dAtA[i:], x.RewardPerShare) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RewardPerShare))) i-- dAtA[i] = 0xa } @@ -43209,7 +42621,7 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousTopicWeightResponse) + x := input.Message.Interface().(*QueryDelegateRewardPerShareResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -43241,15 +42653,15 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) ProtoMethods() *protoi fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousTopicWeightResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateRewardPerShareResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousTopicWeightResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateRewardPerShareResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RewardPerShare", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -43277,28 +42689,8 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) ProtoMethods() *protoi if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Weight = string(dAtA[iNdEx:postIndex]) + x.RewardPerShare = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NotFound", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.NotFound = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -43335,26 +42727,28 @@ func (x *fastReflection_QueryPreviousTopicWeightResponse) ProtoMethods() *protoi } var ( - md_QueryTopicExistsRequest protoreflect.MessageDescriptor - fd_QueryTopicExistsRequest_topic_id protoreflect.FieldDescriptor + md_QueryStakeRemovalForReputerAndTopicIdRequest protoreflect.MessageDescriptor + fd_QueryStakeRemovalForReputerAndTopicIdRequest_reputer protoreflect.FieldDescriptor + fd_QueryStakeRemovalForReputerAndTopicIdRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicExistsRequest = File_emissions_v1_query_proto.Messages().ByName("QueryTopicExistsRequest") - fd_QueryTopicExistsRequest_topic_id = md_QueryTopicExistsRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryStakeRemovalForReputerAndTopicIdRequest = File_emissions_v2_query_proto.Messages().ByName("QueryStakeRemovalForReputerAndTopicIdRequest") + fd_QueryStakeRemovalForReputerAndTopicIdRequest_reputer = md_QueryStakeRemovalForReputerAndTopicIdRequest.Fields().ByName("reputer") + fd_QueryStakeRemovalForReputerAndTopicIdRequest_topic_id = md_QueryStakeRemovalForReputerAndTopicIdRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryTopicExistsRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest)(nil) -type fastReflection_QueryTopicExistsRequest QueryTopicExistsRequest +type fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest QueryStakeRemovalForReputerAndTopicIdRequest -func (x *QueryTopicExistsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicExistsRequest)(x) +func (x *QueryStakeRemovalForReputerAndTopicIdRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest)(x) } -func (x *QueryTopicExistsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[96] +func (x *QueryStakeRemovalForReputerAndTopicIdRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[94] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -43365,43 +42759,43 @@ func (x *QueryTopicExistsRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTopicExistsRequest_messageType fastReflection_QueryTopicExistsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicExistsRequest_messageType{} +var _fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType{} -type fastReflection_QueryTopicExistsRequest_messageType struct{} +type fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType struct{} -func (x fastReflection_QueryTopicExistsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicExistsRequest)(nil) +func (x fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest)(nil) } -func (x fastReflection_QueryTopicExistsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicExistsRequest) +func (x fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) } -func (x fastReflection_QueryTopicExistsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicExistsRequest +func (x fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeRemovalForReputerAndTopicIdRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicExistsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicExistsRequest +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeRemovalForReputerAndTopicIdRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicExistsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicExistsRequest_messageType +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicExistsRequest) New() protoreflect.Message { - return new(fastReflection_QueryTopicExistsRequest) +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) New() protoreflect.Message { + return new(fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicExistsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTopicExistsRequest)(x) +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Interface() protoreflect.ProtoMessage { + return (*QueryStakeRemovalForReputerAndTopicIdRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -43409,10 +42803,16 @@ func (x *fastReflection_QueryTopicExistsRequest) Interface() protoreflect.ProtoM // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicExistsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Reputer != "" { + value := protoreflect.ValueOfString(x.Reputer) + if !f(fd_QueryStakeRemovalForReputerAndTopicIdRequest_reputer, value) { + return + } + } if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryTopicExistsRequest_topic_id, value) { + if !f(fd_QueryStakeRemovalForReputerAndTopicIdRequest_topic_id, value) { return } } @@ -43429,15 +42829,17 @@ func (x *fastReflection_QueryTopicExistsRequest) Range(f func(protoreflect.Field // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicExistsRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicExistsRequest.topic_id": + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest.reputer": + return x.Reputer != "" + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest.topic_id": return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicExistsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicExistsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest does not contain field %s", fd.FullName())) } } @@ -43447,15 +42849,17 @@ func (x *fastReflection_QueryTopicExistsRequest) Has(fd protoreflect.FieldDescri // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicExistsRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicExistsRequest.topic_id": + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest.reputer": + x.Reputer = "" + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest.topic_id": x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicExistsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicExistsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest does not contain field %s", fd.FullName())) } } @@ -43465,16 +42869,19 @@ func (x *fastReflection_QueryTopicExistsRequest) Clear(fd protoreflect.FieldDesc // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicExistsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicExistsRequest.topic_id": + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest.reputer": + value := x.Reputer + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicExistsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicExistsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest does not contain field %s", descriptor.FullName())) } } @@ -43488,15 +42895,17 @@ func (x *fastReflection_QueryTopicExistsRequest) Get(descriptor protoreflect.Fie // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicExistsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicExistsRequest.topic_id": + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest.reputer": + x.Reputer = value.Interface().(string) + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest.topic_id": x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicExistsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicExistsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest does not contain field %s", fd.FullName())) } } @@ -43510,40 +42919,44 @@ func (x *fastReflection_QueryTopicExistsRequest) Set(fd protoreflect.FieldDescri // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicExistsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicExistsRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryTopicExistsRequest is not mutable")) + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest is not mutable")) + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicExistsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicExistsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicExistsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicExistsRequest.topic_id": + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest.reputer": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicExistsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicExistsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicExistsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicExistsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest", d.FullName())) } panic("unreachable") } @@ -43551,7 +42964,7 @@ func (x *fastReflection_QueryTopicExistsRequest) WhichOneof(d protoreflect.Oneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicExistsRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -43562,7 +42975,7 @@ func (x *fastReflection_QueryTopicExistsRequest) GetUnknown() protoreflect.RawFi // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicExistsRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -43574,7 +42987,7 @@ func (x *fastReflection_QueryTopicExistsRequest) SetUnknown(fields protoreflect. // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicExistsRequest) IsValid() bool { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) IsValid() bool { return x != nil } @@ -43584,9 +42997,9 @@ func (x *fastReflection_QueryTopicExistsRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicExistsRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicExistsRequest) + x := input.Message.Interface().(*QueryStakeRemovalForReputerAndTopicIdRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -43598,6 +43011,10 @@ func (x *fastReflection_QueryTopicExistsRequest) ProtoMethods() *protoiface.Meth var n int var l int _ = l + l = len(x.Reputer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } @@ -43611,7 +43028,7 @@ func (x *fastReflection_QueryTopicExistsRequest) ProtoMethods() *protoiface.Meth } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicExistsRequest) + x := input.Message.Interface().(*QueryStakeRemovalForReputerAndTopicIdRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -43633,7 +43050,14 @@ func (x *fastReflection_QueryTopicExistsRequest) ProtoMethods() *protoiface.Meth if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x10 + } + if len(x.Reputer) > 0 { + i -= len(x.Reputer) + copy(dAtA[i:], x.Reputer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) + i-- + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -43646,7 +43070,7 @@ func (x *fastReflection_QueryTopicExistsRequest) ProtoMethods() *protoiface.Meth }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicExistsRequest) + x := input.Message.Interface().(*QueryStakeRemovalForReputerAndTopicIdRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -43678,13 +43102,45 @@ func (x *fastReflection_QueryTopicExistsRequest) ProtoMethods() *protoiface.Meth fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicExistsRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalForReputerAndTopicIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicExistsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalForReputerAndTopicIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } @@ -43739,26 +43195,26 @@ func (x *fastReflection_QueryTopicExistsRequest) ProtoMethods() *protoiface.Meth } var ( - md_QueryTopicExistsResponse protoreflect.MessageDescriptor - fd_QueryTopicExistsResponse_exists protoreflect.FieldDescriptor + md_QueryStakeRemovalForReputerAndTopicIdResponse protoreflect.MessageDescriptor + fd_QueryStakeRemovalForReputerAndTopicIdResponse_stake_removal_info protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicExistsResponse = File_emissions_v1_query_proto.Messages().ByName("QueryTopicExistsResponse") - fd_QueryTopicExistsResponse_exists = md_QueryTopicExistsResponse.Fields().ByName("exists") + file_emissions_v2_query_proto_init() + md_QueryStakeRemovalForReputerAndTopicIdResponse = File_emissions_v2_query_proto.Messages().ByName("QueryStakeRemovalForReputerAndTopicIdResponse") + fd_QueryStakeRemovalForReputerAndTopicIdResponse_stake_removal_info = md_QueryStakeRemovalForReputerAndTopicIdResponse.Fields().ByName("stake_removal_info") } -var _ protoreflect.Message = (*fastReflection_QueryTopicExistsResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse)(nil) -type fastReflection_QueryTopicExistsResponse QueryTopicExistsResponse +type fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse QueryStakeRemovalForReputerAndTopicIdResponse -func (x *QueryTopicExistsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicExistsResponse)(x) +func (x *QueryStakeRemovalForReputerAndTopicIdResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse)(x) } -func (x *QueryTopicExistsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[97] +func (x *QueryStakeRemovalForReputerAndTopicIdResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[95] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -43769,43 +43225,43 @@ func (x *QueryTopicExistsResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTopicExistsResponse_messageType fastReflection_QueryTopicExistsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicExistsResponse_messageType{} +var _fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType{} -type fastReflection_QueryTopicExistsResponse_messageType struct{} +type fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType struct{} -func (x fastReflection_QueryTopicExistsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicExistsResponse)(nil) +func (x fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse)(nil) } -func (x fastReflection_QueryTopicExistsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicExistsResponse) +func (x fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) } -func (x fastReflection_QueryTopicExistsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicExistsResponse +func (x fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeRemovalForReputerAndTopicIdResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicExistsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicExistsResponse +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryStakeRemovalForReputerAndTopicIdResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicExistsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicExistsResponse_messageType +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicExistsResponse) New() protoreflect.Message { - return new(fastReflection_QueryTopicExistsResponse) +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) New() protoreflect.Message { + return new(fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicExistsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTopicExistsResponse)(x) +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Interface() protoreflect.ProtoMessage { + return (*QueryStakeRemovalForReputerAndTopicIdResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -43813,10 +43269,10 @@ func (x *fastReflection_QueryTopicExistsResponse) Interface() protoreflect.Proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicExistsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Exists != false { - value := protoreflect.ValueOfBool(x.Exists) - if !f(fd_QueryTopicExistsResponse_exists, value) { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.StakeRemovalInfo != nil { + value := protoreflect.ValueOfMessage(x.StakeRemovalInfo.ProtoReflect()) + if !f(fd_QueryStakeRemovalForReputerAndTopicIdResponse_stake_removal_info, value) { return } } @@ -43833,15 +43289,15 @@ func (x *fastReflection_QueryTopicExistsResponse) Range(f func(protoreflect.Fiel // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicExistsResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicExistsResponse.exists": - return x.Exists != false + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info": + return x.StakeRemovalInfo != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicExistsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicExistsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse does not contain field %s", fd.FullName())) } } @@ -43851,15 +43307,15 @@ func (x *fastReflection_QueryTopicExistsResponse) Has(fd protoreflect.FieldDescr // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicExistsResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicExistsResponse.exists": - x.Exists = false + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info": + x.StakeRemovalInfo = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicExistsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicExistsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse does not contain field %s", fd.FullName())) } } @@ -43869,16 +43325,16 @@ func (x *fastReflection_QueryTopicExistsResponse) Clear(fd protoreflect.FieldDes // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicExistsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicExistsResponse.exists": - value := x.Exists - return protoreflect.ValueOfBool(value) + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info": + value := x.StakeRemovalInfo + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicExistsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicExistsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse does not contain field %s", descriptor.FullName())) } } @@ -43892,15 +43348,15 @@ func (x *fastReflection_QueryTopicExistsResponse) Get(descriptor protoreflect.Fi // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicExistsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicExistsResponse.exists": - x.Exists = value.Bool() + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info": + x.StakeRemovalInfo = value.Message().Interface().(*StakeRemovalInfo) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicExistsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicExistsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse does not contain field %s", fd.FullName())) } } @@ -43914,40 +43370,44 @@ func (x *fastReflection_QueryTopicExistsResponse) Set(fd protoreflect.FieldDescr // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicExistsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicExistsResponse.exists": - panic(fmt.Errorf("field exists of message emissions.v1.QueryTopicExistsResponse is not mutable")) + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info": + if x.StakeRemovalInfo == nil { + x.StakeRemovalInfo = new(StakeRemovalInfo) + } + return protoreflect.ValueOfMessage(x.StakeRemovalInfo.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicExistsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicExistsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicExistsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicExistsResponse.exists": - return protoreflect.ValueOfBool(false) + case "emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info": + m := new(StakeRemovalInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicExistsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicExistsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicExistsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicExistsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse", d.FullName())) } panic("unreachable") } @@ -43955,7 +43415,7 @@ func (x *fastReflection_QueryTopicExistsResponse) WhichOneof(d protoreflect.Oneo // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicExistsResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -43966,7 +43426,7 @@ func (x *fastReflection_QueryTopicExistsResponse) GetUnknown() protoreflect.RawF // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicExistsResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -43978,7 +43438,7 @@ func (x *fastReflection_QueryTopicExistsResponse) SetUnknown(fields protoreflect // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicExistsResponse) IsValid() bool { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) IsValid() bool { return x != nil } @@ -43988,9 +43448,9 @@ func (x *fastReflection_QueryTopicExistsResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicExistsResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryStakeRemovalForReputerAndTopicIdResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicExistsResponse) + x := input.Message.Interface().(*QueryStakeRemovalForReputerAndTopicIdResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -44002,8 +43462,9 @@ func (x *fastReflection_QueryTopicExistsResponse) ProtoMethods() *protoiface.Met var n int var l int _ = l - if x.Exists { - n += 2 + if x.StakeRemovalInfo != nil { + l = options.Size(x.StakeRemovalInfo) + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -44015,7 +43476,7 @@ func (x *fastReflection_QueryTopicExistsResponse) ProtoMethods() *protoiface.Met } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicExistsResponse) + x := input.Message.Interface().(*QueryStakeRemovalForReputerAndTopicIdResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -44034,15 +43495,19 @@ func (x *fastReflection_QueryTopicExistsResponse) ProtoMethods() *protoiface.Met i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Exists { - i-- - if x.Exists { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if x.StakeRemovalInfo != nil { + encoded, err := options.Marshal(x.StakeRemovalInfo) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -44055,7 +43520,7 @@ func (x *fastReflection_QueryTopicExistsResponse) ProtoMethods() *protoiface.Met }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicExistsResponse) + x := input.Message.Interface().(*QueryStakeRemovalForReputerAndTopicIdResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -44087,17 +43552,17 @@ func (x *fastReflection_QueryTopicExistsResponse) ProtoMethods() *protoiface.Met fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicExistsResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalForReputerAndTopicIdResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicExistsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryStakeRemovalForReputerAndTopicIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Exists", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StakeRemovalInfo", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -44107,12 +43572,28 @@ func (x *fastReflection_QueryTopicExistsResponse) ProtoMethods() *protoiface.Met } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - x.Exists = bool(v != 0) + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.StakeRemovalInfo == nil { + x.StakeRemovalInfo = &StakeRemovalInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StakeRemovalInfo); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -44149,26 +43630,32 @@ func (x *fastReflection_QueryTopicExistsResponse) ProtoMethods() *protoiface.Met } var ( - md_QueryIsTopicActiveRequest protoreflect.MessageDescriptor - fd_QueryIsTopicActiveRequest_topic_id protoreflect.FieldDescriptor + md_QueryDelegateStakeRemovalRequest protoreflect.MessageDescriptor + fd_QueryDelegateStakeRemovalRequest_block_height protoreflect.FieldDescriptor + fd_QueryDelegateStakeRemovalRequest_topic_id protoreflect.FieldDescriptor + fd_QueryDelegateStakeRemovalRequest_delegator protoreflect.FieldDescriptor + fd_QueryDelegateStakeRemovalRequest_reputer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryIsTopicActiveRequest = File_emissions_v1_query_proto.Messages().ByName("QueryIsTopicActiveRequest") - fd_QueryIsTopicActiveRequest_topic_id = md_QueryIsTopicActiveRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryDelegateStakeRemovalRequest = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateStakeRemovalRequest") + fd_QueryDelegateStakeRemovalRequest_block_height = md_QueryDelegateStakeRemovalRequest.Fields().ByName("block_height") + fd_QueryDelegateStakeRemovalRequest_topic_id = md_QueryDelegateStakeRemovalRequest.Fields().ByName("topic_id") + fd_QueryDelegateStakeRemovalRequest_delegator = md_QueryDelegateStakeRemovalRequest.Fields().ByName("delegator") + fd_QueryDelegateStakeRemovalRequest_reputer = md_QueryDelegateStakeRemovalRequest.Fields().ByName("reputer") } -var _ protoreflect.Message = (*fastReflection_QueryIsTopicActiveRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeRemovalRequest)(nil) -type fastReflection_QueryIsTopicActiveRequest QueryIsTopicActiveRequest +type fastReflection_QueryDelegateStakeRemovalRequest QueryDelegateStakeRemovalRequest -func (x *QueryIsTopicActiveRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsTopicActiveRequest)(x) +func (x *QueryDelegateStakeRemovalRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeRemovalRequest)(x) } -func (x *QueryIsTopicActiveRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[98] +func (x *QueryDelegateStakeRemovalRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[96] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -44179,43 +43666,43 @@ func (x *QueryIsTopicActiveRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryIsTopicActiveRequest_messageType fastReflection_QueryIsTopicActiveRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsTopicActiveRequest_messageType{} +var _fastReflection_QueryDelegateStakeRemovalRequest_messageType fastReflection_QueryDelegateStakeRemovalRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeRemovalRequest_messageType{} -type fastReflection_QueryIsTopicActiveRequest_messageType struct{} +type fastReflection_QueryDelegateStakeRemovalRequest_messageType struct{} -func (x fastReflection_QueryIsTopicActiveRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsTopicActiveRequest)(nil) +func (x fastReflection_QueryDelegateStakeRemovalRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeRemovalRequest)(nil) } -func (x fastReflection_QueryIsTopicActiveRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsTopicActiveRequest) +func (x fastReflection_QueryDelegateStakeRemovalRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeRemovalRequest) } -func (x fastReflection_QueryIsTopicActiveRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsTopicActiveRequest +func (x fastReflection_QueryDelegateStakeRemovalRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeRemovalRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryIsTopicActiveRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsTopicActiveRequest +func (x *fastReflection_QueryDelegateStakeRemovalRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeRemovalRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsTopicActiveRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryIsTopicActiveRequest_messageType +func (x *fastReflection_QueryDelegateStakeRemovalRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateStakeRemovalRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsTopicActiveRequest) New() protoreflect.Message { - return new(fastReflection_QueryIsTopicActiveRequest) +func (x *fastReflection_QueryDelegateStakeRemovalRequest) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeRemovalRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsTopicActiveRequest) Interface() protoreflect.ProtoMessage { - return (*QueryIsTopicActiveRequest)(x) +func (x *fastReflection_QueryDelegateStakeRemovalRequest) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateStakeRemovalRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -44223,10 +43710,28 @@ func (x *fastReflection_QueryIsTopicActiveRequest) Interface() protoreflect.Prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryIsTopicActiveRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryDelegateStakeRemovalRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_QueryDelegateStakeRemovalRequest_block_height, value) { + return + } + } if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryIsTopicActiveRequest_topic_id, value) { + if !f(fd_QueryDelegateStakeRemovalRequest_topic_id, value) { + return + } + } + if x.Delegator != "" { + value := protoreflect.ValueOfString(x.Delegator) + if !f(fd_QueryDelegateStakeRemovalRequest_delegator, value) { + return + } + } + if x.Reputer != "" { + value := protoreflect.ValueOfString(x.Reputer) + if !f(fd_QueryDelegateStakeRemovalRequest_reputer, value) { return } } @@ -44243,15 +43748,21 @@ func (x *fastReflection_QueryIsTopicActiveRequest) Range(f func(protoreflect.Fie // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsTopicActiveRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateStakeRemovalRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryIsTopicActiveRequest.topic_id": + case "emissions.v2.QueryDelegateStakeRemovalRequest.block_height": + return x.BlockHeight != int64(0) + case "emissions.v2.QueryDelegateStakeRemovalRequest.topic_id": return x.TopicId != uint64(0) + case "emissions.v2.QueryDelegateStakeRemovalRequest.delegator": + return x.Delegator != "" + case "emissions.v2.QueryDelegateStakeRemovalRequest.reputer": + return x.Reputer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsTopicActiveRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsTopicActiveRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalRequest does not contain field %s", fd.FullName())) } } @@ -44261,15 +43772,21 @@ func (x *fastReflection_QueryIsTopicActiveRequest) Has(fd protoreflect.FieldDesc // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsTopicActiveRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateStakeRemovalRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryIsTopicActiveRequest.topic_id": + case "emissions.v2.QueryDelegateStakeRemovalRequest.block_height": + x.BlockHeight = int64(0) + case "emissions.v2.QueryDelegateStakeRemovalRequest.topic_id": x.TopicId = uint64(0) + case "emissions.v2.QueryDelegateStakeRemovalRequest.delegator": + x.Delegator = "" + case "emissions.v2.QueryDelegateStakeRemovalRequest.reputer": + x.Reputer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsTopicActiveRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsTopicActiveRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalRequest does not contain field %s", fd.FullName())) } } @@ -44279,16 +43796,25 @@ func (x *fastReflection_QueryIsTopicActiveRequest) Clear(fd protoreflect.FieldDe // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsTopicActiveRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryIsTopicActiveRequest.topic_id": + case "emissions.v2.QueryDelegateStakeRemovalRequest.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "emissions.v2.QueryDelegateStakeRemovalRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryDelegateStakeRemovalRequest.delegator": + value := x.Delegator + return protoreflect.ValueOfString(value) + case "emissions.v2.QueryDelegateStakeRemovalRequest.reputer": + value := x.Reputer + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsTopicActiveRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsTopicActiveRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalRequest does not contain field %s", descriptor.FullName())) } } @@ -44302,15 +43828,21 @@ func (x *fastReflection_QueryIsTopicActiveRequest) Get(descriptor protoreflect.F // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsTopicActiveRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateStakeRemovalRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryIsTopicActiveRequest.topic_id": + case "emissions.v2.QueryDelegateStakeRemovalRequest.block_height": + x.BlockHeight = value.Int() + case "emissions.v2.QueryDelegateStakeRemovalRequest.topic_id": x.TopicId = value.Uint() + case "emissions.v2.QueryDelegateStakeRemovalRequest.delegator": + x.Delegator = value.Interface().(string) + case "emissions.v2.QueryDelegateStakeRemovalRequest.reputer": + x.Reputer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsTopicActiveRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsTopicActiveRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalRequest does not contain field %s", fd.FullName())) } } @@ -44324,40 +43856,52 @@ func (x *fastReflection_QueryIsTopicActiveRequest) Set(fd protoreflect.FieldDesc // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsTopicActiveRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsTopicActiveRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryIsTopicActiveRequest is not mutable")) + case "emissions.v2.QueryDelegateStakeRemovalRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryDelegateStakeRemovalRequest is not mutable")) + case "emissions.v2.QueryDelegateStakeRemovalRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryDelegateStakeRemovalRequest is not mutable")) + case "emissions.v2.QueryDelegateStakeRemovalRequest.delegator": + panic(fmt.Errorf("field delegator of message emissions.v2.QueryDelegateStakeRemovalRequest is not mutable")) + case "emissions.v2.QueryDelegateStakeRemovalRequest.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.QueryDelegateStakeRemovalRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsTopicActiveRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsTopicActiveRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsTopicActiveRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsTopicActiveRequest.topic_id": + case "emissions.v2.QueryDelegateStakeRemovalRequest.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.QueryDelegateStakeRemovalRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryDelegateStakeRemovalRequest.delegator": + return protoreflect.ValueOfString("") + case "emissions.v2.QueryDelegateStakeRemovalRequest.reputer": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsTopicActiveRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryIsTopicActiveRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsTopicActiveRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateStakeRemovalRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryIsTopicActiveRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateStakeRemovalRequest", d.FullName())) } panic("unreachable") } @@ -44365,7 +43909,7 @@ func (x *fastReflection_QueryIsTopicActiveRequest) WhichOneof(d protoreflect.One // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsTopicActiveRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateStakeRemovalRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -44376,7 +43920,7 @@ func (x *fastReflection_QueryIsTopicActiveRequest) GetUnknown() protoreflect.Raw // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsTopicActiveRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateStakeRemovalRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -44388,7 +43932,7 @@ func (x *fastReflection_QueryIsTopicActiveRequest) SetUnknown(fields protoreflec // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsTopicActiveRequest) IsValid() bool { +func (x *fastReflection_QueryDelegateStakeRemovalRequest) IsValid() bool { return x != nil } @@ -44398,9 +43942,9 @@ func (x *fastReflection_QueryIsTopicActiveRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsTopicActiveRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateStakeRemovalRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsTopicActiveRequest) + x := input.Message.Interface().(*QueryDelegateStakeRemovalRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -44412,9 +43956,20 @@ func (x *fastReflection_QueryIsTopicActiveRequest) ProtoMethods() *protoiface.Me var n int var l int _ = l + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } + l = len(x.Delegator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reputer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -44425,7 +43980,7 @@ func (x *fastReflection_QueryIsTopicActiveRequest) ProtoMethods() *protoiface.Me } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsTopicActiveRequest) + x := input.Message.Interface().(*QueryDelegateStakeRemovalRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -44444,9 +43999,28 @@ func (x *fastReflection_QueryIsTopicActiveRequest) ProtoMethods() *protoiface.Me i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Reputer) > 0 { + i -= len(x.Reputer) + copy(dAtA[i:], x.Reputer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) + i-- + dAtA[i] = 0x22 + } + if len(x.Delegator) > 0 { + i -= len(x.Delegator) + copy(dAtA[i:], x.Delegator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Delegator))) + i-- + dAtA[i] = 0x1a + } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- + dAtA[i] = 0x10 + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- dAtA[i] = 0x8 } if input.Buf != nil { @@ -44460,7 +44034,7 @@ func (x *fastReflection_QueryIsTopicActiveRequest) ProtoMethods() *protoiface.Me }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsTopicActiveRequest) + x := input.Message.Interface().(*QueryDelegateStakeRemovalRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -44492,13 +44066,32 @@ func (x *fastReflection_QueryIsTopicActiveRequest) ProtoMethods() *protoiface.Me fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsTopicActiveRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsTopicActiveRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } @@ -44517,6 +44110,70 @@ func (x *fastReflection_QueryIsTopicActiveRequest) ProtoMethods() *protoiface.Me break } } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Delegator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Delegator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -44553,26 +44210,26 @@ func (x *fastReflection_QueryIsTopicActiveRequest) ProtoMethods() *protoiface.Me } var ( - md_QueryIsTopicActiveResponse protoreflect.MessageDescriptor - fd_QueryIsTopicActiveResponse_is_active protoreflect.FieldDescriptor + md_QueryDelegateStakeRemovalResponse protoreflect.MessageDescriptor + fd_QueryDelegateStakeRemovalResponse_stake_removal_info protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryIsTopicActiveResponse = File_emissions_v1_query_proto.Messages().ByName("QueryIsTopicActiveResponse") - fd_QueryIsTopicActiveResponse_is_active = md_QueryIsTopicActiveResponse.Fields().ByName("is_active") + file_emissions_v2_query_proto_init() + md_QueryDelegateStakeRemovalResponse = File_emissions_v2_query_proto.Messages().ByName("QueryDelegateStakeRemovalResponse") + fd_QueryDelegateStakeRemovalResponse_stake_removal_info = md_QueryDelegateStakeRemovalResponse.Fields().ByName("stake_removal_info") } -var _ protoreflect.Message = (*fastReflection_QueryIsTopicActiveResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryDelegateStakeRemovalResponse)(nil) -type fastReflection_QueryIsTopicActiveResponse QueryIsTopicActiveResponse +type fastReflection_QueryDelegateStakeRemovalResponse QueryDelegateStakeRemovalResponse -func (x *QueryIsTopicActiveResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryIsTopicActiveResponse)(x) +func (x *QueryDelegateStakeRemovalResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeRemovalResponse)(x) } -func (x *QueryIsTopicActiveResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[99] +func (x *QueryDelegateStakeRemovalResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[97] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -44583,43 +44240,43 @@ func (x *QueryIsTopicActiveResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryIsTopicActiveResponse_messageType fastReflection_QueryIsTopicActiveResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryIsTopicActiveResponse_messageType{} +var _fastReflection_QueryDelegateStakeRemovalResponse_messageType fastReflection_QueryDelegateStakeRemovalResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryDelegateStakeRemovalResponse_messageType{} -type fastReflection_QueryIsTopicActiveResponse_messageType struct{} +type fastReflection_QueryDelegateStakeRemovalResponse_messageType struct{} -func (x fastReflection_QueryIsTopicActiveResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryIsTopicActiveResponse)(nil) +func (x fastReflection_QueryDelegateStakeRemovalResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryDelegateStakeRemovalResponse)(nil) } -func (x fastReflection_QueryIsTopicActiveResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryIsTopicActiveResponse) +func (x fastReflection_QueryDelegateStakeRemovalResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeRemovalResponse) } -func (x fastReflection_QueryIsTopicActiveResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsTopicActiveResponse +func (x fastReflection_QueryDelegateStakeRemovalResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeRemovalResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryIsTopicActiveResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryIsTopicActiveResponse +func (x *fastReflection_QueryDelegateStakeRemovalResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryDelegateStakeRemovalResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryIsTopicActiveResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryIsTopicActiveResponse_messageType +func (x *fastReflection_QueryDelegateStakeRemovalResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryDelegateStakeRemovalResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryIsTopicActiveResponse) New() protoreflect.Message { - return new(fastReflection_QueryIsTopicActiveResponse) +func (x *fastReflection_QueryDelegateStakeRemovalResponse) New() protoreflect.Message { + return new(fastReflection_QueryDelegateStakeRemovalResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryIsTopicActiveResponse) Interface() protoreflect.ProtoMessage { - return (*QueryIsTopicActiveResponse)(x) +func (x *fastReflection_QueryDelegateStakeRemovalResponse) Interface() protoreflect.ProtoMessage { + return (*QueryDelegateStakeRemovalResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -44627,10 +44284,10 @@ func (x *fastReflection_QueryIsTopicActiveResponse) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryIsTopicActiveResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.IsActive != false { - value := protoreflect.ValueOfBool(x.IsActive) - if !f(fd_QueryIsTopicActiveResponse_is_active, value) { +func (x *fastReflection_QueryDelegateStakeRemovalResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.StakeRemovalInfo != nil { + value := protoreflect.ValueOfMessage(x.StakeRemovalInfo.ProtoReflect()) + if !f(fd_QueryDelegateStakeRemovalResponse_stake_removal_info, value) { return } } @@ -44647,15 +44304,15 @@ func (x *fastReflection_QueryIsTopicActiveResponse) Range(f func(protoreflect.Fi // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryIsTopicActiveResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryDelegateStakeRemovalResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryIsTopicActiveResponse.is_active": - return x.IsActive != false + case "emissions.v2.QueryDelegateStakeRemovalResponse.stake_removal_info": + return x.StakeRemovalInfo != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsTopicActiveResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsTopicActiveResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalResponse does not contain field %s", fd.FullName())) } } @@ -44665,15 +44322,15 @@ func (x *fastReflection_QueryIsTopicActiveResponse) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsTopicActiveResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryDelegateStakeRemovalResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryIsTopicActiveResponse.is_active": - x.IsActive = false + case "emissions.v2.QueryDelegateStakeRemovalResponse.stake_removal_info": + x.StakeRemovalInfo = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsTopicActiveResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsTopicActiveResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalResponse does not contain field %s", fd.FullName())) } } @@ -44683,16 +44340,16 @@ func (x *fastReflection_QueryIsTopicActiveResponse) Clear(fd protoreflect.FieldD // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryIsTopicActiveResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryIsTopicActiveResponse.is_active": - value := x.IsActive - return protoreflect.ValueOfBool(value) + case "emissions.v2.QueryDelegateStakeRemovalResponse.stake_removal_info": + value := x.StakeRemovalInfo + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsTopicActiveResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsTopicActiveResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalResponse does not contain field %s", descriptor.FullName())) } } @@ -44706,15 +44363,15 @@ func (x *fastReflection_QueryIsTopicActiveResponse) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsTopicActiveResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryDelegateStakeRemovalResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryIsTopicActiveResponse.is_active": - x.IsActive = value.Bool() + case "emissions.v2.QueryDelegateStakeRemovalResponse.stake_removal_info": + x.StakeRemovalInfo = value.Message().Interface().(*DelegateStakeRemovalInfo) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsTopicActiveResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsTopicActiveResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalResponse does not contain field %s", fd.FullName())) } } @@ -44728,40 +44385,44 @@ func (x *fastReflection_QueryIsTopicActiveResponse) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsTopicActiveResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsTopicActiveResponse.is_active": - panic(fmt.Errorf("field is_active of message emissions.v1.QueryIsTopicActiveResponse is not mutable")) + case "emissions.v2.QueryDelegateStakeRemovalResponse.stake_removal_info": + if x.StakeRemovalInfo == nil { + x.StakeRemovalInfo = new(DelegateStakeRemovalInfo) + } + return protoreflect.ValueOfMessage(x.StakeRemovalInfo.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsTopicActiveResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsTopicActiveResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryIsTopicActiveResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryDelegateStakeRemovalResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryIsTopicActiveResponse.is_active": - return protoreflect.ValueOfBool(false) + case "emissions.v2.QueryDelegateStakeRemovalResponse.stake_removal_info": + m := new(DelegateStakeRemovalInfo) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryIsTopicActiveResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryDelegateStakeRemovalResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryIsTopicActiveResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryDelegateStakeRemovalResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryIsTopicActiveResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryDelegateStakeRemovalResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryIsTopicActiveResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryDelegateStakeRemovalResponse", d.FullName())) } panic("unreachable") } @@ -44769,7 +44430,7 @@ func (x *fastReflection_QueryIsTopicActiveResponse) WhichOneof(d protoreflect.On // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryIsTopicActiveResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryDelegateStakeRemovalResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -44780,7 +44441,7 @@ func (x *fastReflection_QueryIsTopicActiveResponse) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryIsTopicActiveResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryDelegateStakeRemovalResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -44792,7 +44453,7 @@ func (x *fastReflection_QueryIsTopicActiveResponse) SetUnknown(fields protorefle // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryIsTopicActiveResponse) IsValid() bool { +func (x *fastReflection_QueryDelegateStakeRemovalResponse) IsValid() bool { return x != nil } @@ -44802,9 +44463,9 @@ func (x *fastReflection_QueryIsTopicActiveResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryIsTopicActiveResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryDelegateStakeRemovalResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryIsTopicActiveResponse) + x := input.Message.Interface().(*QueryDelegateStakeRemovalResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -44816,8 +44477,9 @@ func (x *fastReflection_QueryIsTopicActiveResponse) ProtoMethods() *protoiface.M var n int var l int _ = l - if x.IsActive { - n += 2 + if x.StakeRemovalInfo != nil { + l = options.Size(x.StakeRemovalInfo) + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -44829,7 +44491,7 @@ func (x *fastReflection_QueryIsTopicActiveResponse) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryIsTopicActiveResponse) + x := input.Message.Interface().(*QueryDelegateStakeRemovalResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -44848,15 +44510,19 @@ func (x *fastReflection_QueryIsTopicActiveResponse) ProtoMethods() *protoiface.M i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.IsActive { - i-- - if x.IsActive { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if x.StakeRemovalInfo != nil { + encoded, err := options.Marshal(x.StakeRemovalInfo) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -44869,7 +44535,7 @@ func (x *fastReflection_QueryIsTopicActiveResponse) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryIsTopicActiveResponse) + x := input.Message.Interface().(*QueryDelegateStakeRemovalResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -44901,17 +44567,17 @@ func (x *fastReflection_QueryIsTopicActiveResponse) ProtoMethods() *protoiface.M fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsTopicActiveResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsTopicActiveResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryDelegateStakeRemovalResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field StakeRemovalInfo", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -44921,12 +44587,28 @@ func (x *fastReflection_QueryIsTopicActiveResponse) ProtoMethods() *protoiface.M } b := dAtA[iNdEx] iNdEx++ - v |= int(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - x.IsActive = bool(v != 0) + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.StakeRemovalInfo == nil { + x.StakeRemovalInfo = &DelegateStakeRemovalInfo{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.StakeRemovalInfo); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -44963,26 +44645,26 @@ func (x *fastReflection_QueryIsTopicActiveResponse) ProtoMethods() *protoiface.M } var ( - md_QueryTopicFeeRevenueRequest protoreflect.MessageDescriptor - fd_QueryTopicFeeRevenueRequest_topic_id protoreflect.FieldDescriptor + md_QueryPreviousTopicWeightRequest protoreflect.MessageDescriptor + fd_QueryPreviousTopicWeightRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicFeeRevenueRequest = File_emissions_v1_query_proto.Messages().ByName("QueryTopicFeeRevenueRequest") - fd_QueryTopicFeeRevenueRequest_topic_id = md_QueryTopicFeeRevenueRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryPreviousTopicWeightRequest = File_emissions_v2_query_proto.Messages().ByName("QueryPreviousTopicWeightRequest") + fd_QueryPreviousTopicWeightRequest_topic_id = md_QueryPreviousTopicWeightRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryTopicFeeRevenueRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPreviousTopicWeightRequest)(nil) -type fastReflection_QueryTopicFeeRevenueRequest QueryTopicFeeRevenueRequest +type fastReflection_QueryPreviousTopicWeightRequest QueryPreviousTopicWeightRequest -func (x *QueryTopicFeeRevenueRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicFeeRevenueRequest)(x) +func (x *QueryPreviousTopicWeightRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPreviousTopicWeightRequest)(x) } -func (x *QueryTopicFeeRevenueRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[100] +func (x *QueryPreviousTopicWeightRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[98] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -44993,43 +44675,43 @@ func (x *QueryTopicFeeRevenueRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTopicFeeRevenueRequest_messageType fastReflection_QueryTopicFeeRevenueRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicFeeRevenueRequest_messageType{} +var _fastReflection_QueryPreviousTopicWeightRequest_messageType fastReflection_QueryPreviousTopicWeightRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryPreviousTopicWeightRequest_messageType{} -type fastReflection_QueryTopicFeeRevenueRequest_messageType struct{} +type fastReflection_QueryPreviousTopicWeightRequest_messageType struct{} -func (x fastReflection_QueryTopicFeeRevenueRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicFeeRevenueRequest)(nil) +func (x fastReflection_QueryPreviousTopicWeightRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPreviousTopicWeightRequest)(nil) } -func (x fastReflection_QueryTopicFeeRevenueRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicFeeRevenueRequest) +func (x fastReflection_QueryPreviousTopicWeightRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPreviousTopicWeightRequest) } -func (x fastReflection_QueryTopicFeeRevenueRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicFeeRevenueRequest +func (x fastReflection_QueryPreviousTopicWeightRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousTopicWeightRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicFeeRevenueRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicFeeRevenueRequest +func (x *fastReflection_QueryPreviousTopicWeightRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousTopicWeightRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicFeeRevenueRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicFeeRevenueRequest_messageType +func (x *fastReflection_QueryPreviousTopicWeightRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryPreviousTopicWeightRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicFeeRevenueRequest) New() protoreflect.Message { - return new(fastReflection_QueryTopicFeeRevenueRequest) +func (x *fastReflection_QueryPreviousTopicWeightRequest) New() protoreflect.Message { + return new(fastReflection_QueryPreviousTopicWeightRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicFeeRevenueRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTopicFeeRevenueRequest)(x) +func (x *fastReflection_QueryPreviousTopicWeightRequest) Interface() protoreflect.ProtoMessage { + return (*QueryPreviousTopicWeightRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -45037,10 +44719,10 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicFeeRevenueRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPreviousTopicWeightRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryTopicFeeRevenueRequest_topic_id, value) { + if !f(fd_QueryPreviousTopicWeightRequest_topic_id, value) { return } } @@ -45057,15 +44739,15 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicFeeRevenueRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPreviousTopicWeightRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicFeeRevenueRequest.topic_id": + case "emissions.v2.QueryPreviousTopicWeightRequest.topic_id": return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicFeeRevenueRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousTopicWeightRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicFeeRevenueRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousTopicWeightRequest does not contain field %s", fd.FullName())) } } @@ -45075,15 +44757,15 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicFeeRevenueRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPreviousTopicWeightRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicFeeRevenueRequest.topic_id": + case "emissions.v2.QueryPreviousTopicWeightRequest.topic_id": x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicFeeRevenueRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousTopicWeightRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicFeeRevenueRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousTopicWeightRequest does not contain field %s", fd.FullName())) } } @@ -45093,16 +44775,16 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicFeeRevenueRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousTopicWeightRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicFeeRevenueRequest.topic_id": + case "emissions.v2.QueryPreviousTopicWeightRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicFeeRevenueRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousTopicWeightRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicFeeRevenueRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousTopicWeightRequest does not contain field %s", descriptor.FullName())) } } @@ -45116,15 +44798,15 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicFeeRevenueRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPreviousTopicWeightRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicFeeRevenueRequest.topic_id": + case "emissions.v2.QueryPreviousTopicWeightRequest.topic_id": x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicFeeRevenueRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousTopicWeightRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicFeeRevenueRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousTopicWeightRequest does not contain field %s", fd.FullName())) } } @@ -45138,40 +44820,40 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicFeeRevenueRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousTopicWeightRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicFeeRevenueRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryTopicFeeRevenueRequest is not mutable")) + case "emissions.v2.QueryPreviousTopicWeightRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryPreviousTopicWeightRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicFeeRevenueRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousTopicWeightRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicFeeRevenueRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousTopicWeightRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicFeeRevenueRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousTopicWeightRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicFeeRevenueRequest.topic_id": + case "emissions.v2.QueryPreviousTopicWeightRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicFeeRevenueRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousTopicWeightRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicFeeRevenueRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousTopicWeightRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicFeeRevenueRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPreviousTopicWeightRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicFeeRevenueRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryPreviousTopicWeightRequest", d.FullName())) } panic("unreachable") } @@ -45179,7 +44861,7 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicFeeRevenueRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPreviousTopicWeightRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -45190,7 +44872,7 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicFeeRevenueRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPreviousTopicWeightRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -45202,7 +44884,7 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicFeeRevenueRequest) IsValid() bool { +func (x *fastReflection_QueryPreviousTopicWeightRequest) IsValid() bool { return x != nil } @@ -45212,9 +44894,9 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicFeeRevenueRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPreviousTopicWeightRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicFeeRevenueRequest) + x := input.Message.Interface().(*QueryPreviousTopicWeightRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -45239,7 +44921,7 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicFeeRevenueRequest) + x := input.Message.Interface().(*QueryPreviousTopicWeightRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -45274,7 +44956,7 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicFeeRevenueRequest) + x := input.Message.Interface().(*QueryPreviousTopicWeightRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -45306,10 +44988,10 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicFeeRevenueRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousTopicWeightRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicFeeRevenueRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousTopicWeightRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -45367,26 +45049,28 @@ func (x *fastReflection_QueryTopicFeeRevenueRequest) ProtoMethods() *protoiface. } var ( - md_QueryTopicFeeRevenueResponse protoreflect.MessageDescriptor - fd_QueryTopicFeeRevenueResponse_fee_revenue protoreflect.FieldDescriptor + md_QueryPreviousTopicWeightResponse protoreflect.MessageDescriptor + fd_QueryPreviousTopicWeightResponse_weight protoreflect.FieldDescriptor + fd_QueryPreviousTopicWeightResponse_not_found protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicFeeRevenueResponse = File_emissions_v1_query_proto.Messages().ByName("QueryTopicFeeRevenueResponse") - fd_QueryTopicFeeRevenueResponse_fee_revenue = md_QueryTopicFeeRevenueResponse.Fields().ByName("fee_revenue") + file_emissions_v2_query_proto_init() + md_QueryPreviousTopicWeightResponse = File_emissions_v2_query_proto.Messages().ByName("QueryPreviousTopicWeightResponse") + fd_QueryPreviousTopicWeightResponse_weight = md_QueryPreviousTopicWeightResponse.Fields().ByName("weight") + fd_QueryPreviousTopicWeightResponse_not_found = md_QueryPreviousTopicWeightResponse.Fields().ByName("not_found") } -var _ protoreflect.Message = (*fastReflection_QueryTopicFeeRevenueResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPreviousTopicWeightResponse)(nil) -type fastReflection_QueryTopicFeeRevenueResponse QueryTopicFeeRevenueResponse +type fastReflection_QueryPreviousTopicWeightResponse QueryPreviousTopicWeightResponse -func (x *QueryTopicFeeRevenueResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicFeeRevenueResponse)(x) +func (x *QueryPreviousTopicWeightResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPreviousTopicWeightResponse)(x) } -func (x *QueryTopicFeeRevenueResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[101] +func (x *QueryPreviousTopicWeightResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[99] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -45397,43 +45081,43 @@ func (x *QueryTopicFeeRevenueResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryTopicFeeRevenueResponse_messageType fastReflection_QueryTopicFeeRevenueResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicFeeRevenueResponse_messageType{} +var _fastReflection_QueryPreviousTopicWeightResponse_messageType fastReflection_QueryPreviousTopicWeightResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryPreviousTopicWeightResponse_messageType{} -type fastReflection_QueryTopicFeeRevenueResponse_messageType struct{} +type fastReflection_QueryPreviousTopicWeightResponse_messageType struct{} -func (x fastReflection_QueryTopicFeeRevenueResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicFeeRevenueResponse)(nil) +func (x fastReflection_QueryPreviousTopicWeightResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPreviousTopicWeightResponse)(nil) } -func (x fastReflection_QueryTopicFeeRevenueResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicFeeRevenueResponse) +func (x fastReflection_QueryPreviousTopicWeightResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPreviousTopicWeightResponse) } -func (x fastReflection_QueryTopicFeeRevenueResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicFeeRevenueResponse +func (x fastReflection_QueryPreviousTopicWeightResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousTopicWeightResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicFeeRevenueResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicFeeRevenueResponse +func (x *fastReflection_QueryPreviousTopicWeightResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousTopicWeightResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicFeeRevenueResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicFeeRevenueResponse_messageType +func (x *fastReflection_QueryPreviousTopicWeightResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryPreviousTopicWeightResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicFeeRevenueResponse) New() protoreflect.Message { - return new(fastReflection_QueryTopicFeeRevenueResponse) +func (x *fastReflection_QueryPreviousTopicWeightResponse) New() protoreflect.Message { + return new(fastReflection_QueryPreviousTopicWeightResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicFeeRevenueResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTopicFeeRevenueResponse)(x) +func (x *fastReflection_QueryPreviousTopicWeightResponse) Interface() protoreflect.ProtoMessage { + return (*QueryPreviousTopicWeightResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -45441,10 +45125,16 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicFeeRevenueResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.FeeRevenue != "" { - value := protoreflect.ValueOfString(x.FeeRevenue) - if !f(fd_QueryTopicFeeRevenueResponse_fee_revenue, value) { +func (x *fastReflection_QueryPreviousTopicWeightResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Weight != "" { + value := protoreflect.ValueOfString(x.Weight) + if !f(fd_QueryPreviousTopicWeightResponse_weight, value) { + return + } + } + if x.NotFound != false { + value := protoreflect.ValueOfBool(x.NotFound) + if !f(fd_QueryPreviousTopicWeightResponse_not_found, value) { return } } @@ -45461,15 +45151,17 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicFeeRevenueResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPreviousTopicWeightResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicFeeRevenueResponse.fee_revenue": - return x.FeeRevenue != "" + case "emissions.v2.QueryPreviousTopicWeightResponse.weight": + return x.Weight != "" + case "emissions.v2.QueryPreviousTopicWeightResponse.not_found": + return x.NotFound != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicFeeRevenueResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousTopicWeightResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicFeeRevenueResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousTopicWeightResponse does not contain field %s", fd.FullName())) } } @@ -45479,15 +45171,17 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicFeeRevenueResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPreviousTopicWeightResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicFeeRevenueResponse.fee_revenue": - x.FeeRevenue = "" + case "emissions.v2.QueryPreviousTopicWeightResponse.weight": + x.Weight = "" + case "emissions.v2.QueryPreviousTopicWeightResponse.not_found": + x.NotFound = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicFeeRevenueResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousTopicWeightResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicFeeRevenueResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousTopicWeightResponse does not contain field %s", fd.FullName())) } } @@ -45497,16 +45191,19 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicFeeRevenueResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousTopicWeightResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicFeeRevenueResponse.fee_revenue": - value := x.FeeRevenue + case "emissions.v2.QueryPreviousTopicWeightResponse.weight": + value := x.Weight return protoreflect.ValueOfString(value) + case "emissions.v2.QueryPreviousTopicWeightResponse.not_found": + value := x.NotFound + return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicFeeRevenueResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousTopicWeightResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicFeeRevenueResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousTopicWeightResponse does not contain field %s", descriptor.FullName())) } } @@ -45520,15 +45217,17 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicFeeRevenueResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPreviousTopicWeightResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicFeeRevenueResponse.fee_revenue": - x.FeeRevenue = value.Interface().(string) + case "emissions.v2.QueryPreviousTopicWeightResponse.weight": + x.Weight = value.Interface().(string) + case "emissions.v2.QueryPreviousTopicWeightResponse.not_found": + x.NotFound = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicFeeRevenueResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousTopicWeightResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicFeeRevenueResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousTopicWeightResponse does not contain field %s", fd.FullName())) } } @@ -45542,40 +45241,44 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicFeeRevenueResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousTopicWeightResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicFeeRevenueResponse.fee_revenue": - panic(fmt.Errorf("field fee_revenue of message emissions.v1.QueryTopicFeeRevenueResponse is not mutable")) + case "emissions.v2.QueryPreviousTopicWeightResponse.weight": + panic(fmt.Errorf("field weight of message emissions.v2.QueryPreviousTopicWeightResponse is not mutable")) + case "emissions.v2.QueryPreviousTopicWeightResponse.not_found": + panic(fmt.Errorf("field not_found of message emissions.v2.QueryPreviousTopicWeightResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicFeeRevenueResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousTopicWeightResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicFeeRevenueResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousTopicWeightResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicFeeRevenueResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousTopicWeightResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicFeeRevenueResponse.fee_revenue": + case "emissions.v2.QueryPreviousTopicWeightResponse.weight": return protoreflect.ValueOfString("") + case "emissions.v2.QueryPreviousTopicWeightResponse.not_found": + return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicFeeRevenueResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousTopicWeightResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicFeeRevenueResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousTopicWeightResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicFeeRevenueResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPreviousTopicWeightResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicFeeRevenueResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryPreviousTopicWeightResponse", d.FullName())) } panic("unreachable") } @@ -45583,7 +45286,7 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicFeeRevenueResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPreviousTopicWeightResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -45594,7 +45297,7 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicFeeRevenueResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPreviousTopicWeightResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -45606,7 +45309,7 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicFeeRevenueResponse) IsValid() bool { +func (x *fastReflection_QueryPreviousTopicWeightResponse) IsValid() bool { return x != nil } @@ -45616,9 +45319,9 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicFeeRevenueResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPreviousTopicWeightResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicFeeRevenueResponse) + x := input.Message.Interface().(*QueryPreviousTopicWeightResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -45630,10 +45333,13 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) ProtoMethods() *protoiface var n int var l int _ = l - l = len(x.FeeRevenue) + l = len(x.Weight) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.NotFound { + n += 2 + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -45644,7 +45350,7 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicFeeRevenueResponse) + x := input.Message.Interface().(*QueryPreviousTopicWeightResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -45663,10 +45369,20 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.FeeRevenue) > 0 { - i -= len(x.FeeRevenue) - copy(dAtA[i:], x.FeeRevenue) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FeeRevenue))) + if x.NotFound { + i-- + if x.NotFound { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(x.Weight) > 0 { + i -= len(x.Weight) + copy(dAtA[i:], x.Weight) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Weight))) i-- dAtA[i] = 0xa } @@ -45681,7 +45397,7 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicFeeRevenueResponse) + x := input.Message.Interface().(*QueryPreviousTopicWeightResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -45713,15 +45429,15 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicFeeRevenueResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousTopicWeightResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicFeeRevenueResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousTopicWeightResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FeeRevenue", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -45749,8 +45465,28 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) ProtoMethods() *protoiface if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.FeeRevenue = string(dAtA[iNdEx:postIndex]) + x.Weight = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NotFound", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.NotFound = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -45787,24 +45523,26 @@ func (x *fastReflection_QueryTopicFeeRevenueResponse) ProtoMethods() *protoiface } var ( - md_QueryChurnableTopicsRequest protoreflect.MessageDescriptor + md_QueryTopicExistsRequest protoreflect.MessageDescriptor + fd_QueryTopicExistsRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryChurnableTopicsRequest = File_emissions_v1_query_proto.Messages().ByName("QueryChurnableTopicsRequest") + file_emissions_v2_query_proto_init() + md_QueryTopicExistsRequest = File_emissions_v2_query_proto.Messages().ByName("QueryTopicExistsRequest") + fd_QueryTopicExistsRequest_topic_id = md_QueryTopicExistsRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryChurnableTopicsRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTopicExistsRequest)(nil) -type fastReflection_QueryChurnableTopicsRequest QueryChurnableTopicsRequest +type fastReflection_QueryTopicExistsRequest QueryTopicExistsRequest -func (x *QueryChurnableTopicsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryChurnableTopicsRequest)(x) +func (x *QueryTopicExistsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTopicExistsRequest)(x) } -func (x *QueryChurnableTopicsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[102] +func (x *QueryTopicExistsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[100] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -45815,43 +45553,43 @@ func (x *QueryChurnableTopicsRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryChurnableTopicsRequest_messageType fastReflection_QueryChurnableTopicsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryChurnableTopicsRequest_messageType{} +var _fastReflection_QueryTopicExistsRequest_messageType fastReflection_QueryTopicExistsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTopicExistsRequest_messageType{} -type fastReflection_QueryChurnableTopicsRequest_messageType struct{} +type fastReflection_QueryTopicExistsRequest_messageType struct{} -func (x fastReflection_QueryChurnableTopicsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryChurnableTopicsRequest)(nil) +func (x fastReflection_QueryTopicExistsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTopicExistsRequest)(nil) } -func (x fastReflection_QueryChurnableTopicsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryChurnableTopicsRequest) +func (x fastReflection_QueryTopicExistsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTopicExistsRequest) } -func (x fastReflection_QueryChurnableTopicsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryChurnableTopicsRequest +func (x fastReflection_QueryTopicExistsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicExistsRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryChurnableTopicsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryChurnableTopicsRequest +func (x *fastReflection_QueryTopicExistsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicExistsRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryChurnableTopicsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryChurnableTopicsRequest_messageType +func (x *fastReflection_QueryTopicExistsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTopicExistsRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryChurnableTopicsRequest) New() protoreflect.Message { - return new(fastReflection_QueryChurnableTopicsRequest) +func (x *fastReflection_QueryTopicExistsRequest) New() protoreflect.Message { + return new(fastReflection_QueryTopicExistsRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryChurnableTopicsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryChurnableTopicsRequest)(x) +func (x *fastReflection_QueryTopicExistsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTopicExistsRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -45859,7 +45597,13 @@ func (x *fastReflection_QueryChurnableTopicsRequest) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryChurnableTopicsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryTopicExistsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryTopicExistsRequest_topic_id, value) { + return + } + } } // Has reports whether a field is populated. @@ -45873,13 +45617,15 @@ func (x *fastReflection_QueryChurnableTopicsRequest) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryChurnableTopicsRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTopicExistsRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "emissions.v2.QueryTopicExistsRequest.topic_id": + return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryChurnableTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicExistsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryChurnableTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicExistsRequest does not contain field %s", fd.FullName())) } } @@ -45889,13 +45635,15 @@ func (x *fastReflection_QueryChurnableTopicsRequest) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChurnableTopicsRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTopicExistsRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "emissions.v2.QueryTopicExistsRequest.topic_id": + x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryChurnableTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicExistsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryChurnableTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicExistsRequest does not contain field %s", fd.FullName())) } } @@ -45905,13 +45653,16 @@ func (x *fastReflection_QueryChurnableTopicsRequest) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryChurnableTopicsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicExistsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "emissions.v2.QueryTopicExistsRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryChurnableTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicExistsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryChurnableTopicsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicExistsRequest does not contain field %s", descriptor.FullName())) } } @@ -45925,13 +45676,15 @@ func (x *fastReflection_QueryChurnableTopicsRequest) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChurnableTopicsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTopicExistsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "emissions.v2.QueryTopicExistsRequest.topic_id": + x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryChurnableTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicExistsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryChurnableTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicExistsRequest does not contain field %s", fd.FullName())) } } @@ -45945,36 +45698,40 @@ func (x *fastReflection_QueryChurnableTopicsRequest) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChurnableTopicsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicExistsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryTopicExistsRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryTopicExistsRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryChurnableTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicExistsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryChurnableTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicExistsRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryChurnableTopicsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicExistsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryTopicExistsRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryChurnableTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicExistsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryChurnableTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicExistsRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryChurnableTopicsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTopicExistsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryChurnableTopicsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTopicExistsRequest", d.FullName())) } panic("unreachable") } @@ -45982,7 +45739,7 @@ func (x *fastReflection_QueryChurnableTopicsRequest) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryChurnableTopicsRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTopicExistsRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -45993,7 +45750,7 @@ func (x *fastReflection_QueryChurnableTopicsRequest) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChurnableTopicsRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTopicExistsRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -46005,7 +45762,7 @@ func (x *fastReflection_QueryChurnableTopicsRequest) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryChurnableTopicsRequest) IsValid() bool { +func (x *fastReflection_QueryTopicExistsRequest) IsValid() bool { return x != nil } @@ -46015,9 +45772,9 @@ func (x *fastReflection_QueryChurnableTopicsRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryChurnableTopicsRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTopicExistsRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryChurnableTopicsRequest) + x := input.Message.Interface().(*QueryTopicExistsRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -46029,6 +45786,9 @@ func (x *fastReflection_QueryChurnableTopicsRequest) ProtoMethods() *protoiface. var n int var l int _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -46039,7 +45799,7 @@ func (x *fastReflection_QueryChurnableTopicsRequest) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryChurnableTopicsRequest) + x := input.Message.Interface().(*QueryTopicExistsRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -46058,6 +45818,11 @@ func (x *fastReflection_QueryChurnableTopicsRequest) ProtoMethods() *protoiface. i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -46069,7 +45834,7 @@ func (x *fastReflection_QueryChurnableTopicsRequest) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryChurnableTopicsRequest) + x := input.Message.Interface().(*QueryTopicExistsRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -46101,12 +45866,31 @@ func (x *fastReflection_QueryChurnableTopicsRequest) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryChurnableTopicsRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicExistsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryChurnableTopicsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicExistsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -46142,73 +45926,27 @@ func (x *fastReflection_QueryChurnableTopicsRequest) ProtoMethods() *protoiface. } } -var _ protoreflect.List = (*_QueryChurnableTopicsResponse_1_list)(nil) - -type _QueryChurnableTopicsResponse_1_list struct { - list *[]uint64 -} - -func (x *_QueryChurnableTopicsResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryChurnableTopicsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_QueryChurnableTopicsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryChurnableTopicsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryChurnableTopicsResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryChurnableTopicsResponse at list field ChurnableTopicIds as it is not of Message kind")) -} - -func (x *_QueryChurnableTopicsResponse_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryChurnableTopicsResponse_1_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_QueryChurnableTopicsResponse_1_list) IsValid() bool { - return x.list != nil -} - var ( - md_QueryChurnableTopicsResponse protoreflect.MessageDescriptor - fd_QueryChurnableTopicsResponse_churnable_topic_ids protoreflect.FieldDescriptor + md_QueryTopicExistsResponse protoreflect.MessageDescriptor + fd_QueryTopicExistsResponse_exists protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryChurnableTopicsResponse = File_emissions_v1_query_proto.Messages().ByName("QueryChurnableTopicsResponse") - fd_QueryChurnableTopicsResponse_churnable_topic_ids = md_QueryChurnableTopicsResponse.Fields().ByName("churnable_topic_ids") + file_emissions_v2_query_proto_init() + md_QueryTopicExistsResponse = File_emissions_v2_query_proto.Messages().ByName("QueryTopicExistsResponse") + fd_QueryTopicExistsResponse_exists = md_QueryTopicExistsResponse.Fields().ByName("exists") } -var _ protoreflect.Message = (*fastReflection_QueryChurnableTopicsResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTopicExistsResponse)(nil) -type fastReflection_QueryChurnableTopicsResponse QueryChurnableTopicsResponse +type fastReflection_QueryTopicExistsResponse QueryTopicExistsResponse -func (x *QueryChurnableTopicsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryChurnableTopicsResponse)(x) +func (x *QueryTopicExistsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTopicExistsResponse)(x) } -func (x *QueryChurnableTopicsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[103] +func (x *QueryTopicExistsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[101] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -46219,43 +45957,43 @@ func (x *QueryChurnableTopicsResponse) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryChurnableTopicsResponse_messageType fastReflection_QueryChurnableTopicsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryChurnableTopicsResponse_messageType{} +var _fastReflection_QueryTopicExistsResponse_messageType fastReflection_QueryTopicExistsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTopicExistsResponse_messageType{} -type fastReflection_QueryChurnableTopicsResponse_messageType struct{} +type fastReflection_QueryTopicExistsResponse_messageType struct{} -func (x fastReflection_QueryChurnableTopicsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryChurnableTopicsResponse)(nil) +func (x fastReflection_QueryTopicExistsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTopicExistsResponse)(nil) } -func (x fastReflection_QueryChurnableTopicsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryChurnableTopicsResponse) +func (x fastReflection_QueryTopicExistsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTopicExistsResponse) } -func (x fastReflection_QueryChurnableTopicsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryChurnableTopicsResponse +func (x fastReflection_QueryTopicExistsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicExistsResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryChurnableTopicsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryChurnableTopicsResponse +func (x *fastReflection_QueryTopicExistsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicExistsResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryChurnableTopicsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryChurnableTopicsResponse_messageType +func (x *fastReflection_QueryTopicExistsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTopicExistsResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryChurnableTopicsResponse) New() protoreflect.Message { - return new(fastReflection_QueryChurnableTopicsResponse) +func (x *fastReflection_QueryTopicExistsResponse) New() protoreflect.Message { + return new(fastReflection_QueryTopicExistsResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryChurnableTopicsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryChurnableTopicsResponse)(x) +func (x *fastReflection_QueryTopicExistsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTopicExistsResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -46263,10 +46001,10 @@ func (x *fastReflection_QueryChurnableTopicsResponse) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryChurnableTopicsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.ChurnableTopicIds) != 0 { - value := protoreflect.ValueOfList(&_QueryChurnableTopicsResponse_1_list{list: &x.ChurnableTopicIds}) - if !f(fd_QueryChurnableTopicsResponse_churnable_topic_ids, value) { +func (x *fastReflection_QueryTopicExistsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Exists != false { + value := protoreflect.ValueOfBool(x.Exists) + if !f(fd_QueryTopicExistsResponse_exists, value) { return } } @@ -46283,15 +46021,15 @@ func (x *fastReflection_QueryChurnableTopicsResponse) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryChurnableTopicsResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTopicExistsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryChurnableTopicsResponse.churnable_topic_ids": - return len(x.ChurnableTopicIds) != 0 + case "emissions.v2.QueryTopicExistsResponse.exists": + return x.Exists != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryChurnableTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicExistsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryChurnableTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicExistsResponse does not contain field %s", fd.FullName())) } } @@ -46301,15 +46039,15 @@ func (x *fastReflection_QueryChurnableTopicsResponse) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChurnableTopicsResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTopicExistsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryChurnableTopicsResponse.churnable_topic_ids": - x.ChurnableTopicIds = nil + case "emissions.v2.QueryTopicExistsResponse.exists": + x.Exists = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryChurnableTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicExistsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryChurnableTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicExistsResponse does not contain field %s", fd.FullName())) } } @@ -46319,19 +46057,16 @@ func (x *fastReflection_QueryChurnableTopicsResponse) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryChurnableTopicsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicExistsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryChurnableTopicsResponse.churnable_topic_ids": - if len(x.ChurnableTopicIds) == 0 { - return protoreflect.ValueOfList(&_QueryChurnableTopicsResponse_1_list{}) - } - listValue := &_QueryChurnableTopicsResponse_1_list{list: &x.ChurnableTopicIds} - return protoreflect.ValueOfList(listValue) + case "emissions.v2.QueryTopicExistsResponse.exists": + value := x.Exists + return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryChurnableTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicExistsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryChurnableTopicsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicExistsResponse does not contain field %s", descriptor.FullName())) } } @@ -46345,17 +46080,15 @@ func (x *fastReflection_QueryChurnableTopicsResponse) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChurnableTopicsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTopicExistsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryChurnableTopicsResponse.churnable_topic_ids": - lv := value.List() - clv := lv.(*_QueryChurnableTopicsResponse_1_list) - x.ChurnableTopicIds = *clv.list + case "emissions.v2.QueryTopicExistsResponse.exists": + x.Exists = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryChurnableTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicExistsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryChurnableTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicExistsResponse does not contain field %s", fd.FullName())) } } @@ -46369,45 +46102,40 @@ func (x *fastReflection_QueryChurnableTopicsResponse) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChurnableTopicsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicExistsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryChurnableTopicsResponse.churnable_topic_ids": - if x.ChurnableTopicIds == nil { - x.ChurnableTopicIds = []uint64{} - } - value := &_QueryChurnableTopicsResponse_1_list{list: &x.ChurnableTopicIds} - return protoreflect.ValueOfList(value) + case "emissions.v2.QueryTopicExistsResponse.exists": + panic(fmt.Errorf("field exists of message emissions.v2.QueryTopicExistsResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryChurnableTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicExistsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryChurnableTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicExistsResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryChurnableTopicsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicExistsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryChurnableTopicsResponse.churnable_topic_ids": - list := []uint64{} - return protoreflect.ValueOfList(&_QueryChurnableTopicsResponse_1_list{list: &list}) + case "emissions.v2.QueryTopicExistsResponse.exists": + return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryChurnableTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicExistsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryChurnableTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicExistsResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryChurnableTopicsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTopicExistsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryChurnableTopicsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTopicExistsResponse", d.FullName())) } panic("unreachable") } @@ -46415,7 +46143,7 @@ func (x *fastReflection_QueryChurnableTopicsResponse) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryChurnableTopicsResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTopicExistsResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -46426,7 +46154,7 @@ func (x *fastReflection_QueryChurnableTopicsResponse) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryChurnableTopicsResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTopicExistsResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -46438,7 +46166,7 @@ func (x *fastReflection_QueryChurnableTopicsResponse) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryChurnableTopicsResponse) IsValid() bool { +func (x *fastReflection_QueryTopicExistsResponse) IsValid() bool { return x != nil } @@ -46448,9 +46176,9 @@ func (x *fastReflection_QueryChurnableTopicsResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryChurnableTopicsResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTopicExistsResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryChurnableTopicsResponse) + x := input.Message.Interface().(*QueryTopicExistsResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -46462,12 +46190,8 @@ func (x *fastReflection_QueryChurnableTopicsResponse) ProtoMethods() *protoiface var n int var l int _ = l - if len(x.ChurnableTopicIds) > 0 { - l = 0 - for _, e := range x.ChurnableTopicIds { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l + if x.Exists { + n += 2 } if x.unknownFields != nil { n += len(x.unknownFields) @@ -46479,7 +46203,7 @@ func (x *fastReflection_QueryChurnableTopicsResponse) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryChurnableTopicsResponse) + x := input.Message.Interface().(*QueryTopicExistsResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -46498,25 +46222,15 @@ func (x *fastReflection_QueryChurnableTopicsResponse) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.ChurnableTopicIds) > 0 { - var pksize2 int - for _, num := range x.ChurnableTopicIds { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.ChurnableTopicIds { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ + if x.Exists { + i-- + if x.Exists { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -46529,7 +46243,7 @@ func (x *fastReflection_QueryChurnableTopicsResponse) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryChurnableTopicsResponse) + x := input.Message.Interface().(*QueryTopicExistsResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -46561,88 +46275,32 @@ func (x *fastReflection_QueryChurnableTopicsResponse) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryChurnableTopicsResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicExistsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryChurnableTopicsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicExistsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.ChurnableTopicIds = append(x.ChurnableTopicIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Exists", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow } - if postIndex > l { + if iNdEx >= l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.ChurnableTopicIds) == 0 { - x.ChurnableTopicIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.ChurnableTopicIds = append(x.ChurnableTopicIds, v) + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ChurnableTopicIds", wireType) } + x.Exists = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -46679,24 +46337,26 @@ func (x *fastReflection_QueryChurnableTopicsResponse) ProtoMethods() *protoiface } var ( - md_QueryRewardableTopicsRequest protoreflect.MessageDescriptor + md_QueryIsTopicActiveRequest protoreflect.MessageDescriptor + fd_QueryIsTopicActiveRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryRewardableTopicsRequest = File_emissions_v1_query_proto.Messages().ByName("QueryRewardableTopicsRequest") + file_emissions_v2_query_proto_init() + md_QueryIsTopicActiveRequest = File_emissions_v2_query_proto.Messages().ByName("QueryIsTopicActiveRequest") + fd_QueryIsTopicActiveRequest_topic_id = md_QueryIsTopicActiveRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryRewardableTopicsRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsTopicActiveRequest)(nil) -type fastReflection_QueryRewardableTopicsRequest QueryRewardableTopicsRequest +type fastReflection_QueryIsTopicActiveRequest QueryIsTopicActiveRequest -func (x *QueryRewardableTopicsRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryRewardableTopicsRequest)(x) +func (x *QueryIsTopicActiveRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsTopicActiveRequest)(x) } -func (x *QueryRewardableTopicsRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[104] +func (x *QueryIsTopicActiveRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[102] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -46707,43 +46367,43 @@ func (x *QueryRewardableTopicsRequest) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_QueryRewardableTopicsRequest_messageType fastReflection_QueryRewardableTopicsRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryRewardableTopicsRequest_messageType{} +var _fastReflection_QueryIsTopicActiveRequest_messageType fastReflection_QueryIsTopicActiveRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsTopicActiveRequest_messageType{} -type fastReflection_QueryRewardableTopicsRequest_messageType struct{} +type fastReflection_QueryIsTopicActiveRequest_messageType struct{} -func (x fastReflection_QueryRewardableTopicsRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryRewardableTopicsRequest)(nil) +func (x fastReflection_QueryIsTopicActiveRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsTopicActiveRequest)(nil) } -func (x fastReflection_QueryRewardableTopicsRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryRewardableTopicsRequest) +func (x fastReflection_QueryIsTopicActiveRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsTopicActiveRequest) } -func (x fastReflection_QueryRewardableTopicsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRewardableTopicsRequest +func (x fastReflection_QueryIsTopicActiveRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsTopicActiveRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryRewardableTopicsRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRewardableTopicsRequest +func (x *fastReflection_QueryIsTopicActiveRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsTopicActiveRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryRewardableTopicsRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryRewardableTopicsRequest_messageType +func (x *fastReflection_QueryIsTopicActiveRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryIsTopicActiveRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryRewardableTopicsRequest) New() protoreflect.Message { - return new(fastReflection_QueryRewardableTopicsRequest) +func (x *fastReflection_QueryIsTopicActiveRequest) New() protoreflect.Message { + return new(fastReflection_QueryIsTopicActiveRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryRewardableTopicsRequest) Interface() protoreflect.ProtoMessage { - return (*QueryRewardableTopicsRequest)(x) +func (x *fastReflection_QueryIsTopicActiveRequest) Interface() protoreflect.ProtoMessage { + return (*QueryIsTopicActiveRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -46751,7 +46411,13 @@ func (x *fastReflection_QueryRewardableTopicsRequest) Interface() protoreflect.P // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryRewardableTopicsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryIsTopicActiveRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryIsTopicActiveRequest_topic_id, value) { + return + } + } } // Has reports whether a field is populated. @@ -46765,13 +46431,15 @@ func (x *fastReflection_QueryRewardableTopicsRequest) Range(f func(protoreflect. // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryRewardableTopicsRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsTopicActiveRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "emissions.v2.QueryIsTopicActiveRequest.topic_id": + return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryRewardableTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsTopicActiveRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryRewardableTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsTopicActiveRequest does not contain field %s", fd.FullName())) } } @@ -46781,13 +46449,15 @@ func (x *fastReflection_QueryRewardableTopicsRequest) Has(fd protoreflect.FieldD // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardableTopicsRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsTopicActiveRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "emissions.v2.QueryIsTopicActiveRequest.topic_id": + x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryRewardableTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsTopicActiveRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryRewardableTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsTopicActiveRequest does not contain field %s", fd.FullName())) } } @@ -46797,13 +46467,16 @@ func (x *fastReflection_QueryRewardableTopicsRequest) Clear(fd protoreflect.Fiel // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryRewardableTopicsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsTopicActiveRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "emissions.v2.QueryIsTopicActiveRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryRewardableTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsTopicActiveRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryRewardableTopicsRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsTopicActiveRequest does not contain field %s", descriptor.FullName())) } } @@ -46817,13 +46490,15 @@ func (x *fastReflection_QueryRewardableTopicsRequest) Get(descriptor protoreflec // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardableTopicsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsTopicActiveRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "emissions.v2.QueryIsTopicActiveRequest.topic_id": + x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryRewardableTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsTopicActiveRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryRewardableTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsTopicActiveRequest does not contain field %s", fd.FullName())) } } @@ -46837,36 +46512,40 @@ func (x *fastReflection_QueryRewardableTopicsRequest) Set(fd protoreflect.FieldD // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardableTopicsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsTopicActiveRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryIsTopicActiveRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryIsTopicActiveRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryRewardableTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsTopicActiveRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryRewardableTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsTopicActiveRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryRewardableTopicsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsTopicActiveRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryIsTopicActiveRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryRewardableTopicsRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsTopicActiveRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryRewardableTopicsRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsTopicActiveRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryRewardableTopicsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsTopicActiveRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryRewardableTopicsRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryIsTopicActiveRequest", d.FullName())) } panic("unreachable") } @@ -46874,7 +46553,7 @@ func (x *fastReflection_QueryRewardableTopicsRequest) WhichOneof(d protoreflect. // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryRewardableTopicsRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsTopicActiveRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -46885,7 +46564,7 @@ func (x *fastReflection_QueryRewardableTopicsRequest) GetUnknown() protoreflect. // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardableTopicsRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsTopicActiveRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -46897,7 +46576,7 @@ func (x *fastReflection_QueryRewardableTopicsRequest) SetUnknown(fields protoref // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryRewardableTopicsRequest) IsValid() bool { +func (x *fastReflection_QueryIsTopicActiveRequest) IsValid() bool { return x != nil } @@ -46907,9 +46586,9 @@ func (x *fastReflection_QueryRewardableTopicsRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryRewardableTopicsRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsTopicActiveRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryRewardableTopicsRequest) + x := input.Message.Interface().(*QueryIsTopicActiveRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -46921,6 +46600,9 @@ func (x *fastReflection_QueryRewardableTopicsRequest) ProtoMethods() *protoiface var n int var l int _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -46931,7 +46613,7 @@ func (x *fastReflection_QueryRewardableTopicsRequest) ProtoMethods() *protoiface } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryRewardableTopicsRequest) + x := input.Message.Interface().(*QueryIsTopicActiveRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -46950,6 +46632,11 @@ func (x *fastReflection_QueryRewardableTopicsRequest) ProtoMethods() *protoiface i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -46961,7 +46648,7 @@ func (x *fastReflection_QueryRewardableTopicsRequest) ProtoMethods() *protoiface }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryRewardableTopicsRequest) + x := input.Message.Interface().(*QueryIsTopicActiveRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -46993,12 +46680,31 @@ func (x *fastReflection_QueryRewardableTopicsRequest) ProtoMethods() *protoiface fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardableTopicsRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsTopicActiveRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardableTopicsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsTopicActiveRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -47034,73 +46740,27 @@ func (x *fastReflection_QueryRewardableTopicsRequest) ProtoMethods() *protoiface } } -var _ protoreflect.List = (*_QueryRewardableTopicsResponse_1_list)(nil) - -type _QueryRewardableTopicsResponse_1_list struct { - list *[]uint64 -} - -func (x *_QueryRewardableTopicsResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryRewardableTopicsResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfUint64((*x.list)[i]) -} - -func (x *_QueryRewardableTopicsResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - (*x.list)[i] = concreteValue -} - -func (x *_QueryRewardableTopicsResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Uint() - concreteValue := valueUnwrapped - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryRewardableTopicsResponse_1_list) AppendMutable() protoreflect.Value { - panic(fmt.Errorf("AppendMutable can not be called on message QueryRewardableTopicsResponse at list field RewardableTopicIds as it is not of Message kind")) -} - -func (x *_QueryRewardableTopicsResponse_1_list) Truncate(n int) { - *x.list = (*x.list)[:n] -} - -func (x *_QueryRewardableTopicsResponse_1_list) NewElement() protoreflect.Value { - v := uint64(0) - return protoreflect.ValueOfUint64(v) -} - -func (x *_QueryRewardableTopicsResponse_1_list) IsValid() bool { - return x.list != nil -} - var ( - md_QueryRewardableTopicsResponse protoreflect.MessageDescriptor - fd_QueryRewardableTopicsResponse_rewardable_topic_ids protoreflect.FieldDescriptor + md_QueryIsTopicActiveResponse protoreflect.MessageDescriptor + fd_QueryIsTopicActiveResponse_is_active protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryRewardableTopicsResponse = File_emissions_v1_query_proto.Messages().ByName("QueryRewardableTopicsResponse") - fd_QueryRewardableTopicsResponse_rewardable_topic_ids = md_QueryRewardableTopicsResponse.Fields().ByName("rewardable_topic_ids") + file_emissions_v2_query_proto_init() + md_QueryIsTopicActiveResponse = File_emissions_v2_query_proto.Messages().ByName("QueryIsTopicActiveResponse") + fd_QueryIsTopicActiveResponse_is_active = md_QueryIsTopicActiveResponse.Fields().ByName("is_active") } -var _ protoreflect.Message = (*fastReflection_QueryRewardableTopicsResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryIsTopicActiveResponse)(nil) -type fastReflection_QueryRewardableTopicsResponse QueryRewardableTopicsResponse +type fastReflection_QueryIsTopicActiveResponse QueryIsTopicActiveResponse -func (x *QueryRewardableTopicsResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryRewardableTopicsResponse)(x) +func (x *QueryIsTopicActiveResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryIsTopicActiveResponse)(x) } -func (x *QueryRewardableTopicsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[105] +func (x *QueryIsTopicActiveResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[103] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -47111,43 +46771,43 @@ func (x *QueryRewardableTopicsResponse) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryRewardableTopicsResponse_messageType fastReflection_QueryRewardableTopicsResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryRewardableTopicsResponse_messageType{} +var _fastReflection_QueryIsTopicActiveResponse_messageType fastReflection_QueryIsTopicActiveResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryIsTopicActiveResponse_messageType{} -type fastReflection_QueryRewardableTopicsResponse_messageType struct{} +type fastReflection_QueryIsTopicActiveResponse_messageType struct{} -func (x fastReflection_QueryRewardableTopicsResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryRewardableTopicsResponse)(nil) +func (x fastReflection_QueryIsTopicActiveResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryIsTopicActiveResponse)(nil) } -func (x fastReflection_QueryRewardableTopicsResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryRewardableTopicsResponse) +func (x fastReflection_QueryIsTopicActiveResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryIsTopicActiveResponse) } -func (x fastReflection_QueryRewardableTopicsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRewardableTopicsResponse +func (x fastReflection_QueryIsTopicActiveResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsTopicActiveResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryRewardableTopicsResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryRewardableTopicsResponse +func (x *fastReflection_QueryIsTopicActiveResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryIsTopicActiveResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryRewardableTopicsResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryRewardableTopicsResponse_messageType +func (x *fastReflection_QueryIsTopicActiveResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryIsTopicActiveResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryRewardableTopicsResponse) New() protoreflect.Message { - return new(fastReflection_QueryRewardableTopicsResponse) +func (x *fastReflection_QueryIsTopicActiveResponse) New() protoreflect.Message { + return new(fastReflection_QueryIsTopicActiveResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryRewardableTopicsResponse) Interface() protoreflect.ProtoMessage { - return (*QueryRewardableTopicsResponse)(x) +func (x *fastReflection_QueryIsTopicActiveResponse) Interface() protoreflect.ProtoMessage { + return (*QueryIsTopicActiveResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -47155,10 +46815,10 @@ func (x *fastReflection_QueryRewardableTopicsResponse) Interface() protoreflect. // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryRewardableTopicsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.RewardableTopicIds) != 0 { - value := protoreflect.ValueOfList(&_QueryRewardableTopicsResponse_1_list{list: &x.RewardableTopicIds}) - if !f(fd_QueryRewardableTopicsResponse_rewardable_topic_ids, value) { +func (x *fastReflection_QueryIsTopicActiveResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.IsActive != false { + value := protoreflect.ValueOfBool(x.IsActive) + if !f(fd_QueryIsTopicActiveResponse_is_active, value) { return } } @@ -47175,15 +46835,15 @@ func (x *fastReflection_QueryRewardableTopicsResponse) Range(f func(protoreflect // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryRewardableTopicsResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryIsTopicActiveResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryRewardableTopicsResponse.rewardable_topic_ids": - return len(x.RewardableTopicIds) != 0 + case "emissions.v2.QueryIsTopicActiveResponse.is_active": + return x.IsActive != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryRewardableTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsTopicActiveResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryRewardableTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsTopicActiveResponse does not contain field %s", fd.FullName())) } } @@ -47193,15 +46853,15 @@ func (x *fastReflection_QueryRewardableTopicsResponse) Has(fd protoreflect.Field // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardableTopicsResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryIsTopicActiveResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryRewardableTopicsResponse.rewardable_topic_ids": - x.RewardableTopicIds = nil + case "emissions.v2.QueryIsTopicActiveResponse.is_active": + x.IsActive = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryRewardableTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsTopicActiveResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryRewardableTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsTopicActiveResponse does not contain field %s", fd.FullName())) } } @@ -47211,19 +46871,16 @@ func (x *fastReflection_QueryRewardableTopicsResponse) Clear(fd protoreflect.Fie // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryRewardableTopicsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsTopicActiveResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryRewardableTopicsResponse.rewardable_topic_ids": - if len(x.RewardableTopicIds) == 0 { - return protoreflect.ValueOfList(&_QueryRewardableTopicsResponse_1_list{}) - } - listValue := &_QueryRewardableTopicsResponse_1_list{list: &x.RewardableTopicIds} - return protoreflect.ValueOfList(listValue) + case "emissions.v2.QueryIsTopicActiveResponse.is_active": + value := x.IsActive + return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryRewardableTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsTopicActiveResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryRewardableTopicsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsTopicActiveResponse does not contain field %s", descriptor.FullName())) } } @@ -47237,17 +46894,15 @@ func (x *fastReflection_QueryRewardableTopicsResponse) Get(descriptor protorefle // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardableTopicsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryIsTopicActiveResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryRewardableTopicsResponse.rewardable_topic_ids": - lv := value.List() - clv := lv.(*_QueryRewardableTopicsResponse_1_list) - x.RewardableTopicIds = *clv.list + case "emissions.v2.QueryIsTopicActiveResponse.is_active": + x.IsActive = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryRewardableTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsTopicActiveResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryRewardableTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsTopicActiveResponse does not contain field %s", fd.FullName())) } } @@ -47261,45 +46916,40 @@ func (x *fastReflection_QueryRewardableTopicsResponse) Set(fd protoreflect.Field // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardableTopicsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsTopicActiveResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryRewardableTopicsResponse.rewardable_topic_ids": - if x.RewardableTopicIds == nil { - x.RewardableTopicIds = []uint64{} - } - value := &_QueryRewardableTopicsResponse_1_list{list: &x.RewardableTopicIds} - return protoreflect.ValueOfList(value) + case "emissions.v2.QueryIsTopicActiveResponse.is_active": + panic(fmt.Errorf("field is_active of message emissions.v2.QueryIsTopicActiveResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryRewardableTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsTopicActiveResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryRewardableTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsTopicActiveResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryRewardableTopicsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryIsTopicActiveResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryRewardableTopicsResponse.rewardable_topic_ids": - list := []uint64{} - return protoreflect.ValueOfList(&_QueryRewardableTopicsResponse_1_list{list: &list}) + case "emissions.v2.QueryIsTopicActiveResponse.is_active": + return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryRewardableTopicsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryIsTopicActiveResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryRewardableTopicsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryIsTopicActiveResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryRewardableTopicsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryIsTopicActiveResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryRewardableTopicsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryIsTopicActiveResponse", d.FullName())) } panic("unreachable") } @@ -47307,7 +46957,7 @@ func (x *fastReflection_QueryRewardableTopicsResponse) WhichOneof(d protoreflect // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryRewardableTopicsResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryIsTopicActiveResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -47318,7 +46968,7 @@ func (x *fastReflection_QueryRewardableTopicsResponse) GetUnknown() protoreflect // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryRewardableTopicsResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryIsTopicActiveResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -47330,7 +46980,7 @@ func (x *fastReflection_QueryRewardableTopicsResponse) SetUnknown(fields protore // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryRewardableTopicsResponse) IsValid() bool { +func (x *fastReflection_QueryIsTopicActiveResponse) IsValid() bool { return x != nil } @@ -47340,9 +46990,9 @@ func (x *fastReflection_QueryRewardableTopicsResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryRewardableTopicsResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryIsTopicActiveResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryRewardableTopicsResponse) + x := input.Message.Interface().(*QueryIsTopicActiveResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -47354,12 +47004,8 @@ func (x *fastReflection_QueryRewardableTopicsResponse) ProtoMethods() *protoifac var n int var l int _ = l - if len(x.RewardableTopicIds) > 0 { - l = 0 - for _, e := range x.RewardableTopicIds { - l += runtime.Sov(uint64(e)) - } - n += 1 + runtime.Sov(uint64(l)) + l + if x.IsActive { + n += 2 } if x.unknownFields != nil { n += len(x.unknownFields) @@ -47371,7 +47017,7 @@ func (x *fastReflection_QueryRewardableTopicsResponse) ProtoMethods() *protoifac } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryRewardableTopicsResponse) + x := input.Message.Interface().(*QueryIsTopicActiveResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -47390,25 +47036,15 @@ func (x *fastReflection_QueryRewardableTopicsResponse) ProtoMethods() *protoifac i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.RewardableTopicIds) > 0 { - var pksize2 int - for _, num := range x.RewardableTopicIds { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.RewardableTopicIds { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ + if x.IsActive { + i-- + if x.IsActive { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -47421,7 +47057,7 @@ func (x *fastReflection_QueryRewardableTopicsResponse) ProtoMethods() *protoifac }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryRewardableTopicsResponse) + x := input.Message.Interface().(*QueryIsTopicActiveResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -47453,88 +47089,32 @@ func (x *fastReflection_QueryRewardableTopicsResponse) ProtoMethods() *protoifac fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardableTopicsResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsTopicActiveResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardableTopicsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryIsTopicActiveResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.RewardableTopicIds = append(x.RewardableTopicIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsActive", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow } - if postIndex > l { + if iNdEx >= l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(x.RewardableTopicIds) == 0 { - x.RewardableTopicIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - x.RewardableTopicIds = append(x.RewardableTopicIds, v) + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break } - } else { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RewardableTopicIds", wireType) } + x.IsActive = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -47571,28 +47151,26 @@ func (x *fastReflection_QueryRewardableTopicsResponse) ProtoMethods() *protoifac } var ( - md_QueryLatestInfererScoreRequest protoreflect.MessageDescriptor - fd_QueryLatestInfererScoreRequest_topic_id protoreflect.FieldDescriptor - fd_QueryLatestInfererScoreRequest_inferer protoreflect.FieldDescriptor + md_QueryTopicFeeRevenueRequest protoreflect.MessageDescriptor + fd_QueryTopicFeeRevenueRequest_topic_id protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryLatestInfererScoreRequest = File_emissions_v1_query_proto.Messages().ByName("QueryLatestInfererScoreRequest") - fd_QueryLatestInfererScoreRequest_topic_id = md_QueryLatestInfererScoreRequest.Fields().ByName("topic_id") - fd_QueryLatestInfererScoreRequest_inferer = md_QueryLatestInfererScoreRequest.Fields().ByName("inferer") + file_emissions_v2_query_proto_init() + md_QueryTopicFeeRevenueRequest = File_emissions_v2_query_proto.Messages().ByName("QueryTopicFeeRevenueRequest") + fd_QueryTopicFeeRevenueRequest_topic_id = md_QueryTopicFeeRevenueRequest.Fields().ByName("topic_id") } -var _ protoreflect.Message = (*fastReflection_QueryLatestInfererScoreRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTopicFeeRevenueRequest)(nil) -type fastReflection_QueryLatestInfererScoreRequest QueryLatestInfererScoreRequest +type fastReflection_QueryTopicFeeRevenueRequest QueryTopicFeeRevenueRequest -func (x *QueryLatestInfererScoreRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryLatestInfererScoreRequest)(x) +func (x *QueryTopicFeeRevenueRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTopicFeeRevenueRequest)(x) } -func (x *QueryLatestInfererScoreRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[106] +func (x *QueryTopicFeeRevenueRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[104] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -47603,43 +47181,43 @@ func (x *QueryLatestInfererScoreRequest) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryLatestInfererScoreRequest_messageType fastReflection_QueryLatestInfererScoreRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryLatestInfererScoreRequest_messageType{} +var _fastReflection_QueryTopicFeeRevenueRequest_messageType fastReflection_QueryTopicFeeRevenueRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTopicFeeRevenueRequest_messageType{} -type fastReflection_QueryLatestInfererScoreRequest_messageType struct{} +type fastReflection_QueryTopicFeeRevenueRequest_messageType struct{} -func (x fastReflection_QueryLatestInfererScoreRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryLatestInfererScoreRequest)(nil) +func (x fastReflection_QueryTopicFeeRevenueRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTopicFeeRevenueRequest)(nil) } -func (x fastReflection_QueryLatestInfererScoreRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryLatestInfererScoreRequest) +func (x fastReflection_QueryTopicFeeRevenueRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTopicFeeRevenueRequest) } -func (x fastReflection_QueryLatestInfererScoreRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestInfererScoreRequest +func (x fastReflection_QueryTopicFeeRevenueRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicFeeRevenueRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryLatestInfererScoreRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestInfererScoreRequest +func (x *fastReflection_QueryTopicFeeRevenueRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicFeeRevenueRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryLatestInfererScoreRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryLatestInfererScoreRequest_messageType +func (x *fastReflection_QueryTopicFeeRevenueRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTopicFeeRevenueRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryLatestInfererScoreRequest) New() protoreflect.Message { - return new(fastReflection_QueryLatestInfererScoreRequest) +func (x *fastReflection_QueryTopicFeeRevenueRequest) New() protoreflect.Message { + return new(fastReflection_QueryTopicFeeRevenueRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryLatestInfererScoreRequest) Interface() protoreflect.ProtoMessage { - return (*QueryLatestInfererScoreRequest)(x) +func (x *fastReflection_QueryTopicFeeRevenueRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTopicFeeRevenueRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -47647,16 +47225,10 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryLatestInfererScoreRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryTopicFeeRevenueRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryLatestInfererScoreRequest_topic_id, value) { - return - } - } - if x.Inferer != "" { - value := protoreflect.ValueOfString(x.Inferer) - if !f(fd_QueryLatestInfererScoreRequest_inferer, value) { + if !f(fd_QueryTopicFeeRevenueRequest_topic_id, value) { return } } @@ -47673,17 +47245,15 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) Range(f func(protoreflec // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryLatestInfererScoreRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTopicFeeRevenueRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryLatestInfererScoreRequest.topic_id": + case "emissions.v2.QueryTopicFeeRevenueRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryLatestInfererScoreRequest.inferer": - return x.Inferer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestInfererScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicFeeRevenueRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestInfererScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicFeeRevenueRequest does not contain field %s", fd.FullName())) } } @@ -47693,17 +47263,15 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestInfererScoreRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTopicFeeRevenueRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryLatestInfererScoreRequest.topic_id": + case "emissions.v2.QueryTopicFeeRevenueRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryLatestInfererScoreRequest.inferer": - x.Inferer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestInfererScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicFeeRevenueRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestInfererScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicFeeRevenueRequest does not contain field %s", fd.FullName())) } } @@ -47713,19 +47281,16 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) Clear(fd protoreflect.Fi // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryLatestInfererScoreRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicFeeRevenueRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryLatestInfererScoreRequest.topic_id": + case "emissions.v2.QueryTopicFeeRevenueRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryLatestInfererScoreRequest.inferer": - value := x.Inferer - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestInfererScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicFeeRevenueRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestInfererScoreRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicFeeRevenueRequest does not contain field %s", descriptor.FullName())) } } @@ -47739,17 +47304,15 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestInfererScoreRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTopicFeeRevenueRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryLatestInfererScoreRequest.topic_id": + case "emissions.v2.QueryTopicFeeRevenueRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryLatestInfererScoreRequest.inferer": - x.Inferer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestInfererScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicFeeRevenueRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestInfererScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicFeeRevenueRequest does not contain field %s", fd.FullName())) } } @@ -47763,44 +47326,40 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestInfererScoreRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicFeeRevenueRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestInfererScoreRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryLatestInfererScoreRequest is not mutable")) - case "emissions.v1.QueryLatestInfererScoreRequest.inferer": - panic(fmt.Errorf("field inferer of message emissions.v1.QueryLatestInfererScoreRequest is not mutable")) + case "emissions.v2.QueryTopicFeeRevenueRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryTopicFeeRevenueRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestInfererScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicFeeRevenueRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestInfererScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicFeeRevenueRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryLatestInfererScoreRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicFeeRevenueRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestInfererScoreRequest.topic_id": + case "emissions.v2.QueryTopicFeeRevenueRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryLatestInfererScoreRequest.inferer": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestInfererScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicFeeRevenueRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestInfererScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicFeeRevenueRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryLatestInfererScoreRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTopicFeeRevenueRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryLatestInfererScoreRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTopicFeeRevenueRequest", d.FullName())) } panic("unreachable") } @@ -47808,7 +47367,7 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) WhichOneof(d protoreflec // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryLatestInfererScoreRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTopicFeeRevenueRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -47819,7 +47378,7 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestInfererScoreRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTopicFeeRevenueRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -47831,7 +47390,7 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) SetUnknown(fields protor // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryLatestInfererScoreRequest) IsValid() bool { +func (x *fastReflection_QueryTopicFeeRevenueRequest) IsValid() bool { return x != nil } @@ -47841,9 +47400,9 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryLatestInfererScoreRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTopicFeeRevenueRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryLatestInfererScoreRequest) + x := input.Message.Interface().(*QueryTopicFeeRevenueRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -47858,10 +47417,6 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) ProtoMethods() *protoifa if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Inferer) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -47872,7 +47427,7 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestInfererScoreRequest) + x := input.Message.Interface().(*QueryTopicFeeRevenueRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -47891,13 +47446,6 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) ProtoMethods() *protoifa i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Inferer) > 0 { - i -= len(x.Inferer) - copy(dAtA[i:], x.Inferer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Inferer))) - i-- - dAtA[i] = 0x12 - } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) i-- @@ -47914,7 +47462,7 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestInfererScoreRequest) + x := input.Message.Interface().(*QueryTopicFeeRevenueRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -47946,10 +47494,10 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestInfererScoreRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicFeeRevenueRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestInfererScoreRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicFeeRevenueRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -47971,38 +47519,6 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) ProtoMethods() *protoifa break } } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Inferer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -48039,26 +47555,26 @@ func (x *fastReflection_QueryLatestInfererScoreRequest) ProtoMethods() *protoifa } var ( - md_QueryLatestInfererScoreResponse protoreflect.MessageDescriptor - fd_QueryLatestInfererScoreResponse_score protoreflect.FieldDescriptor + md_QueryTopicFeeRevenueResponse protoreflect.MessageDescriptor + fd_QueryTopicFeeRevenueResponse_fee_revenue protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryLatestInfererScoreResponse = File_emissions_v1_query_proto.Messages().ByName("QueryLatestInfererScoreResponse") - fd_QueryLatestInfererScoreResponse_score = md_QueryLatestInfererScoreResponse.Fields().ByName("score") + file_emissions_v2_query_proto_init() + md_QueryTopicFeeRevenueResponse = File_emissions_v2_query_proto.Messages().ByName("QueryTopicFeeRevenueResponse") + fd_QueryTopicFeeRevenueResponse_fee_revenue = md_QueryTopicFeeRevenueResponse.Fields().ByName("fee_revenue") } -var _ protoreflect.Message = (*fastReflection_QueryLatestInfererScoreResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTopicFeeRevenueResponse)(nil) -type fastReflection_QueryLatestInfererScoreResponse QueryLatestInfererScoreResponse +type fastReflection_QueryTopicFeeRevenueResponse QueryTopicFeeRevenueResponse -func (x *QueryLatestInfererScoreResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryLatestInfererScoreResponse)(x) +func (x *QueryTopicFeeRevenueResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTopicFeeRevenueResponse)(x) } -func (x *QueryLatestInfererScoreResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[107] +func (x *QueryTopicFeeRevenueResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[105] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -48069,43 +47585,43 @@ func (x *QueryLatestInfererScoreResponse) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_QueryLatestInfererScoreResponse_messageType fastReflection_QueryLatestInfererScoreResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryLatestInfererScoreResponse_messageType{} +var _fastReflection_QueryTopicFeeRevenueResponse_messageType fastReflection_QueryTopicFeeRevenueResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTopicFeeRevenueResponse_messageType{} -type fastReflection_QueryLatestInfererScoreResponse_messageType struct{} +type fastReflection_QueryTopicFeeRevenueResponse_messageType struct{} -func (x fastReflection_QueryLatestInfererScoreResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryLatestInfererScoreResponse)(nil) +func (x fastReflection_QueryTopicFeeRevenueResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTopicFeeRevenueResponse)(nil) } -func (x fastReflection_QueryLatestInfererScoreResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryLatestInfererScoreResponse) +func (x fastReflection_QueryTopicFeeRevenueResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTopicFeeRevenueResponse) } -func (x fastReflection_QueryLatestInfererScoreResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestInfererScoreResponse +func (x fastReflection_QueryTopicFeeRevenueResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicFeeRevenueResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryLatestInfererScoreResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestInfererScoreResponse +func (x *fastReflection_QueryTopicFeeRevenueResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTopicFeeRevenueResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryLatestInfererScoreResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryLatestInfererScoreResponse_messageType +func (x *fastReflection_QueryTopicFeeRevenueResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTopicFeeRevenueResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryLatestInfererScoreResponse) New() protoreflect.Message { - return new(fastReflection_QueryLatestInfererScoreResponse) +func (x *fastReflection_QueryTopicFeeRevenueResponse) New() protoreflect.Message { + return new(fastReflection_QueryTopicFeeRevenueResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryLatestInfererScoreResponse) Interface() protoreflect.ProtoMessage { - return (*QueryLatestInfererScoreResponse)(x) +func (x *fastReflection_QueryTopicFeeRevenueResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTopicFeeRevenueResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -48113,10 +47629,10 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryLatestInfererScoreResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Score != nil { - value := protoreflect.ValueOfMessage(x.Score.ProtoReflect()) - if !f(fd_QueryLatestInfererScoreResponse_score, value) { +func (x *fastReflection_QueryTopicFeeRevenueResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.FeeRevenue != "" { + value := protoreflect.ValueOfString(x.FeeRevenue) + if !f(fd_QueryTopicFeeRevenueResponse_fee_revenue, value) { return } } @@ -48133,15 +47649,15 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) Range(f func(protorefle // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryLatestInfererScoreResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTopicFeeRevenueResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryLatestInfererScoreResponse.score": - return x.Score != nil + case "emissions.v2.QueryTopicFeeRevenueResponse.fee_revenue": + return x.FeeRevenue != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestInfererScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicFeeRevenueResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestInfererScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicFeeRevenueResponse does not contain field %s", fd.FullName())) } } @@ -48151,15 +47667,15 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestInfererScoreResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTopicFeeRevenueResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryLatestInfererScoreResponse.score": - x.Score = nil + case "emissions.v2.QueryTopicFeeRevenueResponse.fee_revenue": + x.FeeRevenue = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestInfererScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicFeeRevenueResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestInfererScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicFeeRevenueResponse does not contain field %s", fd.FullName())) } } @@ -48169,16 +47685,16 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) Clear(fd protoreflect.F // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryLatestInfererScoreResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicFeeRevenueResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryLatestInfererScoreResponse.score": - value := x.Score - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryTopicFeeRevenueResponse.fee_revenue": + value := x.FeeRevenue + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestInfererScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicFeeRevenueResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestInfererScoreResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicFeeRevenueResponse does not contain field %s", descriptor.FullName())) } } @@ -48192,15 +47708,15 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestInfererScoreResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTopicFeeRevenueResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryLatestInfererScoreResponse.score": - x.Score = value.Message().Interface().(*Score) + case "emissions.v2.QueryTopicFeeRevenueResponse.fee_revenue": + x.FeeRevenue = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestInfererScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicFeeRevenueResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestInfererScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicFeeRevenueResponse does not contain field %s", fd.FullName())) } } @@ -48214,44 +47730,40 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestInfererScoreResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicFeeRevenueResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestInfererScoreResponse.score": - if x.Score == nil { - x.Score = new(Score) - } - return protoreflect.ValueOfMessage(x.Score.ProtoReflect()) + case "emissions.v2.QueryTopicFeeRevenueResponse.fee_revenue": + panic(fmt.Errorf("field fee_revenue of message emissions.v2.QueryTopicFeeRevenueResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestInfererScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicFeeRevenueResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestInfererScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicFeeRevenueResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryLatestInfererScoreResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTopicFeeRevenueResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestInfererScoreResponse.score": - m := new(Score) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryTopicFeeRevenueResponse.fee_revenue": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestInfererScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTopicFeeRevenueResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestInfererScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTopicFeeRevenueResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryLatestInfererScoreResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTopicFeeRevenueResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryLatestInfererScoreResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTopicFeeRevenueResponse", d.FullName())) } panic("unreachable") } @@ -48259,7 +47771,7 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) WhichOneof(d protorefle // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryLatestInfererScoreResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTopicFeeRevenueResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -48270,7 +47782,7 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestInfererScoreResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTopicFeeRevenueResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -48282,7 +47794,7 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) SetUnknown(fields proto // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryLatestInfererScoreResponse) IsValid() bool { +func (x *fastReflection_QueryTopicFeeRevenueResponse) IsValid() bool { return x != nil } @@ -48292,9 +47804,9 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryLatestInfererScoreResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTopicFeeRevenueResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryLatestInfererScoreResponse) + x := input.Message.Interface().(*QueryTopicFeeRevenueResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -48306,8 +47818,8 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) ProtoMethods() *protoif var n int var l int _ = l - if x.Score != nil { - l = options.Size(x.Score) + l = len(x.FeeRevenue) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -48320,7 +47832,7 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestInfererScoreResponse) + x := input.Message.Interface().(*QueryTopicFeeRevenueResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -48330,26 +47842,19 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) ProtoMethods() *protoif options := runtime.MarshalInputToOptions(input) _ = options size := options.Size(x) - dAtA := make([]byte, size) - i := len(dAtA) - _ = i - var l int - _ = l - if x.unknownFields != nil { - i -= len(x.unknownFields) - copy(dAtA[i:], x.unknownFields) - } - if x.Score != nil { - encoded, err := options.Marshal(x.Score) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.FeeRevenue) > 0 { + i -= len(x.FeeRevenue) + copy(dAtA[i:], x.FeeRevenue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.FeeRevenue))) i-- dAtA[i] = 0xa } @@ -48364,7 +47869,7 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestInfererScoreResponse) + x := input.Message.Interface().(*QueryTopicFeeRevenueResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -48396,17 +47901,17 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestInfererScoreResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicFeeRevenueResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestInfererScoreResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicFeeRevenueResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Score", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field FeeRevenue", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -48416,27 +47921,23 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) ProtoMethods() *protoif } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Score == nil { - x.Score = &Score{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Score); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.FeeRevenue = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -48474,28 +47975,24 @@ func (x *fastReflection_QueryLatestInfererScoreResponse) ProtoMethods() *protoif } var ( - md_QueryLatestForecasterScoreRequest protoreflect.MessageDescriptor - fd_QueryLatestForecasterScoreRequest_topic_id protoreflect.FieldDescriptor - fd_QueryLatestForecasterScoreRequest_forecaster protoreflect.FieldDescriptor + md_QueryRewardableTopicsRequest protoreflect.MessageDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryLatestForecasterScoreRequest = File_emissions_v1_query_proto.Messages().ByName("QueryLatestForecasterScoreRequest") - fd_QueryLatestForecasterScoreRequest_topic_id = md_QueryLatestForecasterScoreRequest.Fields().ByName("topic_id") - fd_QueryLatestForecasterScoreRequest_forecaster = md_QueryLatestForecasterScoreRequest.Fields().ByName("forecaster") + file_emissions_v2_query_proto_init() + md_QueryRewardableTopicsRequest = File_emissions_v2_query_proto.Messages().ByName("QueryRewardableTopicsRequest") } -var _ protoreflect.Message = (*fastReflection_QueryLatestForecasterScoreRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryRewardableTopicsRequest)(nil) -type fastReflection_QueryLatestForecasterScoreRequest QueryLatestForecasterScoreRequest +type fastReflection_QueryRewardableTopicsRequest QueryRewardableTopicsRequest -func (x *QueryLatestForecasterScoreRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryLatestForecasterScoreRequest)(x) +func (x *QueryRewardableTopicsRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRewardableTopicsRequest)(x) } -func (x *QueryLatestForecasterScoreRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[108] +func (x *QueryRewardableTopicsRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[106] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -48506,43 +48003,43 @@ func (x *QueryLatestForecasterScoreRequest) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryLatestForecasterScoreRequest_messageType fastReflection_QueryLatestForecasterScoreRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryLatestForecasterScoreRequest_messageType{} +var _fastReflection_QueryRewardableTopicsRequest_messageType fastReflection_QueryRewardableTopicsRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryRewardableTopicsRequest_messageType{} -type fastReflection_QueryLatestForecasterScoreRequest_messageType struct{} +type fastReflection_QueryRewardableTopicsRequest_messageType struct{} -func (x fastReflection_QueryLatestForecasterScoreRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryLatestForecasterScoreRequest)(nil) +func (x fastReflection_QueryRewardableTopicsRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRewardableTopicsRequest)(nil) } -func (x fastReflection_QueryLatestForecasterScoreRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryLatestForecasterScoreRequest) +func (x fastReflection_QueryRewardableTopicsRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRewardableTopicsRequest) } -func (x fastReflection_QueryLatestForecasterScoreRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestForecasterScoreRequest +func (x fastReflection_QueryRewardableTopicsRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRewardableTopicsRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryLatestForecasterScoreRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestForecasterScoreRequest +func (x *fastReflection_QueryRewardableTopicsRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRewardableTopicsRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryLatestForecasterScoreRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryLatestForecasterScoreRequest_messageType +func (x *fastReflection_QueryRewardableTopicsRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryRewardableTopicsRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryLatestForecasterScoreRequest) New() protoreflect.Message { - return new(fastReflection_QueryLatestForecasterScoreRequest) +func (x *fastReflection_QueryRewardableTopicsRequest) New() protoreflect.Message { + return new(fastReflection_QueryRewardableTopicsRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryLatestForecasterScoreRequest) Interface() protoreflect.ProtoMessage { - return (*QueryLatestForecasterScoreRequest)(x) +func (x *fastReflection_QueryRewardableTopicsRequest) Interface() protoreflect.ProtoMessage { + return (*QueryRewardableTopicsRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -48550,19 +48047,7 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryLatestForecasterScoreRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryLatestForecasterScoreRequest_topic_id, value) { - return - } - } - if x.Forecaster != "" { - value := protoreflect.ValueOfString(x.Forecaster) - if !f(fd_QueryLatestForecasterScoreRequest_forecaster, value) { - return - } - } +func (x *fastReflection_QueryRewardableTopicsRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -48576,17 +48061,13 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryLatestForecasterScoreRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryRewardableTopicsRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryLatestForecasterScoreRequest.topic_id": - return x.TopicId != uint64(0) - case "emissions.v1.QueryLatestForecasterScoreRequest.forecaster": - return x.Forecaster != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestForecasterScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryRewardableTopicsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestForecasterScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryRewardableTopicsRequest does not contain field %s", fd.FullName())) } } @@ -48596,17 +48077,13 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestForecasterScoreRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryRewardableTopicsRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryLatestForecasterScoreRequest.topic_id": - x.TopicId = uint64(0) - case "emissions.v1.QueryLatestForecasterScoreRequest.forecaster": - x.Forecaster = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestForecasterScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryRewardableTopicsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestForecasterScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryRewardableTopicsRequest does not contain field %s", fd.FullName())) } } @@ -48616,19 +48093,13 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryLatestForecasterScoreRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRewardableTopicsRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryLatestForecasterScoreRequest.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryLatestForecasterScoreRequest.forecaster": - value := x.Forecaster - return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestForecasterScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryRewardableTopicsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestForecasterScoreRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryRewardableTopicsRequest does not contain field %s", descriptor.FullName())) } } @@ -48642,17 +48113,13 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestForecasterScoreRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryRewardableTopicsRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryLatestForecasterScoreRequest.topic_id": - x.TopicId = value.Uint() - case "emissions.v1.QueryLatestForecasterScoreRequest.forecaster": - x.Forecaster = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestForecasterScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryRewardableTopicsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestForecasterScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryRewardableTopicsRequest does not contain field %s", fd.FullName())) } } @@ -48666,44 +48133,36 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestForecasterScoreRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRewardableTopicsRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestForecasterScoreRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryLatestForecasterScoreRequest is not mutable")) - case "emissions.v1.QueryLatestForecasterScoreRequest.forecaster": - panic(fmt.Errorf("field forecaster of message emissions.v1.QueryLatestForecasterScoreRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestForecasterScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryRewardableTopicsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestForecasterScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryRewardableTopicsRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryLatestForecasterScoreRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRewardableTopicsRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestForecasterScoreRequest.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryLatestForecasterScoreRequest.forecaster": - return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestForecasterScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryRewardableTopicsRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestForecasterScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryRewardableTopicsRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryLatestForecasterScoreRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryRewardableTopicsRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryLatestForecasterScoreRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryRewardableTopicsRequest", d.FullName())) } panic("unreachable") } @@ -48711,7 +48170,7 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryLatestForecasterScoreRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryRewardableTopicsRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -48722,7 +48181,7 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestForecasterScoreRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryRewardableTopicsRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -48734,7 +48193,7 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryLatestForecasterScoreRequest) IsValid() bool { +func (x *fastReflection_QueryRewardableTopicsRequest) IsValid() bool { return x != nil } @@ -48744,9 +48203,9 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryLatestForecasterScoreRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryRewardableTopicsRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryLatestForecasterScoreRequest) + x := input.Message.Interface().(*QueryRewardableTopicsRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -48758,13 +48217,6 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) ProtoMethods() *proto var n int var l int _ = l - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) - } - l = len(x.Forecaster) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -48775,7 +48227,7 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestForecasterScoreRequest) + x := input.Message.Interface().(*QueryRewardableTopicsRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -48794,18 +48246,6 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) ProtoMethods() *proto i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Forecaster) > 0 { - i -= len(x.Forecaster) - copy(dAtA[i:], x.Forecaster) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Forecaster))) - i-- - dAtA[i] = 0x12 - } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) - i-- - dAtA[i] = 0x8 - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -48817,7 +48257,7 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestForecasterScoreRequest) + x := input.Message.Interface().(*QueryRewardableTopicsRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -48849,63 +48289,12 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestForecasterScoreRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardableTopicsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestForecasterScoreRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardableTopicsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - x.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Forecaster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -48941,27 +48330,73 @@ func (x *fastReflection_QueryLatestForecasterScoreRequest) ProtoMethods() *proto } } +var _ protoreflect.List = (*_QueryRewardableTopicsResponse_1_list)(nil) + +type _QueryRewardableTopicsResponse_1_list struct { + list *[]uint64 +} + +func (x *_QueryRewardableTopicsResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryRewardableTopicsResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfUint64((*x.list)[i]) +} + +func (x *_QueryRewardableTopicsResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_QueryRewardableTopicsResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryRewardableTopicsResponse_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message QueryRewardableTopicsResponse at list field RewardableTopicIds as it is not of Message kind")) +} + +func (x *_QueryRewardableTopicsResponse_1_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_QueryRewardableTopicsResponse_1_list) NewElement() protoreflect.Value { + v := uint64(0) + return protoreflect.ValueOfUint64(v) +} + +func (x *_QueryRewardableTopicsResponse_1_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryLatestForecasterScoreResponse protoreflect.MessageDescriptor - fd_QueryLatestForecasterScoreResponse_score protoreflect.FieldDescriptor + md_QueryRewardableTopicsResponse protoreflect.MessageDescriptor + fd_QueryRewardableTopicsResponse_rewardable_topic_ids protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryLatestForecasterScoreResponse = File_emissions_v1_query_proto.Messages().ByName("QueryLatestForecasterScoreResponse") - fd_QueryLatestForecasterScoreResponse_score = md_QueryLatestForecasterScoreResponse.Fields().ByName("score") + file_emissions_v2_query_proto_init() + md_QueryRewardableTopicsResponse = File_emissions_v2_query_proto.Messages().ByName("QueryRewardableTopicsResponse") + fd_QueryRewardableTopicsResponse_rewardable_topic_ids = md_QueryRewardableTopicsResponse.Fields().ByName("rewardable_topic_ids") } -var _ protoreflect.Message = (*fastReflection_QueryLatestForecasterScoreResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryRewardableTopicsResponse)(nil) -type fastReflection_QueryLatestForecasterScoreResponse QueryLatestForecasterScoreResponse +type fastReflection_QueryRewardableTopicsResponse QueryRewardableTopicsResponse -func (x *QueryLatestForecasterScoreResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryLatestForecasterScoreResponse)(x) +func (x *QueryRewardableTopicsResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryRewardableTopicsResponse)(x) } -func (x *QueryLatestForecasterScoreResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[109] +func (x *QueryRewardableTopicsResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[107] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -48972,43 +48407,43 @@ func (x *QueryLatestForecasterScoreResponse) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryLatestForecasterScoreResponse_messageType fastReflection_QueryLatestForecasterScoreResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryLatestForecasterScoreResponse_messageType{} +var _fastReflection_QueryRewardableTopicsResponse_messageType fastReflection_QueryRewardableTopicsResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryRewardableTopicsResponse_messageType{} -type fastReflection_QueryLatestForecasterScoreResponse_messageType struct{} +type fastReflection_QueryRewardableTopicsResponse_messageType struct{} -func (x fastReflection_QueryLatestForecasterScoreResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryLatestForecasterScoreResponse)(nil) +func (x fastReflection_QueryRewardableTopicsResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryRewardableTopicsResponse)(nil) } -func (x fastReflection_QueryLatestForecasterScoreResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryLatestForecasterScoreResponse) +func (x fastReflection_QueryRewardableTopicsResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryRewardableTopicsResponse) } -func (x fastReflection_QueryLatestForecasterScoreResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestForecasterScoreResponse +func (x fastReflection_QueryRewardableTopicsResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRewardableTopicsResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryLatestForecasterScoreResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestForecasterScoreResponse +func (x *fastReflection_QueryRewardableTopicsResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryRewardableTopicsResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryLatestForecasterScoreResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryLatestForecasterScoreResponse_messageType +func (x *fastReflection_QueryRewardableTopicsResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryRewardableTopicsResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryLatestForecasterScoreResponse) New() protoreflect.Message { - return new(fastReflection_QueryLatestForecasterScoreResponse) +func (x *fastReflection_QueryRewardableTopicsResponse) New() protoreflect.Message { + return new(fastReflection_QueryRewardableTopicsResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryLatestForecasterScoreResponse) Interface() protoreflect.ProtoMessage { - return (*QueryLatestForecasterScoreResponse)(x) +func (x *fastReflection_QueryRewardableTopicsResponse) Interface() protoreflect.ProtoMessage { + return (*QueryRewardableTopicsResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -49016,10 +48451,10 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryLatestForecasterScoreResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Score != nil { - value := protoreflect.ValueOfMessage(x.Score.ProtoReflect()) - if !f(fd_QueryLatestForecasterScoreResponse_score, value) { +func (x *fastReflection_QueryRewardableTopicsResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.RewardableTopicIds) != 0 { + value := protoreflect.ValueOfList(&_QueryRewardableTopicsResponse_1_list{list: &x.RewardableTopicIds}) + if !f(fd_QueryRewardableTopicsResponse_rewardable_topic_ids, value) { return } } @@ -49036,15 +48471,15 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryLatestForecasterScoreResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryRewardableTopicsResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryLatestForecasterScoreResponse.score": - return x.Score != nil + case "emissions.v2.QueryRewardableTopicsResponse.rewardable_topic_ids": + return len(x.RewardableTopicIds) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestForecasterScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryRewardableTopicsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestForecasterScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryRewardableTopicsResponse does not contain field %s", fd.FullName())) } } @@ -49054,15 +48489,15 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestForecasterScoreResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryRewardableTopicsResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryLatestForecasterScoreResponse.score": - x.Score = nil + case "emissions.v2.QueryRewardableTopicsResponse.rewardable_topic_ids": + x.RewardableTopicIds = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestForecasterScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryRewardableTopicsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestForecasterScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryRewardableTopicsResponse does not contain field %s", fd.FullName())) } } @@ -49072,16 +48507,19 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryLatestForecasterScoreResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRewardableTopicsResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryLatestForecasterScoreResponse.score": - value := x.Score - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryRewardableTopicsResponse.rewardable_topic_ids": + if len(x.RewardableTopicIds) == 0 { + return protoreflect.ValueOfList(&_QueryRewardableTopicsResponse_1_list{}) + } + listValue := &_QueryRewardableTopicsResponse_1_list{list: &x.RewardableTopicIds} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestForecasterScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryRewardableTopicsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestForecasterScoreResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryRewardableTopicsResponse does not contain field %s", descriptor.FullName())) } } @@ -49095,15 +48533,17 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestForecasterScoreResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryRewardableTopicsResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryLatestForecasterScoreResponse.score": - x.Score = value.Message().Interface().(*Score) + case "emissions.v2.QueryRewardableTopicsResponse.rewardable_topic_ids": + lv := value.List() + clv := lv.(*_QueryRewardableTopicsResponse_1_list) + x.RewardableTopicIds = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestForecasterScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryRewardableTopicsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestForecasterScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryRewardableTopicsResponse does not contain field %s", fd.FullName())) } } @@ -49117,44 +48557,45 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestForecasterScoreResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRewardableTopicsResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestForecasterScoreResponse.score": - if x.Score == nil { - x.Score = new(Score) + case "emissions.v2.QueryRewardableTopicsResponse.rewardable_topic_ids": + if x.RewardableTopicIds == nil { + x.RewardableTopicIds = []uint64{} } - return protoreflect.ValueOfMessage(x.Score.ProtoReflect()) + value := &_QueryRewardableTopicsResponse_1_list{list: &x.RewardableTopicIds} + return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestForecasterScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryRewardableTopicsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestForecasterScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryRewardableTopicsResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryLatestForecasterScoreResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryRewardableTopicsResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestForecasterScoreResponse.score": - m := new(Score) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryRewardableTopicsResponse.rewardable_topic_ids": + list := []uint64{} + return protoreflect.ValueOfList(&_QueryRewardableTopicsResponse_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestForecasterScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryRewardableTopicsResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestForecasterScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryRewardableTopicsResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryLatestForecasterScoreResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryRewardableTopicsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryLatestForecasterScoreResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryRewardableTopicsResponse", d.FullName())) } panic("unreachable") } @@ -49162,7 +48603,7 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryLatestForecasterScoreResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryRewardableTopicsResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -49173,7 +48614,7 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestForecasterScoreResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryRewardableTopicsResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -49185,7 +48626,7 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryLatestForecasterScoreResponse) IsValid() bool { +func (x *fastReflection_QueryRewardableTopicsResponse) IsValid() bool { return x != nil } @@ -49195,9 +48636,9 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryLatestForecasterScoreResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryRewardableTopicsResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryLatestForecasterScoreResponse) + x := input.Message.Interface().(*QueryRewardableTopicsResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -49209,9 +48650,12 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) ProtoMethods() *prot var n int var l int _ = l - if x.Score != nil { - l = options.Size(x.Score) - n += 1 + l + runtime.Sov(uint64(l)) + if len(x.RewardableTopicIds) > 0 { + l = 0 + for _, e := range x.RewardableTopicIds { + l += runtime.Sov(uint64(e)) + } + n += 1 + runtime.Sov(uint64(l)) + l } if x.unknownFields != nil { n += len(x.unknownFields) @@ -49223,7 +48667,7 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestForecasterScoreResponse) + x := input.Message.Interface().(*QueryRewardableTopicsResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -49242,17 +48686,23 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) ProtoMethods() *prot i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Score != nil { - encoded, err := options.Marshal(x.Score) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + if len(x.RewardableTopicIds) > 0 { + var pksize2 int + for _, num := range x.RewardableTopicIds { + pksize2 += runtime.Sov(uint64(num)) } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i -= pksize2 + j1 := i + for _, num := range x.RewardableTopicIds { + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) i-- dAtA[i] = 0xa } @@ -49267,7 +48717,7 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestForecasterScoreResponse) + x := input.Message.Interface().(*QueryRewardableTopicsResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -49299,48 +48749,88 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestForecasterScoreResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardableTopicsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestForecasterScoreResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryRewardableTopicsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Score", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - if iNdEx >= l { + x.RewardableTopicIds = append(x.RewardableTopicIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } } + elementCount = count + if elementCount != 0 && len(x.RewardableTopicIds) == 0 { + x.RewardableTopicIds = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.RewardableTopicIds = append(x.RewardableTopicIds, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RewardableTopicIds", wireType) } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if x.Score == nil { - x.Score = &Score{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Score); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -49377,28 +48867,28 @@ func (x *fastReflection_QueryLatestForecasterScoreResponse) ProtoMethods() *prot } var ( - md_QueryLatestReputerScoreRequest protoreflect.MessageDescriptor - fd_QueryLatestReputerScoreRequest_topic_id protoreflect.FieldDescriptor - fd_QueryLatestReputerScoreRequest_reputer protoreflect.FieldDescriptor + md_QueryLatestInfererScoreRequest protoreflect.MessageDescriptor + fd_QueryLatestInfererScoreRequest_topic_id protoreflect.FieldDescriptor + fd_QueryLatestInfererScoreRequest_inferer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryLatestReputerScoreRequest = File_emissions_v1_query_proto.Messages().ByName("QueryLatestReputerScoreRequest") - fd_QueryLatestReputerScoreRequest_topic_id = md_QueryLatestReputerScoreRequest.Fields().ByName("topic_id") - fd_QueryLatestReputerScoreRequest_reputer = md_QueryLatestReputerScoreRequest.Fields().ByName("reputer") + file_emissions_v2_query_proto_init() + md_QueryLatestInfererScoreRequest = File_emissions_v2_query_proto.Messages().ByName("QueryLatestInfererScoreRequest") + fd_QueryLatestInfererScoreRequest_topic_id = md_QueryLatestInfererScoreRequest.Fields().ByName("topic_id") + fd_QueryLatestInfererScoreRequest_inferer = md_QueryLatestInfererScoreRequest.Fields().ByName("inferer") } -var _ protoreflect.Message = (*fastReflection_QueryLatestReputerScoreRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryLatestInfererScoreRequest)(nil) -type fastReflection_QueryLatestReputerScoreRequest QueryLatestReputerScoreRequest +type fastReflection_QueryLatestInfererScoreRequest QueryLatestInfererScoreRequest -func (x *QueryLatestReputerScoreRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryLatestReputerScoreRequest)(x) +func (x *QueryLatestInfererScoreRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLatestInfererScoreRequest)(x) } -func (x *QueryLatestReputerScoreRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[110] +func (x *QueryLatestInfererScoreRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[108] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -49409,43 +48899,43 @@ func (x *QueryLatestReputerScoreRequest) slowProtoReflect() protoreflect.Message return mi.MessageOf(x) } -var _fastReflection_QueryLatestReputerScoreRequest_messageType fastReflection_QueryLatestReputerScoreRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryLatestReputerScoreRequest_messageType{} +var _fastReflection_QueryLatestInfererScoreRequest_messageType fastReflection_QueryLatestInfererScoreRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryLatestInfererScoreRequest_messageType{} -type fastReflection_QueryLatestReputerScoreRequest_messageType struct{} +type fastReflection_QueryLatestInfererScoreRequest_messageType struct{} -func (x fastReflection_QueryLatestReputerScoreRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryLatestReputerScoreRequest)(nil) +func (x fastReflection_QueryLatestInfererScoreRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLatestInfererScoreRequest)(nil) } -func (x fastReflection_QueryLatestReputerScoreRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryLatestReputerScoreRequest) +func (x fastReflection_QueryLatestInfererScoreRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLatestInfererScoreRequest) } -func (x fastReflection_QueryLatestReputerScoreRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestReputerScoreRequest +func (x fastReflection_QueryLatestInfererScoreRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestInfererScoreRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryLatestReputerScoreRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestReputerScoreRequest +func (x *fastReflection_QueryLatestInfererScoreRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestInfererScoreRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryLatestReputerScoreRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryLatestReputerScoreRequest_messageType +func (x *fastReflection_QueryLatestInfererScoreRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryLatestInfererScoreRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryLatestReputerScoreRequest) New() protoreflect.Message { - return new(fastReflection_QueryLatestReputerScoreRequest) +func (x *fastReflection_QueryLatestInfererScoreRequest) New() protoreflect.Message { + return new(fastReflection_QueryLatestInfererScoreRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryLatestReputerScoreRequest) Interface() protoreflect.ProtoMessage { - return (*QueryLatestReputerScoreRequest)(x) +func (x *fastReflection_QueryLatestInfererScoreRequest) Interface() protoreflect.ProtoMessage { + return (*QueryLatestInfererScoreRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -49453,16 +48943,16 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) Interface() protoreflect // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryLatestReputerScoreRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryLatestInfererScoreRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryLatestReputerScoreRequest_topic_id, value) { + if !f(fd_QueryLatestInfererScoreRequest_topic_id, value) { return } } - if x.Reputer != "" { - value := protoreflect.ValueOfString(x.Reputer) - if !f(fd_QueryLatestReputerScoreRequest_reputer, value) { + if x.Inferer != "" { + value := protoreflect.ValueOfString(x.Inferer) + if !f(fd_QueryLatestInfererScoreRequest_inferer, value) { return } } @@ -49479,17 +48969,17 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) Range(f func(protoreflec // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryLatestReputerScoreRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryLatestInfererScoreRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryLatestReputerScoreRequest.topic_id": + case "emissions.v2.QueryLatestInfererScoreRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryLatestReputerScoreRequest.reputer": - return x.Reputer != "" + case "emissions.v2.QueryLatestInfererScoreRequest.inferer": + return x.Inferer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestReputerScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestInfererScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestReputerScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestInfererScoreRequest does not contain field %s", fd.FullName())) } } @@ -49499,17 +48989,17 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) Has(fd protoreflect.Fiel // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestReputerScoreRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryLatestInfererScoreRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryLatestReputerScoreRequest.topic_id": + case "emissions.v2.QueryLatestInfererScoreRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryLatestReputerScoreRequest.reputer": - x.Reputer = "" + case "emissions.v2.QueryLatestInfererScoreRequest.inferer": + x.Inferer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestReputerScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestInfererScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestReputerScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestInfererScoreRequest does not contain field %s", fd.FullName())) } } @@ -49519,19 +49009,19 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) Clear(fd protoreflect.Fi // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryLatestReputerScoreRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestInfererScoreRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryLatestReputerScoreRequest.topic_id": + case "emissions.v2.QueryLatestInfererScoreRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryLatestReputerScoreRequest.reputer": - value := x.Reputer + case "emissions.v2.QueryLatestInfererScoreRequest.inferer": + value := x.Inferer return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestReputerScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestInfererScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestReputerScoreRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestInfererScoreRequest does not contain field %s", descriptor.FullName())) } } @@ -49545,17 +49035,17 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) Get(descriptor protorefl // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestReputerScoreRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryLatestInfererScoreRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryLatestReputerScoreRequest.topic_id": + case "emissions.v2.QueryLatestInfererScoreRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryLatestReputerScoreRequest.reputer": - x.Reputer = value.Interface().(string) + case "emissions.v2.QueryLatestInfererScoreRequest.inferer": + x.Inferer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestReputerScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestInfererScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestReputerScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestInfererScoreRequest does not contain field %s", fd.FullName())) } } @@ -49569,44 +49059,44 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) Set(fd protoreflect.Fiel // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestReputerScoreRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestInfererScoreRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestReputerScoreRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryLatestReputerScoreRequest is not mutable")) - case "emissions.v1.QueryLatestReputerScoreRequest.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.QueryLatestReputerScoreRequest is not mutable")) + case "emissions.v2.QueryLatestInfererScoreRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryLatestInfererScoreRequest is not mutable")) + case "emissions.v2.QueryLatestInfererScoreRequest.inferer": + panic(fmt.Errorf("field inferer of message emissions.v2.QueryLatestInfererScoreRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestReputerScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestInfererScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestReputerScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestInfererScoreRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryLatestReputerScoreRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestInfererScoreRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestReputerScoreRequest.topic_id": + case "emissions.v2.QueryLatestInfererScoreRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryLatestReputerScoreRequest.reputer": + case "emissions.v2.QueryLatestInfererScoreRequest.inferer": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestReputerScoreRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestInfererScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestReputerScoreRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestInfererScoreRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryLatestReputerScoreRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryLatestInfererScoreRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryLatestReputerScoreRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryLatestInfererScoreRequest", d.FullName())) } panic("unreachable") } @@ -49614,7 +49104,7 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) WhichOneof(d protoreflec // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryLatestReputerScoreRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryLatestInfererScoreRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -49625,7 +49115,7 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) GetUnknown() protoreflec // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestReputerScoreRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryLatestInfererScoreRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -49637,7 +49127,7 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) SetUnknown(fields protor // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryLatestReputerScoreRequest) IsValid() bool { +func (x *fastReflection_QueryLatestInfererScoreRequest) IsValid() bool { return x != nil } @@ -49647,9 +49137,9 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryLatestReputerScoreRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryLatestInfererScoreRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryLatestReputerScoreRequest) + x := input.Message.Interface().(*QueryLatestInfererScoreRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -49664,7 +49154,7 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) ProtoMethods() *protoifa if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Reputer) + l = len(x.Inferer) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -49678,7 +49168,7 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) ProtoMethods() *protoifa } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestReputerScoreRequest) + x := input.Message.Interface().(*QueryLatestInfererScoreRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -49697,10 +49187,10 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) ProtoMethods() *protoifa i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Reputer) > 0 { - i -= len(x.Reputer) - copy(dAtA[i:], x.Reputer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) + if len(x.Inferer) > 0 { + i -= len(x.Inferer) + copy(dAtA[i:], x.Inferer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Inferer))) i-- dAtA[i] = 0x12 } @@ -49720,7 +49210,7 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) ProtoMethods() *protoifa }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestReputerScoreRequest) + x := input.Message.Interface().(*QueryLatestInfererScoreRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -49752,10 +49242,10 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) ProtoMethods() *protoifa fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestReputerScoreRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestInfererScoreRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestReputerScoreRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestInfererScoreRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -49779,7 +49269,7 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) ProtoMethods() *protoifa } case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -49807,7 +49297,7 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) ProtoMethods() *protoifa if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Reputer = string(dAtA[iNdEx:postIndex]) + x.Inferer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -49845,26 +49335,26 @@ func (x *fastReflection_QueryLatestReputerScoreRequest) ProtoMethods() *protoifa } var ( - md_QueryLatestReputerScoreResponse protoreflect.MessageDescriptor - fd_QueryLatestReputerScoreResponse_score protoreflect.FieldDescriptor + md_QueryLatestInfererScoreResponse protoreflect.MessageDescriptor + fd_QueryLatestInfererScoreResponse_score protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryLatestReputerScoreResponse = File_emissions_v1_query_proto.Messages().ByName("QueryLatestReputerScoreResponse") - fd_QueryLatestReputerScoreResponse_score = md_QueryLatestReputerScoreResponse.Fields().ByName("score") + file_emissions_v2_query_proto_init() + md_QueryLatestInfererScoreResponse = File_emissions_v2_query_proto.Messages().ByName("QueryLatestInfererScoreResponse") + fd_QueryLatestInfererScoreResponse_score = md_QueryLatestInfererScoreResponse.Fields().ByName("score") } -var _ protoreflect.Message = (*fastReflection_QueryLatestReputerScoreResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryLatestInfererScoreResponse)(nil) -type fastReflection_QueryLatestReputerScoreResponse QueryLatestReputerScoreResponse +type fastReflection_QueryLatestInfererScoreResponse QueryLatestInfererScoreResponse -func (x *QueryLatestReputerScoreResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryLatestReputerScoreResponse)(x) +func (x *QueryLatestInfererScoreResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLatestInfererScoreResponse)(x) } -func (x *QueryLatestReputerScoreResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[111] +func (x *QueryLatestInfererScoreResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[109] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -49875,43 +49365,43 @@ func (x *QueryLatestReputerScoreResponse) slowProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -var _fastReflection_QueryLatestReputerScoreResponse_messageType fastReflection_QueryLatestReputerScoreResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryLatestReputerScoreResponse_messageType{} +var _fastReflection_QueryLatestInfererScoreResponse_messageType fastReflection_QueryLatestInfererScoreResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryLatestInfererScoreResponse_messageType{} -type fastReflection_QueryLatestReputerScoreResponse_messageType struct{} +type fastReflection_QueryLatestInfererScoreResponse_messageType struct{} -func (x fastReflection_QueryLatestReputerScoreResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryLatestReputerScoreResponse)(nil) +func (x fastReflection_QueryLatestInfererScoreResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLatestInfererScoreResponse)(nil) } -func (x fastReflection_QueryLatestReputerScoreResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryLatestReputerScoreResponse) +func (x fastReflection_QueryLatestInfererScoreResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLatestInfererScoreResponse) } -func (x fastReflection_QueryLatestReputerScoreResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestReputerScoreResponse +func (x fastReflection_QueryLatestInfererScoreResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestInfererScoreResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryLatestReputerScoreResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryLatestReputerScoreResponse +func (x *fastReflection_QueryLatestInfererScoreResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestInfererScoreResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryLatestReputerScoreResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryLatestReputerScoreResponse_messageType +func (x *fastReflection_QueryLatestInfererScoreResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryLatestInfererScoreResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryLatestReputerScoreResponse) New() protoreflect.Message { - return new(fastReflection_QueryLatestReputerScoreResponse) +func (x *fastReflection_QueryLatestInfererScoreResponse) New() protoreflect.Message { + return new(fastReflection_QueryLatestInfererScoreResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryLatestReputerScoreResponse) Interface() protoreflect.ProtoMessage { - return (*QueryLatestReputerScoreResponse)(x) +func (x *fastReflection_QueryLatestInfererScoreResponse) Interface() protoreflect.ProtoMessage { + return (*QueryLatestInfererScoreResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -49919,10 +49409,10 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) Interface() protoreflec // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryLatestReputerScoreResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryLatestInfererScoreResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Score != nil { value := protoreflect.ValueOfMessage(x.Score.ProtoReflect()) - if !f(fd_QueryLatestReputerScoreResponse_score, value) { + if !f(fd_QueryLatestInfererScoreResponse_score, value) { return } } @@ -49939,15 +49429,15 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) Range(f func(protorefle // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryLatestReputerScoreResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryLatestInfererScoreResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryLatestReputerScoreResponse.score": + case "emissions.v2.QueryLatestInfererScoreResponse.score": return x.Score != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestReputerScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestInfererScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestReputerScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestInfererScoreResponse does not contain field %s", fd.FullName())) } } @@ -49957,15 +49447,15 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) Has(fd protoreflect.Fie // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestReputerScoreResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryLatestInfererScoreResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryLatestReputerScoreResponse.score": + case "emissions.v2.QueryLatestInfererScoreResponse.score": x.Score = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestReputerScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestInfererScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestReputerScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestInfererScoreResponse does not contain field %s", fd.FullName())) } } @@ -49975,16 +49465,16 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) Clear(fd protoreflect.F // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryLatestReputerScoreResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestInfererScoreResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryLatestReputerScoreResponse.score": + case "emissions.v2.QueryLatestInfererScoreResponse.score": value := x.Score return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestReputerScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestInfererScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestReputerScoreResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestInfererScoreResponse does not contain field %s", descriptor.FullName())) } } @@ -49998,15 +49488,15 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) Get(descriptor protoref // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestReputerScoreResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryLatestInfererScoreResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryLatestReputerScoreResponse.score": + case "emissions.v2.QueryLatestInfererScoreResponse.score": x.Score = value.Message().Interface().(*Score) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestReputerScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestInfererScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestReputerScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestInfererScoreResponse does not contain field %s", fd.FullName())) } } @@ -50020,44 +49510,44 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) Set(fd protoreflect.Fie // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestReputerScoreResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestInfererScoreResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestReputerScoreResponse.score": + case "emissions.v2.QueryLatestInfererScoreResponse.score": if x.Score == nil { x.Score = new(Score) } return protoreflect.ValueOfMessage(x.Score.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestReputerScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestInfererScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestReputerScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestInfererScoreResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryLatestReputerScoreResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestInfererScoreResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryLatestReputerScoreResponse.score": + case "emissions.v2.QueryLatestInfererScoreResponse.score": m := new(Score) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryLatestReputerScoreResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestInfererScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryLatestReputerScoreResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestInfererScoreResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryLatestReputerScoreResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryLatestInfererScoreResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryLatestReputerScoreResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryLatestInfererScoreResponse", d.FullName())) } panic("unreachable") } @@ -50065,7 +49555,7 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) WhichOneof(d protorefle // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryLatestReputerScoreResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryLatestInfererScoreResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -50076,7 +49566,7 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) GetUnknown() protorefle // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryLatestReputerScoreResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryLatestInfererScoreResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -50088,7 +49578,7 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) SetUnknown(fields proto // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryLatestReputerScoreResponse) IsValid() bool { +func (x *fastReflection_QueryLatestInfererScoreResponse) IsValid() bool { return x != nil } @@ -50098,9 +49588,9 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryLatestReputerScoreResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryLatestInfererScoreResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryLatestReputerScoreResponse) + x := input.Message.Interface().(*QueryLatestInfererScoreResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -50126,7 +49616,7 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) ProtoMethods() *protoif } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestReputerScoreResponse) + x := input.Message.Interface().(*QueryLatestInfererScoreResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -50170,7 +49660,7 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) ProtoMethods() *protoif }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryLatestReputerScoreResponse) + x := input.Message.Interface().(*QueryLatestInfererScoreResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -50202,10 +49692,10 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) ProtoMethods() *protoif fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestReputerScoreResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestInfererScoreResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestReputerScoreResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestInfererScoreResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -50280,28 +49770,28 @@ func (x *fastReflection_QueryLatestReputerScoreResponse) ProtoMethods() *protoif } var ( - md_QueryInferenceScoresUntilBlockRequest protoreflect.MessageDescriptor - fd_QueryInferenceScoresUntilBlockRequest_topic_id protoreflect.FieldDescriptor - fd_QueryInferenceScoresUntilBlockRequest_block_height protoreflect.FieldDescriptor + md_QueryLatestForecasterScoreRequest protoreflect.MessageDescriptor + fd_QueryLatestForecasterScoreRequest_topic_id protoreflect.FieldDescriptor + fd_QueryLatestForecasterScoreRequest_forecaster protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryInferenceScoresUntilBlockRequest = File_emissions_v1_query_proto.Messages().ByName("QueryInferenceScoresUntilBlockRequest") - fd_QueryInferenceScoresUntilBlockRequest_topic_id = md_QueryInferenceScoresUntilBlockRequest.Fields().ByName("topic_id") - fd_QueryInferenceScoresUntilBlockRequest_block_height = md_QueryInferenceScoresUntilBlockRequest.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryLatestForecasterScoreRequest = File_emissions_v2_query_proto.Messages().ByName("QueryLatestForecasterScoreRequest") + fd_QueryLatestForecasterScoreRequest_topic_id = md_QueryLatestForecasterScoreRequest.Fields().ByName("topic_id") + fd_QueryLatestForecasterScoreRequest_forecaster = md_QueryLatestForecasterScoreRequest.Fields().ByName("forecaster") } -var _ protoreflect.Message = (*fastReflection_QueryInferenceScoresUntilBlockRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryLatestForecasterScoreRequest)(nil) -type fastReflection_QueryInferenceScoresUntilBlockRequest QueryInferenceScoresUntilBlockRequest +type fastReflection_QueryLatestForecasterScoreRequest QueryLatestForecasterScoreRequest -func (x *QueryInferenceScoresUntilBlockRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryInferenceScoresUntilBlockRequest)(x) +func (x *QueryLatestForecasterScoreRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLatestForecasterScoreRequest)(x) } -func (x *QueryInferenceScoresUntilBlockRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[112] +func (x *QueryLatestForecasterScoreRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[110] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -50312,43 +49802,43 @@ func (x *QueryInferenceScoresUntilBlockRequest) slowProtoReflect() protoreflect. return mi.MessageOf(x) } -var _fastReflection_QueryInferenceScoresUntilBlockRequest_messageType fastReflection_QueryInferenceScoresUntilBlockRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryInferenceScoresUntilBlockRequest_messageType{} +var _fastReflection_QueryLatestForecasterScoreRequest_messageType fastReflection_QueryLatestForecasterScoreRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryLatestForecasterScoreRequest_messageType{} -type fastReflection_QueryInferenceScoresUntilBlockRequest_messageType struct{} +type fastReflection_QueryLatestForecasterScoreRequest_messageType struct{} -func (x fastReflection_QueryInferenceScoresUntilBlockRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryInferenceScoresUntilBlockRequest)(nil) +func (x fastReflection_QueryLatestForecasterScoreRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLatestForecasterScoreRequest)(nil) } -func (x fastReflection_QueryInferenceScoresUntilBlockRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryInferenceScoresUntilBlockRequest) +func (x fastReflection_QueryLatestForecasterScoreRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLatestForecasterScoreRequest) } -func (x fastReflection_QueryInferenceScoresUntilBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryInferenceScoresUntilBlockRequest +func (x fastReflection_QueryLatestForecasterScoreRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestForecasterScoreRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryInferenceScoresUntilBlockRequest +func (x *fastReflection_QueryLatestForecasterScoreRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestForecasterScoreRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryInferenceScoresUntilBlockRequest_messageType +func (x *fastReflection_QueryLatestForecasterScoreRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryLatestForecasterScoreRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) New() protoreflect.Message { - return new(fastReflection_QueryInferenceScoresUntilBlockRequest) +func (x *fastReflection_QueryLatestForecasterScoreRequest) New() protoreflect.Message { + return new(fastReflection_QueryLatestForecasterScoreRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Interface() protoreflect.ProtoMessage { - return (*QueryInferenceScoresUntilBlockRequest)(x) +func (x *fastReflection_QueryLatestForecasterScoreRequest) Interface() protoreflect.ProtoMessage { + return (*QueryLatestForecasterScoreRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -50356,16 +49846,16 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Interface() proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryLatestForecasterScoreRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryInferenceScoresUntilBlockRequest_topic_id, value) { + if !f(fd_QueryLatestForecasterScoreRequest_topic_id, value) { return } } - if x.BlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryInferenceScoresUntilBlockRequest_block_height, value) { + if x.Forecaster != "" { + value := protoreflect.ValueOfString(x.Forecaster) + if !f(fd_QueryLatestForecasterScoreRequest_forecaster, value) { return } } @@ -50382,17 +49872,17 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Range(f func(prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryLatestForecasterScoreRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryInferenceScoresUntilBlockRequest.topic_id": + case "emissions.v2.QueryLatestForecasterScoreRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryInferenceScoresUntilBlockRequest.block_height": - return x.BlockHeight != int64(0) + case "emissions.v2.QueryLatestForecasterScoreRequest.forecaster": + return x.Forecaster != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferenceScoresUntilBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestForecasterScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInferenceScoresUntilBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestForecasterScoreRequest does not contain field %s", fd.FullName())) } } @@ -50402,17 +49892,17 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Has(fd protorefle // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryLatestForecasterScoreRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryInferenceScoresUntilBlockRequest.topic_id": + case "emissions.v2.QueryLatestForecasterScoreRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryInferenceScoresUntilBlockRequest.block_height": - x.BlockHeight = int64(0) + case "emissions.v2.QueryLatestForecasterScoreRequest.forecaster": + x.Forecaster = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferenceScoresUntilBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestForecasterScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInferenceScoresUntilBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestForecasterScoreRequest does not contain field %s", fd.FullName())) } } @@ -50422,19 +49912,19 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Clear(fd protoref // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestForecasterScoreRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryInferenceScoresUntilBlockRequest.topic_id": + case "emissions.v2.QueryLatestForecasterScoreRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryInferenceScoresUntilBlockRequest.block_height": - value := x.BlockHeight - return protoreflect.ValueOfInt64(value) + case "emissions.v2.QueryLatestForecasterScoreRequest.forecaster": + value := x.Forecaster + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferenceScoresUntilBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestForecasterScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInferenceScoresUntilBlockRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestForecasterScoreRequest does not contain field %s", descriptor.FullName())) } } @@ -50448,17 +49938,17 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Get(descriptor pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryLatestForecasterScoreRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryInferenceScoresUntilBlockRequest.topic_id": + case "emissions.v2.QueryLatestForecasterScoreRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryInferenceScoresUntilBlockRequest.block_height": - x.BlockHeight = value.Int() + case "emissions.v2.QueryLatestForecasterScoreRequest.forecaster": + x.Forecaster = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferenceScoresUntilBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestForecasterScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInferenceScoresUntilBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestForecasterScoreRequest does not contain field %s", fd.FullName())) } } @@ -50472,44 +49962,44 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Set(fd protorefle // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestForecasterScoreRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryInferenceScoresUntilBlockRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryInferenceScoresUntilBlockRequest is not mutable")) - case "emissions.v1.QueryInferenceScoresUntilBlockRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryInferenceScoresUntilBlockRequest is not mutable")) + case "emissions.v2.QueryLatestForecasterScoreRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryLatestForecasterScoreRequest is not mutable")) + case "emissions.v2.QueryLatestForecasterScoreRequest.forecaster": + panic(fmt.Errorf("field forecaster of message emissions.v2.QueryLatestForecasterScoreRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferenceScoresUntilBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestForecasterScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInferenceScoresUntilBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestForecasterScoreRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestForecasterScoreRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryInferenceScoresUntilBlockRequest.topic_id": + case "emissions.v2.QueryLatestForecasterScoreRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryInferenceScoresUntilBlockRequest.block_height": - return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.QueryLatestForecasterScoreRequest.forecaster": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferenceScoresUntilBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestForecasterScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryInferenceScoresUntilBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestForecasterScoreRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryLatestForecasterScoreRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryInferenceScoresUntilBlockRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryLatestForecasterScoreRequest", d.FullName())) } panic("unreachable") } @@ -50517,7 +50007,7 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) WhichOneof(d prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryLatestForecasterScoreRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -50528,7 +50018,7 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) GetUnknown() prot // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryLatestForecasterScoreRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -50540,7 +50030,7 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) IsValid() bool { +func (x *fastReflection_QueryLatestForecasterScoreRequest) IsValid() bool { return x != nil } @@ -50550,9 +50040,9 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryLatestForecasterScoreRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryInferenceScoresUntilBlockRequest) + x := input.Message.Interface().(*QueryLatestForecasterScoreRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -50567,8 +50057,9 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) ProtoMethods() *p if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - if x.BlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeight)) + l = len(x.Forecaster) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -50580,7 +50071,7 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) ProtoMethods() *p } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryInferenceScoresUntilBlockRequest) + x := input.Message.Interface().(*QueryLatestForecasterScoreRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -50599,10 +50090,12 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) ProtoMethods() *p i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.BlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + if len(x.Forecaster) > 0 { + i -= len(x.Forecaster) + copy(dAtA[i:], x.Forecaster) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Forecaster))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) @@ -50620,7 +50113,7 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) ProtoMethods() *p }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryInferenceScoresUntilBlockRequest) + x := input.Message.Interface().(*QueryLatestForecasterScoreRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -50652,10 +50145,10 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) ProtoMethods() *p fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferenceScoresUntilBlockRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestForecasterScoreRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferenceScoresUntilBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestForecasterScoreRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -50678,10 +50171,10 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) ProtoMethods() *p } } case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) } - x.BlockHeight = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -50691,11 +50184,24 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) ProtoMethods() *p } b := dAtA[iNdEx] iNdEx++ - x.BlockHeight |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Forecaster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -50731,78 +50237,27 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) ProtoMethods() *p } } -var _ protoreflect.List = (*_QueryInferenceScoresUntilBlockResponse_1_list)(nil) - -type _QueryInferenceScoresUntilBlockResponse_1_list struct { - list *[]*Score -} - -func (x *_QueryInferenceScoresUntilBlockResponse_1_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_QueryInferenceScoresUntilBlockResponse_1_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_QueryInferenceScoresUntilBlockResponse_1_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Score) - (*x.list)[i] = concreteValue -} - -func (x *_QueryInferenceScoresUntilBlockResponse_1_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*Score) - *x.list = append(*x.list, concreteValue) -} - -func (x *_QueryInferenceScoresUntilBlockResponse_1_list) AppendMutable() protoreflect.Value { - v := new(Score) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryInferenceScoresUntilBlockResponse_1_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_QueryInferenceScoresUntilBlockResponse_1_list) NewElement() protoreflect.Value { - v := new(Score) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_QueryInferenceScoresUntilBlockResponse_1_list) IsValid() bool { - return x.list != nil -} - var ( - md_QueryInferenceScoresUntilBlockResponse protoreflect.MessageDescriptor - fd_QueryInferenceScoresUntilBlockResponse_scores protoreflect.FieldDescriptor + md_QueryLatestForecasterScoreResponse protoreflect.MessageDescriptor + fd_QueryLatestForecasterScoreResponse_score protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryInferenceScoresUntilBlockResponse = File_emissions_v1_query_proto.Messages().ByName("QueryInferenceScoresUntilBlockResponse") - fd_QueryInferenceScoresUntilBlockResponse_scores = md_QueryInferenceScoresUntilBlockResponse.Fields().ByName("scores") + file_emissions_v2_query_proto_init() + md_QueryLatestForecasterScoreResponse = File_emissions_v2_query_proto.Messages().ByName("QueryLatestForecasterScoreResponse") + fd_QueryLatestForecasterScoreResponse_score = md_QueryLatestForecasterScoreResponse.Fields().ByName("score") } -var _ protoreflect.Message = (*fastReflection_QueryInferenceScoresUntilBlockResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryLatestForecasterScoreResponse)(nil) -type fastReflection_QueryInferenceScoresUntilBlockResponse QueryInferenceScoresUntilBlockResponse +type fastReflection_QueryLatestForecasterScoreResponse QueryLatestForecasterScoreResponse -func (x *QueryInferenceScoresUntilBlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryInferenceScoresUntilBlockResponse)(x) +func (x *QueryLatestForecasterScoreResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLatestForecasterScoreResponse)(x) } -func (x *QueryInferenceScoresUntilBlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[113] +func (x *QueryLatestForecasterScoreResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[111] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -50813,43 +50268,43 @@ func (x *QueryInferenceScoresUntilBlockResponse) slowProtoReflect() protoreflect return mi.MessageOf(x) } -var _fastReflection_QueryInferenceScoresUntilBlockResponse_messageType fastReflection_QueryInferenceScoresUntilBlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryInferenceScoresUntilBlockResponse_messageType{} +var _fastReflection_QueryLatestForecasterScoreResponse_messageType fastReflection_QueryLatestForecasterScoreResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryLatestForecasterScoreResponse_messageType{} -type fastReflection_QueryInferenceScoresUntilBlockResponse_messageType struct{} +type fastReflection_QueryLatestForecasterScoreResponse_messageType struct{} -func (x fastReflection_QueryInferenceScoresUntilBlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryInferenceScoresUntilBlockResponse)(nil) +func (x fastReflection_QueryLatestForecasterScoreResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLatestForecasterScoreResponse)(nil) } -func (x fastReflection_QueryInferenceScoresUntilBlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryInferenceScoresUntilBlockResponse) +func (x fastReflection_QueryLatestForecasterScoreResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLatestForecasterScoreResponse) } -func (x fastReflection_QueryInferenceScoresUntilBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryInferenceScoresUntilBlockResponse +func (x fastReflection_QueryLatestForecasterScoreResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestForecasterScoreResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryInferenceScoresUntilBlockResponse +func (x *fastReflection_QueryLatestForecasterScoreResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestForecasterScoreResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryInferenceScoresUntilBlockResponse_messageType +func (x *fastReflection_QueryLatestForecasterScoreResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryLatestForecasterScoreResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) New() protoreflect.Message { - return new(fastReflection_QueryInferenceScoresUntilBlockResponse) +func (x *fastReflection_QueryLatestForecasterScoreResponse) New() protoreflect.Message { + return new(fastReflection_QueryLatestForecasterScoreResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Interface() protoreflect.ProtoMessage { - return (*QueryInferenceScoresUntilBlockResponse)(x) +func (x *fastReflection_QueryLatestForecasterScoreResponse) Interface() protoreflect.ProtoMessage { + return (*QueryLatestForecasterScoreResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -50857,10 +50312,10 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Interface() prot // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if len(x.Scores) != 0 { - value := protoreflect.ValueOfList(&_QueryInferenceScoresUntilBlockResponse_1_list{list: &x.Scores}) - if !f(fd_QueryInferenceScoresUntilBlockResponse_scores, value) { +func (x *fastReflection_QueryLatestForecasterScoreResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Score != nil { + value := protoreflect.ValueOfMessage(x.Score.ProtoReflect()) + if !f(fd_QueryLatestForecasterScoreResponse_score, value) { return } } @@ -50877,15 +50332,15 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Range(f func(pro // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryLatestForecasterScoreResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryInferenceScoresUntilBlockResponse.scores": - return len(x.Scores) != 0 + case "emissions.v2.QueryLatestForecasterScoreResponse.score": + return x.Score != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferenceScoresUntilBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestForecasterScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInferenceScoresUntilBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestForecasterScoreResponse does not contain field %s", fd.FullName())) } } @@ -50895,15 +50350,15 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Has(fd protorefl // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryLatestForecasterScoreResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryInferenceScoresUntilBlockResponse.scores": - x.Scores = nil + case "emissions.v2.QueryLatestForecasterScoreResponse.score": + x.Score = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferenceScoresUntilBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestForecasterScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInferenceScoresUntilBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestForecasterScoreResponse does not contain field %s", fd.FullName())) } } @@ -50913,19 +50368,16 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Clear(fd protore // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestForecasterScoreResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryInferenceScoresUntilBlockResponse.scores": - if len(x.Scores) == 0 { - return protoreflect.ValueOfList(&_QueryInferenceScoresUntilBlockResponse_1_list{}) - } - listValue := &_QueryInferenceScoresUntilBlockResponse_1_list{list: &x.Scores} - return protoreflect.ValueOfList(listValue) + case "emissions.v2.QueryLatestForecasterScoreResponse.score": + value := x.Score + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferenceScoresUntilBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestForecasterScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInferenceScoresUntilBlockResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestForecasterScoreResponse does not contain field %s", descriptor.FullName())) } } @@ -50939,17 +50391,15 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Get(descriptor p // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryLatestForecasterScoreResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryInferenceScoresUntilBlockResponse.scores": - lv := value.List() - clv := lv.(*_QueryInferenceScoresUntilBlockResponse_1_list) - x.Scores = *clv.list + case "emissions.v2.QueryLatestForecasterScoreResponse.score": + x.Score = value.Message().Interface().(*Score) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferenceScoresUntilBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestForecasterScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInferenceScoresUntilBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestForecasterScoreResponse does not contain field %s", fd.FullName())) } } @@ -50963,45 +50413,44 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Set(fd protorefl // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestForecasterScoreResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryInferenceScoresUntilBlockResponse.scores": - if x.Scores == nil { - x.Scores = []*Score{} + case "emissions.v2.QueryLatestForecasterScoreResponse.score": + if x.Score == nil { + x.Score = new(Score) } - value := &_QueryInferenceScoresUntilBlockResponse_1_list{list: &x.Scores} - return protoreflect.ValueOfList(value) + return protoreflect.ValueOfMessage(x.Score.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferenceScoresUntilBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestForecasterScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInferenceScoresUntilBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestForecasterScoreResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestForecasterScoreResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryInferenceScoresUntilBlockResponse.scores": - list := []*Score{} - return protoreflect.ValueOfList(&_QueryInferenceScoresUntilBlockResponse_1_list{list: &list}) + case "emissions.v2.QueryLatestForecasterScoreResponse.score": + m := new(Score) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryInferenceScoresUntilBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestForecasterScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryInferenceScoresUntilBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestForecasterScoreResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryLatestForecasterScoreResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryInferenceScoresUntilBlockResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryLatestForecasterScoreResponse", d.FullName())) } panic("unreachable") } @@ -51009,7 +50458,7 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) WhichOneof(d pro // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryLatestForecasterScoreResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -51020,7 +50469,7 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) GetUnknown() pro // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryLatestForecasterScoreResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -51032,7 +50481,7 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) SetUnknown(field // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) IsValid() bool { +func (x *fastReflection_QueryLatestForecasterScoreResponse) IsValid() bool { return x != nil } @@ -51042,9 +50491,9 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryLatestForecasterScoreResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryInferenceScoresUntilBlockResponse) + x := input.Message.Interface().(*QueryLatestForecasterScoreResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -51056,11 +50505,9 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) ProtoMethods() * var n int var l int _ = l - if len(x.Scores) > 0 { - for _, e := range x.Scores { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } + if x.Score != nil { + l = options.Size(x.Score) + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -51072,7 +50519,7 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) ProtoMethods() * } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryInferenceScoresUntilBlockResponse) + x := input.Message.Interface().(*QueryLatestForecasterScoreResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -51091,21 +50538,19 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) ProtoMethods() * i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Scores) > 0 { - for iNdEx := len(x.Scores) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.Scores[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa + if x.Score != nil { + encoded, err := options.Marshal(x.Score) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -51118,7 +50563,7 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) ProtoMethods() * }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryInferenceScoresUntilBlockResponse) + x := input.Message.Interface().(*QueryLatestForecasterScoreResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -51150,15 +50595,15 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) ProtoMethods() * fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferenceScoresUntilBlockResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestForecasterScoreResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferenceScoresUntilBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestForecasterScoreResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Scores", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Score", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -51185,8 +50630,10 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) ProtoMethods() * if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Scores = append(x.Scores, &Score{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Scores[len(x.Scores)-1]); err != nil { + if x.Score == nil { + x.Score = &Score{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Score); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -51226,28 +50673,28 @@ func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) ProtoMethods() * } var ( - md_QueryWorkerInferenceScoresAtBlockRequest protoreflect.MessageDescriptor - fd_QueryWorkerInferenceScoresAtBlockRequest_topic_id protoreflect.FieldDescriptor - fd_QueryWorkerInferenceScoresAtBlockRequest_block_height protoreflect.FieldDescriptor + md_QueryLatestReputerScoreRequest protoreflect.MessageDescriptor + fd_QueryLatestReputerScoreRequest_topic_id protoreflect.FieldDescriptor + fd_QueryLatestReputerScoreRequest_reputer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryWorkerInferenceScoresAtBlockRequest = File_emissions_v1_query_proto.Messages().ByName("QueryWorkerInferenceScoresAtBlockRequest") - fd_QueryWorkerInferenceScoresAtBlockRequest_topic_id = md_QueryWorkerInferenceScoresAtBlockRequest.Fields().ByName("topic_id") - fd_QueryWorkerInferenceScoresAtBlockRequest_block_height = md_QueryWorkerInferenceScoresAtBlockRequest.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryLatestReputerScoreRequest = File_emissions_v2_query_proto.Messages().ByName("QueryLatestReputerScoreRequest") + fd_QueryLatestReputerScoreRequest_topic_id = md_QueryLatestReputerScoreRequest.Fields().ByName("topic_id") + fd_QueryLatestReputerScoreRequest_reputer = md_QueryLatestReputerScoreRequest.Fields().ByName("reputer") } -var _ protoreflect.Message = (*fastReflection_QueryWorkerInferenceScoresAtBlockRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryLatestReputerScoreRequest)(nil) -type fastReflection_QueryWorkerInferenceScoresAtBlockRequest QueryWorkerInferenceScoresAtBlockRequest +type fastReflection_QueryLatestReputerScoreRequest QueryLatestReputerScoreRequest -func (x *QueryWorkerInferenceScoresAtBlockRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryWorkerInferenceScoresAtBlockRequest)(x) +func (x *QueryLatestReputerScoreRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLatestReputerScoreRequest)(x) } -func (x *QueryWorkerInferenceScoresAtBlockRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[114] +func (x *QueryLatestReputerScoreRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[112] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -51258,43 +50705,43 @@ func (x *QueryWorkerInferenceScoresAtBlockRequest) slowProtoReflect() protorefle return mi.MessageOf(x) } -var _fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType{} +var _fastReflection_QueryLatestReputerScoreRequest_messageType fastReflection_QueryLatestReputerScoreRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryLatestReputerScoreRequest_messageType{} -type fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType struct{} +type fastReflection_QueryLatestReputerScoreRequest_messageType struct{} -func (x fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryWorkerInferenceScoresAtBlockRequest)(nil) +func (x fastReflection_QueryLatestReputerScoreRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLatestReputerScoreRequest)(nil) } -func (x fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryWorkerInferenceScoresAtBlockRequest) +func (x fastReflection_QueryLatestReputerScoreRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLatestReputerScoreRequest) } -func (x fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerInferenceScoresAtBlockRequest +func (x fastReflection_QueryLatestReputerScoreRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestReputerScoreRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerInferenceScoresAtBlockRequest +func (x *fastReflection_QueryLatestReputerScoreRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestReputerScoreRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType +func (x *fastReflection_QueryLatestReputerScoreRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryLatestReputerScoreRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) New() protoreflect.Message { - return new(fastReflection_QueryWorkerInferenceScoresAtBlockRequest) +func (x *fastReflection_QueryLatestReputerScoreRequest) New() protoreflect.Message { + return new(fastReflection_QueryLatestReputerScoreRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Interface() protoreflect.ProtoMessage { - return (*QueryWorkerInferenceScoresAtBlockRequest)(x) +func (x *fastReflection_QueryLatestReputerScoreRequest) Interface() protoreflect.ProtoMessage { + return (*QueryLatestReputerScoreRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -51302,16 +50749,16 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Interface() pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryLatestReputerScoreRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryWorkerInferenceScoresAtBlockRequest_topic_id, value) { + if !f(fd_QueryLatestReputerScoreRequest_topic_id, value) { return } } - if x.BlockHeight != int64(0) { - value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryWorkerInferenceScoresAtBlockRequest_block_height, value) { + if x.Reputer != "" { + value := protoreflect.ValueOfString(x.Reputer) + if !f(fd_QueryLatestReputerScoreRequest_reputer, value) { return } } @@ -51328,17 +50775,17 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Range(f func(p // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryLatestReputerScoreRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryWorkerInferenceScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryLatestReputerScoreRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryWorkerInferenceScoresAtBlockRequest.block_height": - return x.BlockHeight != int64(0) + case "emissions.v2.QueryLatestReputerScoreRequest.reputer": + return x.Reputer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerInferenceScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestReputerScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerInferenceScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestReputerScoreRequest does not contain field %s", fd.FullName())) } } @@ -51348,17 +50795,17 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Has(fd protore // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryLatestReputerScoreRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryWorkerInferenceScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryLatestReputerScoreRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryWorkerInferenceScoresAtBlockRequest.block_height": - x.BlockHeight = int64(0) + case "emissions.v2.QueryLatestReputerScoreRequest.reputer": + x.Reputer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerInferenceScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestReputerScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerInferenceScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestReputerScoreRequest does not contain field %s", fd.FullName())) } } @@ -51368,19 +50815,19 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Clear(fd proto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestReputerScoreRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryWorkerInferenceScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryLatestReputerScoreRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryWorkerInferenceScoresAtBlockRequest.block_height": - value := x.BlockHeight - return protoreflect.ValueOfInt64(value) + case "emissions.v2.QueryLatestReputerScoreRequest.reputer": + value := x.Reputer + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerInferenceScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestReputerScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerInferenceScoresAtBlockRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestReputerScoreRequest does not contain field %s", descriptor.FullName())) } } @@ -51394,17 +50841,17 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Get(descriptor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryLatestReputerScoreRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryWorkerInferenceScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryLatestReputerScoreRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryWorkerInferenceScoresAtBlockRequest.block_height": - x.BlockHeight = value.Int() + case "emissions.v2.QueryLatestReputerScoreRequest.reputer": + x.Reputer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerInferenceScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestReputerScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerInferenceScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestReputerScoreRequest does not contain field %s", fd.FullName())) } } @@ -51418,44 +50865,44 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Set(fd protore // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestReputerScoreRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerInferenceScoresAtBlockRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryWorkerInferenceScoresAtBlockRequest is not mutable")) - case "emissions.v1.QueryWorkerInferenceScoresAtBlockRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryWorkerInferenceScoresAtBlockRequest is not mutable")) + case "emissions.v2.QueryLatestReputerScoreRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryLatestReputerScoreRequest is not mutable")) + case "emissions.v2.QueryLatestReputerScoreRequest.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.QueryLatestReputerScoreRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerInferenceScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestReputerScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerInferenceScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestReputerScoreRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestReputerScoreRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerInferenceScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryLatestReputerScoreRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryWorkerInferenceScoresAtBlockRequest.block_height": - return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.QueryLatestReputerScoreRequest.reputer": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerInferenceScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestReputerScoreRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerInferenceScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestReputerScoreRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryLatestReputerScoreRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryWorkerInferenceScoresAtBlockRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryLatestReputerScoreRequest", d.FullName())) } panic("unreachable") } @@ -51463,7 +50910,7 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) WhichOneof(d p // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryLatestReputerScoreRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -51474,7 +50921,7 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) GetUnknown() p // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryLatestReputerScoreRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -51486,7 +50933,7 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) SetUnknown(fie // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) IsValid() bool { +func (x *fastReflection_QueryLatestReputerScoreRequest) IsValid() bool { return x != nil } @@ -51496,9 +50943,9 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) IsValid() bool // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryLatestReputerScoreRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryWorkerInferenceScoresAtBlockRequest) + x := input.Message.Interface().(*QueryLatestReputerScoreRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -51513,8 +50960,9 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) ProtoMethods() if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - if x.BlockHeight != 0 { - n += 1 + runtime.Sov(uint64(x.BlockHeight)) + l = len(x.Reputer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -51526,7 +50974,7 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) ProtoMethods() } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerInferenceScoresAtBlockRequest) + x := input.Message.Interface().(*QueryLatestReputerScoreRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -51545,10 +50993,12 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) ProtoMethods() i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.BlockHeight != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + if len(x.Reputer) > 0 { + i -= len(x.Reputer) + copy(dAtA[i:], x.Reputer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) @@ -51566,7 +51016,7 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) ProtoMethods() }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerInferenceScoresAtBlockRequest) + x := input.Message.Interface().(*QueryLatestReputerScoreRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -51598,10 +51048,10 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) ProtoMethods() fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerInferenceScoresAtBlockRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestReputerScoreRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerInferenceScoresAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestReputerScoreRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -51624,10 +51074,10 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) ProtoMethods() } } case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) } - x.BlockHeight = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -51637,11 +51087,24 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) ProtoMethods() } b := dAtA[iNdEx] iNdEx++ - x.BlockHeight |= int64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -51678,26 +51141,26 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) ProtoMethods() } var ( - md_QueryWorkerInferenceScoresAtBlockResponse protoreflect.MessageDescriptor - fd_QueryWorkerInferenceScoresAtBlockResponse_scores protoreflect.FieldDescriptor + md_QueryLatestReputerScoreResponse protoreflect.MessageDescriptor + fd_QueryLatestReputerScoreResponse_score protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryWorkerInferenceScoresAtBlockResponse = File_emissions_v1_query_proto.Messages().ByName("QueryWorkerInferenceScoresAtBlockResponse") - fd_QueryWorkerInferenceScoresAtBlockResponse_scores = md_QueryWorkerInferenceScoresAtBlockResponse.Fields().ByName("scores") + file_emissions_v2_query_proto_init() + md_QueryLatestReputerScoreResponse = File_emissions_v2_query_proto.Messages().ByName("QueryLatestReputerScoreResponse") + fd_QueryLatestReputerScoreResponse_score = md_QueryLatestReputerScoreResponse.Fields().ByName("score") } -var _ protoreflect.Message = (*fastReflection_QueryWorkerInferenceScoresAtBlockResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryLatestReputerScoreResponse)(nil) -type fastReflection_QueryWorkerInferenceScoresAtBlockResponse QueryWorkerInferenceScoresAtBlockResponse +type fastReflection_QueryLatestReputerScoreResponse QueryLatestReputerScoreResponse -func (x *QueryWorkerInferenceScoresAtBlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryWorkerInferenceScoresAtBlockResponse)(x) +func (x *QueryLatestReputerScoreResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryLatestReputerScoreResponse)(x) } -func (x *QueryWorkerInferenceScoresAtBlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[115] +func (x *QueryLatestReputerScoreResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[113] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -51708,43 +51171,43 @@ func (x *QueryWorkerInferenceScoresAtBlockResponse) slowProtoReflect() protorefl return mi.MessageOf(x) } -var _fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType{} +var _fastReflection_QueryLatestReputerScoreResponse_messageType fastReflection_QueryLatestReputerScoreResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryLatestReputerScoreResponse_messageType{} -type fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType struct{} +type fastReflection_QueryLatestReputerScoreResponse_messageType struct{} -func (x fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryWorkerInferenceScoresAtBlockResponse)(nil) +func (x fastReflection_QueryLatestReputerScoreResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryLatestReputerScoreResponse)(nil) } -func (x fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryWorkerInferenceScoresAtBlockResponse) +func (x fastReflection_QueryLatestReputerScoreResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryLatestReputerScoreResponse) } -func (x fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerInferenceScoresAtBlockResponse +func (x fastReflection_QueryLatestReputerScoreResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestReputerScoreResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerInferenceScoresAtBlockResponse +func (x *fastReflection_QueryLatestReputerScoreResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryLatestReputerScoreResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType +func (x *fastReflection_QueryLatestReputerScoreResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryLatestReputerScoreResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) New() protoreflect.Message { - return new(fastReflection_QueryWorkerInferenceScoresAtBlockResponse) +func (x *fastReflection_QueryLatestReputerScoreResponse) New() protoreflect.Message { + return new(fastReflection_QueryLatestReputerScoreResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Interface() protoreflect.ProtoMessage { - return (*QueryWorkerInferenceScoresAtBlockResponse)(x) +func (x *fastReflection_QueryLatestReputerScoreResponse) Interface() protoreflect.ProtoMessage { + return (*QueryLatestReputerScoreResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -51752,10 +51215,10 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Interface() p // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Scores != nil { - value := protoreflect.ValueOfMessage(x.Scores.ProtoReflect()) - if !f(fd_QueryWorkerInferenceScoresAtBlockResponse_scores, value) { +func (x *fastReflection_QueryLatestReputerScoreResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Score != nil { + value := protoreflect.ValueOfMessage(x.Score.ProtoReflect()) + if !f(fd_QueryLatestReputerScoreResponse_score, value) { return } } @@ -51772,15 +51235,15 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Range(f func( // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryLatestReputerScoreResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryWorkerInferenceScoresAtBlockResponse.scores": - return x.Scores != nil + case "emissions.v2.QueryLatestReputerScoreResponse.score": + return x.Score != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerInferenceScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestReputerScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerInferenceScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestReputerScoreResponse does not contain field %s", fd.FullName())) } } @@ -51790,15 +51253,15 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Has(fd protor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryLatestReputerScoreResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryWorkerInferenceScoresAtBlockResponse.scores": - x.Scores = nil + case "emissions.v2.QueryLatestReputerScoreResponse.score": + x.Score = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerInferenceScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestReputerScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerInferenceScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestReputerScoreResponse does not contain field %s", fd.FullName())) } } @@ -51808,16 +51271,16 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Clear(fd prot // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestReputerScoreResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryWorkerInferenceScoresAtBlockResponse.scores": - value := x.Scores + case "emissions.v2.QueryLatestReputerScoreResponse.score": + value := x.Score return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerInferenceScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestReputerScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerInferenceScoresAtBlockResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestReputerScoreResponse does not contain field %s", descriptor.FullName())) } } @@ -51831,15 +51294,15 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Get(descripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryLatestReputerScoreResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryWorkerInferenceScoresAtBlockResponse.scores": - x.Scores = value.Message().Interface().(*Scores) + case "emissions.v2.QueryLatestReputerScoreResponse.score": + x.Score = value.Message().Interface().(*Score) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerInferenceScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestReputerScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerInferenceScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestReputerScoreResponse does not contain field %s", fd.FullName())) } } @@ -51853,44 +51316,44 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Set(fd protor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestReputerScoreResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerInferenceScoresAtBlockResponse.scores": - if x.Scores == nil { - x.Scores = new(Scores) + case "emissions.v2.QueryLatestReputerScoreResponse.score": + if x.Score == nil { + x.Score = new(Score) } - return protoreflect.ValueOfMessage(x.Scores.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Score.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerInferenceScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestReputerScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerInferenceScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestReputerScoreResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryLatestReputerScoreResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerInferenceScoresAtBlockResponse.scores": - m := new(Scores) + case "emissions.v2.QueryLatestReputerScoreResponse.score": + m := new(Score) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerInferenceScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryLatestReputerScoreResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerInferenceScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryLatestReputerScoreResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryLatestReputerScoreResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryWorkerInferenceScoresAtBlockResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryLatestReputerScoreResponse", d.FullName())) } panic("unreachable") } @@ -51898,7 +51361,7 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) WhichOneof(d // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryLatestReputerScoreResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -51909,7 +51372,7 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) GetUnknown() // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryLatestReputerScoreResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -51921,7 +51384,7 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) SetUnknown(fi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) IsValid() bool { +func (x *fastReflection_QueryLatestReputerScoreResponse) IsValid() bool { return x != nil } @@ -51931,9 +51394,9 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) IsValid() boo // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryLatestReputerScoreResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryWorkerInferenceScoresAtBlockResponse) + x := input.Message.Interface().(*QueryLatestReputerScoreResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -51945,8 +51408,8 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) ProtoMethods( var n int var l int _ = l - if x.Scores != nil { - l = options.Size(x.Scores) + if x.Score != nil { + l = options.Size(x.Score) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -51959,7 +51422,7 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) ProtoMethods( } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerInferenceScoresAtBlockResponse) + x := input.Message.Interface().(*QueryLatestReputerScoreResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -51978,8 +51441,8 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) ProtoMethods( i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Scores != nil { - encoded, err := options.Marshal(x.Scores) + if x.Score != nil { + encoded, err := options.Marshal(x.Score) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -52003,7 +51466,7 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) ProtoMethods( }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerInferenceScoresAtBlockResponse) + x := input.Message.Interface().(*QueryLatestReputerScoreResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -52035,15 +51498,15 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) ProtoMethods( fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerInferenceScoresAtBlockResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestReputerScoreResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerInferenceScoresAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryLatestReputerScoreResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Scores", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Score", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -52070,10 +51533,10 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) ProtoMethods( if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Scores == nil { - x.Scores = &Scores{} + if x.Score == nil { + x.Score = &Score{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Scores); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Score); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -52113,28 +51576,28 @@ func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) ProtoMethods( } var ( - md_QueryForecastScoresUntilBlockRequest protoreflect.MessageDescriptor - fd_QueryForecastScoresUntilBlockRequest_topic_id protoreflect.FieldDescriptor - fd_QueryForecastScoresUntilBlockRequest_block_height protoreflect.FieldDescriptor + md_QueryInferenceScoresUntilBlockRequest protoreflect.MessageDescriptor + fd_QueryInferenceScoresUntilBlockRequest_topic_id protoreflect.FieldDescriptor + fd_QueryInferenceScoresUntilBlockRequest_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryForecastScoresUntilBlockRequest = File_emissions_v1_query_proto.Messages().ByName("QueryForecastScoresUntilBlockRequest") - fd_QueryForecastScoresUntilBlockRequest_topic_id = md_QueryForecastScoresUntilBlockRequest.Fields().ByName("topic_id") - fd_QueryForecastScoresUntilBlockRequest_block_height = md_QueryForecastScoresUntilBlockRequest.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryInferenceScoresUntilBlockRequest = File_emissions_v2_query_proto.Messages().ByName("QueryInferenceScoresUntilBlockRequest") + fd_QueryInferenceScoresUntilBlockRequest_topic_id = md_QueryInferenceScoresUntilBlockRequest.Fields().ByName("topic_id") + fd_QueryInferenceScoresUntilBlockRequest_block_height = md_QueryInferenceScoresUntilBlockRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryForecastScoresUntilBlockRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryInferenceScoresUntilBlockRequest)(nil) -type fastReflection_QueryForecastScoresUntilBlockRequest QueryForecastScoresUntilBlockRequest +type fastReflection_QueryInferenceScoresUntilBlockRequest QueryInferenceScoresUntilBlockRequest -func (x *QueryForecastScoresUntilBlockRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryForecastScoresUntilBlockRequest)(x) +func (x *QueryInferenceScoresUntilBlockRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryInferenceScoresUntilBlockRequest)(x) } -func (x *QueryForecastScoresUntilBlockRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[116] +func (x *QueryInferenceScoresUntilBlockRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[114] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -52145,43 +51608,43 @@ func (x *QueryForecastScoresUntilBlockRequest) slowProtoReflect() protoreflect.M return mi.MessageOf(x) } -var _fastReflection_QueryForecastScoresUntilBlockRequest_messageType fastReflection_QueryForecastScoresUntilBlockRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryForecastScoresUntilBlockRequest_messageType{} +var _fastReflection_QueryInferenceScoresUntilBlockRequest_messageType fastReflection_QueryInferenceScoresUntilBlockRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryInferenceScoresUntilBlockRequest_messageType{} -type fastReflection_QueryForecastScoresUntilBlockRequest_messageType struct{} +type fastReflection_QueryInferenceScoresUntilBlockRequest_messageType struct{} -func (x fastReflection_QueryForecastScoresUntilBlockRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryForecastScoresUntilBlockRequest)(nil) +func (x fastReflection_QueryInferenceScoresUntilBlockRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryInferenceScoresUntilBlockRequest)(nil) } -func (x fastReflection_QueryForecastScoresUntilBlockRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryForecastScoresUntilBlockRequest) +func (x fastReflection_QueryInferenceScoresUntilBlockRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryInferenceScoresUntilBlockRequest) } -func (x fastReflection_QueryForecastScoresUntilBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryForecastScoresUntilBlockRequest +func (x fastReflection_QueryInferenceScoresUntilBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInferenceScoresUntilBlockRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryForecastScoresUntilBlockRequest +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInferenceScoresUntilBlockRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryForecastScoresUntilBlockRequest_messageType +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryInferenceScoresUntilBlockRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) New() protoreflect.Message { - return new(fastReflection_QueryForecastScoresUntilBlockRequest) +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) New() protoreflect.Message { + return new(fastReflection_QueryInferenceScoresUntilBlockRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Interface() protoreflect.ProtoMessage { - return (*QueryForecastScoresUntilBlockRequest)(x) +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Interface() protoreflect.ProtoMessage { + return (*QueryInferenceScoresUntilBlockRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -52189,16 +51652,16 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Interface() protor // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryForecastScoresUntilBlockRequest_topic_id, value) { + if !f(fd_QueryInferenceScoresUntilBlockRequest_topic_id, value) { return } } if x.BlockHeight != int64(0) { value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryForecastScoresUntilBlockRequest_block_height, value) { + if !f(fd_QueryInferenceScoresUntilBlockRequest_block_height, value) { return } } @@ -52215,17 +51678,17 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Range(f func(proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryForecastScoresUntilBlockRequest.topic_id": + case "emissions.v2.QueryInferenceScoresUntilBlockRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryForecastScoresUntilBlockRequest.block_height": + case "emissions.v2.QueryInferenceScoresUntilBlockRequest.block_height": return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastScoresUntilBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferenceScoresUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastScoresUntilBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferenceScoresUntilBlockRequest does not contain field %s", fd.FullName())) } } @@ -52235,17 +51698,17 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Has(fd protoreflec // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryForecastScoresUntilBlockRequest.topic_id": + case "emissions.v2.QueryInferenceScoresUntilBlockRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryForecastScoresUntilBlockRequest.block_height": + case "emissions.v2.QueryInferenceScoresUntilBlockRequest.block_height": x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastScoresUntilBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferenceScoresUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastScoresUntilBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferenceScoresUntilBlockRequest does not contain field %s", fd.FullName())) } } @@ -52255,19 +51718,19 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Clear(fd protorefl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryForecastScoresUntilBlockRequest.topic_id": + case "emissions.v2.QueryInferenceScoresUntilBlockRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryForecastScoresUntilBlockRequest.block_height": + case "emissions.v2.QueryInferenceScoresUntilBlockRequest.block_height": value := x.BlockHeight return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastScoresUntilBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferenceScoresUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastScoresUntilBlockRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferenceScoresUntilBlockRequest does not contain field %s", descriptor.FullName())) } } @@ -52281,17 +51744,17 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Get(descriptor pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryForecastScoresUntilBlockRequest.topic_id": + case "emissions.v2.QueryInferenceScoresUntilBlockRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryForecastScoresUntilBlockRequest.block_height": + case "emissions.v2.QueryInferenceScoresUntilBlockRequest.block_height": x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastScoresUntilBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferenceScoresUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastScoresUntilBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferenceScoresUntilBlockRequest does not contain field %s", fd.FullName())) } } @@ -52305,44 +51768,44 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Set(fd protoreflec // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryForecastScoresUntilBlockRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryForecastScoresUntilBlockRequest is not mutable")) - case "emissions.v1.QueryForecastScoresUntilBlockRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryForecastScoresUntilBlockRequest is not mutable")) + case "emissions.v2.QueryInferenceScoresUntilBlockRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryInferenceScoresUntilBlockRequest is not mutable")) + case "emissions.v2.QueryInferenceScoresUntilBlockRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryInferenceScoresUntilBlockRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastScoresUntilBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferenceScoresUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastScoresUntilBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferenceScoresUntilBlockRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryForecastScoresUntilBlockRequest.topic_id": + case "emissions.v2.QueryInferenceScoresUntilBlockRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryForecastScoresUntilBlockRequest.block_height": + case "emissions.v2.QueryInferenceScoresUntilBlockRequest.block_height": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastScoresUntilBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferenceScoresUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastScoresUntilBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferenceScoresUntilBlockRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryForecastScoresUntilBlockRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryInferenceScoresUntilBlockRequest", d.FullName())) } panic("unreachable") } @@ -52350,7 +51813,7 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) WhichOneof(d proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -52361,7 +51824,7 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) GetUnknown() proto // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -52373,7 +51836,7 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) IsValid() bool { +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) IsValid() bool { return x != nil } @@ -52383,9 +51846,9 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryForecastScoresUntilBlockRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryInferenceScoresUntilBlockRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryForecastScoresUntilBlockRequest) + x := input.Message.Interface().(*QueryInferenceScoresUntilBlockRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -52413,7 +51876,7 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) ProtoMethods() *pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryForecastScoresUntilBlockRequest) + x := input.Message.Interface().(*QueryInferenceScoresUntilBlockRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -52453,7 +51916,7 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) ProtoMethods() *pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryForecastScoresUntilBlockRequest) + x := input.Message.Interface().(*QueryInferenceScoresUntilBlockRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -52485,10 +51948,10 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) ProtoMethods() *pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastScoresUntilBlockRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferenceScoresUntilBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastScoresUntilBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferenceScoresUntilBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -52564,78 +52027,78 @@ func (x *fastReflection_QueryForecastScoresUntilBlockRequest) ProtoMethods() *pr } } -var _ protoreflect.List = (*_QueryForecastScoresUntilBlockResponse_1_list)(nil) +var _ protoreflect.List = (*_QueryInferenceScoresUntilBlockResponse_1_list)(nil) -type _QueryForecastScoresUntilBlockResponse_1_list struct { +type _QueryInferenceScoresUntilBlockResponse_1_list struct { list *[]*Score } -func (x *_QueryForecastScoresUntilBlockResponse_1_list) Len() int { +func (x *_QueryInferenceScoresUntilBlockResponse_1_list) Len() int { if x.list == nil { return 0 } return len(*x.list) } -func (x *_QueryForecastScoresUntilBlockResponse_1_list) Get(i int) protoreflect.Value { +func (x *_QueryInferenceScoresUntilBlockResponse_1_list) Get(i int) protoreflect.Value { return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) } -func (x *_QueryForecastScoresUntilBlockResponse_1_list) Set(i int, value protoreflect.Value) { +func (x *_QueryInferenceScoresUntilBlockResponse_1_list) Set(i int, value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Score) (*x.list)[i] = concreteValue } -func (x *_QueryForecastScoresUntilBlockResponse_1_list) Append(value protoreflect.Value) { +func (x *_QueryInferenceScoresUntilBlockResponse_1_list) Append(value protoreflect.Value) { valueUnwrapped := value.Message() concreteValue := valueUnwrapped.Interface().(*Score) *x.list = append(*x.list, concreteValue) } -func (x *_QueryForecastScoresUntilBlockResponse_1_list) AppendMutable() protoreflect.Value { +func (x *_QueryInferenceScoresUntilBlockResponse_1_list) AppendMutable() protoreflect.Value { v := new(Score) *x.list = append(*x.list, v) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryForecastScoresUntilBlockResponse_1_list) Truncate(n int) { +func (x *_QueryInferenceScoresUntilBlockResponse_1_list) Truncate(n int) { for i := n; i < len(*x.list); i++ { (*x.list)[i] = nil } *x.list = (*x.list)[:n] } -func (x *_QueryForecastScoresUntilBlockResponse_1_list) NewElement() protoreflect.Value { +func (x *_QueryInferenceScoresUntilBlockResponse_1_list) NewElement() protoreflect.Value { v := new(Score) return protoreflect.ValueOfMessage(v.ProtoReflect()) } -func (x *_QueryForecastScoresUntilBlockResponse_1_list) IsValid() bool { +func (x *_QueryInferenceScoresUntilBlockResponse_1_list) IsValid() bool { return x.list != nil } var ( - md_QueryForecastScoresUntilBlockResponse protoreflect.MessageDescriptor - fd_QueryForecastScoresUntilBlockResponse_scores protoreflect.FieldDescriptor + md_QueryInferenceScoresUntilBlockResponse protoreflect.MessageDescriptor + fd_QueryInferenceScoresUntilBlockResponse_scores protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryForecastScoresUntilBlockResponse = File_emissions_v1_query_proto.Messages().ByName("QueryForecastScoresUntilBlockResponse") - fd_QueryForecastScoresUntilBlockResponse_scores = md_QueryForecastScoresUntilBlockResponse.Fields().ByName("scores") + file_emissions_v2_query_proto_init() + md_QueryInferenceScoresUntilBlockResponse = File_emissions_v2_query_proto.Messages().ByName("QueryInferenceScoresUntilBlockResponse") + fd_QueryInferenceScoresUntilBlockResponse_scores = md_QueryInferenceScoresUntilBlockResponse.Fields().ByName("scores") } -var _ protoreflect.Message = (*fastReflection_QueryForecastScoresUntilBlockResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryInferenceScoresUntilBlockResponse)(nil) -type fastReflection_QueryForecastScoresUntilBlockResponse QueryForecastScoresUntilBlockResponse +type fastReflection_QueryInferenceScoresUntilBlockResponse QueryInferenceScoresUntilBlockResponse -func (x *QueryForecastScoresUntilBlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryForecastScoresUntilBlockResponse)(x) +func (x *QueryInferenceScoresUntilBlockResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryInferenceScoresUntilBlockResponse)(x) } -func (x *QueryForecastScoresUntilBlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[117] +func (x *QueryInferenceScoresUntilBlockResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[115] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -52646,43 +52109,43 @@ func (x *QueryForecastScoresUntilBlockResponse) slowProtoReflect() protoreflect. return mi.MessageOf(x) } -var _fastReflection_QueryForecastScoresUntilBlockResponse_messageType fastReflection_QueryForecastScoresUntilBlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryForecastScoresUntilBlockResponse_messageType{} +var _fastReflection_QueryInferenceScoresUntilBlockResponse_messageType fastReflection_QueryInferenceScoresUntilBlockResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryInferenceScoresUntilBlockResponse_messageType{} -type fastReflection_QueryForecastScoresUntilBlockResponse_messageType struct{} +type fastReflection_QueryInferenceScoresUntilBlockResponse_messageType struct{} -func (x fastReflection_QueryForecastScoresUntilBlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryForecastScoresUntilBlockResponse)(nil) +func (x fastReflection_QueryInferenceScoresUntilBlockResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryInferenceScoresUntilBlockResponse)(nil) } -func (x fastReflection_QueryForecastScoresUntilBlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryForecastScoresUntilBlockResponse) +func (x fastReflection_QueryInferenceScoresUntilBlockResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryInferenceScoresUntilBlockResponse) } -func (x fastReflection_QueryForecastScoresUntilBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryForecastScoresUntilBlockResponse +func (x fastReflection_QueryInferenceScoresUntilBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInferenceScoresUntilBlockResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryForecastScoresUntilBlockResponse +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryInferenceScoresUntilBlockResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryForecastScoresUntilBlockResponse_messageType +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryInferenceScoresUntilBlockResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) New() protoreflect.Message { - return new(fastReflection_QueryForecastScoresUntilBlockResponse) +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) New() protoreflect.Message { + return new(fastReflection_QueryInferenceScoresUntilBlockResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Interface() protoreflect.ProtoMessage { - return (*QueryForecastScoresUntilBlockResponse)(x) +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Interface() protoreflect.ProtoMessage { + return (*QueryInferenceScoresUntilBlockResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -52690,10 +52153,10 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Interface() proto // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if len(x.Scores) != 0 { - value := protoreflect.ValueOfList(&_QueryForecastScoresUntilBlockResponse_1_list{list: &x.Scores}) - if !f(fd_QueryForecastScoresUntilBlockResponse_scores, value) { + value := protoreflect.ValueOfList(&_QueryInferenceScoresUntilBlockResponse_1_list{list: &x.Scores}) + if !f(fd_QueryInferenceScoresUntilBlockResponse_scores, value) { return } } @@ -52710,15 +52173,15 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Range(f func(prot // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryForecastScoresUntilBlockResponse.scores": + case "emissions.v2.QueryInferenceScoresUntilBlockResponse.scores": return len(x.Scores) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastScoresUntilBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferenceScoresUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastScoresUntilBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferenceScoresUntilBlockResponse does not contain field %s", fd.FullName())) } } @@ -52728,15 +52191,15 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Has(fd protorefle // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryForecastScoresUntilBlockResponse.scores": + case "emissions.v2.QueryInferenceScoresUntilBlockResponse.scores": x.Scores = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastScoresUntilBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferenceScoresUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastScoresUntilBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferenceScoresUntilBlockResponse does not contain field %s", fd.FullName())) } } @@ -52746,19 +52209,19 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Clear(fd protoref // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryForecastScoresUntilBlockResponse.scores": + case "emissions.v2.QueryInferenceScoresUntilBlockResponse.scores": if len(x.Scores) == 0 { - return protoreflect.ValueOfList(&_QueryForecastScoresUntilBlockResponse_1_list{}) + return protoreflect.ValueOfList(&_QueryInferenceScoresUntilBlockResponse_1_list{}) } - listValue := &_QueryForecastScoresUntilBlockResponse_1_list{list: &x.Scores} + listValue := &_QueryInferenceScoresUntilBlockResponse_1_list{list: &x.Scores} return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastScoresUntilBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferenceScoresUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastScoresUntilBlockResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferenceScoresUntilBlockResponse does not contain field %s", descriptor.FullName())) } } @@ -52772,17 +52235,17 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Get(descriptor pr // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryForecastScoresUntilBlockResponse.scores": + case "emissions.v2.QueryInferenceScoresUntilBlockResponse.scores": lv := value.List() - clv := lv.(*_QueryForecastScoresUntilBlockResponse_1_list) + clv := lv.(*_QueryInferenceScoresUntilBlockResponse_1_list) x.Scores = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastScoresUntilBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferenceScoresUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastScoresUntilBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferenceScoresUntilBlockResponse does not contain field %s", fd.FullName())) } } @@ -52796,45 +52259,45 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Set(fd protorefle // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryForecastScoresUntilBlockResponse.scores": + case "emissions.v2.QueryInferenceScoresUntilBlockResponse.scores": if x.Scores == nil { x.Scores = []*Score{} } - value := &_QueryForecastScoresUntilBlockResponse_1_list{list: &x.Scores} + value := &_QueryInferenceScoresUntilBlockResponse_1_list{list: &x.Scores} return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastScoresUntilBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferenceScoresUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastScoresUntilBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferenceScoresUntilBlockResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryForecastScoresUntilBlockResponse.scores": + case "emissions.v2.QueryInferenceScoresUntilBlockResponse.scores": list := []*Score{} - return protoreflect.ValueOfList(&_QueryForecastScoresUntilBlockResponse_1_list{list: &list}) + return protoreflect.ValueOfList(&_QueryInferenceScoresUntilBlockResponse_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryForecastScoresUntilBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryInferenceScoresUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryForecastScoresUntilBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryInferenceScoresUntilBlockResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryForecastScoresUntilBlockResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryInferenceScoresUntilBlockResponse", d.FullName())) } panic("unreachable") } @@ -52842,7 +52305,7 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) WhichOneof(d prot // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -52853,7 +52316,7 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) GetUnknown() prot // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -52865,7 +52328,7 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) IsValid() bool { +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) IsValid() bool { return x != nil } @@ -52875,9 +52338,9 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryForecastScoresUntilBlockResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryInferenceScoresUntilBlockResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryForecastScoresUntilBlockResponse) + x := input.Message.Interface().(*QueryInferenceScoresUntilBlockResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -52905,7 +52368,7 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) ProtoMethods() *p } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryForecastScoresUntilBlockResponse) + x := input.Message.Interface().(*QueryInferenceScoresUntilBlockResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -52951,7 +52414,7 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) ProtoMethods() *p }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryForecastScoresUntilBlockResponse) + x := input.Message.Interface().(*QueryInferenceScoresUntilBlockResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -52983,10 +52446,10 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) ProtoMethods() *p fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastScoresUntilBlockResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferenceScoresUntilBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastScoresUntilBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryInferenceScoresUntilBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -53059,28 +52522,28 @@ func (x *fastReflection_QueryForecastScoresUntilBlockResponse) ProtoMethods() *p } var ( - md_QueryWorkerForecastScoresAtBlockRequest protoreflect.MessageDescriptor - fd_QueryWorkerForecastScoresAtBlockRequest_topic_id protoreflect.FieldDescriptor - fd_QueryWorkerForecastScoresAtBlockRequest_block_height protoreflect.FieldDescriptor + md_QueryWorkerInferenceScoresAtBlockRequest protoreflect.MessageDescriptor + fd_QueryWorkerInferenceScoresAtBlockRequest_topic_id protoreflect.FieldDescriptor + fd_QueryWorkerInferenceScoresAtBlockRequest_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryWorkerForecastScoresAtBlockRequest = File_emissions_v1_query_proto.Messages().ByName("QueryWorkerForecastScoresAtBlockRequest") - fd_QueryWorkerForecastScoresAtBlockRequest_topic_id = md_QueryWorkerForecastScoresAtBlockRequest.Fields().ByName("topic_id") - fd_QueryWorkerForecastScoresAtBlockRequest_block_height = md_QueryWorkerForecastScoresAtBlockRequest.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryWorkerInferenceScoresAtBlockRequest = File_emissions_v2_query_proto.Messages().ByName("QueryWorkerInferenceScoresAtBlockRequest") + fd_QueryWorkerInferenceScoresAtBlockRequest_topic_id = md_QueryWorkerInferenceScoresAtBlockRequest.Fields().ByName("topic_id") + fd_QueryWorkerInferenceScoresAtBlockRequest_block_height = md_QueryWorkerInferenceScoresAtBlockRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryWorkerForecastScoresAtBlockRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryWorkerInferenceScoresAtBlockRequest)(nil) -type fastReflection_QueryWorkerForecastScoresAtBlockRequest QueryWorkerForecastScoresAtBlockRequest +type fastReflection_QueryWorkerInferenceScoresAtBlockRequest QueryWorkerInferenceScoresAtBlockRequest -func (x *QueryWorkerForecastScoresAtBlockRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryWorkerForecastScoresAtBlockRequest)(x) +func (x *QueryWorkerInferenceScoresAtBlockRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryWorkerInferenceScoresAtBlockRequest)(x) } -func (x *QueryWorkerForecastScoresAtBlockRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[118] +func (x *QueryWorkerInferenceScoresAtBlockRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[116] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -53091,43 +52554,43 @@ func (x *QueryWorkerForecastScoresAtBlockRequest) slowProtoReflect() protoreflec return mi.MessageOf(x) } -var _fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType{} +var _fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType{} -type fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType struct{} +type fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType struct{} -func (x fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryWorkerForecastScoresAtBlockRequest)(nil) +func (x fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryWorkerInferenceScoresAtBlockRequest)(nil) } -func (x fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryWorkerForecastScoresAtBlockRequest) +func (x fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryWorkerInferenceScoresAtBlockRequest) } -func (x fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerForecastScoresAtBlockRequest +func (x fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerInferenceScoresAtBlockRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerForecastScoresAtBlockRequest +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerInferenceScoresAtBlockRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryWorkerInferenceScoresAtBlockRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) New() protoreflect.Message { - return new(fastReflection_QueryWorkerForecastScoresAtBlockRequest) +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) New() protoreflect.Message { + return new(fastReflection_QueryWorkerInferenceScoresAtBlockRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Interface() protoreflect.ProtoMessage { - return (*QueryWorkerForecastScoresAtBlockRequest)(x) +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Interface() protoreflect.ProtoMessage { + return (*QueryWorkerInferenceScoresAtBlockRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -53135,16 +52598,16 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Interface() pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryWorkerForecastScoresAtBlockRequest_topic_id, value) { + if !f(fd_QueryWorkerInferenceScoresAtBlockRequest_topic_id, value) { return } } if x.BlockHeight != int64(0) { value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryWorkerForecastScoresAtBlockRequest_block_height, value) { + if !f(fd_QueryWorkerInferenceScoresAtBlockRequest_block_height, value) { return } } @@ -53161,17 +52624,17 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Range(f func(pr // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryWorkerForecastScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryWorkerForecastScoresAtBlockRequest.block_height": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockRequest.block_height": return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerForecastScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerInferenceScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerForecastScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerInferenceScoresAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -53181,17 +52644,17 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Has(fd protoref // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryWorkerForecastScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryWorkerForecastScoresAtBlockRequest.block_height": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockRequest.block_height": x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerForecastScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerInferenceScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerForecastScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerInferenceScoresAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -53201,19 +52664,19 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Clear(fd protor // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryWorkerForecastScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryWorkerForecastScoresAtBlockRequest.block_height": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockRequest.block_height": value := x.BlockHeight return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerForecastScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerInferenceScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerForecastScoresAtBlockRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerInferenceScoresAtBlockRequest does not contain field %s", descriptor.FullName())) } } @@ -53227,17 +52690,17 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Get(descriptor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryWorkerForecastScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryWorkerForecastScoresAtBlockRequest.block_height": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockRequest.block_height": x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerForecastScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerInferenceScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerForecastScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerInferenceScoresAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -53251,44 +52714,44 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Set(fd protoref // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerForecastScoresAtBlockRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryWorkerForecastScoresAtBlockRequest is not mutable")) - case "emissions.v1.QueryWorkerForecastScoresAtBlockRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryWorkerForecastScoresAtBlockRequest is not mutable")) + case "emissions.v2.QueryWorkerInferenceScoresAtBlockRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryWorkerInferenceScoresAtBlockRequest is not mutable")) + case "emissions.v2.QueryWorkerInferenceScoresAtBlockRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryWorkerInferenceScoresAtBlockRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerForecastScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerInferenceScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerForecastScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerInferenceScoresAtBlockRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerForecastScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryWorkerForecastScoresAtBlockRequest.block_height": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockRequest.block_height": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerForecastScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerInferenceScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerForecastScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerInferenceScoresAtBlockRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryWorkerForecastScoresAtBlockRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryWorkerInferenceScoresAtBlockRequest", d.FullName())) } panic("unreachable") } @@ -53296,7 +52759,7 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) WhichOneof(d pr // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -53307,7 +52770,7 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) GetUnknown() pr // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -53319,7 +52782,7 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) SetUnknown(fiel // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) IsValid() bool { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) IsValid() bool { return x != nil } @@ -53329,9 +52792,9 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) IsValid() bool // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryWorkerForecastScoresAtBlockRequest) + x := input.Message.Interface().(*QueryWorkerInferenceScoresAtBlockRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -53359,7 +52822,7 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) ProtoMethods() } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerForecastScoresAtBlockRequest) + x := input.Message.Interface().(*QueryWorkerInferenceScoresAtBlockRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -53399,7 +52862,7 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) ProtoMethods() }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerForecastScoresAtBlockRequest) + x := input.Message.Interface().(*QueryWorkerInferenceScoresAtBlockRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -53431,10 +52894,10 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) ProtoMethods() fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerForecastScoresAtBlockRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerInferenceScoresAtBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerForecastScoresAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerInferenceScoresAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -53511,26 +52974,26 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) ProtoMethods() } var ( - md_QueryWorkerForecastScoresAtBlockResponse protoreflect.MessageDescriptor - fd_QueryWorkerForecastScoresAtBlockResponse_scores protoreflect.FieldDescriptor + md_QueryWorkerInferenceScoresAtBlockResponse protoreflect.MessageDescriptor + fd_QueryWorkerInferenceScoresAtBlockResponse_scores protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryWorkerForecastScoresAtBlockResponse = File_emissions_v1_query_proto.Messages().ByName("QueryWorkerForecastScoresAtBlockResponse") - fd_QueryWorkerForecastScoresAtBlockResponse_scores = md_QueryWorkerForecastScoresAtBlockResponse.Fields().ByName("scores") + file_emissions_v2_query_proto_init() + md_QueryWorkerInferenceScoresAtBlockResponse = File_emissions_v2_query_proto.Messages().ByName("QueryWorkerInferenceScoresAtBlockResponse") + fd_QueryWorkerInferenceScoresAtBlockResponse_scores = md_QueryWorkerInferenceScoresAtBlockResponse.Fields().ByName("scores") } -var _ protoreflect.Message = (*fastReflection_QueryWorkerForecastScoresAtBlockResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryWorkerInferenceScoresAtBlockResponse)(nil) -type fastReflection_QueryWorkerForecastScoresAtBlockResponse QueryWorkerForecastScoresAtBlockResponse +type fastReflection_QueryWorkerInferenceScoresAtBlockResponse QueryWorkerInferenceScoresAtBlockResponse -func (x *QueryWorkerForecastScoresAtBlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryWorkerForecastScoresAtBlockResponse)(x) +func (x *QueryWorkerInferenceScoresAtBlockResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryWorkerInferenceScoresAtBlockResponse)(x) } -func (x *QueryWorkerForecastScoresAtBlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[119] +func (x *QueryWorkerInferenceScoresAtBlockResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[117] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -53541,43 +53004,43 @@ func (x *QueryWorkerForecastScoresAtBlockResponse) slowProtoReflect() protorefle return mi.MessageOf(x) } -var _fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType{} +var _fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType{} -type fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType struct{} +type fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType struct{} -func (x fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryWorkerForecastScoresAtBlockResponse)(nil) +func (x fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryWorkerInferenceScoresAtBlockResponse)(nil) } -func (x fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryWorkerForecastScoresAtBlockResponse) +func (x fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryWorkerInferenceScoresAtBlockResponse) } -func (x fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerForecastScoresAtBlockResponse +func (x fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerInferenceScoresAtBlockResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryWorkerForecastScoresAtBlockResponse +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerInferenceScoresAtBlockResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryWorkerInferenceScoresAtBlockResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) New() protoreflect.Message { - return new(fastReflection_QueryWorkerForecastScoresAtBlockResponse) +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) New() protoreflect.Message { + return new(fastReflection_QueryWorkerInferenceScoresAtBlockResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Interface() protoreflect.ProtoMessage { - return (*QueryWorkerForecastScoresAtBlockResponse)(x) +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Interface() protoreflect.ProtoMessage { + return (*QueryWorkerInferenceScoresAtBlockResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -53585,10 +53048,10 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Interface() pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Scores != nil { value := protoreflect.ValueOfMessage(x.Scores.ProtoReflect()) - if !f(fd_QueryWorkerForecastScoresAtBlockResponse_scores, value) { + if !f(fd_QueryWorkerInferenceScoresAtBlockResponse_scores, value) { return } } @@ -53605,15 +53068,15 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Range(f func(p // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryWorkerForecastScoresAtBlockResponse.scores": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockResponse.scores": return x.Scores != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerForecastScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerInferenceScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerForecastScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerInferenceScoresAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -53623,15 +53086,15 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Has(fd protore // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryWorkerForecastScoresAtBlockResponse.scores": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockResponse.scores": x.Scores = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerForecastScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerInferenceScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerForecastScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerInferenceScoresAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -53641,16 +53104,16 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Clear(fd proto // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryWorkerForecastScoresAtBlockResponse.scores": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockResponse.scores": value := x.Scores return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerForecastScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerInferenceScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerForecastScoresAtBlockResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerInferenceScoresAtBlockResponse does not contain field %s", descriptor.FullName())) } } @@ -53664,15 +53127,15 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Get(descriptor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryWorkerForecastScoresAtBlockResponse.scores": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockResponse.scores": x.Scores = value.Message().Interface().(*Scores) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerForecastScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerInferenceScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerForecastScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerInferenceScoresAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -53686,44 +53149,44 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Set(fd protore // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerForecastScoresAtBlockResponse.scores": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockResponse.scores": if x.Scores == nil { x.Scores = new(Scores) } return protoreflect.ValueOfMessage(x.Scores.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerForecastScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerInferenceScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerForecastScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerInferenceScoresAtBlockResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryWorkerForecastScoresAtBlockResponse.scores": + case "emissions.v2.QueryWorkerInferenceScoresAtBlockResponse.scores": m := new(Scores) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryWorkerForecastScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerInferenceScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryWorkerForecastScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerInferenceScoresAtBlockResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryWorkerForecastScoresAtBlockResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryWorkerInferenceScoresAtBlockResponse", d.FullName())) } panic("unreachable") } @@ -53731,7 +53194,7 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) WhichOneof(d p // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -53742,7 +53205,7 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) GetUnknown() p // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -53754,7 +53217,7 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) SetUnknown(fie // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) IsValid() bool { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) IsValid() bool { return x != nil } @@ -53764,9 +53227,9 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) IsValid() bool // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryWorkerInferenceScoresAtBlockResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryWorkerForecastScoresAtBlockResponse) + x := input.Message.Interface().(*QueryWorkerInferenceScoresAtBlockResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -53792,7 +53255,7 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) ProtoMethods() } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerForecastScoresAtBlockResponse) + x := input.Message.Interface().(*QueryWorkerInferenceScoresAtBlockResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -53836,7 +53299,7 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) ProtoMethods() }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryWorkerForecastScoresAtBlockResponse) + x := input.Message.Interface().(*QueryWorkerInferenceScoresAtBlockResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -53868,10 +53331,10 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) ProtoMethods() fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerForecastScoresAtBlockResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerInferenceScoresAtBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerForecastScoresAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerInferenceScoresAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -53946,28 +53409,28 @@ func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) ProtoMethods() } var ( - md_QueryReputersScoresAtBlockRequest protoreflect.MessageDescriptor - fd_QueryReputersScoresAtBlockRequest_topic_id protoreflect.FieldDescriptor - fd_QueryReputersScoresAtBlockRequest_block_height protoreflect.FieldDescriptor + md_QueryForecastScoresUntilBlockRequest protoreflect.MessageDescriptor + fd_QueryForecastScoresUntilBlockRequest_topic_id protoreflect.FieldDescriptor + fd_QueryForecastScoresUntilBlockRequest_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryReputersScoresAtBlockRequest = File_emissions_v1_query_proto.Messages().ByName("QueryReputersScoresAtBlockRequest") - fd_QueryReputersScoresAtBlockRequest_topic_id = md_QueryReputersScoresAtBlockRequest.Fields().ByName("topic_id") - fd_QueryReputersScoresAtBlockRequest_block_height = md_QueryReputersScoresAtBlockRequest.Fields().ByName("block_height") + file_emissions_v2_query_proto_init() + md_QueryForecastScoresUntilBlockRequest = File_emissions_v2_query_proto.Messages().ByName("QueryForecastScoresUntilBlockRequest") + fd_QueryForecastScoresUntilBlockRequest_topic_id = md_QueryForecastScoresUntilBlockRequest.Fields().ByName("topic_id") + fd_QueryForecastScoresUntilBlockRequest_block_height = md_QueryForecastScoresUntilBlockRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryReputersScoresAtBlockRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryForecastScoresUntilBlockRequest)(nil) -type fastReflection_QueryReputersScoresAtBlockRequest QueryReputersScoresAtBlockRequest +type fastReflection_QueryForecastScoresUntilBlockRequest QueryForecastScoresUntilBlockRequest -func (x *QueryReputersScoresAtBlockRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryReputersScoresAtBlockRequest)(x) +func (x *QueryForecastScoresUntilBlockRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryForecastScoresUntilBlockRequest)(x) } -func (x *QueryReputersScoresAtBlockRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[120] +func (x *QueryForecastScoresUntilBlockRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[118] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -53978,43 +53441,43 @@ func (x *QueryReputersScoresAtBlockRequest) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryReputersScoresAtBlockRequest_messageType fastReflection_QueryReputersScoresAtBlockRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryReputersScoresAtBlockRequest_messageType{} +var _fastReflection_QueryForecastScoresUntilBlockRequest_messageType fastReflection_QueryForecastScoresUntilBlockRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryForecastScoresUntilBlockRequest_messageType{} -type fastReflection_QueryReputersScoresAtBlockRequest_messageType struct{} +type fastReflection_QueryForecastScoresUntilBlockRequest_messageType struct{} -func (x fastReflection_QueryReputersScoresAtBlockRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryReputersScoresAtBlockRequest)(nil) +func (x fastReflection_QueryForecastScoresUntilBlockRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryForecastScoresUntilBlockRequest)(nil) } -func (x fastReflection_QueryReputersScoresAtBlockRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryReputersScoresAtBlockRequest) +func (x fastReflection_QueryForecastScoresUntilBlockRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryForecastScoresUntilBlockRequest) } -func (x fastReflection_QueryReputersScoresAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputersScoresAtBlockRequest +func (x fastReflection_QueryForecastScoresUntilBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryForecastScoresUntilBlockRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputersScoresAtBlockRequest +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryForecastScoresUntilBlockRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryReputersScoresAtBlockRequest_messageType +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryForecastScoresUntilBlockRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) New() protoreflect.Message { - return new(fastReflection_QueryReputersScoresAtBlockRequest) +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) New() protoreflect.Message { + return new(fastReflection_QueryForecastScoresUntilBlockRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) Interface() protoreflect.ProtoMessage { - return (*QueryReputersScoresAtBlockRequest)(x) +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Interface() protoreflect.ProtoMessage { + return (*QueryForecastScoresUntilBlockRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -54022,16 +53485,16 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryReputersScoresAtBlockRequest_topic_id, value) { + if !f(fd_QueryForecastScoresUntilBlockRequest_topic_id, value) { return } } if x.BlockHeight != int64(0) { value := protoreflect.ValueOfInt64(x.BlockHeight) - if !f(fd_QueryReputersScoresAtBlockRequest_block_height, value) { + if !f(fd_QueryForecastScoresUntilBlockRequest_block_height, value) { return } } @@ -54048,17 +53511,17 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryReputersScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryForecastScoresUntilBlockRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryReputersScoresAtBlockRequest.block_height": + case "emissions.v2.QueryForecastScoresUntilBlockRequest.block_height": return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputersScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastScoresUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputersScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastScoresUntilBlockRequest does not contain field %s", fd.FullName())) } } @@ -54068,17 +53531,17 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryReputersScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryForecastScoresUntilBlockRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryReputersScoresAtBlockRequest.block_height": + case "emissions.v2.QueryForecastScoresUntilBlockRequest.block_height": x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputersScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastScoresUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputersScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastScoresUntilBlockRequest does not contain field %s", fd.FullName())) } } @@ -54088,19 +53551,19 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryReputersScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryForecastScoresUntilBlockRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryReputersScoresAtBlockRequest.block_height": + case "emissions.v2.QueryForecastScoresUntilBlockRequest.block_height": value := x.BlockHeight return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputersScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastScoresUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputersScoresAtBlockRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastScoresUntilBlockRequest does not contain field %s", descriptor.FullName())) } } @@ -54114,17 +53577,17 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryReputersScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryForecastScoresUntilBlockRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryReputersScoresAtBlockRequest.block_height": + case "emissions.v2.QueryForecastScoresUntilBlockRequest.block_height": x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputersScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastScoresUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputersScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastScoresUntilBlockRequest does not contain field %s", fd.FullName())) } } @@ -54138,44 +53601,44 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputersScoresAtBlockRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryReputersScoresAtBlockRequest is not mutable")) - case "emissions.v1.QueryReputersScoresAtBlockRequest.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.QueryReputersScoresAtBlockRequest is not mutable")) + case "emissions.v2.QueryForecastScoresUntilBlockRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryForecastScoresUntilBlockRequest is not mutable")) + case "emissions.v2.QueryForecastScoresUntilBlockRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryForecastScoresUntilBlockRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputersScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastScoresUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputersScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastScoresUntilBlockRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputersScoresAtBlockRequest.topic_id": + case "emissions.v2.QueryForecastScoresUntilBlockRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryReputersScoresAtBlockRequest.block_height": + case "emissions.v2.QueryForecastScoresUntilBlockRequest.block_height": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputersScoresAtBlockRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastScoresUntilBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryReputersScoresAtBlockRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastScoresUntilBlockRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryReputersScoresAtBlockRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryForecastScoresUntilBlockRequest", d.FullName())) } panic("unreachable") } @@ -54183,7 +53646,7 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -54194,7 +53657,7 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -54206,7 +53669,7 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) IsValid() bool { +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) IsValid() bool { return x != nil } @@ -54216,9 +53679,9 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryReputersScoresAtBlockRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryForecastScoresUntilBlockRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryReputersScoresAtBlockRequest) + x := input.Message.Interface().(*QueryForecastScoresUntilBlockRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -54246,7 +53709,7 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryReputersScoresAtBlockRequest) + x := input.Message.Interface().(*QueryForecastScoresUntilBlockRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -54286,7 +53749,7 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryReputersScoresAtBlockRequest) + x := input.Message.Interface().(*QueryForecastScoresUntilBlockRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -54318,10 +53781,10 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputersScoresAtBlockRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastScoresUntilBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputersScoresAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastScoresUntilBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -54397,27 +53860,78 @@ func (x *fastReflection_QueryReputersScoresAtBlockRequest) ProtoMethods() *proto } } +var _ protoreflect.List = (*_QueryForecastScoresUntilBlockResponse_1_list)(nil) + +type _QueryForecastScoresUntilBlockResponse_1_list struct { + list *[]*Score +} + +func (x *_QueryForecastScoresUntilBlockResponse_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_QueryForecastScoresUntilBlockResponse_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_QueryForecastScoresUntilBlockResponse_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Score) + (*x.list)[i] = concreteValue +} + +func (x *_QueryForecastScoresUntilBlockResponse_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Score) + *x.list = append(*x.list, concreteValue) +} + +func (x *_QueryForecastScoresUntilBlockResponse_1_list) AppendMutable() protoreflect.Value { + v := new(Score) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryForecastScoresUntilBlockResponse_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_QueryForecastScoresUntilBlockResponse_1_list) NewElement() protoreflect.Value { + v := new(Score) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_QueryForecastScoresUntilBlockResponse_1_list) IsValid() bool { + return x.list != nil +} + var ( - md_QueryReputersScoresAtBlockResponse protoreflect.MessageDescriptor - fd_QueryReputersScoresAtBlockResponse_scores protoreflect.FieldDescriptor + md_QueryForecastScoresUntilBlockResponse protoreflect.MessageDescriptor + fd_QueryForecastScoresUntilBlockResponse_scores protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryReputersScoresAtBlockResponse = File_emissions_v1_query_proto.Messages().ByName("QueryReputersScoresAtBlockResponse") - fd_QueryReputersScoresAtBlockResponse_scores = md_QueryReputersScoresAtBlockResponse.Fields().ByName("scores") + file_emissions_v2_query_proto_init() + md_QueryForecastScoresUntilBlockResponse = File_emissions_v2_query_proto.Messages().ByName("QueryForecastScoresUntilBlockResponse") + fd_QueryForecastScoresUntilBlockResponse_scores = md_QueryForecastScoresUntilBlockResponse.Fields().ByName("scores") } -var _ protoreflect.Message = (*fastReflection_QueryReputersScoresAtBlockResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryForecastScoresUntilBlockResponse)(nil) -type fastReflection_QueryReputersScoresAtBlockResponse QueryReputersScoresAtBlockResponse +type fastReflection_QueryForecastScoresUntilBlockResponse QueryForecastScoresUntilBlockResponse -func (x *QueryReputersScoresAtBlockResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryReputersScoresAtBlockResponse)(x) +func (x *QueryForecastScoresUntilBlockResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryForecastScoresUntilBlockResponse)(x) } -func (x *QueryReputersScoresAtBlockResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[121] +func (x *QueryForecastScoresUntilBlockResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[119] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -54428,43 +53942,43 @@ func (x *QueryReputersScoresAtBlockResponse) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryReputersScoresAtBlockResponse_messageType fastReflection_QueryReputersScoresAtBlockResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryReputersScoresAtBlockResponse_messageType{} +var _fastReflection_QueryForecastScoresUntilBlockResponse_messageType fastReflection_QueryForecastScoresUntilBlockResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryForecastScoresUntilBlockResponse_messageType{} -type fastReflection_QueryReputersScoresAtBlockResponse_messageType struct{} +type fastReflection_QueryForecastScoresUntilBlockResponse_messageType struct{} -func (x fastReflection_QueryReputersScoresAtBlockResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryReputersScoresAtBlockResponse)(nil) +func (x fastReflection_QueryForecastScoresUntilBlockResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryForecastScoresUntilBlockResponse)(nil) } -func (x fastReflection_QueryReputersScoresAtBlockResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryReputersScoresAtBlockResponse) +func (x fastReflection_QueryForecastScoresUntilBlockResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryForecastScoresUntilBlockResponse) } -func (x fastReflection_QueryReputersScoresAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputersScoresAtBlockResponse +func (x fastReflection_QueryForecastScoresUntilBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryForecastScoresUntilBlockResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryReputersScoresAtBlockResponse +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryForecastScoresUntilBlockResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryReputersScoresAtBlockResponse_messageType +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryForecastScoresUntilBlockResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) New() protoreflect.Message { - return new(fastReflection_QueryReputersScoresAtBlockResponse) +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) New() protoreflect.Message { + return new(fastReflection_QueryForecastScoresUntilBlockResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) Interface() protoreflect.ProtoMessage { - return (*QueryReputersScoresAtBlockResponse)(x) +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Interface() protoreflect.ProtoMessage { + return (*QueryForecastScoresUntilBlockResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -54472,10 +53986,10 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Scores != nil { - value := protoreflect.ValueOfMessage(x.Scores.ProtoReflect()) - if !f(fd_QueryReputersScoresAtBlockResponse_scores, value) { +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Scores) != 0 { + value := protoreflect.ValueOfList(&_QueryForecastScoresUntilBlockResponse_1_list{list: &x.Scores}) + if !f(fd_QueryForecastScoresUntilBlockResponse_scores, value) { return } } @@ -54492,15 +54006,15 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryReputersScoresAtBlockResponse.scores": - return x.Scores != nil + case "emissions.v2.QueryForecastScoresUntilBlockResponse.scores": + return len(x.Scores) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputersScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastScoresUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputersScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastScoresUntilBlockResponse does not contain field %s", fd.FullName())) } } @@ -54510,15 +54024,15 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryReputersScoresAtBlockResponse.scores": + case "emissions.v2.QueryForecastScoresUntilBlockResponse.scores": x.Scores = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputersScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastScoresUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputersScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastScoresUntilBlockResponse does not contain field %s", fd.FullName())) } } @@ -54528,16 +54042,19 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryReputersScoresAtBlockResponse.scores": - value := x.Scores - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryForecastScoresUntilBlockResponse.scores": + if len(x.Scores) == 0 { + return protoreflect.ValueOfList(&_QueryForecastScoresUntilBlockResponse_1_list{}) + } + listValue := &_QueryForecastScoresUntilBlockResponse_1_list{list: &x.Scores} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputersScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastScoresUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputersScoresAtBlockResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastScoresUntilBlockResponse does not contain field %s", descriptor.FullName())) } } @@ -54551,15 +54068,17 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryReputersScoresAtBlockResponse.scores": - x.Scores = value.Message().Interface().(*Scores) + case "emissions.v2.QueryForecastScoresUntilBlockResponse.scores": + lv := value.List() + clv := lv.(*_QueryForecastScoresUntilBlockResponse_1_list) + x.Scores = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputersScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastScoresUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputersScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastScoresUntilBlockResponse does not contain field %s", fd.FullName())) } } @@ -54573,44 +54092,45 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputersScoresAtBlockResponse.scores": + case "emissions.v2.QueryForecastScoresUntilBlockResponse.scores": if x.Scores == nil { - x.Scores = new(Scores) + x.Scores = []*Score{} } - return protoreflect.ValueOfMessage(x.Scores.ProtoReflect()) + value := &_QueryForecastScoresUntilBlockResponse_1_list{list: &x.Scores} + return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputersScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastScoresUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputersScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastScoresUntilBlockResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryReputersScoresAtBlockResponse.scores": - m := new(Scores) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryForecastScoresUntilBlockResponse.scores": + list := []*Score{} + return protoreflect.ValueOfList(&_QueryForecastScoresUntilBlockResponse_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryReputersScoresAtBlockResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryForecastScoresUntilBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryReputersScoresAtBlockResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryForecastScoresUntilBlockResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryReputersScoresAtBlockResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryForecastScoresUntilBlockResponse", d.FullName())) } panic("unreachable") } @@ -54618,7 +54138,7 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -54629,7 +54149,7 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -54641,7 +54161,7 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) IsValid() bool { +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) IsValid() bool { return x != nil } @@ -54651,9 +54171,9 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryReputersScoresAtBlockResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryForecastScoresUntilBlockResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryReputersScoresAtBlockResponse) + x := input.Message.Interface().(*QueryForecastScoresUntilBlockResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -54665,9 +54185,11 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) ProtoMethods() *prot var n int var l int _ = l - if x.Scores != nil { - l = options.Size(x.Scores) - n += 1 + l + runtime.Sov(uint64(l)) + if len(x.Scores) > 0 { + for _, e := range x.Scores { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } } if x.unknownFields != nil { n += len(x.unknownFields) @@ -54679,7 +54201,7 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryReputersScoresAtBlockResponse) + x := input.Message.Interface().(*QueryForecastScoresUntilBlockResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -54698,19 +54220,21 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) ProtoMethods() *prot i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Scores != nil { - encoded, err := options.Marshal(x.Scores) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err + if len(x.Scores) > 0 { + for iNdEx := len(x.Scores) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Scores[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0xa } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) @@ -54723,7 +54247,7 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryReputersScoresAtBlockResponse) + x := input.Message.Interface().(*QueryForecastScoresUntilBlockResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -54755,10 +54279,10 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputersScoresAtBlockResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastScoresUntilBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputersScoresAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryForecastScoresUntilBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -54790,10 +54314,8 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) ProtoMethods() *prot if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Scores == nil { - x.Scores = &Scores{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Scores); err != nil { + x.Scores = append(x.Scores, &Score{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Scores[len(x.Scores)-1]); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -54833,28 +54355,28 @@ func (x *fastReflection_QueryReputersScoresAtBlockResponse) ProtoMethods() *prot } var ( - md_QueryListeningCoefficientRequest protoreflect.MessageDescriptor - fd_QueryListeningCoefficientRequest_topic_id protoreflect.FieldDescriptor - fd_QueryListeningCoefficientRequest_reputer protoreflect.FieldDescriptor + md_QueryWorkerForecastScoresAtBlockRequest protoreflect.MessageDescriptor + fd_QueryWorkerForecastScoresAtBlockRequest_topic_id protoreflect.FieldDescriptor + fd_QueryWorkerForecastScoresAtBlockRequest_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryListeningCoefficientRequest = File_emissions_v1_query_proto.Messages().ByName("QueryListeningCoefficientRequest") - fd_QueryListeningCoefficientRequest_topic_id = md_QueryListeningCoefficientRequest.Fields().ByName("topic_id") - fd_QueryListeningCoefficientRequest_reputer = md_QueryListeningCoefficientRequest.Fields().ByName("reputer") + file_emissions_v2_query_proto_init() + md_QueryWorkerForecastScoresAtBlockRequest = File_emissions_v2_query_proto.Messages().ByName("QueryWorkerForecastScoresAtBlockRequest") + fd_QueryWorkerForecastScoresAtBlockRequest_topic_id = md_QueryWorkerForecastScoresAtBlockRequest.Fields().ByName("topic_id") + fd_QueryWorkerForecastScoresAtBlockRequest_block_height = md_QueryWorkerForecastScoresAtBlockRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryListeningCoefficientRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryWorkerForecastScoresAtBlockRequest)(nil) -type fastReflection_QueryListeningCoefficientRequest QueryListeningCoefficientRequest +type fastReflection_QueryWorkerForecastScoresAtBlockRequest QueryWorkerForecastScoresAtBlockRequest -func (x *QueryListeningCoefficientRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryListeningCoefficientRequest)(x) +func (x *QueryWorkerForecastScoresAtBlockRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryWorkerForecastScoresAtBlockRequest)(x) } -func (x *QueryListeningCoefficientRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[122] +func (x *QueryWorkerForecastScoresAtBlockRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[120] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -54865,43 +54387,43 @@ func (x *QueryListeningCoefficientRequest) slowProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -var _fastReflection_QueryListeningCoefficientRequest_messageType fastReflection_QueryListeningCoefficientRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryListeningCoefficientRequest_messageType{} +var _fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType{} -type fastReflection_QueryListeningCoefficientRequest_messageType struct{} +type fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType struct{} -func (x fastReflection_QueryListeningCoefficientRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryListeningCoefficientRequest)(nil) +func (x fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryWorkerForecastScoresAtBlockRequest)(nil) } -func (x fastReflection_QueryListeningCoefficientRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryListeningCoefficientRequest) +func (x fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryWorkerForecastScoresAtBlockRequest) } -func (x fastReflection_QueryListeningCoefficientRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryListeningCoefficientRequest +func (x fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerForecastScoresAtBlockRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryListeningCoefficientRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryListeningCoefficientRequest +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerForecastScoresAtBlockRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryListeningCoefficientRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryListeningCoefficientRequest_messageType +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryWorkerForecastScoresAtBlockRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryListeningCoefficientRequest) New() protoreflect.Message { - return new(fastReflection_QueryListeningCoefficientRequest) +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) New() protoreflect.Message { + return new(fastReflection_QueryWorkerForecastScoresAtBlockRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryListeningCoefficientRequest) Interface() protoreflect.ProtoMessage { - return (*QueryListeningCoefficientRequest)(x) +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Interface() protoreflect.ProtoMessage { + return (*QueryWorkerForecastScoresAtBlockRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -54909,16 +54431,16 @@ func (x *fastReflection_QueryListeningCoefficientRequest) Interface() protorefle // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryListeningCoefficientRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryListeningCoefficientRequest_topic_id, value) { + if !f(fd_QueryWorkerForecastScoresAtBlockRequest_topic_id, value) { return } } - if x.Reputer != "" { - value := protoreflect.ValueOfString(x.Reputer) - if !f(fd_QueryListeningCoefficientRequest_reputer, value) { + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_QueryWorkerForecastScoresAtBlockRequest_block_height, value) { return } } @@ -54935,17 +54457,17 @@ func (x *fastReflection_QueryListeningCoefficientRequest) Range(f func(protorefl // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryListeningCoefficientRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryListeningCoefficientRequest.topic_id": + case "emissions.v2.QueryWorkerForecastScoresAtBlockRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryListeningCoefficientRequest.reputer": - return x.Reputer != "" + case "emissions.v2.QueryWorkerForecastScoresAtBlockRequest.block_height": + return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryListeningCoefficientRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerForecastScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryListeningCoefficientRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerForecastScoresAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -54955,17 +54477,17 @@ func (x *fastReflection_QueryListeningCoefficientRequest) Has(fd protoreflect.Fi // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryListeningCoefficientRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryListeningCoefficientRequest.topic_id": + case "emissions.v2.QueryWorkerForecastScoresAtBlockRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryListeningCoefficientRequest.reputer": - x.Reputer = "" + case "emissions.v2.QueryWorkerForecastScoresAtBlockRequest.block_height": + x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryListeningCoefficientRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerForecastScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryListeningCoefficientRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerForecastScoresAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -54975,19 +54497,19 @@ func (x *fastReflection_QueryListeningCoefficientRequest) Clear(fd protoreflect. // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryListeningCoefficientRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryListeningCoefficientRequest.topic_id": + case "emissions.v2.QueryWorkerForecastScoresAtBlockRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryListeningCoefficientRequest.reputer": - value := x.Reputer - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryWorkerForecastScoresAtBlockRequest.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryListeningCoefficientRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerForecastScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryListeningCoefficientRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerForecastScoresAtBlockRequest does not contain field %s", descriptor.FullName())) } } @@ -55001,17 +54523,17 @@ func (x *fastReflection_QueryListeningCoefficientRequest) Get(descriptor protore // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryListeningCoefficientRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryListeningCoefficientRequest.topic_id": + case "emissions.v2.QueryWorkerForecastScoresAtBlockRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryListeningCoefficientRequest.reputer": - x.Reputer = value.Interface().(string) + case "emissions.v2.QueryWorkerForecastScoresAtBlockRequest.block_height": + x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryListeningCoefficientRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerForecastScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryListeningCoefficientRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerForecastScoresAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -55025,44 +54547,44 @@ func (x *fastReflection_QueryListeningCoefficientRequest) Set(fd protoreflect.Fi // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryListeningCoefficientRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryListeningCoefficientRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryListeningCoefficientRequest is not mutable")) - case "emissions.v1.QueryListeningCoefficientRequest.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.QueryListeningCoefficientRequest is not mutable")) + case "emissions.v2.QueryWorkerForecastScoresAtBlockRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryWorkerForecastScoresAtBlockRequest is not mutable")) + case "emissions.v2.QueryWorkerForecastScoresAtBlockRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryWorkerForecastScoresAtBlockRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryListeningCoefficientRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerForecastScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryListeningCoefficientRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerForecastScoresAtBlockRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryListeningCoefficientRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryListeningCoefficientRequest.topic_id": + case "emissions.v2.QueryWorkerForecastScoresAtBlockRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryListeningCoefficientRequest.reputer": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryWorkerForecastScoresAtBlockRequest.block_height": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryListeningCoefficientRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerForecastScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryListeningCoefficientRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerForecastScoresAtBlockRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryListeningCoefficientRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryListeningCoefficientRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryWorkerForecastScoresAtBlockRequest", d.FullName())) } panic("unreachable") } @@ -55070,7 +54592,7 @@ func (x *fastReflection_QueryListeningCoefficientRequest) WhichOneof(d protorefl // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryListeningCoefficientRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -55081,7 +54603,7 @@ func (x *fastReflection_QueryListeningCoefficientRequest) GetUnknown() protorefl // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryListeningCoefficientRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -55093,7 +54615,7 @@ func (x *fastReflection_QueryListeningCoefficientRequest) SetUnknown(fields prot // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryListeningCoefficientRequest) IsValid() bool { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) IsValid() bool { return x != nil } @@ -55103,9 +54625,9 @@ func (x *fastReflection_QueryListeningCoefficientRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryListeningCoefficientRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryListeningCoefficientRequest) + x := input.Message.Interface().(*QueryWorkerForecastScoresAtBlockRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -55120,9 +54642,8 @@ func (x *fastReflection_QueryListeningCoefficientRequest) ProtoMethods() *protoi if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Reputer) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -55134,7 +54655,7 @@ func (x *fastReflection_QueryListeningCoefficientRequest) ProtoMethods() *protoi } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryListeningCoefficientRequest) + x := input.Message.Interface().(*QueryWorkerForecastScoresAtBlockRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -55153,12 +54674,10 @@ func (x *fastReflection_QueryListeningCoefficientRequest) ProtoMethods() *protoi i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Reputer) > 0 { - i -= len(x.Reputer) - copy(dAtA[i:], x.Reputer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) @@ -55176,7 +54695,7 @@ func (x *fastReflection_QueryListeningCoefficientRequest) ProtoMethods() *protoi }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryListeningCoefficientRequest) + x := input.Message.Interface().(*QueryWorkerForecastScoresAtBlockRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -55208,10 +54727,10 @@ func (x *fastReflection_QueryListeningCoefficientRequest) ProtoMethods() *protoi fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListeningCoefficientRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerForecastScoresAtBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListeningCoefficientRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerForecastScoresAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -55234,10 +54753,10 @@ func (x *fastReflection_QueryListeningCoefficientRequest) ProtoMethods() *protoi } } case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } - var stringLen uint64 + x.BlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -55247,24 +54766,11 @@ func (x *fastReflection_QueryListeningCoefficientRequest) ProtoMethods() *protoi } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.BlockHeight |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Reputer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -55301,26 +54807,26 @@ func (x *fastReflection_QueryListeningCoefficientRequest) ProtoMethods() *protoi } var ( - md_QueryListeningCoefficientResponse protoreflect.MessageDescriptor - fd_QueryListeningCoefficientResponse_listening_coefficient protoreflect.FieldDescriptor + md_QueryWorkerForecastScoresAtBlockResponse protoreflect.MessageDescriptor + fd_QueryWorkerForecastScoresAtBlockResponse_scores protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryListeningCoefficientResponse = File_emissions_v1_query_proto.Messages().ByName("QueryListeningCoefficientResponse") - fd_QueryListeningCoefficientResponse_listening_coefficient = md_QueryListeningCoefficientResponse.Fields().ByName("listening_coefficient") + file_emissions_v2_query_proto_init() + md_QueryWorkerForecastScoresAtBlockResponse = File_emissions_v2_query_proto.Messages().ByName("QueryWorkerForecastScoresAtBlockResponse") + fd_QueryWorkerForecastScoresAtBlockResponse_scores = md_QueryWorkerForecastScoresAtBlockResponse.Fields().ByName("scores") } -var _ protoreflect.Message = (*fastReflection_QueryListeningCoefficientResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryWorkerForecastScoresAtBlockResponse)(nil) -type fastReflection_QueryListeningCoefficientResponse QueryListeningCoefficientResponse +type fastReflection_QueryWorkerForecastScoresAtBlockResponse QueryWorkerForecastScoresAtBlockResponse -func (x *QueryListeningCoefficientResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryListeningCoefficientResponse)(x) +func (x *QueryWorkerForecastScoresAtBlockResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryWorkerForecastScoresAtBlockResponse)(x) } -func (x *QueryListeningCoefficientResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[123] +func (x *QueryWorkerForecastScoresAtBlockResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[121] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -55331,43 +54837,43 @@ func (x *QueryListeningCoefficientResponse) slowProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -var _fastReflection_QueryListeningCoefficientResponse_messageType fastReflection_QueryListeningCoefficientResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryListeningCoefficientResponse_messageType{} +var _fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType{} -type fastReflection_QueryListeningCoefficientResponse_messageType struct{} +type fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType struct{} -func (x fastReflection_QueryListeningCoefficientResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryListeningCoefficientResponse)(nil) +func (x fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryWorkerForecastScoresAtBlockResponse)(nil) } -func (x fastReflection_QueryListeningCoefficientResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryListeningCoefficientResponse) +func (x fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryWorkerForecastScoresAtBlockResponse) } -func (x fastReflection_QueryListeningCoefficientResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryListeningCoefficientResponse +func (x fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerForecastScoresAtBlockResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryListeningCoefficientResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryListeningCoefficientResponse +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryWorkerForecastScoresAtBlockResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryListeningCoefficientResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryListeningCoefficientResponse_messageType +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryWorkerForecastScoresAtBlockResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryListeningCoefficientResponse) New() protoreflect.Message { - return new(fastReflection_QueryListeningCoefficientResponse) +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) New() protoreflect.Message { + return new(fastReflection_QueryWorkerForecastScoresAtBlockResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryListeningCoefficientResponse) Interface() protoreflect.ProtoMessage { - return (*QueryListeningCoefficientResponse)(x) +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Interface() protoreflect.ProtoMessage { + return (*QueryWorkerForecastScoresAtBlockResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -55375,10 +54881,10 @@ func (x *fastReflection_QueryListeningCoefficientResponse) Interface() protorefl // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryListeningCoefficientResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.ListeningCoefficient != nil { - value := protoreflect.ValueOfMessage(x.ListeningCoefficient.ProtoReflect()) - if !f(fd_QueryListeningCoefficientResponse_listening_coefficient, value) { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Scores != nil { + value := protoreflect.ValueOfMessage(x.Scores.ProtoReflect()) + if !f(fd_QueryWorkerForecastScoresAtBlockResponse_scores, value) { return } } @@ -55395,15 +54901,15 @@ func (x *fastReflection_QueryListeningCoefficientResponse) Range(f func(protoref // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryListeningCoefficientResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryListeningCoefficientResponse.listening_coefficient": - return x.ListeningCoefficient != nil + case "emissions.v2.QueryWorkerForecastScoresAtBlockResponse.scores": + return x.Scores != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryListeningCoefficientResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerForecastScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryListeningCoefficientResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerForecastScoresAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -55413,15 +54919,15 @@ func (x *fastReflection_QueryListeningCoefficientResponse) Has(fd protoreflect.F // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryListeningCoefficientResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryListeningCoefficientResponse.listening_coefficient": - x.ListeningCoefficient = nil + case "emissions.v2.QueryWorkerForecastScoresAtBlockResponse.scores": + x.Scores = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryListeningCoefficientResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerForecastScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryListeningCoefficientResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerForecastScoresAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -55431,16 +54937,16 @@ func (x *fastReflection_QueryListeningCoefficientResponse) Clear(fd protoreflect // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryListeningCoefficientResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryListeningCoefficientResponse.listening_coefficient": - value := x.ListeningCoefficient + case "emissions.v2.QueryWorkerForecastScoresAtBlockResponse.scores": + value := x.Scores return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryListeningCoefficientResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerForecastScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryListeningCoefficientResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerForecastScoresAtBlockResponse does not contain field %s", descriptor.FullName())) } } @@ -55454,15 +54960,15 @@ func (x *fastReflection_QueryListeningCoefficientResponse) Get(descriptor protor // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryListeningCoefficientResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryListeningCoefficientResponse.listening_coefficient": - x.ListeningCoefficient = value.Message().Interface().(*ListeningCoefficient) + case "emissions.v2.QueryWorkerForecastScoresAtBlockResponse.scores": + x.Scores = value.Message().Interface().(*Scores) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryListeningCoefficientResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerForecastScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryListeningCoefficientResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerForecastScoresAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -55476,44 +54982,44 @@ func (x *fastReflection_QueryListeningCoefficientResponse) Set(fd protoreflect.F // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryListeningCoefficientResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryListeningCoefficientResponse.listening_coefficient": - if x.ListeningCoefficient == nil { - x.ListeningCoefficient = new(ListeningCoefficient) + case "emissions.v2.QueryWorkerForecastScoresAtBlockResponse.scores": + if x.Scores == nil { + x.Scores = new(Scores) } - return protoreflect.ValueOfMessage(x.ListeningCoefficient.ProtoReflect()) + return protoreflect.ValueOfMessage(x.Scores.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryListeningCoefficientResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerForecastScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryListeningCoefficientResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerForecastScoresAtBlockResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryListeningCoefficientResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryListeningCoefficientResponse.listening_coefficient": - m := new(ListeningCoefficient) + case "emissions.v2.QueryWorkerForecastScoresAtBlockResponse.scores": + m := new(Scores) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryListeningCoefficientResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryWorkerForecastScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryListeningCoefficientResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryWorkerForecastScoresAtBlockResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryListeningCoefficientResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryListeningCoefficientResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryWorkerForecastScoresAtBlockResponse", d.FullName())) } panic("unreachable") } @@ -55521,7 +55027,7 @@ func (x *fastReflection_QueryListeningCoefficientResponse) WhichOneof(d protoref // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryListeningCoefficientResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -55532,7 +55038,7 @@ func (x *fastReflection_QueryListeningCoefficientResponse) GetUnknown() protoref // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryListeningCoefficientResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -55544,7 +55050,7 @@ func (x *fastReflection_QueryListeningCoefficientResponse) SetUnknown(fields pro // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryListeningCoefficientResponse) IsValid() bool { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) IsValid() bool { return x != nil } @@ -55554,9 +55060,9 @@ func (x *fastReflection_QueryListeningCoefficientResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryListeningCoefficientResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryWorkerForecastScoresAtBlockResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryListeningCoefficientResponse) + x := input.Message.Interface().(*QueryWorkerForecastScoresAtBlockResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -55568,8 +55074,8 @@ func (x *fastReflection_QueryListeningCoefficientResponse) ProtoMethods() *proto var n int var l int _ = l - if x.ListeningCoefficient != nil { - l = options.Size(x.ListeningCoefficient) + if x.Scores != nil { + l = options.Size(x.Scores) n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -55582,7 +55088,7 @@ func (x *fastReflection_QueryListeningCoefficientResponse) ProtoMethods() *proto } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryListeningCoefficientResponse) + x := input.Message.Interface().(*QueryWorkerForecastScoresAtBlockResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -55601,8 +55107,8 @@ func (x *fastReflection_QueryListeningCoefficientResponse) ProtoMethods() *proto i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.ListeningCoefficient != nil { - encoded, err := options.Marshal(x.ListeningCoefficient) + if x.Scores != nil { + encoded, err := options.Marshal(x.Scores) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -55626,7 +55132,7 @@ func (x *fastReflection_QueryListeningCoefficientResponse) ProtoMethods() *proto }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryListeningCoefficientResponse) + x := input.Message.Interface().(*QueryWorkerForecastScoresAtBlockResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -55658,15 +55164,15 @@ func (x *fastReflection_QueryListeningCoefficientResponse) ProtoMethods() *proto fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListeningCoefficientResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerForecastScoresAtBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListeningCoefficientResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryWorkerForecastScoresAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ListeningCoefficient", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Scores", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -55693,10 +55199,10 @@ func (x *fastReflection_QueryListeningCoefficientResponse) ProtoMethods() *proto if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.ListeningCoefficient == nil { - x.ListeningCoefficient = &ListeningCoefficient{} + if x.Scores == nil { + x.Scores = &Scores{} } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ListeningCoefficient); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Scores); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -55736,28 +55242,28 @@ func (x *fastReflection_QueryListeningCoefficientResponse) ProtoMethods() *proto } var ( - md_QueryPreviousReputerRewardFractionRequest protoreflect.MessageDescriptor - fd_QueryPreviousReputerRewardFractionRequest_topic_id protoreflect.FieldDescriptor - fd_QueryPreviousReputerRewardFractionRequest_reputer protoreflect.FieldDescriptor + md_QueryReputersScoresAtBlockRequest protoreflect.MessageDescriptor + fd_QueryReputersScoresAtBlockRequest_topic_id protoreflect.FieldDescriptor + fd_QueryReputersScoresAtBlockRequest_block_height protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryPreviousReputerRewardFractionRequest = File_emissions_v1_query_proto.Messages().ByName("QueryPreviousReputerRewardFractionRequest") - fd_QueryPreviousReputerRewardFractionRequest_topic_id = md_QueryPreviousReputerRewardFractionRequest.Fields().ByName("topic_id") - fd_QueryPreviousReputerRewardFractionRequest_reputer = md_QueryPreviousReputerRewardFractionRequest.Fields().ByName("reputer") + file_emissions_v2_query_proto_init() + md_QueryReputersScoresAtBlockRequest = File_emissions_v2_query_proto.Messages().ByName("QueryReputersScoresAtBlockRequest") + fd_QueryReputersScoresAtBlockRequest_topic_id = md_QueryReputersScoresAtBlockRequest.Fields().ByName("topic_id") + fd_QueryReputersScoresAtBlockRequest_block_height = md_QueryReputersScoresAtBlockRequest.Fields().ByName("block_height") } -var _ protoreflect.Message = (*fastReflection_QueryPreviousReputerRewardFractionRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryReputersScoresAtBlockRequest)(nil) -type fastReflection_QueryPreviousReputerRewardFractionRequest QueryPreviousReputerRewardFractionRequest +type fastReflection_QueryReputersScoresAtBlockRequest QueryReputersScoresAtBlockRequest -func (x *QueryPreviousReputerRewardFractionRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPreviousReputerRewardFractionRequest)(x) +func (x *QueryReputersScoresAtBlockRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryReputersScoresAtBlockRequest)(x) } -func (x *QueryPreviousReputerRewardFractionRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[124] +func (x *QueryReputersScoresAtBlockRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[122] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -55768,43 +55274,43 @@ func (x *QueryPreviousReputerRewardFractionRequest) slowProtoReflect() protorefl return mi.MessageOf(x) } -var _fastReflection_QueryPreviousReputerRewardFractionRequest_messageType fastReflection_QueryPreviousReputerRewardFractionRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryPreviousReputerRewardFractionRequest_messageType{} +var _fastReflection_QueryReputersScoresAtBlockRequest_messageType fastReflection_QueryReputersScoresAtBlockRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryReputersScoresAtBlockRequest_messageType{} -type fastReflection_QueryPreviousReputerRewardFractionRequest_messageType struct{} +type fastReflection_QueryReputersScoresAtBlockRequest_messageType struct{} -func (x fastReflection_QueryPreviousReputerRewardFractionRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPreviousReputerRewardFractionRequest)(nil) +func (x fastReflection_QueryReputersScoresAtBlockRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryReputersScoresAtBlockRequest)(nil) } -func (x fastReflection_QueryPreviousReputerRewardFractionRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPreviousReputerRewardFractionRequest) +func (x fastReflection_QueryReputersScoresAtBlockRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryReputersScoresAtBlockRequest) } -func (x fastReflection_QueryPreviousReputerRewardFractionRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousReputerRewardFractionRequest +func (x fastReflection_QueryReputersScoresAtBlockRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputersScoresAtBlockRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousReputerRewardFractionRequest +func (x *fastReflection_QueryReputersScoresAtBlockRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputersScoresAtBlockRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryPreviousReputerRewardFractionRequest_messageType +func (x *fastReflection_QueryReputersScoresAtBlockRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryReputersScoresAtBlockRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) New() protoreflect.Message { - return new(fastReflection_QueryPreviousReputerRewardFractionRequest) +func (x *fastReflection_QueryReputersScoresAtBlockRequest) New() protoreflect.Message { + return new(fastReflection_QueryReputersScoresAtBlockRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Interface() protoreflect.ProtoMessage { - return (*QueryPreviousReputerRewardFractionRequest)(x) +func (x *fastReflection_QueryReputersScoresAtBlockRequest) Interface() protoreflect.ProtoMessage { + return (*QueryReputersScoresAtBlockRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -55812,16 +55318,16 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Interface() p // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryReputersScoresAtBlockRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryPreviousReputerRewardFractionRequest_topic_id, value) { + if !f(fd_QueryReputersScoresAtBlockRequest_topic_id, value) { return } } - if x.Reputer != "" { - value := protoreflect.ValueOfString(x.Reputer) - if !f(fd_QueryPreviousReputerRewardFractionRequest_reputer, value) { + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_QueryReputersScoresAtBlockRequest_block_height, value) { return } } @@ -55838,17 +55344,17 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Range(f func( // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryReputersScoresAtBlockRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryPreviousReputerRewardFractionRequest.topic_id": + case "emissions.v2.QueryReputersScoresAtBlockRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryPreviousReputerRewardFractionRequest.reputer": - return x.Reputer != "" + case "emissions.v2.QueryReputersScoresAtBlockRequest.block_height": + return x.BlockHeight != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousReputerRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputersScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousReputerRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputersScoresAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -55858,17 +55364,17 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Has(fd protor // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryReputersScoresAtBlockRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryPreviousReputerRewardFractionRequest.topic_id": + case "emissions.v2.QueryReputersScoresAtBlockRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryPreviousReputerRewardFractionRequest.reputer": - x.Reputer = "" + case "emissions.v2.QueryReputersScoresAtBlockRequest.block_height": + x.BlockHeight = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousReputerRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputersScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousReputerRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputersScoresAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -55878,19 +55384,19 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Clear(fd prot // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputersScoresAtBlockRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryPreviousReputerRewardFractionRequest.topic_id": + case "emissions.v2.QueryReputersScoresAtBlockRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryPreviousReputerRewardFractionRequest.reputer": - value := x.Reputer - return protoreflect.ValueOfString(value) + case "emissions.v2.QueryReputersScoresAtBlockRequest.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousReputerRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputersScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousReputerRewardFractionRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputersScoresAtBlockRequest does not contain field %s", descriptor.FullName())) } } @@ -55904,17 +55410,17 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Get(descripto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryReputersScoresAtBlockRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryPreviousReputerRewardFractionRequest.topic_id": + case "emissions.v2.QueryReputersScoresAtBlockRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryPreviousReputerRewardFractionRequest.reputer": - x.Reputer = value.Interface().(string) + case "emissions.v2.QueryReputersScoresAtBlockRequest.block_height": + x.BlockHeight = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousReputerRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputersScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousReputerRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputersScoresAtBlockRequest does not contain field %s", fd.FullName())) } } @@ -55928,44 +55434,44 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Set(fd protor // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputersScoresAtBlockRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousReputerRewardFractionRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryPreviousReputerRewardFractionRequest is not mutable")) - case "emissions.v1.QueryPreviousReputerRewardFractionRequest.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.QueryPreviousReputerRewardFractionRequest is not mutable")) + case "emissions.v2.QueryReputersScoresAtBlockRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryReputersScoresAtBlockRequest is not mutable")) + case "emissions.v2.QueryReputersScoresAtBlockRequest.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.QueryReputersScoresAtBlockRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousReputerRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputersScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousReputerRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputersScoresAtBlockRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputersScoresAtBlockRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousReputerRewardFractionRequest.topic_id": + case "emissions.v2.QueryReputersScoresAtBlockRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryPreviousReputerRewardFractionRequest.reputer": - return protoreflect.ValueOfString("") + case "emissions.v2.QueryReputersScoresAtBlockRequest.block_height": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousReputerRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputersScoresAtBlockRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousReputerRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputersScoresAtBlockRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryReputersScoresAtBlockRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryPreviousReputerRewardFractionRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryReputersScoresAtBlockRequest", d.FullName())) } panic("unreachable") } @@ -55973,7 +55479,7 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) WhichOneof(d // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryReputersScoresAtBlockRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -55984,7 +55490,7 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) GetUnknown() // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryReputersScoresAtBlockRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -55996,7 +55502,7 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) SetUnknown(fi // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) IsValid() bool { +func (x *fastReflection_QueryReputersScoresAtBlockRequest) IsValid() bool { return x != nil } @@ -56006,9 +55512,9 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) IsValid() boo // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryReputersScoresAtBlockRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPreviousReputerRewardFractionRequest) + x := input.Message.Interface().(*QueryReputersScoresAtBlockRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -56023,9 +55529,8 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) ProtoMethods( if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Reputer) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) } if x.unknownFields != nil { n += len(x.unknownFields) @@ -56037,7 +55542,7 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) ProtoMethods( } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousReputerRewardFractionRequest) + x := input.Message.Interface().(*QueryReputersScoresAtBlockRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -56056,12 +55561,10 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) ProtoMethods( i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Reputer) > 0 { - i -= len(x.Reputer) - copy(dAtA[i:], x.Reputer) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if x.TopicId != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) @@ -56079,7 +55582,7 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) ProtoMethods( }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousReputerRewardFractionRequest) + x := input.Message.Interface().(*QueryReputersScoresAtBlockRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -56111,10 +55614,10 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) ProtoMethods( fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousReputerRewardFractionRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputersScoresAtBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousReputerRewardFractionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputersScoresAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -56137,10 +55640,10 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) ProtoMethods( } } case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } - var stringLen uint64 + x.BlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -56150,24 +55653,11 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) ProtoMethods( } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.BlockHeight |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Reputer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -56204,28 +55694,26 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) ProtoMethods( } var ( - md_QueryPreviousReputerRewardFractionResponse protoreflect.MessageDescriptor - fd_QueryPreviousReputerRewardFractionResponse_reward_fraction protoreflect.FieldDescriptor - fd_QueryPreviousReputerRewardFractionResponse_not_found protoreflect.FieldDescriptor + md_QueryReputersScoresAtBlockResponse protoreflect.MessageDescriptor + fd_QueryReputersScoresAtBlockResponse_scores protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryPreviousReputerRewardFractionResponse = File_emissions_v1_query_proto.Messages().ByName("QueryPreviousReputerRewardFractionResponse") - fd_QueryPreviousReputerRewardFractionResponse_reward_fraction = md_QueryPreviousReputerRewardFractionResponse.Fields().ByName("reward_fraction") - fd_QueryPreviousReputerRewardFractionResponse_not_found = md_QueryPreviousReputerRewardFractionResponse.Fields().ByName("not_found") + file_emissions_v2_query_proto_init() + md_QueryReputersScoresAtBlockResponse = File_emissions_v2_query_proto.Messages().ByName("QueryReputersScoresAtBlockResponse") + fd_QueryReputersScoresAtBlockResponse_scores = md_QueryReputersScoresAtBlockResponse.Fields().ByName("scores") } -var _ protoreflect.Message = (*fastReflection_QueryPreviousReputerRewardFractionResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryReputersScoresAtBlockResponse)(nil) -type fastReflection_QueryPreviousReputerRewardFractionResponse QueryPreviousReputerRewardFractionResponse +type fastReflection_QueryReputersScoresAtBlockResponse QueryReputersScoresAtBlockResponse -func (x *QueryPreviousReputerRewardFractionResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPreviousReputerRewardFractionResponse)(x) +func (x *QueryReputersScoresAtBlockResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryReputersScoresAtBlockResponse)(x) } -func (x *QueryPreviousReputerRewardFractionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[125] +func (x *QueryReputersScoresAtBlockResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[123] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -56236,43 +55724,43 @@ func (x *QueryPreviousReputerRewardFractionResponse) slowProtoReflect() protoref return mi.MessageOf(x) } -var _fastReflection_QueryPreviousReputerRewardFractionResponse_messageType fastReflection_QueryPreviousReputerRewardFractionResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryPreviousReputerRewardFractionResponse_messageType{} +var _fastReflection_QueryReputersScoresAtBlockResponse_messageType fastReflection_QueryReputersScoresAtBlockResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryReputersScoresAtBlockResponse_messageType{} -type fastReflection_QueryPreviousReputerRewardFractionResponse_messageType struct{} +type fastReflection_QueryReputersScoresAtBlockResponse_messageType struct{} -func (x fastReflection_QueryPreviousReputerRewardFractionResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPreviousReputerRewardFractionResponse)(nil) +func (x fastReflection_QueryReputersScoresAtBlockResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryReputersScoresAtBlockResponse)(nil) } -func (x fastReflection_QueryPreviousReputerRewardFractionResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPreviousReputerRewardFractionResponse) +func (x fastReflection_QueryReputersScoresAtBlockResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryReputersScoresAtBlockResponse) } -func (x fastReflection_QueryPreviousReputerRewardFractionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousReputerRewardFractionResponse +func (x fastReflection_QueryReputersScoresAtBlockResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputersScoresAtBlockResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousReputerRewardFractionResponse +func (x *fastReflection_QueryReputersScoresAtBlockResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryReputersScoresAtBlockResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryPreviousReputerRewardFractionResponse_messageType +func (x *fastReflection_QueryReputersScoresAtBlockResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryReputersScoresAtBlockResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) New() protoreflect.Message { - return new(fastReflection_QueryPreviousReputerRewardFractionResponse) +func (x *fastReflection_QueryReputersScoresAtBlockResponse) New() protoreflect.Message { + return new(fastReflection_QueryReputersScoresAtBlockResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Interface() protoreflect.ProtoMessage { - return (*QueryPreviousReputerRewardFractionResponse)(x) +func (x *fastReflection_QueryReputersScoresAtBlockResponse) Interface() protoreflect.ProtoMessage { + return (*QueryReputersScoresAtBlockResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -56280,16 +55768,10 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Interface() // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.RewardFraction != "" { - value := protoreflect.ValueOfString(x.RewardFraction) - if !f(fd_QueryPreviousReputerRewardFractionResponse_reward_fraction, value) { - return - } - } - if x.NotFound != false { - value := protoreflect.ValueOfBool(x.NotFound) - if !f(fd_QueryPreviousReputerRewardFractionResponse_not_found, value) { +func (x *fastReflection_QueryReputersScoresAtBlockResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Scores != nil { + value := protoreflect.ValueOfMessage(x.Scores.ProtoReflect()) + if !f(fd_QueryReputersScoresAtBlockResponse_scores, value) { return } } @@ -56306,17 +55788,15 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Range(f func // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryReputersScoresAtBlockResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryPreviousReputerRewardFractionResponse.reward_fraction": - return x.RewardFraction != "" - case "emissions.v1.QueryPreviousReputerRewardFractionResponse.not_found": - return x.NotFound != false + case "emissions.v2.QueryReputersScoresAtBlockResponse.scores": + return x.Scores != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousReputerRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputersScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousReputerRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputersScoresAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -56326,17 +55806,15 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Has(fd proto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryReputersScoresAtBlockResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryPreviousReputerRewardFractionResponse.reward_fraction": - x.RewardFraction = "" - case "emissions.v1.QueryPreviousReputerRewardFractionResponse.not_found": - x.NotFound = false + case "emissions.v2.QueryReputersScoresAtBlockResponse.scores": + x.Scores = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousReputerRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputersScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousReputerRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputersScoresAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -56346,19 +55824,16 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Clear(fd pro // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputersScoresAtBlockResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryPreviousReputerRewardFractionResponse.reward_fraction": - value := x.RewardFraction - return protoreflect.ValueOfString(value) - case "emissions.v1.QueryPreviousReputerRewardFractionResponse.not_found": - value := x.NotFound - return protoreflect.ValueOfBool(value) + case "emissions.v2.QueryReputersScoresAtBlockResponse.scores": + value := x.Scores + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousReputerRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputersScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousReputerRewardFractionResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputersScoresAtBlockResponse does not contain field %s", descriptor.FullName())) } } @@ -56372,17 +55847,15 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Get(descript // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryReputersScoresAtBlockResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryPreviousReputerRewardFractionResponse.reward_fraction": - x.RewardFraction = value.Interface().(string) - case "emissions.v1.QueryPreviousReputerRewardFractionResponse.not_found": - x.NotFound = value.Bool() + case "emissions.v2.QueryReputersScoresAtBlockResponse.scores": + x.Scores = value.Message().Interface().(*Scores) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousReputerRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputersScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousReputerRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputersScoresAtBlockResponse does not contain field %s", fd.FullName())) } } @@ -56396,44 +55869,44 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Set(fd proto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputersScoresAtBlockResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousReputerRewardFractionResponse.reward_fraction": - panic(fmt.Errorf("field reward_fraction of message emissions.v1.QueryPreviousReputerRewardFractionResponse is not mutable")) - case "emissions.v1.QueryPreviousReputerRewardFractionResponse.not_found": - panic(fmt.Errorf("field not_found of message emissions.v1.QueryPreviousReputerRewardFractionResponse is not mutable")) + case "emissions.v2.QueryReputersScoresAtBlockResponse.scores": + if x.Scores == nil { + x.Scores = new(Scores) + } + return protoreflect.ValueOfMessage(x.Scores.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousReputerRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputersScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousReputerRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputersScoresAtBlockResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryReputersScoresAtBlockResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousReputerRewardFractionResponse.reward_fraction": - return protoreflect.ValueOfString("") - case "emissions.v1.QueryPreviousReputerRewardFractionResponse.not_found": - return protoreflect.ValueOfBool(false) + case "emissions.v2.QueryReputersScoresAtBlockResponse.scores": + m := new(Scores) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousReputerRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryReputersScoresAtBlockResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousReputerRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryReputersScoresAtBlockResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryReputersScoresAtBlockResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryPreviousReputerRewardFractionResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryReputersScoresAtBlockResponse", d.FullName())) } panic("unreachable") } @@ -56441,7 +55914,7 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) WhichOneof(d // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryReputersScoresAtBlockResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -56452,7 +55925,7 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) GetUnknown() // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryReputersScoresAtBlockResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -56464,7 +55937,7 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) SetUnknown(f // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) IsValid() bool { +func (x *fastReflection_QueryReputersScoresAtBlockResponse) IsValid() bool { return x != nil } @@ -56474,9 +55947,9 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) IsValid() bo // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryReputersScoresAtBlockResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPreviousReputerRewardFractionResponse) + x := input.Message.Interface().(*QueryReputersScoresAtBlockResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -56488,13 +55961,10 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) ProtoMethods var n int var l int _ = l - l = len(x.RewardFraction) - if l > 0 { + if x.Scores != nil { + l = options.Size(x.Scores) n += 1 + l + runtime.Sov(uint64(l)) } - if x.NotFound { - n += 2 - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -56505,7 +55975,7 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) ProtoMethods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousReputerRewardFractionResponse) + x := input.Message.Interface().(*QueryReputersScoresAtBlockResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -56524,20 +55994,17 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) ProtoMethods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.NotFound { - i-- - if x.NotFound { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if x.Scores != nil { + encoded, err := options.Marshal(x.Scores) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err } - i-- - dAtA[i] = 0x10 - } - if len(x.RewardFraction) > 0 { - i -= len(x.RewardFraction) - copy(dAtA[i:], x.RewardFraction) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RewardFraction))) + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -56552,7 +56019,7 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) ProtoMethods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousReputerRewardFractionResponse) + x := input.Message.Interface().(*QueryReputersScoresAtBlockResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -56584,17 +56051,17 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) ProtoMethods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousReputerRewardFractionResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputersScoresAtBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousReputerRewardFractionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryReputersScoresAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RewardFraction", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Scores", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -56604,44 +56071,28 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) ProtoMethods } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.RewardFraction = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NotFound", wireType) + if x.Scores == nil { + x.Scores = &Scores{} } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Scores); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - x.NotFound = bool(v != 0) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -56678,28 +56129,28 @@ func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) ProtoMethods } var ( - md_QueryPreviousInferenceRewardFractionRequest protoreflect.MessageDescriptor - fd_QueryPreviousInferenceRewardFractionRequest_topic_id protoreflect.FieldDescriptor - fd_QueryPreviousInferenceRewardFractionRequest_worker protoreflect.FieldDescriptor + md_QueryListeningCoefficientRequest protoreflect.MessageDescriptor + fd_QueryListeningCoefficientRequest_topic_id protoreflect.FieldDescriptor + fd_QueryListeningCoefficientRequest_reputer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryPreviousInferenceRewardFractionRequest = File_emissions_v1_query_proto.Messages().ByName("QueryPreviousInferenceRewardFractionRequest") - fd_QueryPreviousInferenceRewardFractionRequest_topic_id = md_QueryPreviousInferenceRewardFractionRequest.Fields().ByName("topic_id") - fd_QueryPreviousInferenceRewardFractionRequest_worker = md_QueryPreviousInferenceRewardFractionRequest.Fields().ByName("worker") + file_emissions_v2_query_proto_init() + md_QueryListeningCoefficientRequest = File_emissions_v2_query_proto.Messages().ByName("QueryListeningCoefficientRequest") + fd_QueryListeningCoefficientRequest_topic_id = md_QueryListeningCoefficientRequest.Fields().ByName("topic_id") + fd_QueryListeningCoefficientRequest_reputer = md_QueryListeningCoefficientRequest.Fields().ByName("reputer") } -var _ protoreflect.Message = (*fastReflection_QueryPreviousInferenceRewardFractionRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryListeningCoefficientRequest)(nil) -type fastReflection_QueryPreviousInferenceRewardFractionRequest QueryPreviousInferenceRewardFractionRequest +type fastReflection_QueryListeningCoefficientRequest QueryListeningCoefficientRequest -func (x *QueryPreviousInferenceRewardFractionRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPreviousInferenceRewardFractionRequest)(x) +func (x *QueryListeningCoefficientRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryListeningCoefficientRequest)(x) } -func (x *QueryPreviousInferenceRewardFractionRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[126] +func (x *QueryListeningCoefficientRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[124] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -56710,43 +56161,43 @@ func (x *QueryPreviousInferenceRewardFractionRequest) slowProtoReflect() protore return mi.MessageOf(x) } -var _fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType{} +var _fastReflection_QueryListeningCoefficientRequest_messageType fastReflection_QueryListeningCoefficientRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryListeningCoefficientRequest_messageType{} -type fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType struct{} +type fastReflection_QueryListeningCoefficientRequest_messageType struct{} -func (x fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPreviousInferenceRewardFractionRequest)(nil) +func (x fastReflection_QueryListeningCoefficientRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryListeningCoefficientRequest)(nil) } -func (x fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPreviousInferenceRewardFractionRequest) +func (x fastReflection_QueryListeningCoefficientRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryListeningCoefficientRequest) } -func (x fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousInferenceRewardFractionRequest +func (x fastReflection_QueryListeningCoefficientRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryListeningCoefficientRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousInferenceRewardFractionRequest +func (x *fastReflection_QueryListeningCoefficientRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryListeningCoefficientRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType +func (x *fastReflection_QueryListeningCoefficientRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryListeningCoefficientRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) New() protoreflect.Message { - return new(fastReflection_QueryPreviousInferenceRewardFractionRequest) +func (x *fastReflection_QueryListeningCoefficientRequest) New() protoreflect.Message { + return new(fastReflection_QueryListeningCoefficientRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Interface() protoreflect.ProtoMessage { - return (*QueryPreviousInferenceRewardFractionRequest)(x) +func (x *fastReflection_QueryListeningCoefficientRequest) Interface() protoreflect.ProtoMessage { + return (*QueryListeningCoefficientRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -56754,16 +56205,16 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Interface() // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryListeningCoefficientRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryPreviousInferenceRewardFractionRequest_topic_id, value) { + if !f(fd_QueryListeningCoefficientRequest_topic_id, value) { return } } - if x.Worker != "" { - value := protoreflect.ValueOfString(x.Worker) - if !f(fd_QueryPreviousInferenceRewardFractionRequest_worker, value) { + if x.Reputer != "" { + value := protoreflect.ValueOfString(x.Reputer) + if !f(fd_QueryListeningCoefficientRequest_reputer, value) { return } } @@ -56780,17 +56231,17 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Range(f fun // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryListeningCoefficientRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryPreviousInferenceRewardFractionRequest.topic_id": + case "emissions.v2.QueryListeningCoefficientRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryPreviousInferenceRewardFractionRequest.worker": - return x.Worker != "" + case "emissions.v2.QueryListeningCoefficientRequest.reputer": + return x.Reputer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousInferenceRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryListeningCoefficientRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousInferenceRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryListeningCoefficientRequest does not contain field %s", fd.FullName())) } } @@ -56800,17 +56251,17 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Has(fd prot // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryListeningCoefficientRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryPreviousInferenceRewardFractionRequest.topic_id": + case "emissions.v2.QueryListeningCoefficientRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryPreviousInferenceRewardFractionRequest.worker": - x.Worker = "" + case "emissions.v2.QueryListeningCoefficientRequest.reputer": + x.Reputer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousInferenceRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryListeningCoefficientRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousInferenceRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryListeningCoefficientRequest does not contain field %s", fd.FullName())) } } @@ -56820,19 +56271,19 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Clear(fd pr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryListeningCoefficientRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryPreviousInferenceRewardFractionRequest.topic_id": + case "emissions.v2.QueryListeningCoefficientRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryPreviousInferenceRewardFractionRequest.worker": - value := x.Worker + case "emissions.v2.QueryListeningCoefficientRequest.reputer": + value := x.Reputer return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousInferenceRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryListeningCoefficientRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousInferenceRewardFractionRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryListeningCoefficientRequest does not contain field %s", descriptor.FullName())) } } @@ -56846,17 +56297,17 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Get(descrip // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryListeningCoefficientRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryPreviousInferenceRewardFractionRequest.topic_id": + case "emissions.v2.QueryListeningCoefficientRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryPreviousInferenceRewardFractionRequest.worker": - x.Worker = value.Interface().(string) + case "emissions.v2.QueryListeningCoefficientRequest.reputer": + x.Reputer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousInferenceRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryListeningCoefficientRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousInferenceRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryListeningCoefficientRequest does not contain field %s", fd.FullName())) } } @@ -56870,44 +56321,44 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Set(fd prot // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryListeningCoefficientRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousInferenceRewardFractionRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryPreviousInferenceRewardFractionRequest is not mutable")) - case "emissions.v1.QueryPreviousInferenceRewardFractionRequest.worker": - panic(fmt.Errorf("field worker of message emissions.v1.QueryPreviousInferenceRewardFractionRequest is not mutable")) + case "emissions.v2.QueryListeningCoefficientRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryListeningCoefficientRequest is not mutable")) + case "emissions.v2.QueryListeningCoefficientRequest.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.QueryListeningCoefficientRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousInferenceRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryListeningCoefficientRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousInferenceRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryListeningCoefficientRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryListeningCoefficientRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousInferenceRewardFractionRequest.topic_id": + case "emissions.v2.QueryListeningCoefficientRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryPreviousInferenceRewardFractionRequest.worker": + case "emissions.v2.QueryListeningCoefficientRequest.reputer": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousInferenceRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryListeningCoefficientRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousInferenceRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryListeningCoefficientRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryListeningCoefficientRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryPreviousInferenceRewardFractionRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryListeningCoefficientRequest", d.FullName())) } panic("unreachable") } @@ -56915,7 +56366,7 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) WhichOneof( // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryListeningCoefficientRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -56926,7 +56377,7 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) GetUnknown( // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryListeningCoefficientRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -56938,7 +56389,7 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) SetUnknown( // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) IsValid() bool { +func (x *fastReflection_QueryListeningCoefficientRequest) IsValid() bool { return x != nil } @@ -56948,9 +56399,9 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) IsValid() b // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryListeningCoefficientRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPreviousInferenceRewardFractionRequest) + x := input.Message.Interface().(*QueryListeningCoefficientRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -56965,7 +56416,7 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) ProtoMethod if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Worker) + l = len(x.Reputer) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -56979,7 +56430,7 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) ProtoMethod } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousInferenceRewardFractionRequest) + x := input.Message.Interface().(*QueryListeningCoefficientRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -56998,10 +56449,10 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) ProtoMethod i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Worker) > 0 { - i -= len(x.Worker) - copy(dAtA[i:], x.Worker) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Worker))) + if len(x.Reputer) > 0 { + i -= len(x.Reputer) + copy(dAtA[i:], x.Reputer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) i-- dAtA[i] = 0x12 } @@ -57021,7 +56472,7 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) ProtoMethod }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousInferenceRewardFractionRequest) + x := input.Message.Interface().(*QueryListeningCoefficientRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -57053,10 +56504,10 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) ProtoMethod fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousInferenceRewardFractionRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListeningCoefficientRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousInferenceRewardFractionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListeningCoefficientRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -57080,7 +56531,7 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) ProtoMethod } case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -57108,7 +56559,7 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) ProtoMethod if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Worker = string(dAtA[iNdEx:postIndex]) + x.Reputer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -57146,28 +56597,26 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) ProtoMethod } var ( - md_QueryPreviousInferenceRewardFractionResponse protoreflect.MessageDescriptor - fd_QueryPreviousInferenceRewardFractionResponse_reward_fraction protoreflect.FieldDescriptor - fd_QueryPreviousInferenceRewardFractionResponse_not_found protoreflect.FieldDescriptor + md_QueryListeningCoefficientResponse protoreflect.MessageDescriptor + fd_QueryListeningCoefficientResponse_listening_coefficient protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryPreviousInferenceRewardFractionResponse = File_emissions_v1_query_proto.Messages().ByName("QueryPreviousInferenceRewardFractionResponse") - fd_QueryPreviousInferenceRewardFractionResponse_reward_fraction = md_QueryPreviousInferenceRewardFractionResponse.Fields().ByName("reward_fraction") - fd_QueryPreviousInferenceRewardFractionResponse_not_found = md_QueryPreviousInferenceRewardFractionResponse.Fields().ByName("not_found") + file_emissions_v2_query_proto_init() + md_QueryListeningCoefficientResponse = File_emissions_v2_query_proto.Messages().ByName("QueryListeningCoefficientResponse") + fd_QueryListeningCoefficientResponse_listening_coefficient = md_QueryListeningCoefficientResponse.Fields().ByName("listening_coefficient") } -var _ protoreflect.Message = (*fastReflection_QueryPreviousInferenceRewardFractionResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryListeningCoefficientResponse)(nil) -type fastReflection_QueryPreviousInferenceRewardFractionResponse QueryPreviousInferenceRewardFractionResponse +type fastReflection_QueryListeningCoefficientResponse QueryListeningCoefficientResponse -func (x *QueryPreviousInferenceRewardFractionResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPreviousInferenceRewardFractionResponse)(x) +func (x *QueryListeningCoefficientResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryListeningCoefficientResponse)(x) } -func (x *QueryPreviousInferenceRewardFractionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[127] +func (x *QueryListeningCoefficientResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[125] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -57178,43 +56627,43 @@ func (x *QueryPreviousInferenceRewardFractionResponse) slowProtoReflect() protor return mi.MessageOf(x) } -var _fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType{} +var _fastReflection_QueryListeningCoefficientResponse_messageType fastReflection_QueryListeningCoefficientResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryListeningCoefficientResponse_messageType{} -type fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType struct{} +type fastReflection_QueryListeningCoefficientResponse_messageType struct{} -func (x fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPreviousInferenceRewardFractionResponse)(nil) +func (x fastReflection_QueryListeningCoefficientResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryListeningCoefficientResponse)(nil) } -func (x fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPreviousInferenceRewardFractionResponse) +func (x fastReflection_QueryListeningCoefficientResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryListeningCoefficientResponse) } -func (x fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousInferenceRewardFractionResponse +func (x fastReflection_QueryListeningCoefficientResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryListeningCoefficientResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousInferenceRewardFractionResponse +func (x *fastReflection_QueryListeningCoefficientResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryListeningCoefficientResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType +func (x *fastReflection_QueryListeningCoefficientResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryListeningCoefficientResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) New() protoreflect.Message { - return new(fastReflection_QueryPreviousInferenceRewardFractionResponse) +func (x *fastReflection_QueryListeningCoefficientResponse) New() protoreflect.Message { + return new(fastReflection_QueryListeningCoefficientResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Interface() protoreflect.ProtoMessage { - return (*QueryPreviousInferenceRewardFractionResponse)(x) +func (x *fastReflection_QueryListeningCoefficientResponse) Interface() protoreflect.ProtoMessage { + return (*QueryListeningCoefficientResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -57222,16 +56671,10 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Interface( // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.RewardFraction != "" { - value := protoreflect.ValueOfString(x.RewardFraction) - if !f(fd_QueryPreviousInferenceRewardFractionResponse_reward_fraction, value) { - return - } - } - if x.NotFound != false { - value := protoreflect.ValueOfBool(x.NotFound) - if !f(fd_QueryPreviousInferenceRewardFractionResponse_not_found, value) { +func (x *fastReflection_QueryListeningCoefficientResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ListeningCoefficient != nil { + value := protoreflect.ValueOfMessage(x.ListeningCoefficient.ProtoReflect()) + if !f(fd_QueryListeningCoefficientResponse_listening_coefficient, value) { return } } @@ -57248,17 +56691,15 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Range(f fu // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryListeningCoefficientResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryPreviousInferenceRewardFractionResponse.reward_fraction": - return x.RewardFraction != "" - case "emissions.v1.QueryPreviousInferenceRewardFractionResponse.not_found": - return x.NotFound != false + case "emissions.v2.QueryListeningCoefficientResponse.listening_coefficient": + return x.ListeningCoefficient != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousInferenceRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryListeningCoefficientResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousInferenceRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryListeningCoefficientResponse does not contain field %s", fd.FullName())) } } @@ -57268,17 +56709,15 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Has(fd pro // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryListeningCoefficientResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryPreviousInferenceRewardFractionResponse.reward_fraction": - x.RewardFraction = "" - case "emissions.v1.QueryPreviousInferenceRewardFractionResponse.not_found": - x.NotFound = false + case "emissions.v2.QueryListeningCoefficientResponse.listening_coefficient": + x.ListeningCoefficient = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousInferenceRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryListeningCoefficientResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousInferenceRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryListeningCoefficientResponse does not contain field %s", fd.FullName())) } } @@ -57288,19 +56727,16 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Clear(fd p // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryListeningCoefficientResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryPreviousInferenceRewardFractionResponse.reward_fraction": - value := x.RewardFraction - return protoreflect.ValueOfString(value) - case "emissions.v1.QueryPreviousInferenceRewardFractionResponse.not_found": - value := x.NotFound - return protoreflect.ValueOfBool(value) + case "emissions.v2.QueryListeningCoefficientResponse.listening_coefficient": + value := x.ListeningCoefficient + return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousInferenceRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryListeningCoefficientResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousInferenceRewardFractionResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryListeningCoefficientResponse does not contain field %s", descriptor.FullName())) } } @@ -57314,17 +56750,15 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Get(descri // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryListeningCoefficientResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryPreviousInferenceRewardFractionResponse.reward_fraction": - x.RewardFraction = value.Interface().(string) - case "emissions.v1.QueryPreviousInferenceRewardFractionResponse.not_found": - x.NotFound = value.Bool() + case "emissions.v2.QueryListeningCoefficientResponse.listening_coefficient": + x.ListeningCoefficient = value.Message().Interface().(*ListeningCoefficient) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousInferenceRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryListeningCoefficientResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousInferenceRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryListeningCoefficientResponse does not contain field %s", fd.FullName())) } } @@ -57338,44 +56772,44 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Set(fd pro // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryListeningCoefficientResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousInferenceRewardFractionResponse.reward_fraction": - panic(fmt.Errorf("field reward_fraction of message emissions.v1.QueryPreviousInferenceRewardFractionResponse is not mutable")) - case "emissions.v1.QueryPreviousInferenceRewardFractionResponse.not_found": - panic(fmt.Errorf("field not_found of message emissions.v1.QueryPreviousInferenceRewardFractionResponse is not mutable")) + case "emissions.v2.QueryListeningCoefficientResponse.listening_coefficient": + if x.ListeningCoefficient == nil { + x.ListeningCoefficient = new(ListeningCoefficient) + } + return protoreflect.ValueOfMessage(x.ListeningCoefficient.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousInferenceRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryListeningCoefficientResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousInferenceRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryListeningCoefficientResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryListeningCoefficientResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousInferenceRewardFractionResponse.reward_fraction": - return protoreflect.ValueOfString("") - case "emissions.v1.QueryPreviousInferenceRewardFractionResponse.not_found": - return protoreflect.ValueOfBool(false) + case "emissions.v2.QueryListeningCoefficientResponse.listening_coefficient": + m := new(ListeningCoefficient) + return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousInferenceRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryListeningCoefficientResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousInferenceRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryListeningCoefficientResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryListeningCoefficientResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryPreviousInferenceRewardFractionResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryListeningCoefficientResponse", d.FullName())) } panic("unreachable") } @@ -57383,7 +56817,7 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) WhichOneof // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryListeningCoefficientResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -57394,7 +56828,7 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) GetUnknown // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryListeningCoefficientResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -57406,7 +56840,7 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) SetUnknown // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) IsValid() bool { +func (x *fastReflection_QueryListeningCoefficientResponse) IsValid() bool { return x != nil } @@ -57416,9 +56850,9 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) IsValid() // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryListeningCoefficientResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPreviousInferenceRewardFractionResponse) + x := input.Message.Interface().(*QueryListeningCoefficientResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -57430,13 +56864,10 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) ProtoMetho var n int var l int _ = l - l = len(x.RewardFraction) - if l > 0 { + if x.ListeningCoefficient != nil { + l = options.Size(x.ListeningCoefficient) n += 1 + l + runtime.Sov(uint64(l)) } - if x.NotFound { - n += 2 - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -57447,7 +56878,7 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) ProtoMetho } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousInferenceRewardFractionResponse) + x := input.Message.Interface().(*QueryListeningCoefficientResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -57466,20 +56897,17 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) ProtoMetho i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.NotFound { - i-- - if x.NotFound { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if x.ListeningCoefficient != nil { + encoded, err := options.Marshal(x.ListeningCoefficient) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err } - i-- - dAtA[i] = 0x10 - } - if len(x.RewardFraction) > 0 { - i -= len(x.RewardFraction) - copy(dAtA[i:], x.RewardFraction) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RewardFraction))) + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- dAtA[i] = 0xa } @@ -57494,7 +56922,7 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) ProtoMetho }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousInferenceRewardFractionResponse) + x := input.Message.Interface().(*QueryListeningCoefficientResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -57526,17 +56954,17 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) ProtoMetho fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousInferenceRewardFractionResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListeningCoefficientResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousInferenceRewardFractionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryListeningCoefficientResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RewardFraction", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ListeningCoefficient", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -57546,44 +56974,28 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) ProtoMetho } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.RewardFraction = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NotFound", wireType) + if x.ListeningCoefficient == nil { + x.ListeningCoefficient = &ListeningCoefficient{} } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ListeningCoefficient); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } - x.NotFound = bool(v != 0) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -57620,28 +57032,28 @@ func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) ProtoMetho } var ( - md_QueryPreviousForecastRewardFractionRequest protoreflect.MessageDescriptor - fd_QueryPreviousForecastRewardFractionRequest_topic_id protoreflect.FieldDescriptor - fd_QueryPreviousForecastRewardFractionRequest_worker protoreflect.FieldDescriptor + md_QueryPreviousReputerRewardFractionRequest protoreflect.MessageDescriptor + fd_QueryPreviousReputerRewardFractionRequest_topic_id protoreflect.FieldDescriptor + fd_QueryPreviousReputerRewardFractionRequest_reputer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryPreviousForecastRewardFractionRequest = File_emissions_v1_query_proto.Messages().ByName("QueryPreviousForecastRewardFractionRequest") - fd_QueryPreviousForecastRewardFractionRequest_topic_id = md_QueryPreviousForecastRewardFractionRequest.Fields().ByName("topic_id") - fd_QueryPreviousForecastRewardFractionRequest_worker = md_QueryPreviousForecastRewardFractionRequest.Fields().ByName("worker") + file_emissions_v2_query_proto_init() + md_QueryPreviousReputerRewardFractionRequest = File_emissions_v2_query_proto.Messages().ByName("QueryPreviousReputerRewardFractionRequest") + fd_QueryPreviousReputerRewardFractionRequest_topic_id = md_QueryPreviousReputerRewardFractionRequest.Fields().ByName("topic_id") + fd_QueryPreviousReputerRewardFractionRequest_reputer = md_QueryPreviousReputerRewardFractionRequest.Fields().ByName("reputer") } -var _ protoreflect.Message = (*fastReflection_QueryPreviousForecastRewardFractionRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPreviousReputerRewardFractionRequest)(nil) -type fastReflection_QueryPreviousForecastRewardFractionRequest QueryPreviousForecastRewardFractionRequest +type fastReflection_QueryPreviousReputerRewardFractionRequest QueryPreviousReputerRewardFractionRequest -func (x *QueryPreviousForecastRewardFractionRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPreviousForecastRewardFractionRequest)(x) +func (x *QueryPreviousReputerRewardFractionRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPreviousReputerRewardFractionRequest)(x) } -func (x *QueryPreviousForecastRewardFractionRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[128] +func (x *QueryPreviousReputerRewardFractionRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[126] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -57652,43 +57064,43 @@ func (x *QueryPreviousForecastRewardFractionRequest) slowProtoReflect() protoref return mi.MessageOf(x) } -var _fastReflection_QueryPreviousForecastRewardFractionRequest_messageType fastReflection_QueryPreviousForecastRewardFractionRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryPreviousForecastRewardFractionRequest_messageType{} +var _fastReflection_QueryPreviousReputerRewardFractionRequest_messageType fastReflection_QueryPreviousReputerRewardFractionRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryPreviousReputerRewardFractionRequest_messageType{} -type fastReflection_QueryPreviousForecastRewardFractionRequest_messageType struct{} +type fastReflection_QueryPreviousReputerRewardFractionRequest_messageType struct{} -func (x fastReflection_QueryPreviousForecastRewardFractionRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPreviousForecastRewardFractionRequest)(nil) +func (x fastReflection_QueryPreviousReputerRewardFractionRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPreviousReputerRewardFractionRequest)(nil) } -func (x fastReflection_QueryPreviousForecastRewardFractionRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPreviousForecastRewardFractionRequest) +func (x fastReflection_QueryPreviousReputerRewardFractionRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPreviousReputerRewardFractionRequest) } -func (x fastReflection_QueryPreviousForecastRewardFractionRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousForecastRewardFractionRequest +func (x fastReflection_QueryPreviousReputerRewardFractionRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousReputerRewardFractionRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousForecastRewardFractionRequest +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousReputerRewardFractionRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryPreviousForecastRewardFractionRequest_messageType +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryPreviousReputerRewardFractionRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) New() protoreflect.Message { - return new(fastReflection_QueryPreviousForecastRewardFractionRequest) +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) New() protoreflect.Message { + return new(fastReflection_QueryPreviousReputerRewardFractionRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Interface() protoreflect.ProtoMessage { - return (*QueryPreviousForecastRewardFractionRequest)(x) +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Interface() protoreflect.ProtoMessage { + return (*QueryPreviousReputerRewardFractionRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -57696,16 +57108,16 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Interface() // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryPreviousForecastRewardFractionRequest_topic_id, value) { + if !f(fd_QueryPreviousReputerRewardFractionRequest_topic_id, value) { return } } - if x.Worker != "" { - value := protoreflect.ValueOfString(x.Worker) - if !f(fd_QueryPreviousForecastRewardFractionRequest_worker, value) { + if x.Reputer != "" { + value := protoreflect.ValueOfString(x.Reputer) + if !f(fd_QueryPreviousReputerRewardFractionRequest_reputer, value) { return } } @@ -57722,17 +57134,17 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Range(f func // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryPreviousForecastRewardFractionRequest.topic_id": + case "emissions.v2.QueryPreviousReputerRewardFractionRequest.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.QueryPreviousForecastRewardFractionRequest.worker": - return x.Worker != "" + case "emissions.v2.QueryPreviousReputerRewardFractionRequest.reputer": + return x.Reputer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousForecastRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousReputerRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousForecastRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousReputerRewardFractionRequest does not contain field %s", fd.FullName())) } } @@ -57742,17 +57154,17 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Has(fd proto // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryPreviousForecastRewardFractionRequest.topic_id": + case "emissions.v2.QueryPreviousReputerRewardFractionRequest.topic_id": x.TopicId = uint64(0) - case "emissions.v1.QueryPreviousForecastRewardFractionRequest.worker": - x.Worker = "" + case "emissions.v2.QueryPreviousReputerRewardFractionRequest.reputer": + x.Reputer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousForecastRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousReputerRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousForecastRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousReputerRewardFractionRequest does not contain field %s", fd.FullName())) } } @@ -57762,19 +57174,19 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Clear(fd pro // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryPreviousForecastRewardFractionRequest.topic_id": + case "emissions.v2.QueryPreviousReputerRewardFractionRequest.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.QueryPreviousForecastRewardFractionRequest.worker": - value := x.Worker + case "emissions.v2.QueryPreviousReputerRewardFractionRequest.reputer": + value := x.Reputer return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousForecastRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousReputerRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousForecastRewardFractionRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousReputerRewardFractionRequest does not contain field %s", descriptor.FullName())) } } @@ -57788,17 +57200,17 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Get(descript // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryPreviousForecastRewardFractionRequest.topic_id": + case "emissions.v2.QueryPreviousReputerRewardFractionRequest.topic_id": x.TopicId = value.Uint() - case "emissions.v1.QueryPreviousForecastRewardFractionRequest.worker": - x.Worker = value.Interface().(string) + case "emissions.v2.QueryPreviousReputerRewardFractionRequest.reputer": + x.Reputer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousForecastRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousReputerRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousForecastRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousReputerRewardFractionRequest does not contain field %s", fd.FullName())) } } @@ -57812,44 +57224,44 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Set(fd proto // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousForecastRewardFractionRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryPreviousForecastRewardFractionRequest is not mutable")) - case "emissions.v1.QueryPreviousForecastRewardFractionRequest.worker": - panic(fmt.Errorf("field worker of message emissions.v1.QueryPreviousForecastRewardFractionRequest is not mutable")) + case "emissions.v2.QueryPreviousReputerRewardFractionRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryPreviousReputerRewardFractionRequest is not mutable")) + case "emissions.v2.QueryPreviousReputerRewardFractionRequest.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.QueryPreviousReputerRewardFractionRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousForecastRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousReputerRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousForecastRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousReputerRewardFractionRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousForecastRewardFractionRequest.topic_id": + case "emissions.v2.QueryPreviousReputerRewardFractionRequest.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.QueryPreviousForecastRewardFractionRequest.worker": + case "emissions.v2.QueryPreviousReputerRewardFractionRequest.reputer": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousForecastRewardFractionRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousReputerRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousForecastRewardFractionRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousReputerRewardFractionRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryPreviousForecastRewardFractionRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryPreviousReputerRewardFractionRequest", d.FullName())) } panic("unreachable") } @@ -57857,7 +57269,7 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) WhichOneof(d // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -57868,7 +57280,7 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) GetUnknown() // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -57880,7 +57292,7 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) SetUnknown(f // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) IsValid() bool { +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) IsValid() bool { return x != nil } @@ -57890,9 +57302,9 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) IsValid() bo // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPreviousReputerRewardFractionRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPreviousForecastRewardFractionRequest) + x := input.Message.Interface().(*QueryPreviousReputerRewardFractionRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -57907,7 +57319,7 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) ProtoMethods if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } - l = len(x.Worker) + l = len(x.Reputer) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -57921,7 +57333,7 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) ProtoMethods } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousForecastRewardFractionRequest) + x := input.Message.Interface().(*QueryPreviousReputerRewardFractionRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -57940,10 +57352,10 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) ProtoMethods i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.Worker) > 0 { - i -= len(x.Worker) - copy(dAtA[i:], x.Worker) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Worker))) + if len(x.Reputer) > 0 { + i -= len(x.Reputer) + copy(dAtA[i:], x.Reputer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) i-- dAtA[i] = 0x12 } @@ -57963,7 +57375,7 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) ProtoMethods }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousForecastRewardFractionRequest) + x := input.Message.Interface().(*QueryPreviousReputerRewardFractionRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -57995,10 +57407,10 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) ProtoMethods fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousForecastRewardFractionRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousReputerRewardFractionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousForecastRewardFractionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousReputerRewardFractionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -58022,7 +57434,7 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) ProtoMethods } case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -58050,7 +57462,7 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) ProtoMethods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Worker = string(dAtA[iNdEx:postIndex]) + x.Reputer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -58088,28 +57500,28 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) ProtoMethods } var ( - md_QueryPreviousForecastRewardFractionResponse protoreflect.MessageDescriptor - fd_QueryPreviousForecastRewardFractionResponse_reward_fraction protoreflect.FieldDescriptor - fd_QueryPreviousForecastRewardFractionResponse_not_found protoreflect.FieldDescriptor + md_QueryPreviousReputerRewardFractionResponse protoreflect.MessageDescriptor + fd_QueryPreviousReputerRewardFractionResponse_reward_fraction protoreflect.FieldDescriptor + fd_QueryPreviousReputerRewardFractionResponse_not_found protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryPreviousForecastRewardFractionResponse = File_emissions_v1_query_proto.Messages().ByName("QueryPreviousForecastRewardFractionResponse") - fd_QueryPreviousForecastRewardFractionResponse_reward_fraction = md_QueryPreviousForecastRewardFractionResponse.Fields().ByName("reward_fraction") - fd_QueryPreviousForecastRewardFractionResponse_not_found = md_QueryPreviousForecastRewardFractionResponse.Fields().ByName("not_found") + file_emissions_v2_query_proto_init() + md_QueryPreviousReputerRewardFractionResponse = File_emissions_v2_query_proto.Messages().ByName("QueryPreviousReputerRewardFractionResponse") + fd_QueryPreviousReputerRewardFractionResponse_reward_fraction = md_QueryPreviousReputerRewardFractionResponse.Fields().ByName("reward_fraction") + fd_QueryPreviousReputerRewardFractionResponse_not_found = md_QueryPreviousReputerRewardFractionResponse.Fields().ByName("not_found") } -var _ protoreflect.Message = (*fastReflection_QueryPreviousForecastRewardFractionResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPreviousReputerRewardFractionResponse)(nil) -type fastReflection_QueryPreviousForecastRewardFractionResponse QueryPreviousForecastRewardFractionResponse +type fastReflection_QueryPreviousReputerRewardFractionResponse QueryPreviousReputerRewardFractionResponse -func (x *QueryPreviousForecastRewardFractionResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPreviousForecastRewardFractionResponse)(x) +func (x *QueryPreviousReputerRewardFractionResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPreviousReputerRewardFractionResponse)(x) } -func (x *QueryPreviousForecastRewardFractionResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[129] +func (x *QueryPreviousReputerRewardFractionResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[127] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -58120,43 +57532,43 @@ func (x *QueryPreviousForecastRewardFractionResponse) slowProtoReflect() protore return mi.MessageOf(x) } -var _fastReflection_QueryPreviousForecastRewardFractionResponse_messageType fastReflection_QueryPreviousForecastRewardFractionResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryPreviousForecastRewardFractionResponse_messageType{} +var _fastReflection_QueryPreviousReputerRewardFractionResponse_messageType fastReflection_QueryPreviousReputerRewardFractionResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryPreviousReputerRewardFractionResponse_messageType{} -type fastReflection_QueryPreviousForecastRewardFractionResponse_messageType struct{} +type fastReflection_QueryPreviousReputerRewardFractionResponse_messageType struct{} -func (x fastReflection_QueryPreviousForecastRewardFractionResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPreviousForecastRewardFractionResponse)(nil) +func (x fastReflection_QueryPreviousReputerRewardFractionResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPreviousReputerRewardFractionResponse)(nil) } -func (x fastReflection_QueryPreviousForecastRewardFractionResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPreviousForecastRewardFractionResponse) +func (x fastReflection_QueryPreviousReputerRewardFractionResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPreviousReputerRewardFractionResponse) } -func (x fastReflection_QueryPreviousForecastRewardFractionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousForecastRewardFractionResponse +func (x fastReflection_QueryPreviousReputerRewardFractionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousReputerRewardFractionResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousForecastRewardFractionResponse +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousReputerRewardFractionResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryPreviousForecastRewardFractionResponse_messageType +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryPreviousReputerRewardFractionResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) New() protoreflect.Message { - return new(fastReflection_QueryPreviousForecastRewardFractionResponse) +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) New() protoreflect.Message { + return new(fastReflection_QueryPreviousReputerRewardFractionResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Interface() protoreflect.ProtoMessage { - return (*QueryPreviousForecastRewardFractionResponse)(x) +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Interface() protoreflect.ProtoMessage { + return (*QueryPreviousReputerRewardFractionResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -58164,16 +57576,16 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Interface() // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.RewardFraction != "" { value := protoreflect.ValueOfString(x.RewardFraction) - if !f(fd_QueryPreviousForecastRewardFractionResponse_reward_fraction, value) { + if !f(fd_QueryPreviousReputerRewardFractionResponse_reward_fraction, value) { return } } if x.NotFound != false { value := protoreflect.ValueOfBool(x.NotFound) - if !f(fd_QueryPreviousForecastRewardFractionResponse_not_found, value) { + if !f(fd_QueryPreviousReputerRewardFractionResponse_not_found, value) { return } } @@ -58190,17 +57602,17 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Range(f fun // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryPreviousForecastRewardFractionResponse.reward_fraction": + case "emissions.v2.QueryPreviousReputerRewardFractionResponse.reward_fraction": return x.RewardFraction != "" - case "emissions.v1.QueryPreviousForecastRewardFractionResponse.not_found": + case "emissions.v2.QueryPreviousReputerRewardFractionResponse.not_found": return x.NotFound != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousForecastRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousReputerRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousForecastRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousReputerRewardFractionResponse does not contain field %s", fd.FullName())) } } @@ -58210,17 +57622,17 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Has(fd prot // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryPreviousForecastRewardFractionResponse.reward_fraction": + case "emissions.v2.QueryPreviousReputerRewardFractionResponse.reward_fraction": x.RewardFraction = "" - case "emissions.v1.QueryPreviousForecastRewardFractionResponse.not_found": + case "emissions.v2.QueryPreviousReputerRewardFractionResponse.not_found": x.NotFound = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousForecastRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousReputerRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousForecastRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousReputerRewardFractionResponse does not contain field %s", fd.FullName())) } } @@ -58230,19 +57642,19 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Clear(fd pr // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryPreviousForecastRewardFractionResponse.reward_fraction": + case "emissions.v2.QueryPreviousReputerRewardFractionResponse.reward_fraction": value := x.RewardFraction return protoreflect.ValueOfString(value) - case "emissions.v1.QueryPreviousForecastRewardFractionResponse.not_found": + case "emissions.v2.QueryPreviousReputerRewardFractionResponse.not_found": value := x.NotFound return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousForecastRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousReputerRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousForecastRewardFractionResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousReputerRewardFractionResponse does not contain field %s", descriptor.FullName())) } } @@ -58256,17 +57668,17 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Get(descrip // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryPreviousForecastRewardFractionResponse.reward_fraction": + case "emissions.v2.QueryPreviousReputerRewardFractionResponse.reward_fraction": x.RewardFraction = value.Interface().(string) - case "emissions.v1.QueryPreviousForecastRewardFractionResponse.not_found": + case "emissions.v2.QueryPreviousReputerRewardFractionResponse.not_found": x.NotFound = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousForecastRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousReputerRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousForecastRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousReputerRewardFractionResponse does not contain field %s", fd.FullName())) } } @@ -58280,44 +57692,44 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Set(fd prot // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousForecastRewardFractionResponse.reward_fraction": - panic(fmt.Errorf("field reward_fraction of message emissions.v1.QueryPreviousForecastRewardFractionResponse is not mutable")) - case "emissions.v1.QueryPreviousForecastRewardFractionResponse.not_found": - panic(fmt.Errorf("field not_found of message emissions.v1.QueryPreviousForecastRewardFractionResponse is not mutable")) + case "emissions.v2.QueryPreviousReputerRewardFractionResponse.reward_fraction": + panic(fmt.Errorf("field reward_fraction of message emissions.v2.QueryPreviousReputerRewardFractionResponse is not mutable")) + case "emissions.v2.QueryPreviousReputerRewardFractionResponse.not_found": + panic(fmt.Errorf("field not_found of message emissions.v2.QueryPreviousReputerRewardFractionResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousForecastRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousReputerRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousForecastRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousReputerRewardFractionResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousForecastRewardFractionResponse.reward_fraction": + case "emissions.v2.QueryPreviousReputerRewardFractionResponse.reward_fraction": return protoreflect.ValueOfString("") - case "emissions.v1.QueryPreviousForecastRewardFractionResponse.not_found": + case "emissions.v2.QueryPreviousReputerRewardFractionResponse.not_found": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousForecastRewardFractionResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousReputerRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousForecastRewardFractionResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousReputerRewardFractionResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryPreviousForecastRewardFractionResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryPreviousReputerRewardFractionResponse", d.FullName())) } panic("unreachable") } @@ -58325,7 +57737,7 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) WhichOneof( // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -58336,7 +57748,7 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) GetUnknown( // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -58348,7 +57760,7 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) SetUnknown( // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) IsValid() bool { +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) IsValid() bool { return x != nil } @@ -58358,9 +57770,9 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) IsValid() b // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPreviousReputerRewardFractionResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPreviousForecastRewardFractionResponse) + x := input.Message.Interface().(*QueryPreviousReputerRewardFractionResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -58389,7 +57801,7 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) ProtoMethod } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousForecastRewardFractionResponse) + x := input.Message.Interface().(*QueryPreviousReputerRewardFractionResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -58436,7 +57848,7 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) ProtoMethod }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousForecastRewardFractionResponse) + x := input.Message.Interface().(*QueryPreviousReputerRewardFractionResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -58468,10 +57880,10 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) ProtoMethod fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousForecastRewardFractionResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousReputerRewardFractionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousForecastRewardFractionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousReputerRewardFractionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -58562,24 +57974,28 @@ func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) ProtoMethod } var ( - md_QueryPreviousPercentageRewardToStakedReputersRequest protoreflect.MessageDescriptor + md_QueryPreviousInferenceRewardFractionRequest protoreflect.MessageDescriptor + fd_QueryPreviousInferenceRewardFractionRequest_topic_id protoreflect.FieldDescriptor + fd_QueryPreviousInferenceRewardFractionRequest_worker protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryPreviousPercentageRewardToStakedReputersRequest = File_emissions_v1_query_proto.Messages().ByName("QueryPreviousPercentageRewardToStakedReputersRequest") + file_emissions_v2_query_proto_init() + md_QueryPreviousInferenceRewardFractionRequest = File_emissions_v2_query_proto.Messages().ByName("QueryPreviousInferenceRewardFractionRequest") + fd_QueryPreviousInferenceRewardFractionRequest_topic_id = md_QueryPreviousInferenceRewardFractionRequest.Fields().ByName("topic_id") + fd_QueryPreviousInferenceRewardFractionRequest_worker = md_QueryPreviousInferenceRewardFractionRequest.Fields().ByName("worker") } -var _ protoreflect.Message = (*fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPreviousInferenceRewardFractionRequest)(nil) -type fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest QueryPreviousPercentageRewardToStakedReputersRequest +type fastReflection_QueryPreviousInferenceRewardFractionRequest QueryPreviousInferenceRewardFractionRequest -func (x *QueryPreviousPercentageRewardToStakedReputersRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest)(x) +func (x *QueryPreviousInferenceRewardFractionRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPreviousInferenceRewardFractionRequest)(x) } -func (x *QueryPreviousPercentageRewardToStakedReputersRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[130] +func (x *QueryPreviousInferenceRewardFractionRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[128] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -58590,43 +58006,43 @@ func (x *QueryPreviousPercentageRewardToStakedReputersRequest) slowProtoReflect( return mi.MessageOf(x) } -var _fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType{} +var _fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType{} -type fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType struct{} +type fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType struct{} -func (x fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest)(nil) +func (x fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPreviousInferenceRewardFractionRequest)(nil) } -func (x fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) +func (x fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPreviousInferenceRewardFractionRequest) } -func (x fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousPercentageRewardToStakedReputersRequest +func (x fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousInferenceRewardFractionRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousPercentageRewardToStakedReputersRequest +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousInferenceRewardFractionRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryPreviousInferenceRewardFractionRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) New() protoreflect.Message { - return new(fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) New() protoreflect.Message { + return new(fastReflection_QueryPreviousInferenceRewardFractionRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Interface() protoreflect.ProtoMessage { - return (*QueryPreviousPercentageRewardToStakedReputersRequest)(x) +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Interface() protoreflect.ProtoMessage { + return (*QueryPreviousInferenceRewardFractionRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -58634,7 +58050,19 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) In // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryPreviousInferenceRewardFractionRequest_topic_id, value) { + return + } + } + if x.Worker != "" { + value := protoreflect.ValueOfString(x.Worker) + if !f(fd_QueryPreviousInferenceRewardFractionRequest_worker, value) { + return + } + } } // Has reports whether a field is populated. @@ -58648,13 +58076,17 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Ra // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "emissions.v2.QueryPreviousInferenceRewardFractionRequest.topic_id": + return x.TopicId != uint64(0) + case "emissions.v2.QueryPreviousInferenceRewardFractionRequest.worker": + return x.Worker != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousInferenceRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousInferenceRewardFractionRequest does not contain field %s", fd.FullName())) } } @@ -58664,13 +58096,17 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Ha // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "emissions.v2.QueryPreviousInferenceRewardFractionRequest.topic_id": + x.TopicId = uint64(0) + case "emissions.v2.QueryPreviousInferenceRewardFractionRequest.worker": + x.Worker = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousInferenceRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousInferenceRewardFractionRequest does not contain field %s", fd.FullName())) } } @@ -58680,13 +58116,19 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Cl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "emissions.v2.QueryPreviousInferenceRewardFractionRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryPreviousInferenceRewardFractionRequest.worker": + value := x.Worker + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousInferenceRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousInferenceRewardFractionRequest does not contain field %s", descriptor.FullName())) } } @@ -58700,13 +58142,17 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Ge // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "emissions.v2.QueryPreviousInferenceRewardFractionRequest.topic_id": + x.TopicId = value.Uint() + case "emissions.v2.QueryPreviousInferenceRewardFractionRequest.worker": + x.Worker = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousInferenceRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousInferenceRewardFractionRequest does not contain field %s", fd.FullName())) } } @@ -58720,36 +58166,44 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Se // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryPreviousInferenceRewardFractionRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryPreviousInferenceRewardFractionRequest is not mutable")) + case "emissions.v2.QueryPreviousInferenceRewardFractionRequest.worker": + panic(fmt.Errorf("field worker of message emissions.v2.QueryPreviousInferenceRewardFractionRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousInferenceRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousInferenceRewardFractionRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryPreviousInferenceRewardFractionRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryPreviousInferenceRewardFractionRequest.worker": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousInferenceRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousInferenceRewardFractionRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryPreviousInferenceRewardFractionRequest", d.FullName())) } panic("unreachable") } @@ -58757,7 +58211,7 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Wh // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -58768,7 +58222,7 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Ge // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -58780,7 +58234,7 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Se // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) IsValid() bool { +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) IsValid() bool { return x != nil } @@ -58790,9 +58244,9 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Is // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPreviousInferenceRewardFractionRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPreviousPercentageRewardToStakedReputersRequest) + x := input.Message.Interface().(*QueryPreviousInferenceRewardFractionRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -58804,6 +58258,13 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Pr var n int var l int _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.Worker) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -58814,7 +58275,7 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousPercentageRewardToStakedReputersRequest) + x := input.Message.Interface().(*QueryPreviousInferenceRewardFractionRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -58833,6 +58294,18 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Pr i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Worker) > 0 { + i -= len(x.Worker) + copy(dAtA[i:], x.Worker) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Worker))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -58844,7 +58317,7 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousPercentageRewardToStakedReputersRequest) + x := input.Message.Interface().(*QueryPreviousInferenceRewardFractionRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -58876,12 +58349,63 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousInferenceRewardFractionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousInferenceRewardFractionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Worker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -58918,26 +58442,28 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Pr } var ( - md_QueryPreviousPercentageRewardToStakedReputersResponse protoreflect.MessageDescriptor - fd_QueryPreviousPercentageRewardToStakedReputersResponse_percentage_reward protoreflect.FieldDescriptor + md_QueryPreviousInferenceRewardFractionResponse protoreflect.MessageDescriptor + fd_QueryPreviousInferenceRewardFractionResponse_reward_fraction protoreflect.FieldDescriptor + fd_QueryPreviousInferenceRewardFractionResponse_not_found protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryPreviousPercentageRewardToStakedReputersResponse = File_emissions_v1_query_proto.Messages().ByName("QueryPreviousPercentageRewardToStakedReputersResponse") - fd_QueryPreviousPercentageRewardToStakedReputersResponse_percentage_reward = md_QueryPreviousPercentageRewardToStakedReputersResponse.Fields().ByName("percentage_reward") + file_emissions_v2_query_proto_init() + md_QueryPreviousInferenceRewardFractionResponse = File_emissions_v2_query_proto.Messages().ByName("QueryPreviousInferenceRewardFractionResponse") + fd_QueryPreviousInferenceRewardFractionResponse_reward_fraction = md_QueryPreviousInferenceRewardFractionResponse.Fields().ByName("reward_fraction") + fd_QueryPreviousInferenceRewardFractionResponse_not_found = md_QueryPreviousInferenceRewardFractionResponse.Fields().ByName("not_found") } -var _ protoreflect.Message = (*fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPreviousInferenceRewardFractionResponse)(nil) -type fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse QueryPreviousPercentageRewardToStakedReputersResponse +type fastReflection_QueryPreviousInferenceRewardFractionResponse QueryPreviousInferenceRewardFractionResponse -func (x *QueryPreviousPercentageRewardToStakedReputersResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse)(x) +func (x *QueryPreviousInferenceRewardFractionResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPreviousInferenceRewardFractionResponse)(x) } -func (x *QueryPreviousPercentageRewardToStakedReputersResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[131] +func (x *QueryPreviousInferenceRewardFractionResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[129] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -58948,43 +58474,43 @@ func (x *QueryPreviousPercentageRewardToStakedReputersResponse) slowProtoReflect return mi.MessageOf(x) } -var _fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType{} +var _fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType{} -type fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType struct{} +type fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType struct{} -func (x fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse)(nil) +func (x fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPreviousInferenceRewardFractionResponse)(nil) } -func (x fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) +func (x fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPreviousInferenceRewardFractionResponse) } -func (x fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousPercentageRewardToStakedReputersResponse +func (x fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousInferenceRewardFractionResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryPreviousPercentageRewardToStakedReputersResponse +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousInferenceRewardFractionResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryPreviousInferenceRewardFractionResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) New() protoreflect.Message { - return new(fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) New() protoreflect.Message { + return new(fastReflection_QueryPreviousInferenceRewardFractionResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Interface() protoreflect.ProtoMessage { - return (*QueryPreviousPercentageRewardToStakedReputersResponse)(x) +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Interface() protoreflect.ProtoMessage { + return (*QueryPreviousInferenceRewardFractionResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -58992,10 +58518,16 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) I // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.PercentageReward != "" { - value := protoreflect.ValueOfString(x.PercentageReward) - if !f(fd_QueryPreviousPercentageRewardToStakedReputersResponse_percentage_reward, value) { +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RewardFraction != "" { + value := protoreflect.ValueOfString(x.RewardFraction) + if !f(fd_QueryPreviousInferenceRewardFractionResponse_reward_fraction, value) { + return + } + } + if x.NotFound != false { + value := protoreflect.ValueOfBool(x.NotFound) + if !f(fd_QueryPreviousInferenceRewardFractionResponse_not_found, value) { return } } @@ -59012,15 +58544,17 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) R // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse.percentage_reward": - return x.PercentageReward != "" + case "emissions.v2.QueryPreviousInferenceRewardFractionResponse.reward_fraction": + return x.RewardFraction != "" + case "emissions.v2.QueryPreviousInferenceRewardFractionResponse.not_found": + return x.NotFound != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousInferenceRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousInferenceRewardFractionResponse does not contain field %s", fd.FullName())) } } @@ -59030,15 +58564,17 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) H // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse.percentage_reward": - x.PercentageReward = "" + case "emissions.v2.QueryPreviousInferenceRewardFractionResponse.reward_fraction": + x.RewardFraction = "" + case "emissions.v2.QueryPreviousInferenceRewardFractionResponse.not_found": + x.NotFound = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousInferenceRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousInferenceRewardFractionResponse does not contain field %s", fd.FullName())) } } @@ -59048,16 +58584,19 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) C // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse.percentage_reward": - value := x.PercentageReward + case "emissions.v2.QueryPreviousInferenceRewardFractionResponse.reward_fraction": + value := x.RewardFraction return protoreflect.ValueOfString(value) + case "emissions.v2.QueryPreviousInferenceRewardFractionResponse.not_found": + value := x.NotFound + return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousInferenceRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousInferenceRewardFractionResponse does not contain field %s", descriptor.FullName())) } } @@ -59071,15 +58610,17 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) G // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse.percentage_reward": - x.PercentageReward = value.Interface().(string) + case "emissions.v2.QueryPreviousInferenceRewardFractionResponse.reward_fraction": + x.RewardFraction = value.Interface().(string) + case "emissions.v2.QueryPreviousInferenceRewardFractionResponse.not_found": + x.NotFound = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousInferenceRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousInferenceRewardFractionResponse does not contain field %s", fd.FullName())) } } @@ -59093,40 +58634,44 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) S // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse.percentage_reward": - panic(fmt.Errorf("field percentage_reward of message emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse is not mutable")) + case "emissions.v2.QueryPreviousInferenceRewardFractionResponse.reward_fraction": + panic(fmt.Errorf("field reward_fraction of message emissions.v2.QueryPreviousInferenceRewardFractionResponse is not mutable")) + case "emissions.v2.QueryPreviousInferenceRewardFractionResponse.not_found": + panic(fmt.Errorf("field not_found of message emissions.v2.QueryPreviousInferenceRewardFractionResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousInferenceRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousInferenceRewardFractionResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse.percentage_reward": + case "emissions.v2.QueryPreviousInferenceRewardFractionResponse.reward_fraction": return protoreflect.ValueOfString("") + case "emissions.v2.QueryPreviousInferenceRewardFractionResponse.not_found": + return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousInferenceRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousInferenceRewardFractionResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryPreviousInferenceRewardFractionResponse", d.FullName())) } panic("unreachable") } @@ -59134,7 +58679,7 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) W // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -59145,7 +58690,7 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) G // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -59157,7 +58702,7 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) S // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) IsValid() bool { +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) IsValid() bool { return x != nil } @@ -59167,9 +58712,9 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) I // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPreviousInferenceRewardFractionResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryPreviousPercentageRewardToStakedReputersResponse) + x := input.Message.Interface().(*QueryPreviousInferenceRewardFractionResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -59181,10 +58726,13 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) P var n int var l int _ = l - l = len(x.PercentageReward) + l = len(x.RewardFraction) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.NotFound { + n += 2 + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -59195,7 +58743,7 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) P } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousPercentageRewardToStakedReputersResponse) + x := input.Message.Interface().(*QueryPreviousInferenceRewardFractionResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -59214,10 +58762,20 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) P i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.PercentageReward) > 0 { - i -= len(x.PercentageReward) - copy(dAtA[i:], x.PercentageReward) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PercentageReward))) + if x.NotFound { + i-- + if x.NotFound { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(x.RewardFraction) > 0 { + i -= len(x.RewardFraction) + copy(dAtA[i:], x.RewardFraction) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RewardFraction))) i-- dAtA[i] = 0xa } @@ -59232,7 +58790,7 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) P }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryPreviousPercentageRewardToStakedReputersResponse) + x := input.Message.Interface().(*QueryPreviousInferenceRewardFractionResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -59264,15 +58822,15 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) P fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousInferenceRewardFractionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousInferenceRewardFractionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PercentageReward", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RewardFraction", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -59300,8 +58858,28 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) P if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.PercentageReward = string(dAtA[iNdEx:postIndex]) + x.RewardFraction = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NotFound", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.NotFound = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -59338,24 +58916,28 @@ func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) P } var ( - md_QueryTotalRewardToDistributeRequest protoreflect.MessageDescriptor + md_QueryPreviousForecastRewardFractionRequest protoreflect.MessageDescriptor + fd_QueryPreviousForecastRewardFractionRequest_topic_id protoreflect.FieldDescriptor + fd_QueryPreviousForecastRewardFractionRequest_worker protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTotalRewardToDistributeRequest = File_emissions_v1_query_proto.Messages().ByName("QueryTotalRewardToDistributeRequest") + file_emissions_v2_query_proto_init() + md_QueryPreviousForecastRewardFractionRequest = File_emissions_v2_query_proto.Messages().ByName("QueryPreviousForecastRewardFractionRequest") + fd_QueryPreviousForecastRewardFractionRequest_topic_id = md_QueryPreviousForecastRewardFractionRequest.Fields().ByName("topic_id") + fd_QueryPreviousForecastRewardFractionRequest_worker = md_QueryPreviousForecastRewardFractionRequest.Fields().ByName("worker") } -var _ protoreflect.Message = (*fastReflection_QueryTotalRewardToDistributeRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPreviousForecastRewardFractionRequest)(nil) -type fastReflection_QueryTotalRewardToDistributeRequest QueryTotalRewardToDistributeRequest +type fastReflection_QueryPreviousForecastRewardFractionRequest QueryPreviousForecastRewardFractionRequest -func (x *QueryTotalRewardToDistributeRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTotalRewardToDistributeRequest)(x) +func (x *QueryPreviousForecastRewardFractionRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPreviousForecastRewardFractionRequest)(x) } -func (x *QueryTotalRewardToDistributeRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[132] +func (x *QueryPreviousForecastRewardFractionRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[130] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -59366,43 +58948,43 @@ func (x *QueryTotalRewardToDistributeRequest) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_QueryTotalRewardToDistributeRequest_messageType fastReflection_QueryTotalRewardToDistributeRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTotalRewardToDistributeRequest_messageType{} +var _fastReflection_QueryPreviousForecastRewardFractionRequest_messageType fastReflection_QueryPreviousForecastRewardFractionRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryPreviousForecastRewardFractionRequest_messageType{} -type fastReflection_QueryTotalRewardToDistributeRequest_messageType struct{} +type fastReflection_QueryPreviousForecastRewardFractionRequest_messageType struct{} -func (x fastReflection_QueryTotalRewardToDistributeRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTotalRewardToDistributeRequest)(nil) +func (x fastReflection_QueryPreviousForecastRewardFractionRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPreviousForecastRewardFractionRequest)(nil) } -func (x fastReflection_QueryTotalRewardToDistributeRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTotalRewardToDistributeRequest) +func (x fastReflection_QueryPreviousForecastRewardFractionRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPreviousForecastRewardFractionRequest) } -func (x fastReflection_QueryTotalRewardToDistributeRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTotalRewardToDistributeRequest +func (x fastReflection_QueryPreviousForecastRewardFractionRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousForecastRewardFractionRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTotalRewardToDistributeRequest +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousForecastRewardFractionRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTotalRewardToDistributeRequest_messageType +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryPreviousForecastRewardFractionRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) New() protoreflect.Message { - return new(fastReflection_QueryTotalRewardToDistributeRequest) +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) New() protoreflect.Message { + return new(fastReflection_QueryPreviousForecastRewardFractionRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTotalRewardToDistributeRequest)(x) +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Interface() protoreflect.ProtoMessage { + return (*QueryPreviousForecastRewardFractionRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -59410,7 +58992,19 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_QueryPreviousForecastRewardFractionRequest_topic_id, value) { + return + } + } + if x.Worker != "" { + value := protoreflect.ValueOfString(x.Worker) + if !f(fd_QueryPreviousForecastRewardFractionRequest_worker, value) { + return + } + } } // Has reports whether a field is populated. @@ -59424,13 +59018,17 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) Range(f func(protor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { + case "emissions.v2.QueryPreviousForecastRewardFractionRequest.topic_id": + return x.TopicId != uint64(0) + case "emissions.v2.QueryPreviousForecastRewardFractionRequest.worker": + return x.Worker != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalRewardToDistributeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousForecastRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalRewardToDistributeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousForecastRewardFractionRequest does not contain field %s", fd.FullName())) } } @@ -59440,13 +59038,17 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { + case "emissions.v2.QueryPreviousForecastRewardFractionRequest.topic_id": + x.TopicId = uint64(0) + case "emissions.v2.QueryPreviousForecastRewardFractionRequest.worker": + x.Worker = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalRewardToDistributeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousForecastRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalRewardToDistributeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousForecastRewardFractionRequest does not contain field %s", fd.FullName())) } } @@ -59456,13 +59058,19 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) Clear(fd protorefle // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { + case "emissions.v2.QueryPreviousForecastRewardFractionRequest.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.QueryPreviousForecastRewardFractionRequest.worker": + value := x.Worker + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalRewardToDistributeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousForecastRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalRewardToDistributeRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousForecastRewardFractionRequest does not contain field %s", descriptor.FullName())) } } @@ -59476,13 +59084,17 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { + case "emissions.v2.QueryPreviousForecastRewardFractionRequest.topic_id": + x.TopicId = value.Uint() + case "emissions.v2.QueryPreviousForecastRewardFractionRequest.worker": + x.Worker = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalRewardToDistributeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousForecastRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalRewardToDistributeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousForecastRewardFractionRequest does not contain field %s", fd.FullName())) } } @@ -59496,36 +59108,44 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryPreviousForecastRewardFractionRequest.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.QueryPreviousForecastRewardFractionRequest is not mutable")) + case "emissions.v2.QueryPreviousForecastRewardFractionRequest.worker": + panic(fmt.Errorf("field worker of message emissions.v2.QueryPreviousForecastRewardFractionRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalRewardToDistributeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousForecastRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalRewardToDistributeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousForecastRewardFractionRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { + case "emissions.v2.QueryPreviousForecastRewardFractionRequest.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.QueryPreviousForecastRewardFractionRequest.worker": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalRewardToDistributeRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousForecastRewardFractionRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalRewardToDistributeRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousForecastRewardFractionRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTotalRewardToDistributeRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryPreviousForecastRewardFractionRequest", d.FullName())) } panic("unreachable") } @@ -59533,7 +59153,7 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) WhichOneof(d protor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -59544,7 +59164,7 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -59556,7 +59176,7 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) SetUnknown(fields p // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) IsValid() bool { +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) IsValid() bool { return x != nil } @@ -59566,9 +59186,9 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTotalRewardToDistributeRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPreviousForecastRewardFractionRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTotalRewardToDistributeRequest) + x := input.Message.Interface().(*QueryPreviousForecastRewardFractionRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -59580,6 +59200,13 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) ProtoMethods() *pro var n int var l int _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + l = len(x.Worker) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -59590,7 +59217,7 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTotalRewardToDistributeRequest) + x := input.Message.Interface().(*QueryPreviousForecastRewardFractionRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -59609,6 +59236,18 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) ProtoMethods() *pro i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.Worker) > 0 { + i -= len(x.Worker) + copy(dAtA[i:], x.Worker) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Worker))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -59620,7 +59259,7 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTotalRewardToDistributeRequest) + x := input.Message.Interface().(*QueryPreviousForecastRewardFractionRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -59652,12 +59291,63 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalRewardToDistributeRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousForecastRewardFractionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalRewardToDistributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousForecastRewardFractionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Worker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -59694,26 +59384,28 @@ func (x *fastReflection_QueryTotalRewardToDistributeRequest) ProtoMethods() *pro } var ( - md_QueryTotalRewardToDistributeResponse protoreflect.MessageDescriptor - fd_QueryTotalRewardToDistributeResponse_total_reward protoreflect.FieldDescriptor + md_QueryPreviousForecastRewardFractionResponse protoreflect.MessageDescriptor + fd_QueryPreviousForecastRewardFractionResponse_reward_fraction protoreflect.FieldDescriptor + fd_QueryPreviousForecastRewardFractionResponse_not_found protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTotalRewardToDistributeResponse = File_emissions_v1_query_proto.Messages().ByName("QueryTotalRewardToDistributeResponse") - fd_QueryTotalRewardToDistributeResponse_total_reward = md_QueryTotalRewardToDistributeResponse.Fields().ByName("total_reward") + file_emissions_v2_query_proto_init() + md_QueryPreviousForecastRewardFractionResponse = File_emissions_v2_query_proto.Messages().ByName("QueryPreviousForecastRewardFractionResponse") + fd_QueryPreviousForecastRewardFractionResponse_reward_fraction = md_QueryPreviousForecastRewardFractionResponse.Fields().ByName("reward_fraction") + fd_QueryPreviousForecastRewardFractionResponse_not_found = md_QueryPreviousForecastRewardFractionResponse.Fields().ByName("not_found") } -var _ protoreflect.Message = (*fastReflection_QueryTotalRewardToDistributeResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPreviousForecastRewardFractionResponse)(nil) -type fastReflection_QueryTotalRewardToDistributeResponse QueryTotalRewardToDistributeResponse +type fastReflection_QueryPreviousForecastRewardFractionResponse QueryPreviousForecastRewardFractionResponse -func (x *QueryTotalRewardToDistributeResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTotalRewardToDistributeResponse)(x) +func (x *QueryPreviousForecastRewardFractionResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPreviousForecastRewardFractionResponse)(x) } -func (x *QueryTotalRewardToDistributeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[133] +func (x *QueryPreviousForecastRewardFractionResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[131] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -59724,43 +59416,43 @@ func (x *QueryTotalRewardToDistributeResponse) slowProtoReflect() protoreflect.M return mi.MessageOf(x) } -var _fastReflection_QueryTotalRewardToDistributeResponse_messageType fastReflection_QueryTotalRewardToDistributeResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTotalRewardToDistributeResponse_messageType{} +var _fastReflection_QueryPreviousForecastRewardFractionResponse_messageType fastReflection_QueryPreviousForecastRewardFractionResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryPreviousForecastRewardFractionResponse_messageType{} -type fastReflection_QueryTotalRewardToDistributeResponse_messageType struct{} +type fastReflection_QueryPreviousForecastRewardFractionResponse_messageType struct{} -func (x fastReflection_QueryTotalRewardToDistributeResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTotalRewardToDistributeResponse)(nil) +func (x fastReflection_QueryPreviousForecastRewardFractionResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPreviousForecastRewardFractionResponse)(nil) } -func (x fastReflection_QueryTotalRewardToDistributeResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTotalRewardToDistributeResponse) +func (x fastReflection_QueryPreviousForecastRewardFractionResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPreviousForecastRewardFractionResponse) } -func (x fastReflection_QueryTotalRewardToDistributeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTotalRewardToDistributeResponse +func (x fastReflection_QueryPreviousForecastRewardFractionResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousForecastRewardFractionResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTotalRewardToDistributeResponse +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousForecastRewardFractionResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTotalRewardToDistributeResponse_messageType +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryPreviousForecastRewardFractionResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) New() protoreflect.Message { - return new(fastReflection_QueryTotalRewardToDistributeResponse) +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) New() protoreflect.Message { + return new(fastReflection_QueryPreviousForecastRewardFractionResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTotalRewardToDistributeResponse)(x) +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Interface() protoreflect.ProtoMessage { + return (*QueryPreviousForecastRewardFractionResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -59768,10 +59460,16 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) Interface() protor // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TotalReward != "" { - value := protoreflect.ValueOfString(x.TotalReward) - if !f(fd_QueryTotalRewardToDistributeResponse_total_reward, value) { +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.RewardFraction != "" { + value := protoreflect.ValueOfString(x.RewardFraction) + if !f(fd_QueryPreviousForecastRewardFractionResponse_reward_fraction, value) { + return + } + } + if x.NotFound != false { + value := protoreflect.ValueOfBool(x.NotFound) + if !f(fd_QueryPreviousForecastRewardFractionResponse_not_found, value) { return } } @@ -59788,15 +59486,17 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) Range(f func(proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTotalRewardToDistributeResponse.total_reward": - return x.TotalReward != "" + case "emissions.v2.QueryPreviousForecastRewardFractionResponse.reward_fraction": + return x.RewardFraction != "" + case "emissions.v2.QueryPreviousForecastRewardFractionResponse.not_found": + return x.NotFound != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalRewardToDistributeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousForecastRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalRewardToDistributeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousForecastRewardFractionResponse does not contain field %s", fd.FullName())) } } @@ -59806,15 +59506,17 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) Has(fd protoreflec // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTotalRewardToDistributeResponse.total_reward": - x.TotalReward = "" + case "emissions.v2.QueryPreviousForecastRewardFractionResponse.reward_fraction": + x.RewardFraction = "" + case "emissions.v2.QueryPreviousForecastRewardFractionResponse.not_found": + x.NotFound = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalRewardToDistributeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousForecastRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalRewardToDistributeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousForecastRewardFractionResponse does not contain field %s", fd.FullName())) } } @@ -59824,16 +59526,19 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) Clear(fd protorefl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTotalRewardToDistributeResponse.total_reward": - value := x.TotalReward + case "emissions.v2.QueryPreviousForecastRewardFractionResponse.reward_fraction": + value := x.RewardFraction return protoreflect.ValueOfString(value) + case "emissions.v2.QueryPreviousForecastRewardFractionResponse.not_found": + value := x.NotFound + return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalRewardToDistributeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousForecastRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalRewardToDistributeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousForecastRewardFractionResponse does not contain field %s", descriptor.FullName())) } } @@ -59847,15 +59552,17 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) Get(descriptor pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTotalRewardToDistributeResponse.total_reward": - x.TotalReward = value.Interface().(string) + case "emissions.v2.QueryPreviousForecastRewardFractionResponse.reward_fraction": + x.RewardFraction = value.Interface().(string) + case "emissions.v2.QueryPreviousForecastRewardFractionResponse.not_found": + x.NotFound = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalRewardToDistributeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousForecastRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalRewardToDistributeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousForecastRewardFractionResponse does not contain field %s", fd.FullName())) } } @@ -59869,40 +59576,44 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) Set(fd protoreflec // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTotalRewardToDistributeResponse.total_reward": - panic(fmt.Errorf("field total_reward of message emissions.v1.QueryTotalRewardToDistributeResponse is not mutable")) + case "emissions.v2.QueryPreviousForecastRewardFractionResponse.reward_fraction": + panic(fmt.Errorf("field reward_fraction of message emissions.v2.QueryPreviousForecastRewardFractionResponse is not mutable")) + case "emissions.v2.QueryPreviousForecastRewardFractionResponse.not_found": + panic(fmt.Errorf("field not_found of message emissions.v2.QueryPreviousForecastRewardFractionResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalRewardToDistributeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousForecastRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalRewardToDistributeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousForecastRewardFractionResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTotalRewardToDistributeResponse.total_reward": + case "emissions.v2.QueryPreviousForecastRewardFractionResponse.reward_fraction": return protoreflect.ValueOfString("") + case "emissions.v2.QueryPreviousForecastRewardFractionResponse.not_found": + return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTotalRewardToDistributeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousForecastRewardFractionResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTotalRewardToDistributeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousForecastRewardFractionResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTotalRewardToDistributeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryPreviousForecastRewardFractionResponse", d.FullName())) } panic("unreachable") } @@ -59910,7 +59621,7 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) WhichOneof(d proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -59921,7 +59632,7 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) GetUnknown() proto // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -59933,7 +59644,7 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) IsValid() bool { +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) IsValid() bool { return x != nil } @@ -59943,9 +59654,9 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTotalRewardToDistributeResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPreviousForecastRewardFractionResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTotalRewardToDistributeResponse) + x := input.Message.Interface().(*QueryPreviousForecastRewardFractionResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -59957,10 +59668,13 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) ProtoMethods() *pr var n int var l int _ = l - l = len(x.TotalReward) + l = len(x.RewardFraction) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.NotFound { + n += 2 + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -59971,7 +59685,7 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) ProtoMethods() *pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTotalRewardToDistributeResponse) + x := input.Message.Interface().(*QueryPreviousForecastRewardFractionResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -59990,10 +59704,20 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) ProtoMethods() *pr i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.TotalReward) > 0 { - i -= len(x.TotalReward) - copy(dAtA[i:], x.TotalReward) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalReward))) + if x.NotFound { + i-- + if x.NotFound { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + if len(x.RewardFraction) > 0 { + i -= len(x.RewardFraction) + copy(dAtA[i:], x.RewardFraction) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RewardFraction))) i-- dAtA[i] = 0xa } @@ -60008,7 +59732,7 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) ProtoMethods() *pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTotalRewardToDistributeResponse) + x := input.Message.Interface().(*QueryPreviousForecastRewardFractionResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -60040,15 +59764,15 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) ProtoMethods() *pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalRewardToDistributeResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousForecastRewardFractionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalRewardToDistributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousForecastRewardFractionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalReward", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RewardFraction", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -60076,8 +59800,28 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) ProtoMethods() *pr if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.TotalReward = string(dAtA[iNdEx:postIndex]) + x.RewardFraction = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 2: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NotFound", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.NotFound = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -60114,26 +59858,24 @@ func (x *fastReflection_QueryTotalRewardToDistributeResponse) ProtoMethods() *pr } var ( - md_QueryTopicLastWorkerPayloadRequest protoreflect.MessageDescriptor - fd_QueryTopicLastWorkerPayloadRequest_topic_id protoreflect.FieldDescriptor + md_QueryPreviousPercentageRewardToStakedReputersRequest protoreflect.MessageDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicLastWorkerPayloadRequest = File_emissions_v1_query_proto.Messages().ByName("QueryTopicLastWorkerPayloadRequest") - fd_QueryTopicLastWorkerPayloadRequest_topic_id = md_QueryTopicLastWorkerPayloadRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryPreviousPercentageRewardToStakedReputersRequest = File_emissions_v2_query_proto.Messages().ByName("QueryPreviousPercentageRewardToStakedReputersRequest") } -var _ protoreflect.Message = (*fastReflection_QueryTopicLastWorkerPayloadRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest)(nil) -type fastReflection_QueryTopicLastWorkerPayloadRequest QueryTopicLastWorkerPayloadRequest +type fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest QueryPreviousPercentageRewardToStakedReputersRequest -func (x *QueryTopicLastWorkerPayloadRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicLastWorkerPayloadRequest)(x) +func (x *QueryPreviousPercentageRewardToStakedReputersRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest)(x) } -func (x *QueryTopicLastWorkerPayloadRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[134] +func (x *QueryPreviousPercentageRewardToStakedReputersRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[132] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -60144,43 +59886,43 @@ func (x *QueryTopicLastWorkerPayloadRequest) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_QueryTopicLastWorkerPayloadRequest_messageType fastReflection_QueryTopicLastWorkerPayloadRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicLastWorkerPayloadRequest_messageType{} +var _fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType{} -type fastReflection_QueryTopicLastWorkerPayloadRequest_messageType struct{} +type fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType struct{} -func (x fastReflection_QueryTopicLastWorkerPayloadRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicLastWorkerPayloadRequest)(nil) +func (x fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest)(nil) } -func (x fastReflection_QueryTopicLastWorkerPayloadRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicLastWorkerPayloadRequest) +func (x fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) } -func (x fastReflection_QueryTopicLastWorkerPayloadRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicLastWorkerPayloadRequest +func (x fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousPercentageRewardToStakedReputersRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicLastWorkerPayloadRequest +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousPercentageRewardToStakedReputersRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicLastWorkerPayloadRequest_messageType +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) New() protoreflect.Message { - return new(fastReflection_QueryTopicLastWorkerPayloadRequest) +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) New() protoreflect.Message { + return new(fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTopicLastWorkerPayloadRequest)(x) +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Interface() protoreflect.ProtoMessage { + return (*QueryPreviousPercentageRewardToStakedReputersRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -60188,13 +59930,7 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryTopicLastWorkerPayloadRequest_topic_id, value) { - return - } - } +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -60208,15 +59944,13 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicLastWorkerPayloadRequest.topic_id": - return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastWorkerPayloadRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastWorkerPayloadRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest does not contain field %s", fd.FullName())) } } @@ -60226,15 +59960,13 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicLastWorkerPayloadRequest.topic_id": - x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastWorkerPayloadRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastWorkerPayloadRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest does not contain field %s", fd.FullName())) } } @@ -60244,16 +59976,13 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicLastWorkerPayloadRequest.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastWorkerPayloadRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastWorkerPayloadRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest does not contain field %s", descriptor.FullName())) } } @@ -60267,15 +59996,13 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicLastWorkerPayloadRequest.topic_id": - x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastWorkerPayloadRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastWorkerPayloadRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest does not contain field %s", fd.FullName())) } } @@ -60289,40 +60016,36 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicLastWorkerPayloadRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryTopicLastWorkerPayloadRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastWorkerPayloadRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastWorkerPayloadRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicLastWorkerPayloadRequest.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastWorkerPayloadRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastWorkerPayloadRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicLastWorkerPayloadRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest", d.FullName())) } panic("unreachable") } @@ -60330,7 +60053,7 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -60341,7 +60064,7 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -60353,7 +60076,7 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) IsValid() bool { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) IsValid() bool { return x != nil } @@ -60363,9 +60086,9 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicLastWorkerPayloadRequest) + x := input.Message.Interface().(*QueryPreviousPercentageRewardToStakedReputersRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -60377,9 +60100,6 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) ProtoMethods() *prot var n int var l int _ = l - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -60390,7 +60110,7 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicLastWorkerPayloadRequest) + x := input.Message.Interface().(*QueryPreviousPercentageRewardToStakedReputersRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -60409,11 +60129,6 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) ProtoMethods() *prot i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) - i-- - dAtA[i] = 0x8 - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -60425,7 +60140,7 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicLastWorkerPayloadRequest) + x := input.Message.Interface().(*QueryPreviousPercentageRewardToStakedReputersRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -60457,31 +60172,12 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastWorkerPayloadRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastWorkerPayloadRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - x.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -60518,26 +60214,26 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadRequest) ProtoMethods() *prot } var ( - md_QueryTopicLastWorkerPayloadResponse protoreflect.MessageDescriptor - fd_QueryTopicLastWorkerPayloadResponse_payload protoreflect.FieldDescriptor + md_QueryPreviousPercentageRewardToStakedReputersResponse protoreflect.MessageDescriptor + fd_QueryPreviousPercentageRewardToStakedReputersResponse_percentage_reward protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicLastWorkerPayloadResponse = File_emissions_v1_query_proto.Messages().ByName("QueryTopicLastWorkerPayloadResponse") - fd_QueryTopicLastWorkerPayloadResponse_payload = md_QueryTopicLastWorkerPayloadResponse.Fields().ByName("payload") + file_emissions_v2_query_proto_init() + md_QueryPreviousPercentageRewardToStakedReputersResponse = File_emissions_v2_query_proto.Messages().ByName("QueryPreviousPercentageRewardToStakedReputersResponse") + fd_QueryPreviousPercentageRewardToStakedReputersResponse_percentage_reward = md_QueryPreviousPercentageRewardToStakedReputersResponse.Fields().ByName("percentage_reward") } -var _ protoreflect.Message = (*fastReflection_QueryTopicLastWorkerPayloadResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse)(nil) -type fastReflection_QueryTopicLastWorkerPayloadResponse QueryTopicLastWorkerPayloadResponse +type fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse QueryPreviousPercentageRewardToStakedReputersResponse -func (x *QueryTopicLastWorkerPayloadResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicLastWorkerPayloadResponse)(x) +func (x *QueryPreviousPercentageRewardToStakedReputersResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse)(x) } -func (x *QueryTopicLastWorkerPayloadResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[135] +func (x *QueryPreviousPercentageRewardToStakedReputersResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[133] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -60548,43 +60244,43 @@ func (x *QueryTopicLastWorkerPayloadResponse) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_QueryTopicLastWorkerPayloadResponse_messageType fastReflection_QueryTopicLastWorkerPayloadResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicLastWorkerPayloadResponse_messageType{} +var _fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType{} -type fastReflection_QueryTopicLastWorkerPayloadResponse_messageType struct{} +type fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType struct{} -func (x fastReflection_QueryTopicLastWorkerPayloadResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicLastWorkerPayloadResponse)(nil) +func (x fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse)(nil) } -func (x fastReflection_QueryTopicLastWorkerPayloadResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicLastWorkerPayloadResponse) +func (x fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) } -func (x fastReflection_QueryTopicLastWorkerPayloadResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicLastWorkerPayloadResponse +func (x fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousPercentageRewardToStakedReputersResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicLastWorkerPayloadResponse +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryPreviousPercentageRewardToStakedReputersResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicLastWorkerPayloadResponse_messageType +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) New() protoreflect.Message { - return new(fastReflection_QueryTopicLastWorkerPayloadResponse) +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) New() protoreflect.Message { + return new(fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTopicLastWorkerPayloadResponse)(x) +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Interface() protoreflect.ProtoMessage { + return (*QueryPreviousPercentageRewardToStakedReputersResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -60592,10 +60288,10 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Payload != nil { - value := protoreflect.ValueOfMessage(x.Payload.ProtoReflect()) - if !f(fd_QueryTopicLastWorkerPayloadResponse_payload, value) { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.PercentageReward != "" { + value := protoreflect.ValueOfString(x.PercentageReward) + if !f(fd_QueryPreviousPercentageRewardToStakedReputersResponse_percentage_reward, value) { return } } @@ -60612,15 +60308,15 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Range(f func(protor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicLastWorkerPayloadResponse.payload": - return x.Payload != nil + case "emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse.percentage_reward": + return x.PercentageReward != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastWorkerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastWorkerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse does not contain field %s", fd.FullName())) } } @@ -60630,15 +60326,15 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicLastWorkerPayloadResponse.payload": - x.Payload = nil + case "emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse.percentage_reward": + x.PercentageReward = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastWorkerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastWorkerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse does not contain field %s", fd.FullName())) } } @@ -60648,16 +60344,16 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Clear(fd protorefle // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicLastWorkerPayloadResponse.payload": - value := x.Payload - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse.percentage_reward": + value := x.PercentageReward + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastWorkerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastWorkerPayloadResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse does not contain field %s", descriptor.FullName())) } } @@ -60671,15 +60367,15 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicLastWorkerPayloadResponse.payload": - x.Payload = value.Message().Interface().(*TimestampedActorNonce) + case "emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse.percentage_reward": + x.PercentageReward = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastWorkerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastWorkerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse does not contain field %s", fd.FullName())) } } @@ -60693,44 +60389,40 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicLastWorkerPayloadResponse.payload": - if x.Payload == nil { - x.Payload = new(TimestampedActorNonce) - } - return protoreflect.ValueOfMessage(x.Payload.ProtoReflect()) + case "emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse.percentage_reward": + panic(fmt.Errorf("field percentage_reward of message emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastWorkerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastWorkerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicLastWorkerPayloadResponse.payload": - m := new(TimestampedActorNonce) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse.percentage_reward": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastWorkerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastWorkerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicLastWorkerPayloadResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse", d.FullName())) } panic("unreachable") } @@ -60738,7 +60430,7 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) WhichOneof(d protor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -60749,7 +60441,7 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -60761,7 +60453,7 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) SetUnknown(fields p // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) IsValid() bool { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) IsValid() bool { return x != nil } @@ -60771,9 +60463,9 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryPreviousPercentageRewardToStakedReputersResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicLastWorkerPayloadResponse) + x := input.Message.Interface().(*QueryPreviousPercentageRewardToStakedReputersResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -60785,8 +60477,8 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) ProtoMethods() *pro var n int var l int _ = l - if x.Payload != nil { - l = options.Size(x.Payload) + l = len(x.PercentageReward) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -60799,7 +60491,7 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicLastWorkerPayloadResponse) + x := input.Message.Interface().(*QueryPreviousPercentageRewardToStakedReputersResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -60818,17 +60510,10 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) ProtoMethods() *pro i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Payload != nil { - encoded, err := options.Marshal(x.Payload) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.PercentageReward) > 0 { + i -= len(x.PercentageReward) + copy(dAtA[i:], x.PercentageReward) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PercentageReward))) i-- dAtA[i] = 0xa } @@ -60843,7 +60528,7 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicLastWorkerPayloadResponse) + x := input.Message.Interface().(*QueryPreviousPercentageRewardToStakedReputersResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -60875,17 +60560,17 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastWorkerPayloadResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastWorkerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PercentageReward", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -60895,27 +60580,23 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) ProtoMethods() *pro } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Payload == nil { - x.Payload = &TimestampedActorNonce{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Payload); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.PercentageReward = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -60953,26 +60634,24 @@ func (x *fastReflection_QueryTopicLastWorkerPayloadResponse) ProtoMethods() *pro } var ( - md_QueryTopicLastReputerPayloadRequest protoreflect.MessageDescriptor - fd_QueryTopicLastReputerPayloadRequest_topic_id protoreflect.FieldDescriptor + md_QueryTotalRewardToDistributeRequest protoreflect.MessageDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicLastReputerPayloadRequest = File_emissions_v1_query_proto.Messages().ByName("QueryTopicLastReputerPayloadRequest") - fd_QueryTopicLastReputerPayloadRequest_topic_id = md_QueryTopicLastReputerPayloadRequest.Fields().ByName("topic_id") + file_emissions_v2_query_proto_init() + md_QueryTotalRewardToDistributeRequest = File_emissions_v2_query_proto.Messages().ByName("QueryTotalRewardToDistributeRequest") } -var _ protoreflect.Message = (*fastReflection_QueryTopicLastReputerPayloadRequest)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTotalRewardToDistributeRequest)(nil) -type fastReflection_QueryTopicLastReputerPayloadRequest QueryTopicLastReputerPayloadRequest +type fastReflection_QueryTotalRewardToDistributeRequest QueryTotalRewardToDistributeRequest -func (x *QueryTopicLastReputerPayloadRequest) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicLastReputerPayloadRequest)(x) +func (x *QueryTotalRewardToDistributeRequest) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTotalRewardToDistributeRequest)(x) } -func (x *QueryTopicLastReputerPayloadRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[136] +func (x *QueryTotalRewardToDistributeRequest) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[134] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -60983,43 +60662,43 @@ func (x *QueryTopicLastReputerPayloadRequest) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_QueryTopicLastReputerPayloadRequest_messageType fastReflection_QueryTopicLastReputerPayloadRequest_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicLastReputerPayloadRequest_messageType{} +var _fastReflection_QueryTotalRewardToDistributeRequest_messageType fastReflection_QueryTotalRewardToDistributeRequest_messageType +var _ protoreflect.MessageType = fastReflection_QueryTotalRewardToDistributeRequest_messageType{} -type fastReflection_QueryTopicLastReputerPayloadRequest_messageType struct{} +type fastReflection_QueryTotalRewardToDistributeRequest_messageType struct{} -func (x fastReflection_QueryTopicLastReputerPayloadRequest_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicLastReputerPayloadRequest)(nil) +func (x fastReflection_QueryTotalRewardToDistributeRequest_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTotalRewardToDistributeRequest)(nil) } -func (x fastReflection_QueryTopicLastReputerPayloadRequest_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicLastReputerPayloadRequest) +func (x fastReflection_QueryTotalRewardToDistributeRequest_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTotalRewardToDistributeRequest) } -func (x fastReflection_QueryTopicLastReputerPayloadRequest_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicLastReputerPayloadRequest +func (x fastReflection_QueryTotalRewardToDistributeRequest_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTotalRewardToDistributeRequest } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicLastReputerPayloadRequest +func (x *fastReflection_QueryTotalRewardToDistributeRequest) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTotalRewardToDistributeRequest } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicLastReputerPayloadRequest_messageType +func (x *fastReflection_QueryTotalRewardToDistributeRequest) Type() protoreflect.MessageType { + return _fastReflection_QueryTotalRewardToDistributeRequest_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) New() protoreflect.Message { - return new(fastReflection_QueryTopicLastReputerPayloadRequest) +func (x *fastReflection_QueryTotalRewardToDistributeRequest) New() protoreflect.Message { + return new(fastReflection_QueryTotalRewardToDistributeRequest) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Interface() protoreflect.ProtoMessage { - return (*QueryTopicLastReputerPayloadRequest)(x) +func (x *fastReflection_QueryTotalRewardToDistributeRequest) Interface() protoreflect.ProtoMessage { + return (*QueryTotalRewardToDistributeRequest)(x) } // Range iterates over every populated field in an undefined order, @@ -61027,13 +60706,7 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_QueryTopicLastReputerPayloadRequest_topic_id, value) { - return - } - } +func (x *fastReflection_QueryTotalRewardToDistributeRequest) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -61047,15 +60720,13 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Range(f func(protor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTotalRewardToDistributeRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicLastReputerPayloadRequest.topic_id": - return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastReputerPayloadRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalRewardToDistributeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastReputerPayloadRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalRewardToDistributeRequest does not contain field %s", fd.FullName())) } } @@ -61065,15 +60736,13 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTotalRewardToDistributeRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicLastReputerPayloadRequest.topic_id": - x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastReputerPayloadRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalRewardToDistributeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastReputerPayloadRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalRewardToDistributeRequest does not contain field %s", fd.FullName())) } } @@ -61083,16 +60752,13 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Clear(fd protorefle // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTotalRewardToDistributeRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicLastReputerPayloadRequest.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastReputerPayloadRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalRewardToDistributeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastReputerPayloadRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalRewardToDistributeRequest does not contain field %s", descriptor.FullName())) } } @@ -61106,15 +60772,13 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTotalRewardToDistributeRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicLastReputerPayloadRequest.topic_id": - x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastReputerPayloadRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalRewardToDistributeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastReputerPayloadRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalRewardToDistributeRequest does not contain field %s", fd.FullName())) } } @@ -61128,40 +60792,36 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTotalRewardToDistributeRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicLastReputerPayloadRequest.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.QueryTopicLastReputerPayloadRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastReputerPayloadRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalRewardToDistributeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastReputerPayloadRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalRewardToDistributeRequest does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTotalRewardToDistributeRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicLastReputerPayloadRequest.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastReputerPayloadRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalRewardToDistributeRequest")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastReputerPayloadRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalRewardToDistributeRequest does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTotalRewardToDistributeRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicLastReputerPayloadRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTotalRewardToDistributeRequest", d.FullName())) } panic("unreachable") } @@ -61169,7 +60829,7 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) WhichOneof(d protor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTotalRewardToDistributeRequest) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -61180,7 +60840,7 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTotalRewardToDistributeRequest) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -61192,7 +60852,7 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) SetUnknown(fields p // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) IsValid() bool { +func (x *fastReflection_QueryTotalRewardToDistributeRequest) IsValid() bool { return x != nil } @@ -61202,9 +60862,9 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicLastReputerPayloadRequest) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTotalRewardToDistributeRequest) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicLastReputerPayloadRequest) + x := input.Message.Interface().(*QueryTotalRewardToDistributeRequest) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -61216,9 +60876,6 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) ProtoMethods() *pro var n int var l int _ = l - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -61229,7 +60886,7 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicLastReputerPayloadRequest) + x := input.Message.Interface().(*QueryTotalRewardToDistributeRequest) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -61248,11 +60905,6 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) ProtoMethods() *pro i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) - i-- - dAtA[i] = 0x8 - } if input.Buf != nil { input.Buf = append(input.Buf, dAtA...) } else { @@ -61264,7 +60916,7 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicLastReputerPayloadRequest) + x := input.Message.Interface().(*QueryTotalRewardToDistributeRequest) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -61296,31 +60948,12 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastReputerPayloadRequest: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalRewardToDistributeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastReputerPayloadRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalRewardToDistributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - x.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -61357,26 +60990,26 @@ func (x *fastReflection_QueryTopicLastReputerPayloadRequest) ProtoMethods() *pro } var ( - md_QueryTopicLastReputerPayloadResponse protoreflect.MessageDescriptor - fd_QueryTopicLastReputerPayloadResponse_payload protoreflect.FieldDescriptor + md_QueryTotalRewardToDistributeResponse protoreflect.MessageDescriptor + fd_QueryTotalRewardToDistributeResponse_total_reward protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_query_proto_init() - md_QueryTopicLastReputerPayloadResponse = File_emissions_v1_query_proto.Messages().ByName("QueryTopicLastReputerPayloadResponse") - fd_QueryTopicLastReputerPayloadResponse_payload = md_QueryTopicLastReputerPayloadResponse.Fields().ByName("payload") + file_emissions_v2_query_proto_init() + md_QueryTotalRewardToDistributeResponse = File_emissions_v2_query_proto.Messages().ByName("QueryTotalRewardToDistributeResponse") + fd_QueryTotalRewardToDistributeResponse_total_reward = md_QueryTotalRewardToDistributeResponse.Fields().ByName("total_reward") } -var _ protoreflect.Message = (*fastReflection_QueryTopicLastReputerPayloadResponse)(nil) +var _ protoreflect.Message = (*fastReflection_QueryTotalRewardToDistributeResponse)(nil) -type fastReflection_QueryTopicLastReputerPayloadResponse QueryTopicLastReputerPayloadResponse +type fastReflection_QueryTotalRewardToDistributeResponse QueryTotalRewardToDistributeResponse -func (x *QueryTopicLastReputerPayloadResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_QueryTopicLastReputerPayloadResponse)(x) +func (x *QueryTotalRewardToDistributeResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_QueryTotalRewardToDistributeResponse)(x) } -func (x *QueryTopicLastReputerPayloadResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_query_proto_msgTypes[137] +func (x *QueryTotalRewardToDistributeResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_query_proto_msgTypes[135] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -61387,43 +61020,43 @@ func (x *QueryTopicLastReputerPayloadResponse) slowProtoReflect() protoreflect.M return mi.MessageOf(x) } -var _fastReflection_QueryTopicLastReputerPayloadResponse_messageType fastReflection_QueryTopicLastReputerPayloadResponse_messageType -var _ protoreflect.MessageType = fastReflection_QueryTopicLastReputerPayloadResponse_messageType{} +var _fastReflection_QueryTotalRewardToDistributeResponse_messageType fastReflection_QueryTotalRewardToDistributeResponse_messageType +var _ protoreflect.MessageType = fastReflection_QueryTotalRewardToDistributeResponse_messageType{} -type fastReflection_QueryTopicLastReputerPayloadResponse_messageType struct{} +type fastReflection_QueryTotalRewardToDistributeResponse_messageType struct{} -func (x fastReflection_QueryTopicLastReputerPayloadResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_QueryTopicLastReputerPayloadResponse)(nil) +func (x fastReflection_QueryTotalRewardToDistributeResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_QueryTotalRewardToDistributeResponse)(nil) } -func (x fastReflection_QueryTopicLastReputerPayloadResponse_messageType) New() protoreflect.Message { - return new(fastReflection_QueryTopicLastReputerPayloadResponse) +func (x fastReflection_QueryTotalRewardToDistributeResponse_messageType) New() protoreflect.Message { + return new(fastReflection_QueryTotalRewardToDistributeResponse) } -func (x fastReflection_QueryTopicLastReputerPayloadResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicLastReputerPayloadResponse +func (x fastReflection_QueryTotalRewardToDistributeResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTotalRewardToDistributeResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Descriptor() protoreflect.MessageDescriptor { - return md_QueryTopicLastReputerPayloadResponse +func (x *fastReflection_QueryTotalRewardToDistributeResponse) Descriptor() protoreflect.MessageDescriptor { + return md_QueryTotalRewardToDistributeResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Type() protoreflect.MessageType { - return _fastReflection_QueryTopicLastReputerPayloadResponse_messageType +func (x *fastReflection_QueryTotalRewardToDistributeResponse) Type() protoreflect.MessageType { + return _fastReflection_QueryTotalRewardToDistributeResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) New() protoreflect.Message { - return new(fastReflection_QueryTopicLastReputerPayloadResponse) +func (x *fastReflection_QueryTotalRewardToDistributeResponse) New() protoreflect.Message { + return new(fastReflection_QueryTotalRewardToDistributeResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Interface() protoreflect.ProtoMessage { - return (*QueryTopicLastReputerPayloadResponse)(x) +func (x *fastReflection_QueryTotalRewardToDistributeResponse) Interface() protoreflect.ProtoMessage { + return (*QueryTotalRewardToDistributeResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -61431,10 +61064,10 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Interface() protor // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Payload != nil { - value := protoreflect.ValueOfMessage(x.Payload.ProtoReflect()) - if !f(fd_QueryTopicLastReputerPayloadResponse_payload, value) { +func (x *fastReflection_QueryTotalRewardToDistributeResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TotalReward != "" { + value := protoreflect.ValueOfString(x.TotalReward) + if !f(fd_QueryTotalRewardToDistributeResponse_total_reward, value) { return } } @@ -61451,15 +61084,15 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Range(f func(proto // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_QueryTotalRewardToDistributeResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.QueryTopicLastReputerPayloadResponse.payload": - return x.Payload != nil + case "emissions.v2.QueryTotalRewardToDistributeResponse.total_reward": + return x.TotalReward != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastReputerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalRewardToDistributeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastReputerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalRewardToDistributeResponse does not contain field %s", fd.FullName())) } } @@ -61469,15 +61102,15 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Has(fd protoreflec // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_QueryTotalRewardToDistributeResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.QueryTopicLastReputerPayloadResponse.payload": - x.Payload = nil + case "emissions.v2.QueryTotalRewardToDistributeResponse.total_reward": + x.TotalReward = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastReputerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalRewardToDistributeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastReputerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalRewardToDistributeResponse does not contain field %s", fd.FullName())) } } @@ -61487,16 +61120,16 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Clear(fd protorefl // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTotalRewardToDistributeResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.QueryTopicLastReputerPayloadResponse.payload": - value := x.Payload - return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.QueryTotalRewardToDistributeResponse.total_reward": + value := x.TotalReward + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastReputerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalRewardToDistributeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastReputerPayloadResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalRewardToDistributeResponse does not contain field %s", descriptor.FullName())) } } @@ -61510,15 +61143,15 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Get(descriptor pro // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_QueryTotalRewardToDistributeResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.QueryTopicLastReputerPayloadResponse.payload": - x.Payload = value.Message().Interface().(*TimestampedActorNonce) + case "emissions.v2.QueryTotalRewardToDistributeResponse.total_reward": + x.TotalReward = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastReputerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalRewardToDistributeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastReputerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalRewardToDistributeResponse does not contain field %s", fd.FullName())) } } @@ -61532,44 +61165,40 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Set(fd protoreflec // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTotalRewardToDistributeResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicLastReputerPayloadResponse.payload": - if x.Payload == nil { - x.Payload = new(TimestampedActorNonce) - } - return protoreflect.ValueOfMessage(x.Payload.ProtoReflect()) + case "emissions.v2.QueryTotalRewardToDistributeResponse.total_reward": + panic(fmt.Errorf("field total_reward of message emissions.v2.QueryTotalRewardToDistributeResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastReputerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalRewardToDistributeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastReputerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalRewardToDistributeResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_QueryTotalRewardToDistributeResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.QueryTopicLastReputerPayloadResponse.payload": - m := new(TimestampedActorNonce) - return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.QueryTotalRewardToDistributeResponse.total_reward": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.QueryTopicLastReputerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.QueryTotalRewardToDistributeResponse")) } - panic(fmt.Errorf("message emissions.v1.QueryTopicLastReputerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.QueryTotalRewardToDistributeResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_QueryTotalRewardToDistributeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.QueryTopicLastReputerPayloadResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.QueryTotalRewardToDistributeResponse", d.FullName())) } panic("unreachable") } @@ -61577,7 +61206,7 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) WhichOneof(d proto // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_QueryTotalRewardToDistributeResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -61588,7 +61217,7 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) GetUnknown() proto // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_QueryTotalRewardToDistributeResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -61600,7 +61229,7 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) SetUnknown(fields // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) IsValid() bool { +func (x *fastReflection_QueryTotalRewardToDistributeResponse) IsValid() bool { return x != nil } @@ -61610,9 +61239,9 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_QueryTopicLastReputerPayloadResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_QueryTotalRewardToDistributeResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*QueryTopicLastReputerPayloadResponse) + x := input.Message.Interface().(*QueryTotalRewardToDistributeResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -61624,8 +61253,8 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) ProtoMethods() *pr var n int var l int _ = l - if x.Payload != nil { - l = options.Size(x.Payload) + l = len(x.TotalReward) + if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } if x.unknownFields != nil { @@ -61638,7 +61267,7 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) ProtoMethods() *pr } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicLastReputerPayloadResponse) + x := input.Message.Interface().(*QueryTotalRewardToDistributeResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -61657,17 +61286,10 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) ProtoMethods() *pr i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if x.Payload != nil { - encoded, err := options.Marshal(x.Payload) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + if len(x.TotalReward) > 0 { + i -= len(x.TotalReward) + copy(dAtA[i:], x.TotalReward) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.TotalReward))) i-- dAtA[i] = 0xa } @@ -61682,7 +61304,7 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) ProtoMethods() *pr }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*QueryTopicLastReputerPayloadResponse) + x := input.Message.Interface().(*QueryTotalRewardToDistributeResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -61714,17 +61336,17 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) ProtoMethods() *pr fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastReputerPayloadResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalRewardToDistributeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTopicLastReputerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: QueryTotalRewardToDistributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TotalReward", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -61734,27 +61356,23 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) ProtoMethods() *pr } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Payload == nil { - x.Payload = &TimestampedActorNonce{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Payload); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.TotalReward = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -61795,7 +61413,7 @@ func (x *fastReflection_QueryTopicLastReputerPayloadResponse) ProtoMethods() *pr // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: emissions/v1/query.proto +// source: emissions/v2/query.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -61804,6 +61422,428 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type QueryNaiveInfererNetworkRegretRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Inferer string `protobuf:"bytes,2,opt,name=inferer,proto3" json:"inferer,omitempty"` +} + +func (x *QueryNaiveInfererNetworkRegretRequest) Reset() { + *x = QueryNaiveInfererNetworkRegretRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_query_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryNaiveInfererNetworkRegretRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryNaiveInfererNetworkRegretRequest) ProtoMessage() {} + +// Deprecated: Use QueryNaiveInfererNetworkRegretRequest.ProtoReflect.Descriptor instead. +func (*QueryNaiveInfererNetworkRegretRequest) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{0} +} + +func (x *QueryNaiveInfererNetworkRegretRequest) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *QueryNaiveInfererNetworkRegretRequest) GetInferer() string { + if x != nil { + return x.Inferer + } + return "" +} + +type QueryNaiveInfererNetworkRegretResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` +} + +func (x *QueryNaiveInfererNetworkRegretResponse) Reset() { + *x = QueryNaiveInfererNetworkRegretResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_query_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryNaiveInfererNetworkRegretResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryNaiveInfererNetworkRegretResponse) ProtoMessage() {} + +// Deprecated: Use QueryNaiveInfererNetworkRegretResponse.ProtoReflect.Descriptor instead. +func (*QueryNaiveInfererNetworkRegretResponse) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{1} +} + +func (x *QueryNaiveInfererNetworkRegretResponse) GetRegret() *TimestampedValue { + if x != nil { + return x.Regret + } + return nil +} + +type QueryOneOutInfererInfererNetworkRegretRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + OneOutInferer string `protobuf:"bytes,2,opt,name=one_out_inferer,json=oneOutInferer,proto3" json:"one_out_inferer,omitempty"` + Inferer string `protobuf:"bytes,3,opt,name=inferer,proto3" json:"inferer,omitempty"` +} + +func (x *QueryOneOutInfererInfererNetworkRegretRequest) Reset() { + *x = QueryOneOutInfererInfererNetworkRegretRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_query_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryOneOutInfererInfererNetworkRegretRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryOneOutInfererInfererNetworkRegretRequest) ProtoMessage() {} + +// Deprecated: Use QueryOneOutInfererInfererNetworkRegretRequest.ProtoReflect.Descriptor instead. +func (*QueryOneOutInfererInfererNetworkRegretRequest) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{2} +} + +func (x *QueryOneOutInfererInfererNetworkRegretRequest) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *QueryOneOutInfererInfererNetworkRegretRequest) GetOneOutInferer() string { + if x != nil { + return x.OneOutInferer + } + return "" +} + +func (x *QueryOneOutInfererInfererNetworkRegretRequest) GetInferer() string { + if x != nil { + return x.Inferer + } + return "" +} + +type QueryOneOutInfererInfererNetworkRegretResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` +} + +func (x *QueryOneOutInfererInfererNetworkRegretResponse) Reset() { + *x = QueryOneOutInfererInfererNetworkRegretResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_query_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryOneOutInfererInfererNetworkRegretResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryOneOutInfererInfererNetworkRegretResponse) ProtoMessage() {} + +// Deprecated: Use QueryOneOutInfererInfererNetworkRegretResponse.ProtoReflect.Descriptor instead. +func (*QueryOneOutInfererInfererNetworkRegretResponse) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{3} +} + +func (x *QueryOneOutInfererInfererNetworkRegretResponse) GetRegret() *TimestampedValue { + if x != nil { + return x.Regret + } + return nil +} + +type QueryOneOutInfererForecasterNetworkRegretRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + OneOutInferer string `protobuf:"bytes,2,opt,name=one_out_inferer,json=oneOutInferer,proto3" json:"one_out_inferer,omitempty"` + Forecaster string `protobuf:"bytes,3,opt,name=forecaster,proto3" json:"forecaster,omitempty"` +} + +func (x *QueryOneOutInfererForecasterNetworkRegretRequest) Reset() { + *x = QueryOneOutInfererForecasterNetworkRegretRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_query_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryOneOutInfererForecasterNetworkRegretRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryOneOutInfererForecasterNetworkRegretRequest) ProtoMessage() {} + +// Deprecated: Use QueryOneOutInfererForecasterNetworkRegretRequest.ProtoReflect.Descriptor instead. +func (*QueryOneOutInfererForecasterNetworkRegretRequest) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{4} +} + +func (x *QueryOneOutInfererForecasterNetworkRegretRequest) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *QueryOneOutInfererForecasterNetworkRegretRequest) GetOneOutInferer() string { + if x != nil { + return x.OneOutInferer + } + return "" +} + +func (x *QueryOneOutInfererForecasterNetworkRegretRequest) GetForecaster() string { + if x != nil { + return x.Forecaster + } + return "" +} + +type QueryOneOutInfererForecasterNetworkRegretResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` +} + +func (x *QueryOneOutInfererForecasterNetworkRegretResponse) Reset() { + *x = QueryOneOutInfererForecasterNetworkRegretResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_query_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryOneOutInfererForecasterNetworkRegretResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryOneOutInfererForecasterNetworkRegretResponse) ProtoMessage() {} + +// Deprecated: Use QueryOneOutInfererForecasterNetworkRegretResponse.ProtoReflect.Descriptor instead. +func (*QueryOneOutInfererForecasterNetworkRegretResponse) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{5} +} + +func (x *QueryOneOutInfererForecasterNetworkRegretResponse) GetRegret() *TimestampedValue { + if x != nil { + return x.Regret + } + return nil +} + +type QueryOneOutForecasterInfererNetworkRegretRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + OneOutForecaster string `protobuf:"bytes,2,opt,name=one_out_forecaster,json=oneOutForecaster,proto3" json:"one_out_forecaster,omitempty"` + Inferer string `protobuf:"bytes,3,opt,name=inferer,proto3" json:"inferer,omitempty"` +} + +func (x *QueryOneOutForecasterInfererNetworkRegretRequest) Reset() { + *x = QueryOneOutForecasterInfererNetworkRegretRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_query_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryOneOutForecasterInfererNetworkRegretRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryOneOutForecasterInfererNetworkRegretRequest) ProtoMessage() {} + +// Deprecated: Use QueryOneOutForecasterInfererNetworkRegretRequest.ProtoReflect.Descriptor instead. +func (*QueryOneOutForecasterInfererNetworkRegretRequest) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{6} +} + +func (x *QueryOneOutForecasterInfererNetworkRegretRequest) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *QueryOneOutForecasterInfererNetworkRegretRequest) GetOneOutForecaster() string { + if x != nil { + return x.OneOutForecaster + } + return "" +} + +func (x *QueryOneOutForecasterInfererNetworkRegretRequest) GetInferer() string { + if x != nil { + return x.Inferer + } + return "" +} + +type QueryOneOutForecasterInfererNetworkRegretResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` +} + +func (x *QueryOneOutForecasterInfererNetworkRegretResponse) Reset() { + *x = QueryOneOutForecasterInfererNetworkRegretResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_query_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryOneOutForecasterInfererNetworkRegretResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryOneOutForecasterInfererNetworkRegretResponse) ProtoMessage() {} + +// Deprecated: Use QueryOneOutForecasterInfererNetworkRegretResponse.ProtoReflect.Descriptor instead. +func (*QueryOneOutForecasterInfererNetworkRegretResponse) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{7} +} + +func (x *QueryOneOutForecasterInfererNetworkRegretResponse) GetRegret() *TimestampedValue { + if x != nil { + return x.Regret + } + return nil +} + +type QueryOneOutForecasterForecasterNetworkRegretRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + OneOutForecaster string `protobuf:"bytes,2,opt,name=one_out_forecaster,json=oneOutForecaster,proto3" json:"one_out_forecaster,omitempty"` + Forecaster string `protobuf:"bytes,3,opt,name=forecaster,proto3" json:"forecaster,omitempty"` +} + +func (x *QueryOneOutForecasterForecasterNetworkRegretRequest) Reset() { + *x = QueryOneOutForecasterForecasterNetworkRegretRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_query_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryOneOutForecasterForecasterNetworkRegretRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryOneOutForecasterForecasterNetworkRegretRequest) ProtoMessage() {} + +// Deprecated: Use QueryOneOutForecasterForecasterNetworkRegretRequest.ProtoReflect.Descriptor instead. +func (*QueryOneOutForecasterForecasterNetworkRegretRequest) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{8} +} + +func (x *QueryOneOutForecasterForecasterNetworkRegretRequest) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *QueryOneOutForecasterForecasterNetworkRegretRequest) GetOneOutForecaster() string { + if x != nil { + return x.OneOutForecaster + } + return "" +} + +func (x *QueryOneOutForecasterForecasterNetworkRegretRequest) GetForecaster() string { + if x != nil { + return x.Forecaster + } + return "" +} + +type QueryOneOutForecasterForecasterNetworkRegretResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` +} + +func (x *QueryOneOutForecasterForecasterNetworkRegretResponse) Reset() { + *x = QueryOneOutForecasterForecasterNetworkRegretResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_query_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *QueryOneOutForecasterForecasterNetworkRegretResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*QueryOneOutForecasterForecasterNetworkRegretResponse) ProtoMessage() {} + +// Deprecated: Use QueryOneOutForecasterForecasterNetworkRegretResponse.ProtoReflect.Descriptor instead. +func (*QueryOneOutForecasterForecasterNetworkRegretResponse) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{9} +} + +func (x *QueryOneOutForecasterForecasterNetworkRegretResponse) GetRegret() *TimestampedValue { + if x != nil { + return x.Regret + } + return nil +} + // QueryParamsRequest is the request type for the Query/Params RPC method. type QueryParamsRequest struct { state protoimpl.MessageState @@ -61814,7 +61854,7 @@ type QueryParamsRequest struct { func (x *QueryParamsRequest) Reset() { *x = QueryParamsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[0] + mi := &file_emissions_v2_query_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -61828,7 +61868,7 @@ func (*QueryParamsRequest) ProtoMessage() {} // Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead. func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{0} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{10} } // QueryParamsResponse is the response type for the Query/Params RPC method. @@ -61844,7 +61884,7 @@ type QueryParamsResponse struct { func (x *QueryParamsResponse) Reset() { *x = QueryParamsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[1] + mi := &file_emissions_v2_query_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -61858,7 +61898,7 @@ func (*QueryParamsResponse) ProtoMessage() {} // Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead. func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{1} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{11} } func (x *QueryParamsResponse) GetParams() *Params { @@ -61878,7 +61918,7 @@ type QueryTotalStakeRequest struct { func (x *QueryTotalStakeRequest) Reset() { *x = QueryTotalStakeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[2] + mi := &file_emissions_v2_query_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -61892,7 +61932,7 @@ func (*QueryTotalStakeRequest) ProtoMessage() {} // Deprecated: Use QueryTotalStakeRequest.ProtoReflect.Descriptor instead. func (*QueryTotalStakeRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{2} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{12} } // Total Stake returns the total amount of stake in the system @@ -61910,7 +61950,7 @@ type QueryTotalStakeResponse struct { func (x *QueryTotalStakeResponse) Reset() { *x = QueryTotalStakeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[3] + mi := &file_emissions_v2_query_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -61924,7 +61964,7 @@ func (*QueryTotalStakeResponse) ProtoMessage() {} // Deprecated: Use QueryTotalStakeResponse.ProtoReflect.Descriptor instead. func (*QueryTotalStakeResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{3} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{13} } func (x *QueryTotalStakeResponse) GetAmount() string { @@ -61946,7 +61986,7 @@ type QueryReputerStakeInTopicRequest struct { func (x *QueryReputerStakeInTopicRequest) Reset() { *x = QueryReputerStakeInTopicRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[4] + mi := &file_emissions_v2_query_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -61960,7 +62000,7 @@ func (*QueryReputerStakeInTopicRequest) ProtoMessage() {} // Deprecated: Use QueryReputerStakeInTopicRequest.ProtoReflect.Descriptor instead. func (*QueryReputerStakeInTopicRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{4} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{14} } func (x *QueryReputerStakeInTopicRequest) GetAddress() string { @@ -61988,7 +62028,7 @@ type QueryReputerStakeInTopicResponse struct { func (x *QueryReputerStakeInTopicResponse) Reset() { *x = QueryReputerStakeInTopicResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[5] + mi := &file_emissions_v2_query_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62002,7 +62042,7 @@ func (*QueryReputerStakeInTopicResponse) ProtoMessage() {} // Deprecated: Use QueryReputerStakeInTopicResponse.ProtoReflect.Descriptor instead. func (*QueryReputerStakeInTopicResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{5} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{15} } func (x *QueryReputerStakeInTopicResponse) GetAmount() string { @@ -62024,7 +62064,7 @@ type QueryMultiReputerStakeInTopicRequest struct { func (x *QueryMultiReputerStakeInTopicRequest) Reset() { *x = QueryMultiReputerStakeInTopicRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[6] + mi := &file_emissions_v2_query_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62038,7 +62078,7 @@ func (*QueryMultiReputerStakeInTopicRequest) ProtoMessage() {} // Deprecated: Use QueryMultiReputerStakeInTopicRequest.ProtoReflect.Descriptor instead. func (*QueryMultiReputerStakeInTopicRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{6} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{16} } func (x *QueryMultiReputerStakeInTopicRequest) GetAddresses() []string { @@ -62066,7 +62106,7 @@ type QueryMultiReputerStakeInTopicResponse struct { func (x *QueryMultiReputerStakeInTopicResponse) Reset() { *x = QueryMultiReputerStakeInTopicResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[7] + mi := &file_emissions_v2_query_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62080,7 +62120,7 @@ func (*QueryMultiReputerStakeInTopicResponse) ProtoMessage() {} // Deprecated: Use QueryMultiReputerStakeInTopicResponse.ProtoReflect.Descriptor instead. func (*QueryMultiReputerStakeInTopicResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{7} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{17} } func (x *QueryMultiReputerStakeInTopicResponse) GetAmounts() []*StakeInfo { @@ -62102,7 +62142,7 @@ type QueryStakeFromReputerInTopicInSelfRequest struct { func (x *QueryStakeFromReputerInTopicInSelfRequest) Reset() { *x = QueryStakeFromReputerInTopicInSelfRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[8] + mi := &file_emissions_v2_query_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62116,7 +62156,7 @@ func (*QueryStakeFromReputerInTopicInSelfRequest) ProtoMessage() {} // Deprecated: Use QueryStakeFromReputerInTopicInSelfRequest.ProtoReflect.Descriptor instead. func (*QueryStakeFromReputerInTopicInSelfRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{8} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{18} } func (x *QueryStakeFromReputerInTopicInSelfRequest) GetReputerAddress() string { @@ -62144,7 +62184,7 @@ type QueryStakeFromReputerInTopicInSelfResponse struct { func (x *QueryStakeFromReputerInTopicInSelfResponse) Reset() { *x = QueryStakeFromReputerInTopicInSelfResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[9] + mi := &file_emissions_v2_query_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62158,7 +62198,7 @@ func (*QueryStakeFromReputerInTopicInSelfResponse) ProtoMessage() {} // Deprecated: Use QueryStakeFromReputerInTopicInSelfResponse.ProtoReflect.Descriptor instead. func (*QueryStakeFromReputerInTopicInSelfResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{9} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{19} } func (x *QueryStakeFromReputerInTopicInSelfResponse) GetAmount() string { @@ -62180,7 +62220,7 @@ type QueryDelegateStakeInTopicInReputerRequest struct { func (x *QueryDelegateStakeInTopicInReputerRequest) Reset() { *x = QueryDelegateStakeInTopicInReputerRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[10] + mi := &file_emissions_v2_query_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62194,7 +62234,7 @@ func (*QueryDelegateStakeInTopicInReputerRequest) ProtoMessage() {} // Deprecated: Use QueryDelegateStakeInTopicInReputerRequest.ProtoReflect.Descriptor instead. func (*QueryDelegateStakeInTopicInReputerRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{10} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{20} } func (x *QueryDelegateStakeInTopicInReputerRequest) GetReputerAddress() string { @@ -62222,7 +62262,7 @@ type QueryDelegateStakeInTopicInReputerResponse struct { func (x *QueryDelegateStakeInTopicInReputerResponse) Reset() { *x = QueryDelegateStakeInTopicInReputerResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[11] + mi := &file_emissions_v2_query_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62236,7 +62276,7 @@ func (*QueryDelegateStakeInTopicInReputerResponse) ProtoMessage() {} // Deprecated: Use QueryDelegateStakeInTopicInReputerResponse.ProtoReflect.Descriptor instead. func (*QueryDelegateStakeInTopicInReputerResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{11} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{21} } func (x *QueryDelegateStakeInTopicInReputerResponse) GetAmount() string { @@ -62259,7 +62299,7 @@ type QueryStakeFromDelegatorInTopicInReputerRequest struct { func (x *QueryStakeFromDelegatorInTopicInReputerRequest) Reset() { *x = QueryStakeFromDelegatorInTopicInReputerRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[12] + mi := &file_emissions_v2_query_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62273,7 +62313,7 @@ func (*QueryStakeFromDelegatorInTopicInReputerRequest) ProtoMessage() {} // Deprecated: Use QueryStakeFromDelegatorInTopicInReputerRequest.ProtoReflect.Descriptor instead. func (*QueryStakeFromDelegatorInTopicInReputerRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{12} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{22} } func (x *QueryStakeFromDelegatorInTopicInReputerRequest) GetDelegatorAddress() string { @@ -62308,7 +62348,7 @@ type QueryStakeFromDelegatorInTopicInReputerResponse struct { func (x *QueryStakeFromDelegatorInTopicInReputerResponse) Reset() { *x = QueryStakeFromDelegatorInTopicInReputerResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[13] + mi := &file_emissions_v2_query_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62322,7 +62362,7 @@ func (*QueryStakeFromDelegatorInTopicInReputerResponse) ProtoMessage() {} // Deprecated: Use QueryStakeFromDelegatorInTopicInReputerResponse.ProtoReflect.Descriptor instead. func (*QueryStakeFromDelegatorInTopicInReputerResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{13} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{23} } func (x *QueryStakeFromDelegatorInTopicInReputerResponse) GetAmount() string { @@ -62344,7 +62384,7 @@ type QueryStakeFromDelegatorInTopicRequest struct { func (x *QueryStakeFromDelegatorInTopicRequest) Reset() { *x = QueryStakeFromDelegatorInTopicRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[14] + mi := &file_emissions_v2_query_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62358,7 +62398,7 @@ func (*QueryStakeFromDelegatorInTopicRequest) ProtoMessage() {} // Deprecated: Use QueryStakeFromDelegatorInTopicRequest.ProtoReflect.Descriptor instead. func (*QueryStakeFromDelegatorInTopicRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{14} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{24} } func (x *QueryStakeFromDelegatorInTopicRequest) GetDelegatorAddress() string { @@ -62386,7 +62426,7 @@ type QueryStakeFromDelegatorInTopicResponse struct { func (x *QueryStakeFromDelegatorInTopicResponse) Reset() { *x = QueryStakeFromDelegatorInTopicResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[15] + mi := &file_emissions_v2_query_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62400,7 +62440,7 @@ func (*QueryStakeFromDelegatorInTopicResponse) ProtoMessage() {} // Deprecated: Use QueryStakeFromDelegatorInTopicResponse.ProtoReflect.Descriptor instead. func (*QueryStakeFromDelegatorInTopicResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{15} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{25} } func (x *QueryStakeFromDelegatorInTopicResponse) GetAmount() string { @@ -62421,7 +62461,7 @@ type QueryTopicStakeRequest struct { func (x *QueryTopicStakeRequest) Reset() { *x = QueryTopicStakeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[16] + mi := &file_emissions_v2_query_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62435,7 +62475,7 @@ func (*QueryTopicStakeRequest) ProtoMessage() {} // Deprecated: Use QueryTopicStakeRequest.ProtoReflect.Descriptor instead. func (*QueryTopicStakeRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{16} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{26} } func (x *QueryTopicStakeRequest) GetTopicId() uint64 { @@ -62456,7 +62496,7 @@ type QueryTopicStakeResponse struct { func (x *QueryTopicStakeResponse) Reset() { *x = QueryTopicStakeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[17] + mi := &file_emissions_v2_query_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62470,7 +62510,7 @@ func (*QueryTopicStakeResponse) ProtoMessage() {} // Deprecated: Use QueryTopicStakeResponse.ProtoReflect.Descriptor instead. func (*QueryTopicStakeResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{17} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{27} } func (x *QueryTopicStakeResponse) GetAmount() string { @@ -62492,7 +62532,7 @@ type QueryNetworkLossBundleAtBlockRequest struct { func (x *QueryNetworkLossBundleAtBlockRequest) Reset() { *x = QueryNetworkLossBundleAtBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[18] + mi := &file_emissions_v2_query_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62506,7 +62546,7 @@ func (*QueryNetworkLossBundleAtBlockRequest) ProtoMessage() {} // Deprecated: Use QueryNetworkLossBundleAtBlockRequest.ProtoReflect.Descriptor instead. func (*QueryNetworkLossBundleAtBlockRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{18} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{28} } func (x *QueryNetworkLossBundleAtBlockRequest) GetTopicId() uint64 { @@ -62534,7 +62574,7 @@ type QueryNetworkLossBundleAtBlockResponse struct { func (x *QueryNetworkLossBundleAtBlockResponse) Reset() { *x = QueryNetworkLossBundleAtBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[19] + mi := &file_emissions_v2_query_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62548,7 +62588,7 @@ func (*QueryNetworkLossBundleAtBlockResponse) ProtoMessage() {} // Deprecated: Use QueryNetworkLossBundleAtBlockResponse.ProtoReflect.Descriptor instead. func (*QueryNetworkLossBundleAtBlockResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{19} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{29} } func (x *QueryNetworkLossBundleAtBlockResponse) GetLossBundle() *ValueBundle { @@ -62567,7 +62607,7 @@ type QueryNextTopicIdRequest struct { func (x *QueryNextTopicIdRequest) Reset() { *x = QueryNextTopicIdRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[20] + mi := &file_emissions_v2_query_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62581,7 +62621,7 @@ func (*QueryNextTopicIdRequest) ProtoMessage() {} // Deprecated: Use QueryNextTopicIdRequest.ProtoReflect.Descriptor instead. func (*QueryNextTopicIdRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{20} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{30} } type QueryNextTopicIdResponse struct { @@ -62595,7 +62635,7 @@ type QueryNextTopicIdResponse struct { func (x *QueryNextTopicIdResponse) Reset() { *x = QueryNextTopicIdResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[21] + mi := &file_emissions_v2_query_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62609,7 +62649,7 @@ func (*QueryNextTopicIdResponse) ProtoMessage() {} // Deprecated: Use QueryNextTopicIdResponse.ProtoReflect.Descriptor instead. func (*QueryNextTopicIdResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{21} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{31} } func (x *QueryNextTopicIdResponse) GetNextTopicId() uint64 { @@ -62630,7 +62670,7 @@ type QueryTopicRequest struct { func (x *QueryTopicRequest) Reset() { *x = QueryTopicRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[22] + mi := &file_emissions_v2_query_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62644,7 +62684,7 @@ func (*QueryTopicRequest) ProtoMessage() {} // Deprecated: Use QueryTopicRequest.ProtoReflect.Descriptor instead. func (*QueryTopicRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{22} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{32} } func (x *QueryTopicRequest) GetTopicId() uint64 { @@ -62667,7 +62707,7 @@ type QueryTopicResponse struct { func (x *QueryTopicResponse) Reset() { *x = QueryTopicResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[23] + mi := &file_emissions_v2_query_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62681,7 +62721,7 @@ func (*QueryTopicResponse) ProtoMessage() {} // Deprecated: Use QueryTopicResponse.ProtoReflect.Descriptor instead. func (*QueryTopicResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{23} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{33} } func (x *QueryTopicResponse) GetTopic() *Topic { @@ -62716,7 +62756,7 @@ type QueryActiveTopicsRequest struct { func (x *QueryActiveTopicsRequest) Reset() { *x = QueryActiveTopicsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[24] + mi := &file_emissions_v2_query_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62730,7 +62770,7 @@ func (*QueryActiveTopicsRequest) ProtoMessage() {} // Deprecated: Use QueryActiveTopicsRequest.ProtoReflect.Descriptor instead. func (*QueryActiveTopicsRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{24} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{34} } func (x *QueryActiveTopicsRequest) GetPagination() *SimpleCursorPaginationRequest { @@ -62752,7 +62792,7 @@ type QueryActiveTopicsResponse struct { func (x *QueryActiveTopicsResponse) Reset() { *x = QueryActiveTopicsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[25] + mi := &file_emissions_v2_query_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62766,7 +62806,7 @@ func (*QueryActiveTopicsResponse) ProtoMessage() {} // Deprecated: Use QueryActiveTopicsResponse.ProtoReflect.Descriptor instead. func (*QueryActiveTopicsResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{25} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{35} } func (x *QueryActiveTopicsResponse) GetTopics() []*Topic { @@ -62796,7 +62836,7 @@ type QueryInferencesAtBlockRequest struct { func (x *QueryInferencesAtBlockRequest) Reset() { *x = QueryInferencesAtBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[26] + mi := &file_emissions_v2_query_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62810,7 +62850,7 @@ func (*QueryInferencesAtBlockRequest) ProtoMessage() {} // Deprecated: Use QueryInferencesAtBlockRequest.ProtoReflect.Descriptor instead. func (*QueryInferencesAtBlockRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{26} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{36} } func (x *QueryInferencesAtBlockRequest) GetTopicId() uint64 { @@ -62842,7 +62882,7 @@ type QueryInferencesAtBlockResponse struct { func (x *QueryInferencesAtBlockResponse) Reset() { *x = QueryInferencesAtBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[27] + mi := &file_emissions_v2_query_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62856,7 +62896,7 @@ func (*QueryInferencesAtBlockResponse) ProtoMessage() {} // Deprecated: Use QueryInferencesAtBlockResponse.ProtoReflect.Descriptor instead. func (*QueryInferencesAtBlockResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{27} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{37} } func (x *QueryInferencesAtBlockResponse) GetInferences() *Inferences { @@ -62877,7 +62917,7 @@ type QueryLatestTopicInferencesRequest struct { func (x *QueryLatestTopicInferencesRequest) Reset() { *x = QueryLatestTopicInferencesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[28] + mi := &file_emissions_v2_query_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62891,7 +62931,7 @@ func (*QueryLatestTopicInferencesRequest) ProtoMessage() {} // Deprecated: Use QueryLatestTopicInferencesRequest.ProtoReflect.Descriptor instead. func (*QueryLatestTopicInferencesRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{28} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{38} } func (x *QueryLatestTopicInferencesRequest) GetTopicId() uint64 { @@ -62913,7 +62953,7 @@ type QueryLatestTopicInferencesResponse struct { func (x *QueryLatestTopicInferencesResponse) Reset() { *x = QueryLatestTopicInferencesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[29] + mi := &file_emissions_v2_query_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62927,7 +62967,7 @@ func (*QueryLatestTopicInferencesResponse) ProtoMessage() {} // Deprecated: Use QueryLatestTopicInferencesResponse.ProtoReflect.Descriptor instead. func (*QueryLatestTopicInferencesResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{29} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{39} } func (x *QueryLatestTopicInferencesResponse) GetInferences() *Inferences { @@ -62957,7 +62997,7 @@ type QueryForecastsAtBlockRequest struct { func (x *QueryForecastsAtBlockRequest) Reset() { *x = QueryForecastsAtBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[30] + mi := &file_emissions_v2_query_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -62971,7 +63011,7 @@ func (*QueryForecastsAtBlockRequest) ProtoMessage() {} // Deprecated: Use QueryForecastsAtBlockRequest.ProtoReflect.Descriptor instead. func (*QueryForecastsAtBlockRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{30} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{40} } func (x *QueryForecastsAtBlockRequest) GetTopicId() uint64 { @@ -63003,7 +63043,7 @@ type QueryForecastsAtBlockResponse struct { func (x *QueryForecastsAtBlockResponse) Reset() { *x = QueryForecastsAtBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[31] + mi := &file_emissions_v2_query_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63017,7 +63057,7 @@ func (*QueryForecastsAtBlockResponse) ProtoMessage() {} // Deprecated: Use QueryForecastsAtBlockResponse.ProtoReflect.Descriptor instead. func (*QueryForecastsAtBlockResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{31} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{41} } func (x *QueryForecastsAtBlockResponse) GetForecasts() *Forecasts { @@ -63039,7 +63079,7 @@ type QueryWorkerLatestInferenceRequest struct { func (x *QueryWorkerLatestInferenceRequest) Reset() { *x = QueryWorkerLatestInferenceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[32] + mi := &file_emissions_v2_query_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63053,7 +63093,7 @@ func (*QueryWorkerLatestInferenceRequest) ProtoMessage() {} // Deprecated: Use QueryWorkerLatestInferenceRequest.ProtoReflect.Descriptor instead. func (*QueryWorkerLatestInferenceRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{32} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{42} } func (x *QueryWorkerLatestInferenceRequest) GetTopicId() uint64 { @@ -63081,7 +63121,7 @@ type QueryWorkerLatestInferenceResponse struct { func (x *QueryWorkerLatestInferenceResponse) Reset() { *x = QueryWorkerLatestInferenceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[33] + mi := &file_emissions_v2_query_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63095,7 +63135,7 @@ func (*QueryWorkerLatestInferenceResponse) ProtoMessage() {} // Deprecated: Use QueryWorkerLatestInferenceResponse.ProtoReflect.Descriptor instead. func (*QueryWorkerLatestInferenceResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{33} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{43} } func (x *QueryWorkerLatestInferenceResponse) GetLatestInference() *Inference { @@ -63110,13 +63150,13 @@ type QueryWorkerNodeInfoRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Libp2PKey string `protobuf:"bytes,1,opt,name=libp2p_key,json=libp2pKey,proto3" json:"libp2p_key,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } func (x *QueryWorkerNodeInfoRequest) Reset() { *x = QueryWorkerNodeInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[34] + mi := &file_emissions_v2_query_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63130,12 +63170,12 @@ func (*QueryWorkerNodeInfoRequest) ProtoMessage() {} // Deprecated: Use QueryWorkerNodeInfoRequest.ProtoReflect.Descriptor instead. func (*QueryWorkerNodeInfoRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{34} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{44} } -func (x *QueryWorkerNodeInfoRequest) GetLibp2PKey() string { +func (x *QueryWorkerNodeInfoRequest) GetAddress() string { if x != nil { - return x.Libp2PKey + return x.Address } return "" } @@ -63151,7 +63191,7 @@ type QueryWorkerNodeInfoResponse struct { func (x *QueryWorkerNodeInfoResponse) Reset() { *x = QueryWorkerNodeInfoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[35] + mi := &file_emissions_v2_query_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63165,7 +63205,7 @@ func (*QueryWorkerNodeInfoResponse) ProtoMessage() {} // Deprecated: Use QueryWorkerNodeInfoResponse.ProtoReflect.Descriptor instead. func (*QueryWorkerNodeInfoResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{35} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{45} } func (x *QueryWorkerNodeInfoResponse) GetNodeInfo() *OffchainNode { @@ -63180,13 +63220,13 @@ type QueryReputerNodeInfoRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Libp2PKey string `protobuf:"bytes,1,opt,name=libp2p_key,json=libp2pKey,proto3" json:"libp2p_key,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } func (x *QueryReputerNodeInfoRequest) Reset() { *x = QueryReputerNodeInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[36] + mi := &file_emissions_v2_query_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63200,12 +63240,12 @@ func (*QueryReputerNodeInfoRequest) ProtoMessage() {} // Deprecated: Use QueryReputerNodeInfoRequest.ProtoReflect.Descriptor instead. func (*QueryReputerNodeInfoRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{36} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{46} } -func (x *QueryReputerNodeInfoRequest) GetLibp2PKey() string { +func (x *QueryReputerNodeInfoRequest) GetAddress() string { if x != nil { - return x.Libp2PKey + return x.Address } return "" } @@ -63221,7 +63261,7 @@ type QueryReputerNodeInfoResponse struct { func (x *QueryReputerNodeInfoResponse) Reset() { *x = QueryReputerNodeInfoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[37] + mi := &file_emissions_v2_query_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63235,7 +63275,7 @@ func (*QueryReputerNodeInfoResponse) ProtoMessage() {} // Deprecated: Use QueryReputerNodeInfoResponse.ProtoReflect.Descriptor instead. func (*QueryReputerNodeInfoResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{37} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{47} } func (x *QueryReputerNodeInfoResponse) GetNodeInfo() *OffchainNode { @@ -63245,146 +63285,6 @@ func (x *QueryReputerNodeInfoResponse) GetNodeInfo() *OffchainNode { return nil } -type QueryWorkerAddressByP2PKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Libp2PKey string `protobuf:"bytes,1,opt,name=libp2p_key,json=libp2pKey,proto3" json:"libp2p_key,omitempty"` -} - -func (x *QueryWorkerAddressByP2PKeyRequest) Reset() { - *x = QueryWorkerAddressByP2PKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryWorkerAddressByP2PKeyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryWorkerAddressByP2PKeyRequest) ProtoMessage() {} - -// Deprecated: Use QueryWorkerAddressByP2PKeyRequest.ProtoReflect.Descriptor instead. -func (*QueryWorkerAddressByP2PKeyRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{38} -} - -func (x *QueryWorkerAddressByP2PKeyRequest) GetLibp2PKey() string { - if x != nil { - return x.Libp2PKey - } - return "" -} - -type QueryWorkerAddressByP2PKeyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *QueryWorkerAddressByP2PKeyResponse) Reset() { - *x = QueryWorkerAddressByP2PKeyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryWorkerAddressByP2PKeyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryWorkerAddressByP2PKeyResponse) ProtoMessage() {} - -// Deprecated: Use QueryWorkerAddressByP2PKeyResponse.ProtoReflect.Descriptor instead. -func (*QueryWorkerAddressByP2PKeyResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{39} -} - -func (x *QueryWorkerAddressByP2PKeyResponse) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -type QueryReputerAddressByP2PKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Libp2PKey string `protobuf:"bytes,1,opt,name=libp2p_key,json=libp2pKey,proto3" json:"libp2p_key,omitempty"` -} - -func (x *QueryReputerAddressByP2PKeyRequest) Reset() { - *x = QueryReputerAddressByP2PKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryReputerAddressByP2PKeyRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryReputerAddressByP2PKeyRequest) ProtoMessage() {} - -// Deprecated: Use QueryReputerAddressByP2PKeyRequest.ProtoReflect.Descriptor instead. -func (*QueryReputerAddressByP2PKeyRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{40} -} - -func (x *QueryReputerAddressByP2PKeyRequest) GetLibp2PKey() string { - if x != nil { - return x.Libp2PKey - } - return "" -} - -type QueryReputerAddressByP2PKeyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` -} - -func (x *QueryReputerAddressByP2PKeyResponse) Reset() { - *x = QueryReputerAddressByP2PKeyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryReputerAddressByP2PKeyResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryReputerAddressByP2PKeyResponse) ProtoMessage() {} - -// Deprecated: Use QueryReputerAddressByP2PKeyResponse.ProtoReflect.Descriptor instead. -func (*QueryReputerAddressByP2PKeyResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{41} -} - -func (x *QueryReputerAddressByP2PKeyResponse) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - type QueryNetworkInferencesAtBlockRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -63398,7 +63298,7 @@ type QueryNetworkInferencesAtBlockRequest struct { func (x *QueryNetworkInferencesAtBlockRequest) Reset() { *x = QueryNetworkInferencesAtBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[42] + mi := &file_emissions_v2_query_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63412,7 +63312,7 @@ func (*QueryNetworkInferencesAtBlockRequest) ProtoMessage() {} // Deprecated: Use QueryNetworkInferencesAtBlockRequest.ProtoReflect.Descriptor instead. func (*QueryNetworkInferencesAtBlockRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{42} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{48} } func (x *QueryNetworkInferencesAtBlockRequest) GetTopicId() uint64 { @@ -63447,7 +63347,7 @@ type QueryLatestNetworkInferencesRequest struct { func (x *QueryLatestNetworkInferencesRequest) Reset() { *x = QueryLatestNetworkInferencesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[43] + mi := &file_emissions_v2_query_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63461,7 +63361,7 @@ func (*QueryLatestNetworkInferencesRequest) ProtoMessage() {} // Deprecated: Use QueryLatestNetworkInferencesRequest.ProtoReflect.Descriptor instead. func (*QueryLatestNetworkInferencesRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{43} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{49} } func (x *QueryLatestNetworkInferencesRequest) GetTopicId() uint64 { @@ -63483,7 +63383,7 @@ type QueryIsWorkerNonceUnfulfilledRequest struct { func (x *QueryIsWorkerNonceUnfulfilledRequest) Reset() { *x = QueryIsWorkerNonceUnfulfilledRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[44] + mi := &file_emissions_v2_query_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63497,7 +63397,7 @@ func (*QueryIsWorkerNonceUnfulfilledRequest) ProtoMessage() {} // Deprecated: Use QueryIsWorkerNonceUnfulfilledRequest.ProtoReflect.Descriptor instead. func (*QueryIsWorkerNonceUnfulfilledRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{44} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{50} } func (x *QueryIsWorkerNonceUnfulfilledRequest) GetTopicId() uint64 { @@ -63525,7 +63425,7 @@ type QueryIsWorkerNonceUnfulfilledResponse struct { func (x *QueryIsWorkerNonceUnfulfilledResponse) Reset() { *x = QueryIsWorkerNonceUnfulfilledResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[45] + mi := &file_emissions_v2_query_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63539,7 +63439,7 @@ func (*QueryIsWorkerNonceUnfulfilledResponse) ProtoMessage() {} // Deprecated: Use QueryIsWorkerNonceUnfulfilledResponse.ProtoReflect.Descriptor instead. func (*QueryIsWorkerNonceUnfulfilledResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{45} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{51} } func (x *QueryIsWorkerNonceUnfulfilledResponse) GetIsWorkerNonceUnfulfilled() bool { @@ -63560,7 +63460,7 @@ type QueryUnfulfilledReputerNoncesRequest struct { func (x *QueryUnfulfilledReputerNoncesRequest) Reset() { *x = QueryUnfulfilledReputerNoncesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[46] + mi := &file_emissions_v2_query_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63574,7 +63474,7 @@ func (*QueryUnfulfilledReputerNoncesRequest) ProtoMessage() {} // Deprecated: Use QueryUnfulfilledReputerNoncesRequest.ProtoReflect.Descriptor instead. func (*QueryUnfulfilledReputerNoncesRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{46} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{52} } func (x *QueryUnfulfilledReputerNoncesRequest) GetTopicId() uint64 { @@ -63595,7 +63495,7 @@ type QueryUnfulfilledReputerNoncesResponse struct { func (x *QueryUnfulfilledReputerNoncesResponse) Reset() { *x = QueryUnfulfilledReputerNoncesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[47] + mi := &file_emissions_v2_query_proto_msgTypes[53] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63609,7 +63509,7 @@ func (*QueryUnfulfilledReputerNoncesResponse) ProtoMessage() {} // Deprecated: Use QueryUnfulfilledReputerNoncesResponse.ProtoReflect.Descriptor instead. func (*QueryUnfulfilledReputerNoncesResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{47} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{53} } func (x *QueryUnfulfilledReputerNoncesResponse) GetNonces() *ReputerRequestNonces { @@ -63630,7 +63530,7 @@ type QueryUnfulfilledWorkerNoncesRequest struct { func (x *QueryUnfulfilledWorkerNoncesRequest) Reset() { *x = QueryUnfulfilledWorkerNoncesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[48] + mi := &file_emissions_v2_query_proto_msgTypes[54] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63644,7 +63544,7 @@ func (*QueryUnfulfilledWorkerNoncesRequest) ProtoMessage() {} // Deprecated: Use QueryUnfulfilledWorkerNoncesRequest.ProtoReflect.Descriptor instead. func (*QueryUnfulfilledWorkerNoncesRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{48} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{54} } func (x *QueryUnfulfilledWorkerNoncesRequest) GetTopicId() uint64 { @@ -63665,7 +63565,7 @@ type QueryUnfulfilledWorkerNoncesResponse struct { func (x *QueryUnfulfilledWorkerNoncesResponse) Reset() { *x = QueryUnfulfilledWorkerNoncesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[49] + mi := &file_emissions_v2_query_proto_msgTypes[55] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63679,7 +63579,7 @@ func (*QueryUnfulfilledWorkerNoncesResponse) ProtoMessage() {} // Deprecated: Use QueryUnfulfilledWorkerNoncesResponse.ProtoReflect.Descriptor instead. func (*QueryUnfulfilledWorkerNoncesResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{49} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{55} } func (x *QueryUnfulfilledWorkerNoncesResponse) GetNonces() *Nonces { @@ -63701,7 +63601,7 @@ type QueryInfererNetworkRegretRequest struct { func (x *QueryInfererNetworkRegretRequest) Reset() { *x = QueryInfererNetworkRegretRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[50] + mi := &file_emissions_v2_query_proto_msgTypes[56] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63715,7 +63615,7 @@ func (*QueryInfererNetworkRegretRequest) ProtoMessage() {} // Deprecated: Use QueryInfererNetworkRegretRequest.ProtoReflect.Descriptor instead. func (*QueryInfererNetworkRegretRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{50} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{56} } func (x *QueryInfererNetworkRegretRequest) GetTopicId() uint64 { @@ -63743,7 +63643,7 @@ type QueryInfererNetworkRegretResponse struct { func (x *QueryInfererNetworkRegretResponse) Reset() { *x = QueryInfererNetworkRegretResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[51] + mi := &file_emissions_v2_query_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63757,7 +63657,7 @@ func (*QueryInfererNetworkRegretResponse) ProtoMessage() {} // Deprecated: Use QueryInfererNetworkRegretResponse.ProtoReflect.Descriptor instead. func (*QueryInfererNetworkRegretResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{51} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{57} } func (x *QueryInfererNetworkRegretResponse) GetRegret() *TimestampedValue { @@ -63779,7 +63679,7 @@ type QueryForecasterNetworkRegretRequest struct { func (x *QueryForecasterNetworkRegretRequest) Reset() { *x = QueryForecasterNetworkRegretRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[52] + mi := &file_emissions_v2_query_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63793,7 +63693,7 @@ func (*QueryForecasterNetworkRegretRequest) ProtoMessage() {} // Deprecated: Use QueryForecasterNetworkRegretRequest.ProtoReflect.Descriptor instead. func (*QueryForecasterNetworkRegretRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{52} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{58} } func (x *QueryForecasterNetworkRegretRequest) GetTopicId() uint64 { @@ -63821,7 +63721,7 @@ type QueryForecasterNetworkRegretResponse struct { func (x *QueryForecasterNetworkRegretResponse) Reset() { *x = QueryForecasterNetworkRegretResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[53] + mi := &file_emissions_v2_query_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63835,7 +63735,7 @@ func (*QueryForecasterNetworkRegretResponse) ProtoMessage() {} // Deprecated: Use QueryForecasterNetworkRegretResponse.ProtoReflect.Descriptor instead. func (*QueryForecasterNetworkRegretResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{53} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{59} } func (x *QueryForecasterNetworkRegretResponse) GetRegret() *TimestampedValue { @@ -63858,7 +63758,7 @@ type QueryOneInForecasterNetworkRegretRequest struct { func (x *QueryOneInForecasterNetworkRegretRequest) Reset() { *x = QueryOneInForecasterNetworkRegretRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[54] + mi := &file_emissions_v2_query_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63872,7 +63772,7 @@ func (*QueryOneInForecasterNetworkRegretRequest) ProtoMessage() {} // Deprecated: Use QueryOneInForecasterNetworkRegretRequest.ProtoReflect.Descriptor instead. func (*QueryOneInForecasterNetworkRegretRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{54} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{60} } func (x *QueryOneInForecasterNetworkRegretRequest) GetTopicId() uint64 { @@ -63907,7 +63807,7 @@ type QueryOneInForecasterNetworkRegretResponse struct { func (x *QueryOneInForecasterNetworkRegretResponse) Reset() { *x = QueryOneInForecasterNetworkRegretResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[55] + mi := &file_emissions_v2_query_proto_msgTypes[61] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -63921,7 +63821,7 @@ func (*QueryOneInForecasterNetworkRegretResponse) ProtoMessage() {} // Deprecated: Use QueryOneInForecasterNetworkRegretResponse.ProtoReflect.Descriptor instead. func (*QueryOneInForecasterNetworkRegretResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{55} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{61} } func (x *QueryOneInForecasterNetworkRegretResponse) GetRegret() *TimestampedValue { @@ -63931,84 +63831,6 @@ func (x *QueryOneInForecasterNetworkRegretResponse) GetRegret() *TimestampedValu return nil } -type QueryOneInForecasterSelfNetworkRegretRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - Forecaster string `protobuf:"bytes,2,opt,name=forecaster,proto3" json:"forecaster,omitempty"` -} - -func (x *QueryOneInForecasterSelfNetworkRegretRequest) Reset() { - *x = QueryOneInForecasterSelfNetworkRegretRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryOneInForecasterSelfNetworkRegretRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryOneInForecasterSelfNetworkRegretRequest) ProtoMessage() {} - -// Deprecated: Use QueryOneInForecasterSelfNetworkRegretRequest.ProtoReflect.Descriptor instead. -func (*QueryOneInForecasterSelfNetworkRegretRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{56} -} - -func (x *QueryOneInForecasterSelfNetworkRegretRequest) GetTopicId() uint64 { - if x != nil { - return x.TopicId - } - return 0 -} - -func (x *QueryOneInForecasterSelfNetworkRegretRequest) GetForecaster() string { - if x != nil { - return x.Forecaster - } - return "" -} - -type QueryOneInForecasterSelfNetworkRegretResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` -} - -func (x *QueryOneInForecasterSelfNetworkRegretResponse) Reset() { - *x = QueryOneInForecasterSelfNetworkRegretResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryOneInForecasterSelfNetworkRegretResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryOneInForecasterSelfNetworkRegretResponse) ProtoMessage() {} - -// Deprecated: Use QueryOneInForecasterSelfNetworkRegretResponse.ProtoReflect.Descriptor instead. -func (*QueryOneInForecasterSelfNetworkRegretResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{57} -} - -func (x *QueryOneInForecasterSelfNetworkRegretResponse) GetRegret() *TimestampedValue { - if x != nil { - return x.Regret - } - return nil -} - type QueryIsReputerNonceUnfulfilledRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -64021,7 +63843,7 @@ type QueryIsReputerNonceUnfulfilledRequest struct { func (x *QueryIsReputerNonceUnfulfilledRequest) Reset() { *x = QueryIsReputerNonceUnfulfilledRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[58] + mi := &file_emissions_v2_query_proto_msgTypes[62] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64035,7 +63857,7 @@ func (*QueryIsReputerNonceUnfulfilledRequest) ProtoMessage() {} // Deprecated: Use QueryIsReputerNonceUnfulfilledRequest.ProtoReflect.Descriptor instead. func (*QueryIsReputerNonceUnfulfilledRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{58} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{62} } func (x *QueryIsReputerNonceUnfulfilledRequest) GetTopicId() uint64 { @@ -64063,7 +63885,7 @@ type QueryIsReputerNonceUnfulfilledResponse struct { func (x *QueryIsReputerNonceUnfulfilledResponse) Reset() { *x = QueryIsReputerNonceUnfulfilledResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[59] + mi := &file_emissions_v2_query_proto_msgTypes[63] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64077,7 +63899,7 @@ func (*QueryIsReputerNonceUnfulfilledResponse) ProtoMessage() {} // Deprecated: Use QueryIsReputerNonceUnfulfilledResponse.ProtoReflect.Descriptor instead. func (*QueryIsReputerNonceUnfulfilledResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{59} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{63} } func (x *QueryIsReputerNonceUnfulfilledResponse) GetIsReputerNonceUnfulfilled() bool { @@ -64098,7 +63920,7 @@ type QueryNetworkInferencesAtBlockResponse struct { func (x *QueryNetworkInferencesAtBlockResponse) Reset() { *x = QueryNetworkInferencesAtBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[60] + mi := &file_emissions_v2_query_proto_msgTypes[64] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64112,7 +63934,7 @@ func (*QueryNetworkInferencesAtBlockResponse) ProtoMessage() {} // Deprecated: Use QueryNetworkInferencesAtBlockResponse.ProtoReflect.Descriptor instead. func (*QueryNetworkInferencesAtBlockResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{60} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{64} } func (x *QueryNetworkInferencesAtBlockResponse) GetNetworkInferences() *ValueBundle { @@ -64140,7 +63962,7 @@ type QueryLatestNetworkInferencesResponse struct { func (x *QueryLatestNetworkInferencesResponse) Reset() { *x = QueryLatestNetworkInferencesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[61] + mi := &file_emissions_v2_query_proto_msgTypes[65] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64154,7 +63976,7 @@ func (*QueryLatestNetworkInferencesResponse) ProtoMessage() {} // Deprecated: Use QueryLatestNetworkInferencesResponse.ProtoReflect.Descriptor instead. func (*QueryLatestNetworkInferencesResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{61} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{65} } func (x *QueryLatestNetworkInferencesResponse) GetNetworkInferences() *ValueBundle { @@ -64225,7 +64047,7 @@ type QueryIsWorkerRegisteredInTopicIdRequest struct { func (x *QueryIsWorkerRegisteredInTopicIdRequest) Reset() { *x = QueryIsWorkerRegisteredInTopicIdRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[62] + mi := &file_emissions_v2_query_proto_msgTypes[66] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64239,7 +64061,7 @@ func (*QueryIsWorkerRegisteredInTopicIdRequest) ProtoMessage() {} // Deprecated: Use QueryIsWorkerRegisteredInTopicIdRequest.ProtoReflect.Descriptor instead. func (*QueryIsWorkerRegisteredInTopicIdRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{62} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{66} } func (x *QueryIsWorkerRegisteredInTopicIdRequest) GetTopicId() uint64 { @@ -64267,7 +64089,7 @@ type QueryIsWorkerRegisteredInTopicIdResponse struct { func (x *QueryIsWorkerRegisteredInTopicIdResponse) Reset() { *x = QueryIsWorkerRegisteredInTopicIdResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[63] + mi := &file_emissions_v2_query_proto_msgTypes[67] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64281,7 +64103,7 @@ func (*QueryIsWorkerRegisteredInTopicIdResponse) ProtoMessage() {} // Deprecated: Use QueryIsWorkerRegisteredInTopicIdResponse.ProtoReflect.Descriptor instead. func (*QueryIsWorkerRegisteredInTopicIdResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{63} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{67} } func (x *QueryIsWorkerRegisteredInTopicIdResponse) GetIsRegistered() bool { @@ -64303,7 +64125,7 @@ type QueryIsReputerRegisteredInTopicIdRequest struct { func (x *QueryIsReputerRegisteredInTopicIdRequest) Reset() { *x = QueryIsReputerRegisteredInTopicIdRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[64] + mi := &file_emissions_v2_query_proto_msgTypes[68] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64317,7 +64139,7 @@ func (*QueryIsReputerRegisteredInTopicIdRequest) ProtoMessage() {} // Deprecated: Use QueryIsReputerRegisteredInTopicIdRequest.ProtoReflect.Descriptor instead. func (*QueryIsReputerRegisteredInTopicIdRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{64} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{68} } func (x *QueryIsReputerRegisteredInTopicIdRequest) GetTopicId() uint64 { @@ -64345,7 +64167,7 @@ type QueryIsReputerRegisteredInTopicIdResponse struct { func (x *QueryIsReputerRegisteredInTopicIdResponse) Reset() { *x = QueryIsReputerRegisteredInTopicIdResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[65] + mi := &file_emissions_v2_query_proto_msgTypes[69] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64359,7 +64181,7 @@ func (*QueryIsReputerRegisteredInTopicIdResponse) ProtoMessage() {} // Deprecated: Use QueryIsReputerRegisteredInTopicIdResponse.ProtoReflect.Descriptor instead. func (*QueryIsReputerRegisteredInTopicIdResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{65} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{69} } func (x *QueryIsReputerRegisteredInTopicIdResponse) GetIsRegistered() bool { @@ -64380,7 +64202,7 @@ type QueryIsWhitelistAdminRequest struct { func (x *QueryIsWhitelistAdminRequest) Reset() { *x = QueryIsWhitelistAdminRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[66] + mi := &file_emissions_v2_query_proto_msgTypes[70] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64394,7 +64216,7 @@ func (*QueryIsWhitelistAdminRequest) ProtoMessage() {} // Deprecated: Use QueryIsWhitelistAdminRequest.ProtoReflect.Descriptor instead. func (*QueryIsWhitelistAdminRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{66} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{70} } func (x *QueryIsWhitelistAdminRequest) GetAddress() string { @@ -64415,7 +64237,7 @@ type QueryIsWhitelistAdminResponse struct { func (x *QueryIsWhitelistAdminResponse) Reset() { *x = QueryIsWhitelistAdminResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[67] + mi := &file_emissions_v2_query_proto_msgTypes[71] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64429,7 +64251,7 @@ func (*QueryIsWhitelistAdminResponse) ProtoMessage() {} // Deprecated: Use QueryIsWhitelistAdminResponse.ProtoReflect.Descriptor instead. func (*QueryIsWhitelistAdminResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{67} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{71} } func (x *QueryIsWhitelistAdminResponse) GetIsAdmin() bool { @@ -64439,7 +64261,7 @@ func (x *QueryIsWhitelistAdminResponse) GetIsAdmin() bool { return false } -type QueryStakeRemovalsForBlockRequest struct { +type QueryStakeRemovalsUpUntilBlockRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -64447,34 +64269,34 @@ type QueryStakeRemovalsForBlockRequest struct { BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } -func (x *QueryStakeRemovalsForBlockRequest) Reset() { - *x = QueryStakeRemovalsForBlockRequest{} +func (x *QueryStakeRemovalsUpUntilBlockRequest) Reset() { + *x = QueryStakeRemovalsUpUntilBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[68] + mi := &file_emissions_v2_query_proto_msgTypes[72] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryStakeRemovalsForBlockRequest) String() string { +func (x *QueryStakeRemovalsUpUntilBlockRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryStakeRemovalsForBlockRequest) ProtoMessage() {} +func (*QueryStakeRemovalsUpUntilBlockRequest) ProtoMessage() {} -// Deprecated: Use QueryStakeRemovalsForBlockRequest.ProtoReflect.Descriptor instead. -func (*QueryStakeRemovalsForBlockRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{68} +// Deprecated: Use QueryStakeRemovalsUpUntilBlockRequest.ProtoReflect.Descriptor instead. +func (*QueryStakeRemovalsUpUntilBlockRequest) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{72} } -func (x *QueryStakeRemovalsForBlockRequest) GetBlockHeight() int64 { +func (x *QueryStakeRemovalsUpUntilBlockRequest) GetBlockHeight() int64 { if x != nil { return x.BlockHeight } return 0 } -type QueryStakeRemovalsForBlockResponse struct { +type QueryStakeRemovalsUpUntilBlockResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -64482,34 +64304,34 @@ type QueryStakeRemovalsForBlockResponse struct { Removals []*StakeRemovalInfo `protobuf:"bytes,1,rep,name=removals,proto3" json:"removals,omitempty"` } -func (x *QueryStakeRemovalsForBlockResponse) Reset() { - *x = QueryStakeRemovalsForBlockResponse{} +func (x *QueryStakeRemovalsUpUntilBlockResponse) Reset() { + *x = QueryStakeRemovalsUpUntilBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[69] + mi := &file_emissions_v2_query_proto_msgTypes[73] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryStakeRemovalsForBlockResponse) String() string { +func (x *QueryStakeRemovalsUpUntilBlockResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryStakeRemovalsForBlockResponse) ProtoMessage() {} +func (*QueryStakeRemovalsUpUntilBlockResponse) ProtoMessage() {} -// Deprecated: Use QueryStakeRemovalsForBlockResponse.ProtoReflect.Descriptor instead. -func (*QueryStakeRemovalsForBlockResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{69} +// Deprecated: Use QueryStakeRemovalsUpUntilBlockResponse.ProtoReflect.Descriptor instead. +func (*QueryStakeRemovalsUpUntilBlockResponse) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{73} } -func (x *QueryStakeRemovalsForBlockResponse) GetRemovals() []*StakeRemovalInfo { +func (x *QueryStakeRemovalsUpUntilBlockResponse) GetRemovals() []*StakeRemovalInfo { if x != nil { return x.Removals } return nil } -type QueryDelegateStakeRemovalsForBlockRequest struct { +type QueryDelegateStakeRemovalsUpUntilBlockRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -64517,34 +64339,34 @@ type QueryDelegateStakeRemovalsForBlockRequest struct { BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } -func (x *QueryDelegateStakeRemovalsForBlockRequest) Reset() { - *x = QueryDelegateStakeRemovalsForBlockRequest{} +func (x *QueryDelegateStakeRemovalsUpUntilBlockRequest) Reset() { + *x = QueryDelegateStakeRemovalsUpUntilBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[70] + mi := &file_emissions_v2_query_proto_msgTypes[74] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryDelegateStakeRemovalsForBlockRequest) String() string { +func (x *QueryDelegateStakeRemovalsUpUntilBlockRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryDelegateStakeRemovalsForBlockRequest) ProtoMessage() {} +func (*QueryDelegateStakeRemovalsUpUntilBlockRequest) ProtoMessage() {} -// Deprecated: Use QueryDelegateStakeRemovalsForBlockRequest.ProtoReflect.Descriptor instead. -func (*QueryDelegateStakeRemovalsForBlockRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{70} +// Deprecated: Use QueryDelegateStakeRemovalsUpUntilBlockRequest.ProtoReflect.Descriptor instead. +func (*QueryDelegateStakeRemovalsUpUntilBlockRequest) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{74} } -func (x *QueryDelegateStakeRemovalsForBlockRequest) GetBlockHeight() int64 { +func (x *QueryDelegateStakeRemovalsUpUntilBlockRequest) GetBlockHeight() int64 { if x != nil { return x.BlockHeight } return 0 } -type QueryDelegateStakeRemovalsForBlockResponse struct { +type QueryDelegateStakeRemovalsUpUntilBlockResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -64552,27 +64374,27 @@ type QueryDelegateStakeRemovalsForBlockResponse struct { Removals []*DelegateStakeRemovalInfo `protobuf:"bytes,1,rep,name=removals,proto3" json:"removals,omitempty"` } -func (x *QueryDelegateStakeRemovalsForBlockResponse) Reset() { - *x = QueryDelegateStakeRemovalsForBlockResponse{} +func (x *QueryDelegateStakeRemovalsUpUntilBlockResponse) Reset() { + *x = QueryDelegateStakeRemovalsUpUntilBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[71] + mi := &file_emissions_v2_query_proto_msgTypes[75] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *QueryDelegateStakeRemovalsForBlockResponse) String() string { +func (x *QueryDelegateStakeRemovalsUpUntilBlockResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*QueryDelegateStakeRemovalsForBlockResponse) ProtoMessage() {} +func (*QueryDelegateStakeRemovalsUpUntilBlockResponse) ProtoMessage() {} -// Deprecated: Use QueryDelegateStakeRemovalsForBlockResponse.ProtoReflect.Descriptor instead. -func (*QueryDelegateStakeRemovalsForBlockResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{71} +// Deprecated: Use QueryDelegateStakeRemovalsUpUntilBlockResponse.ProtoReflect.Descriptor instead. +func (*QueryDelegateStakeRemovalsUpUntilBlockResponse) Descriptor() ([]byte, []int) { + return file_emissions_v2_query_proto_rawDescGZIP(), []int{75} } -func (x *QueryDelegateStakeRemovalsForBlockResponse) GetRemovals() []*DelegateStakeRemovalInfo { +func (x *QueryDelegateStakeRemovalsUpUntilBlockResponse) GetRemovals() []*DelegateStakeRemovalInfo { if x != nil { return x.Removals } @@ -64591,7 +64413,7 @@ type QueryStakeRemovalInfoRequest struct { func (x *QueryStakeRemovalInfoRequest) Reset() { *x = QueryStakeRemovalInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[72] + mi := &file_emissions_v2_query_proto_msgTypes[76] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64605,7 +64427,7 @@ func (*QueryStakeRemovalInfoRequest) ProtoMessage() {} // Deprecated: Use QueryStakeRemovalInfoRequest.ProtoReflect.Descriptor instead. func (*QueryStakeRemovalInfoRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{72} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{76} } func (x *QueryStakeRemovalInfoRequest) GetTopicId() uint64 { @@ -64633,7 +64455,7 @@ type QueryStakeRemovalInfoResponse struct { func (x *QueryStakeRemovalInfoResponse) Reset() { *x = QueryStakeRemovalInfoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[73] + mi := &file_emissions_v2_query_proto_msgTypes[77] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64647,7 +64469,7 @@ func (*QueryStakeRemovalInfoResponse) ProtoMessage() {} // Deprecated: Use QueryStakeRemovalInfoResponse.ProtoReflect.Descriptor instead. func (*QueryStakeRemovalInfoResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{73} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{77} } func (x *QueryStakeRemovalInfoResponse) GetRemoval() *StakeRemovalInfo { @@ -64670,7 +64492,7 @@ type QueryDelegateStakeRemovalInfoRequest struct { func (x *QueryDelegateStakeRemovalInfoRequest) Reset() { *x = QueryDelegateStakeRemovalInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[74] + mi := &file_emissions_v2_query_proto_msgTypes[78] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64684,7 +64506,7 @@ func (*QueryDelegateStakeRemovalInfoRequest) ProtoMessage() {} // Deprecated: Use QueryDelegateStakeRemovalInfoRequest.ProtoReflect.Descriptor instead. func (*QueryDelegateStakeRemovalInfoRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{74} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{78} } func (x *QueryDelegateStakeRemovalInfoRequest) GetTopicId() uint64 { @@ -64719,7 +64541,7 @@ type QueryDelegateStakeRemovalInfoResponse struct { func (x *QueryDelegateStakeRemovalInfoResponse) Reset() { *x = QueryDelegateStakeRemovalInfoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[75] + mi := &file_emissions_v2_query_proto_msgTypes[79] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64733,7 +64555,7 @@ func (*QueryDelegateStakeRemovalInfoResponse) ProtoMessage() {} // Deprecated: Use QueryDelegateStakeRemovalInfoResponse.ProtoReflect.Descriptor instead. func (*QueryDelegateStakeRemovalInfoResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{75} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{79} } func (x *QueryDelegateStakeRemovalInfoResponse) GetRemoval() *DelegateStakeRemovalInfo { @@ -64754,7 +64576,7 @@ type QueryTopicLastCommitRequest struct { func (x *QueryTopicLastCommitRequest) Reset() { *x = QueryTopicLastCommitRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[76] + mi := &file_emissions_v2_query_proto_msgTypes[80] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64768,7 +64590,7 @@ func (*QueryTopicLastCommitRequest) ProtoMessage() {} // Deprecated: Use QueryTopicLastCommitRequest.ProtoReflect.Descriptor instead. func (*QueryTopicLastCommitRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{76} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{80} } func (x *QueryTopicLastCommitRequest) GetTopicId() uint64 { @@ -64789,7 +64611,7 @@ type QueryTopicLastCommitResponse struct { func (x *QueryTopicLastCommitResponse) Reset() { *x = QueryTopicLastCommitResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[77] + mi := &file_emissions_v2_query_proto_msgTypes[81] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64803,7 +64625,7 @@ func (*QueryTopicLastCommitResponse) ProtoMessage() {} // Deprecated: Use QueryTopicLastCommitResponse.ProtoReflect.Descriptor instead. func (*QueryTopicLastCommitResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{77} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{81} } func (x *QueryTopicLastCommitResponse) GetLastCommit() *TimestampedActorNonce { @@ -64824,7 +64646,7 @@ type QueryTopicRewardNonceRequest struct { func (x *QueryTopicRewardNonceRequest) Reset() { *x = QueryTopicRewardNonceRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[78] + mi := &file_emissions_v2_query_proto_msgTypes[82] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64838,7 +64660,7 @@ func (*QueryTopicRewardNonceRequest) ProtoMessage() {} // Deprecated: Use QueryTopicRewardNonceRequest.ProtoReflect.Descriptor instead. func (*QueryTopicRewardNonceRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{78} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{82} } func (x *QueryTopicRewardNonceRequest) GetTopicId() uint64 { @@ -64859,7 +64681,7 @@ type QueryTopicRewardNonceResponse struct { func (x *QueryTopicRewardNonceResponse) Reset() { *x = QueryTopicRewardNonceResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[79] + mi := &file_emissions_v2_query_proto_msgTypes[83] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64873,7 +64695,7 @@ func (*QueryTopicRewardNonceResponse) ProtoMessage() {} // Deprecated: Use QueryTopicRewardNonceResponse.ProtoReflect.Descriptor instead. func (*QueryTopicRewardNonceResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{79} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{83} } func (x *QueryTopicRewardNonceResponse) GetNonce() int64 { @@ -64895,7 +64717,7 @@ type QueryReputerLossBundlesAtBlockRequest struct { func (x *QueryReputerLossBundlesAtBlockRequest) Reset() { *x = QueryReputerLossBundlesAtBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[80] + mi := &file_emissions_v2_query_proto_msgTypes[84] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64909,7 +64731,7 @@ func (*QueryReputerLossBundlesAtBlockRequest) ProtoMessage() {} // Deprecated: Use QueryReputerLossBundlesAtBlockRequest.ProtoReflect.Descriptor instead. func (*QueryReputerLossBundlesAtBlockRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{80} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{84} } func (x *QueryReputerLossBundlesAtBlockRequest) GetTopicId() uint64 { @@ -64937,7 +64759,7 @@ type QueryReputerLossBundlesAtBlockResponse struct { func (x *QueryReputerLossBundlesAtBlockResponse) Reset() { *x = QueryReputerLossBundlesAtBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[81] + mi := &file_emissions_v2_query_proto_msgTypes[85] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64951,7 +64773,7 @@ func (*QueryReputerLossBundlesAtBlockResponse) ProtoMessage() {} // Deprecated: Use QueryReputerLossBundlesAtBlockResponse.ProtoReflect.Descriptor instead. func (*QueryReputerLossBundlesAtBlockResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{81} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{85} } func (x *QueryReputerLossBundlesAtBlockResponse) GetLossBundles() *ReputerValueBundles { @@ -64973,7 +64795,7 @@ type QueryStakeReputerAuthorityRequest struct { func (x *QueryStakeReputerAuthorityRequest) Reset() { *x = QueryStakeReputerAuthorityRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[82] + mi := &file_emissions_v2_query_proto_msgTypes[86] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -64987,7 +64809,7 @@ func (*QueryStakeReputerAuthorityRequest) ProtoMessage() {} // Deprecated: Use QueryStakeReputerAuthorityRequest.ProtoReflect.Descriptor instead. func (*QueryStakeReputerAuthorityRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{82} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{86} } func (x *QueryStakeReputerAuthorityRequest) GetTopicId() uint64 { @@ -65015,7 +64837,7 @@ type QueryStakeReputerAuthorityResponse struct { func (x *QueryStakeReputerAuthorityResponse) Reset() { *x = QueryStakeReputerAuthorityResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[83] + mi := &file_emissions_v2_query_proto_msgTypes[87] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65029,7 +64851,7 @@ func (*QueryStakeReputerAuthorityResponse) ProtoMessage() {} // Deprecated: Use QueryStakeReputerAuthorityResponse.ProtoReflect.Descriptor instead. func (*QueryStakeReputerAuthorityResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{83} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{87} } func (x *QueryStakeReputerAuthorityResponse) GetAuthority() string { @@ -65052,7 +64874,7 @@ type QueryDelegateStakePlacementRequest struct { func (x *QueryDelegateStakePlacementRequest) Reset() { *x = QueryDelegateStakePlacementRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[84] + mi := &file_emissions_v2_query_proto_msgTypes[88] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65066,7 +64888,7 @@ func (*QueryDelegateStakePlacementRequest) ProtoMessage() {} // Deprecated: Use QueryDelegateStakePlacementRequest.ProtoReflect.Descriptor instead. func (*QueryDelegateStakePlacementRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{84} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{88} } func (x *QueryDelegateStakePlacementRequest) GetTopicId() uint64 { @@ -65101,7 +64923,7 @@ type QueryDelegateStakePlacementResponse struct { func (x *QueryDelegateStakePlacementResponse) Reset() { *x = QueryDelegateStakePlacementResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[85] + mi := &file_emissions_v2_query_proto_msgTypes[89] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65115,7 +64937,7 @@ func (*QueryDelegateStakePlacementResponse) ProtoMessage() {} // Deprecated: Use QueryDelegateStakePlacementResponse.ProtoReflect.Descriptor instead. func (*QueryDelegateStakePlacementResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{85} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{89} } func (x *QueryDelegateStakePlacementResponse) GetDelegatorInfo() *DelegatorInfo { @@ -65137,7 +64959,7 @@ type QueryDelegateStakeUponReputerRequest struct { func (x *QueryDelegateStakeUponReputerRequest) Reset() { *x = QueryDelegateStakeUponReputerRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[86] + mi := &file_emissions_v2_query_proto_msgTypes[90] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65151,7 +64973,7 @@ func (*QueryDelegateStakeUponReputerRequest) ProtoMessage() {} // Deprecated: Use QueryDelegateStakeUponReputerRequest.ProtoReflect.Descriptor instead. func (*QueryDelegateStakeUponReputerRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{86} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{90} } func (x *QueryDelegateStakeUponReputerRequest) GetTopicId() uint64 { @@ -65179,7 +65001,7 @@ type QueryDelegateStakeUponReputerResponse struct { func (x *QueryDelegateStakeUponReputerResponse) Reset() { *x = QueryDelegateStakeUponReputerResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[87] + mi := &file_emissions_v2_query_proto_msgTypes[91] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65193,7 +65015,7 @@ func (*QueryDelegateStakeUponReputerResponse) ProtoMessage() {} // Deprecated: Use QueryDelegateStakeUponReputerResponse.ProtoReflect.Descriptor instead. func (*QueryDelegateStakeUponReputerResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{87} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{91} } func (x *QueryDelegateStakeUponReputerResponse) GetStake() string { @@ -65215,7 +65037,7 @@ type QueryDelegateRewardPerShareRequest struct { func (x *QueryDelegateRewardPerShareRequest) Reset() { *x = QueryDelegateRewardPerShareRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[88] + mi := &file_emissions_v2_query_proto_msgTypes[92] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65229,7 +65051,7 @@ func (*QueryDelegateRewardPerShareRequest) ProtoMessage() {} // Deprecated: Use QueryDelegateRewardPerShareRequest.ProtoReflect.Descriptor instead. func (*QueryDelegateRewardPerShareRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{88} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{92} } func (x *QueryDelegateRewardPerShareRequest) GetTopicId() uint64 { @@ -65257,7 +65079,7 @@ type QueryDelegateRewardPerShareResponse struct { func (x *QueryDelegateRewardPerShareResponse) Reset() { *x = QueryDelegateRewardPerShareResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[89] + mi := &file_emissions_v2_query_proto_msgTypes[93] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65271,7 +65093,7 @@ func (*QueryDelegateRewardPerShareResponse) ProtoMessage() {} // Deprecated: Use QueryDelegateRewardPerShareResponse.ProtoReflect.Descriptor instead. func (*QueryDelegateRewardPerShareResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{89} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{93} } func (x *QueryDelegateRewardPerShareResponse) GetRewardPerShare() string { @@ -65293,7 +65115,7 @@ type QueryStakeRemovalForReputerAndTopicIdRequest struct { func (x *QueryStakeRemovalForReputerAndTopicIdRequest) Reset() { *x = QueryStakeRemovalForReputerAndTopicIdRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[90] + mi := &file_emissions_v2_query_proto_msgTypes[94] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65307,7 +65129,7 @@ func (*QueryStakeRemovalForReputerAndTopicIdRequest) ProtoMessage() {} // Deprecated: Use QueryStakeRemovalForReputerAndTopicIdRequest.ProtoReflect.Descriptor instead. func (*QueryStakeRemovalForReputerAndTopicIdRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{90} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{94} } func (x *QueryStakeRemovalForReputerAndTopicIdRequest) GetReputer() string { @@ -65335,7 +65157,7 @@ type QueryStakeRemovalForReputerAndTopicIdResponse struct { func (x *QueryStakeRemovalForReputerAndTopicIdResponse) Reset() { *x = QueryStakeRemovalForReputerAndTopicIdResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[91] + mi := &file_emissions_v2_query_proto_msgTypes[95] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65349,7 +65171,7 @@ func (*QueryStakeRemovalForReputerAndTopicIdResponse) ProtoMessage() {} // Deprecated: Use QueryStakeRemovalForReputerAndTopicIdResponse.ProtoReflect.Descriptor instead. func (*QueryStakeRemovalForReputerAndTopicIdResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{91} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{95} } func (x *QueryStakeRemovalForReputerAndTopicIdResponse) GetStakeRemovalInfo() *StakeRemovalInfo { @@ -65373,7 +65195,7 @@ type QueryDelegateStakeRemovalRequest struct { func (x *QueryDelegateStakeRemovalRequest) Reset() { *x = QueryDelegateStakeRemovalRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[92] + mi := &file_emissions_v2_query_proto_msgTypes[96] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65387,7 +65209,7 @@ func (*QueryDelegateStakeRemovalRequest) ProtoMessage() {} // Deprecated: Use QueryDelegateStakeRemovalRequest.ProtoReflect.Descriptor instead. func (*QueryDelegateStakeRemovalRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{92} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{96} } func (x *QueryDelegateStakeRemovalRequest) GetBlockHeight() int64 { @@ -65429,7 +65251,7 @@ type QueryDelegateStakeRemovalResponse struct { func (x *QueryDelegateStakeRemovalResponse) Reset() { *x = QueryDelegateStakeRemovalResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[93] + mi := &file_emissions_v2_query_proto_msgTypes[97] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65443,7 +65265,7 @@ func (*QueryDelegateStakeRemovalResponse) ProtoMessage() {} // Deprecated: Use QueryDelegateStakeRemovalResponse.ProtoReflect.Descriptor instead. func (*QueryDelegateStakeRemovalResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{93} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{97} } func (x *QueryDelegateStakeRemovalResponse) GetStakeRemovalInfo() *DelegateStakeRemovalInfo { @@ -65464,7 +65286,7 @@ type QueryPreviousTopicWeightRequest struct { func (x *QueryPreviousTopicWeightRequest) Reset() { *x = QueryPreviousTopicWeightRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[94] + mi := &file_emissions_v2_query_proto_msgTypes[98] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65478,7 +65300,7 @@ func (*QueryPreviousTopicWeightRequest) ProtoMessage() {} // Deprecated: Use QueryPreviousTopicWeightRequest.ProtoReflect.Descriptor instead. func (*QueryPreviousTopicWeightRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{94} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{98} } func (x *QueryPreviousTopicWeightRequest) GetTopicId() uint64 { @@ -65500,7 +65322,7 @@ type QueryPreviousTopicWeightResponse struct { func (x *QueryPreviousTopicWeightResponse) Reset() { *x = QueryPreviousTopicWeightResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[95] + mi := &file_emissions_v2_query_proto_msgTypes[99] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65514,7 +65336,7 @@ func (*QueryPreviousTopicWeightResponse) ProtoMessage() {} // Deprecated: Use QueryPreviousTopicWeightResponse.ProtoReflect.Descriptor instead. func (*QueryPreviousTopicWeightResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{95} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{99} } func (x *QueryPreviousTopicWeightResponse) GetWeight() string { @@ -65542,7 +65364,7 @@ type QueryTopicExistsRequest struct { func (x *QueryTopicExistsRequest) Reset() { *x = QueryTopicExistsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[96] + mi := &file_emissions_v2_query_proto_msgTypes[100] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65556,7 +65378,7 @@ func (*QueryTopicExistsRequest) ProtoMessage() {} // Deprecated: Use QueryTopicExistsRequest.ProtoReflect.Descriptor instead. func (*QueryTopicExistsRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{96} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{100} } func (x *QueryTopicExistsRequest) GetTopicId() uint64 { @@ -65577,7 +65399,7 @@ type QueryTopicExistsResponse struct { func (x *QueryTopicExistsResponse) Reset() { *x = QueryTopicExistsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[97] + mi := &file_emissions_v2_query_proto_msgTypes[101] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65591,7 +65413,7 @@ func (*QueryTopicExistsResponse) ProtoMessage() {} // Deprecated: Use QueryTopicExistsResponse.ProtoReflect.Descriptor instead. func (*QueryTopicExistsResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{97} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{101} } func (x *QueryTopicExistsResponse) GetExists() bool { @@ -65612,7 +65434,7 @@ type QueryIsTopicActiveRequest struct { func (x *QueryIsTopicActiveRequest) Reset() { *x = QueryIsTopicActiveRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[98] + mi := &file_emissions_v2_query_proto_msgTypes[102] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65626,7 +65448,7 @@ func (*QueryIsTopicActiveRequest) ProtoMessage() {} // Deprecated: Use QueryIsTopicActiveRequest.ProtoReflect.Descriptor instead. func (*QueryIsTopicActiveRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{98} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{102} } func (x *QueryIsTopicActiveRequest) GetTopicId() uint64 { @@ -65647,7 +65469,7 @@ type QueryIsTopicActiveResponse struct { func (x *QueryIsTopicActiveResponse) Reset() { *x = QueryIsTopicActiveResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[99] + mi := &file_emissions_v2_query_proto_msgTypes[103] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65661,7 +65483,7 @@ func (*QueryIsTopicActiveResponse) ProtoMessage() {} // Deprecated: Use QueryIsTopicActiveResponse.ProtoReflect.Descriptor instead. func (*QueryIsTopicActiveResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{99} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{103} } func (x *QueryIsTopicActiveResponse) GetIsActive() bool { @@ -65682,7 +65504,7 @@ type QueryTopicFeeRevenueRequest struct { func (x *QueryTopicFeeRevenueRequest) Reset() { *x = QueryTopicFeeRevenueRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[100] + mi := &file_emissions_v2_query_proto_msgTypes[104] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65696,7 +65518,7 @@ func (*QueryTopicFeeRevenueRequest) ProtoMessage() {} // Deprecated: Use QueryTopicFeeRevenueRequest.ProtoReflect.Descriptor instead. func (*QueryTopicFeeRevenueRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{100} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{104} } func (x *QueryTopicFeeRevenueRequest) GetTopicId() uint64 { @@ -65717,7 +65539,7 @@ type QueryTopicFeeRevenueResponse struct { func (x *QueryTopicFeeRevenueResponse) Reset() { *x = QueryTopicFeeRevenueResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[101] + mi := &file_emissions_v2_query_proto_msgTypes[105] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65731,7 +65553,7 @@ func (*QueryTopicFeeRevenueResponse) ProtoMessage() {} // Deprecated: Use QueryTopicFeeRevenueResponse.ProtoReflect.Descriptor instead. func (*QueryTopicFeeRevenueResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{101} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{105} } func (x *QueryTopicFeeRevenueResponse) GetFeeRevenue() string { @@ -65741,67 +65563,6 @@ func (x *QueryTopicFeeRevenueResponse) GetFeeRevenue() string { return "" } -type QueryChurnableTopicsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *QueryChurnableTopicsRequest) Reset() { - *x = QueryChurnableTopicsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[102] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryChurnableTopicsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryChurnableTopicsRequest) ProtoMessage() {} - -// Deprecated: Use QueryChurnableTopicsRequest.ProtoReflect.Descriptor instead. -func (*QueryChurnableTopicsRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{102} -} - -type QueryChurnableTopicsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ChurnableTopicIds []uint64 `protobuf:"varint,1,rep,packed,name=churnable_topic_ids,json=churnableTopicIds,proto3" json:"churnable_topic_ids,omitempty"` -} - -func (x *QueryChurnableTopicsResponse) Reset() { - *x = QueryChurnableTopicsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[103] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryChurnableTopicsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryChurnableTopicsResponse) ProtoMessage() {} - -// Deprecated: Use QueryChurnableTopicsResponse.ProtoReflect.Descriptor instead. -func (*QueryChurnableTopicsResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{103} -} - -func (x *QueryChurnableTopicsResponse) GetChurnableTopicIds() []uint64 { - if x != nil { - return x.ChurnableTopicIds - } - return nil -} - type QueryRewardableTopicsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -65811,7 +65572,7 @@ type QueryRewardableTopicsRequest struct { func (x *QueryRewardableTopicsRequest) Reset() { *x = QueryRewardableTopicsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[104] + mi := &file_emissions_v2_query_proto_msgTypes[106] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65825,7 +65586,7 @@ func (*QueryRewardableTopicsRequest) ProtoMessage() {} // Deprecated: Use QueryRewardableTopicsRequest.ProtoReflect.Descriptor instead. func (*QueryRewardableTopicsRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{104} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{106} } type QueryRewardableTopicsResponse struct { @@ -65839,7 +65600,7 @@ type QueryRewardableTopicsResponse struct { func (x *QueryRewardableTopicsResponse) Reset() { *x = QueryRewardableTopicsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[105] + mi := &file_emissions_v2_query_proto_msgTypes[107] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65853,7 +65614,7 @@ func (*QueryRewardableTopicsResponse) ProtoMessage() {} // Deprecated: Use QueryRewardableTopicsResponse.ProtoReflect.Descriptor instead. func (*QueryRewardableTopicsResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{105} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{107} } func (x *QueryRewardableTopicsResponse) GetRewardableTopicIds() []uint64 { @@ -65875,7 +65636,7 @@ type QueryLatestInfererScoreRequest struct { func (x *QueryLatestInfererScoreRequest) Reset() { *x = QueryLatestInfererScoreRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[106] + mi := &file_emissions_v2_query_proto_msgTypes[108] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65889,7 +65650,7 @@ func (*QueryLatestInfererScoreRequest) ProtoMessage() {} // Deprecated: Use QueryLatestInfererScoreRequest.ProtoReflect.Descriptor instead. func (*QueryLatestInfererScoreRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{106} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{108} } func (x *QueryLatestInfererScoreRequest) GetTopicId() uint64 { @@ -65917,7 +65678,7 @@ type QueryLatestInfererScoreResponse struct { func (x *QueryLatestInfererScoreResponse) Reset() { *x = QueryLatestInfererScoreResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[107] + mi := &file_emissions_v2_query_proto_msgTypes[109] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65931,7 +65692,7 @@ func (*QueryLatestInfererScoreResponse) ProtoMessage() {} // Deprecated: Use QueryLatestInfererScoreResponse.ProtoReflect.Descriptor instead. func (*QueryLatestInfererScoreResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{107} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{109} } func (x *QueryLatestInfererScoreResponse) GetScore() *Score { @@ -65953,7 +65714,7 @@ type QueryLatestForecasterScoreRequest struct { func (x *QueryLatestForecasterScoreRequest) Reset() { *x = QueryLatestForecasterScoreRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[108] + mi := &file_emissions_v2_query_proto_msgTypes[110] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -65967,7 +65728,7 @@ func (*QueryLatestForecasterScoreRequest) ProtoMessage() {} // Deprecated: Use QueryLatestForecasterScoreRequest.ProtoReflect.Descriptor instead. func (*QueryLatestForecasterScoreRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{108} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{110} } func (x *QueryLatestForecasterScoreRequest) GetTopicId() uint64 { @@ -65995,7 +65756,7 @@ type QueryLatestForecasterScoreResponse struct { func (x *QueryLatestForecasterScoreResponse) Reset() { *x = QueryLatestForecasterScoreResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[109] + mi := &file_emissions_v2_query_proto_msgTypes[111] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66009,7 +65770,7 @@ func (*QueryLatestForecasterScoreResponse) ProtoMessage() {} // Deprecated: Use QueryLatestForecasterScoreResponse.ProtoReflect.Descriptor instead. func (*QueryLatestForecasterScoreResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{109} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{111} } func (x *QueryLatestForecasterScoreResponse) GetScore() *Score { @@ -66031,7 +65792,7 @@ type QueryLatestReputerScoreRequest struct { func (x *QueryLatestReputerScoreRequest) Reset() { *x = QueryLatestReputerScoreRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[110] + mi := &file_emissions_v2_query_proto_msgTypes[112] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66045,7 +65806,7 @@ func (*QueryLatestReputerScoreRequest) ProtoMessage() {} // Deprecated: Use QueryLatestReputerScoreRequest.ProtoReflect.Descriptor instead. func (*QueryLatestReputerScoreRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{110} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{112} } func (x *QueryLatestReputerScoreRequest) GetTopicId() uint64 { @@ -66073,7 +65834,7 @@ type QueryLatestReputerScoreResponse struct { func (x *QueryLatestReputerScoreResponse) Reset() { *x = QueryLatestReputerScoreResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[111] + mi := &file_emissions_v2_query_proto_msgTypes[113] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66087,7 +65848,7 @@ func (*QueryLatestReputerScoreResponse) ProtoMessage() {} // Deprecated: Use QueryLatestReputerScoreResponse.ProtoReflect.Descriptor instead. func (*QueryLatestReputerScoreResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{111} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{113} } func (x *QueryLatestReputerScoreResponse) GetScore() *Score { @@ -66109,7 +65870,7 @@ type QueryInferenceScoresUntilBlockRequest struct { func (x *QueryInferenceScoresUntilBlockRequest) Reset() { *x = QueryInferenceScoresUntilBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[112] + mi := &file_emissions_v2_query_proto_msgTypes[114] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66123,7 +65884,7 @@ func (*QueryInferenceScoresUntilBlockRequest) ProtoMessage() {} // Deprecated: Use QueryInferenceScoresUntilBlockRequest.ProtoReflect.Descriptor instead. func (*QueryInferenceScoresUntilBlockRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{112} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{114} } func (x *QueryInferenceScoresUntilBlockRequest) GetTopicId() uint64 { @@ -66151,7 +65912,7 @@ type QueryInferenceScoresUntilBlockResponse struct { func (x *QueryInferenceScoresUntilBlockResponse) Reset() { *x = QueryInferenceScoresUntilBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[113] + mi := &file_emissions_v2_query_proto_msgTypes[115] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66165,7 +65926,7 @@ func (*QueryInferenceScoresUntilBlockResponse) ProtoMessage() {} // Deprecated: Use QueryInferenceScoresUntilBlockResponse.ProtoReflect.Descriptor instead. func (*QueryInferenceScoresUntilBlockResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{113} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{115} } func (x *QueryInferenceScoresUntilBlockResponse) GetScores() []*Score { @@ -66187,7 +65948,7 @@ type QueryWorkerInferenceScoresAtBlockRequest struct { func (x *QueryWorkerInferenceScoresAtBlockRequest) Reset() { *x = QueryWorkerInferenceScoresAtBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[114] + mi := &file_emissions_v2_query_proto_msgTypes[116] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66201,7 +65962,7 @@ func (*QueryWorkerInferenceScoresAtBlockRequest) ProtoMessage() {} // Deprecated: Use QueryWorkerInferenceScoresAtBlockRequest.ProtoReflect.Descriptor instead. func (*QueryWorkerInferenceScoresAtBlockRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{114} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{116} } func (x *QueryWorkerInferenceScoresAtBlockRequest) GetTopicId() uint64 { @@ -66229,7 +65990,7 @@ type QueryWorkerInferenceScoresAtBlockResponse struct { func (x *QueryWorkerInferenceScoresAtBlockResponse) Reset() { *x = QueryWorkerInferenceScoresAtBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[115] + mi := &file_emissions_v2_query_proto_msgTypes[117] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66243,7 +66004,7 @@ func (*QueryWorkerInferenceScoresAtBlockResponse) ProtoMessage() {} // Deprecated: Use QueryWorkerInferenceScoresAtBlockResponse.ProtoReflect.Descriptor instead. func (*QueryWorkerInferenceScoresAtBlockResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{115} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{117} } func (x *QueryWorkerInferenceScoresAtBlockResponse) GetScores() *Scores { @@ -66265,7 +66026,7 @@ type QueryForecastScoresUntilBlockRequest struct { func (x *QueryForecastScoresUntilBlockRequest) Reset() { *x = QueryForecastScoresUntilBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[116] + mi := &file_emissions_v2_query_proto_msgTypes[118] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66279,7 +66040,7 @@ func (*QueryForecastScoresUntilBlockRequest) ProtoMessage() {} // Deprecated: Use QueryForecastScoresUntilBlockRequest.ProtoReflect.Descriptor instead. func (*QueryForecastScoresUntilBlockRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{116} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{118} } func (x *QueryForecastScoresUntilBlockRequest) GetTopicId() uint64 { @@ -66307,7 +66068,7 @@ type QueryForecastScoresUntilBlockResponse struct { func (x *QueryForecastScoresUntilBlockResponse) Reset() { *x = QueryForecastScoresUntilBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[117] + mi := &file_emissions_v2_query_proto_msgTypes[119] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66321,7 +66082,7 @@ func (*QueryForecastScoresUntilBlockResponse) ProtoMessage() {} // Deprecated: Use QueryForecastScoresUntilBlockResponse.ProtoReflect.Descriptor instead. func (*QueryForecastScoresUntilBlockResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{117} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{119} } func (x *QueryForecastScoresUntilBlockResponse) GetScores() []*Score { @@ -66343,7 +66104,7 @@ type QueryWorkerForecastScoresAtBlockRequest struct { func (x *QueryWorkerForecastScoresAtBlockRequest) Reset() { *x = QueryWorkerForecastScoresAtBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[118] + mi := &file_emissions_v2_query_proto_msgTypes[120] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66357,7 +66118,7 @@ func (*QueryWorkerForecastScoresAtBlockRequest) ProtoMessage() {} // Deprecated: Use QueryWorkerForecastScoresAtBlockRequest.ProtoReflect.Descriptor instead. func (*QueryWorkerForecastScoresAtBlockRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{118} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{120} } func (x *QueryWorkerForecastScoresAtBlockRequest) GetTopicId() uint64 { @@ -66385,7 +66146,7 @@ type QueryWorkerForecastScoresAtBlockResponse struct { func (x *QueryWorkerForecastScoresAtBlockResponse) Reset() { *x = QueryWorkerForecastScoresAtBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[119] + mi := &file_emissions_v2_query_proto_msgTypes[121] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66399,7 +66160,7 @@ func (*QueryWorkerForecastScoresAtBlockResponse) ProtoMessage() {} // Deprecated: Use QueryWorkerForecastScoresAtBlockResponse.ProtoReflect.Descriptor instead. func (*QueryWorkerForecastScoresAtBlockResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{119} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{121} } func (x *QueryWorkerForecastScoresAtBlockResponse) GetScores() *Scores { @@ -66421,7 +66182,7 @@ type QueryReputersScoresAtBlockRequest struct { func (x *QueryReputersScoresAtBlockRequest) Reset() { *x = QueryReputersScoresAtBlockRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[120] + mi := &file_emissions_v2_query_proto_msgTypes[122] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66435,7 +66196,7 @@ func (*QueryReputersScoresAtBlockRequest) ProtoMessage() {} // Deprecated: Use QueryReputersScoresAtBlockRequest.ProtoReflect.Descriptor instead. func (*QueryReputersScoresAtBlockRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{120} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{122} } func (x *QueryReputersScoresAtBlockRequest) GetTopicId() uint64 { @@ -66463,7 +66224,7 @@ type QueryReputersScoresAtBlockResponse struct { func (x *QueryReputersScoresAtBlockResponse) Reset() { *x = QueryReputersScoresAtBlockResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[121] + mi := &file_emissions_v2_query_proto_msgTypes[123] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66477,7 +66238,7 @@ func (*QueryReputersScoresAtBlockResponse) ProtoMessage() {} // Deprecated: Use QueryReputersScoresAtBlockResponse.ProtoReflect.Descriptor instead. func (*QueryReputersScoresAtBlockResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{121} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{123} } func (x *QueryReputersScoresAtBlockResponse) GetScores() *Scores { @@ -66499,7 +66260,7 @@ type QueryListeningCoefficientRequest struct { func (x *QueryListeningCoefficientRequest) Reset() { *x = QueryListeningCoefficientRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[122] + mi := &file_emissions_v2_query_proto_msgTypes[124] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66513,7 +66274,7 @@ func (*QueryListeningCoefficientRequest) ProtoMessage() {} // Deprecated: Use QueryListeningCoefficientRequest.ProtoReflect.Descriptor instead. func (*QueryListeningCoefficientRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{122} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{124} } func (x *QueryListeningCoefficientRequest) GetTopicId() uint64 { @@ -66541,7 +66302,7 @@ type QueryListeningCoefficientResponse struct { func (x *QueryListeningCoefficientResponse) Reset() { *x = QueryListeningCoefficientResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[123] + mi := &file_emissions_v2_query_proto_msgTypes[125] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66555,7 +66316,7 @@ func (*QueryListeningCoefficientResponse) ProtoMessage() {} // Deprecated: Use QueryListeningCoefficientResponse.ProtoReflect.Descriptor instead. func (*QueryListeningCoefficientResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{123} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{125} } func (x *QueryListeningCoefficientResponse) GetListeningCoefficient() *ListeningCoefficient { @@ -66577,7 +66338,7 @@ type QueryPreviousReputerRewardFractionRequest struct { func (x *QueryPreviousReputerRewardFractionRequest) Reset() { *x = QueryPreviousReputerRewardFractionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[124] + mi := &file_emissions_v2_query_proto_msgTypes[126] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66591,7 +66352,7 @@ func (*QueryPreviousReputerRewardFractionRequest) ProtoMessage() {} // Deprecated: Use QueryPreviousReputerRewardFractionRequest.ProtoReflect.Descriptor instead. func (*QueryPreviousReputerRewardFractionRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{124} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{126} } func (x *QueryPreviousReputerRewardFractionRequest) GetTopicId() uint64 { @@ -66620,7 +66381,7 @@ type QueryPreviousReputerRewardFractionResponse struct { func (x *QueryPreviousReputerRewardFractionResponse) Reset() { *x = QueryPreviousReputerRewardFractionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[125] + mi := &file_emissions_v2_query_proto_msgTypes[127] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66634,7 +66395,7 @@ func (*QueryPreviousReputerRewardFractionResponse) ProtoMessage() {} // Deprecated: Use QueryPreviousReputerRewardFractionResponse.ProtoReflect.Descriptor instead. func (*QueryPreviousReputerRewardFractionResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{125} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{127} } func (x *QueryPreviousReputerRewardFractionResponse) GetRewardFraction() string { @@ -66663,7 +66424,7 @@ type QueryPreviousInferenceRewardFractionRequest struct { func (x *QueryPreviousInferenceRewardFractionRequest) Reset() { *x = QueryPreviousInferenceRewardFractionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[126] + mi := &file_emissions_v2_query_proto_msgTypes[128] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66677,7 +66438,7 @@ func (*QueryPreviousInferenceRewardFractionRequest) ProtoMessage() {} // Deprecated: Use QueryPreviousInferenceRewardFractionRequest.ProtoReflect.Descriptor instead. func (*QueryPreviousInferenceRewardFractionRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{126} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{128} } func (x *QueryPreviousInferenceRewardFractionRequest) GetTopicId() uint64 { @@ -66706,7 +66467,7 @@ type QueryPreviousInferenceRewardFractionResponse struct { func (x *QueryPreviousInferenceRewardFractionResponse) Reset() { *x = QueryPreviousInferenceRewardFractionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[127] + mi := &file_emissions_v2_query_proto_msgTypes[129] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66720,7 +66481,7 @@ func (*QueryPreviousInferenceRewardFractionResponse) ProtoMessage() {} // Deprecated: Use QueryPreviousInferenceRewardFractionResponse.ProtoReflect.Descriptor instead. func (*QueryPreviousInferenceRewardFractionResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{127} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{129} } func (x *QueryPreviousInferenceRewardFractionResponse) GetRewardFraction() string { @@ -66749,7 +66510,7 @@ type QueryPreviousForecastRewardFractionRequest struct { func (x *QueryPreviousForecastRewardFractionRequest) Reset() { *x = QueryPreviousForecastRewardFractionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[128] + mi := &file_emissions_v2_query_proto_msgTypes[130] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66763,7 +66524,7 @@ func (*QueryPreviousForecastRewardFractionRequest) ProtoMessage() {} // Deprecated: Use QueryPreviousForecastRewardFractionRequest.ProtoReflect.Descriptor instead. func (*QueryPreviousForecastRewardFractionRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{128} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{130} } func (x *QueryPreviousForecastRewardFractionRequest) GetTopicId() uint64 { @@ -66792,7 +66553,7 @@ type QueryPreviousForecastRewardFractionResponse struct { func (x *QueryPreviousForecastRewardFractionResponse) Reset() { *x = QueryPreviousForecastRewardFractionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[129] + mi := &file_emissions_v2_query_proto_msgTypes[131] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66806,7 +66567,7 @@ func (*QueryPreviousForecastRewardFractionResponse) ProtoMessage() {} // Deprecated: Use QueryPreviousForecastRewardFractionResponse.ProtoReflect.Descriptor instead. func (*QueryPreviousForecastRewardFractionResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{129} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{131} } func (x *QueryPreviousForecastRewardFractionResponse) GetRewardFraction() string { @@ -66832,7 +66593,7 @@ type QueryPreviousPercentageRewardToStakedReputersRequest struct { func (x *QueryPreviousPercentageRewardToStakedReputersRequest) Reset() { *x = QueryPreviousPercentageRewardToStakedReputersRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[130] + mi := &file_emissions_v2_query_proto_msgTypes[132] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66846,7 +66607,7 @@ func (*QueryPreviousPercentageRewardToStakedReputersRequest) ProtoMessage() {} // Deprecated: Use QueryPreviousPercentageRewardToStakedReputersRequest.ProtoReflect.Descriptor instead. func (*QueryPreviousPercentageRewardToStakedReputersRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{130} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{132} } type QueryPreviousPercentageRewardToStakedReputersResponse struct { @@ -66860,7 +66621,7 @@ type QueryPreviousPercentageRewardToStakedReputersResponse struct { func (x *QueryPreviousPercentageRewardToStakedReputersResponse) Reset() { *x = QueryPreviousPercentageRewardToStakedReputersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[131] + mi := &file_emissions_v2_query_proto_msgTypes[133] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66874,7 +66635,7 @@ func (*QueryPreviousPercentageRewardToStakedReputersResponse) ProtoMessage() {} // Deprecated: Use QueryPreviousPercentageRewardToStakedReputersResponse.ProtoReflect.Descriptor instead. func (*QueryPreviousPercentageRewardToStakedReputersResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{131} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{133} } func (x *QueryPreviousPercentageRewardToStakedReputersResponse) GetPercentageReward() string { @@ -66893,7 +66654,7 @@ type QueryTotalRewardToDistributeRequest struct { func (x *QueryTotalRewardToDistributeRequest) Reset() { *x = QueryTotalRewardToDistributeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[132] + mi := &file_emissions_v2_query_proto_msgTypes[134] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66907,7 +66668,7 @@ func (*QueryTotalRewardToDistributeRequest) ProtoMessage() {} // Deprecated: Use QueryTotalRewardToDistributeRequest.ProtoReflect.Descriptor instead. func (*QueryTotalRewardToDistributeRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{132} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{134} } type QueryTotalRewardToDistributeResponse struct { @@ -66921,7 +66682,7 @@ type QueryTotalRewardToDistributeResponse struct { func (x *QueryTotalRewardToDistributeResponse) Reset() { *x = QueryTotalRewardToDistributeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[133] + mi := &file_emissions_v2_query_proto_msgTypes[135] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -66935,7 +66696,7 @@ func (*QueryTotalRewardToDistributeResponse) ProtoMessage() {} // Deprecated: Use QueryTotalRewardToDistributeResponse.ProtoReflect.Descriptor instead. func (*QueryTotalRewardToDistributeResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{133} + return file_emissions_v2_query_proto_rawDescGZIP(), []int{135} } func (x *QueryTotalRewardToDistributeResponse) GetTotalReward() string { @@ -66945,156 +66706,16 @@ func (x *QueryTotalRewardToDistributeResponse) GetTotalReward() string { return "" } -type QueryTopicLastWorkerPayloadRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` -} - -func (x *QueryTopicLastWorkerPayloadRequest) Reset() { - *x = QueryTopicLastWorkerPayloadRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[134] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryTopicLastWorkerPayloadRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryTopicLastWorkerPayloadRequest) ProtoMessage() {} - -// Deprecated: Use QueryTopicLastWorkerPayloadRequest.ProtoReflect.Descriptor instead. -func (*QueryTopicLastWorkerPayloadRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{134} -} - -func (x *QueryTopicLastWorkerPayloadRequest) GetTopicId() uint64 { - if x != nil { - return x.TopicId - } - return 0 -} - -type QueryTopicLastWorkerPayloadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Payload *TimestampedActorNonce `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` -} - -func (x *QueryTopicLastWorkerPayloadResponse) Reset() { - *x = QueryTopicLastWorkerPayloadResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[135] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryTopicLastWorkerPayloadResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryTopicLastWorkerPayloadResponse) ProtoMessage() {} - -// Deprecated: Use QueryTopicLastWorkerPayloadResponse.ProtoReflect.Descriptor instead. -func (*QueryTopicLastWorkerPayloadResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{135} -} - -func (x *QueryTopicLastWorkerPayloadResponse) GetPayload() *TimestampedActorNonce { - if x != nil { - return x.Payload - } - return nil -} - -type QueryTopicLastReputerPayloadRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` -} - -func (x *QueryTopicLastReputerPayloadRequest) Reset() { - *x = QueryTopicLastReputerPayloadRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[136] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryTopicLastReputerPayloadRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryTopicLastReputerPayloadRequest) ProtoMessage() {} - -// Deprecated: Use QueryTopicLastReputerPayloadRequest.ProtoReflect.Descriptor instead. -func (*QueryTopicLastReputerPayloadRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{136} -} - -func (x *QueryTopicLastReputerPayloadRequest) GetTopicId() uint64 { - if x != nil { - return x.TopicId - } - return 0 -} - -type QueryTopicLastReputerPayloadResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Payload *TimestampedActorNonce `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` -} - -func (x *QueryTopicLastReputerPayloadResponse) Reset() { - *x = QueryTopicLastReputerPayloadResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_query_proto_msgTypes[137] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryTopicLastReputerPayloadResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryTopicLastReputerPayloadResponse) ProtoMessage() {} - -// Deprecated: Use QueryTopicLastReputerPayloadResponse.ProtoReflect.Descriptor instead. -func (*QueryTopicLastReputerPayloadResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_query_proto_rawDescGZIP(), []int{137} -} - -func (x *QueryTopicLastReputerPayloadResponse) GetPayload() *TimestampedActorNonce { - if x != nil { - return x.Payload - } - return nil -} - -var File_emissions_v1_query_proto protoreflect.FileDescriptor +var File_emissions_v2_query_proto protoreflect.FileDescriptor -var file_emissions_v1_query_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x71, +var file_emissions_v2_query_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x2a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, + 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, @@ -67103,361 +66724,410 @@ var file_emissions_v1_query_proto_rawDesc = []byte{ 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x19, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, + 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x19, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, + 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x65, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, + 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x76, 0x31, 0x2f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x14, - 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x22, 0x4e, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x70, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, - 0x61, 0x6c, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x69, - 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x6b, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, + 0x76, 0x32, 0x2f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5c, + 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x61, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x66, 0x65, + 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x22, 0x60, 0x0a, 0x26, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x61, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, + 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, + 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x22, 0x8c, + 0x01, 0x0a, 0x2d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, + 0x66, 0x65, 0x72, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x6f, + 0x6e, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, + 0x72, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x22, 0x68, 0x0a, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, + 0x72, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x36, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x22, 0x95, 0x01, 0x0a, 0x30, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x46, 0x6f, + 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, + 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0f, 0x6f, 0x6e, 0x65, 0x5f, 0x6f, + 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x6f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x12, + 0x1e, 0x0a, 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x22, + 0x6b, 0x0a, 0x31, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, + 0x66, 0x65, 0x72, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x22, 0x95, 0x01, 0x0a, + 0x30, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x65, + 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, + 0x6f, 0x6e, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6f, 0x6e, 0x65, 0x4f, 0x75, 0x74, + 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, + 0x66, 0x65, 0x72, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, + 0x65, 0x72, 0x65, 0x72, 0x22, 0x6b, 0x0a, 0x31, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, + 0x4f, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, + 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x72, 0x65, 0x67, + 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, + 0x74, 0x22, 0x9e, 0x01, 0x0a, 0x33, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x4f, 0x75, + 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, + 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, + 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x12, 0x6f, 0x6e, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x5f, + 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x10, 0x6f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, + 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, + 0x65, 0x72, 0x22, 0x6e, 0x0a, 0x34, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x4f, 0x75, + 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, + 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, + 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x72, 0x65, + 0x67, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x67, 0x72, + 0x65, 0x74, 0x22, 0x14, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4e, 0x0a, 0x13, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x37, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x09, 0xc8, 0xde, 0x1f, 0x00, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, + 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0x69, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, + 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, + 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, + 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x56, 0x0a, + 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x72, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, + 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, - 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x56, 0x0a, 0x1f, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, - 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, - 0x64, 0x22, 0x72, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, - 0x72, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, + 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x5f, 0x0a, 0x24, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x74, + 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, + 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x5a, 0x0a, 0x25, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, + 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x07, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x61, + 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x6f, 0x0a, 0x29, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, + 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x49, + 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, + 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x2a, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, - 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x5f, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x75, - 0x6c, 0x74, 0x69, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, - 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, - 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, + 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x6f, 0x0a, 0x29, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, + 0x75, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, - 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x5a, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, - 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x65, - 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x31, 0x0a, 0x07, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x73, 0x22, 0x6f, 0x0a, 0x29, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, - 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x49, 0x6e, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, - 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x2a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, - 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x54, 0x6f, - 0x70, 0x69, 0x63, 0x49, 0x6e, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, - 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, - 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, - 0x01, 0x22, 0x6f, 0x0a, 0x29, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, - 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, - 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, - 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x2a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, - 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, - 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, - 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, - 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, - 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, - 0x22, 0xa1, 0x01, 0x0a, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, - 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, - 0x70, 0x69, 0x63, 0x49, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, - 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, - 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x65, 0x70, 0x75, 0x74, - 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, - 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, - 0x69, 0x63, 0x49, 0x64, 0x22, 0x81, 0x01, 0x0a, 0x2f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x2a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x49, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, + 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, + 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xa1, 0x01, 0x0a, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, - 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, - 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, - 0x6e, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x6f, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, - 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, - 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, - 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x78, 0x0a, 0x26, 0x51, 0x75, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, + 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, + 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x81, 0x01, 0x0a, 0x2f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, - 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, - 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, - 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, - 0xa0, 0x1f, 0x01, 0x22, 0x33, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, - 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x69, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, - 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, - 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, - 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, - 0xa0, 0x1f, 0x01, 0x22, 0x64, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x41, 0x74, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, - 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, - 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, - 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x63, 0x0a, 0x25, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x52, 0x0a, 0x6c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x22, 0x19, - 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, - 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3e, 0x0a, 0x18, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6e, 0x65, - 0x78, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x2e, 0x0a, 0x11, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, - 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x84, 0x01, 0x0a, 0x12, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x29, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x77, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x5f, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, - 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, - 0x22, 0x67, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, - 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4b, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x50, 0x61, 0x67, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0a, 0x70, - 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x96, 0x01, 0x0a, 0x19, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x06, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x73, 0x12, 0x4c, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x43, 0x75, - 0x72, 0x73, 0x6f, 0x72, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x5d, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x21, - 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x22, 0x5a, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x73, 0x52, 0x0a, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x3e, 0x0a, - 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x81, 0x01, - 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x73, 0x52, 0x0a, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x21, - 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x22, 0x5c, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, - 0x73, 0x74, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x52, 0x65, 0x70, + 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x06, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, + 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, + 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, + 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, + 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x6f, 0x0a, 0x25, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x78, 0x0a, + 0x26, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x33, 0x0a, 0x16, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, - 0x56, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, - 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x35, 0x0a, 0x09, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x52, 0x09, 0x66, 0x6f, - 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x22, 0x65, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, - 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, - 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x65, - 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x68, - 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x74, - 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x10, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, - 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, - 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x3b, 0x0a, 0x1a, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x69, 0x62, 0x70, 0x32, 0x70, - 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x69, 0x62, 0x70, - 0x32, 0x70, 0x4b, 0x65, 0x79, 0x22, 0x56, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, - 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x66, 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, - 0x6f, 0x64, 0x65, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x3c, 0x0a, - 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64, - 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, - 0x6c, 0x69, 0x62, 0x70, 0x32, 0x70, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x6c, 0x69, 0x62, 0x70, 0x32, 0x70, 0x4b, 0x65, 0x79, 0x22, 0x57, 0x0a, 0x1c, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x6e, - 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x66, - 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, - 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x42, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, - 0x6b, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x50, 0x32, 0x50, 0x4b, - 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x69, 0x62, - 0x70, 0x32, 0x70, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, - 0x69, 0x62, 0x70, 0x32, 0x70, 0x4b, 0x65, 0x79, 0x22, 0x3e, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, - 0x50, 0x32, 0x50, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x43, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, - 0x79, 0x50, 0x32, 0x50, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, - 0x0a, 0x0a, 0x6c, 0x69, 0x62, 0x70, 0x32, 0x70, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x6c, 0x69, 0x62, 0x70, 0x32, 0x70, 0x4b, 0x65, 0x79, 0x22, 0x3f, 0x0a, - 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x50, 0x32, 0x50, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0xb9, - 0x01, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, + 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x69, 0x0a, 0x17, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, + 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x64, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x63, 0x0a, + 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x73, + 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x62, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x0a, 0x6c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x22, 0x19, 0x0a, 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x78, 0x74, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3e, 0x0a, + 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x65, 0x78, + 0x74, 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0b, 0x6e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x2e, 0x0a, + 0x11, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x84, 0x01, + 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, + 0x16, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2b, 0x0a, 0x11, 0x65, 0x66, 0x66, 0x65, 0x63, + 0x74, 0x69, 0x76, 0x65, 0x5f, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x10, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x76, + 0x65, 0x6e, 0x75, 0x65, 0x22, 0x67, 0x0a, 0x18, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x4b, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, + 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x96, 0x01, + 0x0a, 0x19, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x12, 0x4c, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x69, 0x6d, 0x70, + 0x6c, 0x65, 0x43, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x70, 0x61, 0x67, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5d, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x1b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x18, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x12, 0x37, 0x0a, 0x18, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x15, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, - 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x22, 0x40, 0x0a, 0x23, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x64, 0x0a, 0x24, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x6e, - 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, - 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x22, 0x66, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x6f, 0x72, - 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, - 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x1b, 0x69, - 0x73, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x75, - 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x18, 0x69, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x55, - 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x22, 0x41, 0x0a, 0x24, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, - 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x63, 0x0a, - 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, - 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x06, 0x6e, 0x6f, 0x6e, 0x63, - 0x65, 0x73, 0x22, 0x40, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x6e, 0x66, 0x75, 0x6c, - 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, - 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, - 0x69, 0x63, 0x49, 0x64, 0x22, 0x54, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x6e, 0x66, - 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, - 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x06, - 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, - 0x65, 0x73, 0x52, 0x06, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x58, 0x0a, 0x20, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, - 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x74, - 0x6f, 0x72, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, - 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x72, 0x65, 0x67, - 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, - 0x74, 0x22, 0x58, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, - 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, + 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x5a, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x69, 0x6e, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x0a, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x73, 0x22, 0x3e, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x64, 0x22, 0x81, 0x01, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x69, 0x6e, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x0a, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x5c, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, + 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, + 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x22, 0x56, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, + 0x63, 0x61, 0x73, 0x74, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x09, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, + 0x52, 0x09, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x22, 0x65, 0x0a, 0x21, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x77, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x22, 0x68, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x10, 0x6c, 0x61, 0x74, 0x65, + 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x6c, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x48, 0x0a, 0x1a, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x52, 0x0a, 0x6c, 0x69, 0x62, 0x70, + 0x32, 0x70, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x56, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x6e, + 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4f, 0x66, 0x66, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x49, + 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x52, 0x0a, 0x6c, + 0x69, 0x62, 0x70, 0x32, 0x70, 0x5f, 0x6b, 0x65, 0x79, 0x22, 0x57, 0x0a, 0x1c, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x09, 0x6e, 0x6f, 0x64, + 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4f, 0x66, 0x66, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x6e, + 0x66, 0x6f, 0x22, 0xb9, 0x01, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x74, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x3d, 0x0a, 0x1b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, + 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x18, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, + 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x22, 0x40, + 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, + 0x22, 0x64, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x22, 0x5e, 0x0a, 0x24, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x22, 0x7f, 0x0a, 0x28, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, - 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, - 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x22, 0x63, 0x0a, 0x29, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, - 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x72, 0x65, 0x67, - 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, - 0x74, 0x22, 0x69, 0x0a, 0x2c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x49, 0x6e, 0x46, - 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x53, 0x65, 0x6c, 0x66, 0x4e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, - 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x22, 0x67, 0x0a, 0x2d, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, - 0x73, 0x74, 0x65, 0x72, 0x53, 0x65, 0x6c, 0x66, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, + 0x63, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x66, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, + 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, + 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x3d, 0x0a, 0x1b, 0x69, 0x73, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x6e, 0x6f, 0x6e, + 0x63, 0x65, 0x5f, 0x75, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x69, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, + 0x6e, 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x22, 0x41, + 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, + 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x64, 0x22, 0x63, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, + 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x6e, 0x6f, + 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x06, + 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x40, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, + 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, + 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x54, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2c, 0x0a, 0x06, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x14, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x06, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x58, + 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x19, 0x0a, + 0x08, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, + 0x65, 0x67, 0x72, 0x65, 0x74, 0x22, 0x58, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, + 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, + 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x22, + 0x5e, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, + 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, + 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x22, + 0x7f, 0x0a, 0x28, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, + 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, + 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, + 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x6f, 0x72, 0x65, + 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, + 0x22, 0x63, 0x0a, 0x29, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x49, 0x6e, 0x46, 0x6f, + 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, + 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, + 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x22, 0x65, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, @@ -67477,29 +67147,29 @@ var file_emissions_v1_query_proto_rawDesc = []byte{ 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x12, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x11, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x22, 0xd5, 0x05, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x12, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x56, + 0x19, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x11, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x4b, 0x0a, 0x0f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x64, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x0e, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x73, 0x12, 0x51, 0x0a, 0x12, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x65, 0x64, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x11, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x73, 0x12, 0x61, 0x0a, 0x19, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x49, 0x6d, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x23, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x32, 0x23, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x19, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x49, 0x6d, 0x70, 0x6c, 0x69, 0x65, 0x64, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, @@ -67554,28 +67224,29 @@ var file_emissions_v1_query_proto_rawDesc = []byte{ 0x22, 0x3a, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x46, 0x0a, 0x21, + 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x22, 0x4a, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, - 0x6c, 0x73, 0x46, 0x6f, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x22, 0x60, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, - 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x46, 0x6f, 0x72, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x72, 0x65, - 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x6b, - 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x72, 0x65, - 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x22, 0x4e, 0x0a, 0x29, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, - 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x61, 0x6c, 0x73, 0x46, 0x6f, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x70, 0x0a, 0x2a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, - 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x61, 0x6c, 0x73, 0x46, 0x6f, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6c, 0x73, 0x55, 0x70, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x64, 0x0a, 0x26, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x55, 0x70, + 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, + 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x22, 0x52, + 0x0a, 0x2d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, + 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x55, 0x70, 0x55, 0x6e, + 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x22, 0x74, 0x0a, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, + 0x55, 0x70, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x08, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x22, 0x53, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, @@ -67586,7 +67257,7 @@ var file_emissions_v1_query_proto_rawDesc = []byte{ 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, + 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x22, 0x79, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, @@ -67600,7 +67271,7 @@ var file_emissions_v1_query_proto_rawDesc = []byte{ 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x07, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x22, 0x38, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, @@ -67610,7 +67281,7 @@ var file_emissions_v1_query_proto_rawDesc = []byte{ 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22, 0x39, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x77, 0x61, @@ -67631,7 +67302,7 @@ var file_emissions_v1_query_proto_rawDesc = []byte{ 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0c, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x56, 0x61, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x52, 0x0b, 0x6c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x22, 0x58, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, @@ -67658,7 +67329,7 @@ var file_emissions_v1_query_proto_rawDesc = []byte{ 0x74, 0x61, 0x6b, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0e, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x59, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x55, @@ -67699,7 +67370,7 @@ var file_emissions_v1_query_proto_rawDesc = []byte{ 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x10, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x98, 0x01, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, @@ -67716,7 +67387,7 @@ var file_emissions_v1_query_proto_rawDesc = []byte{ 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x10, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x3c, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, @@ -67757,1500 +67428,1471 @@ var file_emissions_v1_query_proto_rawDesc = []byte{ 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0a, 0x66, 0x65, 0x65, 0x52, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, - 0x22, 0x1d, 0x0a, 0x1b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x68, 0x75, 0x72, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x4e, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x68, 0x75, 0x72, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2e, 0x0a, 0x13, 0x63, 0x68, 0x75, 0x72, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x70, - 0x69, 0x63, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x11, 0x63, 0x68, - 0x75, 0x72, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x73, 0x22, - 0x1e, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, 0x62, - 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x51, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, 0x62, - 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x30, 0x0a, 0x14, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, - 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x12, - 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, - 0x64, 0x73, 0x22, 0x55, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, - 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, - 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x22, 0x4c, 0x0a, 0x1f, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x53, - 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, - 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, - 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x5e, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, - 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, - 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, - 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, - 0x61, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x6f, 0x72, - 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x22, 0x4f, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, + 0x22, 0x1e, 0x0a, 0x1c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, + 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x22, 0x51, 0x0a, 0x1d, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, + 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x30, 0x0a, 0x14, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, + 0x12, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x73, 0x22, 0x55, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, + 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x22, 0x4c, 0x0a, 0x1f, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x6f, 0x72, - 0x65, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x55, 0x0a, 0x1e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x63, - 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x22, - 0x4c, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, - 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x65, 0x0a, - 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, - 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, - 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x22, 0x55, 0x0a, 0x26, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, 0x69, - 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, - 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, - 0x6f, 0x72, 0x65, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x22, 0x68, 0x0a, 0x28, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x63, 0x6f, 0x72, + 0x65, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x5e, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, + 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, + 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x6f, 0x72, 0x65, + 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x6f, + 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x22, 0x4f, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, + 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, + 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x63, 0x6f, + 0x72, 0x65, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x55, 0x0a, 0x1e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, + 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x22, 0x4c, 0x0a, 0x1f, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, + 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x65, + 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x59, 0x0a, 0x29, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, - 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, - 0x22, 0x64, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, - 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x55, 0x0a, 0x26, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, + 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2b, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, + 0x63, 0x6f, 0x72, 0x65, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x22, 0x68, 0x0a, 0x28, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x54, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, - 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, - 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2b, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x63, 0x6f, 0x72, 0x65, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x22, 0x67, 0x0a, 0x27, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, - 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x58, 0x0a, 0x28, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, - 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x22, - 0x61, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, - 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, - 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, - 0x68, 0x74, 0x22, 0x52, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, - 0x65, 0x72, 0x73, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, - 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x52, 0x06, - 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x22, 0x57, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, - 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, - 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x22, - 0x7c, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, - 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x15, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, - 0x67, 0x5f, 0x63, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, - 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x14, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, - 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x60, 0x0a, - 0x29, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x52, 0x65, - 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x22, - 0xab, 0x01, 0x0a, 0x2a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, - 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x60, - 0x0a, 0x0f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, - 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, - 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, - 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, - 0x52, 0x0e, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0x60, 0x0a, - 0x2b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x49, 0x6e, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, - 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, - 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x22, - 0xad, 0x01, 0x0a, 0x2c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, - 0x73, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, - 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x60, 0x0a, 0x0f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, - 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, - 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, - 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, - 0x65, 0x63, 0x52, 0x0e, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x22, - 0x5f, 0x0a, 0x2a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, - 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x59, 0x0a, 0x29, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, + 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, + 0x73, 0x22, 0x64, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, + 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, + 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x54, 0x0a, 0x25, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, + 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x22, 0x67, 0x0a, + 0x27, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, + 0x63, 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, + 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, + 0x63, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, + 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x58, 0x0a, 0x28, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, + 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, + 0x22, 0x61, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x73, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, + 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, + 0x67, 0x68, 0x74, 0x22, 0x52, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, + 0x74, 0x65, 0x72, 0x73, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x63, 0x6f, + 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x52, + 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x22, 0x57, 0x0a, 0x20, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, + 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x22, 0x7c, 0x0a, 0x21, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, + 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x15, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, + 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x65, + 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x14, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, + 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x22, 0x60, + 0x0a, 0x29, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x52, + 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, + 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x22, 0xab, 0x01, 0x0a, 0x2a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, + 0x75, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, + 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x60, 0x0a, 0x0f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, + 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, + 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, + 0x63, 0x52, 0x0e, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0x60, + 0x0a, 0x2b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x49, + 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, - 0x22, 0xac, 0x01, 0x0a, 0x2b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, - 0x75, 0x73, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, - 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x60, 0x0a, 0x0f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, - 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, - 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, - 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, - 0x65, 0x63, 0x52, 0x0e, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x22, - 0x36, 0x0a, 0x34, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, - 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, - 0x54, 0x6f, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x9d, 0x01, 0x0a, 0x35, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, - 0x61, 0x67, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x53, 0x74, 0x61, 0x6b, 0x65, - 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x64, 0x0a, 0x11, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x5f, - 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, - 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, - 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, - 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x10, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, - 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x22, 0x25, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x44, 0x69, 0x73, - 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x82, - 0x01, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, - 0x61, 0x72, 0x64, 0x54, 0x6f, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x22, 0xad, 0x01, 0x0a, 0x2c, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, + 0x75, 0x73, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, + 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x60, 0x0a, 0x0f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x66, 0x72, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, + 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, + 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x44, 0x65, 0x63, 0x52, 0x0e, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, + 0x22, 0x5f, 0x0a, 0x2a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, + 0x73, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, + 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, + 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x6f, 0x72, + 0x6b, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x22, 0xac, 0x01, 0x0a, 0x2b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, + 0x6f, 0x75, 0x73, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, + 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x60, 0x0a, 0x0f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x66, 0x72, 0x61, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, + 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, + 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x44, 0x65, 0x63, 0x52, 0x0e, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, + 0x22, 0x36, 0x0a, 0x34, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, + 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, + 0x64, 0x54, 0x6f, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x9d, 0x01, 0x0a, 0x35, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, + 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x53, 0x74, 0x61, 0x6b, + 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x64, 0x0a, 0x11, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, - 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, - 0x61, 0x72, 0x64, 0x22, 0x3f, 0x0a, 0x22, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x4c, 0x61, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, - 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, - 0x69, 0x63, 0x49, 0x64, 0x22, 0x64, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x07, 0x70, - 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x6f, 0x6e, 0x63, - 0x65, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x40, 0x0a, 0x23, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x70, 0x75, - 0x74, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x24, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, - 0x70, 0x75, 0x74, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, - 0x41, 0x63, 0x74, 0x6f, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x32, 0xb6, 0x6d, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x6b, 0x0a, - 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x20, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x89, 0x01, 0x0a, 0x0e, 0x47, - 0x65, 0x74, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x25, 0x2e, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x88, 0xe7, - 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x12, 0x7b, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x12, 0x1f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, - 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, - 0x69, 0x64, 0x7d, 0x12, 0x8c, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x12, 0x26, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x27, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x73, 0x12, 0xde, 0x01, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, - 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x42, - 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, - 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, + 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x10, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, + 0x67, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x22, 0x25, 0x0a, 0x23, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x44, 0x69, + 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x82, 0x01, 0x0a, 0x24, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, + 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0c, 0x74, 0x6f, 0x74, 0x61, + 0x6c, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, + 0x77, 0x61, 0x72, 0x64, 0x32, 0xc4, 0x6d, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x6b, + 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x20, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1c, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x89, 0x01, 0x0a, 0x0e, + 0x47, 0x65, 0x74, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x25, + 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x78, 0x74, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x88, + 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x12, 0x7b, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x12, 0x1f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, + 0x76, 0x32, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x8c, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x12, 0x26, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, + 0x69, 0x76, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x27, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x88, 0xe7, 0xb0, 0x2a, 0x01, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x73, 0x12, 0xde, 0x01, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x42, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x56, 0x88, 0xe7, 0xb0, - 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4b, 0x12, 0x49, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x7b, - 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, - 0x73, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x7d, 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x12, 0xb2, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2b, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, - 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, - 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xb6, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, - 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, - 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x56, 0x88, 0xe7, + 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4b, 0x12, 0x49, 0x2f, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, + 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x73, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x7d, 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x12, 0xb2, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2b, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, + 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, + 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xb6, 0x01, 0x0a, 0x18, 0x47, 0x65, + 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, - 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, - 0x7d, 0x12, 0xae, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, - 0x74, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, - 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, - 0x73, 0x74, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x3e, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, - 0x31, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x66, - 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, - 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x7d, 0x12, 0xc9, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x4c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x41, 0x74, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, - 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, + 0x73, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x88, 0xe7, 0xb0, 0x2a, 0x01, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, + 0x64, 0x7d, 0x12, 0xae, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, + 0x73, 0x74, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2a, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, + 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, + 0x61, 0x73, 0x74, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x3e, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, + 0x12, 0x31, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x7d, 0x12, 0xc9, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x41, 0x74, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0x88, 0xe7, 0xb0, - 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, - 0x6c, 0x6f, 0x73, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, - 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0x84, - 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x6b, 0x65, - 0x12, 0x24, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, - 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, 0x88, - 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, - 0x73, 0x74, 0x61, 0x6b, 0x65, 0x12, 0xb6, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, - 0x75, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, - 0x12, 0x2d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x6f, 0x63, 0x6b, 0x12, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x4c, + 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x41, 0x74, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0x88, 0xe7, + 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x5f, 0x6c, 0x6f, 0x73, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, + 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, + 0x84, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x6b, + 0x65, 0x12, 0x24, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, + 0x6c, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x26, + 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x12, 0xb6, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x52, 0x65, + 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x12, 0x2d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x2e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, - 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x65, - 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x3d, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x75, - 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xbd, - 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x70, 0x75, 0x74, - 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x32, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, - 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x70, 0x75, - 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x5f, 0x73, 0x74, 0x61, - 0x6b, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xe1, - 0x01, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x52, - 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x53, - 0x65, 0x6c, 0x66, 0x12, 0x37, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, - 0x6d, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, - 0x6e, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, - 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, - 0x5f, 0x73, 0x65, 0x6c, 0x66, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, - 0x64, 0x7d, 0x12, 0xe5, 0x01, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, - 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, - 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x12, 0x37, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, - 0x49, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x38, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, - 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x88, 0xe7, 0xb0, 0x2a, - 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x12, 0x41, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x64, - 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x2f, 0x7b, 0x72, - 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, - 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x80, 0x02, 0x0a, 0x25, 0x47, - 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, - 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x52, 0x65, 0x70, - 0x75, 0x74, 0x65, 0x72, 0x12, 0x3c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, - 0x6f, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x49, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, - 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, - 0x49, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x5a, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4f, 0x12, 0x4d, - 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, - 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x2f, 0x7b, 0x64, 0x65, - 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, - 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x7d, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xd3, 0x01, - 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, - 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x33, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x6c, 0x65, - 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, - 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x88, 0xe7, 0xb0, 0x2a, 0x01, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, - 0x74, 0x61, 0x6b, 0x65, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, + 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x3d, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x70, + 0x75, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, + 0xbd, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x70, 0x75, + 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, + 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x52, 0x65, 0x70, + 0x75, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x5f, 0x73, 0x74, + 0x61, 0x6b, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, + 0xe1, 0x01, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, + 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, + 0x53, 0x65, 0x6c, 0x66, 0x12, 0x37, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, + 0x6f, 0x6d, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x6e, 0x53, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x52, 0x65, 0x70, 0x75, 0x74, + 0x65, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x53, 0x65, 0x6c, 0x66, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x6b, + 0x65, 0x5f, 0x73, 0x65, 0x6c, 0x66, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, - 0x69, 0x64, 0x7d, 0x12, 0x89, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, - 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x24, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, - 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x2b, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, - 0x1e, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, - 0x74, 0x61, 0x6b, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, - 0xb7, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x61, 0x6c, 0x73, 0x46, 0x6f, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2f, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x46, 0x6f, - 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x46, - 0x6f, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x38, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x6b, - 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xd8, 0x01, 0x0a, 0x20, 0x47, 0x65, - 0x74, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x46, 0x6f, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x37, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, - 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x46, 0x6f, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, - 0x73, 0x46, 0x6f, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x41, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, - 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, - 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x6d, - 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x7d, 0x12, 0xad, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, - 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, - 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x32, 0x12, 0x30, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, - 0x31, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x2f, - 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, - 0x74, 0x65, 0x72, 0x7d, 0x12, 0xda, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x44, 0x65, 0x6c, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, - 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, - 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, - 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x88, - 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x12, 0x45, 0x2f, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, - 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, - 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x64, 0x65, 0x6c, - 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, - 0x7d, 0x12, 0x98, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, - 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x28, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, - 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x29, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x88, 0xe7, - 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x12, 0x21, 0x2f, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2f, - 0x7b, 0x6c, 0x69, 0x62, 0x70, 0x32, 0x70, 0x5f, 0x6b, 0x65, 0x79, 0x7d, 0x12, 0x9c, 0x01, 0x0a, - 0x12, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, - 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, - 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x88, 0xe7, 0xb0, 0x2a, - 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x7b, - 0x6c, 0x69, 0x62, 0x70, 0x32, 0x70, 0x5f, 0x6b, 0x65, 0x79, 0x7d, 0x12, 0xb5, 0x01, 0x0a, 0x18, - 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x42, 0x79, 0x50, 0x32, 0x50, 0x4b, 0x65, 0x79, 0x12, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, - 0x6b, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x50, 0x32, 0x50, 0x4b, - 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x50, 0x32, 0x50, - 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x88, 0xe7, 0xb0, - 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2f, 0x7b, 0x6c, 0x69, 0x62, 0x70, 0x32, 0x70, 0x5f, 0x6b, - 0x65, 0x79, 0x7d, 0x12, 0xb9, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, - 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x50, 0x32, 0x50, 0x4b, 0x65, - 0x79, 0x12, 0x30, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x64, 0x64, - 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x50, 0x32, 0x50, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x79, 0x50, 0x32, 0x50, 0x4b, 0x65, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x2f, 0x7b, 0x6c, 0x69, 0x62, 0x70, 0x32, 0x70, 0x5f, 0x6b, 0x65, 0x79, 0x7d, 0x12, - 0xcf, 0x01, 0x0a, 0x1b, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, - 0x35, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, - 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x6f, 0x72, - 0x6b, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x49, 0x6e, 0x54, - 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, - 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, - 0x72, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x2f, 0x7b, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x7d, 0x12, 0xd3, 0x01, 0x0a, 0x1c, 0x49, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, + 0x69, 0x64, 0x7d, 0x12, 0xe5, 0x01, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x12, 0x37, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x49, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x38, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, + 0x61, 0x6b, 0x65, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x52, 0x65, 0x70, 0x75, + 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x88, 0xe7, 0xb0, + 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x12, 0x41, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, + 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x2f, 0x7b, + 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, + 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x80, 0x02, 0x0a, 0x25, + 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x6e, 0x52, 0x65, + 0x70, 0x75, 0x74, 0x65, 0x72, 0x12, 0x3c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, + 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x49, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, + 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x49, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x5a, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4f, 0x12, + 0x4d, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x64, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x2f, 0x7b, 0x64, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xd3, + 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, + 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x65, 0x6c, + 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x46, 0x72, + 0x6f, 0x6d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x6e, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x88, 0xe7, 0xb0, 0x2a, + 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, + 0x73, 0x74, 0x61, 0x6b, 0x65, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, + 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x89, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x24, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, + 0x12, 0x1e, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x73, 0x74, 0x61, 0x6b, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, + 0x12, 0xc3, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x55, 0x70, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x12, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x61, 0x6c, 0x73, 0x55, 0x70, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x55, 0x70, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x88, 0xe7, + 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, + 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xe4, 0x01, 0x0a, 0x24, 0x47, 0x65, 0x74, 0x44, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x61, 0x6c, 0x73, 0x55, 0x70, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, + 0x3b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, + 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x55, 0x70, 0x55, 0x6e, 0x74, 0x69, 0x6c, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x55, 0x70, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0x88, 0xe7, 0xb0, 0x2a, + 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, + 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x2f, 0x7b, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xad, 0x01, + 0x0a, 0x13, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, + 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, + 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x65, + 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, + 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xda, 0x01, + 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, + 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, + 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x47, 0x12, 0x45, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, + 0x76, 0x32, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x6b, + 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x7d, + 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x7d, 0x12, 0x95, 0x01, 0x0a, 0x11, 0x47, + 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, + 0x12, 0x28, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, + 0x32, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x7d, 0x12, 0x99, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, + 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, + 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x2c, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x70, + 0x75, 0x74, 0x65, 0x72, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xcf, + 0x01, 0x0a, 0x1b, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x65, 0x64, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x35, + 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x65, 0x64, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6b, + 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x49, 0x6e, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x41, 0x88, + 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x2f, 0x7b, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, + 0x12, 0xd3, 0x01, 0x0a, 0x1c, 0x49, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x64, 0x12, 0x36, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, - 0x49, 0x64, 0x12, 0x36, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, 0x64, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, - 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x65, 0x64, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x42, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, - 0x12, 0x35, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, - 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x65, 0x64, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x96, 0x02, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x4e, + 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, + 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, + 0x64, 0x49, 0x6e, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x42, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x12, + 0x35, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, + 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x65, + 0x64, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x96, 0x02, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, + 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, - 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, 0x65, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x41, 0x74, 0x42, - 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x8d, 0x01, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x81, 0x01, 0x12, 0x7f, + 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, + 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6c, 0x61, 0x73, 0x74, + 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69, 0x6e, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, + 0x77, 0x61, 0x72, 0x64, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x7d, 0x12, + 0xbc, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x31, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, + 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x2d, 0x12, 0x2b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, + 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xc5, + 0x01, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x41, 0x76, 0x61, 0x69, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x8d, 0x01, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x81, 0x01, 0x12, - 0x7f, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x6c, 0x61, 0x73, - 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x69, - 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x7d, 0x2f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x72, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x7d, - 0x12, 0xbc, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4e, 0x65, - 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x31, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, - 0x31, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, - 0xc5, 0x01, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x41, 0x76, 0x61, - 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, - 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, - 0x74, 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x88, - 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xd5, 0x01, 0x0a, 0x18, 0x49, 0x73, 0x57, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, - 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x65, - 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, - 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, - 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0x88, - 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x73, 0x5f, 0x77, 0x6f, 0x72, - 0x6b, 0x65, 0x72, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x75, 0x6e, 0x66, 0x75, 0x6c, 0x66, - 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, - 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, - 0xd9, 0x01, 0x0a, 0x19, 0x49, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, - 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x33, 0x2e, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x49, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, - 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, + 0x65, 0x73, 0x74, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x88, 0xe7, + 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xd5, 0x01, 0x0a, 0x18, 0x49, 0x73, 0x57, 0x6f, 0x72, + 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, + 0x6c, 0x65, 0x64, 0x12, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x46, 0x12, 0x44, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, - 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x75, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, - 0x64, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xc4, 0x01, 0x0a, 0x1a, - 0x47, 0x65, 0x74, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x57, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x31, 0x2e, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, - 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, - 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, - 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x3f, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, - 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x6e, - 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, - 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, - 0x64, 0x7d, 0x12, 0xc8, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x6f, + 0x72, 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, + 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0x88, 0xe7, + 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x73, 0x5f, 0x77, 0x6f, 0x72, 0x6b, + 0x65, 0x72, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x75, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, + 0x6c, 0x6c, 0x65, 0x64, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, + 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xd9, + 0x01, 0x0a, 0x19, 0x49, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, + 0x65, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x33, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x49, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x55, + 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x34, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, + 0x6f, 0x6e, 0x63, 0x65, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x46, 0x12, 0x44, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x6e, + 0x6f, 0x6e, 0x63, 0x65, 0x5f, 0x75, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, + 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xc4, 0x01, 0x0a, 0x1a, 0x47, + 0x65, 0x74, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, + 0x6b, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x6e, + 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x4e, + 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x57, 0x6f, 0x72, 0x6b, + 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x3f, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x2f, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x75, 0x6e, 0x66, + 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, + 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, + 0x7d, 0x12, 0xc8, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, + 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, + 0x73, 0x12, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, + 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, - 0x65, 0x73, 0x12, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, - 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x6e, 0x66, 0x75, 0x6c, - 0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x6e, - 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x88, 0xe7, 0xb0, - 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x75, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, - 0x6c, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, - 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xc3, 0x01, - 0x0a, 0x17, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0x2e, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, - 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, - 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, - 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x47, 0x88, 0xe7, 0xb0, 0x2a, - 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x5f, 0x6e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x2f, 0x7b, 0x74, - 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x5f, - 0x69, 0x64, 0x7d, 0x12, 0xcd, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, - 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, - 0x65, 0x74, 0x12, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, - 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x88, 0xe7, 0xb0, 0x2a, + 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x75, 0x6e, 0x66, 0x75, 0x6c, 0x66, 0x69, 0x6c, 0x6c, + 0x65, 0x64, 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, + 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xc3, 0x01, 0x0a, + 0x17, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0x2e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, + 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, + 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x47, 0x88, 0xe7, 0xb0, 0x2a, 0x01, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x5f, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x2f, 0x7b, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x69, + 0x64, 0x7d, 0x12, 0xcd, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x88, 0xe7, 0xb0, 0x2a, 0x01, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, - 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x2f, - 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, - 0x65, 0x72, 0x7d, 0x12, 0xf1, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x4f, 0x6e, 0x65, 0x49, 0x6e, - 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, - 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0x36, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x49, - 0x6e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x37, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, + 0x74, 0x12, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x52, 0x12, 0x50, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x6e, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x65, - 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x72, - 0x65, 0x67, 0x72, 0x65, 0x74, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, - 0x2f, 0x7b, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x7d, 0x2f, 0x7b, 0x69, - 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x7d, 0x12, 0xf8, 0x01, 0x0a, 0x23, 0x47, 0x65, 0x74, 0x4f, - 0x6e, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x53, 0x65, - 0x6c, 0x66, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, - 0x3a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, - 0x74, 0x65, 0x72, 0x53, 0x65, 0x6c, 0x66, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, - 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x4f, 0x6e, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x53, - 0x65, 0x6c, 0x66, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x4d, 0x12, 0x4b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6f, 0x6e, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x65, - 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x6c, 0x66, 0x5f, 0x6e, 0x65, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x5f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, - 0x72, 0x7d, 0x12, 0x9c, 0x01, 0x0a, 0x10, 0x49, 0x73, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, - 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x68, - 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, - 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, - 0x74, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x7d, 0x12, 0xae, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, - 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x29, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, - 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x88, 0xe7, 0xb0, 0x2a, 0x01, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x6c, 0x61, 0x73, 0x74, - 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, - 0x64, 0x7d, 0x12, 0xaf, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, - 0x61, 0x73, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, - 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, - 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x88, 0xe7, 0xb0, - 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x6c, 0x61, - 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xa8, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x2a, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x2f, 0x7b, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x65, + 0x72, 0x7d, 0x12, 0xf1, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x4f, 0x6e, 0x65, 0x49, 0x6e, 0x46, + 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0x36, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x49, 0x6e, + 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, + 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, + 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x52, 0x12, 0x50, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x76, 0x32, 0x2f, 0x6f, 0x6e, 0x65, 0x5f, 0x69, 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x63, + 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x72, 0x65, + 0x67, 0x72, 0x65, 0x74, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, + 0x7b, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x7d, 0x2f, 0x7b, 0x69, 0x6e, + 0x66, 0x65, 0x72, 0x65, 0x72, 0x7d, 0x12, 0x9c, 0x01, 0x0a, 0x10, 0x49, 0x73, 0x57, 0x68, 0x69, + 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x2a, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x49, 0x73, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x57, 0x68, + 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x29, 0x12, 0x27, 0x2f, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x77, 0x68, 0x69, 0x74, + 0x65, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0xae, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x43, + 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, 0x88, + 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, + 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2f, 0x7b, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xaf, 0x01, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x43, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x29, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, + 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x37, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x6f, 0x70, 0x69, + 0x63, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x2f, 0x7b, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xa8, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, + 0x12, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x4e, 0x6f, 0x6e, 0x63, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, - 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x6e, - 0x6f, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, - 0xd4, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4c, 0x6f, - 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x12, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x4c, 0x6f, 0x73, 0x73, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, - 0x72, 0x4c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x49, 0x88, 0xe7, 0xb0, - 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, - 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xc6, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x53, 0x74, - 0x61, 0x6b, 0x65, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, - 0x69, 0x74, 0x79, 0x12, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x70, - 0x75, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, - 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x47, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, - 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x7d, 0x12, - 0xd5, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, - 0x74, 0x61, 0x6b, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x30, 0x2e, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x50, - 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, - 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x53, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, - 0x46, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, - 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x70, 0x6c, - 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, - 0x64, 0x7d, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x7d, 0x2f, 0x7b, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x7d, 0x12, 0xd2, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x44, - 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x55, 0x70, 0x6f, 0x6e, - 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x12, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x55, 0x70, 0x6f, 0x6e, 0x52, 0x65, 0x70, - 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x55, 0x70, 0x6f, - 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x4a, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x6c, - 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x75, 0x70, 0x6f, 0x6e, - 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, - 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x7d, 0x12, 0xcb, 0x01, 0x0a, - 0x19, 0x47, 0x65, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x77, 0x61, - 0x72, 0x64, 0x50, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x30, 0x2e, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, - 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x50, 0x65, 0x72, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x50, - 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x88, 0xe7, 0xb0, 0x2a, 0x01, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x72, 0x65, 0x77, 0x61, + 0x72, 0x64, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, + 0x69, 0x64, 0x7d, 0x12, 0xd4, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, + 0x65, 0x72, 0x4c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x41, 0x74, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x4c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, + 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, + 0x70, 0x75, 0x74, 0x65, 0x72, 0x4c, 0x6f, 0x73, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, + 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x49, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, 0x12, 0x3c, 0x2f, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x6c, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x70, 0x65, 0x72, 0x5f, - 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, - 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xdd, 0x01, 0x0a, 0x23, 0x47, - 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x46, 0x6f, - 0x72, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, 0x63, - 0x49, 0x64, 0x12, 0x3a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x70, 0x75, + 0x74, 0x65, 0x72, 0x5f, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, + 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xc6, 0x01, 0x0a, 0x18, 0x47, + 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x75, + 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x12, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, + 0x65, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, + 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, + 0x6b, 0x65, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, + 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x47, 0x88, 0xe7, 0xb0, 0x2a, + 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, 0x3a, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x70, + 0x75, 0x74, 0x65, 0x72, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x7b, + 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, + 0x65, 0x72, 0x7d, 0x12, 0xd5, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x67, + 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x12, 0x30, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, + 0x61, 0x6b, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, + 0x53, 0x74, 0x61, 0x6b, 0x65, 0x50, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x48, 0x12, 0x46, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, + 0x76, 0x32, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x6b, + 0x65, 0x5f, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, + 0x72, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x7d, 0x12, 0xd2, 0x01, 0x0a, 0x1b, + 0x47, 0x65, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x55, 0x70, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x12, 0x32, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x55, 0x70, 0x6f, + 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, + 0x65, 0x55, 0x70, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x3f, 0x12, 0x3d, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, + 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, + 0x75, 0x70, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x7b, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x7d, + 0x12, 0xcb, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x50, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x65, 0x12, 0x30, + 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, + 0x64, 0x50, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x77, + 0x61, 0x72, 0x64, 0x50, 0x65, 0x72, 0x53, 0x68, 0x61, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x49, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3e, + 0x12, 0x3c, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, + 0x70, 0x65, 0x72, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xdd, + 0x01, 0x0a, 0x23, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x61, 0x6c, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x3a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, + 0x72, 0x41, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x3b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x6e, 0x64, - 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x46, - 0x6f, 0x72, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x41, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0x88, 0xe7, 0xb0, - 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, 0x65, - 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x7d, 0x2f, - 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xdd, 0x01, 0x0a, 0x17, 0x47, - 0x65, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x12, 0x2e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, - 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x67, - 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x61, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x56, 0x12, 0x54, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, - 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x7d, - 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xb4, 0x01, 0x0a, 0x16, 0x47, - 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x57, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, - 0x75, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, - 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x30, 0x12, 0x2e, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, - 0x2f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, - 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, - 0x7d, 0x12, 0x90, 0x01, 0x0a, 0x0b, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x45, 0x78, 0x69, 0x73, 0x74, - 0x73, 0x12, 0x25, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x45, 0x78, 0x69, 0x73, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x32, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x70, - 0x69, 0x63, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x99, 0x01, 0x0a, 0x0d, 0x49, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, - 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x27, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x54, 0x6f, 0x70, - 0x69, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x28, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x88, 0xe7, 0xb0, 0x2a, 0x01, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x73, 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x61, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, - 0x12, 0xa4, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x46, 0x65, 0x65, - 0x52, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x12, 0x29, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x46, 0x65, 0x65, 0x52, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x46, 0x65, 0x65, 0x52, - 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x37, - 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x2f, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x2f, 0x7b, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x98, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x43, - 0x68, 0x75, 0x72, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x12, 0x29, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x43, 0x68, 0x75, 0x72, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x68, - 0x75, 0x72, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2b, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x20, 0x12, 0x1e, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, - 0x31, 0x2f, 0x63, 0x68, 0x75, 0x72, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x73, 0x12, 0x9c, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, - 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x12, 0x2a, 0x2e, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, - 0x64, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, - 0x12, 0x1f, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, - 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x73, 0x12, 0xba, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, - 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x2c, 0x2e, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x53, 0x63, 0x6f, - 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, - 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x12, 0x37, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, - 0x72, 0x65, 0x72, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x7d, 0x12, 0xc9, - 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, - 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x2f, 0x2e, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, - 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, - 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, - 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, - 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, - 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x63, 0x6f, - 0x72, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x66, - 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xba, 0x01, 0x0a, 0x15, 0x47, - 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x3d, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x74, 0x61, 0x6b, + 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, + 0x65, 0x72, 0x7d, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xdd, + 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, + 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x12, 0x2e, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x44, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x61, 0x88, 0xe7, 0xb0, + 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x12, 0x54, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, + 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x2f, 0x7b, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x2f, 0x7b, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x6f, 0x72, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xb4, + 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2d, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, + 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x57, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, + 0x76, 0x69, 0x6f, 0x75, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, + 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x90, 0x01, 0x0a, 0x0b, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x45, + 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x25, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x45, + 0x78, 0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x27, 0x12, 0x25, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, + 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x2f, 0x7b, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x99, 0x01, 0x0a, 0x0d, 0x49, 0x73, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x12, 0x27, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, + 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x73, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x88, + 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x73, 0x5f, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xa4, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x46, 0x65, 0x65, 0x52, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x12, 0x29, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x54, 0x6f, 0x70, 0x69, 0x63, 0x46, 0x65, 0x65, 0x52, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x46, 0x65, 0x65, 0x52, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x37, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, + 0x2a, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x66, 0x65, 0x65, 0x5f, 0x72, 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, + 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x9c, 0x01, 0x0a, 0x13, + 0x47, 0x65, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x70, + 0x69, 0x63, 0x73, 0x12, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, 0x62, + 0x6c, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, + 0x70, 0x69, 0x63, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x88, 0xe7, + 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x21, 0x12, 0x1f, 0x2f, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x12, 0xba, 0x01, 0x0a, 0x15, 0x47, + 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x2c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, - 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, + 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x70, - 0x75, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, + 0x65, 0x72, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x12, 0x37, - 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x61, - 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x63, 0x6f, - 0x72, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x72, - 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xdc, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x49, - 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, - 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, 0x69, - 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, - 0x73, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x51, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x46, - 0x12, 0x44, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, - 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, + 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6c, 0x61, + 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x5f, 0x73, 0x63, 0x6f, + 0x72, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x69, + 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x7d, 0x12, 0xc9, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x4c, + 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x53, + 0x63, 0x6f, 0x72, 0x65, 0x12, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, + 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x76, 0x32, 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x63, + 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, + 0x65, 0x72, 0x7d, 0x12, 0xba, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x12, 0x2c, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, + 0x63, 0x6f, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x53, 0x63, 0x6f, + 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x88, 0xe7, 0xb0, 0x2a, + 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x12, 0x37, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, + 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x7b, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x7d, + 0x12, 0xdc, 0x01, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, + 0x6b, 0x12, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, + 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x49, 0x6e, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x88, 0xe7, + 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x46, 0x12, 0x44, 0x2f, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x5f, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, + 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, + 0xe9, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x6e, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, + 0x6f, 0x63, 0x6b, 0x12, 0x36, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x6e, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, + 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, + 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x4a, 0x12, 0x48, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, + 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xd8, 0x01, 0x0a, 0x1b, + 0x47, 0x65, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, + 0x73, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x32, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, + 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, + 0x65, 0x73, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x45, 0x12, 0x43, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, + 0x2f, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xe9, 0x01, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x57, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, - 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x36, 0x2e, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, - 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, - 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x49, 0x6e, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x88, 0xe7, 0xb0, - 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4a, 0x12, 0x48, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x69, - 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x5f, - 0x61, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, - 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x7d, 0x12, 0xd8, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, - 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x53, - 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x46, 0x6f, 0x72, 0x65, 0x63, - 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x55, 0x6e, 0x74, 0x69, 0x6c, 0x42, 0x6c, - 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0x88, 0xe7, 0xb0, - 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, - 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x5f, 0x75, 0x6e, 0x74, 0x69, 0x6c, 0x5f, 0x62, 0x6c, - 0x6f, 0x63, 0x6b, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, - 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xe5, 0x01, - 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, - 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x12, 0x35, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xe5, 0x01, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x57, 0x6f, + 0x72, 0x6b, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, + 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x35, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, + 0x72, 0x6b, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, + 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x36, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x57, 0x6f, 0x72, 0x6b, - 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, - 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x54, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x12, 0x47, 0x2f, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, - 0x65, 0x72, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x63, 0x6f, 0x72, - 0x65, 0x73, 0x5f, 0x61, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x7b, 0x74, 0x6f, 0x70, - 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xcc, 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, - 0x75, 0x74, 0x65, 0x72, 0x73, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, - 0x63, 0x6b, 0x12, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x53, - 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, - 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x42, 0x12, 0x40, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, - 0x31, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, - 0x73, 0x5f, 0x61, 0x74, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x7d, 0x12, 0xc1, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, - 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, - 0x12, 0x2e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, - 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, - 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x45, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, - 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x69, - 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, - 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, - 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xe7, 0x01, 0x0a, 0x20, 0x47, 0x65, 0x74, - 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x2e, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x12, 0x47, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x66, 0x6f, 0x72, 0x65, + 0x63, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x5f, 0x62, + 0x6c, 0x6f, 0x63, 0x6b, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, + 0x7b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xcc, + 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x53, 0x63, + 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x2f, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, 0x74, + 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x41, + 0x74, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, + 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x12, 0x40, 0x2f, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, + 0x65, 0x72, 0x73, 0x5f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x5f, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x7d, 0x12, 0xc1, 0x01, + 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, + 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4c, 0x69, + 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0x88, 0xe7, 0xb0, 0x2a, + 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x12, 0x38, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x69, 0x6e, 0x67, + 0x5f, 0x63, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x7b, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x7d, 0x12, 0xe7, 0x01, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, + 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, - 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x50, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x65, - 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, - 0x77, 0x61, 0x72, 0x64, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x74, - 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, - 0x72, 0x7d, 0x12, 0xee, 0x01, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, - 0x75, 0x73, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, - 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, - 0x73, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, - 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x51, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x46, 0x12, 0x44, 0x2f, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x65, - 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, - 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, - 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, - 0x65, 0x72, 0x7d, 0x12, 0xea, 0x01, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, - 0x6f, 0x75, 0x73, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, - 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x38, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, - 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x52, 0x65, - 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, - 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, - 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x65, 0x76, 0x69, - 0x6f, 0x75, 0x73, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x77, - 0x61, 0x72, 0x64, 0x5f, 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x7d, - 0x12, 0x80, 0x02, 0x0a, 0x2b, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, - 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, - 0x54, 0x6f, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, - 0x12, 0x42, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x50, 0x65, 0x72, - 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x53, - 0x74, 0x61, 0x6b, 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, - 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, - 0x64, 0x54, 0x6f, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x88, 0xe7, 0xb0, 0x2a, 0x01, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, 0x3b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x70, - 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, - 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, - 0x65, 0x72, 0x73, 0x12, 0xba, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, - 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x12, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, - 0x72, 0x64, 0x54, 0x6f, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, - 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x88, 0xe7, 0xb0, 0x2a, 0x01, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x77, 0x61, - 0x72, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, - 0x12, 0xc1, 0x01, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, - 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x30, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x57, 0x6f, 0x72, 0x6b, - 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, 0x74, 0x57, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, - 0x12, 0x32, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, - 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x65, - 0x72, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xc5, 0x01, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x12, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x61, 0x73, - 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x70, 0x69, 0x63, - 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x88, 0xe7, 0xb0, 0x2a, - 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x12, 0x33, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x6c, 0x61, 0x73, - 0x74, 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, - 0x64, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, 0x42, 0xc0, 0x01, 0x0a, - 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, - 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, - 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x31, - 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x38, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x52, 0x65, 0x70, 0x75, + 0x74, 0x65, 0x72, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0x88, 0xe7, 0xb0, 0x2a, 0x01, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x72, + 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x66, 0x72, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, + 0x7d, 0x2f, 0x7b, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x7d, 0x12, 0xee, 0x01, 0x0a, 0x22, + 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x49, 0x6e, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x39, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x49, + 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x88, 0xe7, 0xb0, 0x2a, 0x01, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x46, 0x12, 0x44, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x69, + 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, + 0x66, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, + 0x69, 0x64, 0x7d, 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x7d, 0x12, 0xea, 0x01, 0x0a, + 0x21, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x46, 0x6f, 0x72, 0x65, + 0x63, 0x61, 0x73, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x38, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x46, + 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, + 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, + 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x76, 0x32, 0x2f, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x66, 0x6f, 0x72, + 0x65, 0x63, 0x61, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x66, 0x72, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x7b, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x7d, + 0x2f, 0x7b, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x7d, 0x12, 0x80, 0x02, 0x0a, 0x2b, 0x47, 0x65, + 0x74, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x12, 0x42, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, + 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x64, 0x52, 0x65, + 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, + 0x72, 0x79, 0x50, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, + 0x74, 0x61, 0x67, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x53, 0x74, 0x61, 0x6b, + 0x65, 0x64, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x48, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x12, + 0x3b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x70, + 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, + 0x67, 0x65, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x61, + 0x6b, 0x65, 0x64, 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x73, 0x12, 0xba, 0x01, 0x0a, + 0x1a, 0x47, 0x65, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, + 0x6f, 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x31, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, 0x44, 0x69, 0x73, + 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, + 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x54, 0x6f, + 0x44, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x35, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, + 0x28, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, + 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x64, + 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0xc3, 0x01, 0x0a, 0x1c, 0x47, 0x65, + 0x74, 0x4e, 0x61, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0x33, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4e, + 0x61, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x34, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, + 0x75, 0x65, 0x72, 0x79, 0x4e, 0x61, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x38, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, + 0x32, 0x2f, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, + 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, + 0xe4, 0x01, 0x0a, 0x24, 0x47, 0x65, 0x74, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, + 0x65, 0x72, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0x3b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, + 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, + 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, + 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x41, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, + 0x12, 0x34, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x6f, 0x6e, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x5f, + 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, + 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0xf0, 0x01, 0x0a, 0x27, 0x47, 0x65, 0x74, 0x4f, 0x6e, + 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, + 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, + 0x65, 0x74, 0x12, 0x3e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, + 0x65, 0x72, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, + 0x65, 0x72, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x44, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, + 0x12, 0x37, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, + 0x6f, 0x6e, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x5f, + 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x5f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0xf0, 0x01, 0x0a, 0x27, 0x47, 0x65, + 0x74, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, + 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, + 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0x3e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, + 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, + 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, + 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, + 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x39, 0x12, 0x37, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, + 0x76, 0x32, 0x2f, 0x6f, 0x6e, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x63, + 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x5f, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0xfc, 0x01, 0x0a, + 0x2a, 0x47, 0x65, 0x74, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, + 0x73, 0x74, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0x41, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, + 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, + 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x42, + 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, + 0x65, 0x72, 0x79, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, + 0x74, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x47, 0x88, 0xe7, 0xb0, 0x2a, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x12, + 0x3a, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6f, + 0x6e, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, + 0x72, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x42, 0xc0, 0x01, 0x0a, 0x10, + 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, + 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, + 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x76, 0x32, 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x32, 0xa2, + 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, + 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_emissions_v1_query_proto_rawDescOnce sync.Once - file_emissions_v1_query_proto_rawDescData = file_emissions_v1_query_proto_rawDesc + file_emissions_v2_query_proto_rawDescOnce sync.Once + file_emissions_v2_query_proto_rawDescData = file_emissions_v2_query_proto_rawDesc ) -func file_emissions_v1_query_proto_rawDescGZIP() []byte { - file_emissions_v1_query_proto_rawDescOnce.Do(func() { - file_emissions_v1_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v1_query_proto_rawDescData) +func file_emissions_v2_query_proto_rawDescGZIP() []byte { + file_emissions_v2_query_proto_rawDescOnce.Do(func() { + file_emissions_v2_query_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_query_proto_rawDescData) }) - return file_emissions_v1_query_proto_rawDescData -} - -var file_emissions_v1_query_proto_msgTypes = make([]protoimpl.MessageInfo, 138) -var file_emissions_v1_query_proto_goTypes = []interface{}{ - (*QueryParamsRequest)(nil), // 0: emissions.v1.QueryParamsRequest - (*QueryParamsResponse)(nil), // 1: emissions.v1.QueryParamsResponse - (*QueryTotalStakeRequest)(nil), // 2: emissions.v1.QueryTotalStakeRequest - (*QueryTotalStakeResponse)(nil), // 3: emissions.v1.QueryTotalStakeResponse - (*QueryReputerStakeInTopicRequest)(nil), // 4: emissions.v1.QueryReputerStakeInTopicRequest - (*QueryReputerStakeInTopicResponse)(nil), // 5: emissions.v1.QueryReputerStakeInTopicResponse - (*QueryMultiReputerStakeInTopicRequest)(nil), // 6: emissions.v1.QueryMultiReputerStakeInTopicRequest - (*QueryMultiReputerStakeInTopicResponse)(nil), // 7: emissions.v1.QueryMultiReputerStakeInTopicResponse - (*QueryStakeFromReputerInTopicInSelfRequest)(nil), // 8: emissions.v1.QueryStakeFromReputerInTopicInSelfRequest - (*QueryStakeFromReputerInTopicInSelfResponse)(nil), // 9: emissions.v1.QueryStakeFromReputerInTopicInSelfResponse - (*QueryDelegateStakeInTopicInReputerRequest)(nil), // 10: emissions.v1.QueryDelegateStakeInTopicInReputerRequest - (*QueryDelegateStakeInTopicInReputerResponse)(nil), // 11: emissions.v1.QueryDelegateStakeInTopicInReputerResponse - (*QueryStakeFromDelegatorInTopicInReputerRequest)(nil), // 12: emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest - (*QueryStakeFromDelegatorInTopicInReputerResponse)(nil), // 13: emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse - (*QueryStakeFromDelegatorInTopicRequest)(nil), // 14: emissions.v1.QueryStakeFromDelegatorInTopicRequest - (*QueryStakeFromDelegatorInTopicResponse)(nil), // 15: emissions.v1.QueryStakeFromDelegatorInTopicResponse - (*QueryTopicStakeRequest)(nil), // 16: emissions.v1.QueryTopicStakeRequest - (*QueryTopicStakeResponse)(nil), // 17: emissions.v1.QueryTopicStakeResponse - (*QueryNetworkLossBundleAtBlockRequest)(nil), // 18: emissions.v1.QueryNetworkLossBundleAtBlockRequest - (*QueryNetworkLossBundleAtBlockResponse)(nil), // 19: emissions.v1.QueryNetworkLossBundleAtBlockResponse - (*QueryNextTopicIdRequest)(nil), // 20: emissions.v1.QueryNextTopicIdRequest - (*QueryNextTopicIdResponse)(nil), // 21: emissions.v1.QueryNextTopicIdResponse - (*QueryTopicRequest)(nil), // 22: emissions.v1.QueryTopicRequest - (*QueryTopicResponse)(nil), // 23: emissions.v1.QueryTopicResponse - (*QueryActiveTopicsRequest)(nil), // 24: emissions.v1.QueryActiveTopicsRequest - (*QueryActiveTopicsResponse)(nil), // 25: emissions.v1.QueryActiveTopicsResponse - (*QueryInferencesAtBlockRequest)(nil), // 26: emissions.v1.QueryInferencesAtBlockRequest - (*QueryInferencesAtBlockResponse)(nil), // 27: emissions.v1.QueryInferencesAtBlockResponse - (*QueryLatestTopicInferencesRequest)(nil), // 28: emissions.v1.QueryLatestTopicInferencesRequest - (*QueryLatestTopicInferencesResponse)(nil), // 29: emissions.v1.QueryLatestTopicInferencesResponse - (*QueryForecastsAtBlockRequest)(nil), // 30: emissions.v1.QueryForecastsAtBlockRequest - (*QueryForecastsAtBlockResponse)(nil), // 31: emissions.v1.QueryForecastsAtBlockResponse - (*QueryWorkerLatestInferenceRequest)(nil), // 32: emissions.v1.QueryWorkerLatestInferenceRequest - (*QueryWorkerLatestInferenceResponse)(nil), // 33: emissions.v1.QueryWorkerLatestInferenceResponse - (*QueryWorkerNodeInfoRequest)(nil), // 34: emissions.v1.QueryWorkerNodeInfoRequest - (*QueryWorkerNodeInfoResponse)(nil), // 35: emissions.v1.QueryWorkerNodeInfoResponse - (*QueryReputerNodeInfoRequest)(nil), // 36: emissions.v1.QueryReputerNodeInfoRequest - (*QueryReputerNodeInfoResponse)(nil), // 37: emissions.v1.QueryReputerNodeInfoResponse - (*QueryWorkerAddressByP2PKeyRequest)(nil), // 38: emissions.v1.QueryWorkerAddressByP2PKeyRequest - (*QueryWorkerAddressByP2PKeyResponse)(nil), // 39: emissions.v1.QueryWorkerAddressByP2PKeyResponse - (*QueryReputerAddressByP2PKeyRequest)(nil), // 40: emissions.v1.QueryReputerAddressByP2PKeyRequest - (*QueryReputerAddressByP2PKeyResponse)(nil), // 41: emissions.v1.QueryReputerAddressByP2PKeyResponse - (*QueryNetworkInferencesAtBlockRequest)(nil), // 42: emissions.v1.QueryNetworkInferencesAtBlockRequest - (*QueryLatestNetworkInferencesRequest)(nil), // 43: emissions.v1.QueryLatestNetworkInferencesRequest - (*QueryIsWorkerNonceUnfulfilledRequest)(nil), // 44: emissions.v1.QueryIsWorkerNonceUnfulfilledRequest - (*QueryIsWorkerNonceUnfulfilledResponse)(nil), // 45: emissions.v1.QueryIsWorkerNonceUnfulfilledResponse - (*QueryUnfulfilledReputerNoncesRequest)(nil), // 46: emissions.v1.QueryUnfulfilledReputerNoncesRequest - (*QueryUnfulfilledReputerNoncesResponse)(nil), // 47: emissions.v1.QueryUnfulfilledReputerNoncesResponse - (*QueryUnfulfilledWorkerNoncesRequest)(nil), // 48: emissions.v1.QueryUnfulfilledWorkerNoncesRequest - (*QueryUnfulfilledWorkerNoncesResponse)(nil), // 49: emissions.v1.QueryUnfulfilledWorkerNoncesResponse - (*QueryInfererNetworkRegretRequest)(nil), // 50: emissions.v1.QueryInfererNetworkRegretRequest - (*QueryInfererNetworkRegretResponse)(nil), // 51: emissions.v1.QueryInfererNetworkRegretResponse - (*QueryForecasterNetworkRegretRequest)(nil), // 52: emissions.v1.QueryForecasterNetworkRegretRequest - (*QueryForecasterNetworkRegretResponse)(nil), // 53: emissions.v1.QueryForecasterNetworkRegretResponse - (*QueryOneInForecasterNetworkRegretRequest)(nil), // 54: emissions.v1.QueryOneInForecasterNetworkRegretRequest - (*QueryOneInForecasterNetworkRegretResponse)(nil), // 55: emissions.v1.QueryOneInForecasterNetworkRegretResponse - (*QueryOneInForecasterSelfNetworkRegretRequest)(nil), // 56: emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest - (*QueryOneInForecasterSelfNetworkRegretResponse)(nil), // 57: emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse - (*QueryIsReputerNonceUnfulfilledRequest)(nil), // 58: emissions.v1.QueryIsReputerNonceUnfulfilledRequest - (*QueryIsReputerNonceUnfulfilledResponse)(nil), // 59: emissions.v1.QueryIsReputerNonceUnfulfilledResponse - (*QueryNetworkInferencesAtBlockResponse)(nil), // 60: emissions.v1.QueryNetworkInferencesAtBlockResponse - (*QueryLatestNetworkInferencesResponse)(nil), // 61: emissions.v1.QueryLatestNetworkInferencesResponse - (*QueryIsWorkerRegisteredInTopicIdRequest)(nil), // 62: emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest - (*QueryIsWorkerRegisteredInTopicIdResponse)(nil), // 63: emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse - (*QueryIsReputerRegisteredInTopicIdRequest)(nil), // 64: emissions.v1.QueryIsReputerRegisteredInTopicIdRequest - (*QueryIsReputerRegisteredInTopicIdResponse)(nil), // 65: emissions.v1.QueryIsReputerRegisteredInTopicIdResponse - (*QueryIsWhitelistAdminRequest)(nil), // 66: emissions.v1.QueryIsWhitelistAdminRequest - (*QueryIsWhitelistAdminResponse)(nil), // 67: emissions.v1.QueryIsWhitelistAdminResponse - (*QueryStakeRemovalsForBlockRequest)(nil), // 68: emissions.v1.QueryStakeRemovalsForBlockRequest - (*QueryStakeRemovalsForBlockResponse)(nil), // 69: emissions.v1.QueryStakeRemovalsForBlockResponse - (*QueryDelegateStakeRemovalsForBlockRequest)(nil), // 70: emissions.v1.QueryDelegateStakeRemovalsForBlockRequest - (*QueryDelegateStakeRemovalsForBlockResponse)(nil), // 71: emissions.v1.QueryDelegateStakeRemovalsForBlockResponse - (*QueryStakeRemovalInfoRequest)(nil), // 72: emissions.v1.QueryStakeRemovalInfoRequest - (*QueryStakeRemovalInfoResponse)(nil), // 73: emissions.v1.QueryStakeRemovalInfoResponse - (*QueryDelegateStakeRemovalInfoRequest)(nil), // 74: emissions.v1.QueryDelegateStakeRemovalInfoRequest - (*QueryDelegateStakeRemovalInfoResponse)(nil), // 75: emissions.v1.QueryDelegateStakeRemovalInfoResponse - (*QueryTopicLastCommitRequest)(nil), // 76: emissions.v1.QueryTopicLastCommitRequest - (*QueryTopicLastCommitResponse)(nil), // 77: emissions.v1.QueryTopicLastCommitResponse - (*QueryTopicRewardNonceRequest)(nil), // 78: emissions.v1.QueryTopicRewardNonceRequest - (*QueryTopicRewardNonceResponse)(nil), // 79: emissions.v1.QueryTopicRewardNonceResponse - (*QueryReputerLossBundlesAtBlockRequest)(nil), // 80: emissions.v1.QueryReputerLossBundlesAtBlockRequest - (*QueryReputerLossBundlesAtBlockResponse)(nil), // 81: emissions.v1.QueryReputerLossBundlesAtBlockResponse - (*QueryStakeReputerAuthorityRequest)(nil), // 82: emissions.v1.QueryStakeReputerAuthorityRequest - (*QueryStakeReputerAuthorityResponse)(nil), // 83: emissions.v1.QueryStakeReputerAuthorityResponse - (*QueryDelegateStakePlacementRequest)(nil), // 84: emissions.v1.QueryDelegateStakePlacementRequest - (*QueryDelegateStakePlacementResponse)(nil), // 85: emissions.v1.QueryDelegateStakePlacementResponse - (*QueryDelegateStakeUponReputerRequest)(nil), // 86: emissions.v1.QueryDelegateStakeUponReputerRequest - (*QueryDelegateStakeUponReputerResponse)(nil), // 87: emissions.v1.QueryDelegateStakeUponReputerResponse - (*QueryDelegateRewardPerShareRequest)(nil), // 88: emissions.v1.QueryDelegateRewardPerShareRequest - (*QueryDelegateRewardPerShareResponse)(nil), // 89: emissions.v1.QueryDelegateRewardPerShareResponse - (*QueryStakeRemovalForReputerAndTopicIdRequest)(nil), // 90: emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest - (*QueryStakeRemovalForReputerAndTopicIdResponse)(nil), // 91: emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse - (*QueryDelegateStakeRemovalRequest)(nil), // 92: emissions.v1.QueryDelegateStakeRemovalRequest - (*QueryDelegateStakeRemovalResponse)(nil), // 93: emissions.v1.QueryDelegateStakeRemovalResponse - (*QueryPreviousTopicWeightRequest)(nil), // 94: emissions.v1.QueryPreviousTopicWeightRequest - (*QueryPreviousTopicWeightResponse)(nil), // 95: emissions.v1.QueryPreviousTopicWeightResponse - (*QueryTopicExistsRequest)(nil), // 96: emissions.v1.QueryTopicExistsRequest - (*QueryTopicExistsResponse)(nil), // 97: emissions.v1.QueryTopicExistsResponse - (*QueryIsTopicActiveRequest)(nil), // 98: emissions.v1.QueryIsTopicActiveRequest - (*QueryIsTopicActiveResponse)(nil), // 99: emissions.v1.QueryIsTopicActiveResponse - (*QueryTopicFeeRevenueRequest)(nil), // 100: emissions.v1.QueryTopicFeeRevenueRequest - (*QueryTopicFeeRevenueResponse)(nil), // 101: emissions.v1.QueryTopicFeeRevenueResponse - (*QueryChurnableTopicsRequest)(nil), // 102: emissions.v1.QueryChurnableTopicsRequest - (*QueryChurnableTopicsResponse)(nil), // 103: emissions.v1.QueryChurnableTopicsResponse - (*QueryRewardableTopicsRequest)(nil), // 104: emissions.v1.QueryRewardableTopicsRequest - (*QueryRewardableTopicsResponse)(nil), // 105: emissions.v1.QueryRewardableTopicsResponse - (*QueryLatestInfererScoreRequest)(nil), // 106: emissions.v1.QueryLatestInfererScoreRequest - (*QueryLatestInfererScoreResponse)(nil), // 107: emissions.v1.QueryLatestInfererScoreResponse - (*QueryLatestForecasterScoreRequest)(nil), // 108: emissions.v1.QueryLatestForecasterScoreRequest - (*QueryLatestForecasterScoreResponse)(nil), // 109: emissions.v1.QueryLatestForecasterScoreResponse - (*QueryLatestReputerScoreRequest)(nil), // 110: emissions.v1.QueryLatestReputerScoreRequest - (*QueryLatestReputerScoreResponse)(nil), // 111: emissions.v1.QueryLatestReputerScoreResponse - (*QueryInferenceScoresUntilBlockRequest)(nil), // 112: emissions.v1.QueryInferenceScoresUntilBlockRequest - (*QueryInferenceScoresUntilBlockResponse)(nil), // 113: emissions.v1.QueryInferenceScoresUntilBlockResponse - (*QueryWorkerInferenceScoresAtBlockRequest)(nil), // 114: emissions.v1.QueryWorkerInferenceScoresAtBlockRequest - (*QueryWorkerInferenceScoresAtBlockResponse)(nil), // 115: emissions.v1.QueryWorkerInferenceScoresAtBlockResponse - (*QueryForecastScoresUntilBlockRequest)(nil), // 116: emissions.v1.QueryForecastScoresUntilBlockRequest - (*QueryForecastScoresUntilBlockResponse)(nil), // 117: emissions.v1.QueryForecastScoresUntilBlockResponse - (*QueryWorkerForecastScoresAtBlockRequest)(nil), // 118: emissions.v1.QueryWorkerForecastScoresAtBlockRequest - (*QueryWorkerForecastScoresAtBlockResponse)(nil), // 119: emissions.v1.QueryWorkerForecastScoresAtBlockResponse - (*QueryReputersScoresAtBlockRequest)(nil), // 120: emissions.v1.QueryReputersScoresAtBlockRequest - (*QueryReputersScoresAtBlockResponse)(nil), // 121: emissions.v1.QueryReputersScoresAtBlockResponse - (*QueryListeningCoefficientRequest)(nil), // 122: emissions.v1.QueryListeningCoefficientRequest - (*QueryListeningCoefficientResponse)(nil), // 123: emissions.v1.QueryListeningCoefficientResponse - (*QueryPreviousReputerRewardFractionRequest)(nil), // 124: emissions.v1.QueryPreviousReputerRewardFractionRequest - (*QueryPreviousReputerRewardFractionResponse)(nil), // 125: emissions.v1.QueryPreviousReputerRewardFractionResponse - (*QueryPreviousInferenceRewardFractionRequest)(nil), // 126: emissions.v1.QueryPreviousInferenceRewardFractionRequest - (*QueryPreviousInferenceRewardFractionResponse)(nil), // 127: emissions.v1.QueryPreviousInferenceRewardFractionResponse - (*QueryPreviousForecastRewardFractionRequest)(nil), // 128: emissions.v1.QueryPreviousForecastRewardFractionRequest - (*QueryPreviousForecastRewardFractionResponse)(nil), // 129: emissions.v1.QueryPreviousForecastRewardFractionResponse - (*QueryPreviousPercentageRewardToStakedReputersRequest)(nil), // 130: emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest - (*QueryPreviousPercentageRewardToStakedReputersResponse)(nil), // 131: emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse - (*QueryTotalRewardToDistributeRequest)(nil), // 132: emissions.v1.QueryTotalRewardToDistributeRequest - (*QueryTotalRewardToDistributeResponse)(nil), // 133: emissions.v1.QueryTotalRewardToDistributeResponse - (*QueryTopicLastWorkerPayloadRequest)(nil), // 134: emissions.v1.QueryTopicLastWorkerPayloadRequest - (*QueryTopicLastWorkerPayloadResponse)(nil), // 135: emissions.v1.QueryTopicLastWorkerPayloadResponse - (*QueryTopicLastReputerPayloadRequest)(nil), // 136: emissions.v1.QueryTopicLastReputerPayloadRequest - (*QueryTopicLastReputerPayloadResponse)(nil), // 137: emissions.v1.QueryTopicLastReputerPayloadResponse - (*Params)(nil), // 138: emissions.v1.Params - (*StakeInfo)(nil), // 139: emissions.v1.StakeInfo - (*ValueBundle)(nil), // 140: emissions.v1.ValueBundle - (*Topic)(nil), // 141: emissions.v1.Topic - (*SimpleCursorPaginationRequest)(nil), // 142: emissions.v1.SimpleCursorPaginationRequest - (*SimpleCursorPaginationResponse)(nil), // 143: emissions.v1.SimpleCursorPaginationResponse - (*Inferences)(nil), // 144: emissions.v1.Inferences - (*Forecasts)(nil), // 145: emissions.v1.Forecasts - (*Inference)(nil), // 146: emissions.v1.Inference - (*OffchainNode)(nil), // 147: emissions.v1.OffchainNode - (*ReputerRequestNonces)(nil), // 148: emissions.v1.ReputerRequestNonces - (*Nonces)(nil), // 149: emissions.v1.Nonces - (*TimestampedValue)(nil), // 150: emissions.v1.TimestampedValue - (*RegretInformedWeight)(nil), // 151: emissions.v1.RegretInformedWeight - (*WorkerAttributedValue)(nil), // 152: emissions.v1.WorkerAttributedValue - (*StakeRemovalInfo)(nil), // 153: emissions.v1.StakeRemovalInfo - (*DelegateStakeRemovalInfo)(nil), // 154: emissions.v1.DelegateStakeRemovalInfo - (*TimestampedActorNonce)(nil), // 155: emissions.v1.TimestampedActorNonce - (*ReputerValueBundles)(nil), // 156: emissions.v1.ReputerValueBundles - (*DelegatorInfo)(nil), // 157: emissions.v1.DelegatorInfo - (*Score)(nil), // 158: emissions.v1.Score - (*Scores)(nil), // 159: emissions.v1.Scores - (*ListeningCoefficient)(nil), // 160: emissions.v1.ListeningCoefficient -} -var file_emissions_v1_query_proto_depIdxs = []int32{ - 138, // 0: emissions.v1.QueryParamsResponse.params:type_name -> emissions.v1.Params - 139, // 1: emissions.v1.QueryMultiReputerStakeInTopicResponse.amounts:type_name -> emissions.v1.StakeInfo - 140, // 2: emissions.v1.QueryNetworkLossBundleAtBlockResponse.loss_bundle:type_name -> emissions.v1.ValueBundle - 141, // 3: emissions.v1.QueryTopicResponse.topic:type_name -> emissions.v1.Topic - 142, // 4: emissions.v1.QueryActiveTopicsRequest.pagination:type_name -> emissions.v1.SimpleCursorPaginationRequest - 141, // 5: emissions.v1.QueryActiveTopicsResponse.topics:type_name -> emissions.v1.Topic - 143, // 6: emissions.v1.QueryActiveTopicsResponse.pagination:type_name -> emissions.v1.SimpleCursorPaginationResponse - 144, // 7: emissions.v1.QueryInferencesAtBlockResponse.inferences:type_name -> emissions.v1.Inferences - 144, // 8: emissions.v1.QueryLatestTopicInferencesResponse.inferences:type_name -> emissions.v1.Inferences - 145, // 9: emissions.v1.QueryForecastsAtBlockResponse.forecasts:type_name -> emissions.v1.Forecasts - 146, // 10: emissions.v1.QueryWorkerLatestInferenceResponse.latest_inference:type_name -> emissions.v1.Inference - 147, // 11: emissions.v1.QueryWorkerNodeInfoResponse.node_info:type_name -> emissions.v1.OffchainNode - 147, // 12: emissions.v1.QueryReputerNodeInfoResponse.node_info:type_name -> emissions.v1.OffchainNode - 148, // 13: emissions.v1.QueryUnfulfilledReputerNoncesResponse.nonces:type_name -> emissions.v1.ReputerRequestNonces - 149, // 14: emissions.v1.QueryUnfulfilledWorkerNoncesResponse.nonces:type_name -> emissions.v1.Nonces - 150, // 15: emissions.v1.QueryInfererNetworkRegretResponse.regret:type_name -> emissions.v1.TimestampedValue - 150, // 16: emissions.v1.QueryForecasterNetworkRegretResponse.regret:type_name -> emissions.v1.TimestampedValue - 150, // 17: emissions.v1.QueryOneInForecasterNetworkRegretResponse.regret:type_name -> emissions.v1.TimestampedValue - 150, // 18: emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse.regret:type_name -> emissions.v1.TimestampedValue - 140, // 19: emissions.v1.QueryNetworkInferencesAtBlockResponse.network_inferences:type_name -> emissions.v1.ValueBundle - 140, // 20: emissions.v1.QueryLatestNetworkInferencesResponse.network_inferences:type_name -> emissions.v1.ValueBundle - 151, // 21: emissions.v1.QueryLatestNetworkInferencesResponse.inferer_weights:type_name -> emissions.v1.RegretInformedWeight - 151, // 22: emissions.v1.QueryLatestNetworkInferencesResponse.forecaster_weights:type_name -> emissions.v1.RegretInformedWeight - 152, // 23: emissions.v1.QueryLatestNetworkInferencesResponse.forecastImpliedInferences:type_name -> emissions.v1.WorkerAttributedValue - 153, // 24: emissions.v1.QueryStakeRemovalsForBlockResponse.removals:type_name -> emissions.v1.StakeRemovalInfo - 154, // 25: emissions.v1.QueryDelegateStakeRemovalsForBlockResponse.removals:type_name -> emissions.v1.DelegateStakeRemovalInfo - 153, // 26: emissions.v1.QueryStakeRemovalInfoResponse.removal:type_name -> emissions.v1.StakeRemovalInfo - 154, // 27: emissions.v1.QueryDelegateStakeRemovalInfoResponse.removal:type_name -> emissions.v1.DelegateStakeRemovalInfo - 155, // 28: emissions.v1.QueryTopicLastCommitResponse.last_commit:type_name -> emissions.v1.TimestampedActorNonce - 156, // 29: emissions.v1.QueryReputerLossBundlesAtBlockResponse.loss_bundles:type_name -> emissions.v1.ReputerValueBundles - 157, // 30: emissions.v1.QueryDelegateStakePlacementResponse.delegator_info:type_name -> emissions.v1.DelegatorInfo - 153, // 31: emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info:type_name -> emissions.v1.StakeRemovalInfo - 154, // 32: emissions.v1.QueryDelegateStakeRemovalResponse.stake_removal_info:type_name -> emissions.v1.DelegateStakeRemovalInfo - 158, // 33: emissions.v1.QueryLatestInfererScoreResponse.score:type_name -> emissions.v1.Score - 158, // 34: emissions.v1.QueryLatestForecasterScoreResponse.score:type_name -> emissions.v1.Score - 158, // 35: emissions.v1.QueryLatestReputerScoreResponse.score:type_name -> emissions.v1.Score - 158, // 36: emissions.v1.QueryInferenceScoresUntilBlockResponse.scores:type_name -> emissions.v1.Score - 159, // 37: emissions.v1.QueryWorkerInferenceScoresAtBlockResponse.scores:type_name -> emissions.v1.Scores - 158, // 38: emissions.v1.QueryForecastScoresUntilBlockResponse.scores:type_name -> emissions.v1.Score - 159, // 39: emissions.v1.QueryWorkerForecastScoresAtBlockResponse.scores:type_name -> emissions.v1.Scores - 159, // 40: emissions.v1.QueryReputersScoresAtBlockResponse.scores:type_name -> emissions.v1.Scores - 160, // 41: emissions.v1.QueryListeningCoefficientResponse.listening_coefficient:type_name -> emissions.v1.ListeningCoefficient - 155, // 42: emissions.v1.QueryTopicLastWorkerPayloadResponse.payload:type_name -> emissions.v1.TimestampedActorNonce - 155, // 43: emissions.v1.QueryTopicLastReputerPayloadResponse.payload:type_name -> emissions.v1.TimestampedActorNonce - 0, // 44: emissions.v1.Query.Params:input_type -> emissions.v1.QueryParamsRequest - 20, // 45: emissions.v1.Query.GetNextTopicId:input_type -> emissions.v1.QueryNextTopicIdRequest - 22, // 46: emissions.v1.Query.GetTopic:input_type -> emissions.v1.QueryTopicRequest - 24, // 47: emissions.v1.Query.GetActiveTopics:input_type -> emissions.v1.QueryActiveTopicsRequest - 32, // 48: emissions.v1.Query.GetWorkerLatestInferenceByTopicId:input_type -> emissions.v1.QueryWorkerLatestInferenceRequest - 26, // 49: emissions.v1.Query.GetInferencesAtBlock:input_type -> emissions.v1.QueryInferencesAtBlockRequest - 28, // 50: emissions.v1.Query.GetLatestTopicInferences:input_type -> emissions.v1.QueryLatestTopicInferencesRequest - 30, // 51: emissions.v1.Query.GetForecastsAtBlock:input_type -> emissions.v1.QueryForecastsAtBlockRequest - 18, // 52: emissions.v1.Query.GetNetworkLossBundleAtBlock:input_type -> emissions.v1.QueryNetworkLossBundleAtBlockRequest - 2, // 53: emissions.v1.Query.GetTotalStake:input_type -> emissions.v1.QueryTotalStakeRequest - 4, // 54: emissions.v1.Query.GetReputerStakeInTopic:input_type -> emissions.v1.QueryReputerStakeInTopicRequest - 6, // 55: emissions.v1.Query.GetMultiReputerStakeInTopic:input_type -> emissions.v1.QueryMultiReputerStakeInTopicRequest - 8, // 56: emissions.v1.Query.GetStakeFromReputerInTopicInSelf:input_type -> emissions.v1.QueryStakeFromReputerInTopicInSelfRequest - 10, // 57: emissions.v1.Query.GetDelegateStakeInTopicInReputer:input_type -> emissions.v1.QueryDelegateStakeInTopicInReputerRequest - 12, // 58: emissions.v1.Query.GetStakeFromDelegatorInTopicInReputer:input_type -> emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest - 14, // 59: emissions.v1.Query.GetStakeFromDelegatorInTopic:input_type -> emissions.v1.QueryStakeFromDelegatorInTopicRequest - 16, // 60: emissions.v1.Query.GetTopicStake:input_type -> emissions.v1.QueryTopicStakeRequest - 68, // 61: emissions.v1.Query.GetStakeRemovalsForBlock:input_type -> emissions.v1.QueryStakeRemovalsForBlockRequest - 70, // 62: emissions.v1.Query.GetDelegateStakeRemovalsForBlock:input_type -> emissions.v1.QueryDelegateStakeRemovalsForBlockRequest - 72, // 63: emissions.v1.Query.GetStakeRemovalInfo:input_type -> emissions.v1.QueryStakeRemovalInfoRequest - 74, // 64: emissions.v1.Query.GetDelegateStakeRemovalInfo:input_type -> emissions.v1.QueryDelegateStakeRemovalInfoRequest - 34, // 65: emissions.v1.Query.GetWorkerNodeInfo:input_type -> emissions.v1.QueryWorkerNodeInfoRequest - 36, // 66: emissions.v1.Query.GetReputerNodeInfo:input_type -> emissions.v1.QueryReputerNodeInfoRequest - 38, // 67: emissions.v1.Query.GetWorkerAddressByP2PKey:input_type -> emissions.v1.QueryWorkerAddressByP2PKeyRequest - 40, // 68: emissions.v1.Query.GetReputerAddressByP2PKey:input_type -> emissions.v1.QueryReputerAddressByP2PKeyRequest - 62, // 69: emissions.v1.Query.IsWorkerRegisteredInTopicId:input_type -> emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest - 64, // 70: emissions.v1.Query.IsReputerRegisteredInTopicId:input_type -> emissions.v1.QueryIsReputerRegisteredInTopicIdRequest - 42, // 71: emissions.v1.Query.GetNetworkInferencesAtBlock:input_type -> emissions.v1.QueryNetworkInferencesAtBlockRequest - 43, // 72: emissions.v1.Query.GetLatestNetworkInference:input_type -> emissions.v1.QueryLatestNetworkInferencesRequest - 43, // 73: emissions.v1.Query.GetLatestAvailableNetworkInference:input_type -> emissions.v1.QueryLatestNetworkInferencesRequest - 44, // 74: emissions.v1.Query.IsWorkerNonceUnfulfilled:input_type -> emissions.v1.QueryIsWorkerNonceUnfulfilledRequest - 58, // 75: emissions.v1.Query.IsReputerNonceUnfulfilled:input_type -> emissions.v1.QueryIsReputerNonceUnfulfilledRequest - 48, // 76: emissions.v1.Query.GetUnfulfilledWorkerNonces:input_type -> emissions.v1.QueryUnfulfilledWorkerNoncesRequest - 46, // 77: emissions.v1.Query.GetUnfulfilledReputerNonces:input_type -> emissions.v1.QueryUnfulfilledReputerNoncesRequest - 50, // 78: emissions.v1.Query.GetInfererNetworkRegret:input_type -> emissions.v1.QueryInfererNetworkRegretRequest - 52, // 79: emissions.v1.Query.GetForecasterNetworkRegret:input_type -> emissions.v1.QueryForecasterNetworkRegretRequest - 54, // 80: emissions.v1.Query.GetOneInForecasterNetworkRegret:input_type -> emissions.v1.QueryOneInForecasterNetworkRegretRequest - 56, // 81: emissions.v1.Query.GetOneInForecasterSelfNetworkRegret:input_type -> emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest - 66, // 82: emissions.v1.Query.IsWhitelistAdmin:input_type -> emissions.v1.QueryIsWhitelistAdminRequest - 76, // 83: emissions.v1.Query.GetTopicLastWorkerCommitInfo:input_type -> emissions.v1.QueryTopicLastCommitRequest - 76, // 84: emissions.v1.Query.GetTopicLastReputerCommitInfo:input_type -> emissions.v1.QueryTopicLastCommitRequest - 78, // 85: emissions.v1.Query.GetTopicRewardNonce:input_type -> emissions.v1.QueryTopicRewardNonceRequest - 80, // 86: emissions.v1.Query.GetReputerLossBundlesAtBlock:input_type -> emissions.v1.QueryReputerLossBundlesAtBlockRequest - 82, // 87: emissions.v1.Query.GetStakeReputerAuthority:input_type -> emissions.v1.QueryStakeReputerAuthorityRequest - 84, // 88: emissions.v1.Query.GetDelegateStakePlacement:input_type -> emissions.v1.QueryDelegateStakePlacementRequest - 86, // 89: emissions.v1.Query.GetDelegateStakeUponReputer:input_type -> emissions.v1.QueryDelegateStakeUponReputerRequest - 88, // 90: emissions.v1.Query.GetDelegateRewardPerShare:input_type -> emissions.v1.QueryDelegateRewardPerShareRequest - 90, // 91: emissions.v1.Query.GetStakeRemovalForReputerAndTopicId:input_type -> emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest - 92, // 92: emissions.v1.Query.GetDelegateStakeRemoval:input_type -> emissions.v1.QueryDelegateStakeRemovalRequest - 94, // 93: emissions.v1.Query.GetPreviousTopicWeight:input_type -> emissions.v1.QueryPreviousTopicWeightRequest - 96, // 94: emissions.v1.Query.TopicExists:input_type -> emissions.v1.QueryTopicExistsRequest - 98, // 95: emissions.v1.Query.IsTopicActive:input_type -> emissions.v1.QueryIsTopicActiveRequest - 100, // 96: emissions.v1.Query.GetTopicFeeRevenue:input_type -> emissions.v1.QueryTopicFeeRevenueRequest - 102, // 97: emissions.v1.Query.GetChurnableTopics:input_type -> emissions.v1.QueryChurnableTopicsRequest - 104, // 98: emissions.v1.Query.GetRewardableTopics:input_type -> emissions.v1.QueryRewardableTopicsRequest - 106, // 99: emissions.v1.Query.GetLatestInfererScore:input_type -> emissions.v1.QueryLatestInfererScoreRequest - 108, // 100: emissions.v1.Query.GetLatestForecasterScore:input_type -> emissions.v1.QueryLatestForecasterScoreRequest - 110, // 101: emissions.v1.Query.GetLatestReputerScore:input_type -> emissions.v1.QueryLatestReputerScoreRequest - 112, // 102: emissions.v1.Query.GetInferenceScoresUntilBlock:input_type -> emissions.v1.QueryInferenceScoresUntilBlockRequest - 114, // 103: emissions.v1.Query.GetWorkerInferenceScoresAtBlock:input_type -> emissions.v1.QueryWorkerInferenceScoresAtBlockRequest - 116, // 104: emissions.v1.Query.GetForecastScoresUntilBlock:input_type -> emissions.v1.QueryForecastScoresUntilBlockRequest - 118, // 105: emissions.v1.Query.GetWorkerForecastScoresAtBlock:input_type -> emissions.v1.QueryWorkerForecastScoresAtBlockRequest - 120, // 106: emissions.v1.Query.GetReputersScoresAtBlock:input_type -> emissions.v1.QueryReputersScoresAtBlockRequest - 122, // 107: emissions.v1.Query.GetListeningCoefficient:input_type -> emissions.v1.QueryListeningCoefficientRequest - 124, // 108: emissions.v1.Query.GetPreviousReputerRewardFraction:input_type -> emissions.v1.QueryPreviousReputerRewardFractionRequest - 126, // 109: emissions.v1.Query.GetPreviousInferenceRewardFraction:input_type -> emissions.v1.QueryPreviousInferenceRewardFractionRequest - 128, // 110: emissions.v1.Query.GetPreviousForecastRewardFraction:input_type -> emissions.v1.QueryPreviousForecastRewardFractionRequest - 130, // 111: emissions.v1.Query.GetPreviousPercentageRewardToStakedReputers:input_type -> emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest - 132, // 112: emissions.v1.Query.GetTotalRewardToDistribute:input_type -> emissions.v1.QueryTotalRewardToDistributeRequest - 134, // 113: emissions.v1.Query.GetTopicLastWorkerPayload:input_type -> emissions.v1.QueryTopicLastWorkerPayloadRequest - 136, // 114: emissions.v1.Query.GetTopicLastReputerPayload:input_type -> emissions.v1.QueryTopicLastReputerPayloadRequest - 1, // 115: emissions.v1.Query.Params:output_type -> emissions.v1.QueryParamsResponse - 21, // 116: emissions.v1.Query.GetNextTopicId:output_type -> emissions.v1.QueryNextTopicIdResponse - 23, // 117: emissions.v1.Query.GetTopic:output_type -> emissions.v1.QueryTopicResponse - 25, // 118: emissions.v1.Query.GetActiveTopics:output_type -> emissions.v1.QueryActiveTopicsResponse - 33, // 119: emissions.v1.Query.GetWorkerLatestInferenceByTopicId:output_type -> emissions.v1.QueryWorkerLatestInferenceResponse - 27, // 120: emissions.v1.Query.GetInferencesAtBlock:output_type -> emissions.v1.QueryInferencesAtBlockResponse - 29, // 121: emissions.v1.Query.GetLatestTopicInferences:output_type -> emissions.v1.QueryLatestTopicInferencesResponse - 31, // 122: emissions.v1.Query.GetForecastsAtBlock:output_type -> emissions.v1.QueryForecastsAtBlockResponse - 19, // 123: emissions.v1.Query.GetNetworkLossBundleAtBlock:output_type -> emissions.v1.QueryNetworkLossBundleAtBlockResponse - 3, // 124: emissions.v1.Query.GetTotalStake:output_type -> emissions.v1.QueryTotalStakeResponse - 5, // 125: emissions.v1.Query.GetReputerStakeInTopic:output_type -> emissions.v1.QueryReputerStakeInTopicResponse - 7, // 126: emissions.v1.Query.GetMultiReputerStakeInTopic:output_type -> emissions.v1.QueryMultiReputerStakeInTopicResponse - 9, // 127: emissions.v1.Query.GetStakeFromReputerInTopicInSelf:output_type -> emissions.v1.QueryStakeFromReputerInTopicInSelfResponse - 11, // 128: emissions.v1.Query.GetDelegateStakeInTopicInReputer:output_type -> emissions.v1.QueryDelegateStakeInTopicInReputerResponse - 13, // 129: emissions.v1.Query.GetStakeFromDelegatorInTopicInReputer:output_type -> emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse - 15, // 130: emissions.v1.Query.GetStakeFromDelegatorInTopic:output_type -> emissions.v1.QueryStakeFromDelegatorInTopicResponse - 17, // 131: emissions.v1.Query.GetTopicStake:output_type -> emissions.v1.QueryTopicStakeResponse - 69, // 132: emissions.v1.Query.GetStakeRemovalsForBlock:output_type -> emissions.v1.QueryStakeRemovalsForBlockResponse - 71, // 133: emissions.v1.Query.GetDelegateStakeRemovalsForBlock:output_type -> emissions.v1.QueryDelegateStakeRemovalsForBlockResponse - 73, // 134: emissions.v1.Query.GetStakeRemovalInfo:output_type -> emissions.v1.QueryStakeRemovalInfoResponse - 75, // 135: emissions.v1.Query.GetDelegateStakeRemovalInfo:output_type -> emissions.v1.QueryDelegateStakeRemovalInfoResponse - 35, // 136: emissions.v1.Query.GetWorkerNodeInfo:output_type -> emissions.v1.QueryWorkerNodeInfoResponse - 37, // 137: emissions.v1.Query.GetReputerNodeInfo:output_type -> emissions.v1.QueryReputerNodeInfoResponse - 39, // 138: emissions.v1.Query.GetWorkerAddressByP2PKey:output_type -> emissions.v1.QueryWorkerAddressByP2PKeyResponse - 41, // 139: emissions.v1.Query.GetReputerAddressByP2PKey:output_type -> emissions.v1.QueryReputerAddressByP2PKeyResponse - 63, // 140: emissions.v1.Query.IsWorkerRegisteredInTopicId:output_type -> emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse - 65, // 141: emissions.v1.Query.IsReputerRegisteredInTopicId:output_type -> emissions.v1.QueryIsReputerRegisteredInTopicIdResponse - 60, // 142: emissions.v1.Query.GetNetworkInferencesAtBlock:output_type -> emissions.v1.QueryNetworkInferencesAtBlockResponse - 61, // 143: emissions.v1.Query.GetLatestNetworkInference:output_type -> emissions.v1.QueryLatestNetworkInferencesResponse - 61, // 144: emissions.v1.Query.GetLatestAvailableNetworkInference:output_type -> emissions.v1.QueryLatestNetworkInferencesResponse - 45, // 145: emissions.v1.Query.IsWorkerNonceUnfulfilled:output_type -> emissions.v1.QueryIsWorkerNonceUnfulfilledResponse - 59, // 146: emissions.v1.Query.IsReputerNonceUnfulfilled:output_type -> emissions.v1.QueryIsReputerNonceUnfulfilledResponse - 49, // 147: emissions.v1.Query.GetUnfulfilledWorkerNonces:output_type -> emissions.v1.QueryUnfulfilledWorkerNoncesResponse - 47, // 148: emissions.v1.Query.GetUnfulfilledReputerNonces:output_type -> emissions.v1.QueryUnfulfilledReputerNoncesResponse - 51, // 149: emissions.v1.Query.GetInfererNetworkRegret:output_type -> emissions.v1.QueryInfererNetworkRegretResponse - 53, // 150: emissions.v1.Query.GetForecasterNetworkRegret:output_type -> emissions.v1.QueryForecasterNetworkRegretResponse - 55, // 151: emissions.v1.Query.GetOneInForecasterNetworkRegret:output_type -> emissions.v1.QueryOneInForecasterNetworkRegretResponse - 57, // 152: emissions.v1.Query.GetOneInForecasterSelfNetworkRegret:output_type -> emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse - 67, // 153: emissions.v1.Query.IsWhitelistAdmin:output_type -> emissions.v1.QueryIsWhitelistAdminResponse - 77, // 154: emissions.v1.Query.GetTopicLastWorkerCommitInfo:output_type -> emissions.v1.QueryTopicLastCommitResponse - 77, // 155: emissions.v1.Query.GetTopicLastReputerCommitInfo:output_type -> emissions.v1.QueryTopicLastCommitResponse - 79, // 156: emissions.v1.Query.GetTopicRewardNonce:output_type -> emissions.v1.QueryTopicRewardNonceResponse - 81, // 157: emissions.v1.Query.GetReputerLossBundlesAtBlock:output_type -> emissions.v1.QueryReputerLossBundlesAtBlockResponse - 83, // 158: emissions.v1.Query.GetStakeReputerAuthority:output_type -> emissions.v1.QueryStakeReputerAuthorityResponse - 85, // 159: emissions.v1.Query.GetDelegateStakePlacement:output_type -> emissions.v1.QueryDelegateStakePlacementResponse - 87, // 160: emissions.v1.Query.GetDelegateStakeUponReputer:output_type -> emissions.v1.QueryDelegateStakeUponReputerResponse - 89, // 161: emissions.v1.Query.GetDelegateRewardPerShare:output_type -> emissions.v1.QueryDelegateRewardPerShareResponse - 91, // 162: emissions.v1.Query.GetStakeRemovalForReputerAndTopicId:output_type -> emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse - 93, // 163: emissions.v1.Query.GetDelegateStakeRemoval:output_type -> emissions.v1.QueryDelegateStakeRemovalResponse - 95, // 164: emissions.v1.Query.GetPreviousTopicWeight:output_type -> emissions.v1.QueryPreviousTopicWeightResponse - 97, // 165: emissions.v1.Query.TopicExists:output_type -> emissions.v1.QueryTopicExistsResponse - 99, // 166: emissions.v1.Query.IsTopicActive:output_type -> emissions.v1.QueryIsTopicActiveResponse - 101, // 167: emissions.v1.Query.GetTopicFeeRevenue:output_type -> emissions.v1.QueryTopicFeeRevenueResponse - 103, // 168: emissions.v1.Query.GetChurnableTopics:output_type -> emissions.v1.QueryChurnableTopicsResponse - 105, // 169: emissions.v1.Query.GetRewardableTopics:output_type -> emissions.v1.QueryRewardableTopicsResponse - 107, // 170: emissions.v1.Query.GetLatestInfererScore:output_type -> emissions.v1.QueryLatestInfererScoreResponse - 109, // 171: emissions.v1.Query.GetLatestForecasterScore:output_type -> emissions.v1.QueryLatestForecasterScoreResponse - 111, // 172: emissions.v1.Query.GetLatestReputerScore:output_type -> emissions.v1.QueryLatestReputerScoreResponse - 113, // 173: emissions.v1.Query.GetInferenceScoresUntilBlock:output_type -> emissions.v1.QueryInferenceScoresUntilBlockResponse - 115, // 174: emissions.v1.Query.GetWorkerInferenceScoresAtBlock:output_type -> emissions.v1.QueryWorkerInferenceScoresAtBlockResponse - 117, // 175: emissions.v1.Query.GetForecastScoresUntilBlock:output_type -> emissions.v1.QueryForecastScoresUntilBlockResponse - 119, // 176: emissions.v1.Query.GetWorkerForecastScoresAtBlock:output_type -> emissions.v1.QueryWorkerForecastScoresAtBlockResponse - 121, // 177: emissions.v1.Query.GetReputersScoresAtBlock:output_type -> emissions.v1.QueryReputersScoresAtBlockResponse - 123, // 178: emissions.v1.Query.GetListeningCoefficient:output_type -> emissions.v1.QueryListeningCoefficientResponse - 125, // 179: emissions.v1.Query.GetPreviousReputerRewardFraction:output_type -> emissions.v1.QueryPreviousReputerRewardFractionResponse - 127, // 180: emissions.v1.Query.GetPreviousInferenceRewardFraction:output_type -> emissions.v1.QueryPreviousInferenceRewardFractionResponse - 129, // 181: emissions.v1.Query.GetPreviousForecastRewardFraction:output_type -> emissions.v1.QueryPreviousForecastRewardFractionResponse - 131, // 182: emissions.v1.Query.GetPreviousPercentageRewardToStakedReputers:output_type -> emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse - 133, // 183: emissions.v1.Query.GetTotalRewardToDistribute:output_type -> emissions.v1.QueryTotalRewardToDistributeResponse - 135, // 184: emissions.v1.Query.GetTopicLastWorkerPayload:output_type -> emissions.v1.QueryTopicLastWorkerPayloadResponse - 137, // 185: emissions.v1.Query.GetTopicLastReputerPayload:output_type -> emissions.v1.QueryTopicLastReputerPayloadResponse - 115, // [115:186] is the sub-list for method output_type - 44, // [44:115] is the sub-list for method input_type - 44, // [44:44] is the sub-list for extension type_name - 44, // [44:44] is the sub-list for extension extendee - 0, // [0:44] is the sub-list for field type_name -} - -func init() { file_emissions_v1_query_proto_init() } -func file_emissions_v1_query_proto_init() { - if File_emissions_v1_query_proto != nil { + return file_emissions_v2_query_proto_rawDescData +} + +var file_emissions_v2_query_proto_msgTypes = make([]protoimpl.MessageInfo, 136) +var file_emissions_v2_query_proto_goTypes = []interface{}{ + (*QueryNaiveInfererNetworkRegretRequest)(nil), // 0: emissions.v2.QueryNaiveInfererNetworkRegretRequest + (*QueryNaiveInfererNetworkRegretResponse)(nil), // 1: emissions.v2.QueryNaiveInfererNetworkRegretResponse + (*QueryOneOutInfererInfererNetworkRegretRequest)(nil), // 2: emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest + (*QueryOneOutInfererInfererNetworkRegretResponse)(nil), // 3: emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse + (*QueryOneOutInfererForecasterNetworkRegretRequest)(nil), // 4: emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest + (*QueryOneOutInfererForecasterNetworkRegretResponse)(nil), // 5: emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse + (*QueryOneOutForecasterInfererNetworkRegretRequest)(nil), // 6: emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest + (*QueryOneOutForecasterInfererNetworkRegretResponse)(nil), // 7: emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse + (*QueryOneOutForecasterForecasterNetworkRegretRequest)(nil), // 8: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest + (*QueryOneOutForecasterForecasterNetworkRegretResponse)(nil), // 9: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse + (*QueryParamsRequest)(nil), // 10: emissions.v2.QueryParamsRequest + (*QueryParamsResponse)(nil), // 11: emissions.v2.QueryParamsResponse + (*QueryTotalStakeRequest)(nil), // 12: emissions.v2.QueryTotalStakeRequest + (*QueryTotalStakeResponse)(nil), // 13: emissions.v2.QueryTotalStakeResponse + (*QueryReputerStakeInTopicRequest)(nil), // 14: emissions.v2.QueryReputerStakeInTopicRequest + (*QueryReputerStakeInTopicResponse)(nil), // 15: emissions.v2.QueryReputerStakeInTopicResponse + (*QueryMultiReputerStakeInTopicRequest)(nil), // 16: emissions.v2.QueryMultiReputerStakeInTopicRequest + (*QueryMultiReputerStakeInTopicResponse)(nil), // 17: emissions.v2.QueryMultiReputerStakeInTopicResponse + (*QueryStakeFromReputerInTopicInSelfRequest)(nil), // 18: emissions.v2.QueryStakeFromReputerInTopicInSelfRequest + (*QueryStakeFromReputerInTopicInSelfResponse)(nil), // 19: emissions.v2.QueryStakeFromReputerInTopicInSelfResponse + (*QueryDelegateStakeInTopicInReputerRequest)(nil), // 20: emissions.v2.QueryDelegateStakeInTopicInReputerRequest + (*QueryDelegateStakeInTopicInReputerResponse)(nil), // 21: emissions.v2.QueryDelegateStakeInTopicInReputerResponse + (*QueryStakeFromDelegatorInTopicInReputerRequest)(nil), // 22: emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest + (*QueryStakeFromDelegatorInTopicInReputerResponse)(nil), // 23: emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse + (*QueryStakeFromDelegatorInTopicRequest)(nil), // 24: emissions.v2.QueryStakeFromDelegatorInTopicRequest + (*QueryStakeFromDelegatorInTopicResponse)(nil), // 25: emissions.v2.QueryStakeFromDelegatorInTopicResponse + (*QueryTopicStakeRequest)(nil), // 26: emissions.v2.QueryTopicStakeRequest + (*QueryTopicStakeResponse)(nil), // 27: emissions.v2.QueryTopicStakeResponse + (*QueryNetworkLossBundleAtBlockRequest)(nil), // 28: emissions.v2.QueryNetworkLossBundleAtBlockRequest + (*QueryNetworkLossBundleAtBlockResponse)(nil), // 29: emissions.v2.QueryNetworkLossBundleAtBlockResponse + (*QueryNextTopicIdRequest)(nil), // 30: emissions.v2.QueryNextTopicIdRequest + (*QueryNextTopicIdResponse)(nil), // 31: emissions.v2.QueryNextTopicIdResponse + (*QueryTopicRequest)(nil), // 32: emissions.v2.QueryTopicRequest + (*QueryTopicResponse)(nil), // 33: emissions.v2.QueryTopicResponse + (*QueryActiveTopicsRequest)(nil), // 34: emissions.v2.QueryActiveTopicsRequest + (*QueryActiveTopicsResponse)(nil), // 35: emissions.v2.QueryActiveTopicsResponse + (*QueryInferencesAtBlockRequest)(nil), // 36: emissions.v2.QueryInferencesAtBlockRequest + (*QueryInferencesAtBlockResponse)(nil), // 37: emissions.v2.QueryInferencesAtBlockResponse + (*QueryLatestTopicInferencesRequest)(nil), // 38: emissions.v2.QueryLatestTopicInferencesRequest + (*QueryLatestTopicInferencesResponse)(nil), // 39: emissions.v2.QueryLatestTopicInferencesResponse + (*QueryForecastsAtBlockRequest)(nil), // 40: emissions.v2.QueryForecastsAtBlockRequest + (*QueryForecastsAtBlockResponse)(nil), // 41: emissions.v2.QueryForecastsAtBlockResponse + (*QueryWorkerLatestInferenceRequest)(nil), // 42: emissions.v2.QueryWorkerLatestInferenceRequest + (*QueryWorkerLatestInferenceResponse)(nil), // 43: emissions.v2.QueryWorkerLatestInferenceResponse + (*QueryWorkerNodeInfoRequest)(nil), // 44: emissions.v2.QueryWorkerNodeInfoRequest + (*QueryWorkerNodeInfoResponse)(nil), // 45: emissions.v2.QueryWorkerNodeInfoResponse + (*QueryReputerNodeInfoRequest)(nil), // 46: emissions.v2.QueryReputerNodeInfoRequest + (*QueryReputerNodeInfoResponse)(nil), // 47: emissions.v2.QueryReputerNodeInfoResponse + (*QueryNetworkInferencesAtBlockRequest)(nil), // 48: emissions.v2.QueryNetworkInferencesAtBlockRequest + (*QueryLatestNetworkInferencesRequest)(nil), // 49: emissions.v2.QueryLatestNetworkInferencesRequest + (*QueryIsWorkerNonceUnfulfilledRequest)(nil), // 50: emissions.v2.QueryIsWorkerNonceUnfulfilledRequest + (*QueryIsWorkerNonceUnfulfilledResponse)(nil), // 51: emissions.v2.QueryIsWorkerNonceUnfulfilledResponse + (*QueryUnfulfilledReputerNoncesRequest)(nil), // 52: emissions.v2.QueryUnfulfilledReputerNoncesRequest + (*QueryUnfulfilledReputerNoncesResponse)(nil), // 53: emissions.v2.QueryUnfulfilledReputerNoncesResponse + (*QueryUnfulfilledWorkerNoncesRequest)(nil), // 54: emissions.v2.QueryUnfulfilledWorkerNoncesRequest + (*QueryUnfulfilledWorkerNoncesResponse)(nil), // 55: emissions.v2.QueryUnfulfilledWorkerNoncesResponse + (*QueryInfererNetworkRegretRequest)(nil), // 56: emissions.v2.QueryInfererNetworkRegretRequest + (*QueryInfererNetworkRegretResponse)(nil), // 57: emissions.v2.QueryInfererNetworkRegretResponse + (*QueryForecasterNetworkRegretRequest)(nil), // 58: emissions.v2.QueryForecasterNetworkRegretRequest + (*QueryForecasterNetworkRegretResponse)(nil), // 59: emissions.v2.QueryForecasterNetworkRegretResponse + (*QueryOneInForecasterNetworkRegretRequest)(nil), // 60: emissions.v2.QueryOneInForecasterNetworkRegretRequest + (*QueryOneInForecasterNetworkRegretResponse)(nil), // 61: emissions.v2.QueryOneInForecasterNetworkRegretResponse + (*QueryIsReputerNonceUnfulfilledRequest)(nil), // 62: emissions.v2.QueryIsReputerNonceUnfulfilledRequest + (*QueryIsReputerNonceUnfulfilledResponse)(nil), // 63: emissions.v2.QueryIsReputerNonceUnfulfilledResponse + (*QueryNetworkInferencesAtBlockResponse)(nil), // 64: emissions.v2.QueryNetworkInferencesAtBlockResponse + (*QueryLatestNetworkInferencesResponse)(nil), // 65: emissions.v2.QueryLatestNetworkInferencesResponse + (*QueryIsWorkerRegisteredInTopicIdRequest)(nil), // 66: emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest + (*QueryIsWorkerRegisteredInTopicIdResponse)(nil), // 67: emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse + (*QueryIsReputerRegisteredInTopicIdRequest)(nil), // 68: emissions.v2.QueryIsReputerRegisteredInTopicIdRequest + (*QueryIsReputerRegisteredInTopicIdResponse)(nil), // 69: emissions.v2.QueryIsReputerRegisteredInTopicIdResponse + (*QueryIsWhitelistAdminRequest)(nil), // 70: emissions.v2.QueryIsWhitelistAdminRequest + (*QueryIsWhitelistAdminResponse)(nil), // 71: emissions.v2.QueryIsWhitelistAdminResponse + (*QueryStakeRemovalsUpUntilBlockRequest)(nil), // 72: emissions.v2.QueryStakeRemovalsUpUntilBlockRequest + (*QueryStakeRemovalsUpUntilBlockResponse)(nil), // 73: emissions.v2.QueryStakeRemovalsUpUntilBlockResponse + (*QueryDelegateStakeRemovalsUpUntilBlockRequest)(nil), // 74: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest + (*QueryDelegateStakeRemovalsUpUntilBlockResponse)(nil), // 75: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse + (*QueryStakeRemovalInfoRequest)(nil), // 76: emissions.v2.QueryStakeRemovalInfoRequest + (*QueryStakeRemovalInfoResponse)(nil), // 77: emissions.v2.QueryStakeRemovalInfoResponse + (*QueryDelegateStakeRemovalInfoRequest)(nil), // 78: emissions.v2.QueryDelegateStakeRemovalInfoRequest + (*QueryDelegateStakeRemovalInfoResponse)(nil), // 79: emissions.v2.QueryDelegateStakeRemovalInfoResponse + (*QueryTopicLastCommitRequest)(nil), // 80: emissions.v2.QueryTopicLastCommitRequest + (*QueryTopicLastCommitResponse)(nil), // 81: emissions.v2.QueryTopicLastCommitResponse + (*QueryTopicRewardNonceRequest)(nil), // 82: emissions.v2.QueryTopicRewardNonceRequest + (*QueryTopicRewardNonceResponse)(nil), // 83: emissions.v2.QueryTopicRewardNonceResponse + (*QueryReputerLossBundlesAtBlockRequest)(nil), // 84: emissions.v2.QueryReputerLossBundlesAtBlockRequest + (*QueryReputerLossBundlesAtBlockResponse)(nil), // 85: emissions.v2.QueryReputerLossBundlesAtBlockResponse + (*QueryStakeReputerAuthorityRequest)(nil), // 86: emissions.v2.QueryStakeReputerAuthorityRequest + (*QueryStakeReputerAuthorityResponse)(nil), // 87: emissions.v2.QueryStakeReputerAuthorityResponse + (*QueryDelegateStakePlacementRequest)(nil), // 88: emissions.v2.QueryDelegateStakePlacementRequest + (*QueryDelegateStakePlacementResponse)(nil), // 89: emissions.v2.QueryDelegateStakePlacementResponse + (*QueryDelegateStakeUponReputerRequest)(nil), // 90: emissions.v2.QueryDelegateStakeUponReputerRequest + (*QueryDelegateStakeUponReputerResponse)(nil), // 91: emissions.v2.QueryDelegateStakeUponReputerResponse + (*QueryDelegateRewardPerShareRequest)(nil), // 92: emissions.v2.QueryDelegateRewardPerShareRequest + (*QueryDelegateRewardPerShareResponse)(nil), // 93: emissions.v2.QueryDelegateRewardPerShareResponse + (*QueryStakeRemovalForReputerAndTopicIdRequest)(nil), // 94: emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest + (*QueryStakeRemovalForReputerAndTopicIdResponse)(nil), // 95: emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse + (*QueryDelegateStakeRemovalRequest)(nil), // 96: emissions.v2.QueryDelegateStakeRemovalRequest + (*QueryDelegateStakeRemovalResponse)(nil), // 97: emissions.v2.QueryDelegateStakeRemovalResponse + (*QueryPreviousTopicWeightRequest)(nil), // 98: emissions.v2.QueryPreviousTopicWeightRequest + (*QueryPreviousTopicWeightResponse)(nil), // 99: emissions.v2.QueryPreviousTopicWeightResponse + (*QueryTopicExistsRequest)(nil), // 100: emissions.v2.QueryTopicExistsRequest + (*QueryTopicExistsResponse)(nil), // 101: emissions.v2.QueryTopicExistsResponse + (*QueryIsTopicActiveRequest)(nil), // 102: emissions.v2.QueryIsTopicActiveRequest + (*QueryIsTopicActiveResponse)(nil), // 103: emissions.v2.QueryIsTopicActiveResponse + (*QueryTopicFeeRevenueRequest)(nil), // 104: emissions.v2.QueryTopicFeeRevenueRequest + (*QueryTopicFeeRevenueResponse)(nil), // 105: emissions.v2.QueryTopicFeeRevenueResponse + (*QueryRewardableTopicsRequest)(nil), // 106: emissions.v2.QueryRewardableTopicsRequest + (*QueryRewardableTopicsResponse)(nil), // 107: emissions.v2.QueryRewardableTopicsResponse + (*QueryLatestInfererScoreRequest)(nil), // 108: emissions.v2.QueryLatestInfererScoreRequest + (*QueryLatestInfererScoreResponse)(nil), // 109: emissions.v2.QueryLatestInfererScoreResponse + (*QueryLatestForecasterScoreRequest)(nil), // 110: emissions.v2.QueryLatestForecasterScoreRequest + (*QueryLatestForecasterScoreResponse)(nil), // 111: emissions.v2.QueryLatestForecasterScoreResponse + (*QueryLatestReputerScoreRequest)(nil), // 112: emissions.v2.QueryLatestReputerScoreRequest + (*QueryLatestReputerScoreResponse)(nil), // 113: emissions.v2.QueryLatestReputerScoreResponse + (*QueryInferenceScoresUntilBlockRequest)(nil), // 114: emissions.v2.QueryInferenceScoresUntilBlockRequest + (*QueryInferenceScoresUntilBlockResponse)(nil), // 115: emissions.v2.QueryInferenceScoresUntilBlockResponse + (*QueryWorkerInferenceScoresAtBlockRequest)(nil), // 116: emissions.v2.QueryWorkerInferenceScoresAtBlockRequest + (*QueryWorkerInferenceScoresAtBlockResponse)(nil), // 117: emissions.v2.QueryWorkerInferenceScoresAtBlockResponse + (*QueryForecastScoresUntilBlockRequest)(nil), // 118: emissions.v2.QueryForecastScoresUntilBlockRequest + (*QueryForecastScoresUntilBlockResponse)(nil), // 119: emissions.v2.QueryForecastScoresUntilBlockResponse + (*QueryWorkerForecastScoresAtBlockRequest)(nil), // 120: emissions.v2.QueryWorkerForecastScoresAtBlockRequest + (*QueryWorkerForecastScoresAtBlockResponse)(nil), // 121: emissions.v2.QueryWorkerForecastScoresAtBlockResponse + (*QueryReputersScoresAtBlockRequest)(nil), // 122: emissions.v2.QueryReputersScoresAtBlockRequest + (*QueryReputersScoresAtBlockResponse)(nil), // 123: emissions.v2.QueryReputersScoresAtBlockResponse + (*QueryListeningCoefficientRequest)(nil), // 124: emissions.v2.QueryListeningCoefficientRequest + (*QueryListeningCoefficientResponse)(nil), // 125: emissions.v2.QueryListeningCoefficientResponse + (*QueryPreviousReputerRewardFractionRequest)(nil), // 126: emissions.v2.QueryPreviousReputerRewardFractionRequest + (*QueryPreviousReputerRewardFractionResponse)(nil), // 127: emissions.v2.QueryPreviousReputerRewardFractionResponse + (*QueryPreviousInferenceRewardFractionRequest)(nil), // 128: emissions.v2.QueryPreviousInferenceRewardFractionRequest + (*QueryPreviousInferenceRewardFractionResponse)(nil), // 129: emissions.v2.QueryPreviousInferenceRewardFractionResponse + (*QueryPreviousForecastRewardFractionRequest)(nil), // 130: emissions.v2.QueryPreviousForecastRewardFractionRequest + (*QueryPreviousForecastRewardFractionResponse)(nil), // 131: emissions.v2.QueryPreviousForecastRewardFractionResponse + (*QueryPreviousPercentageRewardToStakedReputersRequest)(nil), // 132: emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest + (*QueryPreviousPercentageRewardToStakedReputersResponse)(nil), // 133: emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse + (*QueryTotalRewardToDistributeRequest)(nil), // 134: emissions.v2.QueryTotalRewardToDistributeRequest + (*QueryTotalRewardToDistributeResponse)(nil), // 135: emissions.v2.QueryTotalRewardToDistributeResponse + (*TimestampedValue)(nil), // 136: emissions.v2.TimestampedValue + (*Params)(nil), // 137: emissions.v2.Params + (*StakeInfo)(nil), // 138: emissions.v2.StakeInfo + (*ValueBundle)(nil), // 139: emissions.v2.ValueBundle + (*Topic)(nil), // 140: emissions.v2.Topic + (*SimpleCursorPaginationRequest)(nil), // 141: emissions.v2.SimpleCursorPaginationRequest + (*SimpleCursorPaginationResponse)(nil), // 142: emissions.v2.SimpleCursorPaginationResponse + (*Inferences)(nil), // 143: emissions.v2.Inferences + (*Forecasts)(nil), // 144: emissions.v2.Forecasts + (*Inference)(nil), // 145: emissions.v2.Inference + (*OffchainNode)(nil), // 146: emissions.v2.OffchainNode + (*ReputerRequestNonces)(nil), // 147: emissions.v2.ReputerRequestNonces + (*Nonces)(nil), // 148: emissions.v2.Nonces + (*RegretInformedWeight)(nil), // 149: emissions.v2.RegretInformedWeight + (*WorkerAttributedValue)(nil), // 150: emissions.v2.WorkerAttributedValue + (*StakeRemovalInfo)(nil), // 151: emissions.v2.StakeRemovalInfo + (*DelegateStakeRemovalInfo)(nil), // 152: emissions.v2.DelegateStakeRemovalInfo + (*TimestampedActorNonce)(nil), // 153: emissions.v2.TimestampedActorNonce + (*ReputerValueBundles)(nil), // 154: emissions.v2.ReputerValueBundles + (*DelegatorInfo)(nil), // 155: emissions.v2.DelegatorInfo + (*Score)(nil), // 156: emissions.v2.Score + (*Scores)(nil), // 157: emissions.v2.Scores + (*ListeningCoefficient)(nil), // 158: emissions.v2.ListeningCoefficient +} +var file_emissions_v2_query_proto_depIdxs = []int32{ + 136, // 0: emissions.v2.QueryNaiveInfererNetworkRegretResponse.regret:type_name -> emissions.v2.TimestampedValue + 136, // 1: emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse.regret:type_name -> emissions.v2.TimestampedValue + 136, // 2: emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse.regret:type_name -> emissions.v2.TimestampedValue + 136, // 3: emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse.regret:type_name -> emissions.v2.TimestampedValue + 136, // 4: emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse.regret:type_name -> emissions.v2.TimestampedValue + 137, // 5: emissions.v2.QueryParamsResponse.params:type_name -> emissions.v2.Params + 138, // 6: emissions.v2.QueryMultiReputerStakeInTopicResponse.amounts:type_name -> emissions.v2.StakeInfo + 139, // 7: emissions.v2.QueryNetworkLossBundleAtBlockResponse.loss_bundle:type_name -> emissions.v2.ValueBundle + 140, // 8: emissions.v2.QueryTopicResponse.topic:type_name -> emissions.v2.Topic + 141, // 9: emissions.v2.QueryActiveTopicsRequest.pagination:type_name -> emissions.v2.SimpleCursorPaginationRequest + 140, // 10: emissions.v2.QueryActiveTopicsResponse.topics:type_name -> emissions.v2.Topic + 142, // 11: emissions.v2.QueryActiveTopicsResponse.pagination:type_name -> emissions.v2.SimpleCursorPaginationResponse + 143, // 12: emissions.v2.QueryInferencesAtBlockResponse.inferences:type_name -> emissions.v2.Inferences + 143, // 13: emissions.v2.QueryLatestTopicInferencesResponse.inferences:type_name -> emissions.v2.Inferences + 144, // 14: emissions.v2.QueryForecastsAtBlockResponse.forecasts:type_name -> emissions.v2.Forecasts + 145, // 15: emissions.v2.QueryWorkerLatestInferenceResponse.latest_inference:type_name -> emissions.v2.Inference + 146, // 16: emissions.v2.QueryWorkerNodeInfoResponse.node_info:type_name -> emissions.v2.OffchainNode + 146, // 17: emissions.v2.QueryReputerNodeInfoResponse.node_info:type_name -> emissions.v2.OffchainNode + 147, // 18: emissions.v2.QueryUnfulfilledReputerNoncesResponse.nonces:type_name -> emissions.v2.ReputerRequestNonces + 148, // 19: emissions.v2.QueryUnfulfilledWorkerNoncesResponse.nonces:type_name -> emissions.v2.Nonces + 136, // 20: emissions.v2.QueryInfererNetworkRegretResponse.regret:type_name -> emissions.v2.TimestampedValue + 136, // 21: emissions.v2.QueryForecasterNetworkRegretResponse.regret:type_name -> emissions.v2.TimestampedValue + 136, // 22: emissions.v2.QueryOneInForecasterNetworkRegretResponse.regret:type_name -> emissions.v2.TimestampedValue + 139, // 23: emissions.v2.QueryNetworkInferencesAtBlockResponse.network_inferences:type_name -> emissions.v2.ValueBundle + 139, // 24: emissions.v2.QueryLatestNetworkInferencesResponse.network_inferences:type_name -> emissions.v2.ValueBundle + 149, // 25: emissions.v2.QueryLatestNetworkInferencesResponse.inferer_weights:type_name -> emissions.v2.RegretInformedWeight + 149, // 26: emissions.v2.QueryLatestNetworkInferencesResponse.forecaster_weights:type_name -> emissions.v2.RegretInformedWeight + 150, // 27: emissions.v2.QueryLatestNetworkInferencesResponse.forecastImpliedInferences:type_name -> emissions.v2.WorkerAttributedValue + 151, // 28: emissions.v2.QueryStakeRemovalsUpUntilBlockResponse.removals:type_name -> emissions.v2.StakeRemovalInfo + 152, // 29: emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse.removals:type_name -> emissions.v2.DelegateStakeRemovalInfo + 151, // 30: emissions.v2.QueryStakeRemovalInfoResponse.removal:type_name -> emissions.v2.StakeRemovalInfo + 152, // 31: emissions.v2.QueryDelegateStakeRemovalInfoResponse.removal:type_name -> emissions.v2.DelegateStakeRemovalInfo + 153, // 32: emissions.v2.QueryTopicLastCommitResponse.last_commit:type_name -> emissions.v2.TimestampedActorNonce + 154, // 33: emissions.v2.QueryReputerLossBundlesAtBlockResponse.loss_bundles:type_name -> emissions.v2.ReputerValueBundles + 155, // 34: emissions.v2.QueryDelegateStakePlacementResponse.delegator_info:type_name -> emissions.v2.DelegatorInfo + 151, // 35: emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse.stake_removal_info:type_name -> emissions.v2.StakeRemovalInfo + 152, // 36: emissions.v2.QueryDelegateStakeRemovalResponse.stake_removal_info:type_name -> emissions.v2.DelegateStakeRemovalInfo + 156, // 37: emissions.v2.QueryLatestInfererScoreResponse.score:type_name -> emissions.v2.Score + 156, // 38: emissions.v2.QueryLatestForecasterScoreResponse.score:type_name -> emissions.v2.Score + 156, // 39: emissions.v2.QueryLatestReputerScoreResponse.score:type_name -> emissions.v2.Score + 156, // 40: emissions.v2.QueryInferenceScoresUntilBlockResponse.scores:type_name -> emissions.v2.Score + 157, // 41: emissions.v2.QueryWorkerInferenceScoresAtBlockResponse.scores:type_name -> emissions.v2.Scores + 156, // 42: emissions.v2.QueryForecastScoresUntilBlockResponse.scores:type_name -> emissions.v2.Score + 157, // 43: emissions.v2.QueryWorkerForecastScoresAtBlockResponse.scores:type_name -> emissions.v2.Scores + 157, // 44: emissions.v2.QueryReputersScoresAtBlockResponse.scores:type_name -> emissions.v2.Scores + 158, // 45: emissions.v2.QueryListeningCoefficientResponse.listening_coefficient:type_name -> emissions.v2.ListeningCoefficient + 10, // 46: emissions.v2.Query.Params:input_type -> emissions.v2.QueryParamsRequest + 30, // 47: emissions.v2.Query.GetNextTopicId:input_type -> emissions.v2.QueryNextTopicIdRequest + 32, // 48: emissions.v2.Query.GetTopic:input_type -> emissions.v2.QueryTopicRequest + 34, // 49: emissions.v2.Query.GetActiveTopics:input_type -> emissions.v2.QueryActiveTopicsRequest + 42, // 50: emissions.v2.Query.GetWorkerLatestInferenceByTopicId:input_type -> emissions.v2.QueryWorkerLatestInferenceRequest + 36, // 51: emissions.v2.Query.GetInferencesAtBlock:input_type -> emissions.v2.QueryInferencesAtBlockRequest + 38, // 52: emissions.v2.Query.GetLatestTopicInferences:input_type -> emissions.v2.QueryLatestTopicInferencesRequest + 40, // 53: emissions.v2.Query.GetForecastsAtBlock:input_type -> emissions.v2.QueryForecastsAtBlockRequest + 28, // 54: emissions.v2.Query.GetNetworkLossBundleAtBlock:input_type -> emissions.v2.QueryNetworkLossBundleAtBlockRequest + 12, // 55: emissions.v2.Query.GetTotalStake:input_type -> emissions.v2.QueryTotalStakeRequest + 14, // 56: emissions.v2.Query.GetReputerStakeInTopic:input_type -> emissions.v2.QueryReputerStakeInTopicRequest + 16, // 57: emissions.v2.Query.GetMultiReputerStakeInTopic:input_type -> emissions.v2.QueryMultiReputerStakeInTopicRequest + 18, // 58: emissions.v2.Query.GetStakeFromReputerInTopicInSelf:input_type -> emissions.v2.QueryStakeFromReputerInTopicInSelfRequest + 20, // 59: emissions.v2.Query.GetDelegateStakeInTopicInReputer:input_type -> emissions.v2.QueryDelegateStakeInTopicInReputerRequest + 22, // 60: emissions.v2.Query.GetStakeFromDelegatorInTopicInReputer:input_type -> emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest + 24, // 61: emissions.v2.Query.GetStakeFromDelegatorInTopic:input_type -> emissions.v2.QueryStakeFromDelegatorInTopicRequest + 26, // 62: emissions.v2.Query.GetTopicStake:input_type -> emissions.v2.QueryTopicStakeRequest + 72, // 63: emissions.v2.Query.GetStakeRemovalsUpUntilBlock:input_type -> emissions.v2.QueryStakeRemovalsUpUntilBlockRequest + 74, // 64: emissions.v2.Query.GetDelegateStakeRemovalsUpUntilBlock:input_type -> emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest + 76, // 65: emissions.v2.Query.GetStakeRemovalInfo:input_type -> emissions.v2.QueryStakeRemovalInfoRequest + 78, // 66: emissions.v2.Query.GetDelegateStakeRemovalInfo:input_type -> emissions.v2.QueryDelegateStakeRemovalInfoRequest + 44, // 67: emissions.v2.Query.GetWorkerNodeInfo:input_type -> emissions.v2.QueryWorkerNodeInfoRequest + 46, // 68: emissions.v2.Query.GetReputerNodeInfo:input_type -> emissions.v2.QueryReputerNodeInfoRequest + 66, // 69: emissions.v2.Query.IsWorkerRegisteredInTopicId:input_type -> emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest + 68, // 70: emissions.v2.Query.IsReputerRegisteredInTopicId:input_type -> emissions.v2.QueryIsReputerRegisteredInTopicIdRequest + 48, // 71: emissions.v2.Query.GetNetworkInferencesAtBlock:input_type -> emissions.v2.QueryNetworkInferencesAtBlockRequest + 49, // 72: emissions.v2.Query.GetLatestNetworkInference:input_type -> emissions.v2.QueryLatestNetworkInferencesRequest + 49, // 73: emissions.v2.Query.GetLatestAvailableNetworkInference:input_type -> emissions.v2.QueryLatestNetworkInferencesRequest + 50, // 74: emissions.v2.Query.IsWorkerNonceUnfulfilled:input_type -> emissions.v2.QueryIsWorkerNonceUnfulfilledRequest + 62, // 75: emissions.v2.Query.IsReputerNonceUnfulfilled:input_type -> emissions.v2.QueryIsReputerNonceUnfulfilledRequest + 54, // 76: emissions.v2.Query.GetUnfulfilledWorkerNonces:input_type -> emissions.v2.QueryUnfulfilledWorkerNoncesRequest + 52, // 77: emissions.v2.Query.GetUnfulfilledReputerNonces:input_type -> emissions.v2.QueryUnfulfilledReputerNoncesRequest + 56, // 78: emissions.v2.Query.GetInfererNetworkRegret:input_type -> emissions.v2.QueryInfererNetworkRegretRequest + 58, // 79: emissions.v2.Query.GetForecasterNetworkRegret:input_type -> emissions.v2.QueryForecasterNetworkRegretRequest + 60, // 80: emissions.v2.Query.GetOneInForecasterNetworkRegret:input_type -> emissions.v2.QueryOneInForecasterNetworkRegretRequest + 70, // 81: emissions.v2.Query.IsWhitelistAdmin:input_type -> emissions.v2.QueryIsWhitelistAdminRequest + 80, // 82: emissions.v2.Query.GetTopicLastWorkerCommitInfo:input_type -> emissions.v2.QueryTopicLastCommitRequest + 80, // 83: emissions.v2.Query.GetTopicLastReputerCommitInfo:input_type -> emissions.v2.QueryTopicLastCommitRequest + 82, // 84: emissions.v2.Query.GetTopicRewardNonce:input_type -> emissions.v2.QueryTopicRewardNonceRequest + 84, // 85: emissions.v2.Query.GetReputerLossBundlesAtBlock:input_type -> emissions.v2.QueryReputerLossBundlesAtBlockRequest + 86, // 86: emissions.v2.Query.GetStakeReputerAuthority:input_type -> emissions.v2.QueryStakeReputerAuthorityRequest + 88, // 87: emissions.v2.Query.GetDelegateStakePlacement:input_type -> emissions.v2.QueryDelegateStakePlacementRequest + 90, // 88: emissions.v2.Query.GetDelegateStakeUponReputer:input_type -> emissions.v2.QueryDelegateStakeUponReputerRequest + 92, // 89: emissions.v2.Query.GetDelegateRewardPerShare:input_type -> emissions.v2.QueryDelegateRewardPerShareRequest + 94, // 90: emissions.v2.Query.GetStakeRemovalForReputerAndTopicId:input_type -> emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest + 96, // 91: emissions.v2.Query.GetDelegateStakeRemoval:input_type -> emissions.v2.QueryDelegateStakeRemovalRequest + 98, // 92: emissions.v2.Query.GetPreviousTopicWeight:input_type -> emissions.v2.QueryPreviousTopicWeightRequest + 100, // 93: emissions.v2.Query.TopicExists:input_type -> emissions.v2.QueryTopicExistsRequest + 102, // 94: emissions.v2.Query.IsTopicActive:input_type -> emissions.v2.QueryIsTopicActiveRequest + 104, // 95: emissions.v2.Query.GetTopicFeeRevenue:input_type -> emissions.v2.QueryTopicFeeRevenueRequest + 106, // 96: emissions.v2.Query.GetRewardableTopics:input_type -> emissions.v2.QueryRewardableTopicsRequest + 108, // 97: emissions.v2.Query.GetLatestInfererScore:input_type -> emissions.v2.QueryLatestInfererScoreRequest + 110, // 98: emissions.v2.Query.GetLatestForecasterScore:input_type -> emissions.v2.QueryLatestForecasterScoreRequest + 112, // 99: emissions.v2.Query.GetLatestReputerScore:input_type -> emissions.v2.QueryLatestReputerScoreRequest + 114, // 100: emissions.v2.Query.GetInferenceScoresUntilBlock:input_type -> emissions.v2.QueryInferenceScoresUntilBlockRequest + 116, // 101: emissions.v2.Query.GetWorkerInferenceScoresAtBlock:input_type -> emissions.v2.QueryWorkerInferenceScoresAtBlockRequest + 118, // 102: emissions.v2.Query.GetForecastScoresUntilBlock:input_type -> emissions.v2.QueryForecastScoresUntilBlockRequest + 120, // 103: emissions.v2.Query.GetWorkerForecastScoresAtBlock:input_type -> emissions.v2.QueryWorkerForecastScoresAtBlockRequest + 122, // 104: emissions.v2.Query.GetReputersScoresAtBlock:input_type -> emissions.v2.QueryReputersScoresAtBlockRequest + 124, // 105: emissions.v2.Query.GetListeningCoefficient:input_type -> emissions.v2.QueryListeningCoefficientRequest + 126, // 106: emissions.v2.Query.GetPreviousReputerRewardFraction:input_type -> emissions.v2.QueryPreviousReputerRewardFractionRequest + 128, // 107: emissions.v2.Query.GetPreviousInferenceRewardFraction:input_type -> emissions.v2.QueryPreviousInferenceRewardFractionRequest + 130, // 108: emissions.v2.Query.GetPreviousForecastRewardFraction:input_type -> emissions.v2.QueryPreviousForecastRewardFractionRequest + 132, // 109: emissions.v2.Query.GetPreviousPercentageRewardToStakedReputers:input_type -> emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest + 134, // 110: emissions.v2.Query.GetTotalRewardToDistribute:input_type -> emissions.v2.QueryTotalRewardToDistributeRequest + 0, // 111: emissions.v2.Query.GetNaiveInfererNetworkRegret:input_type -> emissions.v2.QueryNaiveInfererNetworkRegretRequest + 2, // 112: emissions.v2.Query.GetOneOutInfererInfererNetworkRegret:input_type -> emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest + 4, // 113: emissions.v2.Query.GetOneOutInfererForecasterNetworkRegret:input_type -> emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest + 6, // 114: emissions.v2.Query.GetOneOutForecasterInfererNetworkRegret:input_type -> emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest + 8, // 115: emissions.v2.Query.GetOneOutForecasterForecasterNetworkRegret:input_type -> emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest + 11, // 116: emissions.v2.Query.Params:output_type -> emissions.v2.QueryParamsResponse + 31, // 117: emissions.v2.Query.GetNextTopicId:output_type -> emissions.v2.QueryNextTopicIdResponse + 33, // 118: emissions.v2.Query.GetTopic:output_type -> emissions.v2.QueryTopicResponse + 35, // 119: emissions.v2.Query.GetActiveTopics:output_type -> emissions.v2.QueryActiveTopicsResponse + 43, // 120: emissions.v2.Query.GetWorkerLatestInferenceByTopicId:output_type -> emissions.v2.QueryWorkerLatestInferenceResponse + 37, // 121: emissions.v2.Query.GetInferencesAtBlock:output_type -> emissions.v2.QueryInferencesAtBlockResponse + 39, // 122: emissions.v2.Query.GetLatestTopicInferences:output_type -> emissions.v2.QueryLatestTopicInferencesResponse + 41, // 123: emissions.v2.Query.GetForecastsAtBlock:output_type -> emissions.v2.QueryForecastsAtBlockResponse + 29, // 124: emissions.v2.Query.GetNetworkLossBundleAtBlock:output_type -> emissions.v2.QueryNetworkLossBundleAtBlockResponse + 13, // 125: emissions.v2.Query.GetTotalStake:output_type -> emissions.v2.QueryTotalStakeResponse + 15, // 126: emissions.v2.Query.GetReputerStakeInTopic:output_type -> emissions.v2.QueryReputerStakeInTopicResponse + 17, // 127: emissions.v2.Query.GetMultiReputerStakeInTopic:output_type -> emissions.v2.QueryMultiReputerStakeInTopicResponse + 19, // 128: emissions.v2.Query.GetStakeFromReputerInTopicInSelf:output_type -> emissions.v2.QueryStakeFromReputerInTopicInSelfResponse + 21, // 129: emissions.v2.Query.GetDelegateStakeInTopicInReputer:output_type -> emissions.v2.QueryDelegateStakeInTopicInReputerResponse + 23, // 130: emissions.v2.Query.GetStakeFromDelegatorInTopicInReputer:output_type -> emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse + 25, // 131: emissions.v2.Query.GetStakeFromDelegatorInTopic:output_type -> emissions.v2.QueryStakeFromDelegatorInTopicResponse + 27, // 132: emissions.v2.Query.GetTopicStake:output_type -> emissions.v2.QueryTopicStakeResponse + 73, // 133: emissions.v2.Query.GetStakeRemovalsUpUntilBlock:output_type -> emissions.v2.QueryStakeRemovalsUpUntilBlockResponse + 75, // 134: emissions.v2.Query.GetDelegateStakeRemovalsUpUntilBlock:output_type -> emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse + 77, // 135: emissions.v2.Query.GetStakeRemovalInfo:output_type -> emissions.v2.QueryStakeRemovalInfoResponse + 79, // 136: emissions.v2.Query.GetDelegateStakeRemovalInfo:output_type -> emissions.v2.QueryDelegateStakeRemovalInfoResponse + 45, // 137: emissions.v2.Query.GetWorkerNodeInfo:output_type -> emissions.v2.QueryWorkerNodeInfoResponse + 47, // 138: emissions.v2.Query.GetReputerNodeInfo:output_type -> emissions.v2.QueryReputerNodeInfoResponse + 67, // 139: emissions.v2.Query.IsWorkerRegisteredInTopicId:output_type -> emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse + 69, // 140: emissions.v2.Query.IsReputerRegisteredInTopicId:output_type -> emissions.v2.QueryIsReputerRegisteredInTopicIdResponse + 64, // 141: emissions.v2.Query.GetNetworkInferencesAtBlock:output_type -> emissions.v2.QueryNetworkInferencesAtBlockResponse + 65, // 142: emissions.v2.Query.GetLatestNetworkInference:output_type -> emissions.v2.QueryLatestNetworkInferencesResponse + 65, // 143: emissions.v2.Query.GetLatestAvailableNetworkInference:output_type -> emissions.v2.QueryLatestNetworkInferencesResponse + 51, // 144: emissions.v2.Query.IsWorkerNonceUnfulfilled:output_type -> emissions.v2.QueryIsWorkerNonceUnfulfilledResponse + 63, // 145: emissions.v2.Query.IsReputerNonceUnfulfilled:output_type -> emissions.v2.QueryIsReputerNonceUnfulfilledResponse + 55, // 146: emissions.v2.Query.GetUnfulfilledWorkerNonces:output_type -> emissions.v2.QueryUnfulfilledWorkerNoncesResponse + 53, // 147: emissions.v2.Query.GetUnfulfilledReputerNonces:output_type -> emissions.v2.QueryUnfulfilledReputerNoncesResponse + 57, // 148: emissions.v2.Query.GetInfererNetworkRegret:output_type -> emissions.v2.QueryInfererNetworkRegretResponse + 59, // 149: emissions.v2.Query.GetForecasterNetworkRegret:output_type -> emissions.v2.QueryForecasterNetworkRegretResponse + 61, // 150: emissions.v2.Query.GetOneInForecasterNetworkRegret:output_type -> emissions.v2.QueryOneInForecasterNetworkRegretResponse + 71, // 151: emissions.v2.Query.IsWhitelistAdmin:output_type -> emissions.v2.QueryIsWhitelistAdminResponse + 81, // 152: emissions.v2.Query.GetTopicLastWorkerCommitInfo:output_type -> emissions.v2.QueryTopicLastCommitResponse + 81, // 153: emissions.v2.Query.GetTopicLastReputerCommitInfo:output_type -> emissions.v2.QueryTopicLastCommitResponse + 83, // 154: emissions.v2.Query.GetTopicRewardNonce:output_type -> emissions.v2.QueryTopicRewardNonceResponse + 85, // 155: emissions.v2.Query.GetReputerLossBundlesAtBlock:output_type -> emissions.v2.QueryReputerLossBundlesAtBlockResponse + 87, // 156: emissions.v2.Query.GetStakeReputerAuthority:output_type -> emissions.v2.QueryStakeReputerAuthorityResponse + 89, // 157: emissions.v2.Query.GetDelegateStakePlacement:output_type -> emissions.v2.QueryDelegateStakePlacementResponse + 91, // 158: emissions.v2.Query.GetDelegateStakeUponReputer:output_type -> emissions.v2.QueryDelegateStakeUponReputerResponse + 93, // 159: emissions.v2.Query.GetDelegateRewardPerShare:output_type -> emissions.v2.QueryDelegateRewardPerShareResponse + 95, // 160: emissions.v2.Query.GetStakeRemovalForReputerAndTopicId:output_type -> emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse + 97, // 161: emissions.v2.Query.GetDelegateStakeRemoval:output_type -> emissions.v2.QueryDelegateStakeRemovalResponse + 99, // 162: emissions.v2.Query.GetPreviousTopicWeight:output_type -> emissions.v2.QueryPreviousTopicWeightResponse + 101, // 163: emissions.v2.Query.TopicExists:output_type -> emissions.v2.QueryTopicExistsResponse + 103, // 164: emissions.v2.Query.IsTopicActive:output_type -> emissions.v2.QueryIsTopicActiveResponse + 105, // 165: emissions.v2.Query.GetTopicFeeRevenue:output_type -> emissions.v2.QueryTopicFeeRevenueResponse + 107, // 166: emissions.v2.Query.GetRewardableTopics:output_type -> emissions.v2.QueryRewardableTopicsResponse + 109, // 167: emissions.v2.Query.GetLatestInfererScore:output_type -> emissions.v2.QueryLatestInfererScoreResponse + 111, // 168: emissions.v2.Query.GetLatestForecasterScore:output_type -> emissions.v2.QueryLatestForecasterScoreResponse + 113, // 169: emissions.v2.Query.GetLatestReputerScore:output_type -> emissions.v2.QueryLatestReputerScoreResponse + 115, // 170: emissions.v2.Query.GetInferenceScoresUntilBlock:output_type -> emissions.v2.QueryInferenceScoresUntilBlockResponse + 117, // 171: emissions.v2.Query.GetWorkerInferenceScoresAtBlock:output_type -> emissions.v2.QueryWorkerInferenceScoresAtBlockResponse + 119, // 172: emissions.v2.Query.GetForecastScoresUntilBlock:output_type -> emissions.v2.QueryForecastScoresUntilBlockResponse + 121, // 173: emissions.v2.Query.GetWorkerForecastScoresAtBlock:output_type -> emissions.v2.QueryWorkerForecastScoresAtBlockResponse + 123, // 174: emissions.v2.Query.GetReputersScoresAtBlock:output_type -> emissions.v2.QueryReputersScoresAtBlockResponse + 125, // 175: emissions.v2.Query.GetListeningCoefficient:output_type -> emissions.v2.QueryListeningCoefficientResponse + 127, // 176: emissions.v2.Query.GetPreviousReputerRewardFraction:output_type -> emissions.v2.QueryPreviousReputerRewardFractionResponse + 129, // 177: emissions.v2.Query.GetPreviousInferenceRewardFraction:output_type -> emissions.v2.QueryPreviousInferenceRewardFractionResponse + 131, // 178: emissions.v2.Query.GetPreviousForecastRewardFraction:output_type -> emissions.v2.QueryPreviousForecastRewardFractionResponse + 133, // 179: emissions.v2.Query.GetPreviousPercentageRewardToStakedReputers:output_type -> emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse + 135, // 180: emissions.v2.Query.GetTotalRewardToDistribute:output_type -> emissions.v2.QueryTotalRewardToDistributeResponse + 1, // 181: emissions.v2.Query.GetNaiveInfererNetworkRegret:output_type -> emissions.v2.QueryNaiveInfererNetworkRegretResponse + 3, // 182: emissions.v2.Query.GetOneOutInfererInfererNetworkRegret:output_type -> emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse + 5, // 183: emissions.v2.Query.GetOneOutInfererForecasterNetworkRegret:output_type -> emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse + 7, // 184: emissions.v2.Query.GetOneOutForecasterInfererNetworkRegret:output_type -> emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse + 9, // 185: emissions.v2.Query.GetOneOutForecasterForecasterNetworkRegret:output_type -> emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse + 116, // [116:186] is the sub-list for method output_type + 46, // [46:116] is the sub-list for method input_type + 46, // [46:46] is the sub-list for extension type_name + 46, // [46:46] is the sub-list for extension extendee + 0, // [0:46] is the sub-list for field type_name +} + +func init() { file_emissions_v2_query_proto_init() } +func file_emissions_v2_query_proto_init() { + if File_emissions_v2_query_proto != nil { return } - file_emissions_v1_types_proto_init() - file_emissions_v1_params_proto_init() - file_emissions_v1_node_proto_init() - file_emissions_v1_worker_proto_init() - file_emissions_v1_reputer_proto_init() - file_emissions_v1_nonce_proto_init() - file_emissions_v1_topic_proto_init() - file_emissions_v1_stake_proto_init() - file_emissions_v1_inference_proto_init() - file_emissions_v1_score_proto_init() + file_emissions_v2_types_proto_init() + file_emissions_v2_params_proto_init() + file_emissions_v2_node_proto_init() + file_emissions_v2_worker_proto_init() + file_emissions_v2_reputer_proto_init() + file_emissions_v2_nonce_proto_init() + file_emissions_v2_topic_proto_init() + file_emissions_v2_stake_proto_init() + file_emissions_v2_inference_proto_init() + file_emissions_v2_score_proto_init() if !protoimpl.UnsafeEnabled { - file_emissions_v1_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsRequest); i { + file_emissions_v2_query_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryNaiveInfererNetworkRegretRequest); i { case 0: return &v.state case 1: @@ -69261,8 +68903,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryParamsResponse); i { + file_emissions_v2_query_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryNaiveInfererNetworkRegretResponse); i { case 0: return &v.state case 1: @@ -69273,8 +68915,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTotalStakeRequest); i { + file_emissions_v2_query_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryOneOutInfererInfererNetworkRegretRequest); i { case 0: return &v.state case 1: @@ -69285,8 +68927,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTotalStakeResponse); i { + file_emissions_v2_query_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryOneOutInfererInfererNetworkRegretResponse); i { case 0: return &v.state case 1: @@ -69297,8 +68939,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryReputerStakeInTopicRequest); i { + file_emissions_v2_query_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryOneOutInfererForecasterNetworkRegretRequest); i { case 0: return &v.state case 1: @@ -69309,8 +68951,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryReputerStakeInTopicResponse); i { + file_emissions_v2_query_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryOneOutInfererForecasterNetworkRegretResponse); i { case 0: return &v.state case 1: @@ -69321,8 +68963,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryMultiReputerStakeInTopicRequest); i { + file_emissions_v2_query_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryOneOutForecasterInfererNetworkRegretRequest); i { case 0: return &v.state case 1: @@ -69333,8 +68975,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryMultiReputerStakeInTopicResponse); i { + file_emissions_v2_query_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryOneOutForecasterInfererNetworkRegretResponse); i { case 0: return &v.state case 1: @@ -69345,8 +68987,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryStakeFromReputerInTopicInSelfRequest); i { + file_emissions_v2_query_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryOneOutForecasterForecasterNetworkRegretRequest); i { case 0: return &v.state case 1: @@ -69357,8 +68999,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryStakeFromReputerInTopicInSelfResponse); i { + file_emissions_v2_query_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryOneOutForecasterForecasterNetworkRegretResponse); i { case 0: return &v.state case 1: @@ -69369,8 +69011,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryDelegateStakeInTopicInReputerRequest); i { + file_emissions_v2_query_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryParamsRequest); i { case 0: return &v.state case 1: @@ -69381,8 +69023,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryDelegateStakeInTopicInReputerResponse); i { + file_emissions_v2_query_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryParamsResponse); i { case 0: return &v.state case 1: @@ -69393,8 +69035,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryStakeFromDelegatorInTopicInReputerRequest); i { + file_emissions_v2_query_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryTotalStakeRequest); i { case 0: return &v.state case 1: @@ -69405,8 +69047,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryStakeFromDelegatorInTopicInReputerResponse); i { + file_emissions_v2_query_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryTotalStakeResponse); i { case 0: return &v.state case 1: @@ -69417,8 +69059,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryStakeFromDelegatorInTopicRequest); i { + file_emissions_v2_query_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryReputerStakeInTopicRequest); i { case 0: return &v.state case 1: @@ -69429,8 +69071,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryStakeFromDelegatorInTopicResponse); i { + file_emissions_v2_query_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryReputerStakeInTopicResponse); i { case 0: return &v.state case 1: @@ -69441,8 +69083,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTopicStakeRequest); i { + file_emissions_v2_query_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryMultiReputerStakeInTopicRequest); i { case 0: return &v.state case 1: @@ -69453,8 +69095,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTopicStakeResponse); i { + file_emissions_v2_query_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryMultiReputerStakeInTopicResponse); i { case 0: return &v.state case 1: @@ -69465,8 +69107,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryNetworkLossBundleAtBlockRequest); i { + file_emissions_v2_query_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStakeFromReputerInTopicInSelfRequest); i { case 0: return &v.state case 1: @@ -69477,8 +69119,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryNetworkLossBundleAtBlockResponse); i { + file_emissions_v2_query_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStakeFromReputerInTopicInSelfResponse); i { case 0: return &v.state case 1: @@ -69489,8 +69131,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryNextTopicIdRequest); i { + file_emissions_v2_query_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryDelegateStakeInTopicInReputerRequest); i { case 0: return &v.state case 1: @@ -69501,8 +69143,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryNextTopicIdResponse); i { + file_emissions_v2_query_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryDelegateStakeInTopicInReputerResponse); i { case 0: return &v.state case 1: @@ -69513,8 +69155,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTopicRequest); i { + file_emissions_v2_query_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStakeFromDelegatorInTopicInReputerRequest); i { case 0: return &v.state case 1: @@ -69525,8 +69167,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTopicResponse); i { + file_emissions_v2_query_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStakeFromDelegatorInTopicInReputerResponse); i { case 0: return &v.state case 1: @@ -69537,8 +69179,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryActiveTopicsRequest); i { + file_emissions_v2_query_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStakeFromDelegatorInTopicRequest); i { case 0: return &v.state case 1: @@ -69549,8 +69191,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryActiveTopicsResponse); i { + file_emissions_v2_query_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStakeFromDelegatorInTopicResponse); i { case 0: return &v.state case 1: @@ -69561,8 +69203,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryInferencesAtBlockRequest); i { + file_emissions_v2_query_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryTopicStakeRequest); i { case 0: return &v.state case 1: @@ -69573,8 +69215,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryInferencesAtBlockResponse); i { + file_emissions_v2_query_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryTopicStakeResponse); i { case 0: return &v.state case 1: @@ -69585,8 +69227,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryLatestTopicInferencesRequest); i { + file_emissions_v2_query_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryNetworkLossBundleAtBlockRequest); i { case 0: return &v.state case 1: @@ -69597,8 +69239,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryLatestTopicInferencesResponse); i { + file_emissions_v2_query_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryNetworkLossBundleAtBlockResponse); i { case 0: return &v.state case 1: @@ -69609,8 +69251,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryForecastsAtBlockRequest); i { + file_emissions_v2_query_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryNextTopicIdRequest); i { case 0: return &v.state case 1: @@ -69621,8 +69263,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryForecastsAtBlockResponse); i { + file_emissions_v2_query_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryNextTopicIdResponse); i { case 0: return &v.state case 1: @@ -69633,8 +69275,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryWorkerLatestInferenceRequest); i { + file_emissions_v2_query_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryTopicRequest); i { case 0: return &v.state case 1: @@ -69645,8 +69287,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryWorkerLatestInferenceResponse); i { + file_emissions_v2_query_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryTopicResponse); i { case 0: return &v.state case 1: @@ -69657,8 +69299,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryWorkerNodeInfoRequest); i { + file_emissions_v2_query_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryActiveTopicsRequest); i { case 0: return &v.state case 1: @@ -69669,8 +69311,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryWorkerNodeInfoResponse); i { + file_emissions_v2_query_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryActiveTopicsResponse); i { case 0: return &v.state case 1: @@ -69681,8 +69323,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryReputerNodeInfoRequest); i { + file_emissions_v2_query_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryInferencesAtBlockRequest); i { case 0: return &v.state case 1: @@ -69693,8 +69335,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryReputerNodeInfoResponse); i { + file_emissions_v2_query_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryInferencesAtBlockResponse); i { case 0: return &v.state case 1: @@ -69705,8 +69347,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryWorkerAddressByP2PKeyRequest); i { + file_emissions_v2_query_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryLatestTopicInferencesRequest); i { case 0: return &v.state case 1: @@ -69717,8 +69359,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryWorkerAddressByP2PKeyResponse); i { + file_emissions_v2_query_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryLatestTopicInferencesResponse); i { case 0: return &v.state case 1: @@ -69729,8 +69371,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryReputerAddressByP2PKeyRequest); i { + file_emissions_v2_query_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryForecastsAtBlockRequest); i { case 0: return &v.state case 1: @@ -69741,8 +69383,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryReputerAddressByP2PKeyResponse); i { + file_emissions_v2_query_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryForecastsAtBlockResponse); i { case 0: return &v.state case 1: @@ -69753,8 +69395,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryNetworkInferencesAtBlockRequest); i { + file_emissions_v2_query_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWorkerLatestInferenceRequest); i { case 0: return &v.state case 1: @@ -69765,8 +69407,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryLatestNetworkInferencesRequest); i { + file_emissions_v2_query_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWorkerLatestInferenceResponse); i { case 0: return &v.state case 1: @@ -69777,8 +69419,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryIsWorkerNonceUnfulfilledRequest); i { + file_emissions_v2_query_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWorkerNodeInfoRequest); i { case 0: return &v.state case 1: @@ -69789,8 +69431,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryIsWorkerNonceUnfulfilledResponse); i { + file_emissions_v2_query_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryWorkerNodeInfoResponse); i { case 0: return &v.state case 1: @@ -69801,8 +69443,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryUnfulfilledReputerNoncesRequest); i { + file_emissions_v2_query_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryReputerNodeInfoRequest); i { case 0: return &v.state case 1: @@ -69813,8 +69455,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryUnfulfilledReputerNoncesResponse); i { + file_emissions_v2_query_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryReputerNodeInfoResponse); i { case 0: return &v.state case 1: @@ -69825,8 +69467,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryUnfulfilledWorkerNoncesRequest); i { + file_emissions_v2_query_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryNetworkInferencesAtBlockRequest); i { case 0: return &v.state case 1: @@ -69837,8 +69479,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryUnfulfilledWorkerNoncesResponse); i { + file_emissions_v2_query_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryLatestNetworkInferencesRequest); i { case 0: return &v.state case 1: @@ -69849,8 +69491,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryInfererNetworkRegretRequest); i { + file_emissions_v2_query_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryIsWorkerNonceUnfulfilledRequest); i { case 0: return &v.state case 1: @@ -69861,8 +69503,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryInfererNetworkRegretResponse); i { + file_emissions_v2_query_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryIsWorkerNonceUnfulfilledResponse); i { case 0: return &v.state case 1: @@ -69873,8 +69515,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryForecasterNetworkRegretRequest); i { + file_emissions_v2_query_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryUnfulfilledReputerNoncesRequest); i { case 0: return &v.state case 1: @@ -69885,8 +69527,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryForecasterNetworkRegretResponse); i { + file_emissions_v2_query_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryUnfulfilledReputerNoncesResponse); i { case 0: return &v.state case 1: @@ -69897,8 +69539,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryOneInForecasterNetworkRegretRequest); i { + file_emissions_v2_query_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryUnfulfilledWorkerNoncesRequest); i { case 0: return &v.state case 1: @@ -69909,8 +69551,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryOneInForecasterNetworkRegretResponse); i { + file_emissions_v2_query_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryUnfulfilledWorkerNoncesResponse); i { case 0: return &v.state case 1: @@ -69921,8 +69563,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryOneInForecasterSelfNetworkRegretRequest); i { + file_emissions_v2_query_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryInfererNetworkRegretRequest); i { case 0: return &v.state case 1: @@ -69933,8 +69575,20 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryOneInForecasterSelfNetworkRegretResponse); i { + file_emissions_v2_query_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryInfererNetworkRegretResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_query_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryForecasterNetworkRegretRequest); i { case 0: return &v.state case 1: @@ -69945,7 +69599,43 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryForecasterNetworkRegretResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_query_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryOneInForecasterNetworkRegretRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_query_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryOneInForecasterNetworkRegretResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_query_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsReputerNonceUnfulfilledRequest); i { case 0: return &v.state @@ -69957,7 +69647,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsReputerNonceUnfulfilledResponse); i { case 0: return &v.state @@ -69969,7 +69659,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryNetworkInferencesAtBlockResponse); i { case 0: return &v.state @@ -69981,7 +69671,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryLatestNetworkInferencesResponse); i { case 0: return &v.state @@ -69993,7 +69683,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsWorkerRegisteredInTopicIdRequest); i { case 0: return &v.state @@ -70005,7 +69695,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsWorkerRegisteredInTopicIdResponse); i { case 0: return &v.state @@ -70017,7 +69707,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsReputerRegisteredInTopicIdRequest); i { case 0: return &v.state @@ -70029,7 +69719,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsReputerRegisteredInTopicIdResponse); i { case 0: return &v.state @@ -70041,7 +69731,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsWhitelistAdminRequest); i { case 0: return &v.state @@ -70053,7 +69743,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsWhitelistAdminResponse); i { case 0: return &v.state @@ -70065,8 +69755,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryStakeRemovalsForBlockRequest); i { + file_emissions_v2_query_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStakeRemovalsUpUntilBlockRequest); i { case 0: return &v.state case 1: @@ -70077,8 +69767,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryStakeRemovalsForBlockResponse); i { + file_emissions_v2_query_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryStakeRemovalsUpUntilBlockResponse); i { case 0: return &v.state case 1: @@ -70089,8 +69779,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryDelegateStakeRemovalsForBlockRequest); i { + file_emissions_v2_query_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryDelegateStakeRemovalsUpUntilBlockRequest); i { case 0: return &v.state case 1: @@ -70101,8 +69791,8 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryDelegateStakeRemovalsForBlockResponse); i { + file_emissions_v2_query_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*QueryDelegateStakeRemovalsUpUntilBlockResponse); i { case 0: return &v.state case 1: @@ -70113,7 +69803,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryStakeRemovalInfoRequest); i { case 0: return &v.state @@ -70125,7 +69815,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryStakeRemovalInfoResponse); i { case 0: return &v.state @@ -70137,7 +69827,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryDelegateStakeRemovalInfoRequest); i { case 0: return &v.state @@ -70149,7 +69839,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryDelegateStakeRemovalInfoResponse); i { case 0: return &v.state @@ -70161,7 +69851,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTopicLastCommitRequest); i { case 0: return &v.state @@ -70173,7 +69863,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTopicLastCommitResponse); i { case 0: return &v.state @@ -70185,7 +69875,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTopicRewardNonceRequest); i { case 0: return &v.state @@ -70197,7 +69887,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTopicRewardNonceResponse); i { case 0: return &v.state @@ -70209,7 +69899,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryReputerLossBundlesAtBlockRequest); i { case 0: return &v.state @@ -70221,7 +69911,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryReputerLossBundlesAtBlockResponse); i { case 0: return &v.state @@ -70233,7 +69923,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryStakeReputerAuthorityRequest); i { case 0: return &v.state @@ -70245,7 +69935,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryStakeReputerAuthorityResponse); i { case 0: return &v.state @@ -70257,7 +69947,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryDelegateStakePlacementRequest); i { case 0: return &v.state @@ -70269,7 +69959,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryDelegateStakePlacementResponse); i { case 0: return &v.state @@ -70281,7 +69971,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryDelegateStakeUponReputerRequest); i { case 0: return &v.state @@ -70293,7 +69983,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryDelegateStakeUponReputerResponse); i { case 0: return &v.state @@ -70305,7 +69995,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryDelegateRewardPerShareRequest); i { case 0: return &v.state @@ -70317,7 +70007,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryDelegateRewardPerShareResponse); i { case 0: return &v.state @@ -70329,7 +70019,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryStakeRemovalForReputerAndTopicIdRequest); i { case 0: return &v.state @@ -70341,7 +70031,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryStakeRemovalForReputerAndTopicIdResponse); i { case 0: return &v.state @@ -70353,7 +70043,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryDelegateStakeRemovalRequest); i { case 0: return &v.state @@ -70365,7 +70055,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryDelegateStakeRemovalResponse); i { case 0: return &v.state @@ -70377,7 +70067,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryPreviousTopicWeightRequest); i { case 0: return &v.state @@ -70389,7 +70079,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryPreviousTopicWeightResponse); i { case 0: return &v.state @@ -70401,7 +70091,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTopicExistsRequest); i { case 0: return &v.state @@ -70413,7 +70103,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTopicExistsResponse); i { case 0: return &v.state @@ -70425,7 +70115,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsTopicActiveRequest); i { case 0: return &v.state @@ -70437,7 +70127,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryIsTopicActiveResponse); i { case 0: return &v.state @@ -70449,7 +70139,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTopicFeeRevenueRequest); i { case 0: return &v.state @@ -70461,7 +70151,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTopicFeeRevenueResponse); i { case 0: return &v.state @@ -70473,31 +70163,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryChurnableTopicsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_emissions_v1_query_proto_msgTypes[103].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryChurnableTopicsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_emissions_v1_query_proto_msgTypes[104].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryRewardableTopicsRequest); i { case 0: return &v.state @@ -70509,7 +70175,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[105].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryRewardableTopicsResponse); i { case 0: return &v.state @@ -70521,7 +70187,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryLatestInfererScoreRequest); i { case 0: return &v.state @@ -70533,7 +70199,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryLatestInfererScoreResponse); i { case 0: return &v.state @@ -70545,7 +70211,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[108].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryLatestForecasterScoreRequest); i { case 0: return &v.state @@ -70557,7 +70223,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[109].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryLatestForecasterScoreResponse); i { case 0: return &v.state @@ -70569,7 +70235,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[110].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryLatestReputerScoreRequest); i { case 0: return &v.state @@ -70581,7 +70247,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryLatestReputerScoreResponse); i { case 0: return &v.state @@ -70593,7 +70259,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[112].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryInferenceScoresUntilBlockRequest); i { case 0: return &v.state @@ -70605,7 +70271,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryInferenceScoresUntilBlockResponse); i { case 0: return &v.state @@ -70617,7 +70283,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[114].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryWorkerInferenceScoresAtBlockRequest); i { case 0: return &v.state @@ -70629,7 +70295,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryWorkerInferenceScoresAtBlockResponse); i { case 0: return &v.state @@ -70641,7 +70307,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[116].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryForecastScoresUntilBlockRequest); i { case 0: return &v.state @@ -70653,7 +70319,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[117].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryForecastScoresUntilBlockResponse); i { case 0: return &v.state @@ -70665,7 +70331,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[118].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryWorkerForecastScoresAtBlockRequest); i { case 0: return &v.state @@ -70677,7 +70343,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[119].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryWorkerForecastScoresAtBlockResponse); i { case 0: return &v.state @@ -70689,7 +70355,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryReputersScoresAtBlockRequest); i { case 0: return &v.state @@ -70701,7 +70367,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryReputersScoresAtBlockResponse); i { case 0: return &v.state @@ -70713,7 +70379,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryListeningCoefficientRequest); i { case 0: return &v.state @@ -70725,7 +70391,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryListeningCoefficientResponse); i { case 0: return &v.state @@ -70737,7 +70403,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[124].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryPreviousReputerRewardFractionRequest); i { case 0: return &v.state @@ -70749,7 +70415,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[125].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryPreviousReputerRewardFractionResponse); i { case 0: return &v.state @@ -70761,7 +70427,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[126].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryPreviousInferenceRewardFractionRequest); i { case 0: return &v.state @@ -70773,7 +70439,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[127].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryPreviousInferenceRewardFractionResponse); i { case 0: return &v.state @@ -70785,7 +70451,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[128].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryPreviousForecastRewardFractionRequest); i { case 0: return &v.state @@ -70797,7 +70463,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[129].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryPreviousForecastRewardFractionResponse); i { case 0: return &v.state @@ -70809,7 +70475,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[130].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryPreviousPercentageRewardToStakedReputersRequest); i { case 0: return &v.state @@ -70821,7 +70487,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[131].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryPreviousPercentageRewardToStakedReputersResponse); i { case 0: return &v.state @@ -70833,7 +70499,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[132].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTotalRewardToDistributeRequest); i { case 0: return &v.state @@ -70845,7 +70511,7 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[133].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_query_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*QueryTotalRewardToDistributeResponse); i { case 0: return &v.state @@ -70857,71 +70523,23 @@ func file_emissions_v1_query_proto_init() { return nil } } - file_emissions_v1_query_proto_msgTypes[134].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTopicLastWorkerPayloadRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_emissions_v1_query_proto_msgTypes[135].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTopicLastWorkerPayloadResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_emissions_v1_query_proto_msgTypes[136].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTopicLastReputerPayloadRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_emissions_v1_query_proto_msgTypes[137].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryTopicLastReputerPayloadResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_emissions_v1_query_proto_rawDesc, + RawDescriptor: file_emissions_v2_query_proto_rawDesc, NumEnums: 0, - NumMessages: 138, + NumMessages: 136, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_emissions_v1_query_proto_goTypes, - DependencyIndexes: file_emissions_v1_query_proto_depIdxs, - MessageInfos: file_emissions_v1_query_proto_msgTypes, + GoTypes: file_emissions_v2_query_proto_goTypes, + DependencyIndexes: file_emissions_v2_query_proto_depIdxs, + MessageInfos: file_emissions_v2_query_proto_msgTypes, }.Build() - File_emissions_v1_query_proto = out.File - file_emissions_v1_query_proto_rawDesc = nil - file_emissions_v1_query_proto_goTypes = nil - file_emissions_v1_query_proto_depIdxs = nil + File_emissions_v2_query_proto = out.File + file_emissions_v2_query_proto_rawDesc = nil + file_emissions_v2_query_proto_goTypes = nil + file_emissions_v2_query_proto_depIdxs = nil } diff --git a/x/emissions/api/v1/query_grpc.pb.go b/x/emissions/api/v2/query_grpc.pb.go similarity index 88% rename from x/emissions/api/v1/query_grpc.pb.go rename to x/emissions/api/v2/query_grpc.pb.go index 5d15b381e..2465309bf 100644 --- a/x/emissions/api/v1/query_grpc.pb.go +++ b/x/emissions/api/v2/query_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) -// source: emissions/v1/query.proto +// source: emissions/v2/query.proto -package emissionsv1 +package emissionsv2 import ( context "context" @@ -19,77 +19,76 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Query_Params_FullMethodName = "/emissions.v1.Query/Params" - Query_GetNextTopicId_FullMethodName = "/emissions.v1.Query/GetNextTopicId" - Query_GetTopic_FullMethodName = "/emissions.v1.Query/GetTopic" - Query_GetActiveTopics_FullMethodName = "/emissions.v1.Query/GetActiveTopics" - Query_GetWorkerLatestInferenceByTopicId_FullMethodName = "/emissions.v1.Query/GetWorkerLatestInferenceByTopicId" - Query_GetInferencesAtBlock_FullMethodName = "/emissions.v1.Query/GetInferencesAtBlock" - Query_GetLatestTopicInferences_FullMethodName = "/emissions.v1.Query/GetLatestTopicInferences" - Query_GetForecastsAtBlock_FullMethodName = "/emissions.v1.Query/GetForecastsAtBlock" - Query_GetNetworkLossBundleAtBlock_FullMethodName = "/emissions.v1.Query/GetNetworkLossBundleAtBlock" - Query_GetTotalStake_FullMethodName = "/emissions.v1.Query/GetTotalStake" - Query_GetReputerStakeInTopic_FullMethodName = "/emissions.v1.Query/GetReputerStakeInTopic" - Query_GetMultiReputerStakeInTopic_FullMethodName = "/emissions.v1.Query/GetMultiReputerStakeInTopic" - Query_GetStakeFromReputerInTopicInSelf_FullMethodName = "/emissions.v1.Query/GetStakeFromReputerInTopicInSelf" - Query_GetDelegateStakeInTopicInReputer_FullMethodName = "/emissions.v1.Query/GetDelegateStakeInTopicInReputer" - Query_GetStakeFromDelegatorInTopicInReputer_FullMethodName = "/emissions.v1.Query/GetStakeFromDelegatorInTopicInReputer" - Query_GetStakeFromDelegatorInTopic_FullMethodName = "/emissions.v1.Query/GetStakeFromDelegatorInTopic" - Query_GetTopicStake_FullMethodName = "/emissions.v1.Query/GetTopicStake" - Query_GetStakeRemovalsForBlock_FullMethodName = "/emissions.v1.Query/GetStakeRemovalsForBlock" - Query_GetDelegateStakeRemovalsForBlock_FullMethodName = "/emissions.v1.Query/GetDelegateStakeRemovalsForBlock" - Query_GetStakeRemovalInfo_FullMethodName = "/emissions.v1.Query/GetStakeRemovalInfo" - Query_GetDelegateStakeRemovalInfo_FullMethodName = "/emissions.v1.Query/GetDelegateStakeRemovalInfo" - Query_GetWorkerNodeInfo_FullMethodName = "/emissions.v1.Query/GetWorkerNodeInfo" - Query_GetReputerNodeInfo_FullMethodName = "/emissions.v1.Query/GetReputerNodeInfo" - Query_GetWorkerAddressByP2PKey_FullMethodName = "/emissions.v1.Query/GetWorkerAddressByP2PKey" - Query_GetReputerAddressByP2PKey_FullMethodName = "/emissions.v1.Query/GetReputerAddressByP2PKey" - Query_IsWorkerRegisteredInTopicId_FullMethodName = "/emissions.v1.Query/IsWorkerRegisteredInTopicId" - Query_IsReputerRegisteredInTopicId_FullMethodName = "/emissions.v1.Query/IsReputerRegisteredInTopicId" - Query_GetNetworkInferencesAtBlock_FullMethodName = "/emissions.v1.Query/GetNetworkInferencesAtBlock" - Query_GetLatestNetworkInference_FullMethodName = "/emissions.v1.Query/GetLatestNetworkInference" - Query_GetLatestAvailableNetworkInference_FullMethodName = "/emissions.v1.Query/GetLatestAvailableNetworkInference" - Query_IsWorkerNonceUnfulfilled_FullMethodName = "/emissions.v1.Query/IsWorkerNonceUnfulfilled" - Query_IsReputerNonceUnfulfilled_FullMethodName = "/emissions.v1.Query/IsReputerNonceUnfulfilled" - Query_GetUnfulfilledWorkerNonces_FullMethodName = "/emissions.v1.Query/GetUnfulfilledWorkerNonces" - Query_GetUnfulfilledReputerNonces_FullMethodName = "/emissions.v1.Query/GetUnfulfilledReputerNonces" - Query_GetInfererNetworkRegret_FullMethodName = "/emissions.v1.Query/GetInfererNetworkRegret" - Query_GetForecasterNetworkRegret_FullMethodName = "/emissions.v1.Query/GetForecasterNetworkRegret" - Query_GetOneInForecasterNetworkRegret_FullMethodName = "/emissions.v1.Query/GetOneInForecasterNetworkRegret" - Query_GetOneInForecasterSelfNetworkRegret_FullMethodName = "/emissions.v1.Query/GetOneInForecasterSelfNetworkRegret" - Query_IsWhitelistAdmin_FullMethodName = "/emissions.v1.Query/IsWhitelistAdmin" - Query_GetTopicLastWorkerCommitInfo_FullMethodName = "/emissions.v1.Query/GetTopicLastWorkerCommitInfo" - Query_GetTopicLastReputerCommitInfo_FullMethodName = "/emissions.v1.Query/GetTopicLastReputerCommitInfo" - Query_GetTopicRewardNonce_FullMethodName = "/emissions.v1.Query/GetTopicRewardNonce" - Query_GetReputerLossBundlesAtBlock_FullMethodName = "/emissions.v1.Query/GetReputerLossBundlesAtBlock" - Query_GetStakeReputerAuthority_FullMethodName = "/emissions.v1.Query/GetStakeReputerAuthority" - Query_GetDelegateStakePlacement_FullMethodName = "/emissions.v1.Query/GetDelegateStakePlacement" - Query_GetDelegateStakeUponReputer_FullMethodName = "/emissions.v1.Query/GetDelegateStakeUponReputer" - Query_GetDelegateRewardPerShare_FullMethodName = "/emissions.v1.Query/GetDelegateRewardPerShare" - Query_GetStakeRemovalForReputerAndTopicId_FullMethodName = "/emissions.v1.Query/GetStakeRemovalForReputerAndTopicId" - Query_GetDelegateStakeRemoval_FullMethodName = "/emissions.v1.Query/GetDelegateStakeRemoval" - Query_GetPreviousTopicWeight_FullMethodName = "/emissions.v1.Query/GetPreviousTopicWeight" - Query_TopicExists_FullMethodName = "/emissions.v1.Query/TopicExists" - Query_IsTopicActive_FullMethodName = "/emissions.v1.Query/IsTopicActive" - Query_GetTopicFeeRevenue_FullMethodName = "/emissions.v1.Query/GetTopicFeeRevenue" - Query_GetChurnableTopics_FullMethodName = "/emissions.v1.Query/GetChurnableTopics" - Query_GetRewardableTopics_FullMethodName = "/emissions.v1.Query/GetRewardableTopics" - Query_GetLatestInfererScore_FullMethodName = "/emissions.v1.Query/GetLatestInfererScore" - Query_GetLatestForecasterScore_FullMethodName = "/emissions.v1.Query/GetLatestForecasterScore" - Query_GetLatestReputerScore_FullMethodName = "/emissions.v1.Query/GetLatestReputerScore" - Query_GetInferenceScoresUntilBlock_FullMethodName = "/emissions.v1.Query/GetInferenceScoresUntilBlock" - Query_GetWorkerInferenceScoresAtBlock_FullMethodName = "/emissions.v1.Query/GetWorkerInferenceScoresAtBlock" - Query_GetForecastScoresUntilBlock_FullMethodName = "/emissions.v1.Query/GetForecastScoresUntilBlock" - Query_GetWorkerForecastScoresAtBlock_FullMethodName = "/emissions.v1.Query/GetWorkerForecastScoresAtBlock" - Query_GetReputersScoresAtBlock_FullMethodName = "/emissions.v1.Query/GetReputersScoresAtBlock" - Query_GetListeningCoefficient_FullMethodName = "/emissions.v1.Query/GetListeningCoefficient" - Query_GetPreviousReputerRewardFraction_FullMethodName = "/emissions.v1.Query/GetPreviousReputerRewardFraction" - Query_GetPreviousInferenceRewardFraction_FullMethodName = "/emissions.v1.Query/GetPreviousInferenceRewardFraction" - Query_GetPreviousForecastRewardFraction_FullMethodName = "/emissions.v1.Query/GetPreviousForecastRewardFraction" - Query_GetPreviousPercentageRewardToStakedReputers_FullMethodName = "/emissions.v1.Query/GetPreviousPercentageRewardToStakedReputers" - Query_GetTotalRewardToDistribute_FullMethodName = "/emissions.v1.Query/GetTotalRewardToDistribute" - Query_GetTopicLastWorkerPayload_FullMethodName = "/emissions.v1.Query/GetTopicLastWorkerPayload" - Query_GetTopicLastReputerPayload_FullMethodName = "/emissions.v1.Query/GetTopicLastReputerPayload" + Query_Params_FullMethodName = "/emissions.v2.Query/Params" + Query_GetNextTopicId_FullMethodName = "/emissions.v2.Query/GetNextTopicId" + Query_GetTopic_FullMethodName = "/emissions.v2.Query/GetTopic" + Query_GetActiveTopics_FullMethodName = "/emissions.v2.Query/GetActiveTopics" + Query_GetWorkerLatestInferenceByTopicId_FullMethodName = "/emissions.v2.Query/GetWorkerLatestInferenceByTopicId" + Query_GetInferencesAtBlock_FullMethodName = "/emissions.v2.Query/GetInferencesAtBlock" + Query_GetLatestTopicInferences_FullMethodName = "/emissions.v2.Query/GetLatestTopicInferences" + Query_GetForecastsAtBlock_FullMethodName = "/emissions.v2.Query/GetForecastsAtBlock" + Query_GetNetworkLossBundleAtBlock_FullMethodName = "/emissions.v2.Query/GetNetworkLossBundleAtBlock" + Query_GetTotalStake_FullMethodName = "/emissions.v2.Query/GetTotalStake" + Query_GetReputerStakeInTopic_FullMethodName = "/emissions.v2.Query/GetReputerStakeInTopic" + Query_GetMultiReputerStakeInTopic_FullMethodName = "/emissions.v2.Query/GetMultiReputerStakeInTopic" + Query_GetStakeFromReputerInTopicInSelf_FullMethodName = "/emissions.v2.Query/GetStakeFromReputerInTopicInSelf" + Query_GetDelegateStakeInTopicInReputer_FullMethodName = "/emissions.v2.Query/GetDelegateStakeInTopicInReputer" + Query_GetStakeFromDelegatorInTopicInReputer_FullMethodName = "/emissions.v2.Query/GetStakeFromDelegatorInTopicInReputer" + Query_GetStakeFromDelegatorInTopic_FullMethodName = "/emissions.v2.Query/GetStakeFromDelegatorInTopic" + Query_GetTopicStake_FullMethodName = "/emissions.v2.Query/GetTopicStake" + Query_GetStakeRemovalsUpUntilBlock_FullMethodName = "/emissions.v2.Query/GetStakeRemovalsUpUntilBlock" + Query_GetDelegateStakeRemovalsUpUntilBlock_FullMethodName = "/emissions.v2.Query/GetDelegateStakeRemovalsUpUntilBlock" + Query_GetStakeRemovalInfo_FullMethodName = "/emissions.v2.Query/GetStakeRemovalInfo" + Query_GetDelegateStakeRemovalInfo_FullMethodName = "/emissions.v2.Query/GetDelegateStakeRemovalInfo" + Query_GetWorkerNodeInfo_FullMethodName = "/emissions.v2.Query/GetWorkerNodeInfo" + Query_GetReputerNodeInfo_FullMethodName = "/emissions.v2.Query/GetReputerNodeInfo" + Query_IsWorkerRegisteredInTopicId_FullMethodName = "/emissions.v2.Query/IsWorkerRegisteredInTopicId" + Query_IsReputerRegisteredInTopicId_FullMethodName = "/emissions.v2.Query/IsReputerRegisteredInTopicId" + Query_GetNetworkInferencesAtBlock_FullMethodName = "/emissions.v2.Query/GetNetworkInferencesAtBlock" + Query_GetLatestNetworkInference_FullMethodName = "/emissions.v2.Query/GetLatestNetworkInference" + Query_GetLatestAvailableNetworkInference_FullMethodName = "/emissions.v2.Query/GetLatestAvailableNetworkInference" + Query_IsWorkerNonceUnfulfilled_FullMethodName = "/emissions.v2.Query/IsWorkerNonceUnfulfilled" + Query_IsReputerNonceUnfulfilled_FullMethodName = "/emissions.v2.Query/IsReputerNonceUnfulfilled" + Query_GetUnfulfilledWorkerNonces_FullMethodName = "/emissions.v2.Query/GetUnfulfilledWorkerNonces" + Query_GetUnfulfilledReputerNonces_FullMethodName = "/emissions.v2.Query/GetUnfulfilledReputerNonces" + Query_GetInfererNetworkRegret_FullMethodName = "/emissions.v2.Query/GetInfererNetworkRegret" + Query_GetForecasterNetworkRegret_FullMethodName = "/emissions.v2.Query/GetForecasterNetworkRegret" + Query_GetOneInForecasterNetworkRegret_FullMethodName = "/emissions.v2.Query/GetOneInForecasterNetworkRegret" + Query_IsWhitelistAdmin_FullMethodName = "/emissions.v2.Query/IsWhitelistAdmin" + Query_GetTopicLastWorkerCommitInfo_FullMethodName = "/emissions.v2.Query/GetTopicLastWorkerCommitInfo" + Query_GetTopicLastReputerCommitInfo_FullMethodName = "/emissions.v2.Query/GetTopicLastReputerCommitInfo" + Query_GetTopicRewardNonce_FullMethodName = "/emissions.v2.Query/GetTopicRewardNonce" + Query_GetReputerLossBundlesAtBlock_FullMethodName = "/emissions.v2.Query/GetReputerLossBundlesAtBlock" + Query_GetStakeReputerAuthority_FullMethodName = "/emissions.v2.Query/GetStakeReputerAuthority" + Query_GetDelegateStakePlacement_FullMethodName = "/emissions.v2.Query/GetDelegateStakePlacement" + Query_GetDelegateStakeUponReputer_FullMethodName = "/emissions.v2.Query/GetDelegateStakeUponReputer" + Query_GetDelegateRewardPerShare_FullMethodName = "/emissions.v2.Query/GetDelegateRewardPerShare" + Query_GetStakeRemovalForReputerAndTopicId_FullMethodName = "/emissions.v2.Query/GetStakeRemovalForReputerAndTopicId" + Query_GetDelegateStakeRemoval_FullMethodName = "/emissions.v2.Query/GetDelegateStakeRemoval" + Query_GetPreviousTopicWeight_FullMethodName = "/emissions.v2.Query/GetPreviousTopicWeight" + Query_TopicExists_FullMethodName = "/emissions.v2.Query/TopicExists" + Query_IsTopicActive_FullMethodName = "/emissions.v2.Query/IsTopicActive" + Query_GetTopicFeeRevenue_FullMethodName = "/emissions.v2.Query/GetTopicFeeRevenue" + Query_GetRewardableTopics_FullMethodName = "/emissions.v2.Query/GetRewardableTopics" + Query_GetLatestInfererScore_FullMethodName = "/emissions.v2.Query/GetLatestInfererScore" + Query_GetLatestForecasterScore_FullMethodName = "/emissions.v2.Query/GetLatestForecasterScore" + Query_GetLatestReputerScore_FullMethodName = "/emissions.v2.Query/GetLatestReputerScore" + Query_GetInferenceScoresUntilBlock_FullMethodName = "/emissions.v2.Query/GetInferenceScoresUntilBlock" + Query_GetWorkerInferenceScoresAtBlock_FullMethodName = "/emissions.v2.Query/GetWorkerInferenceScoresAtBlock" + Query_GetForecastScoresUntilBlock_FullMethodName = "/emissions.v2.Query/GetForecastScoresUntilBlock" + Query_GetWorkerForecastScoresAtBlock_FullMethodName = "/emissions.v2.Query/GetWorkerForecastScoresAtBlock" + Query_GetReputersScoresAtBlock_FullMethodName = "/emissions.v2.Query/GetReputersScoresAtBlock" + Query_GetListeningCoefficient_FullMethodName = "/emissions.v2.Query/GetListeningCoefficient" + Query_GetPreviousReputerRewardFraction_FullMethodName = "/emissions.v2.Query/GetPreviousReputerRewardFraction" + Query_GetPreviousInferenceRewardFraction_FullMethodName = "/emissions.v2.Query/GetPreviousInferenceRewardFraction" + Query_GetPreviousForecastRewardFraction_FullMethodName = "/emissions.v2.Query/GetPreviousForecastRewardFraction" + Query_GetPreviousPercentageRewardToStakedReputers_FullMethodName = "/emissions.v2.Query/GetPreviousPercentageRewardToStakedReputers" + Query_GetTotalRewardToDistribute_FullMethodName = "/emissions.v2.Query/GetTotalRewardToDistribute" + Query_GetNaiveInfererNetworkRegret_FullMethodName = "/emissions.v2.Query/GetNaiveInfererNetworkRegret" + Query_GetOneOutInfererInfererNetworkRegret_FullMethodName = "/emissions.v2.Query/GetOneOutInfererInfererNetworkRegret" + Query_GetOneOutInfererForecasterNetworkRegret_FullMethodName = "/emissions.v2.Query/GetOneOutInfererForecasterNetworkRegret" + Query_GetOneOutForecasterInfererNetworkRegret_FullMethodName = "/emissions.v2.Query/GetOneOutForecasterInfererNetworkRegret" + Query_GetOneOutForecasterForecasterNetworkRegret_FullMethodName = "/emissions.v2.Query/GetOneOutForecasterForecasterNetworkRegret" ) // QueryClient is the client API for Query service. @@ -114,14 +113,12 @@ type QueryClient interface { GetStakeFromDelegatorInTopicInReputer(ctx context.Context, in *QueryStakeFromDelegatorInTopicInReputerRequest, opts ...grpc.CallOption) (*QueryStakeFromDelegatorInTopicInReputerResponse, error) GetStakeFromDelegatorInTopic(ctx context.Context, in *QueryStakeFromDelegatorInTopicRequest, opts ...grpc.CallOption) (*QueryStakeFromDelegatorInTopicResponse, error) GetTopicStake(ctx context.Context, in *QueryTopicStakeRequest, opts ...grpc.CallOption) (*QueryTopicStakeResponse, error) - GetStakeRemovalsForBlock(ctx context.Context, in *QueryStakeRemovalsForBlockRequest, opts ...grpc.CallOption) (*QueryStakeRemovalsForBlockResponse, error) - GetDelegateStakeRemovalsForBlock(ctx context.Context, in *QueryDelegateStakeRemovalsForBlockRequest, opts ...grpc.CallOption) (*QueryDelegateStakeRemovalsForBlockResponse, error) + GetStakeRemovalsUpUntilBlock(ctx context.Context, in *QueryStakeRemovalsUpUntilBlockRequest, opts ...grpc.CallOption) (*QueryStakeRemovalsUpUntilBlockResponse, error) + GetDelegateStakeRemovalsUpUntilBlock(ctx context.Context, in *QueryDelegateStakeRemovalsUpUntilBlockRequest, opts ...grpc.CallOption) (*QueryDelegateStakeRemovalsUpUntilBlockResponse, error) GetStakeRemovalInfo(ctx context.Context, in *QueryStakeRemovalInfoRequest, opts ...grpc.CallOption) (*QueryStakeRemovalInfoResponse, error) GetDelegateStakeRemovalInfo(ctx context.Context, in *QueryDelegateStakeRemovalInfoRequest, opts ...grpc.CallOption) (*QueryDelegateStakeRemovalInfoResponse, error) GetWorkerNodeInfo(ctx context.Context, in *QueryWorkerNodeInfoRequest, opts ...grpc.CallOption) (*QueryWorkerNodeInfoResponse, error) GetReputerNodeInfo(ctx context.Context, in *QueryReputerNodeInfoRequest, opts ...grpc.CallOption) (*QueryReputerNodeInfoResponse, error) - GetWorkerAddressByP2PKey(ctx context.Context, in *QueryWorkerAddressByP2PKeyRequest, opts ...grpc.CallOption) (*QueryWorkerAddressByP2PKeyResponse, error) - GetReputerAddressByP2PKey(ctx context.Context, in *QueryReputerAddressByP2PKeyRequest, opts ...grpc.CallOption) (*QueryReputerAddressByP2PKeyResponse, error) IsWorkerRegisteredInTopicId(ctx context.Context, in *QueryIsWorkerRegisteredInTopicIdRequest, opts ...grpc.CallOption) (*QueryIsWorkerRegisteredInTopicIdResponse, error) IsReputerRegisteredInTopicId(ctx context.Context, in *QueryIsReputerRegisteredInTopicIdRequest, opts ...grpc.CallOption) (*QueryIsReputerRegisteredInTopicIdResponse, error) GetNetworkInferencesAtBlock(ctx context.Context, in *QueryNetworkInferencesAtBlockRequest, opts ...grpc.CallOption) (*QueryNetworkInferencesAtBlockResponse, error) @@ -134,7 +131,6 @@ type QueryClient interface { GetInfererNetworkRegret(ctx context.Context, in *QueryInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryInfererNetworkRegretResponse, error) GetForecasterNetworkRegret(ctx context.Context, in *QueryForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryForecasterNetworkRegretResponse, error) GetOneInForecasterNetworkRegret(ctx context.Context, in *QueryOneInForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneInForecasterNetworkRegretResponse, error) - GetOneInForecasterSelfNetworkRegret(ctx context.Context, in *QueryOneInForecasterSelfNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneInForecasterSelfNetworkRegretResponse, error) IsWhitelistAdmin(ctx context.Context, in *QueryIsWhitelistAdminRequest, opts ...grpc.CallOption) (*QueryIsWhitelistAdminResponse, error) GetTopicLastWorkerCommitInfo(ctx context.Context, in *QueryTopicLastCommitRequest, opts ...grpc.CallOption) (*QueryTopicLastCommitResponse, error) GetTopicLastReputerCommitInfo(ctx context.Context, in *QueryTopicLastCommitRequest, opts ...grpc.CallOption) (*QueryTopicLastCommitResponse, error) @@ -150,7 +146,6 @@ type QueryClient interface { TopicExists(ctx context.Context, in *QueryTopicExistsRequest, opts ...grpc.CallOption) (*QueryTopicExistsResponse, error) IsTopicActive(ctx context.Context, in *QueryIsTopicActiveRequest, opts ...grpc.CallOption) (*QueryIsTopicActiveResponse, error) GetTopicFeeRevenue(ctx context.Context, in *QueryTopicFeeRevenueRequest, opts ...grpc.CallOption) (*QueryTopicFeeRevenueResponse, error) - GetChurnableTopics(ctx context.Context, in *QueryChurnableTopicsRequest, opts ...grpc.CallOption) (*QueryChurnableTopicsResponse, error) GetRewardableTopics(ctx context.Context, in *QueryRewardableTopicsRequest, opts ...grpc.CallOption) (*QueryRewardableTopicsResponse, error) GetLatestInfererScore(ctx context.Context, in *QueryLatestInfererScoreRequest, opts ...grpc.CallOption) (*QueryLatestInfererScoreResponse, error) GetLatestForecasterScore(ctx context.Context, in *QueryLatestForecasterScoreRequest, opts ...grpc.CallOption) (*QueryLatestForecasterScoreResponse, error) @@ -166,8 +161,11 @@ type QueryClient interface { GetPreviousForecastRewardFraction(ctx context.Context, in *QueryPreviousForecastRewardFractionRequest, opts ...grpc.CallOption) (*QueryPreviousForecastRewardFractionResponse, error) GetPreviousPercentageRewardToStakedReputers(ctx context.Context, in *QueryPreviousPercentageRewardToStakedReputersRequest, opts ...grpc.CallOption) (*QueryPreviousPercentageRewardToStakedReputersResponse, error) GetTotalRewardToDistribute(ctx context.Context, in *QueryTotalRewardToDistributeRequest, opts ...grpc.CallOption) (*QueryTotalRewardToDistributeResponse, error) - GetTopicLastWorkerPayload(ctx context.Context, in *QueryTopicLastWorkerPayloadRequest, opts ...grpc.CallOption) (*QueryTopicLastWorkerPayloadResponse, error) - GetTopicLastReputerPayload(ctx context.Context, in *QueryTopicLastReputerPayloadRequest, opts ...grpc.CallOption) (*QueryTopicLastReputerPayloadResponse, error) + GetNaiveInfererNetworkRegret(ctx context.Context, in *QueryNaiveInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryNaiveInfererNetworkRegretResponse, error) + GetOneOutInfererInfererNetworkRegret(ctx context.Context, in *QueryOneOutInfererInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutInfererInfererNetworkRegretResponse, error) + GetOneOutInfererForecasterNetworkRegret(ctx context.Context, in *QueryOneOutInfererForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutInfererForecasterNetworkRegretResponse, error) + GetOneOutForecasterInfererNetworkRegret(ctx context.Context, in *QueryOneOutForecasterInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutForecasterInfererNetworkRegretResponse, error) + GetOneOutForecasterForecasterNetworkRegret(ctx context.Context, in *QueryOneOutForecasterForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutForecasterForecasterNetworkRegretResponse, error) } type queryClient struct { @@ -331,18 +329,18 @@ func (c *queryClient) GetTopicStake(ctx context.Context, in *QueryTopicStakeRequ return out, nil } -func (c *queryClient) GetStakeRemovalsForBlock(ctx context.Context, in *QueryStakeRemovalsForBlockRequest, opts ...grpc.CallOption) (*QueryStakeRemovalsForBlockResponse, error) { - out := new(QueryStakeRemovalsForBlockResponse) - err := c.cc.Invoke(ctx, Query_GetStakeRemovalsForBlock_FullMethodName, in, out, opts...) +func (c *queryClient) GetStakeRemovalsUpUntilBlock(ctx context.Context, in *QueryStakeRemovalsUpUntilBlockRequest, opts ...grpc.CallOption) (*QueryStakeRemovalsUpUntilBlockResponse, error) { + out := new(QueryStakeRemovalsUpUntilBlockResponse) + err := c.cc.Invoke(ctx, Query_GetStakeRemovalsUpUntilBlock_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) GetDelegateStakeRemovalsForBlock(ctx context.Context, in *QueryDelegateStakeRemovalsForBlockRequest, opts ...grpc.CallOption) (*QueryDelegateStakeRemovalsForBlockResponse, error) { - out := new(QueryDelegateStakeRemovalsForBlockResponse) - err := c.cc.Invoke(ctx, Query_GetDelegateStakeRemovalsForBlock_FullMethodName, in, out, opts...) +func (c *queryClient) GetDelegateStakeRemovalsUpUntilBlock(ctx context.Context, in *QueryDelegateStakeRemovalsUpUntilBlockRequest, opts ...grpc.CallOption) (*QueryDelegateStakeRemovalsUpUntilBlockResponse, error) { + out := new(QueryDelegateStakeRemovalsUpUntilBlockResponse) + err := c.cc.Invoke(ctx, Query_GetDelegateStakeRemovalsUpUntilBlock_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -385,24 +383,6 @@ func (c *queryClient) GetReputerNodeInfo(ctx context.Context, in *QueryReputerNo return out, nil } -func (c *queryClient) GetWorkerAddressByP2PKey(ctx context.Context, in *QueryWorkerAddressByP2PKeyRequest, opts ...grpc.CallOption) (*QueryWorkerAddressByP2PKeyResponse, error) { - out := new(QueryWorkerAddressByP2PKeyResponse) - err := c.cc.Invoke(ctx, Query_GetWorkerAddressByP2PKey_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetReputerAddressByP2PKey(ctx context.Context, in *QueryReputerAddressByP2PKeyRequest, opts ...grpc.CallOption) (*QueryReputerAddressByP2PKeyResponse, error) { - out := new(QueryReputerAddressByP2PKeyResponse) - err := c.cc.Invoke(ctx, Query_GetReputerAddressByP2PKey_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) IsWorkerRegisteredInTopicId(ctx context.Context, in *QueryIsWorkerRegisteredInTopicIdRequest, opts ...grpc.CallOption) (*QueryIsWorkerRegisteredInTopicIdResponse, error) { out := new(QueryIsWorkerRegisteredInTopicIdResponse) err := c.cc.Invoke(ctx, Query_IsWorkerRegisteredInTopicId_FullMethodName, in, out, opts...) @@ -511,15 +491,6 @@ func (c *queryClient) GetOneInForecasterNetworkRegret(ctx context.Context, in *Q return out, nil } -func (c *queryClient) GetOneInForecasterSelfNetworkRegret(ctx context.Context, in *QueryOneInForecasterSelfNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneInForecasterSelfNetworkRegretResponse, error) { - out := new(QueryOneInForecasterSelfNetworkRegretResponse) - err := c.cc.Invoke(ctx, Query_GetOneInForecasterSelfNetworkRegret_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) IsWhitelistAdmin(ctx context.Context, in *QueryIsWhitelistAdminRequest, opts ...grpc.CallOption) (*QueryIsWhitelistAdminResponse, error) { out := new(QueryIsWhitelistAdminResponse) err := c.cc.Invoke(ctx, Query_IsWhitelistAdmin_FullMethodName, in, out, opts...) @@ -655,15 +626,6 @@ func (c *queryClient) GetTopicFeeRevenue(ctx context.Context, in *QueryTopicFeeR return out, nil } -func (c *queryClient) GetChurnableTopics(ctx context.Context, in *QueryChurnableTopicsRequest, opts ...grpc.CallOption) (*QueryChurnableTopicsResponse, error) { - out := new(QueryChurnableTopicsResponse) - err := c.cc.Invoke(ctx, Query_GetChurnableTopics_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *queryClient) GetRewardableTopics(ctx context.Context, in *QueryRewardableTopicsRequest, opts ...grpc.CallOption) (*QueryRewardableTopicsResponse, error) { out := new(QueryRewardableTopicsResponse) err := c.cc.Invoke(ctx, Query_GetRewardableTopics_FullMethodName, in, out, opts...) @@ -799,18 +761,45 @@ func (c *queryClient) GetTotalRewardToDistribute(ctx context.Context, in *QueryT return out, nil } -func (c *queryClient) GetTopicLastWorkerPayload(ctx context.Context, in *QueryTopicLastWorkerPayloadRequest, opts ...grpc.CallOption) (*QueryTopicLastWorkerPayloadResponse, error) { - out := new(QueryTopicLastWorkerPayloadResponse) - err := c.cc.Invoke(ctx, Query_GetTopicLastWorkerPayload_FullMethodName, in, out, opts...) +func (c *queryClient) GetNaiveInfererNetworkRegret(ctx context.Context, in *QueryNaiveInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryNaiveInfererNetworkRegretResponse, error) { + out := new(QueryNaiveInfererNetworkRegretResponse) + err := c.cc.Invoke(ctx, Query_GetNaiveInfererNetworkRegret_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetOneOutInfererInfererNetworkRegret(ctx context.Context, in *QueryOneOutInfererInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutInfererInfererNetworkRegretResponse, error) { + out := new(QueryOneOutInfererInfererNetworkRegretResponse) + err := c.cc.Invoke(ctx, Query_GetOneOutInfererInfererNetworkRegret_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) GetTopicLastReputerPayload(ctx context.Context, in *QueryTopicLastReputerPayloadRequest, opts ...grpc.CallOption) (*QueryTopicLastReputerPayloadResponse, error) { - out := new(QueryTopicLastReputerPayloadResponse) - err := c.cc.Invoke(ctx, Query_GetTopicLastReputerPayload_FullMethodName, in, out, opts...) +func (c *queryClient) GetOneOutInfererForecasterNetworkRegret(ctx context.Context, in *QueryOneOutInfererForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutInfererForecasterNetworkRegretResponse, error) { + out := new(QueryOneOutInfererForecasterNetworkRegretResponse) + err := c.cc.Invoke(ctx, Query_GetOneOutInfererForecasterNetworkRegret_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetOneOutForecasterInfererNetworkRegret(ctx context.Context, in *QueryOneOutForecasterInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutForecasterInfererNetworkRegretResponse, error) { + out := new(QueryOneOutForecasterInfererNetworkRegretResponse) + err := c.cc.Invoke(ctx, Query_GetOneOutForecasterInfererNetworkRegret_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetOneOutForecasterForecasterNetworkRegret(ctx context.Context, in *QueryOneOutForecasterForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutForecasterForecasterNetworkRegretResponse, error) { + out := new(QueryOneOutForecasterForecasterNetworkRegretResponse) + err := c.cc.Invoke(ctx, Query_GetOneOutForecasterForecasterNetworkRegret_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -839,14 +828,12 @@ type QueryServer interface { GetStakeFromDelegatorInTopicInReputer(context.Context, *QueryStakeFromDelegatorInTopicInReputerRequest) (*QueryStakeFromDelegatorInTopicInReputerResponse, error) GetStakeFromDelegatorInTopic(context.Context, *QueryStakeFromDelegatorInTopicRequest) (*QueryStakeFromDelegatorInTopicResponse, error) GetTopicStake(context.Context, *QueryTopicStakeRequest) (*QueryTopicStakeResponse, error) - GetStakeRemovalsForBlock(context.Context, *QueryStakeRemovalsForBlockRequest) (*QueryStakeRemovalsForBlockResponse, error) - GetDelegateStakeRemovalsForBlock(context.Context, *QueryDelegateStakeRemovalsForBlockRequest) (*QueryDelegateStakeRemovalsForBlockResponse, error) + GetStakeRemovalsUpUntilBlock(context.Context, *QueryStakeRemovalsUpUntilBlockRequest) (*QueryStakeRemovalsUpUntilBlockResponse, error) + GetDelegateStakeRemovalsUpUntilBlock(context.Context, *QueryDelegateStakeRemovalsUpUntilBlockRequest) (*QueryDelegateStakeRemovalsUpUntilBlockResponse, error) GetStakeRemovalInfo(context.Context, *QueryStakeRemovalInfoRequest) (*QueryStakeRemovalInfoResponse, error) GetDelegateStakeRemovalInfo(context.Context, *QueryDelegateStakeRemovalInfoRequest) (*QueryDelegateStakeRemovalInfoResponse, error) GetWorkerNodeInfo(context.Context, *QueryWorkerNodeInfoRequest) (*QueryWorkerNodeInfoResponse, error) GetReputerNodeInfo(context.Context, *QueryReputerNodeInfoRequest) (*QueryReputerNodeInfoResponse, error) - GetWorkerAddressByP2PKey(context.Context, *QueryWorkerAddressByP2PKeyRequest) (*QueryWorkerAddressByP2PKeyResponse, error) - GetReputerAddressByP2PKey(context.Context, *QueryReputerAddressByP2PKeyRequest) (*QueryReputerAddressByP2PKeyResponse, error) IsWorkerRegisteredInTopicId(context.Context, *QueryIsWorkerRegisteredInTopicIdRequest) (*QueryIsWorkerRegisteredInTopicIdResponse, error) IsReputerRegisteredInTopicId(context.Context, *QueryIsReputerRegisteredInTopicIdRequest) (*QueryIsReputerRegisteredInTopicIdResponse, error) GetNetworkInferencesAtBlock(context.Context, *QueryNetworkInferencesAtBlockRequest) (*QueryNetworkInferencesAtBlockResponse, error) @@ -859,7 +846,6 @@ type QueryServer interface { GetInfererNetworkRegret(context.Context, *QueryInfererNetworkRegretRequest) (*QueryInfererNetworkRegretResponse, error) GetForecasterNetworkRegret(context.Context, *QueryForecasterNetworkRegretRequest) (*QueryForecasterNetworkRegretResponse, error) GetOneInForecasterNetworkRegret(context.Context, *QueryOneInForecasterNetworkRegretRequest) (*QueryOneInForecasterNetworkRegretResponse, error) - GetOneInForecasterSelfNetworkRegret(context.Context, *QueryOneInForecasterSelfNetworkRegretRequest) (*QueryOneInForecasterSelfNetworkRegretResponse, error) IsWhitelistAdmin(context.Context, *QueryIsWhitelistAdminRequest) (*QueryIsWhitelistAdminResponse, error) GetTopicLastWorkerCommitInfo(context.Context, *QueryTopicLastCommitRequest) (*QueryTopicLastCommitResponse, error) GetTopicLastReputerCommitInfo(context.Context, *QueryTopicLastCommitRequest) (*QueryTopicLastCommitResponse, error) @@ -875,7 +861,6 @@ type QueryServer interface { TopicExists(context.Context, *QueryTopicExistsRequest) (*QueryTopicExistsResponse, error) IsTopicActive(context.Context, *QueryIsTopicActiveRequest) (*QueryIsTopicActiveResponse, error) GetTopicFeeRevenue(context.Context, *QueryTopicFeeRevenueRequest) (*QueryTopicFeeRevenueResponse, error) - GetChurnableTopics(context.Context, *QueryChurnableTopicsRequest) (*QueryChurnableTopicsResponse, error) GetRewardableTopics(context.Context, *QueryRewardableTopicsRequest) (*QueryRewardableTopicsResponse, error) GetLatestInfererScore(context.Context, *QueryLatestInfererScoreRequest) (*QueryLatestInfererScoreResponse, error) GetLatestForecasterScore(context.Context, *QueryLatestForecasterScoreRequest) (*QueryLatestForecasterScoreResponse, error) @@ -891,8 +876,11 @@ type QueryServer interface { GetPreviousForecastRewardFraction(context.Context, *QueryPreviousForecastRewardFractionRequest) (*QueryPreviousForecastRewardFractionResponse, error) GetPreviousPercentageRewardToStakedReputers(context.Context, *QueryPreviousPercentageRewardToStakedReputersRequest) (*QueryPreviousPercentageRewardToStakedReputersResponse, error) GetTotalRewardToDistribute(context.Context, *QueryTotalRewardToDistributeRequest) (*QueryTotalRewardToDistributeResponse, error) - GetTopicLastWorkerPayload(context.Context, *QueryTopicLastWorkerPayloadRequest) (*QueryTopicLastWorkerPayloadResponse, error) - GetTopicLastReputerPayload(context.Context, *QueryTopicLastReputerPayloadRequest) (*QueryTopicLastReputerPayloadResponse, error) + GetNaiveInfererNetworkRegret(context.Context, *QueryNaiveInfererNetworkRegretRequest) (*QueryNaiveInfererNetworkRegretResponse, error) + GetOneOutInfererInfererNetworkRegret(context.Context, *QueryOneOutInfererInfererNetworkRegretRequest) (*QueryOneOutInfererInfererNetworkRegretResponse, error) + GetOneOutInfererForecasterNetworkRegret(context.Context, *QueryOneOutInfererForecasterNetworkRegretRequest) (*QueryOneOutInfererForecasterNetworkRegretResponse, error) + GetOneOutForecasterInfererNetworkRegret(context.Context, *QueryOneOutForecasterInfererNetworkRegretRequest) (*QueryOneOutForecasterInfererNetworkRegretResponse, error) + GetOneOutForecasterForecasterNetworkRegret(context.Context, *QueryOneOutForecasterForecasterNetworkRegretRequest) (*QueryOneOutForecasterForecasterNetworkRegretResponse, error) mustEmbedUnimplementedQueryServer() } @@ -951,11 +939,11 @@ func (UnimplementedQueryServer) GetStakeFromDelegatorInTopic(context.Context, *Q func (UnimplementedQueryServer) GetTopicStake(context.Context, *QueryTopicStakeRequest) (*QueryTopicStakeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTopicStake not implemented") } -func (UnimplementedQueryServer) GetStakeRemovalsForBlock(context.Context, *QueryStakeRemovalsForBlockRequest) (*QueryStakeRemovalsForBlockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetStakeRemovalsForBlock not implemented") +func (UnimplementedQueryServer) GetStakeRemovalsUpUntilBlock(context.Context, *QueryStakeRemovalsUpUntilBlockRequest) (*QueryStakeRemovalsUpUntilBlockResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStakeRemovalsUpUntilBlock not implemented") } -func (UnimplementedQueryServer) GetDelegateStakeRemovalsForBlock(context.Context, *QueryDelegateStakeRemovalsForBlockRequest) (*QueryDelegateStakeRemovalsForBlockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDelegateStakeRemovalsForBlock not implemented") +func (UnimplementedQueryServer) GetDelegateStakeRemovalsUpUntilBlock(context.Context, *QueryDelegateStakeRemovalsUpUntilBlockRequest) (*QueryDelegateStakeRemovalsUpUntilBlockResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDelegateStakeRemovalsUpUntilBlock not implemented") } func (UnimplementedQueryServer) GetStakeRemovalInfo(context.Context, *QueryStakeRemovalInfoRequest) (*QueryStakeRemovalInfoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetStakeRemovalInfo not implemented") @@ -969,12 +957,6 @@ func (UnimplementedQueryServer) GetWorkerNodeInfo(context.Context, *QueryWorkerN func (UnimplementedQueryServer) GetReputerNodeInfo(context.Context, *QueryReputerNodeInfoRequest) (*QueryReputerNodeInfoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetReputerNodeInfo not implemented") } -func (UnimplementedQueryServer) GetWorkerAddressByP2PKey(context.Context, *QueryWorkerAddressByP2PKeyRequest) (*QueryWorkerAddressByP2PKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetWorkerAddressByP2PKey not implemented") -} -func (UnimplementedQueryServer) GetReputerAddressByP2PKey(context.Context, *QueryReputerAddressByP2PKeyRequest) (*QueryReputerAddressByP2PKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetReputerAddressByP2PKey not implemented") -} func (UnimplementedQueryServer) IsWorkerRegisteredInTopicId(context.Context, *QueryIsWorkerRegisteredInTopicIdRequest) (*QueryIsWorkerRegisteredInTopicIdResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method IsWorkerRegisteredInTopicId not implemented") } @@ -1011,9 +993,6 @@ func (UnimplementedQueryServer) GetForecasterNetworkRegret(context.Context, *Que func (UnimplementedQueryServer) GetOneInForecasterNetworkRegret(context.Context, *QueryOneInForecasterNetworkRegretRequest) (*QueryOneInForecasterNetworkRegretResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetOneInForecasterNetworkRegret not implemented") } -func (UnimplementedQueryServer) GetOneInForecasterSelfNetworkRegret(context.Context, *QueryOneInForecasterSelfNetworkRegretRequest) (*QueryOneInForecasterSelfNetworkRegretResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOneInForecasterSelfNetworkRegret not implemented") -} func (UnimplementedQueryServer) IsWhitelistAdmin(context.Context, *QueryIsWhitelistAdminRequest) (*QueryIsWhitelistAdminResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method IsWhitelistAdmin not implemented") } @@ -1059,9 +1038,6 @@ func (UnimplementedQueryServer) IsTopicActive(context.Context, *QueryIsTopicActi func (UnimplementedQueryServer) GetTopicFeeRevenue(context.Context, *QueryTopicFeeRevenueRequest) (*QueryTopicFeeRevenueResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTopicFeeRevenue not implemented") } -func (UnimplementedQueryServer) GetChurnableTopics(context.Context, *QueryChurnableTopicsRequest) (*QueryChurnableTopicsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetChurnableTopics not implemented") -} func (UnimplementedQueryServer) GetRewardableTopics(context.Context, *QueryRewardableTopicsRequest) (*QueryRewardableTopicsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRewardableTopics not implemented") } @@ -1107,11 +1083,20 @@ func (UnimplementedQueryServer) GetPreviousPercentageRewardToStakedReputers(cont func (UnimplementedQueryServer) GetTotalRewardToDistribute(context.Context, *QueryTotalRewardToDistributeRequest) (*QueryTotalRewardToDistributeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTotalRewardToDistribute not implemented") } -func (UnimplementedQueryServer) GetTopicLastWorkerPayload(context.Context, *QueryTopicLastWorkerPayloadRequest) (*QueryTopicLastWorkerPayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTopicLastWorkerPayload not implemented") +func (UnimplementedQueryServer) GetNaiveInfererNetworkRegret(context.Context, *QueryNaiveInfererNetworkRegretRequest) (*QueryNaiveInfererNetworkRegretResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNaiveInfererNetworkRegret not implemented") +} +func (UnimplementedQueryServer) GetOneOutInfererInfererNetworkRegret(context.Context, *QueryOneOutInfererInfererNetworkRegretRequest) (*QueryOneOutInfererInfererNetworkRegretResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOneOutInfererInfererNetworkRegret not implemented") +} +func (UnimplementedQueryServer) GetOneOutInfererForecasterNetworkRegret(context.Context, *QueryOneOutInfererForecasterNetworkRegretRequest) (*QueryOneOutInfererForecasterNetworkRegretResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOneOutInfererForecasterNetworkRegret not implemented") +} +func (UnimplementedQueryServer) GetOneOutForecasterInfererNetworkRegret(context.Context, *QueryOneOutForecasterInfererNetworkRegretRequest) (*QueryOneOutForecasterInfererNetworkRegretResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOneOutForecasterInfererNetworkRegret not implemented") } -func (UnimplementedQueryServer) GetTopicLastReputerPayload(context.Context, *QueryTopicLastReputerPayloadRequest) (*QueryTopicLastReputerPayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTopicLastReputerPayload not implemented") +func (UnimplementedQueryServer) GetOneOutForecasterForecasterNetworkRegret(context.Context, *QueryOneOutForecasterForecasterNetworkRegretRequest) (*QueryOneOutForecasterForecasterNetworkRegretResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOneOutForecasterForecasterNetworkRegret not implemented") } func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} @@ -1432,38 +1417,38 @@ func _Query_GetTopicStake_Handler(srv interface{}, ctx context.Context, dec func return interceptor(ctx, in, info, handler) } -func _Query_GetStakeRemovalsForBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryStakeRemovalsForBlockRequest) +func _Query_GetStakeRemovalsUpUntilBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryStakeRemovalsUpUntilBlockRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GetStakeRemovalsForBlock(ctx, in) + return srv.(QueryServer).GetStakeRemovalsUpUntilBlock(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_GetStakeRemovalsForBlock_FullMethodName, + FullMethod: Query_GetStakeRemovalsUpUntilBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetStakeRemovalsForBlock(ctx, req.(*QueryStakeRemovalsForBlockRequest)) + return srv.(QueryServer).GetStakeRemovalsUpUntilBlock(ctx, req.(*QueryStakeRemovalsUpUntilBlockRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_GetDelegateStakeRemovalsForBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryDelegateStakeRemovalsForBlockRequest) +func _Query_GetDelegateStakeRemovalsUpUntilBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDelegateStakeRemovalsUpUntilBlockRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GetDelegateStakeRemovalsForBlock(ctx, in) + return srv.(QueryServer).GetDelegateStakeRemovalsUpUntilBlock(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_GetDelegateStakeRemovalsForBlock_FullMethodName, + FullMethod: Query_GetDelegateStakeRemovalsUpUntilBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetDelegateStakeRemovalsForBlock(ctx, req.(*QueryDelegateStakeRemovalsForBlockRequest)) + return srv.(QueryServer).GetDelegateStakeRemovalsUpUntilBlock(ctx, req.(*QueryDelegateStakeRemovalsUpUntilBlockRequest)) } return interceptor(ctx, in, info, handler) } @@ -1540,42 +1525,6 @@ func _Query_GetReputerNodeInfo_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _Query_GetWorkerAddressByP2PKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryWorkerAddressByP2PKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetWorkerAddressByP2PKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_GetWorkerAddressByP2PKey_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetWorkerAddressByP2PKey(ctx, req.(*QueryWorkerAddressByP2PKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GetReputerAddressByP2PKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryReputerAddressByP2PKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetReputerAddressByP2PKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_GetReputerAddressByP2PKey_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetReputerAddressByP2PKey(ctx, req.(*QueryReputerAddressByP2PKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_IsWorkerRegisteredInTopicId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryIsWorkerRegisteredInTopicIdRequest) if err := dec(in); err != nil { @@ -1792,24 +1741,6 @@ func _Query_GetOneInForecasterNetworkRegret_Handler(srv interface{}, ctx context return interceptor(ctx, in, info, handler) } -func _Query_GetOneInForecasterSelfNetworkRegret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryOneInForecasterSelfNetworkRegretRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetOneInForecasterSelfNetworkRegret(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_GetOneInForecasterSelfNetworkRegret_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetOneInForecasterSelfNetworkRegret(ctx, req.(*QueryOneInForecasterSelfNetworkRegretRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_IsWhitelistAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryIsWhitelistAdminRequest) if err := dec(in); err != nil { @@ -2080,24 +2011,6 @@ func _Query_GetTopicFeeRevenue_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _Query_GetChurnableTopics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryChurnableTopicsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetChurnableTopics(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Query_GetChurnableTopics_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetChurnableTopics(ctx, req.(*QueryChurnableTopicsRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_GetRewardableTopics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryRewardableTopicsRequest) if err := dec(in); err != nil { @@ -2368,38 +2281,92 @@ func _Query_GetTotalRewardToDistribute_Handler(srv interface{}, ctx context.Cont return interceptor(ctx, in, info, handler) } -func _Query_GetTopicLastWorkerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTopicLastWorkerPayloadRequest) +func _Query_GetNaiveInfererNetworkRegret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryNaiveInfererNetworkRegretRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GetTopicLastWorkerPayload(ctx, in) + return srv.(QueryServer).GetNaiveInfererNetworkRegret(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_GetTopicLastWorkerPayload_FullMethodName, + FullMethod: Query_GetNaiveInfererNetworkRegret_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetTopicLastWorkerPayload(ctx, req.(*QueryTopicLastWorkerPayloadRequest)) + return srv.(QueryServer).GetNaiveInfererNetworkRegret(ctx, req.(*QueryNaiveInfererNetworkRegretRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_GetTopicLastReputerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTopicLastReputerPayloadRequest) +func _Query_GetOneOutInfererInfererNetworkRegret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryOneOutInfererInfererNetworkRegretRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GetTopicLastReputerPayload(ctx, in) + return srv.(QueryServer).GetOneOutInfererInfererNetworkRegret(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: Query_GetTopicLastReputerPayload_FullMethodName, + FullMethod: Query_GetOneOutInfererInfererNetworkRegret_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetTopicLastReputerPayload(ctx, req.(*QueryTopicLastReputerPayloadRequest)) + return srv.(QueryServer).GetOneOutInfererInfererNetworkRegret(ctx, req.(*QueryOneOutInfererInfererNetworkRegretRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetOneOutInfererForecasterNetworkRegret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryOneOutInfererForecasterNetworkRegretRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetOneOutInfererForecasterNetworkRegret(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_GetOneOutInfererForecasterNetworkRegret_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetOneOutInfererForecasterNetworkRegret(ctx, req.(*QueryOneOutInfererForecasterNetworkRegretRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetOneOutForecasterInfererNetworkRegret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryOneOutForecasterInfererNetworkRegretRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetOneOutForecasterInfererNetworkRegret(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_GetOneOutForecasterInfererNetworkRegret_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetOneOutForecasterInfererNetworkRegret(ctx, req.(*QueryOneOutForecasterInfererNetworkRegretRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetOneOutForecasterForecasterNetworkRegret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryOneOutForecasterForecasterNetworkRegretRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetOneOutForecasterForecasterNetworkRegret(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Query_GetOneOutForecasterForecasterNetworkRegret_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetOneOutForecasterForecasterNetworkRegret(ctx, req.(*QueryOneOutForecasterForecasterNetworkRegretRequest)) } return interceptor(ctx, in, info, handler) } @@ -2408,7 +2375,7 @@ func _Query_GetTopicLastReputerPayload_Handler(srv interface{}, ctx context.Cont // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Query_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "emissions.v1.Query", + ServiceName: "emissions.v2.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -2480,12 +2447,12 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_GetTopicStake_Handler, }, { - MethodName: "GetStakeRemovalsForBlock", - Handler: _Query_GetStakeRemovalsForBlock_Handler, + MethodName: "GetStakeRemovalsUpUntilBlock", + Handler: _Query_GetStakeRemovalsUpUntilBlock_Handler, }, { - MethodName: "GetDelegateStakeRemovalsForBlock", - Handler: _Query_GetDelegateStakeRemovalsForBlock_Handler, + MethodName: "GetDelegateStakeRemovalsUpUntilBlock", + Handler: _Query_GetDelegateStakeRemovalsUpUntilBlock_Handler, }, { MethodName: "GetStakeRemovalInfo", @@ -2503,14 +2470,6 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetReputerNodeInfo", Handler: _Query_GetReputerNodeInfo_Handler, }, - { - MethodName: "GetWorkerAddressByP2PKey", - Handler: _Query_GetWorkerAddressByP2PKey_Handler, - }, - { - MethodName: "GetReputerAddressByP2PKey", - Handler: _Query_GetReputerAddressByP2PKey_Handler, - }, { MethodName: "IsWorkerRegisteredInTopicId", Handler: _Query_IsWorkerRegisteredInTopicId_Handler, @@ -2559,10 +2518,6 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetOneInForecasterNetworkRegret", Handler: _Query_GetOneInForecasterNetworkRegret_Handler, }, - { - MethodName: "GetOneInForecasterSelfNetworkRegret", - Handler: _Query_GetOneInForecasterSelfNetworkRegret_Handler, - }, { MethodName: "IsWhitelistAdmin", Handler: _Query_IsWhitelistAdmin_Handler, @@ -2623,10 +2578,6 @@ var Query_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetTopicFeeRevenue", Handler: _Query_GetTopicFeeRevenue_Handler, }, - { - MethodName: "GetChurnableTopics", - Handler: _Query_GetChurnableTopics_Handler, - }, { MethodName: "GetRewardableTopics", Handler: _Query_GetRewardableTopics_Handler, @@ -2688,14 +2639,26 @@ var Query_ServiceDesc = grpc.ServiceDesc{ Handler: _Query_GetTotalRewardToDistribute_Handler, }, { - MethodName: "GetTopicLastWorkerPayload", - Handler: _Query_GetTopicLastWorkerPayload_Handler, + MethodName: "GetNaiveInfererNetworkRegret", + Handler: _Query_GetNaiveInfererNetworkRegret_Handler, + }, + { + MethodName: "GetOneOutInfererInfererNetworkRegret", + Handler: _Query_GetOneOutInfererInfererNetworkRegret_Handler, + }, + { + MethodName: "GetOneOutInfererForecasterNetworkRegret", + Handler: _Query_GetOneOutInfererForecasterNetworkRegret_Handler, + }, + { + MethodName: "GetOneOutForecasterInfererNetworkRegret", + Handler: _Query_GetOneOutForecasterInfererNetworkRegret_Handler, }, { - MethodName: "GetTopicLastReputerPayload", - Handler: _Query_GetTopicLastReputerPayload_Handler, + MethodName: "GetOneOutForecasterForecasterNetworkRegret", + Handler: _Query_GetOneOutForecasterForecasterNetworkRegret_Handler, }, }, Streams: []grpc.StreamDesc{}, - Metadata: "emissions/v1/query.proto", + Metadata: "emissions/v2/query.proto", } diff --git a/x/emissions/api/v2/reputer.pulsar.go b/x/emissions/api/v2/reputer.pulsar.go new file mode 100644 index 000000000..fef17a7a8 --- /dev/null +++ b/x/emissions/api/v2/reputer.pulsar.go @@ -0,0 +1,4803 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package emissionsv2 + +import ( + fmt "fmt" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_WorkerAttributedValue protoreflect.MessageDescriptor + fd_WorkerAttributedValue_worker protoreflect.FieldDescriptor + fd_WorkerAttributedValue_value protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_reputer_proto_init() + md_WorkerAttributedValue = File_emissions_v2_reputer_proto.Messages().ByName("WorkerAttributedValue") + fd_WorkerAttributedValue_worker = md_WorkerAttributedValue.Fields().ByName("worker") + fd_WorkerAttributedValue_value = md_WorkerAttributedValue.Fields().ByName("value") +} + +var _ protoreflect.Message = (*fastReflection_WorkerAttributedValue)(nil) + +type fastReflection_WorkerAttributedValue WorkerAttributedValue + +func (x *WorkerAttributedValue) ProtoReflect() protoreflect.Message { + return (*fastReflection_WorkerAttributedValue)(x) +} + +func (x *WorkerAttributedValue) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_reputer_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_WorkerAttributedValue_messageType fastReflection_WorkerAttributedValue_messageType +var _ protoreflect.MessageType = fastReflection_WorkerAttributedValue_messageType{} + +type fastReflection_WorkerAttributedValue_messageType struct{} + +func (x fastReflection_WorkerAttributedValue_messageType) Zero() protoreflect.Message { + return (*fastReflection_WorkerAttributedValue)(nil) +} +func (x fastReflection_WorkerAttributedValue_messageType) New() protoreflect.Message { + return new(fastReflection_WorkerAttributedValue) +} +func (x fastReflection_WorkerAttributedValue_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_WorkerAttributedValue +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_WorkerAttributedValue) Descriptor() protoreflect.MessageDescriptor { + return md_WorkerAttributedValue +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_WorkerAttributedValue) Type() protoreflect.MessageType { + return _fastReflection_WorkerAttributedValue_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_WorkerAttributedValue) New() protoreflect.Message { + return new(fastReflection_WorkerAttributedValue) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_WorkerAttributedValue) Interface() protoreflect.ProtoMessage { + return (*WorkerAttributedValue)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_WorkerAttributedValue) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Worker != "" { + value := protoreflect.ValueOfString(x.Worker) + if !f(fd_WorkerAttributedValue_worker, value) { + return + } + } + if x.Value != "" { + value := protoreflect.ValueOfString(x.Value) + if !f(fd_WorkerAttributedValue_value, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_WorkerAttributedValue) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.WorkerAttributedValue.worker": + return x.Worker != "" + case "emissions.v2.WorkerAttributedValue.value": + return x.Value != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerAttributedValue")) + } + panic(fmt.Errorf("message emissions.v2.WorkerAttributedValue does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_WorkerAttributedValue) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.WorkerAttributedValue.worker": + x.Worker = "" + case "emissions.v2.WorkerAttributedValue.value": + x.Value = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerAttributedValue")) + } + panic(fmt.Errorf("message emissions.v2.WorkerAttributedValue does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_WorkerAttributedValue) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.WorkerAttributedValue.worker": + value := x.Worker + return protoreflect.ValueOfString(value) + case "emissions.v2.WorkerAttributedValue.value": + value := x.Value + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerAttributedValue")) + } + panic(fmt.Errorf("message emissions.v2.WorkerAttributedValue does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_WorkerAttributedValue) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.WorkerAttributedValue.worker": + x.Worker = value.Interface().(string) + case "emissions.v2.WorkerAttributedValue.value": + x.Value = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerAttributedValue")) + } + panic(fmt.Errorf("message emissions.v2.WorkerAttributedValue does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_WorkerAttributedValue) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.WorkerAttributedValue.worker": + panic(fmt.Errorf("field worker of message emissions.v2.WorkerAttributedValue is not mutable")) + case "emissions.v2.WorkerAttributedValue.value": + panic(fmt.Errorf("field value of message emissions.v2.WorkerAttributedValue is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerAttributedValue")) + } + panic(fmt.Errorf("message emissions.v2.WorkerAttributedValue does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_WorkerAttributedValue) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.WorkerAttributedValue.worker": + return protoreflect.ValueOfString("") + case "emissions.v2.WorkerAttributedValue.value": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerAttributedValue")) + } + panic(fmt.Errorf("message emissions.v2.WorkerAttributedValue does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_WorkerAttributedValue) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.WorkerAttributedValue", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_WorkerAttributedValue) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_WorkerAttributedValue) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_WorkerAttributedValue) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_WorkerAttributedValue) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*WorkerAttributedValue) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Worker) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Value) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*WorkerAttributedValue) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Value) > 0 { + i -= len(x.Value) + copy(dAtA[i:], x.Value) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Value))) + i-- + dAtA[i] = 0x12 + } + if len(x.Worker) > 0 { + i -= len(x.Worker) + copy(dAtA[i:], x.Worker) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Worker))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*WorkerAttributedValue) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WorkerAttributedValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WorkerAttributedValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Worker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_WithheldWorkerAttributedValue protoreflect.MessageDescriptor + fd_WithheldWorkerAttributedValue_worker protoreflect.FieldDescriptor + fd_WithheldWorkerAttributedValue_value protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_reputer_proto_init() + md_WithheldWorkerAttributedValue = File_emissions_v2_reputer_proto.Messages().ByName("WithheldWorkerAttributedValue") + fd_WithheldWorkerAttributedValue_worker = md_WithheldWorkerAttributedValue.Fields().ByName("worker") + fd_WithheldWorkerAttributedValue_value = md_WithheldWorkerAttributedValue.Fields().ByName("value") +} + +var _ protoreflect.Message = (*fastReflection_WithheldWorkerAttributedValue)(nil) + +type fastReflection_WithheldWorkerAttributedValue WithheldWorkerAttributedValue + +func (x *WithheldWorkerAttributedValue) ProtoReflect() protoreflect.Message { + return (*fastReflection_WithheldWorkerAttributedValue)(x) +} + +func (x *WithheldWorkerAttributedValue) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_reputer_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_WithheldWorkerAttributedValue_messageType fastReflection_WithheldWorkerAttributedValue_messageType +var _ protoreflect.MessageType = fastReflection_WithheldWorkerAttributedValue_messageType{} + +type fastReflection_WithheldWorkerAttributedValue_messageType struct{} + +func (x fastReflection_WithheldWorkerAttributedValue_messageType) Zero() protoreflect.Message { + return (*fastReflection_WithheldWorkerAttributedValue)(nil) +} +func (x fastReflection_WithheldWorkerAttributedValue_messageType) New() protoreflect.Message { + return new(fastReflection_WithheldWorkerAttributedValue) +} +func (x fastReflection_WithheldWorkerAttributedValue_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_WithheldWorkerAttributedValue +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_WithheldWorkerAttributedValue) Descriptor() protoreflect.MessageDescriptor { + return md_WithheldWorkerAttributedValue +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_WithheldWorkerAttributedValue) Type() protoreflect.MessageType { + return _fastReflection_WithheldWorkerAttributedValue_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_WithheldWorkerAttributedValue) New() protoreflect.Message { + return new(fastReflection_WithheldWorkerAttributedValue) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_WithheldWorkerAttributedValue) Interface() protoreflect.ProtoMessage { + return (*WithheldWorkerAttributedValue)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_WithheldWorkerAttributedValue) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Worker != "" { + value := protoreflect.ValueOfString(x.Worker) + if !f(fd_WithheldWorkerAttributedValue_worker, value) { + return + } + } + if x.Value != "" { + value := protoreflect.ValueOfString(x.Value) + if !f(fd_WithheldWorkerAttributedValue_value, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_WithheldWorkerAttributedValue) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.WithheldWorkerAttributedValue.worker": + return x.Worker != "" + case "emissions.v2.WithheldWorkerAttributedValue.value": + return x.Value != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WithheldWorkerAttributedValue")) + } + panic(fmt.Errorf("message emissions.v2.WithheldWorkerAttributedValue does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_WithheldWorkerAttributedValue) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.WithheldWorkerAttributedValue.worker": + x.Worker = "" + case "emissions.v2.WithheldWorkerAttributedValue.value": + x.Value = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WithheldWorkerAttributedValue")) + } + panic(fmt.Errorf("message emissions.v2.WithheldWorkerAttributedValue does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_WithheldWorkerAttributedValue) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.WithheldWorkerAttributedValue.worker": + value := x.Worker + return protoreflect.ValueOfString(value) + case "emissions.v2.WithheldWorkerAttributedValue.value": + value := x.Value + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WithheldWorkerAttributedValue")) + } + panic(fmt.Errorf("message emissions.v2.WithheldWorkerAttributedValue does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_WithheldWorkerAttributedValue) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.WithheldWorkerAttributedValue.worker": + x.Worker = value.Interface().(string) + case "emissions.v2.WithheldWorkerAttributedValue.value": + x.Value = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WithheldWorkerAttributedValue")) + } + panic(fmt.Errorf("message emissions.v2.WithheldWorkerAttributedValue does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_WithheldWorkerAttributedValue) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.WithheldWorkerAttributedValue.worker": + panic(fmt.Errorf("field worker of message emissions.v2.WithheldWorkerAttributedValue is not mutable")) + case "emissions.v2.WithheldWorkerAttributedValue.value": + panic(fmt.Errorf("field value of message emissions.v2.WithheldWorkerAttributedValue is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WithheldWorkerAttributedValue")) + } + panic(fmt.Errorf("message emissions.v2.WithheldWorkerAttributedValue does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_WithheldWorkerAttributedValue) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.WithheldWorkerAttributedValue.worker": + return protoreflect.ValueOfString("") + case "emissions.v2.WithheldWorkerAttributedValue.value": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WithheldWorkerAttributedValue")) + } + panic(fmt.Errorf("message emissions.v2.WithheldWorkerAttributedValue does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_WithheldWorkerAttributedValue) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.WithheldWorkerAttributedValue", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_WithheldWorkerAttributedValue) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_WithheldWorkerAttributedValue) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_WithheldWorkerAttributedValue) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_WithheldWorkerAttributedValue) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*WithheldWorkerAttributedValue) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Worker) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Value) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*WithheldWorkerAttributedValue) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Value) > 0 { + i -= len(x.Value) + copy(dAtA[i:], x.Value) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Value))) + i-- + dAtA[i] = 0x12 + } + if len(x.Worker) > 0 { + i -= len(x.Worker) + copy(dAtA[i:], x.Worker) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Worker))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*WithheldWorkerAttributedValue) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WithheldWorkerAttributedValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: WithheldWorkerAttributedValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Worker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Value = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_OneOutInfererForecasterValues_4_list)(nil) + +type _OneOutInfererForecasterValues_4_list struct { + list *[]*WithheldWorkerAttributedValue +} + +func (x *_OneOutInfererForecasterValues_4_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_OneOutInfererForecasterValues_4_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_OneOutInfererForecasterValues_4_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WithheldWorkerAttributedValue) + (*x.list)[i] = concreteValue +} + +func (x *_OneOutInfererForecasterValues_4_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WithheldWorkerAttributedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_OneOutInfererForecasterValues_4_list) AppendMutable() protoreflect.Value { + v := new(WithheldWorkerAttributedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_OneOutInfererForecasterValues_4_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_OneOutInfererForecasterValues_4_list) NewElement() protoreflect.Value { + v := new(WithheldWorkerAttributedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_OneOutInfererForecasterValues_4_list) IsValid() bool { + return x.list != nil +} + +var ( + md_OneOutInfererForecasterValues protoreflect.MessageDescriptor + fd_OneOutInfererForecasterValues_forecaster protoreflect.FieldDescriptor + fd_OneOutInfererForecasterValues_one_out_inferer_values protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_reputer_proto_init() + md_OneOutInfererForecasterValues = File_emissions_v2_reputer_proto.Messages().ByName("OneOutInfererForecasterValues") + fd_OneOutInfererForecasterValues_forecaster = md_OneOutInfererForecasterValues.Fields().ByName("forecaster") + fd_OneOutInfererForecasterValues_one_out_inferer_values = md_OneOutInfererForecasterValues.Fields().ByName("one_out_inferer_values") +} + +var _ protoreflect.Message = (*fastReflection_OneOutInfererForecasterValues)(nil) + +type fastReflection_OneOutInfererForecasterValues OneOutInfererForecasterValues + +func (x *OneOutInfererForecasterValues) ProtoReflect() protoreflect.Message { + return (*fastReflection_OneOutInfererForecasterValues)(x) +} + +func (x *OneOutInfererForecasterValues) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_reputer_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_OneOutInfererForecasterValues_messageType fastReflection_OneOutInfererForecasterValues_messageType +var _ protoreflect.MessageType = fastReflection_OneOutInfererForecasterValues_messageType{} + +type fastReflection_OneOutInfererForecasterValues_messageType struct{} + +func (x fastReflection_OneOutInfererForecasterValues_messageType) Zero() protoreflect.Message { + return (*fastReflection_OneOutInfererForecasterValues)(nil) +} +func (x fastReflection_OneOutInfererForecasterValues_messageType) New() protoreflect.Message { + return new(fastReflection_OneOutInfererForecasterValues) +} +func (x fastReflection_OneOutInfererForecasterValues_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_OneOutInfererForecasterValues +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_OneOutInfererForecasterValues) Descriptor() protoreflect.MessageDescriptor { + return md_OneOutInfererForecasterValues +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_OneOutInfererForecasterValues) Type() protoreflect.MessageType { + return _fastReflection_OneOutInfererForecasterValues_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_OneOutInfererForecasterValues) New() protoreflect.Message { + return new(fastReflection_OneOutInfererForecasterValues) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_OneOutInfererForecasterValues) Interface() protoreflect.ProtoMessage { + return (*OneOutInfererForecasterValues)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_OneOutInfererForecasterValues) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Forecaster != "" { + value := protoreflect.ValueOfString(x.Forecaster) + if !f(fd_OneOutInfererForecasterValues_forecaster, value) { + return + } + } + if len(x.OneOutInfererValues) != 0 { + value := protoreflect.ValueOfList(&_OneOutInfererForecasterValues_4_list{list: &x.OneOutInfererValues}) + if !f(fd_OneOutInfererForecasterValues_one_out_inferer_values, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_OneOutInfererForecasterValues) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.OneOutInfererForecasterValues.forecaster": + return x.Forecaster != "" + case "emissions.v2.OneOutInfererForecasterValues.one_out_inferer_values": + return len(x.OneOutInfererValues) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OneOutInfererForecasterValues")) + } + panic(fmt.Errorf("message emissions.v2.OneOutInfererForecasterValues does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OneOutInfererForecasterValues) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.OneOutInfererForecasterValues.forecaster": + x.Forecaster = "" + case "emissions.v2.OneOutInfererForecasterValues.one_out_inferer_values": + x.OneOutInfererValues = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OneOutInfererForecasterValues")) + } + panic(fmt.Errorf("message emissions.v2.OneOutInfererForecasterValues does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_OneOutInfererForecasterValues) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.OneOutInfererForecasterValues.forecaster": + value := x.Forecaster + return protoreflect.ValueOfString(value) + case "emissions.v2.OneOutInfererForecasterValues.one_out_inferer_values": + if len(x.OneOutInfererValues) == 0 { + return protoreflect.ValueOfList(&_OneOutInfererForecasterValues_4_list{}) + } + listValue := &_OneOutInfererForecasterValues_4_list{list: &x.OneOutInfererValues} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OneOutInfererForecasterValues")) + } + panic(fmt.Errorf("message emissions.v2.OneOutInfererForecasterValues does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OneOutInfererForecasterValues) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.OneOutInfererForecasterValues.forecaster": + x.Forecaster = value.Interface().(string) + case "emissions.v2.OneOutInfererForecasterValues.one_out_inferer_values": + lv := value.List() + clv := lv.(*_OneOutInfererForecasterValues_4_list) + x.OneOutInfererValues = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OneOutInfererForecasterValues")) + } + panic(fmt.Errorf("message emissions.v2.OneOutInfererForecasterValues does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OneOutInfererForecasterValues) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.OneOutInfererForecasterValues.one_out_inferer_values": + if x.OneOutInfererValues == nil { + x.OneOutInfererValues = []*WithheldWorkerAttributedValue{} + } + value := &_OneOutInfererForecasterValues_4_list{list: &x.OneOutInfererValues} + return protoreflect.ValueOfList(value) + case "emissions.v2.OneOutInfererForecasterValues.forecaster": + panic(fmt.Errorf("field forecaster of message emissions.v2.OneOutInfererForecasterValues is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OneOutInfererForecasterValues")) + } + panic(fmt.Errorf("message emissions.v2.OneOutInfererForecasterValues does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_OneOutInfererForecasterValues) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.OneOutInfererForecasterValues.forecaster": + return protoreflect.ValueOfString("") + case "emissions.v2.OneOutInfererForecasterValues.one_out_inferer_values": + list := []*WithheldWorkerAttributedValue{} + return protoreflect.ValueOfList(&_OneOutInfererForecasterValues_4_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OneOutInfererForecasterValues")) + } + panic(fmt.Errorf("message emissions.v2.OneOutInfererForecasterValues does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_OneOutInfererForecasterValues) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.OneOutInfererForecasterValues", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_OneOutInfererForecasterValues) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_OneOutInfererForecasterValues) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_OneOutInfererForecasterValues) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_OneOutInfererForecasterValues) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*OneOutInfererForecasterValues) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + l = len(x.Forecaster) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.OneOutInfererValues) > 0 { + for _, e := range x.OneOutInfererValues { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*OneOutInfererForecasterValues) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.OneOutInfererValues) > 0 { + for iNdEx := len(x.OneOutInfererValues) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.OneOutInfererValues[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x22 + } + } + if len(x.Forecaster) > 0 { + i -= len(x.Forecaster) + copy(dAtA[i:], x.Forecaster) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Forecaster))) + i-- + dAtA[i] = 0x1a + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*OneOutInfererForecasterValues) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OneOutInfererForecasterValues: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: OneOutInfererForecasterValues: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Forecaster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OneOutInfererValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.OneOutInfererValues = append(x.OneOutInfererValues, &WithheldWorkerAttributedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.OneOutInfererValues[len(x.OneOutInfererValues)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_ValueBundle_6_list)(nil) + +type _ValueBundle_6_list struct { + list *[]*WorkerAttributedValue +} + +func (x *_ValueBundle_6_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_ValueBundle_6_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_ValueBundle_6_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WorkerAttributedValue) + (*x.list)[i] = concreteValue +} + +func (x *_ValueBundle_6_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WorkerAttributedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_ValueBundle_6_list) AppendMutable() protoreflect.Value { + v := new(WorkerAttributedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValueBundle_6_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_ValueBundle_6_list) NewElement() protoreflect.Value { + v := new(WorkerAttributedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValueBundle_6_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_ValueBundle_7_list)(nil) + +type _ValueBundle_7_list struct { + list *[]*WorkerAttributedValue +} + +func (x *_ValueBundle_7_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_ValueBundle_7_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_ValueBundle_7_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WorkerAttributedValue) + (*x.list)[i] = concreteValue +} + +func (x *_ValueBundle_7_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WorkerAttributedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_ValueBundle_7_list) AppendMutable() protoreflect.Value { + v := new(WorkerAttributedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValueBundle_7_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_ValueBundle_7_list) NewElement() protoreflect.Value { + v := new(WorkerAttributedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValueBundle_7_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_ValueBundle_9_list)(nil) + +type _ValueBundle_9_list struct { + list *[]*WithheldWorkerAttributedValue +} + +func (x *_ValueBundle_9_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_ValueBundle_9_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_ValueBundle_9_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WithheldWorkerAttributedValue) + (*x.list)[i] = concreteValue +} + +func (x *_ValueBundle_9_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WithheldWorkerAttributedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_ValueBundle_9_list) AppendMutable() protoreflect.Value { + v := new(WithheldWorkerAttributedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValueBundle_9_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_ValueBundle_9_list) NewElement() protoreflect.Value { + v := new(WithheldWorkerAttributedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValueBundle_9_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_ValueBundle_10_list)(nil) + +type _ValueBundle_10_list struct { + list *[]*WithheldWorkerAttributedValue +} + +func (x *_ValueBundle_10_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_ValueBundle_10_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_ValueBundle_10_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WithheldWorkerAttributedValue) + (*x.list)[i] = concreteValue +} + +func (x *_ValueBundle_10_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WithheldWorkerAttributedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_ValueBundle_10_list) AppendMutable() protoreflect.Value { + v := new(WithheldWorkerAttributedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValueBundle_10_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_ValueBundle_10_list) NewElement() protoreflect.Value { + v := new(WithheldWorkerAttributedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValueBundle_10_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_ValueBundle_11_list)(nil) + +type _ValueBundle_11_list struct { + list *[]*WorkerAttributedValue +} + +func (x *_ValueBundle_11_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_ValueBundle_11_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_ValueBundle_11_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WorkerAttributedValue) + (*x.list)[i] = concreteValue +} + +func (x *_ValueBundle_11_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*WorkerAttributedValue) + *x.list = append(*x.list, concreteValue) +} + +func (x *_ValueBundle_11_list) AppendMutable() protoreflect.Value { + v := new(WorkerAttributedValue) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValueBundle_11_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_ValueBundle_11_list) NewElement() protoreflect.Value { + v := new(WorkerAttributedValue) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValueBundle_11_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_ValueBundle_12_list)(nil) + +type _ValueBundle_12_list struct { + list *[]*OneOutInfererForecasterValues +} + +func (x *_ValueBundle_12_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_ValueBundle_12_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_ValueBundle_12_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*OneOutInfererForecasterValues) + (*x.list)[i] = concreteValue +} + +func (x *_ValueBundle_12_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*OneOutInfererForecasterValues) + *x.list = append(*x.list, concreteValue) +} + +func (x *_ValueBundle_12_list) AppendMutable() protoreflect.Value { + v := new(OneOutInfererForecasterValues) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValueBundle_12_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_ValueBundle_12_list) NewElement() protoreflect.Value { + v := new(OneOutInfererForecasterValues) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ValueBundle_12_list) IsValid() bool { + return x.list != nil +} + +var ( + md_ValueBundle protoreflect.MessageDescriptor + fd_ValueBundle_topic_id protoreflect.FieldDescriptor + fd_ValueBundle_reputer_request_nonce protoreflect.FieldDescriptor + fd_ValueBundle_reputer protoreflect.FieldDescriptor + fd_ValueBundle_extra_data protoreflect.FieldDescriptor + fd_ValueBundle_combined_value protoreflect.FieldDescriptor + fd_ValueBundle_inferer_values protoreflect.FieldDescriptor + fd_ValueBundle_forecaster_values protoreflect.FieldDescriptor + fd_ValueBundle_naive_value protoreflect.FieldDescriptor + fd_ValueBundle_one_out_inferer_values protoreflect.FieldDescriptor + fd_ValueBundle_one_out_forecaster_values protoreflect.FieldDescriptor + fd_ValueBundle_one_in_forecaster_values protoreflect.FieldDescriptor + fd_ValueBundle_one_out_inferer_forecaster_values protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_reputer_proto_init() + md_ValueBundle = File_emissions_v2_reputer_proto.Messages().ByName("ValueBundle") + fd_ValueBundle_topic_id = md_ValueBundle.Fields().ByName("topic_id") + fd_ValueBundle_reputer_request_nonce = md_ValueBundle.Fields().ByName("reputer_request_nonce") + fd_ValueBundle_reputer = md_ValueBundle.Fields().ByName("reputer") + fd_ValueBundle_extra_data = md_ValueBundle.Fields().ByName("extra_data") + fd_ValueBundle_combined_value = md_ValueBundle.Fields().ByName("combined_value") + fd_ValueBundle_inferer_values = md_ValueBundle.Fields().ByName("inferer_values") + fd_ValueBundle_forecaster_values = md_ValueBundle.Fields().ByName("forecaster_values") + fd_ValueBundle_naive_value = md_ValueBundle.Fields().ByName("naive_value") + fd_ValueBundle_one_out_inferer_values = md_ValueBundle.Fields().ByName("one_out_inferer_values") + fd_ValueBundle_one_out_forecaster_values = md_ValueBundle.Fields().ByName("one_out_forecaster_values") + fd_ValueBundle_one_in_forecaster_values = md_ValueBundle.Fields().ByName("one_in_forecaster_values") + fd_ValueBundle_one_out_inferer_forecaster_values = md_ValueBundle.Fields().ByName("one_out_inferer_forecaster_values") +} + +var _ protoreflect.Message = (*fastReflection_ValueBundle)(nil) + +type fastReflection_ValueBundle ValueBundle + +func (x *ValueBundle) ProtoReflect() protoreflect.Message { + return (*fastReflection_ValueBundle)(x) +} + +func (x *ValueBundle) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_reputer_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_ValueBundle_messageType fastReflection_ValueBundle_messageType +var _ protoreflect.MessageType = fastReflection_ValueBundle_messageType{} + +type fastReflection_ValueBundle_messageType struct{} + +func (x fastReflection_ValueBundle_messageType) Zero() protoreflect.Message { + return (*fastReflection_ValueBundle)(nil) +} +func (x fastReflection_ValueBundle_messageType) New() protoreflect.Message { + return new(fastReflection_ValueBundle) +} +func (x fastReflection_ValueBundle_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ValueBundle +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ValueBundle) Descriptor() protoreflect.MessageDescriptor { + return md_ValueBundle +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ValueBundle) Type() protoreflect.MessageType { + return _fastReflection_ValueBundle_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ValueBundle) New() protoreflect.Message { + return new(fastReflection_ValueBundle) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ValueBundle) Interface() protoreflect.ProtoMessage { + return (*ValueBundle)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ValueBundle) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_ValueBundle_topic_id, value) { + return + } + } + if x.ReputerRequestNonce != nil { + value := protoreflect.ValueOfMessage(x.ReputerRequestNonce.ProtoReflect()) + if !f(fd_ValueBundle_reputer_request_nonce, value) { + return + } + } + if x.Reputer != "" { + value := protoreflect.ValueOfString(x.Reputer) + if !f(fd_ValueBundle_reputer, value) { + return + } + } + if len(x.ExtraData) != 0 { + value := protoreflect.ValueOfBytes(x.ExtraData) + if !f(fd_ValueBundle_extra_data, value) { + return + } + } + if x.CombinedValue != "" { + value := protoreflect.ValueOfString(x.CombinedValue) + if !f(fd_ValueBundle_combined_value, value) { + return + } + } + if len(x.InfererValues) != 0 { + value := protoreflect.ValueOfList(&_ValueBundle_6_list{list: &x.InfererValues}) + if !f(fd_ValueBundle_inferer_values, value) { + return + } + } + if len(x.ForecasterValues) != 0 { + value := protoreflect.ValueOfList(&_ValueBundle_7_list{list: &x.ForecasterValues}) + if !f(fd_ValueBundle_forecaster_values, value) { + return + } + } + if x.NaiveValue != "" { + value := protoreflect.ValueOfString(x.NaiveValue) + if !f(fd_ValueBundle_naive_value, value) { + return + } + } + if len(x.OneOutInfererValues) != 0 { + value := protoreflect.ValueOfList(&_ValueBundle_9_list{list: &x.OneOutInfererValues}) + if !f(fd_ValueBundle_one_out_inferer_values, value) { + return + } + } + if len(x.OneOutForecasterValues) != 0 { + value := protoreflect.ValueOfList(&_ValueBundle_10_list{list: &x.OneOutForecasterValues}) + if !f(fd_ValueBundle_one_out_forecaster_values, value) { + return + } + } + if len(x.OneInForecasterValues) != 0 { + value := protoreflect.ValueOfList(&_ValueBundle_11_list{list: &x.OneInForecasterValues}) + if !f(fd_ValueBundle_one_in_forecaster_values, value) { + return + } + } + if len(x.OneOutInfererForecasterValues) != 0 { + value := protoreflect.ValueOfList(&_ValueBundle_12_list{list: &x.OneOutInfererForecasterValues}) + if !f(fd_ValueBundle_one_out_inferer_forecaster_values, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_ValueBundle) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.ValueBundle.topic_id": + return x.TopicId != uint64(0) + case "emissions.v2.ValueBundle.reputer_request_nonce": + return x.ReputerRequestNonce != nil + case "emissions.v2.ValueBundle.reputer": + return x.Reputer != "" + case "emissions.v2.ValueBundle.extra_data": + return len(x.ExtraData) != 0 + case "emissions.v2.ValueBundle.combined_value": + return x.CombinedValue != "" + case "emissions.v2.ValueBundle.inferer_values": + return len(x.InfererValues) != 0 + case "emissions.v2.ValueBundle.forecaster_values": + return len(x.ForecasterValues) != 0 + case "emissions.v2.ValueBundle.naive_value": + return x.NaiveValue != "" + case "emissions.v2.ValueBundle.one_out_inferer_values": + return len(x.OneOutInfererValues) != 0 + case "emissions.v2.ValueBundle.one_out_forecaster_values": + return len(x.OneOutForecasterValues) != 0 + case "emissions.v2.ValueBundle.one_in_forecaster_values": + return len(x.OneInForecasterValues) != 0 + case "emissions.v2.ValueBundle.one_out_inferer_forecaster_values": + return len(x.OneOutInfererForecasterValues) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ValueBundle")) + } + panic(fmt.Errorf("message emissions.v2.ValueBundle does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ValueBundle) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.ValueBundle.topic_id": + x.TopicId = uint64(0) + case "emissions.v2.ValueBundle.reputer_request_nonce": + x.ReputerRequestNonce = nil + case "emissions.v2.ValueBundle.reputer": + x.Reputer = "" + case "emissions.v2.ValueBundle.extra_data": + x.ExtraData = nil + case "emissions.v2.ValueBundle.combined_value": + x.CombinedValue = "" + case "emissions.v2.ValueBundle.inferer_values": + x.InfererValues = nil + case "emissions.v2.ValueBundle.forecaster_values": + x.ForecasterValues = nil + case "emissions.v2.ValueBundle.naive_value": + x.NaiveValue = "" + case "emissions.v2.ValueBundle.one_out_inferer_values": + x.OneOutInfererValues = nil + case "emissions.v2.ValueBundle.one_out_forecaster_values": + x.OneOutForecasterValues = nil + case "emissions.v2.ValueBundle.one_in_forecaster_values": + x.OneInForecasterValues = nil + case "emissions.v2.ValueBundle.one_out_inferer_forecaster_values": + x.OneOutInfererForecasterValues = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ValueBundle")) + } + panic(fmt.Errorf("message emissions.v2.ValueBundle does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ValueBundle) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.ValueBundle.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.ValueBundle.reputer_request_nonce": + value := x.ReputerRequestNonce + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.ValueBundle.reputer": + value := x.Reputer + return protoreflect.ValueOfString(value) + case "emissions.v2.ValueBundle.extra_data": + value := x.ExtraData + return protoreflect.ValueOfBytes(value) + case "emissions.v2.ValueBundle.combined_value": + value := x.CombinedValue + return protoreflect.ValueOfString(value) + case "emissions.v2.ValueBundle.inferer_values": + if len(x.InfererValues) == 0 { + return protoreflect.ValueOfList(&_ValueBundle_6_list{}) + } + listValue := &_ValueBundle_6_list{list: &x.InfererValues} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.ValueBundle.forecaster_values": + if len(x.ForecasterValues) == 0 { + return protoreflect.ValueOfList(&_ValueBundle_7_list{}) + } + listValue := &_ValueBundle_7_list{list: &x.ForecasterValues} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.ValueBundle.naive_value": + value := x.NaiveValue + return protoreflect.ValueOfString(value) + case "emissions.v2.ValueBundle.one_out_inferer_values": + if len(x.OneOutInfererValues) == 0 { + return protoreflect.ValueOfList(&_ValueBundle_9_list{}) + } + listValue := &_ValueBundle_9_list{list: &x.OneOutInfererValues} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.ValueBundle.one_out_forecaster_values": + if len(x.OneOutForecasterValues) == 0 { + return protoreflect.ValueOfList(&_ValueBundle_10_list{}) + } + listValue := &_ValueBundle_10_list{list: &x.OneOutForecasterValues} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.ValueBundle.one_in_forecaster_values": + if len(x.OneInForecasterValues) == 0 { + return protoreflect.ValueOfList(&_ValueBundle_11_list{}) + } + listValue := &_ValueBundle_11_list{list: &x.OneInForecasterValues} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.ValueBundle.one_out_inferer_forecaster_values": + if len(x.OneOutInfererForecasterValues) == 0 { + return protoreflect.ValueOfList(&_ValueBundle_12_list{}) + } + listValue := &_ValueBundle_12_list{list: &x.OneOutInfererForecasterValues} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ValueBundle")) + } + panic(fmt.Errorf("message emissions.v2.ValueBundle does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ValueBundle) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.ValueBundle.topic_id": + x.TopicId = value.Uint() + case "emissions.v2.ValueBundle.reputer_request_nonce": + x.ReputerRequestNonce = value.Message().Interface().(*ReputerRequestNonce) + case "emissions.v2.ValueBundle.reputer": + x.Reputer = value.Interface().(string) + case "emissions.v2.ValueBundle.extra_data": + x.ExtraData = value.Bytes() + case "emissions.v2.ValueBundle.combined_value": + x.CombinedValue = value.Interface().(string) + case "emissions.v2.ValueBundle.inferer_values": + lv := value.List() + clv := lv.(*_ValueBundle_6_list) + x.InfererValues = *clv.list + case "emissions.v2.ValueBundle.forecaster_values": + lv := value.List() + clv := lv.(*_ValueBundle_7_list) + x.ForecasterValues = *clv.list + case "emissions.v2.ValueBundle.naive_value": + x.NaiveValue = value.Interface().(string) + case "emissions.v2.ValueBundle.one_out_inferer_values": + lv := value.List() + clv := lv.(*_ValueBundle_9_list) + x.OneOutInfererValues = *clv.list + case "emissions.v2.ValueBundle.one_out_forecaster_values": + lv := value.List() + clv := lv.(*_ValueBundle_10_list) + x.OneOutForecasterValues = *clv.list + case "emissions.v2.ValueBundle.one_in_forecaster_values": + lv := value.List() + clv := lv.(*_ValueBundle_11_list) + x.OneInForecasterValues = *clv.list + case "emissions.v2.ValueBundle.one_out_inferer_forecaster_values": + lv := value.List() + clv := lv.(*_ValueBundle_12_list) + x.OneOutInfererForecasterValues = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ValueBundle")) + } + panic(fmt.Errorf("message emissions.v2.ValueBundle does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ValueBundle) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.ValueBundle.reputer_request_nonce": + if x.ReputerRequestNonce == nil { + x.ReputerRequestNonce = new(ReputerRequestNonce) + } + return protoreflect.ValueOfMessage(x.ReputerRequestNonce.ProtoReflect()) + case "emissions.v2.ValueBundle.inferer_values": + if x.InfererValues == nil { + x.InfererValues = []*WorkerAttributedValue{} + } + value := &_ValueBundle_6_list{list: &x.InfererValues} + return protoreflect.ValueOfList(value) + case "emissions.v2.ValueBundle.forecaster_values": + if x.ForecasterValues == nil { + x.ForecasterValues = []*WorkerAttributedValue{} + } + value := &_ValueBundle_7_list{list: &x.ForecasterValues} + return protoreflect.ValueOfList(value) + case "emissions.v2.ValueBundle.one_out_inferer_values": + if x.OneOutInfererValues == nil { + x.OneOutInfererValues = []*WithheldWorkerAttributedValue{} + } + value := &_ValueBundle_9_list{list: &x.OneOutInfererValues} + return protoreflect.ValueOfList(value) + case "emissions.v2.ValueBundle.one_out_forecaster_values": + if x.OneOutForecasterValues == nil { + x.OneOutForecasterValues = []*WithheldWorkerAttributedValue{} + } + value := &_ValueBundle_10_list{list: &x.OneOutForecasterValues} + return protoreflect.ValueOfList(value) + case "emissions.v2.ValueBundle.one_in_forecaster_values": + if x.OneInForecasterValues == nil { + x.OneInForecasterValues = []*WorkerAttributedValue{} + } + value := &_ValueBundle_11_list{list: &x.OneInForecasterValues} + return protoreflect.ValueOfList(value) + case "emissions.v2.ValueBundle.one_out_inferer_forecaster_values": + if x.OneOutInfererForecasterValues == nil { + x.OneOutInfererForecasterValues = []*OneOutInfererForecasterValues{} + } + value := &_ValueBundle_12_list{list: &x.OneOutInfererForecasterValues} + return protoreflect.ValueOfList(value) + case "emissions.v2.ValueBundle.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.ValueBundle is not mutable")) + case "emissions.v2.ValueBundle.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.ValueBundle is not mutable")) + case "emissions.v2.ValueBundle.extra_data": + panic(fmt.Errorf("field extra_data of message emissions.v2.ValueBundle is not mutable")) + case "emissions.v2.ValueBundle.combined_value": + panic(fmt.Errorf("field combined_value of message emissions.v2.ValueBundle is not mutable")) + case "emissions.v2.ValueBundle.naive_value": + panic(fmt.Errorf("field naive_value of message emissions.v2.ValueBundle is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ValueBundle")) + } + panic(fmt.Errorf("message emissions.v2.ValueBundle does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ValueBundle) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.ValueBundle.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.ValueBundle.reputer_request_nonce": + m := new(ReputerRequestNonce) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.ValueBundle.reputer": + return protoreflect.ValueOfString("") + case "emissions.v2.ValueBundle.extra_data": + return protoreflect.ValueOfBytes(nil) + case "emissions.v2.ValueBundle.combined_value": + return protoreflect.ValueOfString("") + case "emissions.v2.ValueBundle.inferer_values": + list := []*WorkerAttributedValue{} + return protoreflect.ValueOfList(&_ValueBundle_6_list{list: &list}) + case "emissions.v2.ValueBundle.forecaster_values": + list := []*WorkerAttributedValue{} + return protoreflect.ValueOfList(&_ValueBundle_7_list{list: &list}) + case "emissions.v2.ValueBundle.naive_value": + return protoreflect.ValueOfString("") + case "emissions.v2.ValueBundle.one_out_inferer_values": + list := []*WithheldWorkerAttributedValue{} + return protoreflect.ValueOfList(&_ValueBundle_9_list{list: &list}) + case "emissions.v2.ValueBundle.one_out_forecaster_values": + list := []*WithheldWorkerAttributedValue{} + return protoreflect.ValueOfList(&_ValueBundle_10_list{list: &list}) + case "emissions.v2.ValueBundle.one_in_forecaster_values": + list := []*WorkerAttributedValue{} + return protoreflect.ValueOfList(&_ValueBundle_11_list{list: &list}) + case "emissions.v2.ValueBundle.one_out_inferer_forecaster_values": + list := []*OneOutInfererForecasterValues{} + return protoreflect.ValueOfList(&_ValueBundle_12_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ValueBundle")) + } + panic(fmt.Errorf("message emissions.v2.ValueBundle does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ValueBundle) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.ValueBundle", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ValueBundle) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ValueBundle) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ValueBundle) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ValueBundle) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ValueBundle) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } + if x.ReputerRequestNonce != nil { + l = options.Size(x.ReputerRequestNonce) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Reputer) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.ExtraData) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.CombinedValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.InfererValues) > 0 { + for _, e := range x.InfererValues { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.ForecasterValues) > 0 { + for _, e := range x.ForecasterValues { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + l = len(x.NaiveValue) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if len(x.OneOutInfererValues) > 0 { + for _, e := range x.OneOutInfererValues { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.OneOutForecasterValues) > 0 { + for _, e := range x.OneOutForecasterValues { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.OneInForecasterValues) > 0 { + for _, e := range x.OneInForecasterValues { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if len(x.OneOutInfererForecasterValues) > 0 { + for _, e := range x.OneOutInfererForecasterValues { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*ValueBundle) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.OneOutInfererForecasterValues) > 0 { + for iNdEx := len(x.OneOutInfererForecasterValues) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.OneOutInfererForecasterValues[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x62 + } + } + if len(x.OneInForecasterValues) > 0 { + for iNdEx := len(x.OneInForecasterValues) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.OneInForecasterValues[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x5a + } + } + if len(x.OneOutForecasterValues) > 0 { + for iNdEx := len(x.OneOutForecasterValues) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.OneOutForecasterValues[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x52 + } + } + if len(x.OneOutInfererValues) > 0 { + for iNdEx := len(x.OneOutInfererValues) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.OneOutInfererValues[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x4a + } + } + if len(x.NaiveValue) > 0 { + i -= len(x.NaiveValue) + copy(dAtA[i:], x.NaiveValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.NaiveValue))) + i-- + dAtA[i] = 0x42 + } + if len(x.ForecasterValues) > 0 { + for iNdEx := len(x.ForecasterValues) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.ForecasterValues[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x3a + } + } + if len(x.InfererValues) > 0 { + for iNdEx := len(x.InfererValues) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.InfererValues[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x32 + } + } + if len(x.CombinedValue) > 0 { + i -= len(x.CombinedValue) + copy(dAtA[i:], x.CombinedValue) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.CombinedValue))) + i-- + dAtA[i] = 0x2a + } + if len(x.ExtraData) > 0 { + i -= len(x.ExtraData) + copy(dAtA[i:], x.ExtraData) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ExtraData))) + i-- + dAtA[i] = 0x22 + } + if len(x.Reputer) > 0 { + i -= len(x.Reputer) + copy(dAtA[i:], x.Reputer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Reputer))) + i-- + dAtA[i] = 0x1a + } + if x.ReputerRequestNonce != nil { + encoded, err := options.Marshal(x.ReputerRequestNonce) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x12 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*ValueBundle) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValueBundle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ValueBundle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerRequestNonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.ReputerRequestNonce == nil { + x.ReputerRequestNonce = &ReputerRequestNonce{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ReputerRequestNonce); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ExtraData", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ExtraData = append(x.ExtraData[:0], dAtA[iNdEx:postIndex]...) + if x.ExtraData == nil { + x.ExtraData = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field CombinedValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.CombinedValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InfererValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.InfererValues = append(x.InfererValues, &WorkerAttributedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.InfererValues[len(x.InfererValues)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ForecasterValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ForecasterValues = append(x.ForecasterValues, &WorkerAttributedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ForecasterValues[len(x.ForecasterValues)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field NaiveValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.NaiveValue = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OneOutInfererValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.OneOutInfererValues = append(x.OneOutInfererValues, &WithheldWorkerAttributedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.OneOutInfererValues[len(x.OneOutInfererValues)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OneOutForecasterValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.OneOutForecasterValues = append(x.OneOutForecasterValues, &WithheldWorkerAttributedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.OneOutForecasterValues[len(x.OneOutForecasterValues)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OneInForecasterValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.OneInForecasterValues = append(x.OneInForecasterValues, &WorkerAttributedValue{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.OneInForecasterValues[len(x.OneInForecasterValues)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field OneOutInfererForecasterValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.OneOutInfererForecasterValues = append(x.OneOutInfererForecasterValues, &OneOutInfererForecasterValues{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.OneOutInfererForecasterValues[len(x.OneOutInfererForecasterValues)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_ReputerValueBundle protoreflect.MessageDescriptor + fd_ReputerValueBundle_value_bundle protoreflect.FieldDescriptor + fd_ReputerValueBundle_signature protoreflect.FieldDescriptor + fd_ReputerValueBundle_pubkey protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_reputer_proto_init() + md_ReputerValueBundle = File_emissions_v2_reputer_proto.Messages().ByName("ReputerValueBundle") + fd_ReputerValueBundle_value_bundle = md_ReputerValueBundle.Fields().ByName("value_bundle") + fd_ReputerValueBundle_signature = md_ReputerValueBundle.Fields().ByName("signature") + fd_ReputerValueBundle_pubkey = md_ReputerValueBundle.Fields().ByName("pubkey") +} + +var _ protoreflect.Message = (*fastReflection_ReputerValueBundle)(nil) + +type fastReflection_ReputerValueBundle ReputerValueBundle + +func (x *ReputerValueBundle) ProtoReflect() protoreflect.Message { + return (*fastReflection_ReputerValueBundle)(x) +} + +func (x *ReputerValueBundle) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_reputer_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_ReputerValueBundle_messageType fastReflection_ReputerValueBundle_messageType +var _ protoreflect.MessageType = fastReflection_ReputerValueBundle_messageType{} + +type fastReflection_ReputerValueBundle_messageType struct{} + +func (x fastReflection_ReputerValueBundle_messageType) Zero() protoreflect.Message { + return (*fastReflection_ReputerValueBundle)(nil) +} +func (x fastReflection_ReputerValueBundle_messageType) New() protoreflect.Message { + return new(fastReflection_ReputerValueBundle) +} +func (x fastReflection_ReputerValueBundle_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ReputerValueBundle +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ReputerValueBundle) Descriptor() protoreflect.MessageDescriptor { + return md_ReputerValueBundle +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ReputerValueBundle) Type() protoreflect.MessageType { + return _fastReflection_ReputerValueBundle_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ReputerValueBundle) New() protoreflect.Message { + return new(fastReflection_ReputerValueBundle) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ReputerValueBundle) Interface() protoreflect.ProtoMessage { + return (*ReputerValueBundle)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ReputerValueBundle) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.ValueBundle != nil { + value := protoreflect.ValueOfMessage(x.ValueBundle.ProtoReflect()) + if !f(fd_ReputerValueBundle_value_bundle, value) { + return + } + } + if len(x.Signature) != 0 { + value := protoreflect.ValueOfBytes(x.Signature) + if !f(fd_ReputerValueBundle_signature, value) { + return + } + } + if x.Pubkey != "" { + value := protoreflect.ValueOfString(x.Pubkey) + if !f(fd_ReputerValueBundle_pubkey, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_ReputerValueBundle) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.ReputerValueBundle.value_bundle": + return x.ValueBundle != nil + case "emissions.v2.ReputerValueBundle.signature": + return len(x.Signature) != 0 + case "emissions.v2.ReputerValueBundle.pubkey": + return x.Pubkey != "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerValueBundle")) + } + panic(fmt.Errorf("message emissions.v2.ReputerValueBundle does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerValueBundle) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.ReputerValueBundle.value_bundle": + x.ValueBundle = nil + case "emissions.v2.ReputerValueBundle.signature": + x.Signature = nil + case "emissions.v2.ReputerValueBundle.pubkey": + x.Pubkey = "" + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerValueBundle")) + } + panic(fmt.Errorf("message emissions.v2.ReputerValueBundle does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ReputerValueBundle) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.ReputerValueBundle.value_bundle": + value := x.ValueBundle + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.ReputerValueBundle.signature": + value := x.Signature + return protoreflect.ValueOfBytes(value) + case "emissions.v2.ReputerValueBundle.pubkey": + value := x.Pubkey + return protoreflect.ValueOfString(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerValueBundle")) + } + panic(fmt.Errorf("message emissions.v2.ReputerValueBundle does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerValueBundle) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.ReputerValueBundle.value_bundle": + x.ValueBundle = value.Message().Interface().(*ValueBundle) + case "emissions.v2.ReputerValueBundle.signature": + x.Signature = value.Bytes() + case "emissions.v2.ReputerValueBundle.pubkey": + x.Pubkey = value.Interface().(string) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerValueBundle")) + } + panic(fmt.Errorf("message emissions.v2.ReputerValueBundle does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerValueBundle) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.ReputerValueBundle.value_bundle": + if x.ValueBundle == nil { + x.ValueBundle = new(ValueBundle) + } + return protoreflect.ValueOfMessage(x.ValueBundle.ProtoReflect()) + case "emissions.v2.ReputerValueBundle.signature": + panic(fmt.Errorf("field signature of message emissions.v2.ReputerValueBundle is not mutable")) + case "emissions.v2.ReputerValueBundle.pubkey": + panic(fmt.Errorf("field pubkey of message emissions.v2.ReputerValueBundle is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerValueBundle")) + } + panic(fmt.Errorf("message emissions.v2.ReputerValueBundle does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ReputerValueBundle) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.ReputerValueBundle.value_bundle": + m := new(ValueBundle) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.ReputerValueBundle.signature": + return protoreflect.ValueOfBytes(nil) + case "emissions.v2.ReputerValueBundle.pubkey": + return protoreflect.ValueOfString("") + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerValueBundle")) + } + panic(fmt.Errorf("message emissions.v2.ReputerValueBundle does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ReputerValueBundle) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.ReputerValueBundle", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ReputerValueBundle) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerValueBundle) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ReputerValueBundle) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ReputerValueBundle) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ReputerValueBundle) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.ValueBundle != nil { + l = options.Size(x.ValueBundle) + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Signature) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Pubkey) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*ReputerValueBundle) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Pubkey) > 0 { + i -= len(x.Pubkey) + copy(dAtA[i:], x.Pubkey) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Pubkey))) + i-- + dAtA[i] = 0x1a + } + if len(x.Signature) > 0 { + i -= len(x.Signature) + copy(dAtA[i:], x.Signature) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signature))) + i-- + dAtA[i] = 0x12 + } + if x.ValueBundle != nil { + encoded, err := options.Marshal(x.ValueBundle) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*ReputerValueBundle) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ReputerValueBundle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ReputerValueBundle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ValueBundle", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.ValueBundle == nil { + x.ValueBundle = &ValueBundle{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ValueBundle); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Signature = append(x.Signature[:0], dAtA[iNdEx:postIndex]...) + if x.Signature == nil { + x.Signature = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Pubkey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_ReputerValueBundles_1_list)(nil) + +type _ReputerValueBundles_1_list struct { + list *[]*ReputerValueBundle +} + +func (x *_ReputerValueBundles_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_ReputerValueBundles_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_ReputerValueBundles_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ReputerValueBundle) + (*x.list)[i] = concreteValue +} + +func (x *_ReputerValueBundles_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*ReputerValueBundle) + *x.list = append(*x.list, concreteValue) +} + +func (x *_ReputerValueBundles_1_list) AppendMutable() protoreflect.Value { + v := new(ReputerValueBundle) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ReputerValueBundles_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_ReputerValueBundles_1_list) NewElement() protoreflect.Value { + v := new(ReputerValueBundle) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_ReputerValueBundles_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_ReputerValueBundles protoreflect.MessageDescriptor + fd_ReputerValueBundles_reputer_value_bundles protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_reputer_proto_init() + md_ReputerValueBundles = File_emissions_v2_reputer_proto.Messages().ByName("ReputerValueBundles") + fd_ReputerValueBundles_reputer_value_bundles = md_ReputerValueBundles.Fields().ByName("reputer_value_bundles") +} + +var _ protoreflect.Message = (*fastReflection_ReputerValueBundles)(nil) + +type fastReflection_ReputerValueBundles ReputerValueBundles + +func (x *ReputerValueBundles) ProtoReflect() protoreflect.Message { + return (*fastReflection_ReputerValueBundles)(x) +} + +func (x *ReputerValueBundles) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_reputer_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_ReputerValueBundles_messageType fastReflection_ReputerValueBundles_messageType +var _ protoreflect.MessageType = fastReflection_ReputerValueBundles_messageType{} + +type fastReflection_ReputerValueBundles_messageType struct{} + +func (x fastReflection_ReputerValueBundles_messageType) Zero() protoreflect.Message { + return (*fastReflection_ReputerValueBundles)(nil) +} +func (x fastReflection_ReputerValueBundles_messageType) New() protoreflect.Message { + return new(fastReflection_ReputerValueBundles) +} +func (x fastReflection_ReputerValueBundles_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_ReputerValueBundles +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_ReputerValueBundles) Descriptor() protoreflect.MessageDescriptor { + return md_ReputerValueBundles +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_ReputerValueBundles) Type() protoreflect.MessageType { + return _fastReflection_ReputerValueBundles_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_ReputerValueBundles) New() protoreflect.Message { + return new(fastReflection_ReputerValueBundles) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_ReputerValueBundles) Interface() protoreflect.ProtoMessage { + return (*ReputerValueBundles)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_ReputerValueBundles) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.ReputerValueBundles) != 0 { + value := protoreflect.ValueOfList(&_ReputerValueBundles_1_list{list: &x.ReputerValueBundles}) + if !f(fd_ReputerValueBundles_reputer_value_bundles, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_ReputerValueBundles) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.ReputerValueBundles.reputer_value_bundles": + return len(x.ReputerValueBundles) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.ReputerValueBundles does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerValueBundles) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.ReputerValueBundles.reputer_value_bundles": + x.ReputerValueBundles = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.ReputerValueBundles does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_ReputerValueBundles) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.ReputerValueBundles.reputer_value_bundles": + if len(x.ReputerValueBundles) == 0 { + return protoreflect.ValueOfList(&_ReputerValueBundles_1_list{}) + } + listValue := &_ReputerValueBundles_1_list{list: &x.ReputerValueBundles} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.ReputerValueBundles does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerValueBundles) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.ReputerValueBundles.reputer_value_bundles": + lv := value.List() + clv := lv.(*_ReputerValueBundles_1_list) + x.ReputerValueBundles = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.ReputerValueBundles does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerValueBundles) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.ReputerValueBundles.reputer_value_bundles": + if x.ReputerValueBundles == nil { + x.ReputerValueBundles = []*ReputerValueBundle{} + } + value := &_ReputerValueBundles_1_list{list: &x.ReputerValueBundles} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.ReputerValueBundles does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_ReputerValueBundles) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.ReputerValueBundles.reputer_value_bundles": + list := []*ReputerValueBundle{} + return protoreflect.ValueOfList(&_ReputerValueBundles_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ReputerValueBundles")) + } + panic(fmt.Errorf("message emissions.v2.ReputerValueBundles does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_ReputerValueBundles) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.ReputerValueBundles", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_ReputerValueBundles) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_ReputerValueBundles) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_ReputerValueBundles) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_ReputerValueBundles) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*ReputerValueBundles) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.ReputerValueBundles) > 0 { + for _, e := range x.ReputerValueBundles { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*ReputerValueBundles) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.ReputerValueBundles) > 0 { + for iNdEx := len(x.ReputerValueBundles) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.ReputerValueBundles[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*ReputerValueBundles) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ReputerValueBundles: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: ReputerValueBundles: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerValueBundles", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.ReputerValueBundles = append(x.ReputerValueBundles, &ReputerValueBundle{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ReputerValueBundles[len(x.ReputerValueBundles)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: emissions/v2/reputer.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type WorkerAttributedValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Worker string `protobuf:"bytes,1,opt,name=worker,proto3" json:"worker,omitempty"` // worker who created the value + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *WorkerAttributedValue) Reset() { + *x = WorkerAttributedValue{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_reputer_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WorkerAttributedValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WorkerAttributedValue) ProtoMessage() {} + +// Deprecated: Use WorkerAttributedValue.ProtoReflect.Descriptor instead. +func (*WorkerAttributedValue) Descriptor() ([]byte, []int) { + return file_emissions_v2_reputer_proto_rawDescGZIP(), []int{0} +} + +func (x *WorkerAttributedValue) GetWorker() string { + if x != nil { + return x.Worker + } + return "" +} + +func (x *WorkerAttributedValue) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +type WithheldWorkerAttributedValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Worker string `protobuf:"bytes,1,opt,name=worker,proto3" json:"worker,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` +} + +func (x *WithheldWorkerAttributedValue) Reset() { + *x = WithheldWorkerAttributedValue{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_reputer_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *WithheldWorkerAttributedValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*WithheldWorkerAttributedValue) ProtoMessage() {} + +// Deprecated: Use WithheldWorkerAttributedValue.ProtoReflect.Descriptor instead. +func (*WithheldWorkerAttributedValue) Descriptor() ([]byte, []int) { + return file_emissions_v2_reputer_proto_rawDescGZIP(), []int{1} +} + +func (x *WithheldWorkerAttributedValue) GetWorker() string { + if x != nil { + return x.Worker + } + return "" +} + +func (x *WithheldWorkerAttributedValue) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +type OneOutInfererForecasterValues struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Forecaster string `protobuf:"bytes,3,opt,name=forecaster,proto3" json:"forecaster,omitempty"` + OneOutInfererValues []*WithheldWorkerAttributedValue `protobuf:"bytes,4,rep,name=one_out_inferer_values,json=oneOutInfererValues,proto3" json:"one_out_inferer_values,omitempty"` +} + +func (x *OneOutInfererForecasterValues) Reset() { + *x = OneOutInfererForecasterValues{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_reputer_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *OneOutInfererForecasterValues) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OneOutInfererForecasterValues) ProtoMessage() {} + +// Deprecated: Use OneOutInfererForecasterValues.ProtoReflect.Descriptor instead. +func (*OneOutInfererForecasterValues) Descriptor() ([]byte, []int) { + return file_emissions_v2_reputer_proto_rawDescGZIP(), []int{2} +} + +func (x *OneOutInfererForecasterValues) GetForecaster() string { + if x != nil { + return x.Forecaster + } + return "" +} + +func (x *OneOutInfererForecasterValues) GetOneOutInfererValues() []*WithheldWorkerAttributedValue { + if x != nil { + return x.OneOutInfererValues + } + return nil +} + +// These losses and inferences are calculated per reputer or by the network +// The `m`s in the comments below exist for when they're made by reputers, +// but they may be absent implying that they were made by the network +type ValueBundle struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + ReputerRequestNonce *ReputerRequestNonce `protobuf:"bytes,2,opt,name=reputer_request_nonce,json=reputerRequestNonce,proto3" json:"reputer_request_nonce,omitempty"` + Reputer string `protobuf:"bytes,3,opt,name=reputer,proto3" json:"reputer,omitempty"` + ExtraData []byte `protobuf:"bytes,4,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"` + // R_im || log10 L_im || I_i + CombinedValue string `protobuf:"bytes,5,opt,name=combined_value,json=combinedValue,proto3" json:"combined_value,omitempty"` + // R_ijm || log10 L_ijm || I_ij + InfererValues []*WorkerAttributedValue `protobuf:"bytes,6,rep,name=inferer_values,json=infererValues,proto3" json:"inferer_values,omitempty"` + // R_ikm || log10 L_ikm || I_ik + ForecasterValues []*WorkerAttributedValue `protobuf:"bytes,7,rep,name=forecaster_values,json=forecasterValues,proto3" json:"forecaster_values,omitempty"` + // R^-_im || log10 L^-_im || I^-_i + NaiveValue string `protobuf:"bytes,8,opt,name=naive_value,json=naiveValue,proto3" json:"naive_value,omitempty"` + // Note: forecast-implied inferences are recomputed for each left-out + // inference + OneOutInfererValues []*WithheldWorkerAttributedValue `protobuf:"bytes,9,rep,name=one_out_inferer_values,json=oneOutInfererValues,proto3" json:"one_out_inferer_values,omitempty"` + // R^-_ilm || log10 L^-_ilm || I^-_il where l = any k + OneOutForecasterValues []*WithheldWorkerAttributedValue `protobuf:"bytes,10,rep,name=one_out_forecaster_values,json=oneOutForecasterValues,proto3" json:"one_out_forecaster_values,omitempty"` + // R^+_ikm || log10 L^+_ikm || I^+_ik + // aka one_in_forecaster_values because equivalent to using only one + // forecast-implied inference + OneInForecasterValues []*WorkerAttributedValue `protobuf:"bytes,11,rep,name=one_in_forecaster_values,json=oneInForecasterValues,proto3" json:"one_in_forecaster_values,omitempty"` + // R^-_ilm || log10 L^-_ilm || I^-_il where l = any j + // log10 L^-_j'ikm || I^-_j'ik + OneOutInfererForecasterValues []*OneOutInfererForecasterValues `protobuf:"bytes,12,rep,name=one_out_inferer_forecaster_values,json=oneOutInfererForecasterValues,proto3" json:"one_out_inferer_forecaster_values,omitempty"` +} + +func (x *ValueBundle) Reset() { + *x = ValueBundle{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_reputer_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValueBundle) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValueBundle) ProtoMessage() {} + +// Deprecated: Use ValueBundle.ProtoReflect.Descriptor instead. +func (*ValueBundle) Descriptor() ([]byte, []int) { + return file_emissions_v2_reputer_proto_rawDescGZIP(), []int{3} +} + +func (x *ValueBundle) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + +func (x *ValueBundle) GetReputerRequestNonce() *ReputerRequestNonce { + if x != nil { + return x.ReputerRequestNonce + } + return nil +} + +func (x *ValueBundle) GetReputer() string { + if x != nil { + return x.Reputer + } + return "" +} + +func (x *ValueBundle) GetExtraData() []byte { + if x != nil { + return x.ExtraData + } + return nil +} + +func (x *ValueBundle) GetCombinedValue() string { + if x != nil { + return x.CombinedValue + } + return "" +} + +func (x *ValueBundle) GetInfererValues() []*WorkerAttributedValue { + if x != nil { + return x.InfererValues + } + return nil +} + +func (x *ValueBundle) GetForecasterValues() []*WorkerAttributedValue { + if x != nil { + return x.ForecasterValues + } + return nil +} + +func (x *ValueBundle) GetNaiveValue() string { + if x != nil { + return x.NaiveValue + } + return "" +} + +func (x *ValueBundle) GetOneOutInfererValues() []*WithheldWorkerAttributedValue { + if x != nil { + return x.OneOutInfererValues + } + return nil +} + +func (x *ValueBundle) GetOneOutForecasterValues() []*WithheldWorkerAttributedValue { + if x != nil { + return x.OneOutForecasterValues + } + return nil +} + +func (x *ValueBundle) GetOneInForecasterValues() []*WorkerAttributedValue { + if x != nil { + return x.OneInForecasterValues + } + return nil +} + +func (x *ValueBundle) GetOneOutInfererForecasterValues() []*OneOutInfererForecasterValues { + if x != nil { + return x.OneOutInfererForecasterValues + } + return nil +} + +// For when the bundle is computed on a per-reputer basis (ie.. if there is an +// index `m` in the above) +type ReputerValueBundle struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ValueBundle *ValueBundle `protobuf:"bytes,1,opt,name=value_bundle,json=valueBundle,proto3" json:"value_bundle,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` +} + +func (x *ReputerValueBundle) Reset() { + *x = ReputerValueBundle{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_reputer_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReputerValueBundle) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReputerValueBundle) ProtoMessage() {} + +// Deprecated: Use ReputerValueBundle.ProtoReflect.Descriptor instead. +func (*ReputerValueBundle) Descriptor() ([]byte, []int) { + return file_emissions_v2_reputer_proto_rawDescGZIP(), []int{4} +} + +func (x *ReputerValueBundle) GetValueBundle() *ValueBundle { + if x != nil { + return x.ValueBundle + } + return nil +} + +func (x *ReputerValueBundle) GetSignature() []byte { + if x != nil { + return x.Signature + } + return nil +} + +func (x *ReputerValueBundle) GetPubkey() string { + if x != nil { + return x.Pubkey + } + return "" +} + +type ReputerValueBundles struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ReputerValueBundles []*ReputerValueBundle `protobuf:"bytes,1,rep,name=reputer_value_bundles,json=reputerValueBundles,proto3" json:"reputer_value_bundles,omitempty"` +} + +func (x *ReputerValueBundles) Reset() { + *x = ReputerValueBundles{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_reputer_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ReputerValueBundles) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReputerValueBundles) ProtoMessage() {} + +// Deprecated: Use ReputerValueBundles.ProtoReflect.Descriptor instead. +func (*ReputerValueBundles) Descriptor() ([]byte, []int) { + return file_emissions_v2_reputer_proto_rawDescGZIP(), []int{5} +} + +func (x *ReputerValueBundles) GetReputerValueBundles() []*ReputerValueBundle { + if x != nil { + return x.ReputerValueBundles + } + return nil +} + +var File_emissions_v2_reputer_proto protoreflect.FileDescriptor + +var file_emissions_v2_reputer_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, + 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, + 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x84, 0x01, 0x0a, 0x15, 0x57, + 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, + 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, + 0x2e, 0x44, 0x65, 0x63, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, + 0x01, 0x22, 0x8c, 0x01, 0x0a, 0x1d, 0x57, 0x69, 0x74, 0x68, 0x68, 0x65, 0x6c, 0x64, 0x57, 0x6f, + 0x72, 0x6b, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, + 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, + 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x44, 0x65, 0x63, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, + 0x22, 0xa7, 0x01, 0x0a, 0x1d, 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, + 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, + 0x65, 0x72, 0x12, 0x60, 0x0a, 0x16, 0x6f, 0x6e, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x69, 0x6e, + 0x66, 0x65, 0x72, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x68, 0x65, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x13, 0x6f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xb5, 0x07, 0x0a, 0x0b, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, + 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x55, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x13, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, + 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x72, 0x61, 0x5f, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x78, 0x74, 0x72, + 0x61, 0x44, 0x61, 0x74, 0x61, 0x12, 0x5e, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x65, + 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, + 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0d, 0x63, 0x6f, 0x6d, 0x62, 0x69, 0x6e, 0x65, 0x64, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x4a, 0x0a, 0x0e, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x6f, 0x72, + 0x6b, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x0d, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x12, 0x50, 0x0a, 0x11, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x6f, 0x72, 0x6b, + 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x52, 0x10, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x0b, 0x6e, 0x61, 0x69, 0x76, 0x65, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, + 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, + 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, + 0x63, 0x52, 0x0a, 0x6e, 0x61, 0x69, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x60, 0x0a, + 0x16, 0x6f, 0x6e, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x69, 0x74, + 0x68, 0x68, 0x65, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x41, 0x74, 0x74, 0x72, 0x69, + 0x62, 0x75, 0x74, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x13, 0x6f, 0x6e, 0x65, 0x4f, + 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, + 0x66, 0x0a, 0x19, 0x6f, 0x6e, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x63, + 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x32, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x68, 0x65, 0x6c, 0x64, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x16, 0x6f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, + 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x5c, 0x0a, 0x18, 0x6f, 0x6e, 0x65, 0x5f, 0x69, + 0x6e, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x41, + 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x15, + 0x6f, 0x6e, 0x65, 0x49, 0x6e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x75, 0x0a, 0x21, 0x6f, 0x6e, 0x65, 0x5f, 0x6f, 0x75, 0x74, + 0x5f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, + 0x74, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x4f, 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x46, 0x6f, 0x72, + 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x1d, 0x6f, + 0x6e, 0x65, 0x4f, 0x75, 0x74, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x46, 0x6f, 0x72, 0x65, + 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x3a, 0x04, 0xe8, 0xa0, + 0x1f, 0x01, 0x22, 0x8e, 0x01, 0x0a, 0x12, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x3c, 0x0a, 0x0c, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x19, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x0b, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, + 0x74, 0x75, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, + 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x3a, 0x04, 0xe8, + 0xa0, 0x1f, 0x01, 0x22, 0x6b, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x12, 0x54, 0x0a, 0x15, 0x72, 0x65, + 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x13, 0x72, 0x65, 0x70, + 0x75, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, + 0x42, 0xc2, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0c, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x45, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0c, 0x45, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_emissions_v2_reputer_proto_rawDescOnce sync.Once + file_emissions_v2_reputer_proto_rawDescData = file_emissions_v2_reputer_proto_rawDesc +) + +func file_emissions_v2_reputer_proto_rawDescGZIP() []byte { + file_emissions_v2_reputer_proto_rawDescOnce.Do(func() { + file_emissions_v2_reputer_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_reputer_proto_rawDescData) + }) + return file_emissions_v2_reputer_proto_rawDescData +} + +var file_emissions_v2_reputer_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_emissions_v2_reputer_proto_goTypes = []interface{}{ + (*WorkerAttributedValue)(nil), // 0: emissions.v2.WorkerAttributedValue + (*WithheldWorkerAttributedValue)(nil), // 1: emissions.v2.WithheldWorkerAttributedValue + (*OneOutInfererForecasterValues)(nil), // 2: emissions.v2.OneOutInfererForecasterValues + (*ValueBundle)(nil), // 3: emissions.v2.ValueBundle + (*ReputerValueBundle)(nil), // 4: emissions.v2.ReputerValueBundle + (*ReputerValueBundles)(nil), // 5: emissions.v2.ReputerValueBundles + (*ReputerRequestNonce)(nil), // 6: emissions.v2.ReputerRequestNonce +} +var file_emissions_v2_reputer_proto_depIdxs = []int32{ + 1, // 0: emissions.v2.OneOutInfererForecasterValues.one_out_inferer_values:type_name -> emissions.v2.WithheldWorkerAttributedValue + 6, // 1: emissions.v2.ValueBundle.reputer_request_nonce:type_name -> emissions.v2.ReputerRequestNonce + 0, // 2: emissions.v2.ValueBundle.inferer_values:type_name -> emissions.v2.WorkerAttributedValue + 0, // 3: emissions.v2.ValueBundle.forecaster_values:type_name -> emissions.v2.WorkerAttributedValue + 1, // 4: emissions.v2.ValueBundle.one_out_inferer_values:type_name -> emissions.v2.WithheldWorkerAttributedValue + 1, // 5: emissions.v2.ValueBundle.one_out_forecaster_values:type_name -> emissions.v2.WithheldWorkerAttributedValue + 0, // 6: emissions.v2.ValueBundle.one_in_forecaster_values:type_name -> emissions.v2.WorkerAttributedValue + 2, // 7: emissions.v2.ValueBundle.one_out_inferer_forecaster_values:type_name -> emissions.v2.OneOutInfererForecasterValues + 3, // 8: emissions.v2.ReputerValueBundle.value_bundle:type_name -> emissions.v2.ValueBundle + 4, // 9: emissions.v2.ReputerValueBundles.reputer_value_bundles:type_name -> emissions.v2.ReputerValueBundle + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_emissions_v2_reputer_proto_init() } +func file_emissions_v2_reputer_proto_init() { + if File_emissions_v2_reputer_proto != nil { + return + } + file_emissions_v2_nonce_proto_init() + if !protoimpl.UnsafeEnabled { + file_emissions_v2_reputer_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WorkerAttributedValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_reputer_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*WithheldWorkerAttributedValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_reputer_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OneOutInfererForecasterValues); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_reputer_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueBundle); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_reputer_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReputerValueBundle); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_reputer_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ReputerValueBundles); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_emissions_v2_reputer_proto_rawDesc, + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_emissions_v2_reputer_proto_goTypes, + DependencyIndexes: file_emissions_v2_reputer_proto_depIdxs, + MessageInfos: file_emissions_v2_reputer_proto_msgTypes, + }.Build() + File_emissions_v2_reputer_proto = out.File + file_emissions_v2_reputer_proto_rawDesc = nil + file_emissions_v2_reputer_proto_goTypes = nil + file_emissions_v2_reputer_proto_depIdxs = nil +} diff --git a/x/emissions/api/v1/score.pulsar.go b/x/emissions/api/v2/score.pulsar.go similarity index 88% rename from x/emissions/api/v1/score.pulsar.go rename to x/emissions/api/v2/score.pulsar.go index ac810c50a..6ea72c566 100644 --- a/x/emissions/api/v1/score.pulsar.go +++ b/x/emissions/api/v2/score.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package emissionsv1 +package emissionsv2 import ( fmt "fmt" @@ -24,8 +24,8 @@ var ( ) func init() { - file_emissions_v1_score_proto_init() - md_Score = File_emissions_v1_score_proto.Messages().ByName("Score") + file_emissions_v2_score_proto_init() + md_Score = File_emissions_v2_score_proto.Messages().ByName("Score") fd_Score_topic_id = md_Score.Fields().ByName("topic_id") fd_Score_block_height = md_Score.Fields().ByName("block_height") fd_Score_address = md_Score.Fields().ByName("address") @@ -41,7 +41,7 @@ func (x *Score) ProtoReflect() protoreflect.Message { } func (x *Score) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_score_proto_msgTypes[0] + mi := &file_emissions_v2_score_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -136,19 +136,19 @@ func (x *fastReflection_Score) Range(f func(protoreflect.FieldDescriptor, protor // a repeated field is populated if it is non-empty. func (x *fastReflection_Score) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.Score.topic_id": + case "emissions.v2.Score.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.Score.block_height": + case "emissions.v2.Score.block_height": return x.BlockHeight != int64(0) - case "emissions.v1.Score.address": + case "emissions.v2.Score.address": return x.Address != "" - case "emissions.v1.Score.score": + case "emissions.v2.Score.score": return x.Score != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Score")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Score")) } - panic(fmt.Errorf("message emissions.v1.Score does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Score does not contain field %s", fd.FullName())) } } @@ -160,19 +160,19 @@ func (x *fastReflection_Score) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Score) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.Score.topic_id": + case "emissions.v2.Score.topic_id": x.TopicId = uint64(0) - case "emissions.v1.Score.block_height": + case "emissions.v2.Score.block_height": x.BlockHeight = int64(0) - case "emissions.v1.Score.address": + case "emissions.v2.Score.address": x.Address = "" - case "emissions.v1.Score.score": + case "emissions.v2.Score.score": x.Score = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Score")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Score")) } - panic(fmt.Errorf("message emissions.v1.Score does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Score does not contain field %s", fd.FullName())) } } @@ -184,23 +184,23 @@ func (x *fastReflection_Score) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Score) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.Score.topic_id": + case "emissions.v2.Score.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.Score.block_height": + case "emissions.v2.Score.block_height": value := x.BlockHeight return protoreflect.ValueOfInt64(value) - case "emissions.v1.Score.address": + case "emissions.v2.Score.address": value := x.Address return protoreflect.ValueOfString(value) - case "emissions.v1.Score.score": + case "emissions.v2.Score.score": value := x.Score return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Score")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Score")) } - panic(fmt.Errorf("message emissions.v1.Score does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.Score does not contain field %s", descriptor.FullName())) } } @@ -216,19 +216,19 @@ func (x *fastReflection_Score) Get(descriptor protoreflect.FieldDescriptor) prot // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Score) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.Score.topic_id": + case "emissions.v2.Score.topic_id": x.TopicId = value.Uint() - case "emissions.v1.Score.block_height": + case "emissions.v2.Score.block_height": x.BlockHeight = value.Int() - case "emissions.v1.Score.address": + case "emissions.v2.Score.address": x.Address = value.Interface().(string) - case "emissions.v1.Score.score": + case "emissions.v2.Score.score": x.Score = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Score")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Score")) } - panic(fmt.Errorf("message emissions.v1.Score does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Score does not contain field %s", fd.FullName())) } } @@ -244,19 +244,19 @@ func (x *fastReflection_Score) Set(fd protoreflect.FieldDescriptor, value protor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Score) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Score.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.Score is not mutable")) - case "emissions.v1.Score.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.Score is not mutable")) - case "emissions.v1.Score.address": - panic(fmt.Errorf("field address of message emissions.v1.Score is not mutable")) - case "emissions.v1.Score.score": - panic(fmt.Errorf("field score of message emissions.v1.Score is not mutable")) + case "emissions.v2.Score.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.Score is not mutable")) + case "emissions.v2.Score.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.Score is not mutable")) + case "emissions.v2.Score.address": + panic(fmt.Errorf("field address of message emissions.v2.Score is not mutable")) + case "emissions.v2.Score.score": + panic(fmt.Errorf("field score of message emissions.v2.Score is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Score")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Score")) } - panic(fmt.Errorf("message emissions.v1.Score does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Score does not contain field %s", fd.FullName())) } } @@ -265,19 +265,19 @@ func (x *fastReflection_Score) Mutable(fd protoreflect.FieldDescriptor) protoref // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Score) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Score.topic_id": + case "emissions.v2.Score.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Score.block_height": + case "emissions.v2.Score.block_height": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.Score.address": + case "emissions.v2.Score.address": return protoreflect.ValueOfString("") - case "emissions.v1.Score.score": + case "emissions.v2.Score.score": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Score")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Score")) } - panic(fmt.Errorf("message emissions.v1.Score does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Score does not contain field %s", fd.FullName())) } } @@ -287,7 +287,7 @@ func (x *fastReflection_Score) NewField(fd protoreflect.FieldDescriptor) protore func (x *fastReflection_Score) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.Score", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.Score", d.FullName())) } panic("unreachable") } @@ -652,8 +652,8 @@ var ( ) func init() { - file_emissions_v1_score_proto_init() - md_Scores = File_emissions_v1_score_proto.Messages().ByName("Scores") + file_emissions_v2_score_proto_init() + md_Scores = File_emissions_v2_score_proto.Messages().ByName("Scores") fd_Scores_scores = md_Scores.Fields().ByName("scores") } @@ -666,7 +666,7 @@ func (x *Scores) ProtoReflect() protoreflect.Message { } func (x *Scores) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_score_proto_msgTypes[1] + mi := &file_emissions_v2_score_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -743,13 +743,13 @@ func (x *fastReflection_Scores) Range(f func(protoreflect.FieldDescriptor, proto // a repeated field is populated if it is non-empty. func (x *fastReflection_Scores) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.Scores.scores": + case "emissions.v2.Scores.scores": return len(x.Scores) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Scores")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Scores")) } - panic(fmt.Errorf("message emissions.v1.Scores does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Scores does not contain field %s", fd.FullName())) } } @@ -761,13 +761,13 @@ func (x *fastReflection_Scores) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Scores) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.Scores.scores": + case "emissions.v2.Scores.scores": x.Scores = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Scores")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Scores")) } - panic(fmt.Errorf("message emissions.v1.Scores does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Scores does not contain field %s", fd.FullName())) } } @@ -779,7 +779,7 @@ func (x *fastReflection_Scores) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Scores) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.Scores.scores": + case "emissions.v2.Scores.scores": if len(x.Scores) == 0 { return protoreflect.ValueOfList(&_Scores_1_list{}) } @@ -787,9 +787,9 @@ func (x *fastReflection_Scores) Get(descriptor protoreflect.FieldDescriptor) pro return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Scores")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Scores")) } - panic(fmt.Errorf("message emissions.v1.Scores does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.Scores does not contain field %s", descriptor.FullName())) } } @@ -805,15 +805,15 @@ func (x *fastReflection_Scores) Get(descriptor protoreflect.FieldDescriptor) pro // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Scores) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.Scores.scores": + case "emissions.v2.Scores.scores": lv := value.List() clv := lv.(*_Scores_1_list) x.Scores = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Scores")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Scores")) } - panic(fmt.Errorf("message emissions.v1.Scores does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Scores does not contain field %s", fd.FullName())) } } @@ -829,7 +829,7 @@ func (x *fastReflection_Scores) Set(fd protoreflect.FieldDescriptor, value proto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Scores) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Scores.scores": + case "emissions.v2.Scores.scores": if x.Scores == nil { x.Scores = []*Score{} } @@ -837,9 +837,9 @@ func (x *fastReflection_Scores) Mutable(fd protoreflect.FieldDescriptor) protore return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Scores")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Scores")) } - panic(fmt.Errorf("message emissions.v1.Scores does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Scores does not contain field %s", fd.FullName())) } } @@ -848,14 +848,14 @@ func (x *fastReflection_Scores) Mutable(fd protoreflect.FieldDescriptor) protore // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Scores) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Scores.scores": + case "emissions.v2.Scores.scores": list := []*Score{} return protoreflect.ValueOfList(&_Scores_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Scores")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Scores")) } - panic(fmt.Errorf("message emissions.v1.Scores does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Scores does not contain field %s", fd.FullName())) } } @@ -865,7 +865,7 @@ func (x *fastReflection_Scores) NewField(fd protoreflect.FieldDescriptor) protor func (x *fastReflection_Scores) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.Scores", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.Scores", d.FullName())) } panic("unreachable") } @@ -1093,7 +1093,7 @@ func (x *fastReflection_Scores) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: emissions/v1/score.proto +// source: emissions/v2/score.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -1116,7 +1116,7 @@ type Score struct { func (x *Score) Reset() { *x = Score{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_score_proto_msgTypes[0] + mi := &file_emissions_v2_score_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1130,7 +1130,7 @@ func (*Score) ProtoMessage() {} // Deprecated: Use Score.ProtoReflect.Descriptor instead. func (*Score) Descriptor() ([]byte, []int) { - return file_emissions_v1_score_proto_rawDescGZIP(), []int{0} + return file_emissions_v2_score_proto_rawDescGZIP(), []int{0} } func (x *Score) GetTopicId() uint64 { @@ -1172,7 +1172,7 @@ type Scores struct { func (x *Scores) Reset() { *x = Scores{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_score_proto_msgTypes[1] + mi := &file_emissions_v2_score_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1186,7 +1186,7 @@ func (*Scores) ProtoMessage() {} // Deprecated: Use Scores.ProtoReflect.Descriptor instead. func (*Scores) Descriptor() ([]byte, []int) { - return file_emissions_v1_score_proto_rawDescGZIP(), []int{1} + return file_emissions_v2_score_proto_rawDescGZIP(), []int{1} } func (x *Scores) GetScores() []*Score { @@ -1196,12 +1196,12 @@ func (x *Scores) GetScores() []*Score { return nil } -var File_emissions_v1_score_proto protoreflect.FileDescriptor +var File_emissions_v2_score_proto protoreflect.FileDescriptor -var file_emissions_v1_score_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, +var file_emissions_v2_score_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, @@ -1219,41 +1219,41 @@ var file_emissions_v1_score_proto_rawDesc = []byte{ 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x22, 0x35, 0x0a, 0x06, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x06, 0x73, 0x63, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x52, 0x06, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x42, 0xc0, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x53, 0x63, 0x6f, 0x72, 0x65, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0a, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, - 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, - 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x45, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, + 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0c, + 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18, 0x45, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_emissions_v1_score_proto_rawDescOnce sync.Once - file_emissions_v1_score_proto_rawDescData = file_emissions_v1_score_proto_rawDesc + file_emissions_v2_score_proto_rawDescOnce sync.Once + file_emissions_v2_score_proto_rawDescData = file_emissions_v2_score_proto_rawDesc ) -func file_emissions_v1_score_proto_rawDescGZIP() []byte { - file_emissions_v1_score_proto_rawDescOnce.Do(func() { - file_emissions_v1_score_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v1_score_proto_rawDescData) +func file_emissions_v2_score_proto_rawDescGZIP() []byte { + file_emissions_v2_score_proto_rawDescOnce.Do(func() { + file_emissions_v2_score_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_score_proto_rawDescData) }) - return file_emissions_v1_score_proto_rawDescData + return file_emissions_v2_score_proto_rawDescData } -var file_emissions_v1_score_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_emissions_v1_score_proto_goTypes = []interface{}{ - (*Score)(nil), // 0: emissions.v1.Score - (*Scores)(nil), // 1: emissions.v1.Scores +var file_emissions_v2_score_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_emissions_v2_score_proto_goTypes = []interface{}{ + (*Score)(nil), // 0: emissions.v2.Score + (*Scores)(nil), // 1: emissions.v2.Scores } -var file_emissions_v1_score_proto_depIdxs = []int32{ - 0, // 0: emissions.v1.Scores.scores:type_name -> emissions.v1.Score +var file_emissions_v2_score_proto_depIdxs = []int32{ + 0, // 0: emissions.v2.Scores.scores:type_name -> emissions.v2.Score 1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for extension type_name @@ -1261,13 +1261,13 @@ var file_emissions_v1_score_proto_depIdxs = []int32{ 0, // [0:1] is the sub-list for field type_name } -func init() { file_emissions_v1_score_proto_init() } -func file_emissions_v1_score_proto_init() { - if File_emissions_v1_score_proto != nil { +func init() { file_emissions_v2_score_proto_init() } +func file_emissions_v2_score_proto_init() { + if File_emissions_v2_score_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_emissions_v1_score_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_score_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Score); i { case 0: return &v.state @@ -1279,7 +1279,7 @@ func file_emissions_v1_score_proto_init() { return nil } } - file_emissions_v1_score_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_score_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Scores); i { case 0: return &v.state @@ -1296,18 +1296,18 @@ func file_emissions_v1_score_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_emissions_v1_score_proto_rawDesc, + RawDescriptor: file_emissions_v2_score_proto_rawDesc, NumEnums: 0, NumMessages: 2, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_emissions_v1_score_proto_goTypes, - DependencyIndexes: file_emissions_v1_score_proto_depIdxs, - MessageInfos: file_emissions_v1_score_proto_msgTypes, + GoTypes: file_emissions_v2_score_proto_goTypes, + DependencyIndexes: file_emissions_v2_score_proto_depIdxs, + MessageInfos: file_emissions_v2_score_proto_msgTypes, }.Build() - File_emissions_v1_score_proto = out.File - file_emissions_v1_score_proto_rawDesc = nil - file_emissions_v1_score_proto_goTypes = nil - file_emissions_v1_score_proto_depIdxs = nil + File_emissions_v2_score_proto = out.File + file_emissions_v2_score_proto_rawDesc = nil + file_emissions_v2_score_proto_goTypes = nil + file_emissions_v2_score_proto_depIdxs = nil } diff --git a/x/emissions/api/v1/stake.pulsar.go b/x/emissions/api/v2/stake.pulsar.go similarity index 89% rename from x/emissions/api/v1/stake.pulsar.go rename to x/emissions/api/v2/stake.pulsar.go index 00f72e4c2..1c519ae8c 100644 --- a/x/emissions/api/v1/stake.pulsar.go +++ b/x/emissions/api/v2/stake.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package emissionsv1 +package emissionsv2 import ( fmt "fmt" @@ -24,8 +24,8 @@ var ( ) func init() { - file_emissions_v1_stake_proto_init() - md_StakePlacement = File_emissions_v1_stake_proto.Messages().ByName("StakePlacement") + file_emissions_v2_stake_proto_init() + md_StakePlacement = File_emissions_v2_stake_proto.Messages().ByName("StakePlacement") fd_StakePlacement_block_removal_started = md_StakePlacement.Fields().ByName("block_removal_started") fd_StakePlacement_topic_id = md_StakePlacement.Fields().ByName("topic_id") fd_StakePlacement_reputer = md_StakePlacement.Fields().ByName("reputer") @@ -41,7 +41,7 @@ func (x *StakePlacement) ProtoReflect() protoreflect.Message { } func (x *StakePlacement) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_stake_proto_msgTypes[0] + mi := &file_emissions_v2_stake_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -136,19 +136,19 @@ func (x *fastReflection_StakePlacement) Range(f func(protoreflect.FieldDescripto // a repeated field is populated if it is non-empty. func (x *fastReflection_StakePlacement) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.StakePlacement.block_removal_started": + case "emissions.v2.StakePlacement.block_removal_started": return x.BlockRemovalStarted != int64(0) - case "emissions.v1.StakePlacement.topic_id": + case "emissions.v2.StakePlacement.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.StakePlacement.reputer": + case "emissions.v2.StakePlacement.reputer": return x.Reputer != "" - case "emissions.v1.StakePlacement.amount": + case "emissions.v2.StakePlacement.amount": return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakePlacement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakePlacement")) } - panic(fmt.Errorf("message emissions.v1.StakePlacement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakePlacement does not contain field %s", fd.FullName())) } } @@ -160,19 +160,19 @@ func (x *fastReflection_StakePlacement) Has(fd protoreflect.FieldDescriptor) boo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_StakePlacement) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.StakePlacement.block_removal_started": + case "emissions.v2.StakePlacement.block_removal_started": x.BlockRemovalStarted = int64(0) - case "emissions.v1.StakePlacement.topic_id": + case "emissions.v2.StakePlacement.topic_id": x.TopicId = uint64(0) - case "emissions.v1.StakePlacement.reputer": + case "emissions.v2.StakePlacement.reputer": x.Reputer = "" - case "emissions.v1.StakePlacement.amount": + case "emissions.v2.StakePlacement.amount": x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakePlacement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakePlacement")) } - panic(fmt.Errorf("message emissions.v1.StakePlacement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakePlacement does not contain field %s", fd.FullName())) } } @@ -184,23 +184,23 @@ func (x *fastReflection_StakePlacement) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_StakePlacement) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.StakePlacement.block_removal_started": + case "emissions.v2.StakePlacement.block_removal_started": value := x.BlockRemovalStarted return protoreflect.ValueOfInt64(value) - case "emissions.v1.StakePlacement.topic_id": + case "emissions.v2.StakePlacement.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.StakePlacement.reputer": + case "emissions.v2.StakePlacement.reputer": value := x.Reputer return protoreflect.ValueOfString(value) - case "emissions.v1.StakePlacement.amount": + case "emissions.v2.StakePlacement.amount": value := x.Amount return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakePlacement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakePlacement")) } - panic(fmt.Errorf("message emissions.v1.StakePlacement does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.StakePlacement does not contain field %s", descriptor.FullName())) } } @@ -216,19 +216,19 @@ func (x *fastReflection_StakePlacement) Get(descriptor protoreflect.FieldDescrip // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_StakePlacement) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.StakePlacement.block_removal_started": + case "emissions.v2.StakePlacement.block_removal_started": x.BlockRemovalStarted = value.Int() - case "emissions.v1.StakePlacement.topic_id": + case "emissions.v2.StakePlacement.topic_id": x.TopicId = value.Uint() - case "emissions.v1.StakePlacement.reputer": + case "emissions.v2.StakePlacement.reputer": x.Reputer = value.Interface().(string) - case "emissions.v1.StakePlacement.amount": + case "emissions.v2.StakePlacement.amount": x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakePlacement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakePlacement")) } - panic(fmt.Errorf("message emissions.v1.StakePlacement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakePlacement does not contain field %s", fd.FullName())) } } @@ -244,19 +244,19 @@ func (x *fastReflection_StakePlacement) Set(fd protoreflect.FieldDescriptor, val // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_StakePlacement) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.StakePlacement.block_removal_started": - panic(fmt.Errorf("field block_removal_started of message emissions.v1.StakePlacement is not mutable")) - case "emissions.v1.StakePlacement.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.StakePlacement is not mutable")) - case "emissions.v1.StakePlacement.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.StakePlacement is not mutable")) - case "emissions.v1.StakePlacement.amount": - panic(fmt.Errorf("field amount of message emissions.v1.StakePlacement is not mutable")) + case "emissions.v2.StakePlacement.block_removal_started": + panic(fmt.Errorf("field block_removal_started of message emissions.v2.StakePlacement is not mutable")) + case "emissions.v2.StakePlacement.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.StakePlacement is not mutable")) + case "emissions.v2.StakePlacement.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.StakePlacement is not mutable")) + case "emissions.v2.StakePlacement.amount": + panic(fmt.Errorf("field amount of message emissions.v2.StakePlacement is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakePlacement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakePlacement")) } - panic(fmt.Errorf("message emissions.v1.StakePlacement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakePlacement does not contain field %s", fd.FullName())) } } @@ -265,19 +265,19 @@ func (x *fastReflection_StakePlacement) Mutable(fd protoreflect.FieldDescriptor) // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_StakePlacement) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.StakePlacement.block_removal_started": + case "emissions.v2.StakePlacement.block_removal_started": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.StakePlacement.topic_id": + case "emissions.v2.StakePlacement.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.StakePlacement.reputer": + case "emissions.v2.StakePlacement.reputer": return protoreflect.ValueOfString("") - case "emissions.v1.StakePlacement.amount": + case "emissions.v2.StakePlacement.amount": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakePlacement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakePlacement")) } - panic(fmt.Errorf("message emissions.v1.StakePlacement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakePlacement does not contain field %s", fd.FullName())) } } @@ -287,7 +287,7 @@ func (x *fastReflection_StakePlacement) NewField(fd protoreflect.FieldDescriptor func (x *fastReflection_StakePlacement) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.StakePlacement", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.StakePlacement", d.FullName())) } panic("unreachable") } @@ -605,8 +605,8 @@ var ( ) func init() { - file_emissions_v1_stake_proto_init() - md_DelegateStakePlacement = File_emissions_v1_stake_proto.Messages().ByName("DelegateStakePlacement") + file_emissions_v2_stake_proto_init() + md_DelegateStakePlacement = File_emissions_v2_stake_proto.Messages().ByName("DelegateStakePlacement") fd_DelegateStakePlacement_block_removal_started = md_DelegateStakePlacement.Fields().ByName("block_removal_started") fd_DelegateStakePlacement_topic_id = md_DelegateStakePlacement.Fields().ByName("topic_id") fd_DelegateStakePlacement_reputer = md_DelegateStakePlacement.Fields().ByName("reputer") @@ -623,7 +623,7 @@ func (x *DelegateStakePlacement) ProtoReflect() protoreflect.Message { } func (x *DelegateStakePlacement) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_stake_proto_msgTypes[1] + mi := &file_emissions_v2_stake_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -724,21 +724,21 @@ func (x *fastReflection_DelegateStakePlacement) Range(f func(protoreflect.FieldD // a repeated field is populated if it is non-empty. func (x *fastReflection_DelegateStakePlacement) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.DelegateStakePlacement.block_removal_started": + case "emissions.v2.DelegateStakePlacement.block_removal_started": return x.BlockRemovalStarted != int64(0) - case "emissions.v1.DelegateStakePlacement.topic_id": + case "emissions.v2.DelegateStakePlacement.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.DelegateStakePlacement.reputer": + case "emissions.v2.DelegateStakePlacement.reputer": return x.Reputer != "" - case "emissions.v1.DelegateStakePlacement.delegator": + case "emissions.v2.DelegateStakePlacement.delegator": return x.Delegator != "" - case "emissions.v1.DelegateStakePlacement.amount": + case "emissions.v2.DelegateStakePlacement.amount": return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegateStakePlacement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegateStakePlacement")) } - panic(fmt.Errorf("message emissions.v1.DelegateStakePlacement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegateStakePlacement does not contain field %s", fd.FullName())) } } @@ -750,21 +750,21 @@ func (x *fastReflection_DelegateStakePlacement) Has(fd protoreflect.FieldDescrip // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DelegateStakePlacement) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.DelegateStakePlacement.block_removal_started": + case "emissions.v2.DelegateStakePlacement.block_removal_started": x.BlockRemovalStarted = int64(0) - case "emissions.v1.DelegateStakePlacement.topic_id": + case "emissions.v2.DelegateStakePlacement.topic_id": x.TopicId = uint64(0) - case "emissions.v1.DelegateStakePlacement.reputer": + case "emissions.v2.DelegateStakePlacement.reputer": x.Reputer = "" - case "emissions.v1.DelegateStakePlacement.delegator": + case "emissions.v2.DelegateStakePlacement.delegator": x.Delegator = "" - case "emissions.v1.DelegateStakePlacement.amount": + case "emissions.v2.DelegateStakePlacement.amount": x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegateStakePlacement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegateStakePlacement")) } - panic(fmt.Errorf("message emissions.v1.DelegateStakePlacement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegateStakePlacement does not contain field %s", fd.FullName())) } } @@ -776,26 +776,26 @@ func (x *fastReflection_DelegateStakePlacement) Clear(fd protoreflect.FieldDescr // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_DelegateStakePlacement) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.DelegateStakePlacement.block_removal_started": + case "emissions.v2.DelegateStakePlacement.block_removal_started": value := x.BlockRemovalStarted return protoreflect.ValueOfInt64(value) - case "emissions.v1.DelegateStakePlacement.topic_id": + case "emissions.v2.DelegateStakePlacement.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.DelegateStakePlacement.reputer": + case "emissions.v2.DelegateStakePlacement.reputer": value := x.Reputer return protoreflect.ValueOfString(value) - case "emissions.v1.DelegateStakePlacement.delegator": + case "emissions.v2.DelegateStakePlacement.delegator": value := x.Delegator return protoreflect.ValueOfString(value) - case "emissions.v1.DelegateStakePlacement.amount": + case "emissions.v2.DelegateStakePlacement.amount": value := x.Amount return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegateStakePlacement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegateStakePlacement")) } - panic(fmt.Errorf("message emissions.v1.DelegateStakePlacement does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegateStakePlacement does not contain field %s", descriptor.FullName())) } } @@ -811,21 +811,21 @@ func (x *fastReflection_DelegateStakePlacement) Get(descriptor protoreflect.Fiel // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DelegateStakePlacement) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.DelegateStakePlacement.block_removal_started": + case "emissions.v2.DelegateStakePlacement.block_removal_started": x.BlockRemovalStarted = value.Int() - case "emissions.v1.DelegateStakePlacement.topic_id": + case "emissions.v2.DelegateStakePlacement.topic_id": x.TopicId = value.Uint() - case "emissions.v1.DelegateStakePlacement.reputer": + case "emissions.v2.DelegateStakePlacement.reputer": x.Reputer = value.Interface().(string) - case "emissions.v1.DelegateStakePlacement.delegator": + case "emissions.v2.DelegateStakePlacement.delegator": x.Delegator = value.Interface().(string) - case "emissions.v1.DelegateStakePlacement.amount": + case "emissions.v2.DelegateStakePlacement.amount": x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegateStakePlacement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegateStakePlacement")) } - panic(fmt.Errorf("message emissions.v1.DelegateStakePlacement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegateStakePlacement does not contain field %s", fd.FullName())) } } @@ -841,21 +841,21 @@ func (x *fastReflection_DelegateStakePlacement) Set(fd protoreflect.FieldDescrip // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DelegateStakePlacement) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.DelegateStakePlacement.block_removal_started": - panic(fmt.Errorf("field block_removal_started of message emissions.v1.DelegateStakePlacement is not mutable")) - case "emissions.v1.DelegateStakePlacement.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.DelegateStakePlacement is not mutable")) - case "emissions.v1.DelegateStakePlacement.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.DelegateStakePlacement is not mutable")) - case "emissions.v1.DelegateStakePlacement.delegator": - panic(fmt.Errorf("field delegator of message emissions.v1.DelegateStakePlacement is not mutable")) - case "emissions.v1.DelegateStakePlacement.amount": - panic(fmt.Errorf("field amount of message emissions.v1.DelegateStakePlacement is not mutable")) + case "emissions.v2.DelegateStakePlacement.block_removal_started": + panic(fmt.Errorf("field block_removal_started of message emissions.v2.DelegateStakePlacement is not mutable")) + case "emissions.v2.DelegateStakePlacement.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.DelegateStakePlacement is not mutable")) + case "emissions.v2.DelegateStakePlacement.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.DelegateStakePlacement is not mutable")) + case "emissions.v2.DelegateStakePlacement.delegator": + panic(fmt.Errorf("field delegator of message emissions.v2.DelegateStakePlacement is not mutable")) + case "emissions.v2.DelegateStakePlacement.amount": + panic(fmt.Errorf("field amount of message emissions.v2.DelegateStakePlacement is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegateStakePlacement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegateStakePlacement")) } - panic(fmt.Errorf("message emissions.v1.DelegateStakePlacement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegateStakePlacement does not contain field %s", fd.FullName())) } } @@ -864,21 +864,21 @@ func (x *fastReflection_DelegateStakePlacement) Mutable(fd protoreflect.FieldDes // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_DelegateStakePlacement) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.DelegateStakePlacement.block_removal_started": + case "emissions.v2.DelegateStakePlacement.block_removal_started": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.DelegateStakePlacement.topic_id": + case "emissions.v2.DelegateStakePlacement.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.DelegateStakePlacement.reputer": + case "emissions.v2.DelegateStakePlacement.reputer": return protoreflect.ValueOfString("") - case "emissions.v1.DelegateStakePlacement.delegator": + case "emissions.v2.DelegateStakePlacement.delegator": return protoreflect.ValueOfString("") - case "emissions.v1.DelegateStakePlacement.amount": + case "emissions.v2.DelegateStakePlacement.amount": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegateStakePlacement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegateStakePlacement")) } - panic(fmt.Errorf("message emissions.v1.DelegateStakePlacement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegateStakePlacement does not contain field %s", fd.FullName())) } } @@ -888,7 +888,7 @@ func (x *fastReflection_DelegateStakePlacement) NewField(fd protoreflect.FieldDe func (x *fastReflection_DelegateStakePlacement) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.DelegateStakePlacement", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.DelegateStakePlacement", d.FullName())) } panic("unreachable") } @@ -1247,8 +1247,8 @@ var ( ) func init() { - file_emissions_v1_stake_proto_init() - md_StakeInfo = File_emissions_v1_stake_proto.Messages().ByName("StakeInfo") + file_emissions_v2_stake_proto_init() + md_StakeInfo = File_emissions_v2_stake_proto.Messages().ByName("StakeInfo") fd_StakeInfo_topic_id = md_StakeInfo.Fields().ByName("topic_id") fd_StakeInfo_reputer = md_StakeInfo.Fields().ByName("reputer") fd_StakeInfo_amount = md_StakeInfo.Fields().ByName("amount") @@ -1263,7 +1263,7 @@ func (x *StakeInfo) ProtoReflect() protoreflect.Message { } func (x *StakeInfo) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_stake_proto_msgTypes[2] + mi := &file_emissions_v2_stake_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1352,17 +1352,17 @@ func (x *fastReflection_StakeInfo) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_StakeInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.StakeInfo.topic_id": + case "emissions.v2.StakeInfo.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.StakeInfo.reputer": + case "emissions.v2.StakeInfo.reputer": return x.Reputer != "" - case "emissions.v1.StakeInfo.amount": + case "emissions.v2.StakeInfo.amount": return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakeInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakeInfo")) } - panic(fmt.Errorf("message emissions.v1.StakeInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakeInfo does not contain field %s", fd.FullName())) } } @@ -1374,17 +1374,17 @@ func (x *fastReflection_StakeInfo) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_StakeInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.StakeInfo.topic_id": + case "emissions.v2.StakeInfo.topic_id": x.TopicId = uint64(0) - case "emissions.v1.StakeInfo.reputer": + case "emissions.v2.StakeInfo.reputer": x.Reputer = "" - case "emissions.v1.StakeInfo.amount": + case "emissions.v2.StakeInfo.amount": x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakeInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakeInfo")) } - panic(fmt.Errorf("message emissions.v1.StakeInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakeInfo does not contain field %s", fd.FullName())) } } @@ -1396,20 +1396,20 @@ func (x *fastReflection_StakeInfo) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_StakeInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.StakeInfo.topic_id": + case "emissions.v2.StakeInfo.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.StakeInfo.reputer": + case "emissions.v2.StakeInfo.reputer": value := x.Reputer return protoreflect.ValueOfString(value) - case "emissions.v1.StakeInfo.amount": + case "emissions.v2.StakeInfo.amount": value := x.Amount return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakeInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakeInfo")) } - panic(fmt.Errorf("message emissions.v1.StakeInfo does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.StakeInfo does not contain field %s", descriptor.FullName())) } } @@ -1425,17 +1425,17 @@ func (x *fastReflection_StakeInfo) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_StakeInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.StakeInfo.topic_id": + case "emissions.v2.StakeInfo.topic_id": x.TopicId = value.Uint() - case "emissions.v1.StakeInfo.reputer": + case "emissions.v2.StakeInfo.reputer": x.Reputer = value.Interface().(string) - case "emissions.v1.StakeInfo.amount": + case "emissions.v2.StakeInfo.amount": x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakeInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakeInfo")) } - panic(fmt.Errorf("message emissions.v1.StakeInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakeInfo does not contain field %s", fd.FullName())) } } @@ -1451,17 +1451,17 @@ func (x *fastReflection_StakeInfo) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_StakeInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.StakeInfo.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.StakeInfo is not mutable")) - case "emissions.v1.StakeInfo.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.StakeInfo is not mutable")) - case "emissions.v1.StakeInfo.amount": - panic(fmt.Errorf("field amount of message emissions.v1.StakeInfo is not mutable")) + case "emissions.v2.StakeInfo.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.StakeInfo is not mutable")) + case "emissions.v2.StakeInfo.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.StakeInfo is not mutable")) + case "emissions.v2.StakeInfo.amount": + panic(fmt.Errorf("field amount of message emissions.v2.StakeInfo is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakeInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakeInfo")) } - panic(fmt.Errorf("message emissions.v1.StakeInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakeInfo does not contain field %s", fd.FullName())) } } @@ -1470,17 +1470,17 @@ func (x *fastReflection_StakeInfo) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_StakeInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.StakeInfo.topic_id": + case "emissions.v2.StakeInfo.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.StakeInfo.reputer": + case "emissions.v2.StakeInfo.reputer": return protoreflect.ValueOfString("") - case "emissions.v1.StakeInfo.amount": + case "emissions.v2.StakeInfo.amount": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakeInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakeInfo")) } - panic(fmt.Errorf("message emissions.v1.StakeInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakeInfo does not contain field %s", fd.FullName())) } } @@ -1490,7 +1490,7 @@ func (x *fastReflection_StakeInfo) NewField(fd protoreflect.FieldDescriptor) pro func (x *fastReflection_StakeInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.StakeInfo", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.StakeInfo", d.FullName())) } panic("unreachable") } @@ -1781,8 +1781,8 @@ var ( ) func init() { - file_emissions_v1_stake_proto_init() - md_StakeRemovalInfo = File_emissions_v1_stake_proto.Messages().ByName("StakeRemovalInfo") + file_emissions_v2_stake_proto_init() + md_StakeRemovalInfo = File_emissions_v2_stake_proto.Messages().ByName("StakeRemovalInfo") fd_StakeRemovalInfo_block_removal_started = md_StakeRemovalInfo.Fields().ByName("block_removal_started") fd_StakeRemovalInfo_topic_id = md_StakeRemovalInfo.Fields().ByName("topic_id") fd_StakeRemovalInfo_reputer = md_StakeRemovalInfo.Fields().ByName("reputer") @@ -1799,7 +1799,7 @@ func (x *StakeRemovalInfo) ProtoReflect() protoreflect.Message { } func (x *StakeRemovalInfo) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_stake_proto_msgTypes[3] + mi := &file_emissions_v2_stake_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1900,21 +1900,21 @@ func (x *fastReflection_StakeRemovalInfo) Range(f func(protoreflect.FieldDescrip // a repeated field is populated if it is non-empty. func (x *fastReflection_StakeRemovalInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.StakeRemovalInfo.block_removal_started": + case "emissions.v2.StakeRemovalInfo.block_removal_started": return x.BlockRemovalStarted != int64(0) - case "emissions.v1.StakeRemovalInfo.topic_id": + case "emissions.v2.StakeRemovalInfo.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.StakeRemovalInfo.reputer": + case "emissions.v2.StakeRemovalInfo.reputer": return x.Reputer != "" - case "emissions.v1.StakeRemovalInfo.amount": + case "emissions.v2.StakeRemovalInfo.amount": return x.Amount != "" - case "emissions.v1.StakeRemovalInfo.block_removal_completed": + case "emissions.v2.StakeRemovalInfo.block_removal_completed": return x.BlockRemovalCompleted != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakeRemovalInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakeRemovalInfo")) } - panic(fmt.Errorf("message emissions.v1.StakeRemovalInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakeRemovalInfo does not contain field %s", fd.FullName())) } } @@ -1926,21 +1926,21 @@ func (x *fastReflection_StakeRemovalInfo) Has(fd protoreflect.FieldDescriptor) b // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_StakeRemovalInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.StakeRemovalInfo.block_removal_started": + case "emissions.v2.StakeRemovalInfo.block_removal_started": x.BlockRemovalStarted = int64(0) - case "emissions.v1.StakeRemovalInfo.topic_id": + case "emissions.v2.StakeRemovalInfo.topic_id": x.TopicId = uint64(0) - case "emissions.v1.StakeRemovalInfo.reputer": + case "emissions.v2.StakeRemovalInfo.reputer": x.Reputer = "" - case "emissions.v1.StakeRemovalInfo.amount": + case "emissions.v2.StakeRemovalInfo.amount": x.Amount = "" - case "emissions.v1.StakeRemovalInfo.block_removal_completed": + case "emissions.v2.StakeRemovalInfo.block_removal_completed": x.BlockRemovalCompleted = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakeRemovalInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakeRemovalInfo")) } - panic(fmt.Errorf("message emissions.v1.StakeRemovalInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakeRemovalInfo does not contain field %s", fd.FullName())) } } @@ -1952,26 +1952,26 @@ func (x *fastReflection_StakeRemovalInfo) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_StakeRemovalInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.StakeRemovalInfo.block_removal_started": + case "emissions.v2.StakeRemovalInfo.block_removal_started": value := x.BlockRemovalStarted return protoreflect.ValueOfInt64(value) - case "emissions.v1.StakeRemovalInfo.topic_id": + case "emissions.v2.StakeRemovalInfo.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.StakeRemovalInfo.reputer": + case "emissions.v2.StakeRemovalInfo.reputer": value := x.Reputer return protoreflect.ValueOfString(value) - case "emissions.v1.StakeRemovalInfo.amount": + case "emissions.v2.StakeRemovalInfo.amount": value := x.Amount return protoreflect.ValueOfString(value) - case "emissions.v1.StakeRemovalInfo.block_removal_completed": + case "emissions.v2.StakeRemovalInfo.block_removal_completed": value := x.BlockRemovalCompleted return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakeRemovalInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakeRemovalInfo")) } - panic(fmt.Errorf("message emissions.v1.StakeRemovalInfo does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.StakeRemovalInfo does not contain field %s", descriptor.FullName())) } } @@ -1987,21 +1987,21 @@ func (x *fastReflection_StakeRemovalInfo) Get(descriptor protoreflect.FieldDescr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_StakeRemovalInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.StakeRemovalInfo.block_removal_started": + case "emissions.v2.StakeRemovalInfo.block_removal_started": x.BlockRemovalStarted = value.Int() - case "emissions.v1.StakeRemovalInfo.topic_id": + case "emissions.v2.StakeRemovalInfo.topic_id": x.TopicId = value.Uint() - case "emissions.v1.StakeRemovalInfo.reputer": + case "emissions.v2.StakeRemovalInfo.reputer": x.Reputer = value.Interface().(string) - case "emissions.v1.StakeRemovalInfo.amount": + case "emissions.v2.StakeRemovalInfo.amount": x.Amount = value.Interface().(string) - case "emissions.v1.StakeRemovalInfo.block_removal_completed": + case "emissions.v2.StakeRemovalInfo.block_removal_completed": x.BlockRemovalCompleted = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakeRemovalInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakeRemovalInfo")) } - panic(fmt.Errorf("message emissions.v1.StakeRemovalInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakeRemovalInfo does not contain field %s", fd.FullName())) } } @@ -2017,21 +2017,21 @@ func (x *fastReflection_StakeRemovalInfo) Set(fd protoreflect.FieldDescriptor, v // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_StakeRemovalInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.StakeRemovalInfo.block_removal_started": - panic(fmt.Errorf("field block_removal_started of message emissions.v1.StakeRemovalInfo is not mutable")) - case "emissions.v1.StakeRemovalInfo.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.StakeRemovalInfo is not mutable")) - case "emissions.v1.StakeRemovalInfo.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.StakeRemovalInfo is not mutable")) - case "emissions.v1.StakeRemovalInfo.amount": - panic(fmt.Errorf("field amount of message emissions.v1.StakeRemovalInfo is not mutable")) - case "emissions.v1.StakeRemovalInfo.block_removal_completed": - panic(fmt.Errorf("field block_removal_completed of message emissions.v1.StakeRemovalInfo is not mutable")) + case "emissions.v2.StakeRemovalInfo.block_removal_started": + panic(fmt.Errorf("field block_removal_started of message emissions.v2.StakeRemovalInfo is not mutable")) + case "emissions.v2.StakeRemovalInfo.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.StakeRemovalInfo is not mutable")) + case "emissions.v2.StakeRemovalInfo.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.StakeRemovalInfo is not mutable")) + case "emissions.v2.StakeRemovalInfo.amount": + panic(fmt.Errorf("field amount of message emissions.v2.StakeRemovalInfo is not mutable")) + case "emissions.v2.StakeRemovalInfo.block_removal_completed": + panic(fmt.Errorf("field block_removal_completed of message emissions.v2.StakeRemovalInfo is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakeRemovalInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakeRemovalInfo")) } - panic(fmt.Errorf("message emissions.v1.StakeRemovalInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakeRemovalInfo does not contain field %s", fd.FullName())) } } @@ -2040,21 +2040,21 @@ func (x *fastReflection_StakeRemovalInfo) Mutable(fd protoreflect.FieldDescripto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_StakeRemovalInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.StakeRemovalInfo.block_removal_started": + case "emissions.v2.StakeRemovalInfo.block_removal_started": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.StakeRemovalInfo.topic_id": + case "emissions.v2.StakeRemovalInfo.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.StakeRemovalInfo.reputer": + case "emissions.v2.StakeRemovalInfo.reputer": return protoreflect.ValueOfString("") - case "emissions.v1.StakeRemovalInfo.amount": + case "emissions.v2.StakeRemovalInfo.amount": return protoreflect.ValueOfString("") - case "emissions.v1.StakeRemovalInfo.block_removal_completed": + case "emissions.v2.StakeRemovalInfo.block_removal_completed": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.StakeRemovalInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.StakeRemovalInfo")) } - panic(fmt.Errorf("message emissions.v1.StakeRemovalInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.StakeRemovalInfo does not contain field %s", fd.FullName())) } } @@ -2064,7 +2064,7 @@ func (x *fastReflection_StakeRemovalInfo) NewField(fd protoreflect.FieldDescript func (x *fastReflection_StakeRemovalInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.StakeRemovalInfo", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.StakeRemovalInfo", d.FullName())) } panic("unreachable") } @@ -2410,8 +2410,8 @@ var ( ) func init() { - file_emissions_v1_stake_proto_init() - md_DelegateStakeRemovalInfo = File_emissions_v1_stake_proto.Messages().ByName("DelegateStakeRemovalInfo") + file_emissions_v2_stake_proto_init() + md_DelegateStakeRemovalInfo = File_emissions_v2_stake_proto.Messages().ByName("DelegateStakeRemovalInfo") fd_DelegateStakeRemovalInfo_block_removal_started = md_DelegateStakeRemovalInfo.Fields().ByName("block_removal_started") fd_DelegateStakeRemovalInfo_topic_id = md_DelegateStakeRemovalInfo.Fields().ByName("topic_id") fd_DelegateStakeRemovalInfo_reputer = md_DelegateStakeRemovalInfo.Fields().ByName("reputer") @@ -2429,7 +2429,7 @@ func (x *DelegateStakeRemovalInfo) ProtoReflect() protoreflect.Message { } func (x *DelegateStakeRemovalInfo) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_stake_proto_msgTypes[4] + mi := &file_emissions_v2_stake_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2536,23 +2536,23 @@ func (x *fastReflection_DelegateStakeRemovalInfo) Range(f func(protoreflect.Fiel // a repeated field is populated if it is non-empty. func (x *fastReflection_DelegateStakeRemovalInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.DelegateStakeRemovalInfo.block_removal_started": + case "emissions.v2.DelegateStakeRemovalInfo.block_removal_started": return x.BlockRemovalStarted != int64(0) - case "emissions.v1.DelegateStakeRemovalInfo.topic_id": + case "emissions.v2.DelegateStakeRemovalInfo.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.DelegateStakeRemovalInfo.reputer": + case "emissions.v2.DelegateStakeRemovalInfo.reputer": return x.Reputer != "" - case "emissions.v1.DelegateStakeRemovalInfo.delegator": + case "emissions.v2.DelegateStakeRemovalInfo.delegator": return x.Delegator != "" - case "emissions.v1.DelegateStakeRemovalInfo.amount": + case "emissions.v2.DelegateStakeRemovalInfo.amount": return x.Amount != "" - case "emissions.v1.DelegateStakeRemovalInfo.block_removal_completed": + case "emissions.v2.DelegateStakeRemovalInfo.block_removal_completed": return x.BlockRemovalCompleted != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegateStakeRemovalInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegateStakeRemovalInfo")) } - panic(fmt.Errorf("message emissions.v1.DelegateStakeRemovalInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegateStakeRemovalInfo does not contain field %s", fd.FullName())) } } @@ -2564,23 +2564,23 @@ func (x *fastReflection_DelegateStakeRemovalInfo) Has(fd protoreflect.FieldDescr // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DelegateStakeRemovalInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.DelegateStakeRemovalInfo.block_removal_started": + case "emissions.v2.DelegateStakeRemovalInfo.block_removal_started": x.BlockRemovalStarted = int64(0) - case "emissions.v1.DelegateStakeRemovalInfo.topic_id": + case "emissions.v2.DelegateStakeRemovalInfo.topic_id": x.TopicId = uint64(0) - case "emissions.v1.DelegateStakeRemovalInfo.reputer": + case "emissions.v2.DelegateStakeRemovalInfo.reputer": x.Reputer = "" - case "emissions.v1.DelegateStakeRemovalInfo.delegator": + case "emissions.v2.DelegateStakeRemovalInfo.delegator": x.Delegator = "" - case "emissions.v1.DelegateStakeRemovalInfo.amount": + case "emissions.v2.DelegateStakeRemovalInfo.amount": x.Amount = "" - case "emissions.v1.DelegateStakeRemovalInfo.block_removal_completed": + case "emissions.v2.DelegateStakeRemovalInfo.block_removal_completed": x.BlockRemovalCompleted = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegateStakeRemovalInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegateStakeRemovalInfo")) } - panic(fmt.Errorf("message emissions.v1.DelegateStakeRemovalInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegateStakeRemovalInfo does not contain field %s", fd.FullName())) } } @@ -2592,29 +2592,29 @@ func (x *fastReflection_DelegateStakeRemovalInfo) Clear(fd protoreflect.FieldDes // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_DelegateStakeRemovalInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.DelegateStakeRemovalInfo.block_removal_started": + case "emissions.v2.DelegateStakeRemovalInfo.block_removal_started": value := x.BlockRemovalStarted return protoreflect.ValueOfInt64(value) - case "emissions.v1.DelegateStakeRemovalInfo.topic_id": + case "emissions.v2.DelegateStakeRemovalInfo.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.DelegateStakeRemovalInfo.reputer": + case "emissions.v2.DelegateStakeRemovalInfo.reputer": value := x.Reputer return protoreflect.ValueOfString(value) - case "emissions.v1.DelegateStakeRemovalInfo.delegator": + case "emissions.v2.DelegateStakeRemovalInfo.delegator": value := x.Delegator return protoreflect.ValueOfString(value) - case "emissions.v1.DelegateStakeRemovalInfo.amount": + case "emissions.v2.DelegateStakeRemovalInfo.amount": value := x.Amount return protoreflect.ValueOfString(value) - case "emissions.v1.DelegateStakeRemovalInfo.block_removal_completed": + case "emissions.v2.DelegateStakeRemovalInfo.block_removal_completed": value := x.BlockRemovalCompleted return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegateStakeRemovalInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegateStakeRemovalInfo")) } - panic(fmt.Errorf("message emissions.v1.DelegateStakeRemovalInfo does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegateStakeRemovalInfo does not contain field %s", descriptor.FullName())) } } @@ -2630,23 +2630,23 @@ func (x *fastReflection_DelegateStakeRemovalInfo) Get(descriptor protoreflect.Fi // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DelegateStakeRemovalInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.DelegateStakeRemovalInfo.block_removal_started": + case "emissions.v2.DelegateStakeRemovalInfo.block_removal_started": x.BlockRemovalStarted = value.Int() - case "emissions.v1.DelegateStakeRemovalInfo.topic_id": + case "emissions.v2.DelegateStakeRemovalInfo.topic_id": x.TopicId = value.Uint() - case "emissions.v1.DelegateStakeRemovalInfo.reputer": + case "emissions.v2.DelegateStakeRemovalInfo.reputer": x.Reputer = value.Interface().(string) - case "emissions.v1.DelegateStakeRemovalInfo.delegator": + case "emissions.v2.DelegateStakeRemovalInfo.delegator": x.Delegator = value.Interface().(string) - case "emissions.v1.DelegateStakeRemovalInfo.amount": + case "emissions.v2.DelegateStakeRemovalInfo.amount": x.Amount = value.Interface().(string) - case "emissions.v1.DelegateStakeRemovalInfo.block_removal_completed": + case "emissions.v2.DelegateStakeRemovalInfo.block_removal_completed": x.BlockRemovalCompleted = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegateStakeRemovalInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegateStakeRemovalInfo")) } - panic(fmt.Errorf("message emissions.v1.DelegateStakeRemovalInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegateStakeRemovalInfo does not contain field %s", fd.FullName())) } } @@ -2662,23 +2662,23 @@ func (x *fastReflection_DelegateStakeRemovalInfo) Set(fd protoreflect.FieldDescr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DelegateStakeRemovalInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.DelegateStakeRemovalInfo.block_removal_started": - panic(fmt.Errorf("field block_removal_started of message emissions.v1.DelegateStakeRemovalInfo is not mutable")) - case "emissions.v1.DelegateStakeRemovalInfo.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.DelegateStakeRemovalInfo is not mutable")) - case "emissions.v1.DelegateStakeRemovalInfo.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.DelegateStakeRemovalInfo is not mutable")) - case "emissions.v1.DelegateStakeRemovalInfo.delegator": - panic(fmt.Errorf("field delegator of message emissions.v1.DelegateStakeRemovalInfo is not mutable")) - case "emissions.v1.DelegateStakeRemovalInfo.amount": - panic(fmt.Errorf("field amount of message emissions.v1.DelegateStakeRemovalInfo is not mutable")) - case "emissions.v1.DelegateStakeRemovalInfo.block_removal_completed": - panic(fmt.Errorf("field block_removal_completed of message emissions.v1.DelegateStakeRemovalInfo is not mutable")) + case "emissions.v2.DelegateStakeRemovalInfo.block_removal_started": + panic(fmt.Errorf("field block_removal_started of message emissions.v2.DelegateStakeRemovalInfo is not mutable")) + case "emissions.v2.DelegateStakeRemovalInfo.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.DelegateStakeRemovalInfo is not mutable")) + case "emissions.v2.DelegateStakeRemovalInfo.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.DelegateStakeRemovalInfo is not mutable")) + case "emissions.v2.DelegateStakeRemovalInfo.delegator": + panic(fmt.Errorf("field delegator of message emissions.v2.DelegateStakeRemovalInfo is not mutable")) + case "emissions.v2.DelegateStakeRemovalInfo.amount": + panic(fmt.Errorf("field amount of message emissions.v2.DelegateStakeRemovalInfo is not mutable")) + case "emissions.v2.DelegateStakeRemovalInfo.block_removal_completed": + panic(fmt.Errorf("field block_removal_completed of message emissions.v2.DelegateStakeRemovalInfo is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegateStakeRemovalInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegateStakeRemovalInfo")) } - panic(fmt.Errorf("message emissions.v1.DelegateStakeRemovalInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegateStakeRemovalInfo does not contain field %s", fd.FullName())) } } @@ -2687,23 +2687,23 @@ func (x *fastReflection_DelegateStakeRemovalInfo) Mutable(fd protoreflect.FieldD // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_DelegateStakeRemovalInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.DelegateStakeRemovalInfo.block_removal_started": + case "emissions.v2.DelegateStakeRemovalInfo.block_removal_started": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.DelegateStakeRemovalInfo.topic_id": + case "emissions.v2.DelegateStakeRemovalInfo.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.DelegateStakeRemovalInfo.reputer": + case "emissions.v2.DelegateStakeRemovalInfo.reputer": return protoreflect.ValueOfString("") - case "emissions.v1.DelegateStakeRemovalInfo.delegator": + case "emissions.v2.DelegateStakeRemovalInfo.delegator": return protoreflect.ValueOfString("") - case "emissions.v1.DelegateStakeRemovalInfo.amount": + case "emissions.v2.DelegateStakeRemovalInfo.amount": return protoreflect.ValueOfString("") - case "emissions.v1.DelegateStakeRemovalInfo.block_removal_completed": + case "emissions.v2.DelegateStakeRemovalInfo.block_removal_completed": return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegateStakeRemovalInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegateStakeRemovalInfo")) } - panic(fmt.Errorf("message emissions.v1.DelegateStakeRemovalInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegateStakeRemovalInfo does not contain field %s", fd.FullName())) } } @@ -2713,7 +2713,7 @@ func (x *fastReflection_DelegateStakeRemovalInfo) NewField(fd protoreflect.Field func (x *fastReflection_DelegateStakeRemovalInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.DelegateStakeRemovalInfo", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.DelegateStakeRemovalInfo", d.FullName())) } panic("unreachable") } @@ -3098,8 +3098,8 @@ var ( ) func init() { - file_emissions_v1_stake_proto_init() - md_DelegatorInfo = File_emissions_v1_stake_proto.Messages().ByName("DelegatorInfo") + file_emissions_v2_stake_proto_init() + md_DelegatorInfo = File_emissions_v2_stake_proto.Messages().ByName("DelegatorInfo") fd_DelegatorInfo_amount = md_DelegatorInfo.Fields().ByName("amount") fd_DelegatorInfo_reward_debt = md_DelegatorInfo.Fields().ByName("reward_debt") } @@ -3113,7 +3113,7 @@ func (x *DelegatorInfo) ProtoReflect() protoreflect.Message { } func (x *DelegatorInfo) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_stake_proto_msgTypes[5] + mi := &file_emissions_v2_stake_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3196,15 +3196,15 @@ func (x *fastReflection_DelegatorInfo) Range(f func(protoreflect.FieldDescriptor // a repeated field is populated if it is non-empty. func (x *fastReflection_DelegatorInfo) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.DelegatorInfo.amount": + case "emissions.v2.DelegatorInfo.amount": return x.Amount != "" - case "emissions.v1.DelegatorInfo.reward_debt": + case "emissions.v2.DelegatorInfo.reward_debt": return x.RewardDebt != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegatorInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegatorInfo")) } - panic(fmt.Errorf("message emissions.v1.DelegatorInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegatorInfo does not contain field %s", fd.FullName())) } } @@ -3216,15 +3216,15 @@ func (x *fastReflection_DelegatorInfo) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DelegatorInfo) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.DelegatorInfo.amount": + case "emissions.v2.DelegatorInfo.amount": x.Amount = "" - case "emissions.v1.DelegatorInfo.reward_debt": + case "emissions.v2.DelegatorInfo.reward_debt": x.RewardDebt = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegatorInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegatorInfo")) } - panic(fmt.Errorf("message emissions.v1.DelegatorInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegatorInfo does not contain field %s", fd.FullName())) } } @@ -3236,17 +3236,17 @@ func (x *fastReflection_DelegatorInfo) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_DelegatorInfo) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.DelegatorInfo.amount": + case "emissions.v2.DelegatorInfo.amount": value := x.Amount return protoreflect.ValueOfString(value) - case "emissions.v1.DelegatorInfo.reward_debt": + case "emissions.v2.DelegatorInfo.reward_debt": value := x.RewardDebt return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegatorInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegatorInfo")) } - panic(fmt.Errorf("message emissions.v1.DelegatorInfo does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegatorInfo does not contain field %s", descriptor.FullName())) } } @@ -3262,15 +3262,15 @@ func (x *fastReflection_DelegatorInfo) Get(descriptor protoreflect.FieldDescript // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DelegatorInfo) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.DelegatorInfo.amount": + case "emissions.v2.DelegatorInfo.amount": x.Amount = value.Interface().(string) - case "emissions.v1.DelegatorInfo.reward_debt": + case "emissions.v2.DelegatorInfo.reward_debt": x.RewardDebt = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegatorInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegatorInfo")) } - panic(fmt.Errorf("message emissions.v1.DelegatorInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegatorInfo does not contain field %s", fd.FullName())) } } @@ -3286,15 +3286,15 @@ func (x *fastReflection_DelegatorInfo) Set(fd protoreflect.FieldDescriptor, valu // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_DelegatorInfo) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.DelegatorInfo.amount": - panic(fmt.Errorf("field amount of message emissions.v1.DelegatorInfo is not mutable")) - case "emissions.v1.DelegatorInfo.reward_debt": - panic(fmt.Errorf("field reward_debt of message emissions.v1.DelegatorInfo is not mutable")) + case "emissions.v2.DelegatorInfo.amount": + panic(fmt.Errorf("field amount of message emissions.v2.DelegatorInfo is not mutable")) + case "emissions.v2.DelegatorInfo.reward_debt": + panic(fmt.Errorf("field reward_debt of message emissions.v2.DelegatorInfo is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegatorInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegatorInfo")) } - panic(fmt.Errorf("message emissions.v1.DelegatorInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegatorInfo does not contain field %s", fd.FullName())) } } @@ -3303,15 +3303,15 @@ func (x *fastReflection_DelegatorInfo) Mutable(fd protoreflect.FieldDescriptor) // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_DelegatorInfo) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.DelegatorInfo.amount": + case "emissions.v2.DelegatorInfo.amount": return protoreflect.ValueOfString("") - case "emissions.v1.DelegatorInfo.reward_debt": + case "emissions.v2.DelegatorInfo.reward_debt": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.DelegatorInfo")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.DelegatorInfo")) } - panic(fmt.Errorf("message emissions.v1.DelegatorInfo does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.DelegatorInfo does not contain field %s", fd.FullName())) } } @@ -3321,7 +3321,7 @@ func (x *fastReflection_DelegatorInfo) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_DelegatorInfo) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.DelegatorInfo", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.DelegatorInfo", d.FullName())) } panic("unreachable") } @@ -3579,7 +3579,7 @@ func (x *fastReflection_DelegatorInfo) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: emissions/v1/stake.proto +// source: emissions/v2/stake.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -3605,7 +3605,7 @@ type StakePlacement struct { func (x *StakePlacement) Reset() { *x = StakePlacement{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_stake_proto_msgTypes[0] + mi := &file_emissions_v2_stake_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3619,7 +3619,7 @@ func (*StakePlacement) ProtoMessage() {} // Deprecated: Use StakePlacement.ProtoReflect.Descriptor instead. func (*StakePlacement) Descriptor() ([]byte, []int) { - return file_emissions_v1_stake_proto_rawDescGZIP(), []int{0} + return file_emissions_v2_stake_proto_rawDescGZIP(), []int{0} } func (x *StakePlacement) GetBlockRemovalStarted() int64 { @@ -3668,7 +3668,7 @@ type DelegateStakePlacement struct { func (x *DelegateStakePlacement) Reset() { *x = DelegateStakePlacement{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_stake_proto_msgTypes[1] + mi := &file_emissions_v2_stake_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3682,7 +3682,7 @@ func (*DelegateStakePlacement) ProtoMessage() {} // Deprecated: Use DelegateStakePlacement.ProtoReflect.Descriptor instead. func (*DelegateStakePlacement) Descriptor() ([]byte, []int) { - return file_emissions_v1_stake_proto_rawDescGZIP(), []int{1} + return file_emissions_v2_stake_proto_rawDescGZIP(), []int{1} } func (x *DelegateStakePlacement) GetBlockRemovalStarted() int64 { @@ -3734,7 +3734,7 @@ type StakeInfo struct { func (x *StakeInfo) Reset() { *x = StakeInfo{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_stake_proto_msgTypes[2] + mi := &file_emissions_v2_stake_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3748,7 +3748,7 @@ func (*StakeInfo) ProtoMessage() {} // Deprecated: Use StakeInfo.ProtoReflect.Descriptor instead. func (*StakeInfo) Descriptor() ([]byte, []int) { - return file_emissions_v1_stake_proto_rawDescGZIP(), []int{2} + return file_emissions_v2_stake_proto_rawDescGZIP(), []int{2} } func (x *StakeInfo) GetTopicId() uint64 { @@ -3788,7 +3788,7 @@ type StakeRemovalInfo struct { func (x *StakeRemovalInfo) Reset() { *x = StakeRemovalInfo{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_stake_proto_msgTypes[3] + mi := &file_emissions_v2_stake_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3802,7 +3802,7 @@ func (*StakeRemovalInfo) ProtoMessage() {} // Deprecated: Use StakeRemovalInfo.ProtoReflect.Descriptor instead. func (*StakeRemovalInfo) Descriptor() ([]byte, []int) { - return file_emissions_v1_stake_proto_rawDescGZIP(), []int{3} + return file_emissions_v2_stake_proto_rawDescGZIP(), []int{3} } func (x *StakeRemovalInfo) GetBlockRemovalStarted() int64 { @@ -3857,7 +3857,7 @@ type DelegateStakeRemovalInfo struct { func (x *DelegateStakeRemovalInfo) Reset() { *x = DelegateStakeRemovalInfo{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_stake_proto_msgTypes[4] + mi := &file_emissions_v2_stake_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3871,7 +3871,7 @@ func (*DelegateStakeRemovalInfo) ProtoMessage() {} // Deprecated: Use DelegateStakeRemovalInfo.ProtoReflect.Descriptor instead. func (*DelegateStakeRemovalInfo) Descriptor() ([]byte, []int) { - return file_emissions_v1_stake_proto_rawDescGZIP(), []int{4} + return file_emissions_v2_stake_proto_rawDescGZIP(), []int{4} } func (x *DelegateStakeRemovalInfo) GetBlockRemovalStarted() int64 { @@ -3928,7 +3928,7 @@ type DelegatorInfo struct { func (x *DelegatorInfo) Reset() { *x = DelegatorInfo{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_stake_proto_msgTypes[5] + mi := &file_emissions_v2_stake_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3942,7 +3942,7 @@ func (*DelegatorInfo) ProtoMessage() {} // Deprecated: Use DelegatorInfo.ProtoReflect.Descriptor instead. func (*DelegatorInfo) Descriptor() ([]byte, []int) { - return file_emissions_v1_stake_proto_rawDescGZIP(), []int{5} + return file_emissions_v2_stake_proto_rawDescGZIP(), []int{5} } func (x *DelegatorInfo) GetAmount() string { @@ -3959,12 +3959,12 @@ func (x *DelegatorInfo) GetRewardDebt() string { return "" } -var File_emissions_v1_stake_proto protoreflect.FileDescriptor +var File_emissions_v2_stake_proto protoreflect.FileDescriptor -var file_emissions_v1_stake_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, +var file_emissions_v2_stake_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x73, 0x74, 0x61, 0x6b, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, @@ -4052,42 +4052,42 @@ var file_emissions_v1_stake_proto_rawDesc = []byte{ 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0a, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, 0x62, 0x74, 0x42, 0xc0, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x2e, 0x76, 0x32, 0x42, 0x0a, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x76, 0x32, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, - 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_emissions_v1_stake_proto_rawDescOnce sync.Once - file_emissions_v1_stake_proto_rawDescData = file_emissions_v1_stake_proto_rawDesc + file_emissions_v2_stake_proto_rawDescOnce sync.Once + file_emissions_v2_stake_proto_rawDescData = file_emissions_v2_stake_proto_rawDesc ) -func file_emissions_v1_stake_proto_rawDescGZIP() []byte { - file_emissions_v1_stake_proto_rawDescOnce.Do(func() { - file_emissions_v1_stake_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v1_stake_proto_rawDescData) +func file_emissions_v2_stake_proto_rawDescGZIP() []byte { + file_emissions_v2_stake_proto_rawDescOnce.Do(func() { + file_emissions_v2_stake_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_stake_proto_rawDescData) }) - return file_emissions_v1_stake_proto_rawDescData + return file_emissions_v2_stake_proto_rawDescData } -var file_emissions_v1_stake_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_emissions_v1_stake_proto_goTypes = []interface{}{ - (*StakePlacement)(nil), // 0: emissions.v1.StakePlacement - (*DelegateStakePlacement)(nil), // 1: emissions.v1.DelegateStakePlacement - (*StakeInfo)(nil), // 2: emissions.v1.StakeInfo - (*StakeRemovalInfo)(nil), // 3: emissions.v1.StakeRemovalInfo - (*DelegateStakeRemovalInfo)(nil), // 4: emissions.v1.DelegateStakeRemovalInfo - (*DelegatorInfo)(nil), // 5: emissions.v1.DelegatorInfo +var file_emissions_v2_stake_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_emissions_v2_stake_proto_goTypes = []interface{}{ + (*StakePlacement)(nil), // 0: emissions.v2.StakePlacement + (*DelegateStakePlacement)(nil), // 1: emissions.v2.DelegateStakePlacement + (*StakeInfo)(nil), // 2: emissions.v2.StakeInfo + (*StakeRemovalInfo)(nil), // 3: emissions.v2.StakeRemovalInfo + (*DelegateStakeRemovalInfo)(nil), // 4: emissions.v2.DelegateStakeRemovalInfo + (*DelegatorInfo)(nil), // 5: emissions.v2.DelegatorInfo } -var file_emissions_v1_stake_proto_depIdxs = []int32{ +var file_emissions_v2_stake_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -4095,13 +4095,13 @@ var file_emissions_v1_stake_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_emissions_v1_stake_proto_init() } -func file_emissions_v1_stake_proto_init() { - if File_emissions_v1_stake_proto != nil { +func init() { file_emissions_v2_stake_proto_init() } +func file_emissions_v2_stake_proto_init() { + if File_emissions_v2_stake_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_emissions_v1_stake_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_stake_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StakePlacement); i { case 0: return &v.state @@ -4113,7 +4113,7 @@ func file_emissions_v1_stake_proto_init() { return nil } } - file_emissions_v1_stake_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_stake_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DelegateStakePlacement); i { case 0: return &v.state @@ -4125,7 +4125,7 @@ func file_emissions_v1_stake_proto_init() { return nil } } - file_emissions_v1_stake_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_stake_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StakeInfo); i { case 0: return &v.state @@ -4137,7 +4137,7 @@ func file_emissions_v1_stake_proto_init() { return nil } } - file_emissions_v1_stake_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_stake_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StakeRemovalInfo); i { case 0: return &v.state @@ -4149,7 +4149,7 @@ func file_emissions_v1_stake_proto_init() { return nil } } - file_emissions_v1_stake_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_stake_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DelegateStakeRemovalInfo); i { case 0: return &v.state @@ -4161,7 +4161,7 @@ func file_emissions_v1_stake_proto_init() { return nil } } - file_emissions_v1_stake_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_stake_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DelegatorInfo); i { case 0: return &v.state @@ -4178,18 +4178,18 @@ func file_emissions_v1_stake_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_emissions_v1_stake_proto_rawDesc, + RawDescriptor: file_emissions_v2_stake_proto_rawDesc, NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_emissions_v1_stake_proto_goTypes, - DependencyIndexes: file_emissions_v1_stake_proto_depIdxs, - MessageInfos: file_emissions_v1_stake_proto_msgTypes, + GoTypes: file_emissions_v2_stake_proto_goTypes, + DependencyIndexes: file_emissions_v2_stake_proto_depIdxs, + MessageInfos: file_emissions_v2_stake_proto_msgTypes, }.Build() - File_emissions_v1_stake_proto = out.File - file_emissions_v1_stake_proto_rawDesc = nil - file_emissions_v1_stake_proto_goTypes = nil - file_emissions_v1_stake_proto_depIdxs = nil + File_emissions_v2_stake_proto = out.File + file_emissions_v2_stake_proto_rawDesc = nil + file_emissions_v2_stake_proto_goTypes = nil + file_emissions_v2_stake_proto_depIdxs = nil } diff --git a/x/emissions/api/v2/topic.pulsar.go b/x/emissions/api/v2/topic.pulsar.go new file mode 100644 index 000000000..7f4599552 --- /dev/null +++ b/x/emissions/api/v2/topic.pulsar.go @@ -0,0 +1,3082 @@ +// Code generated by protoc-gen-go-pulsar. DO NOT EDIT. +package emissionsv2 + +import ( + fmt "fmt" + _ "github.com/cosmos/cosmos-proto" + runtime "github.com/cosmos/cosmos-proto/runtime" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoiface "google.golang.org/protobuf/runtime/protoiface" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + io "io" + reflect "reflect" + sync "sync" +) + +var ( + md_Topic protoreflect.MessageDescriptor + fd_Topic_id protoreflect.FieldDescriptor + fd_Topic_creator protoreflect.FieldDescriptor + fd_Topic_metadata protoreflect.FieldDescriptor + fd_Topic_loss_method protoreflect.FieldDescriptor + fd_Topic_epoch_last_ended protoreflect.FieldDescriptor + fd_Topic_epoch_length protoreflect.FieldDescriptor + fd_Topic_ground_truth_lag protoreflect.FieldDescriptor + fd_Topic_p_norm protoreflect.FieldDescriptor + fd_Topic_alpha_regret protoreflect.FieldDescriptor + fd_Topic_allow_negative protoreflect.FieldDescriptor + fd_Topic_epsilon protoreflect.FieldDescriptor + fd_Topic_initial_regret protoreflect.FieldDescriptor + fd_Topic_worker_submission_window protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_topic_proto_init() + md_Topic = File_emissions_v2_topic_proto.Messages().ByName("Topic") + fd_Topic_id = md_Topic.Fields().ByName("id") + fd_Topic_creator = md_Topic.Fields().ByName("creator") + fd_Topic_metadata = md_Topic.Fields().ByName("metadata") + fd_Topic_loss_method = md_Topic.Fields().ByName("loss_method") + fd_Topic_epoch_last_ended = md_Topic.Fields().ByName("epoch_last_ended") + fd_Topic_epoch_length = md_Topic.Fields().ByName("epoch_length") + fd_Topic_ground_truth_lag = md_Topic.Fields().ByName("ground_truth_lag") + fd_Topic_p_norm = md_Topic.Fields().ByName("p_norm") + fd_Topic_alpha_regret = md_Topic.Fields().ByName("alpha_regret") + fd_Topic_allow_negative = md_Topic.Fields().ByName("allow_negative") + fd_Topic_epsilon = md_Topic.Fields().ByName("epsilon") + fd_Topic_initial_regret = md_Topic.Fields().ByName("initial_regret") + fd_Topic_worker_submission_window = md_Topic.Fields().ByName("worker_submission_window") +} + +var _ protoreflect.Message = (*fastReflection_Topic)(nil) + +type fastReflection_Topic Topic + +func (x *Topic) ProtoReflect() protoreflect.Message { + return (*fastReflection_Topic)(x) +} + +func (x *Topic) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_topic_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_Topic_messageType fastReflection_Topic_messageType +var _ protoreflect.MessageType = fastReflection_Topic_messageType{} + +type fastReflection_Topic_messageType struct{} + +func (x fastReflection_Topic_messageType) Zero() protoreflect.Message { + return (*fastReflection_Topic)(nil) +} +func (x fastReflection_Topic_messageType) New() protoreflect.Message { + return new(fastReflection_Topic) +} +func (x fastReflection_Topic_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_Topic +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_Topic) Descriptor() protoreflect.MessageDescriptor { + return md_Topic +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_Topic) Type() protoreflect.MessageType { + return _fastReflection_Topic_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_Topic) New() protoreflect.Message { + return new(fastReflection_Topic) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_Topic) Interface() protoreflect.ProtoMessage { + return (*Topic)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_Topic) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.Id != uint64(0) { + value := protoreflect.ValueOfUint64(x.Id) + if !f(fd_Topic_id, value) { + return + } + } + if x.Creator != "" { + value := protoreflect.ValueOfString(x.Creator) + if !f(fd_Topic_creator, value) { + return + } + } + if x.Metadata != "" { + value := protoreflect.ValueOfString(x.Metadata) + if !f(fd_Topic_metadata, value) { + return + } + } + if x.LossMethod != "" { + value := protoreflect.ValueOfString(x.LossMethod) + if !f(fd_Topic_loss_method, value) { + return + } + } + if x.EpochLastEnded != int64(0) { + value := protoreflect.ValueOfInt64(x.EpochLastEnded) + if !f(fd_Topic_epoch_last_ended, value) { + return + } + } + if x.EpochLength != int64(0) { + value := protoreflect.ValueOfInt64(x.EpochLength) + if !f(fd_Topic_epoch_length, value) { + return + } + } + if x.GroundTruthLag != int64(0) { + value := protoreflect.ValueOfInt64(x.GroundTruthLag) + if !f(fd_Topic_ground_truth_lag, value) { + return + } + } + if x.PNorm != "" { + value := protoreflect.ValueOfString(x.PNorm) + if !f(fd_Topic_p_norm, value) { + return + } + } + if x.AlphaRegret != "" { + value := protoreflect.ValueOfString(x.AlphaRegret) + if !f(fd_Topic_alpha_regret, value) { + return + } + } + if x.AllowNegative != false { + value := protoreflect.ValueOfBool(x.AllowNegative) + if !f(fd_Topic_allow_negative, value) { + return + } + } + if x.Epsilon != "" { + value := protoreflect.ValueOfString(x.Epsilon) + if !f(fd_Topic_epsilon, value) { + return + } + } + if x.InitialRegret != "" { + value := protoreflect.ValueOfString(x.InitialRegret) + if !f(fd_Topic_initial_regret, value) { + return + } + } + if x.WorkerSubmissionWindow != int64(0) { + value := protoreflect.ValueOfInt64(x.WorkerSubmissionWindow) + if !f(fd_Topic_worker_submission_window, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_Topic) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.Topic.id": + return x.Id != uint64(0) + case "emissions.v2.Topic.creator": + return x.Creator != "" + case "emissions.v2.Topic.metadata": + return x.Metadata != "" + case "emissions.v2.Topic.loss_method": + return x.LossMethod != "" + case "emissions.v2.Topic.epoch_last_ended": + return x.EpochLastEnded != int64(0) + case "emissions.v2.Topic.epoch_length": + return x.EpochLength != int64(0) + case "emissions.v2.Topic.ground_truth_lag": + return x.GroundTruthLag != int64(0) + case "emissions.v2.Topic.p_norm": + return x.PNorm != "" + case "emissions.v2.Topic.alpha_regret": + return x.AlphaRegret != "" + case "emissions.v2.Topic.allow_negative": + return x.AllowNegative != false + case "emissions.v2.Topic.epsilon": + return x.Epsilon != "" + case "emissions.v2.Topic.initial_regret": + return x.InitialRegret != "" + case "emissions.v2.Topic.worker_submission_window": + return x.WorkerSubmissionWindow != int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Topic")) + } + panic(fmt.Errorf("message emissions.v2.Topic does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Topic) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.Topic.id": + x.Id = uint64(0) + case "emissions.v2.Topic.creator": + x.Creator = "" + case "emissions.v2.Topic.metadata": + x.Metadata = "" + case "emissions.v2.Topic.loss_method": + x.LossMethod = "" + case "emissions.v2.Topic.epoch_last_ended": + x.EpochLastEnded = int64(0) + case "emissions.v2.Topic.epoch_length": + x.EpochLength = int64(0) + case "emissions.v2.Topic.ground_truth_lag": + x.GroundTruthLag = int64(0) + case "emissions.v2.Topic.p_norm": + x.PNorm = "" + case "emissions.v2.Topic.alpha_regret": + x.AlphaRegret = "" + case "emissions.v2.Topic.allow_negative": + x.AllowNegative = false + case "emissions.v2.Topic.epsilon": + x.Epsilon = "" + case "emissions.v2.Topic.initial_regret": + x.InitialRegret = "" + case "emissions.v2.Topic.worker_submission_window": + x.WorkerSubmissionWindow = int64(0) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Topic")) + } + panic(fmt.Errorf("message emissions.v2.Topic does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_Topic) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.Topic.id": + value := x.Id + return protoreflect.ValueOfUint64(value) + case "emissions.v2.Topic.creator": + value := x.Creator + return protoreflect.ValueOfString(value) + case "emissions.v2.Topic.metadata": + value := x.Metadata + return protoreflect.ValueOfString(value) + case "emissions.v2.Topic.loss_method": + value := x.LossMethod + return protoreflect.ValueOfString(value) + case "emissions.v2.Topic.epoch_last_ended": + value := x.EpochLastEnded + return protoreflect.ValueOfInt64(value) + case "emissions.v2.Topic.epoch_length": + value := x.EpochLength + return protoreflect.ValueOfInt64(value) + case "emissions.v2.Topic.ground_truth_lag": + value := x.GroundTruthLag + return protoreflect.ValueOfInt64(value) + case "emissions.v2.Topic.p_norm": + value := x.PNorm + return protoreflect.ValueOfString(value) + case "emissions.v2.Topic.alpha_regret": + value := x.AlphaRegret + return protoreflect.ValueOfString(value) + case "emissions.v2.Topic.allow_negative": + value := x.AllowNegative + return protoreflect.ValueOfBool(value) + case "emissions.v2.Topic.epsilon": + value := x.Epsilon + return protoreflect.ValueOfString(value) + case "emissions.v2.Topic.initial_regret": + value := x.InitialRegret + return protoreflect.ValueOfString(value) + case "emissions.v2.Topic.worker_submission_window": + value := x.WorkerSubmissionWindow + return protoreflect.ValueOfInt64(value) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Topic")) + } + panic(fmt.Errorf("message emissions.v2.Topic does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Topic) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.Topic.id": + x.Id = value.Uint() + case "emissions.v2.Topic.creator": + x.Creator = value.Interface().(string) + case "emissions.v2.Topic.metadata": + x.Metadata = value.Interface().(string) + case "emissions.v2.Topic.loss_method": + x.LossMethod = value.Interface().(string) + case "emissions.v2.Topic.epoch_last_ended": + x.EpochLastEnded = value.Int() + case "emissions.v2.Topic.epoch_length": + x.EpochLength = value.Int() + case "emissions.v2.Topic.ground_truth_lag": + x.GroundTruthLag = value.Int() + case "emissions.v2.Topic.p_norm": + x.PNorm = value.Interface().(string) + case "emissions.v2.Topic.alpha_regret": + x.AlphaRegret = value.Interface().(string) + case "emissions.v2.Topic.allow_negative": + x.AllowNegative = value.Bool() + case "emissions.v2.Topic.epsilon": + x.Epsilon = value.Interface().(string) + case "emissions.v2.Topic.initial_regret": + x.InitialRegret = value.Interface().(string) + case "emissions.v2.Topic.worker_submission_window": + x.WorkerSubmissionWindow = value.Int() + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Topic")) + } + panic(fmt.Errorf("message emissions.v2.Topic does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Topic) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.Topic.id": + panic(fmt.Errorf("field id of message emissions.v2.Topic is not mutable")) + case "emissions.v2.Topic.creator": + panic(fmt.Errorf("field creator of message emissions.v2.Topic is not mutable")) + case "emissions.v2.Topic.metadata": + panic(fmt.Errorf("field metadata of message emissions.v2.Topic is not mutable")) + case "emissions.v2.Topic.loss_method": + panic(fmt.Errorf("field loss_method of message emissions.v2.Topic is not mutable")) + case "emissions.v2.Topic.epoch_last_ended": + panic(fmt.Errorf("field epoch_last_ended of message emissions.v2.Topic is not mutable")) + case "emissions.v2.Topic.epoch_length": + panic(fmt.Errorf("field epoch_length of message emissions.v2.Topic is not mutable")) + case "emissions.v2.Topic.ground_truth_lag": + panic(fmt.Errorf("field ground_truth_lag of message emissions.v2.Topic is not mutable")) + case "emissions.v2.Topic.p_norm": + panic(fmt.Errorf("field p_norm of message emissions.v2.Topic is not mutable")) + case "emissions.v2.Topic.alpha_regret": + panic(fmt.Errorf("field alpha_regret of message emissions.v2.Topic is not mutable")) + case "emissions.v2.Topic.allow_negative": + panic(fmt.Errorf("field allow_negative of message emissions.v2.Topic is not mutable")) + case "emissions.v2.Topic.epsilon": + panic(fmt.Errorf("field epsilon of message emissions.v2.Topic is not mutable")) + case "emissions.v2.Topic.initial_regret": + panic(fmt.Errorf("field initial_regret of message emissions.v2.Topic is not mutable")) + case "emissions.v2.Topic.worker_submission_window": + panic(fmt.Errorf("field worker_submission_window of message emissions.v2.Topic is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Topic")) + } + panic(fmt.Errorf("message emissions.v2.Topic does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_Topic) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.Topic.id": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.Topic.creator": + return protoreflect.ValueOfString("") + case "emissions.v2.Topic.metadata": + return protoreflect.ValueOfString("") + case "emissions.v2.Topic.loss_method": + return protoreflect.ValueOfString("") + case "emissions.v2.Topic.epoch_last_ended": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.Topic.epoch_length": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.Topic.ground_truth_lag": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.Topic.p_norm": + return protoreflect.ValueOfString("") + case "emissions.v2.Topic.alpha_regret": + return protoreflect.ValueOfString("") + case "emissions.v2.Topic.allow_negative": + return protoreflect.ValueOfBool(false) + case "emissions.v2.Topic.epsilon": + return protoreflect.ValueOfString("") + case "emissions.v2.Topic.initial_regret": + return protoreflect.ValueOfString("") + case "emissions.v2.Topic.worker_submission_window": + return protoreflect.ValueOfInt64(int64(0)) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Topic")) + } + panic(fmt.Errorf("message emissions.v2.Topic does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_Topic) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.Topic", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_Topic) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_Topic) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_Topic) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_Topic) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*Topic) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.Id != 0 { + n += 1 + runtime.Sov(uint64(x.Id)) + } + l = len(x.Creator) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.Metadata) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.LossMethod) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.EpochLastEnded != 0 { + n += 1 + runtime.Sov(uint64(x.EpochLastEnded)) + } + if x.EpochLength != 0 { + n += 1 + runtime.Sov(uint64(x.EpochLength)) + } + if x.GroundTruthLag != 0 { + n += 1 + runtime.Sov(uint64(x.GroundTruthLag)) + } + l = len(x.PNorm) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.AlphaRegret) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.AllowNegative { + n += 2 + } + l = len(x.Epsilon) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } + l = len(x.InitialRegret) + if l > 0 { + n += 2 + l + runtime.Sov(uint64(l)) + } + if x.WorkerSubmissionWindow != 0 { + n += 2 + runtime.Sov(uint64(x.WorkerSubmissionWindow)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*Topic) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.WorkerSubmissionWindow != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.WorkerSubmissionWindow)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } + if len(x.InitialRegret) > 0 { + i -= len(x.InitialRegret) + copy(dAtA[i:], x.InitialRegret) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InitialRegret))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + if len(x.Epsilon) > 0 { + i -= len(x.Epsilon) + copy(dAtA[i:], x.Epsilon) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Epsilon))) + i-- + dAtA[i] = 0x7a + } + if x.AllowNegative { + i-- + if x.AllowNegative { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x70 + } + if len(x.AlphaRegret) > 0 { + i -= len(x.AlphaRegret) + copy(dAtA[i:], x.AlphaRegret) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.AlphaRegret))) + i-- + dAtA[i] = 0x6a + } + if len(x.PNorm) > 0 { + i -= len(x.PNorm) + copy(dAtA[i:], x.PNorm) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PNorm))) + i-- + dAtA[i] = 0x62 + } + if x.GroundTruthLag != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.GroundTruthLag)) + i-- + dAtA[i] = 0x50 + } + if x.EpochLength != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochLength)) + i-- + dAtA[i] = 0x48 + } + if x.EpochLastEnded != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.EpochLastEnded)) + i-- + dAtA[i] = 0x40 + } + if len(x.LossMethod) > 0 { + i -= len(x.LossMethod) + copy(dAtA[i:], x.LossMethod) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LossMethod))) + i-- + dAtA[i] = 0x2a + } + if len(x.Metadata) > 0 { + i -= len(x.Metadata) + copy(dAtA[i:], x.Metadata) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Metadata))) + i-- + dAtA[i] = 0x1a + } + if len(x.Creator) > 0 { + i -= len(x.Creator) + copy(dAtA[i:], x.Creator) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Creator))) + i-- + dAtA[i] = 0x12 + } + if x.Id != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.Id)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*Topic) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Topic: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Topic: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + x.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LossMethod", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.LossMethod = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EpochLastEnded", wireType) + } + x.EpochLastEnded = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.EpochLastEnded |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EpochLength", wireType) + } + x.EpochLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.EpochLength |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroundTruthLag", wireType) + } + x.GroundTruthLag = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.GroundTruthLag |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 12: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PNorm", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.PNorm = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AlphaRegret", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.AlphaRegret = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 14: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field AllowNegative", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.AllowNegative = bool(v != 0) + case 15: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Epsilon", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Epsilon = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 16: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InitialRegret", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.InitialRegret = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 17: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WorkerSubmissionWindow", wireType) + } + x.WorkerSubmissionWindow = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.WorkerSubmissionWindow |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_TopicList_1_list)(nil) + +type _TopicList_1_list struct { + list *[]*Topic +} + +func (x *_TopicList_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_TopicList_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) +} + +func (x *_TopicList_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Topic) + (*x.list)[i] = concreteValue +} + +func (x *_TopicList_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Message() + concreteValue := valueUnwrapped.Interface().(*Topic) + *x.list = append(*x.list, concreteValue) +} + +func (x *_TopicList_1_list) AppendMutable() protoreflect.Value { + v := new(Topic) + *x.list = append(*x.list, v) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_TopicList_1_list) Truncate(n int) { + for i := n; i < len(*x.list); i++ { + (*x.list)[i] = nil + } + *x.list = (*x.list)[:n] +} + +func (x *_TopicList_1_list) NewElement() protoreflect.Value { + v := new(Topic) + return protoreflect.ValueOfMessage(v.ProtoReflect()) +} + +func (x *_TopicList_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_TopicList protoreflect.MessageDescriptor + fd_TopicList_topics protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_topic_proto_init() + md_TopicList = File_emissions_v2_topic_proto.Messages().ByName("TopicList") + fd_TopicList_topics = md_TopicList.Fields().ByName("topics") +} + +var _ protoreflect.Message = (*fastReflection_TopicList)(nil) + +type fastReflection_TopicList TopicList + +func (x *TopicList) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicList)(x) +} + +func (x *TopicList) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_topic_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicList_messageType fastReflection_TopicList_messageType +var _ protoreflect.MessageType = fastReflection_TopicList_messageType{} + +type fastReflection_TopicList_messageType struct{} + +func (x fastReflection_TopicList_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicList)(nil) +} +func (x fastReflection_TopicList_messageType) New() protoreflect.Message { + return new(fastReflection_TopicList) +} +func (x fastReflection_TopicList_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicList +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicList) Descriptor() protoreflect.MessageDescriptor { + return md_TopicList +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicList) Type() protoreflect.MessageType { + return _fastReflection_TopicList_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicList) New() protoreflect.Message { + return new(fastReflection_TopicList) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicList) Interface() protoreflect.ProtoMessage { + return (*TopicList)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicList) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.Topics) != 0 { + value := protoreflect.ValueOfList(&_TopicList_1_list{list: &x.Topics}) + if !f(fd_TopicList_topics, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicList) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicList.topics": + return len(x.Topics) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicList")) + } + panic(fmt.Errorf("message emissions.v2.TopicList does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicList) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicList.topics": + x.Topics = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicList")) + } + panic(fmt.Errorf("message emissions.v2.TopicList does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicList) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicList.topics": + if len(x.Topics) == 0 { + return protoreflect.ValueOfList(&_TopicList_1_list{}) + } + listValue := &_TopicList_1_list{list: &x.Topics} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicList")) + } + panic(fmt.Errorf("message emissions.v2.TopicList does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicList) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicList.topics": + lv := value.List() + clv := lv.(*_TopicList_1_list) + x.Topics = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicList")) + } + panic(fmt.Errorf("message emissions.v2.TopicList does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicList) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicList.topics": + if x.Topics == nil { + x.Topics = []*Topic{} + } + value := &_TopicList_1_list{list: &x.Topics} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicList")) + } + panic(fmt.Errorf("message emissions.v2.TopicList does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicList) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicList.topics": + list := []*Topic{} + return protoreflect.ValueOfList(&_TopicList_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicList")) + } + panic(fmt.Errorf("message emissions.v2.TopicList does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicList) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicList", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicList) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicList) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicList) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicList) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicList) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.Topics) > 0 { + for _, e := range x.Topics { + l = options.Size(e) + n += 1 + l + runtime.Sov(uint64(l)) + } + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicList) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.Topics) > 0 { + for iNdEx := len(x.Topics) - 1; iNdEx >= 0; iNdEx-- { + encoded, err := options.Marshal(x.Topics[iNdEx]) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0xa + } + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicList) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.Topics = append(x.Topics, &Topic{}) + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Topics[len(x.Topics)-1]); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_TimestampedActorNonce protoreflect.MessageDescriptor + fd_TimestampedActorNonce_block_height protoreflect.FieldDescriptor + fd_TimestampedActorNonce_nonce protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_topic_proto_init() + md_TimestampedActorNonce = File_emissions_v2_topic_proto.Messages().ByName("TimestampedActorNonce") + fd_TimestampedActorNonce_block_height = md_TimestampedActorNonce.Fields().ByName("block_height") + fd_TimestampedActorNonce_nonce = md_TimestampedActorNonce.Fields().ByName("nonce") +} + +var _ protoreflect.Message = (*fastReflection_TimestampedActorNonce)(nil) + +type fastReflection_TimestampedActorNonce TimestampedActorNonce + +func (x *TimestampedActorNonce) ProtoReflect() protoreflect.Message { + return (*fastReflection_TimestampedActorNonce)(x) +} + +func (x *TimestampedActorNonce) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_topic_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TimestampedActorNonce_messageType fastReflection_TimestampedActorNonce_messageType +var _ protoreflect.MessageType = fastReflection_TimestampedActorNonce_messageType{} + +type fastReflection_TimestampedActorNonce_messageType struct{} + +func (x fastReflection_TimestampedActorNonce_messageType) Zero() protoreflect.Message { + return (*fastReflection_TimestampedActorNonce)(nil) +} +func (x fastReflection_TimestampedActorNonce_messageType) New() protoreflect.Message { + return new(fastReflection_TimestampedActorNonce) +} +func (x fastReflection_TimestampedActorNonce_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TimestampedActorNonce +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TimestampedActorNonce) Descriptor() protoreflect.MessageDescriptor { + return md_TimestampedActorNonce +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TimestampedActorNonce) Type() protoreflect.MessageType { + return _fastReflection_TimestampedActorNonce_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TimestampedActorNonce) New() protoreflect.Message { + return new(fastReflection_TimestampedActorNonce) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TimestampedActorNonce) Interface() protoreflect.ProtoMessage { + return (*TimestampedActorNonce)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TimestampedActorNonce) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if x.BlockHeight != int64(0) { + value := protoreflect.ValueOfInt64(x.BlockHeight) + if !f(fd_TimestampedActorNonce_block_height, value) { + return + } + } + if x.Nonce != nil { + value := protoreflect.ValueOfMessage(x.Nonce.ProtoReflect()) + if !f(fd_TimestampedActorNonce_nonce, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TimestampedActorNonce) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TimestampedActorNonce.block_height": + return x.BlockHeight != int64(0) + case "emissions.v2.TimestampedActorNonce.nonce": + return x.Nonce != nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TimestampedActorNonce")) + } + panic(fmt.Errorf("message emissions.v2.TimestampedActorNonce does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TimestampedActorNonce) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TimestampedActorNonce.block_height": + x.BlockHeight = int64(0) + case "emissions.v2.TimestampedActorNonce.nonce": + x.Nonce = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TimestampedActorNonce")) + } + panic(fmt.Errorf("message emissions.v2.TimestampedActorNonce does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TimestampedActorNonce) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TimestampedActorNonce.block_height": + value := x.BlockHeight + return protoreflect.ValueOfInt64(value) + case "emissions.v2.TimestampedActorNonce.nonce": + value := x.Nonce + return protoreflect.ValueOfMessage(value.ProtoReflect()) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TimestampedActorNonce")) + } + panic(fmt.Errorf("message emissions.v2.TimestampedActorNonce does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TimestampedActorNonce) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TimestampedActorNonce.block_height": + x.BlockHeight = value.Int() + case "emissions.v2.TimestampedActorNonce.nonce": + x.Nonce = value.Message().Interface().(*Nonce) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TimestampedActorNonce")) + } + panic(fmt.Errorf("message emissions.v2.TimestampedActorNonce does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TimestampedActorNonce) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TimestampedActorNonce.nonce": + if x.Nonce == nil { + x.Nonce = new(Nonce) + } + return protoreflect.ValueOfMessage(x.Nonce.ProtoReflect()) + case "emissions.v2.TimestampedActorNonce.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.TimestampedActorNonce is not mutable")) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TimestampedActorNonce")) + } + panic(fmt.Errorf("message emissions.v2.TimestampedActorNonce does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TimestampedActorNonce) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TimestampedActorNonce.block_height": + return protoreflect.ValueOfInt64(int64(0)) + case "emissions.v2.TimestampedActorNonce.nonce": + m := new(Nonce) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TimestampedActorNonce")) + } + panic(fmt.Errorf("message emissions.v2.TimestampedActorNonce does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TimestampedActorNonce) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TimestampedActorNonce", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TimestampedActorNonce) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TimestampedActorNonce) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TimestampedActorNonce) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TimestampedActorNonce) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TimestampedActorNonce) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if x.BlockHeight != 0 { + n += 1 + runtime.Sov(uint64(x.BlockHeight)) + } + if x.Nonce != nil { + l = options.Size(x.Nonce) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TimestampedActorNonce) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if x.Nonce != nil { + encoded, err := options.Marshal(x.Nonce) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- + dAtA[i] = 0x1a + } + if x.BlockHeight != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.BlockHeight)) + i-- + dAtA[i] = 0x8 + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TimestampedActorNonce) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TimestampedActorNonce: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TimestampedActorNonce: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + x.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Nonce == nil { + x.Nonce = &Nonce{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nonce); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var _ protoreflect.List = (*_TopicIds_1_list)(nil) + +type _TopicIds_1_list struct { + list *[]uint64 +} + +func (x *_TopicIds_1_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_TopicIds_1_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfUint64((*x.list)[i]) +} + +func (x *_TopicIds_1_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_TopicIds_1_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_TopicIds_1_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message TopicIds at list field TopicIds as it is not of Message kind")) +} + +func (x *_TopicIds_1_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_TopicIds_1_list) NewElement() protoreflect.Value { + v := uint64(0) + return protoreflect.ValueOfUint64(v) +} + +func (x *_TopicIds_1_list) IsValid() bool { + return x.list != nil +} + +var ( + md_TopicIds protoreflect.MessageDescriptor + fd_TopicIds_topic_ids protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_topic_proto_init() + md_TopicIds = File_emissions_v2_topic_proto.Messages().ByName("TopicIds") + fd_TopicIds_topic_ids = md_TopicIds.Fields().ByName("topic_ids") +} + +var _ protoreflect.Message = (*fastReflection_TopicIds)(nil) + +type fastReflection_TopicIds TopicIds + +func (x *TopicIds) ProtoReflect() protoreflect.Message { + return (*fastReflection_TopicIds)(x) +} + +func (x *TopicIds) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_topic_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +var _fastReflection_TopicIds_messageType fastReflection_TopicIds_messageType +var _ protoreflect.MessageType = fastReflection_TopicIds_messageType{} + +type fastReflection_TopicIds_messageType struct{} + +func (x fastReflection_TopicIds_messageType) Zero() protoreflect.Message { + return (*fastReflection_TopicIds)(nil) +} +func (x fastReflection_TopicIds_messageType) New() protoreflect.Message { + return new(fastReflection_TopicIds) +} +func (x fastReflection_TopicIds_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIds +} + +// Descriptor returns message descriptor, which contains only the protobuf +// type information for the message. +func (x *fastReflection_TopicIds) Descriptor() protoreflect.MessageDescriptor { + return md_TopicIds +} + +// Type returns the message type, which encapsulates both Go and protobuf +// type information. If the Go type information is not needed, +// it is recommended that the message descriptor be used instead. +func (x *fastReflection_TopicIds) Type() protoreflect.MessageType { + return _fastReflection_TopicIds_messageType +} + +// New returns a newly allocated and mutable empty message. +func (x *fastReflection_TopicIds) New() protoreflect.Message { + return new(fastReflection_TopicIds) +} + +// Interface unwraps the message reflection interface and +// returns the underlying ProtoMessage interface. +func (x *fastReflection_TopicIds) Interface() protoreflect.ProtoMessage { + return (*TopicIds)(x) +} + +// Range iterates over every populated field in an undefined order, +// calling f for each field descriptor and value encountered. +// Range returns immediately if f returns false. +// While iterating, mutating operations may only be performed +// on the current field descriptor. +func (x *fastReflection_TopicIds) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { + if len(x.TopicIds) != 0 { + value := protoreflect.ValueOfList(&_TopicIds_1_list{list: &x.TopicIds}) + if !f(fd_TopicIds_topic_ids, value) { + return + } + } +} + +// Has reports whether a field is populated. +// +// Some fields have the property of nullability where it is possible to +// distinguish between the default value of a field and whether the field +// was explicitly populated with the default value. Singular message fields, +// member fields of a oneof, and proto2 scalar fields are nullable. Such +// fields are populated only if explicitly set. +// +// In other cases (aside from the nullable cases above), +// a proto3 scalar field is populated if it contains a non-zero value, and +// a repeated field is populated if it is non-empty. +func (x *fastReflection_TopicIds) Has(fd protoreflect.FieldDescriptor) bool { + switch fd.FullName() { + case "emissions.v2.TopicIds.topic_ids": + return len(x.TopicIds) != 0 + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIds")) + } + panic(fmt.Errorf("message emissions.v2.TopicIds does not contain field %s", fd.FullName())) + } +} + +// Clear clears the field such that a subsequent Has call reports false. +// +// Clearing an extension field clears both the extension type and value +// associated with the given field number. +// +// Clear is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIds) Clear(fd protoreflect.FieldDescriptor) { + switch fd.FullName() { + case "emissions.v2.TopicIds.topic_ids": + x.TopicIds = nil + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIds")) + } + panic(fmt.Errorf("message emissions.v2.TopicIds does not contain field %s", fd.FullName())) + } +} + +// Get retrieves the value for a field. +// +// For unpopulated scalars, it returns the default value, where +// the default value of a bytes scalar is guaranteed to be a copy. +// For unpopulated composite types, it returns an empty, read-only view +// of the value; to obtain a mutable reference, use Mutable. +func (x *fastReflection_TopicIds) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { + switch descriptor.FullName() { + case "emissions.v2.TopicIds.topic_ids": + if len(x.TopicIds) == 0 { + return protoreflect.ValueOfList(&_TopicIds_1_list{}) + } + listValue := &_TopicIds_1_list{list: &x.TopicIds} + return protoreflect.ValueOfList(listValue) + default: + if descriptor.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIds")) + } + panic(fmt.Errorf("message emissions.v2.TopicIds does not contain field %s", descriptor.FullName())) + } +} + +// Set stores the value for a field. +// +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType. +// When setting a composite type, it is unspecified whether the stored value +// aliases the source's memory in any way. If the composite value is an +// empty, read-only value, then it panics. +// +// Set is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIds) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { + switch fd.FullName() { + case "emissions.v2.TopicIds.topic_ids": + lv := value.List() + clv := lv.(*_TopicIds_1_list) + x.TopicIds = *clv.list + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIds")) + } + panic(fmt.Errorf("message emissions.v2.TopicIds does not contain field %s", fd.FullName())) + } +} + +// Mutable returns a mutable reference to a composite type. +// +// If the field is unpopulated, it may allocate a composite value. +// For a field belonging to a oneof, it implicitly clears any other field +// that may be currently set within the same oneof. +// For extension fields, it implicitly stores the provided ExtensionType +// if not already stored. +// It panics if the field does not contain a composite type. +// +// Mutable is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIds) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIds.topic_ids": + if x.TopicIds == nil { + x.TopicIds = []uint64{} + } + value := &_TopicIds_1_list{list: &x.TopicIds} + return protoreflect.ValueOfList(value) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIds")) + } + panic(fmt.Errorf("message emissions.v2.TopicIds does not contain field %s", fd.FullName())) + } +} + +// NewField returns a new value that is assignable to the field +// for the given descriptor. For scalars, this returns the default value. +// For lists, maps, and messages, this returns a new, empty, mutable value. +func (x *fastReflection_TopicIds) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { + switch fd.FullName() { + case "emissions.v2.TopicIds.topic_ids": + list := []uint64{} + return protoreflect.ValueOfList(&_TopicIds_1_list{list: &list}) + default: + if fd.IsExtension() { + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TopicIds")) + } + panic(fmt.Errorf("message emissions.v2.TopicIds does not contain field %s", fd.FullName())) + } +} + +// WhichOneof reports which field within the oneof is populated, +// returning nil if none are populated. +// It panics if the oneof descriptor does not belong to this message. +func (x *fastReflection_TopicIds) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { + switch d.FullName() { + default: + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TopicIds", d.FullName())) + } + panic("unreachable") +} + +// GetUnknown retrieves the entire list of unknown fields. +// The caller may only mutate the contents of the RawFields +// if the mutated bytes are stored back into the message with SetUnknown. +func (x *fastReflection_TopicIds) GetUnknown() protoreflect.RawFields { + return x.unknownFields +} + +// SetUnknown stores an entire list of unknown fields. +// The raw fields must be syntactically valid according to the wire format. +// An implementation may panic if this is not the case. +// Once stored, the caller must not mutate the content of the RawFields. +// An empty RawFields may be passed to clear the fields. +// +// SetUnknown is a mutating operation and unsafe for concurrent use. +func (x *fastReflection_TopicIds) SetUnknown(fields protoreflect.RawFields) { + x.unknownFields = fields +} + +// IsValid reports whether the message is valid. +// +// An invalid message is an empty, read-only value. +// +// An invalid message often corresponds to a nil pointer of the concrete +// message type, but the details are implementation dependent. +// Validity is not part of the protobuf data model, and may not +// be preserved in marshaling or other operations. +func (x *fastReflection_TopicIds) IsValid() bool { + return x != nil +} + +// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations. +// This method may return nil. +// +// The returned methods type is identical to +// "google.golang.org/protobuf/runtime/protoiface".Methods. +// Consult the protoiface package documentation for details. +func (x *fastReflection_TopicIds) ProtoMethods() *protoiface.Methods { + size := func(input protoiface.SizeInput) protoiface.SizeOutput { + x := input.Message.Interface().(*TopicIds) + if x == nil { + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: 0, + } + } + options := runtime.SizeInputToOptions(input) + _ = options + var n int + var l int + _ = l + if len(x.TopicIds) > 0 { + l = 0 + for _, e := range x.TopicIds { + l += runtime.Sov(uint64(e)) + } + n += 1 + runtime.Sov(uint64(l)) + l + } + if x.unknownFields != nil { + n += len(x.unknownFields) + } + return protoiface.SizeOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Size: n, + } + } + + marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { + x := input.Message.Interface().(*TopicIds) + if x == nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + options := runtime.MarshalInputToOptions(input) + _ = options + size := options.Size(x) + dAtA := make([]byte, size) + i := len(dAtA) + _ = i + var l int + _ = l + if x.unknownFields != nil { + i -= len(x.unknownFields) + copy(dAtA[i:], x.unknownFields) + } + if len(x.TopicIds) > 0 { + var pksize2 int + for _, num := range x.TopicIds { + pksize2 += runtime.Sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num := range x.TopicIds { + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0xa + } + if input.Buf != nil { + input.Buf = append(input.Buf, dAtA...) + } else { + input.Buf = dAtA + } + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, nil + } + unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { + x := input.Message.Interface().(*TopicIds) + if x == nil { + return protoiface.UnmarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Flags: input.Flags, + }, nil + } + options := runtime.UnmarshalInputToOptions(input) + _ = options + dAtA := input.Buf + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIds: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: TopicIds: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.TopicIds = append(x.TopicIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(x.TopicIds) == 0 { + x.TopicIds = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.TopicIds = append(x.TopicIds, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicIds", wireType) + } + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.0 +// protoc (unknown) +// source: emissions/v2/topic.proto + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Topic struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` + Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + LossMethod string `protobuf:"bytes,5,opt,name=loss_method,json=lossMethod,proto3" json:"loss_method,omitempty"` + EpochLastEnded int64 `protobuf:"varint,8,opt,name=epoch_last_ended,json=epochLastEnded,proto3" json:"epoch_last_ended,omitempty"` + EpochLength int64 `protobuf:"varint,9,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` + GroundTruthLag int64 `protobuf:"varint,10,opt,name=ground_truth_lag,json=groundTruthLag,proto3" json:"ground_truth_lag,omitempty"` + PNorm string `protobuf:"bytes,12,opt,name=p_norm,json=pNorm,proto3" json:"p_norm,omitempty"` + AlphaRegret string `protobuf:"bytes,13,opt,name=alpha_regret,json=alphaRegret,proto3" json:"alpha_regret,omitempty"` + AllowNegative bool `protobuf:"varint,14,opt,name=allow_negative,json=allowNegative,proto3" json:"allow_negative,omitempty"` + Epsilon string `protobuf:"bytes,15,opt,name=epsilon,proto3" json:"epsilon,omitempty"` + InitialRegret string `protobuf:"bytes,16,opt,name=initial_regret,json=initialRegret,proto3" json:"initial_regret,omitempty"` + WorkerSubmissionWindow int64 `protobuf:"varint,17,opt,name=worker_submission_window,json=workerSubmissionWindow,proto3" json:"worker_submission_window,omitempty"` +} + +func (x *Topic) Reset() { + *x = Topic{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_topic_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Topic) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Topic) ProtoMessage() {} + +// Deprecated: Use Topic.ProtoReflect.Descriptor instead. +func (*Topic) Descriptor() ([]byte, []int) { + return file_emissions_v2_topic_proto_rawDescGZIP(), []int{0} +} + +func (x *Topic) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *Topic) GetCreator() string { + if x != nil { + return x.Creator + } + return "" +} + +func (x *Topic) GetMetadata() string { + if x != nil { + return x.Metadata + } + return "" +} + +func (x *Topic) GetLossMethod() string { + if x != nil { + return x.LossMethod + } + return "" +} + +func (x *Topic) GetEpochLastEnded() int64 { + if x != nil { + return x.EpochLastEnded + } + return 0 +} + +func (x *Topic) GetEpochLength() int64 { + if x != nil { + return x.EpochLength + } + return 0 +} + +func (x *Topic) GetGroundTruthLag() int64 { + if x != nil { + return x.GroundTruthLag + } + return 0 +} + +func (x *Topic) GetPNorm() string { + if x != nil { + return x.PNorm + } + return "" +} + +func (x *Topic) GetAlphaRegret() string { + if x != nil { + return x.AlphaRegret + } + return "" +} + +func (x *Topic) GetAllowNegative() bool { + if x != nil { + return x.AllowNegative + } + return false +} + +func (x *Topic) GetEpsilon() string { + if x != nil { + return x.Epsilon + } + return "" +} + +func (x *Topic) GetInitialRegret() string { + if x != nil { + return x.InitialRegret + } + return "" +} + +func (x *Topic) GetWorkerSubmissionWindow() int64 { + if x != nil { + return x.WorkerSubmissionWindow + } + return 0 +} + +type TopicList struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Topics []*Topic `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"` +} + +func (x *TopicList) Reset() { + *x = TopicList{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_topic_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicList) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicList) ProtoMessage() {} + +// Deprecated: Use TopicList.ProtoReflect.Descriptor instead. +func (*TopicList) Descriptor() ([]byte, []int) { + return file_emissions_v2_topic_proto_rawDescGZIP(), []int{1} +} + +func (x *TopicList) GetTopics() []*Topic { + if x != nil { + return x.Topics + } + return nil +} + +type TimestampedActorNonce struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // height at which value calculated or received + Nonce *Nonce `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (x *TimestampedActorNonce) Reset() { + *x = TimestampedActorNonce{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_topic_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TimestampedActorNonce) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimestampedActorNonce) ProtoMessage() {} + +// Deprecated: Use TimestampedActorNonce.ProtoReflect.Descriptor instead. +func (*TimestampedActorNonce) Descriptor() ([]byte, []int) { + return file_emissions_v2_topic_proto_rawDescGZIP(), []int{2} +} + +func (x *TimestampedActorNonce) GetBlockHeight() int64 { + if x != nil { + return x.BlockHeight + } + return 0 +} + +func (x *TimestampedActorNonce) GetNonce() *Nonce { + if x != nil { + return x.Nonce + } + return nil +} + +type TopicIds struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + TopicIds []uint64 `protobuf:"varint,1,rep,packed,name=topic_ids,json=topicIds,proto3" json:"topic_ids,omitempty"` +} + +func (x *TopicIds) Reset() { + *x = TopicIds{} + if protoimpl.UnsafeEnabled { + mi := &file_emissions_v2_topic_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TopicIds) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TopicIds) ProtoMessage() {} + +// Deprecated: Use TopicIds.ProtoReflect.Descriptor instead. +func (*TopicIds) Descriptor() ([]byte, []int) { + return file_emissions_v2_topic_proto_rawDescGZIP(), []int{3} +} + +func (x *TopicIds) GetTopicIds() []uint64 { + if x != nil { + return x.TopicIds + } + return nil +} + +var File_emissions_v2_topic_proto protoreflect.FileDescriptor + +var file_emissions_v2_topic_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, + 0x6f, 0x70, 0x69, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf9, 0x05, 0x0a, 0x05, 0x54, 0x6f, 0x70, 0x69, 0x63, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x6d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f, 0x73, + 0x73, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0e, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x4c, 0x61, 0x73, 0x74, 0x45, 0x6e, 0x64, 0x65, + 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, + 0x68, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x4c, 0x65, + 0x6e, 0x67, 0x74, 0x68, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x74, + 0x72, 0x75, 0x74, 0x68, 0x5f, 0x6c, 0x61, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, + 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x72, 0x75, 0x74, 0x68, 0x4c, 0x61, 0x67, 0x12, 0x4e, + 0x0a, 0x06, 0x70, 0x5f, 0x6e, 0x6f, 0x72, 0x6d, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x05, 0x70, 0x4e, 0x6f, 0x72, 0x6d, 0x12, 0x5a, + 0x0a, 0x0c, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x5f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0b, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, + 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x18, 0x0e, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, + 0x65, 0x12, 0x51, 0x0a, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, + 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x07, 0x65, 0x70, 0x73, + 0x69, 0x6c, 0x6f, 0x6e, 0x12, 0x5e, 0x0a, 0x0e, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, + 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, + 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, + 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, + 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0d, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, + 0x67, 0x72, 0x65, 0x74, 0x12, 0x38, 0x0a, 0x18, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x73, + 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, + 0x18, 0x11, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x53, 0x75, + 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x4a, 0x04, + 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, + 0x4a, 0x04, 0x08, 0x0b, 0x10, 0x0c, 0x52, 0x0a, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, + 0x69, 0x63, 0x52, 0x0f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6c, 0x6f, + 0x67, 0x69, 0x63, 0x52, 0x10, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x61, + 0x72, 0x67, 0x22, 0x38, 0x0a, 0x09, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x2b, 0x0a, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54, + 0x6f, 0x70, 0x69, 0x63, 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x22, 0x78, 0x0a, 0x15, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x41, 0x63, 0x74, 0x6f, 0x72, + 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, + 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x6e, 0x6f, + 0x6e, 0x63, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x52, + 0x05, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x2d, 0x0a, 0x08, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x64, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x73, 0x3a, + 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x42, 0xc0, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0a, 0x54, 0x6f, 0x70, 0x69, + 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, + 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, + 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18, + 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_emissions_v2_topic_proto_rawDescOnce sync.Once + file_emissions_v2_topic_proto_rawDescData = file_emissions_v2_topic_proto_rawDesc +) + +func file_emissions_v2_topic_proto_rawDescGZIP() []byte { + file_emissions_v2_topic_proto_rawDescOnce.Do(func() { + file_emissions_v2_topic_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_topic_proto_rawDescData) + }) + return file_emissions_v2_topic_proto_rawDescData +} + +var file_emissions_v2_topic_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_emissions_v2_topic_proto_goTypes = []interface{}{ + (*Topic)(nil), // 0: emissions.v2.Topic + (*TopicList)(nil), // 1: emissions.v2.TopicList + (*TimestampedActorNonce)(nil), // 2: emissions.v2.TimestampedActorNonce + (*TopicIds)(nil), // 3: emissions.v2.TopicIds + (*Nonce)(nil), // 4: emissions.v2.Nonce +} +var file_emissions_v2_topic_proto_depIdxs = []int32{ + 0, // 0: emissions.v2.TopicList.topics:type_name -> emissions.v2.Topic + 4, // 1: emissions.v2.TimestampedActorNonce.nonce:type_name -> emissions.v2.Nonce + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_emissions_v2_topic_proto_init() } +func file_emissions_v2_topic_proto_init() { + if File_emissions_v2_topic_proto != nil { + return + } + file_emissions_v2_nonce_proto_init() + if !protoimpl.UnsafeEnabled { + file_emissions_v2_topic_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Topic); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_topic_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_topic_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TimestampedActorNonce); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_emissions_v2_topic_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TopicIds); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_emissions_v2_topic_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_emissions_v2_topic_proto_goTypes, + DependencyIndexes: file_emissions_v2_topic_proto_depIdxs, + MessageInfos: file_emissions_v2_topic_proto_msgTypes, + }.Build() + File_emissions_v2_topic_proto = out.File + file_emissions_v2_topic_proto_rawDesc = nil + file_emissions_v2_topic_proto_goTypes = nil + file_emissions_v2_topic_proto_depIdxs = nil +} diff --git a/x/emissions/api/v1/tx.pulsar.go b/x/emissions/api/v2/tx.pulsar.go similarity index 82% rename from x/emissions/api/v1/tx.pulsar.go rename to x/emissions/api/v2/tx.pulsar.go index 626257495..7ac4415ab 100644 --- a/x/emissions/api/v1/tx.pulsar.go +++ b/x/emissions/api/v2/tx.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package emissionsv1 +package emissionsv2 import ( fmt "fmt" @@ -1856,53 +1856,194 @@ func (x *_OptionalParams_41_list) IsValid() bool { return x.list != nil } +var _ protoreflect.List = (*_OptionalParams_42_list)(nil) + +type _OptionalParams_42_list struct { + list *[]uint64 +} + +func (x *_OptionalParams_42_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_OptionalParams_42_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfUint64((*x.list)[i]) +} + +func (x *_OptionalParams_42_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_OptionalParams_42_list) Append(value protoreflect.Value) { + valueUnwrapped := value.Uint() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_OptionalParams_42_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message OptionalParams at list field HalfMaxProcessStakeRemovalsEndBlock as it is not of Message kind")) +} + +func (x *_OptionalParams_42_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_OptionalParams_42_list) NewElement() protoreflect.Value { + v := uint64(0) + return protoreflect.ValueOfUint64(v) +} + +func (x *_OptionalParams_42_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_OptionalParams_43_list)(nil) + +type _OptionalParams_43_list struct { + list *[]string +} + +func (x *_OptionalParams_43_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_OptionalParams_43_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_OptionalParams_43_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_OptionalParams_43_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_OptionalParams_43_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message OptionalParams at list field DataSendingFee as it is not of Message kind")) +} + +func (x *_OptionalParams_43_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_OptionalParams_43_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_OptionalParams_43_list) IsValid() bool { + return x.list != nil +} + +var _ protoreflect.List = (*_OptionalParams_44_list)(nil) + +type _OptionalParams_44_list struct { + list *[]string +} + +func (x *_OptionalParams_44_list) Len() int { + if x.list == nil { + return 0 + } + return len(*x.list) +} + +func (x *_OptionalParams_44_list) Get(i int) protoreflect.Value { + return protoreflect.ValueOfString((*x.list)[i]) +} + +func (x *_OptionalParams_44_list) Set(i int, value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + (*x.list)[i] = concreteValue +} + +func (x *_OptionalParams_44_list) Append(value protoreflect.Value) { + valueUnwrapped := value.String() + concreteValue := valueUnwrapped + *x.list = append(*x.list, concreteValue) +} + +func (x *_OptionalParams_44_list) AppendMutable() protoreflect.Value { + panic(fmt.Errorf("AppendMutable can not be called on message OptionalParams at list field EpsilonSafeDiv as it is not of Message kind")) +} + +func (x *_OptionalParams_44_list) Truncate(n int) { + *x.list = (*x.list)[:n] +} + +func (x *_OptionalParams_44_list) NewElement() protoreflect.Value { + v := "" + return protoreflect.ValueOfString(v) +} + +func (x *_OptionalParams_44_list) IsValid() bool { + return x.list != nil +} + var ( - md_OptionalParams protoreflect.MessageDescriptor - fd_OptionalParams_version protoreflect.FieldDescriptor - fd_OptionalParams_max_serialized_msg_length protoreflect.FieldDescriptor - fd_OptionalParams_min_topic_weight protoreflect.FieldDescriptor - fd_OptionalParams_max_topics_per_block protoreflect.FieldDescriptor - fd_OptionalParams_required_minimum_stake protoreflect.FieldDescriptor - fd_OptionalParams_remove_stake_delay_window protoreflect.FieldDescriptor - fd_OptionalParams_min_epoch_length protoreflect.FieldDescriptor - fd_OptionalParams_beta_entropy protoreflect.FieldDescriptor - fd_OptionalParams_learning_rate protoreflect.FieldDescriptor - fd_OptionalParams_max_gradient_threshold protoreflect.FieldDescriptor - fd_OptionalParams_min_stake_fraction protoreflect.FieldDescriptor - fd_OptionalParams_max_unfulfilled_worker_requests protoreflect.FieldDescriptor - fd_OptionalParams_max_unfulfilled_reputer_requests protoreflect.FieldDescriptor - fd_OptionalParams_topic_reward_stake_importance protoreflect.FieldDescriptor - fd_OptionalParams_topic_reward_fee_revenue_importance protoreflect.FieldDescriptor - fd_OptionalParams_topic_reward_alpha protoreflect.FieldDescriptor - fd_OptionalParams_task_reward_alpha protoreflect.FieldDescriptor - fd_OptionalParams_validators_vs_allora_percent_reward protoreflect.FieldDescriptor - fd_OptionalParams_max_samples_to_scale_scores protoreflect.FieldDescriptor - fd_OptionalParams_max_top_inferers_to_reward protoreflect.FieldDescriptor - fd_OptionalParams_max_top_forecasters_to_reward protoreflect.FieldDescriptor - fd_OptionalParams_max_top_reputers_to_reward protoreflect.FieldDescriptor - fd_OptionalParams_create_topic_fee protoreflect.FieldDescriptor - fd_OptionalParams_gradient_descent_max_iters protoreflect.FieldDescriptor - fd_OptionalParams_max_retries_to_fulfil_nonces_worker protoreflect.FieldDescriptor - fd_OptionalParams_max_retries_to_fulfil_nonces_reputer protoreflect.FieldDescriptor - fd_OptionalParams_registration_fee protoreflect.FieldDescriptor - fd_OptionalParams_default_page_limit protoreflect.FieldDescriptor - fd_OptionalParams_max_page_limit protoreflect.FieldDescriptor - fd_OptionalParams_min_epoch_length_record_limit protoreflect.FieldDescriptor - fd_OptionalParams_blocks_per_month protoreflect.FieldDescriptor - fd_OptionalParams_p_reward_inference protoreflect.FieldDescriptor - fd_OptionalParams_p_reward_forecast protoreflect.FieldDescriptor - fd_OptionalParams_p_reward_reputer protoreflect.FieldDescriptor - fd_OptionalParams_c_reward_inference protoreflect.FieldDescriptor - fd_OptionalParams_c_reward_forecast protoreflect.FieldDescriptor - fd_OptionalParams_c_norm protoreflect.FieldDescriptor - fd_OptionalParams_topic_fee_revenue_decay_rate protoreflect.FieldDescriptor - fd_OptionalParams_epsilon_reputer protoreflect.FieldDescriptor - fd_OptionalParams_min_effective_topic_revenue protoreflect.FieldDescriptor + md_OptionalParams protoreflect.MessageDescriptor + fd_OptionalParams_version protoreflect.FieldDescriptor + fd_OptionalParams_max_serialized_msg_length protoreflect.FieldDescriptor + fd_OptionalParams_min_topic_weight protoreflect.FieldDescriptor + fd_OptionalParams_max_topics_per_block protoreflect.FieldDescriptor + fd_OptionalParams_required_minimum_stake protoreflect.FieldDescriptor + fd_OptionalParams_remove_stake_delay_window protoreflect.FieldDescriptor + fd_OptionalParams_min_epoch_length protoreflect.FieldDescriptor + fd_OptionalParams_beta_entropy protoreflect.FieldDescriptor + fd_OptionalParams_learning_rate protoreflect.FieldDescriptor + fd_OptionalParams_max_gradient_threshold protoreflect.FieldDescriptor + fd_OptionalParams_min_stake_fraction protoreflect.FieldDescriptor + fd_OptionalParams_max_unfulfilled_worker_requests protoreflect.FieldDescriptor + fd_OptionalParams_max_unfulfilled_reputer_requests protoreflect.FieldDescriptor + fd_OptionalParams_topic_reward_stake_importance protoreflect.FieldDescriptor + fd_OptionalParams_topic_reward_fee_revenue_importance protoreflect.FieldDescriptor + fd_OptionalParams_topic_reward_alpha protoreflect.FieldDescriptor + fd_OptionalParams_task_reward_alpha protoreflect.FieldDescriptor + fd_OptionalParams_validators_vs_allora_percent_reward protoreflect.FieldDescriptor + fd_OptionalParams_max_samples_to_scale_scores protoreflect.FieldDescriptor + fd_OptionalParams_max_top_inferers_to_reward protoreflect.FieldDescriptor + fd_OptionalParams_max_top_forecasters_to_reward protoreflect.FieldDescriptor + fd_OptionalParams_max_top_reputers_to_reward protoreflect.FieldDescriptor + fd_OptionalParams_create_topic_fee protoreflect.FieldDescriptor + fd_OptionalParams_gradient_descent_max_iters protoreflect.FieldDescriptor + fd_OptionalParams_max_retries_to_fulfil_nonces_worker protoreflect.FieldDescriptor + fd_OptionalParams_max_retries_to_fulfil_nonces_reputer protoreflect.FieldDescriptor + fd_OptionalParams_registration_fee protoreflect.FieldDescriptor + fd_OptionalParams_default_page_limit protoreflect.FieldDescriptor + fd_OptionalParams_max_page_limit protoreflect.FieldDescriptor + fd_OptionalParams_min_epoch_length_record_limit protoreflect.FieldDescriptor + fd_OptionalParams_blocks_per_month protoreflect.FieldDescriptor + fd_OptionalParams_p_reward_inference protoreflect.FieldDescriptor + fd_OptionalParams_p_reward_forecast protoreflect.FieldDescriptor + fd_OptionalParams_p_reward_reputer protoreflect.FieldDescriptor + fd_OptionalParams_c_reward_inference protoreflect.FieldDescriptor + fd_OptionalParams_c_reward_forecast protoreflect.FieldDescriptor + fd_OptionalParams_c_norm protoreflect.FieldDescriptor + fd_OptionalParams_topic_fee_revenue_decay_rate protoreflect.FieldDescriptor + fd_OptionalParams_epsilon_reputer protoreflect.FieldDescriptor + fd_OptionalParams_min_effective_topic_revenue protoreflect.FieldDescriptor + fd_OptionalParams_half_max_process_stake_removals_end_block protoreflect.FieldDescriptor + fd_OptionalParams_data_sending_fee protoreflect.FieldDescriptor + fd_OptionalParams_epsilon_safe_div protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_tx_proto_init() - md_OptionalParams = File_emissions_v1_tx_proto.Messages().ByName("OptionalParams") + file_emissions_v2_tx_proto_init() + md_OptionalParams = File_emissions_v2_tx_proto.Messages().ByName("OptionalParams") fd_OptionalParams_version = md_OptionalParams.Fields().ByName("version") fd_OptionalParams_max_serialized_msg_length = md_OptionalParams.Fields().ByName("max_serialized_msg_length") fd_OptionalParams_min_topic_weight = md_OptionalParams.Fields().ByName("min_topic_weight") @@ -1943,6 +2084,9 @@ func init() { fd_OptionalParams_topic_fee_revenue_decay_rate = md_OptionalParams.Fields().ByName("topic_fee_revenue_decay_rate") fd_OptionalParams_epsilon_reputer = md_OptionalParams.Fields().ByName("epsilon_reputer") fd_OptionalParams_min_effective_topic_revenue = md_OptionalParams.Fields().ByName("min_effective_topic_revenue") + fd_OptionalParams_half_max_process_stake_removals_end_block = md_OptionalParams.Fields().ByName("half_max_process_stake_removals_end_block") + fd_OptionalParams_data_sending_fee = md_OptionalParams.Fields().ByName("data_sending_fee") + fd_OptionalParams_epsilon_safe_div = md_OptionalParams.Fields().ByName("epsilon_safe_div") } var _ protoreflect.Message = (*fastReflection_OptionalParams)(nil) @@ -1954,7 +2098,7 @@ func (x *OptionalParams) ProtoReflect() protoreflect.Message { } func (x *OptionalParams) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[0] + mi := &file_emissions_v2_tx_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2250,6 +2394,24 @@ func (x *fastReflection_OptionalParams) Range(f func(protoreflect.FieldDescripto return } } + if len(x.HalfMaxProcessStakeRemovalsEndBlock) != 0 { + value := protoreflect.ValueOfList(&_OptionalParams_42_list{list: &x.HalfMaxProcessStakeRemovalsEndBlock}) + if !f(fd_OptionalParams_half_max_process_stake_removals_end_block, value) { + return + } + } + if len(x.DataSendingFee) != 0 { + value := protoreflect.ValueOfList(&_OptionalParams_43_list{list: &x.DataSendingFee}) + if !f(fd_OptionalParams_data_sending_fee, value) { + return + } + } + if len(x.EpsilonSafeDiv) != 0 { + value := protoreflect.ValueOfList(&_OptionalParams_44_list{list: &x.EpsilonSafeDiv}) + if !f(fd_OptionalParams_epsilon_safe_div, value) { + return + } + } } // Has reports whether a field is populated. @@ -2265,91 +2427,97 @@ func (x *fastReflection_OptionalParams) Range(f func(protoreflect.FieldDescripto // a repeated field is populated if it is non-empty. func (x *fastReflection_OptionalParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.OptionalParams.version": + case "emissions.v2.OptionalParams.version": return len(x.Version) != 0 - case "emissions.v1.OptionalParams.max_serialized_msg_length": + case "emissions.v2.OptionalParams.max_serialized_msg_length": return len(x.MaxSerializedMsgLength) != 0 - case "emissions.v1.OptionalParams.min_topic_weight": + case "emissions.v2.OptionalParams.min_topic_weight": return len(x.MinTopicWeight) != 0 - case "emissions.v1.OptionalParams.max_topics_per_block": + case "emissions.v2.OptionalParams.max_topics_per_block": return len(x.MaxTopicsPerBlock) != 0 - case "emissions.v1.OptionalParams.required_minimum_stake": + case "emissions.v2.OptionalParams.required_minimum_stake": return len(x.RequiredMinimumStake) != 0 - case "emissions.v1.OptionalParams.remove_stake_delay_window": + case "emissions.v2.OptionalParams.remove_stake_delay_window": return len(x.RemoveStakeDelayWindow) != 0 - case "emissions.v1.OptionalParams.min_epoch_length": + case "emissions.v2.OptionalParams.min_epoch_length": return len(x.MinEpochLength) != 0 - case "emissions.v1.OptionalParams.beta_entropy": + case "emissions.v2.OptionalParams.beta_entropy": return len(x.BetaEntropy) != 0 - case "emissions.v1.OptionalParams.learning_rate": + case "emissions.v2.OptionalParams.learning_rate": return len(x.LearningRate) != 0 - case "emissions.v1.OptionalParams.max_gradient_threshold": + case "emissions.v2.OptionalParams.max_gradient_threshold": return len(x.MaxGradientThreshold) != 0 - case "emissions.v1.OptionalParams.min_stake_fraction": + case "emissions.v2.OptionalParams.min_stake_fraction": return len(x.MinStakeFraction) != 0 - case "emissions.v1.OptionalParams.max_unfulfilled_worker_requests": + case "emissions.v2.OptionalParams.max_unfulfilled_worker_requests": return len(x.MaxUnfulfilledWorkerRequests) != 0 - case "emissions.v1.OptionalParams.max_unfulfilled_reputer_requests": + case "emissions.v2.OptionalParams.max_unfulfilled_reputer_requests": return len(x.MaxUnfulfilledReputerRequests) != 0 - case "emissions.v1.OptionalParams.topic_reward_stake_importance": + case "emissions.v2.OptionalParams.topic_reward_stake_importance": return len(x.TopicRewardStakeImportance) != 0 - case "emissions.v1.OptionalParams.topic_reward_fee_revenue_importance": + case "emissions.v2.OptionalParams.topic_reward_fee_revenue_importance": return len(x.TopicRewardFeeRevenueImportance) != 0 - case "emissions.v1.OptionalParams.topic_reward_alpha": + case "emissions.v2.OptionalParams.topic_reward_alpha": return len(x.TopicRewardAlpha) != 0 - case "emissions.v1.OptionalParams.task_reward_alpha": + case "emissions.v2.OptionalParams.task_reward_alpha": return len(x.TaskRewardAlpha) != 0 - case "emissions.v1.OptionalParams.validators_vs_allora_percent_reward": + case "emissions.v2.OptionalParams.validators_vs_allora_percent_reward": return len(x.ValidatorsVsAlloraPercentReward) != 0 - case "emissions.v1.OptionalParams.max_samples_to_scale_scores": + case "emissions.v2.OptionalParams.max_samples_to_scale_scores": return len(x.MaxSamplesToScaleScores) != 0 - case "emissions.v1.OptionalParams.max_top_inferers_to_reward": + case "emissions.v2.OptionalParams.max_top_inferers_to_reward": return len(x.MaxTopInferersToReward) != 0 - case "emissions.v1.OptionalParams.max_top_forecasters_to_reward": + case "emissions.v2.OptionalParams.max_top_forecasters_to_reward": return len(x.MaxTopForecastersToReward) != 0 - case "emissions.v1.OptionalParams.max_top_reputers_to_reward": + case "emissions.v2.OptionalParams.max_top_reputers_to_reward": return len(x.MaxTopReputersToReward) != 0 - case "emissions.v1.OptionalParams.create_topic_fee": + case "emissions.v2.OptionalParams.create_topic_fee": return len(x.CreateTopicFee) != 0 - case "emissions.v1.OptionalParams.gradient_descent_max_iters": + case "emissions.v2.OptionalParams.gradient_descent_max_iters": return len(x.GradientDescentMaxIters) != 0 - case "emissions.v1.OptionalParams.max_retries_to_fulfil_nonces_worker": + case "emissions.v2.OptionalParams.max_retries_to_fulfil_nonces_worker": return len(x.MaxRetriesToFulfilNoncesWorker) != 0 - case "emissions.v1.OptionalParams.max_retries_to_fulfil_nonces_reputer": + case "emissions.v2.OptionalParams.max_retries_to_fulfil_nonces_reputer": return len(x.MaxRetriesToFulfilNoncesReputer) != 0 - case "emissions.v1.OptionalParams.registration_fee": + case "emissions.v2.OptionalParams.registration_fee": return len(x.RegistrationFee) != 0 - case "emissions.v1.OptionalParams.default_page_limit": + case "emissions.v2.OptionalParams.default_page_limit": return len(x.DefaultPageLimit) != 0 - case "emissions.v1.OptionalParams.max_page_limit": + case "emissions.v2.OptionalParams.max_page_limit": return len(x.MaxPageLimit) != 0 - case "emissions.v1.OptionalParams.min_epoch_length_record_limit": + case "emissions.v2.OptionalParams.min_epoch_length_record_limit": return len(x.MinEpochLengthRecordLimit) != 0 - case "emissions.v1.OptionalParams.blocks_per_month": + case "emissions.v2.OptionalParams.blocks_per_month": return len(x.BlocksPerMonth) != 0 - case "emissions.v1.OptionalParams.p_reward_inference": + case "emissions.v2.OptionalParams.p_reward_inference": return len(x.PRewardInference) != 0 - case "emissions.v1.OptionalParams.p_reward_forecast": + case "emissions.v2.OptionalParams.p_reward_forecast": return len(x.PRewardForecast) != 0 - case "emissions.v1.OptionalParams.p_reward_reputer": + case "emissions.v2.OptionalParams.p_reward_reputer": return len(x.PRewardReputer) != 0 - case "emissions.v1.OptionalParams.c_reward_inference": + case "emissions.v2.OptionalParams.c_reward_inference": return len(x.CRewardInference) != 0 - case "emissions.v1.OptionalParams.c_reward_forecast": + case "emissions.v2.OptionalParams.c_reward_forecast": return len(x.CRewardForecast) != 0 - case "emissions.v1.OptionalParams.c_norm": + case "emissions.v2.OptionalParams.c_norm": return len(x.CNorm) != 0 - case "emissions.v1.OptionalParams.topic_fee_revenue_decay_rate": + case "emissions.v2.OptionalParams.topic_fee_revenue_decay_rate": return len(x.TopicFeeRevenueDecayRate) != 0 - case "emissions.v1.OptionalParams.epsilon_reputer": + case "emissions.v2.OptionalParams.epsilon_reputer": return len(x.EpsilonReputer) != 0 - case "emissions.v1.OptionalParams.min_effective_topic_revenue": + case "emissions.v2.OptionalParams.min_effective_topic_revenue": return len(x.MinEffectiveTopicRevenue) != 0 + case "emissions.v2.OptionalParams.half_max_process_stake_removals_end_block": + return len(x.HalfMaxProcessStakeRemovalsEndBlock) != 0 + case "emissions.v2.OptionalParams.data_sending_fee": + return len(x.DataSendingFee) != 0 + case "emissions.v2.OptionalParams.epsilon_safe_div": + return len(x.EpsilonSafeDiv) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.OptionalParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OptionalParams")) } - panic(fmt.Errorf("message emissions.v1.OptionalParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.OptionalParams does not contain field %s", fd.FullName())) } } @@ -2361,91 +2529,97 @@ func (x *fastReflection_OptionalParams) Has(fd protoreflect.FieldDescriptor) boo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_OptionalParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.OptionalParams.version": + case "emissions.v2.OptionalParams.version": x.Version = nil - case "emissions.v1.OptionalParams.max_serialized_msg_length": + case "emissions.v2.OptionalParams.max_serialized_msg_length": x.MaxSerializedMsgLength = nil - case "emissions.v1.OptionalParams.min_topic_weight": + case "emissions.v2.OptionalParams.min_topic_weight": x.MinTopicWeight = nil - case "emissions.v1.OptionalParams.max_topics_per_block": + case "emissions.v2.OptionalParams.max_topics_per_block": x.MaxTopicsPerBlock = nil - case "emissions.v1.OptionalParams.required_minimum_stake": + case "emissions.v2.OptionalParams.required_minimum_stake": x.RequiredMinimumStake = nil - case "emissions.v1.OptionalParams.remove_stake_delay_window": + case "emissions.v2.OptionalParams.remove_stake_delay_window": x.RemoveStakeDelayWindow = nil - case "emissions.v1.OptionalParams.min_epoch_length": + case "emissions.v2.OptionalParams.min_epoch_length": x.MinEpochLength = nil - case "emissions.v1.OptionalParams.beta_entropy": + case "emissions.v2.OptionalParams.beta_entropy": x.BetaEntropy = nil - case "emissions.v1.OptionalParams.learning_rate": + case "emissions.v2.OptionalParams.learning_rate": x.LearningRate = nil - case "emissions.v1.OptionalParams.max_gradient_threshold": + case "emissions.v2.OptionalParams.max_gradient_threshold": x.MaxGradientThreshold = nil - case "emissions.v1.OptionalParams.min_stake_fraction": + case "emissions.v2.OptionalParams.min_stake_fraction": x.MinStakeFraction = nil - case "emissions.v1.OptionalParams.max_unfulfilled_worker_requests": + case "emissions.v2.OptionalParams.max_unfulfilled_worker_requests": x.MaxUnfulfilledWorkerRequests = nil - case "emissions.v1.OptionalParams.max_unfulfilled_reputer_requests": + case "emissions.v2.OptionalParams.max_unfulfilled_reputer_requests": x.MaxUnfulfilledReputerRequests = nil - case "emissions.v1.OptionalParams.topic_reward_stake_importance": + case "emissions.v2.OptionalParams.topic_reward_stake_importance": x.TopicRewardStakeImportance = nil - case "emissions.v1.OptionalParams.topic_reward_fee_revenue_importance": + case "emissions.v2.OptionalParams.topic_reward_fee_revenue_importance": x.TopicRewardFeeRevenueImportance = nil - case "emissions.v1.OptionalParams.topic_reward_alpha": + case "emissions.v2.OptionalParams.topic_reward_alpha": x.TopicRewardAlpha = nil - case "emissions.v1.OptionalParams.task_reward_alpha": + case "emissions.v2.OptionalParams.task_reward_alpha": x.TaskRewardAlpha = nil - case "emissions.v1.OptionalParams.validators_vs_allora_percent_reward": + case "emissions.v2.OptionalParams.validators_vs_allora_percent_reward": x.ValidatorsVsAlloraPercentReward = nil - case "emissions.v1.OptionalParams.max_samples_to_scale_scores": + case "emissions.v2.OptionalParams.max_samples_to_scale_scores": x.MaxSamplesToScaleScores = nil - case "emissions.v1.OptionalParams.max_top_inferers_to_reward": + case "emissions.v2.OptionalParams.max_top_inferers_to_reward": x.MaxTopInferersToReward = nil - case "emissions.v1.OptionalParams.max_top_forecasters_to_reward": + case "emissions.v2.OptionalParams.max_top_forecasters_to_reward": x.MaxTopForecastersToReward = nil - case "emissions.v1.OptionalParams.max_top_reputers_to_reward": + case "emissions.v2.OptionalParams.max_top_reputers_to_reward": x.MaxTopReputersToReward = nil - case "emissions.v1.OptionalParams.create_topic_fee": + case "emissions.v2.OptionalParams.create_topic_fee": x.CreateTopicFee = nil - case "emissions.v1.OptionalParams.gradient_descent_max_iters": + case "emissions.v2.OptionalParams.gradient_descent_max_iters": x.GradientDescentMaxIters = nil - case "emissions.v1.OptionalParams.max_retries_to_fulfil_nonces_worker": + case "emissions.v2.OptionalParams.max_retries_to_fulfil_nonces_worker": x.MaxRetriesToFulfilNoncesWorker = nil - case "emissions.v1.OptionalParams.max_retries_to_fulfil_nonces_reputer": + case "emissions.v2.OptionalParams.max_retries_to_fulfil_nonces_reputer": x.MaxRetriesToFulfilNoncesReputer = nil - case "emissions.v1.OptionalParams.registration_fee": + case "emissions.v2.OptionalParams.registration_fee": x.RegistrationFee = nil - case "emissions.v1.OptionalParams.default_page_limit": + case "emissions.v2.OptionalParams.default_page_limit": x.DefaultPageLimit = nil - case "emissions.v1.OptionalParams.max_page_limit": + case "emissions.v2.OptionalParams.max_page_limit": x.MaxPageLimit = nil - case "emissions.v1.OptionalParams.min_epoch_length_record_limit": + case "emissions.v2.OptionalParams.min_epoch_length_record_limit": x.MinEpochLengthRecordLimit = nil - case "emissions.v1.OptionalParams.blocks_per_month": + case "emissions.v2.OptionalParams.blocks_per_month": x.BlocksPerMonth = nil - case "emissions.v1.OptionalParams.p_reward_inference": + case "emissions.v2.OptionalParams.p_reward_inference": x.PRewardInference = nil - case "emissions.v1.OptionalParams.p_reward_forecast": + case "emissions.v2.OptionalParams.p_reward_forecast": x.PRewardForecast = nil - case "emissions.v1.OptionalParams.p_reward_reputer": + case "emissions.v2.OptionalParams.p_reward_reputer": x.PRewardReputer = nil - case "emissions.v1.OptionalParams.c_reward_inference": + case "emissions.v2.OptionalParams.c_reward_inference": x.CRewardInference = nil - case "emissions.v1.OptionalParams.c_reward_forecast": + case "emissions.v2.OptionalParams.c_reward_forecast": x.CRewardForecast = nil - case "emissions.v1.OptionalParams.c_norm": + case "emissions.v2.OptionalParams.c_norm": x.CNorm = nil - case "emissions.v1.OptionalParams.topic_fee_revenue_decay_rate": + case "emissions.v2.OptionalParams.topic_fee_revenue_decay_rate": x.TopicFeeRevenueDecayRate = nil - case "emissions.v1.OptionalParams.epsilon_reputer": + case "emissions.v2.OptionalParams.epsilon_reputer": x.EpsilonReputer = nil - case "emissions.v1.OptionalParams.min_effective_topic_revenue": + case "emissions.v2.OptionalParams.min_effective_topic_revenue": x.MinEffectiveTopicRevenue = nil + case "emissions.v2.OptionalParams.half_max_process_stake_removals_end_block": + x.HalfMaxProcessStakeRemovalsEndBlock = nil + case "emissions.v2.OptionalParams.data_sending_fee": + x.DataSendingFee = nil + case "emissions.v2.OptionalParams.epsilon_safe_div": + x.EpsilonSafeDiv = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.OptionalParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OptionalParams")) } - panic(fmt.Errorf("message emissions.v1.OptionalParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.OptionalParams does not contain field %s", fd.FullName())) } } @@ -2457,251 +2631,269 @@ func (x *fastReflection_OptionalParams) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_OptionalParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.OptionalParams.version": + case "emissions.v2.OptionalParams.version": if len(x.Version) == 0 { return protoreflect.ValueOfList(&_OptionalParams_1_list{}) } listValue := &_OptionalParams_1_list{list: &x.Version} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.max_serialized_msg_length": + case "emissions.v2.OptionalParams.max_serialized_msg_length": if len(x.MaxSerializedMsgLength) == 0 { return protoreflect.ValueOfList(&_OptionalParams_2_list{}) } listValue := &_OptionalParams_2_list{list: &x.MaxSerializedMsgLength} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.min_topic_weight": + case "emissions.v2.OptionalParams.min_topic_weight": if len(x.MinTopicWeight) == 0 { return protoreflect.ValueOfList(&_OptionalParams_3_list{}) } listValue := &_OptionalParams_3_list{list: &x.MinTopicWeight} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.max_topics_per_block": + case "emissions.v2.OptionalParams.max_topics_per_block": if len(x.MaxTopicsPerBlock) == 0 { return protoreflect.ValueOfList(&_OptionalParams_4_list{}) } listValue := &_OptionalParams_4_list{list: &x.MaxTopicsPerBlock} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.required_minimum_stake": + case "emissions.v2.OptionalParams.required_minimum_stake": if len(x.RequiredMinimumStake) == 0 { return protoreflect.ValueOfList(&_OptionalParams_5_list{}) } listValue := &_OptionalParams_5_list{list: &x.RequiredMinimumStake} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.remove_stake_delay_window": + case "emissions.v2.OptionalParams.remove_stake_delay_window": if len(x.RemoveStakeDelayWindow) == 0 { return protoreflect.ValueOfList(&_OptionalParams_6_list{}) } listValue := &_OptionalParams_6_list{list: &x.RemoveStakeDelayWindow} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.min_epoch_length": + case "emissions.v2.OptionalParams.min_epoch_length": if len(x.MinEpochLength) == 0 { return protoreflect.ValueOfList(&_OptionalParams_7_list{}) } listValue := &_OptionalParams_7_list{list: &x.MinEpochLength} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.beta_entropy": + case "emissions.v2.OptionalParams.beta_entropy": if len(x.BetaEntropy) == 0 { return protoreflect.ValueOfList(&_OptionalParams_8_list{}) } listValue := &_OptionalParams_8_list{list: &x.BetaEntropy} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.learning_rate": + case "emissions.v2.OptionalParams.learning_rate": if len(x.LearningRate) == 0 { return protoreflect.ValueOfList(&_OptionalParams_9_list{}) } listValue := &_OptionalParams_9_list{list: &x.LearningRate} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.max_gradient_threshold": + case "emissions.v2.OptionalParams.max_gradient_threshold": if len(x.MaxGradientThreshold) == 0 { return protoreflect.ValueOfList(&_OptionalParams_10_list{}) } listValue := &_OptionalParams_10_list{list: &x.MaxGradientThreshold} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.min_stake_fraction": + case "emissions.v2.OptionalParams.min_stake_fraction": if len(x.MinStakeFraction) == 0 { return protoreflect.ValueOfList(&_OptionalParams_11_list{}) } listValue := &_OptionalParams_11_list{list: &x.MinStakeFraction} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.max_unfulfilled_worker_requests": + case "emissions.v2.OptionalParams.max_unfulfilled_worker_requests": if len(x.MaxUnfulfilledWorkerRequests) == 0 { return protoreflect.ValueOfList(&_OptionalParams_13_list{}) } listValue := &_OptionalParams_13_list{list: &x.MaxUnfulfilledWorkerRequests} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.max_unfulfilled_reputer_requests": + case "emissions.v2.OptionalParams.max_unfulfilled_reputer_requests": if len(x.MaxUnfulfilledReputerRequests) == 0 { return protoreflect.ValueOfList(&_OptionalParams_14_list{}) } listValue := &_OptionalParams_14_list{list: &x.MaxUnfulfilledReputerRequests} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.topic_reward_stake_importance": + case "emissions.v2.OptionalParams.topic_reward_stake_importance": if len(x.TopicRewardStakeImportance) == 0 { return protoreflect.ValueOfList(&_OptionalParams_15_list{}) } listValue := &_OptionalParams_15_list{list: &x.TopicRewardStakeImportance} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.topic_reward_fee_revenue_importance": + case "emissions.v2.OptionalParams.topic_reward_fee_revenue_importance": if len(x.TopicRewardFeeRevenueImportance) == 0 { return protoreflect.ValueOfList(&_OptionalParams_16_list{}) } listValue := &_OptionalParams_16_list{list: &x.TopicRewardFeeRevenueImportance} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.topic_reward_alpha": + case "emissions.v2.OptionalParams.topic_reward_alpha": if len(x.TopicRewardAlpha) == 0 { return protoreflect.ValueOfList(&_OptionalParams_17_list{}) } listValue := &_OptionalParams_17_list{list: &x.TopicRewardAlpha} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.task_reward_alpha": + case "emissions.v2.OptionalParams.task_reward_alpha": if len(x.TaskRewardAlpha) == 0 { return protoreflect.ValueOfList(&_OptionalParams_18_list{}) } listValue := &_OptionalParams_18_list{list: &x.TaskRewardAlpha} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.validators_vs_allora_percent_reward": + case "emissions.v2.OptionalParams.validators_vs_allora_percent_reward": if len(x.ValidatorsVsAlloraPercentReward) == 0 { return protoreflect.ValueOfList(&_OptionalParams_19_list{}) } listValue := &_OptionalParams_19_list{list: &x.ValidatorsVsAlloraPercentReward} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.max_samples_to_scale_scores": + case "emissions.v2.OptionalParams.max_samples_to_scale_scores": if len(x.MaxSamplesToScaleScores) == 0 { return protoreflect.ValueOfList(&_OptionalParams_20_list{}) } listValue := &_OptionalParams_20_list{list: &x.MaxSamplesToScaleScores} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.max_top_inferers_to_reward": + case "emissions.v2.OptionalParams.max_top_inferers_to_reward": if len(x.MaxTopInferersToReward) == 0 { return protoreflect.ValueOfList(&_OptionalParams_21_list{}) } listValue := &_OptionalParams_21_list{list: &x.MaxTopInferersToReward} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.max_top_forecasters_to_reward": + case "emissions.v2.OptionalParams.max_top_forecasters_to_reward": if len(x.MaxTopForecastersToReward) == 0 { return protoreflect.ValueOfList(&_OptionalParams_22_list{}) } listValue := &_OptionalParams_22_list{list: &x.MaxTopForecastersToReward} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.max_top_reputers_to_reward": + case "emissions.v2.OptionalParams.max_top_reputers_to_reward": if len(x.MaxTopReputersToReward) == 0 { return protoreflect.ValueOfList(&_OptionalParams_23_list{}) } listValue := &_OptionalParams_23_list{list: &x.MaxTopReputersToReward} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.create_topic_fee": + case "emissions.v2.OptionalParams.create_topic_fee": if len(x.CreateTopicFee) == 0 { return protoreflect.ValueOfList(&_OptionalParams_24_list{}) } listValue := &_OptionalParams_24_list{list: &x.CreateTopicFee} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.gradient_descent_max_iters": + case "emissions.v2.OptionalParams.gradient_descent_max_iters": if len(x.GradientDescentMaxIters) == 0 { return protoreflect.ValueOfList(&_OptionalParams_25_list{}) } listValue := &_OptionalParams_25_list{list: &x.GradientDescentMaxIters} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.max_retries_to_fulfil_nonces_worker": + case "emissions.v2.OptionalParams.max_retries_to_fulfil_nonces_worker": if len(x.MaxRetriesToFulfilNoncesWorker) == 0 { return protoreflect.ValueOfList(&_OptionalParams_26_list{}) } listValue := &_OptionalParams_26_list{list: &x.MaxRetriesToFulfilNoncesWorker} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.max_retries_to_fulfil_nonces_reputer": + case "emissions.v2.OptionalParams.max_retries_to_fulfil_nonces_reputer": if len(x.MaxRetriesToFulfilNoncesReputer) == 0 { return protoreflect.ValueOfList(&_OptionalParams_27_list{}) } listValue := &_OptionalParams_27_list{list: &x.MaxRetriesToFulfilNoncesReputer} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.registration_fee": + case "emissions.v2.OptionalParams.registration_fee": if len(x.RegistrationFee) == 0 { return protoreflect.ValueOfList(&_OptionalParams_28_list{}) } listValue := &_OptionalParams_28_list{list: &x.RegistrationFee} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.default_page_limit": + case "emissions.v2.OptionalParams.default_page_limit": if len(x.DefaultPageLimit) == 0 { return protoreflect.ValueOfList(&_OptionalParams_29_list{}) } listValue := &_OptionalParams_29_list{list: &x.DefaultPageLimit} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.max_page_limit": + case "emissions.v2.OptionalParams.max_page_limit": if len(x.MaxPageLimit) == 0 { return protoreflect.ValueOfList(&_OptionalParams_30_list{}) } listValue := &_OptionalParams_30_list{list: &x.MaxPageLimit} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.min_epoch_length_record_limit": + case "emissions.v2.OptionalParams.min_epoch_length_record_limit": if len(x.MinEpochLengthRecordLimit) == 0 { return protoreflect.ValueOfList(&_OptionalParams_31_list{}) } listValue := &_OptionalParams_31_list{list: &x.MinEpochLengthRecordLimit} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.blocks_per_month": + case "emissions.v2.OptionalParams.blocks_per_month": if len(x.BlocksPerMonth) == 0 { return protoreflect.ValueOfList(&_OptionalParams_32_list{}) } listValue := &_OptionalParams_32_list{list: &x.BlocksPerMonth} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.p_reward_inference": + case "emissions.v2.OptionalParams.p_reward_inference": if len(x.PRewardInference) == 0 { return protoreflect.ValueOfList(&_OptionalParams_33_list{}) } listValue := &_OptionalParams_33_list{list: &x.PRewardInference} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.p_reward_forecast": + case "emissions.v2.OptionalParams.p_reward_forecast": if len(x.PRewardForecast) == 0 { return protoreflect.ValueOfList(&_OptionalParams_34_list{}) } listValue := &_OptionalParams_34_list{list: &x.PRewardForecast} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.p_reward_reputer": + case "emissions.v2.OptionalParams.p_reward_reputer": if len(x.PRewardReputer) == 0 { return protoreflect.ValueOfList(&_OptionalParams_35_list{}) } listValue := &_OptionalParams_35_list{list: &x.PRewardReputer} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.c_reward_inference": + case "emissions.v2.OptionalParams.c_reward_inference": if len(x.CRewardInference) == 0 { return protoreflect.ValueOfList(&_OptionalParams_36_list{}) } listValue := &_OptionalParams_36_list{list: &x.CRewardInference} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.c_reward_forecast": + case "emissions.v2.OptionalParams.c_reward_forecast": if len(x.CRewardForecast) == 0 { return protoreflect.ValueOfList(&_OptionalParams_37_list{}) } listValue := &_OptionalParams_37_list{list: &x.CRewardForecast} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.c_norm": + case "emissions.v2.OptionalParams.c_norm": if len(x.CNorm) == 0 { return protoreflect.ValueOfList(&_OptionalParams_38_list{}) } listValue := &_OptionalParams_38_list{list: &x.CNorm} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.topic_fee_revenue_decay_rate": + case "emissions.v2.OptionalParams.topic_fee_revenue_decay_rate": if len(x.TopicFeeRevenueDecayRate) == 0 { return protoreflect.ValueOfList(&_OptionalParams_39_list{}) } listValue := &_OptionalParams_39_list{list: &x.TopicFeeRevenueDecayRate} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.epsilon_reputer": + case "emissions.v2.OptionalParams.epsilon_reputer": if len(x.EpsilonReputer) == 0 { return protoreflect.ValueOfList(&_OptionalParams_40_list{}) } listValue := &_OptionalParams_40_list{list: &x.EpsilonReputer} return protoreflect.ValueOfList(listValue) - case "emissions.v1.OptionalParams.min_effective_topic_revenue": + case "emissions.v2.OptionalParams.min_effective_topic_revenue": if len(x.MinEffectiveTopicRevenue) == 0 { return protoreflect.ValueOfList(&_OptionalParams_41_list{}) } listValue := &_OptionalParams_41_list{list: &x.MinEffectiveTopicRevenue} return protoreflect.ValueOfList(listValue) + case "emissions.v2.OptionalParams.half_max_process_stake_removals_end_block": + if len(x.HalfMaxProcessStakeRemovalsEndBlock) == 0 { + return protoreflect.ValueOfList(&_OptionalParams_42_list{}) + } + listValue := &_OptionalParams_42_list{list: &x.HalfMaxProcessStakeRemovalsEndBlock} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.OptionalParams.data_sending_fee": + if len(x.DataSendingFee) == 0 { + return protoreflect.ValueOfList(&_OptionalParams_43_list{}) + } + listValue := &_OptionalParams_43_list{list: &x.DataSendingFee} + return protoreflect.ValueOfList(listValue) + case "emissions.v2.OptionalParams.epsilon_safe_div": + if len(x.EpsilonSafeDiv) == 0 { + return protoreflect.ValueOfList(&_OptionalParams_44_list{}) + } + listValue := &_OptionalParams_44_list{list: &x.EpsilonSafeDiv} + return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.OptionalParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OptionalParams")) } - panic(fmt.Errorf("message emissions.v1.OptionalParams does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.OptionalParams does not contain field %s", descriptor.FullName())) } } @@ -2717,171 +2909,183 @@ func (x *fastReflection_OptionalParams) Get(descriptor protoreflect.FieldDescrip // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_OptionalParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.OptionalParams.version": + case "emissions.v2.OptionalParams.version": lv := value.List() clv := lv.(*_OptionalParams_1_list) x.Version = *clv.list - case "emissions.v1.OptionalParams.max_serialized_msg_length": + case "emissions.v2.OptionalParams.max_serialized_msg_length": lv := value.List() clv := lv.(*_OptionalParams_2_list) x.MaxSerializedMsgLength = *clv.list - case "emissions.v1.OptionalParams.min_topic_weight": + case "emissions.v2.OptionalParams.min_topic_weight": lv := value.List() clv := lv.(*_OptionalParams_3_list) x.MinTopicWeight = *clv.list - case "emissions.v1.OptionalParams.max_topics_per_block": + case "emissions.v2.OptionalParams.max_topics_per_block": lv := value.List() clv := lv.(*_OptionalParams_4_list) x.MaxTopicsPerBlock = *clv.list - case "emissions.v1.OptionalParams.required_minimum_stake": + case "emissions.v2.OptionalParams.required_minimum_stake": lv := value.List() clv := lv.(*_OptionalParams_5_list) x.RequiredMinimumStake = *clv.list - case "emissions.v1.OptionalParams.remove_stake_delay_window": + case "emissions.v2.OptionalParams.remove_stake_delay_window": lv := value.List() clv := lv.(*_OptionalParams_6_list) x.RemoveStakeDelayWindow = *clv.list - case "emissions.v1.OptionalParams.min_epoch_length": + case "emissions.v2.OptionalParams.min_epoch_length": lv := value.List() clv := lv.(*_OptionalParams_7_list) x.MinEpochLength = *clv.list - case "emissions.v1.OptionalParams.beta_entropy": + case "emissions.v2.OptionalParams.beta_entropy": lv := value.List() clv := lv.(*_OptionalParams_8_list) x.BetaEntropy = *clv.list - case "emissions.v1.OptionalParams.learning_rate": + case "emissions.v2.OptionalParams.learning_rate": lv := value.List() clv := lv.(*_OptionalParams_9_list) x.LearningRate = *clv.list - case "emissions.v1.OptionalParams.max_gradient_threshold": + case "emissions.v2.OptionalParams.max_gradient_threshold": lv := value.List() clv := lv.(*_OptionalParams_10_list) x.MaxGradientThreshold = *clv.list - case "emissions.v1.OptionalParams.min_stake_fraction": + case "emissions.v2.OptionalParams.min_stake_fraction": lv := value.List() clv := lv.(*_OptionalParams_11_list) x.MinStakeFraction = *clv.list - case "emissions.v1.OptionalParams.max_unfulfilled_worker_requests": + case "emissions.v2.OptionalParams.max_unfulfilled_worker_requests": lv := value.List() clv := lv.(*_OptionalParams_13_list) x.MaxUnfulfilledWorkerRequests = *clv.list - case "emissions.v1.OptionalParams.max_unfulfilled_reputer_requests": + case "emissions.v2.OptionalParams.max_unfulfilled_reputer_requests": lv := value.List() clv := lv.(*_OptionalParams_14_list) x.MaxUnfulfilledReputerRequests = *clv.list - case "emissions.v1.OptionalParams.topic_reward_stake_importance": + case "emissions.v2.OptionalParams.topic_reward_stake_importance": lv := value.List() clv := lv.(*_OptionalParams_15_list) x.TopicRewardStakeImportance = *clv.list - case "emissions.v1.OptionalParams.topic_reward_fee_revenue_importance": + case "emissions.v2.OptionalParams.topic_reward_fee_revenue_importance": lv := value.List() clv := lv.(*_OptionalParams_16_list) x.TopicRewardFeeRevenueImportance = *clv.list - case "emissions.v1.OptionalParams.topic_reward_alpha": + case "emissions.v2.OptionalParams.topic_reward_alpha": lv := value.List() clv := lv.(*_OptionalParams_17_list) x.TopicRewardAlpha = *clv.list - case "emissions.v1.OptionalParams.task_reward_alpha": + case "emissions.v2.OptionalParams.task_reward_alpha": lv := value.List() clv := lv.(*_OptionalParams_18_list) x.TaskRewardAlpha = *clv.list - case "emissions.v1.OptionalParams.validators_vs_allora_percent_reward": + case "emissions.v2.OptionalParams.validators_vs_allora_percent_reward": lv := value.List() clv := lv.(*_OptionalParams_19_list) x.ValidatorsVsAlloraPercentReward = *clv.list - case "emissions.v1.OptionalParams.max_samples_to_scale_scores": + case "emissions.v2.OptionalParams.max_samples_to_scale_scores": lv := value.List() clv := lv.(*_OptionalParams_20_list) x.MaxSamplesToScaleScores = *clv.list - case "emissions.v1.OptionalParams.max_top_inferers_to_reward": + case "emissions.v2.OptionalParams.max_top_inferers_to_reward": lv := value.List() clv := lv.(*_OptionalParams_21_list) x.MaxTopInferersToReward = *clv.list - case "emissions.v1.OptionalParams.max_top_forecasters_to_reward": + case "emissions.v2.OptionalParams.max_top_forecasters_to_reward": lv := value.List() clv := lv.(*_OptionalParams_22_list) x.MaxTopForecastersToReward = *clv.list - case "emissions.v1.OptionalParams.max_top_reputers_to_reward": + case "emissions.v2.OptionalParams.max_top_reputers_to_reward": lv := value.List() clv := lv.(*_OptionalParams_23_list) x.MaxTopReputersToReward = *clv.list - case "emissions.v1.OptionalParams.create_topic_fee": + case "emissions.v2.OptionalParams.create_topic_fee": lv := value.List() clv := lv.(*_OptionalParams_24_list) x.CreateTopicFee = *clv.list - case "emissions.v1.OptionalParams.gradient_descent_max_iters": + case "emissions.v2.OptionalParams.gradient_descent_max_iters": lv := value.List() clv := lv.(*_OptionalParams_25_list) x.GradientDescentMaxIters = *clv.list - case "emissions.v1.OptionalParams.max_retries_to_fulfil_nonces_worker": + case "emissions.v2.OptionalParams.max_retries_to_fulfil_nonces_worker": lv := value.List() clv := lv.(*_OptionalParams_26_list) x.MaxRetriesToFulfilNoncesWorker = *clv.list - case "emissions.v1.OptionalParams.max_retries_to_fulfil_nonces_reputer": + case "emissions.v2.OptionalParams.max_retries_to_fulfil_nonces_reputer": lv := value.List() clv := lv.(*_OptionalParams_27_list) x.MaxRetriesToFulfilNoncesReputer = *clv.list - case "emissions.v1.OptionalParams.registration_fee": + case "emissions.v2.OptionalParams.registration_fee": lv := value.List() clv := lv.(*_OptionalParams_28_list) x.RegistrationFee = *clv.list - case "emissions.v1.OptionalParams.default_page_limit": + case "emissions.v2.OptionalParams.default_page_limit": lv := value.List() clv := lv.(*_OptionalParams_29_list) x.DefaultPageLimit = *clv.list - case "emissions.v1.OptionalParams.max_page_limit": + case "emissions.v2.OptionalParams.max_page_limit": lv := value.List() clv := lv.(*_OptionalParams_30_list) x.MaxPageLimit = *clv.list - case "emissions.v1.OptionalParams.min_epoch_length_record_limit": + case "emissions.v2.OptionalParams.min_epoch_length_record_limit": lv := value.List() clv := lv.(*_OptionalParams_31_list) x.MinEpochLengthRecordLimit = *clv.list - case "emissions.v1.OptionalParams.blocks_per_month": + case "emissions.v2.OptionalParams.blocks_per_month": lv := value.List() clv := lv.(*_OptionalParams_32_list) x.BlocksPerMonth = *clv.list - case "emissions.v1.OptionalParams.p_reward_inference": + case "emissions.v2.OptionalParams.p_reward_inference": lv := value.List() clv := lv.(*_OptionalParams_33_list) x.PRewardInference = *clv.list - case "emissions.v1.OptionalParams.p_reward_forecast": + case "emissions.v2.OptionalParams.p_reward_forecast": lv := value.List() clv := lv.(*_OptionalParams_34_list) x.PRewardForecast = *clv.list - case "emissions.v1.OptionalParams.p_reward_reputer": + case "emissions.v2.OptionalParams.p_reward_reputer": lv := value.List() clv := lv.(*_OptionalParams_35_list) x.PRewardReputer = *clv.list - case "emissions.v1.OptionalParams.c_reward_inference": + case "emissions.v2.OptionalParams.c_reward_inference": lv := value.List() clv := lv.(*_OptionalParams_36_list) x.CRewardInference = *clv.list - case "emissions.v1.OptionalParams.c_reward_forecast": + case "emissions.v2.OptionalParams.c_reward_forecast": lv := value.List() clv := lv.(*_OptionalParams_37_list) x.CRewardForecast = *clv.list - case "emissions.v1.OptionalParams.c_norm": + case "emissions.v2.OptionalParams.c_norm": lv := value.List() clv := lv.(*_OptionalParams_38_list) x.CNorm = *clv.list - case "emissions.v1.OptionalParams.topic_fee_revenue_decay_rate": + case "emissions.v2.OptionalParams.topic_fee_revenue_decay_rate": lv := value.List() clv := lv.(*_OptionalParams_39_list) x.TopicFeeRevenueDecayRate = *clv.list - case "emissions.v1.OptionalParams.epsilon_reputer": + case "emissions.v2.OptionalParams.epsilon_reputer": lv := value.List() clv := lv.(*_OptionalParams_40_list) x.EpsilonReputer = *clv.list - case "emissions.v1.OptionalParams.min_effective_topic_revenue": + case "emissions.v2.OptionalParams.min_effective_topic_revenue": lv := value.List() clv := lv.(*_OptionalParams_41_list) x.MinEffectiveTopicRevenue = *clv.list + case "emissions.v2.OptionalParams.half_max_process_stake_removals_end_block": + lv := value.List() + clv := lv.(*_OptionalParams_42_list) + x.HalfMaxProcessStakeRemovalsEndBlock = *clv.list + case "emissions.v2.OptionalParams.data_sending_fee": + lv := value.List() + clv := lv.(*_OptionalParams_43_list) + x.DataSendingFee = *clv.list + case "emissions.v2.OptionalParams.epsilon_safe_div": + lv := value.List() + clv := lv.(*_OptionalParams_44_list) + x.EpsilonSafeDiv = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.OptionalParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OptionalParams")) } - panic(fmt.Errorf("message emissions.v1.OptionalParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.OptionalParams does not contain field %s", fd.FullName())) } } @@ -2897,251 +3101,269 @@ func (x *fastReflection_OptionalParams) Set(fd protoreflect.FieldDescriptor, val // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_OptionalParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.OptionalParams.version": + case "emissions.v2.OptionalParams.version": if x.Version == nil { x.Version = []string{} } value := &_OptionalParams_1_list{list: &x.Version} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.max_serialized_msg_length": + case "emissions.v2.OptionalParams.max_serialized_msg_length": if x.MaxSerializedMsgLength == nil { x.MaxSerializedMsgLength = []int64{} } value := &_OptionalParams_2_list{list: &x.MaxSerializedMsgLength} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.min_topic_weight": + case "emissions.v2.OptionalParams.min_topic_weight": if x.MinTopicWeight == nil { x.MinTopicWeight = []string{} } value := &_OptionalParams_3_list{list: &x.MinTopicWeight} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.max_topics_per_block": + case "emissions.v2.OptionalParams.max_topics_per_block": if x.MaxTopicsPerBlock == nil { x.MaxTopicsPerBlock = []uint64{} } value := &_OptionalParams_4_list{list: &x.MaxTopicsPerBlock} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.required_minimum_stake": + case "emissions.v2.OptionalParams.required_minimum_stake": if x.RequiredMinimumStake == nil { x.RequiredMinimumStake = []string{} } value := &_OptionalParams_5_list{list: &x.RequiredMinimumStake} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.remove_stake_delay_window": + case "emissions.v2.OptionalParams.remove_stake_delay_window": if x.RemoveStakeDelayWindow == nil { x.RemoveStakeDelayWindow = []int64{} } value := &_OptionalParams_6_list{list: &x.RemoveStakeDelayWindow} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.min_epoch_length": + case "emissions.v2.OptionalParams.min_epoch_length": if x.MinEpochLength == nil { x.MinEpochLength = []int64{} } value := &_OptionalParams_7_list{list: &x.MinEpochLength} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.beta_entropy": + case "emissions.v2.OptionalParams.beta_entropy": if x.BetaEntropy == nil { x.BetaEntropy = []string{} } value := &_OptionalParams_8_list{list: &x.BetaEntropy} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.learning_rate": + case "emissions.v2.OptionalParams.learning_rate": if x.LearningRate == nil { x.LearningRate = []string{} } value := &_OptionalParams_9_list{list: &x.LearningRate} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.max_gradient_threshold": + case "emissions.v2.OptionalParams.max_gradient_threshold": if x.MaxGradientThreshold == nil { x.MaxGradientThreshold = []string{} } value := &_OptionalParams_10_list{list: &x.MaxGradientThreshold} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.min_stake_fraction": + case "emissions.v2.OptionalParams.min_stake_fraction": if x.MinStakeFraction == nil { x.MinStakeFraction = []string{} } value := &_OptionalParams_11_list{list: &x.MinStakeFraction} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.max_unfulfilled_worker_requests": + case "emissions.v2.OptionalParams.max_unfulfilled_worker_requests": if x.MaxUnfulfilledWorkerRequests == nil { x.MaxUnfulfilledWorkerRequests = []uint64{} } value := &_OptionalParams_13_list{list: &x.MaxUnfulfilledWorkerRequests} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.max_unfulfilled_reputer_requests": + case "emissions.v2.OptionalParams.max_unfulfilled_reputer_requests": if x.MaxUnfulfilledReputerRequests == nil { x.MaxUnfulfilledReputerRequests = []uint64{} } value := &_OptionalParams_14_list{list: &x.MaxUnfulfilledReputerRequests} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.topic_reward_stake_importance": + case "emissions.v2.OptionalParams.topic_reward_stake_importance": if x.TopicRewardStakeImportance == nil { x.TopicRewardStakeImportance = []string{} } value := &_OptionalParams_15_list{list: &x.TopicRewardStakeImportance} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.topic_reward_fee_revenue_importance": + case "emissions.v2.OptionalParams.topic_reward_fee_revenue_importance": if x.TopicRewardFeeRevenueImportance == nil { x.TopicRewardFeeRevenueImportance = []string{} } value := &_OptionalParams_16_list{list: &x.TopicRewardFeeRevenueImportance} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.topic_reward_alpha": + case "emissions.v2.OptionalParams.topic_reward_alpha": if x.TopicRewardAlpha == nil { x.TopicRewardAlpha = []string{} } value := &_OptionalParams_17_list{list: &x.TopicRewardAlpha} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.task_reward_alpha": + case "emissions.v2.OptionalParams.task_reward_alpha": if x.TaskRewardAlpha == nil { x.TaskRewardAlpha = []string{} } value := &_OptionalParams_18_list{list: &x.TaskRewardAlpha} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.validators_vs_allora_percent_reward": + case "emissions.v2.OptionalParams.validators_vs_allora_percent_reward": if x.ValidatorsVsAlloraPercentReward == nil { x.ValidatorsVsAlloraPercentReward = []string{} } value := &_OptionalParams_19_list{list: &x.ValidatorsVsAlloraPercentReward} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.max_samples_to_scale_scores": + case "emissions.v2.OptionalParams.max_samples_to_scale_scores": if x.MaxSamplesToScaleScores == nil { x.MaxSamplesToScaleScores = []uint64{} } value := &_OptionalParams_20_list{list: &x.MaxSamplesToScaleScores} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.max_top_inferers_to_reward": + case "emissions.v2.OptionalParams.max_top_inferers_to_reward": if x.MaxTopInferersToReward == nil { x.MaxTopInferersToReward = []uint64{} } value := &_OptionalParams_21_list{list: &x.MaxTopInferersToReward} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.max_top_forecasters_to_reward": + case "emissions.v2.OptionalParams.max_top_forecasters_to_reward": if x.MaxTopForecastersToReward == nil { x.MaxTopForecastersToReward = []uint64{} } value := &_OptionalParams_22_list{list: &x.MaxTopForecastersToReward} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.max_top_reputers_to_reward": + case "emissions.v2.OptionalParams.max_top_reputers_to_reward": if x.MaxTopReputersToReward == nil { x.MaxTopReputersToReward = []uint64{} } value := &_OptionalParams_23_list{list: &x.MaxTopReputersToReward} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.create_topic_fee": + case "emissions.v2.OptionalParams.create_topic_fee": if x.CreateTopicFee == nil { x.CreateTopicFee = []string{} } value := &_OptionalParams_24_list{list: &x.CreateTopicFee} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.gradient_descent_max_iters": + case "emissions.v2.OptionalParams.gradient_descent_max_iters": if x.GradientDescentMaxIters == nil { x.GradientDescentMaxIters = []uint64{} } value := &_OptionalParams_25_list{list: &x.GradientDescentMaxIters} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.max_retries_to_fulfil_nonces_worker": + case "emissions.v2.OptionalParams.max_retries_to_fulfil_nonces_worker": if x.MaxRetriesToFulfilNoncesWorker == nil { x.MaxRetriesToFulfilNoncesWorker = []int64{} } value := &_OptionalParams_26_list{list: &x.MaxRetriesToFulfilNoncesWorker} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.max_retries_to_fulfil_nonces_reputer": + case "emissions.v2.OptionalParams.max_retries_to_fulfil_nonces_reputer": if x.MaxRetriesToFulfilNoncesReputer == nil { x.MaxRetriesToFulfilNoncesReputer = []int64{} } value := &_OptionalParams_27_list{list: &x.MaxRetriesToFulfilNoncesReputer} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.registration_fee": + case "emissions.v2.OptionalParams.registration_fee": if x.RegistrationFee == nil { x.RegistrationFee = []string{} } value := &_OptionalParams_28_list{list: &x.RegistrationFee} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.default_page_limit": + case "emissions.v2.OptionalParams.default_page_limit": if x.DefaultPageLimit == nil { x.DefaultPageLimit = []uint64{} } value := &_OptionalParams_29_list{list: &x.DefaultPageLimit} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.max_page_limit": + case "emissions.v2.OptionalParams.max_page_limit": if x.MaxPageLimit == nil { x.MaxPageLimit = []uint64{} } value := &_OptionalParams_30_list{list: &x.MaxPageLimit} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.min_epoch_length_record_limit": + case "emissions.v2.OptionalParams.min_epoch_length_record_limit": if x.MinEpochLengthRecordLimit == nil { x.MinEpochLengthRecordLimit = []int64{} } value := &_OptionalParams_31_list{list: &x.MinEpochLengthRecordLimit} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.blocks_per_month": + case "emissions.v2.OptionalParams.blocks_per_month": if x.BlocksPerMonth == nil { x.BlocksPerMonth = []uint64{} } value := &_OptionalParams_32_list{list: &x.BlocksPerMonth} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.p_reward_inference": + case "emissions.v2.OptionalParams.p_reward_inference": if x.PRewardInference == nil { x.PRewardInference = []string{} } value := &_OptionalParams_33_list{list: &x.PRewardInference} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.p_reward_forecast": + case "emissions.v2.OptionalParams.p_reward_forecast": if x.PRewardForecast == nil { x.PRewardForecast = []string{} } value := &_OptionalParams_34_list{list: &x.PRewardForecast} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.p_reward_reputer": + case "emissions.v2.OptionalParams.p_reward_reputer": if x.PRewardReputer == nil { x.PRewardReputer = []string{} } value := &_OptionalParams_35_list{list: &x.PRewardReputer} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.c_reward_inference": + case "emissions.v2.OptionalParams.c_reward_inference": if x.CRewardInference == nil { x.CRewardInference = []string{} } value := &_OptionalParams_36_list{list: &x.CRewardInference} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.c_reward_forecast": + case "emissions.v2.OptionalParams.c_reward_forecast": if x.CRewardForecast == nil { x.CRewardForecast = []string{} } value := &_OptionalParams_37_list{list: &x.CRewardForecast} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.c_norm": + case "emissions.v2.OptionalParams.c_norm": if x.CNorm == nil { x.CNorm = []string{} } value := &_OptionalParams_38_list{list: &x.CNorm} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.topic_fee_revenue_decay_rate": + case "emissions.v2.OptionalParams.topic_fee_revenue_decay_rate": if x.TopicFeeRevenueDecayRate == nil { x.TopicFeeRevenueDecayRate = []string{} } value := &_OptionalParams_39_list{list: &x.TopicFeeRevenueDecayRate} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.epsilon_reputer": + case "emissions.v2.OptionalParams.epsilon_reputer": if x.EpsilonReputer == nil { x.EpsilonReputer = []string{} } value := &_OptionalParams_40_list{list: &x.EpsilonReputer} return protoreflect.ValueOfList(value) - case "emissions.v1.OptionalParams.min_effective_topic_revenue": + case "emissions.v2.OptionalParams.min_effective_topic_revenue": if x.MinEffectiveTopicRevenue == nil { x.MinEffectiveTopicRevenue = []string{} } value := &_OptionalParams_41_list{list: &x.MinEffectiveTopicRevenue} return protoreflect.ValueOfList(value) + case "emissions.v2.OptionalParams.half_max_process_stake_removals_end_block": + if x.HalfMaxProcessStakeRemovalsEndBlock == nil { + x.HalfMaxProcessStakeRemovalsEndBlock = []uint64{} + } + value := &_OptionalParams_42_list{list: &x.HalfMaxProcessStakeRemovalsEndBlock} + return protoreflect.ValueOfList(value) + case "emissions.v2.OptionalParams.data_sending_fee": + if x.DataSendingFee == nil { + x.DataSendingFee = []string{} + } + value := &_OptionalParams_43_list{list: &x.DataSendingFee} + return protoreflect.ValueOfList(value) + case "emissions.v2.OptionalParams.epsilon_safe_div": + if x.EpsilonSafeDiv == nil { + x.EpsilonSafeDiv = []string{} + } + value := &_OptionalParams_44_list{list: &x.EpsilonSafeDiv} + return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.OptionalParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OptionalParams")) } - panic(fmt.Errorf("message emissions.v1.OptionalParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.OptionalParams does not contain field %s", fd.FullName())) } } @@ -3150,131 +3372,140 @@ func (x *fastReflection_OptionalParams) Mutable(fd protoreflect.FieldDescriptor) // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_OptionalParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.OptionalParams.version": + case "emissions.v2.OptionalParams.version": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_1_list{list: &list}) - case "emissions.v1.OptionalParams.max_serialized_msg_length": + case "emissions.v2.OptionalParams.max_serialized_msg_length": list := []int64{} return protoreflect.ValueOfList(&_OptionalParams_2_list{list: &list}) - case "emissions.v1.OptionalParams.min_topic_weight": + case "emissions.v2.OptionalParams.min_topic_weight": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_3_list{list: &list}) - case "emissions.v1.OptionalParams.max_topics_per_block": + case "emissions.v2.OptionalParams.max_topics_per_block": list := []uint64{} return protoreflect.ValueOfList(&_OptionalParams_4_list{list: &list}) - case "emissions.v1.OptionalParams.required_minimum_stake": + case "emissions.v2.OptionalParams.required_minimum_stake": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_5_list{list: &list}) - case "emissions.v1.OptionalParams.remove_stake_delay_window": + case "emissions.v2.OptionalParams.remove_stake_delay_window": list := []int64{} return protoreflect.ValueOfList(&_OptionalParams_6_list{list: &list}) - case "emissions.v1.OptionalParams.min_epoch_length": + case "emissions.v2.OptionalParams.min_epoch_length": list := []int64{} return protoreflect.ValueOfList(&_OptionalParams_7_list{list: &list}) - case "emissions.v1.OptionalParams.beta_entropy": + case "emissions.v2.OptionalParams.beta_entropy": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_8_list{list: &list}) - case "emissions.v1.OptionalParams.learning_rate": + case "emissions.v2.OptionalParams.learning_rate": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_9_list{list: &list}) - case "emissions.v1.OptionalParams.max_gradient_threshold": + case "emissions.v2.OptionalParams.max_gradient_threshold": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_10_list{list: &list}) - case "emissions.v1.OptionalParams.min_stake_fraction": + case "emissions.v2.OptionalParams.min_stake_fraction": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_11_list{list: &list}) - case "emissions.v1.OptionalParams.max_unfulfilled_worker_requests": + case "emissions.v2.OptionalParams.max_unfulfilled_worker_requests": list := []uint64{} return protoreflect.ValueOfList(&_OptionalParams_13_list{list: &list}) - case "emissions.v1.OptionalParams.max_unfulfilled_reputer_requests": + case "emissions.v2.OptionalParams.max_unfulfilled_reputer_requests": list := []uint64{} return protoreflect.ValueOfList(&_OptionalParams_14_list{list: &list}) - case "emissions.v1.OptionalParams.topic_reward_stake_importance": + case "emissions.v2.OptionalParams.topic_reward_stake_importance": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_15_list{list: &list}) - case "emissions.v1.OptionalParams.topic_reward_fee_revenue_importance": + case "emissions.v2.OptionalParams.topic_reward_fee_revenue_importance": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_16_list{list: &list}) - case "emissions.v1.OptionalParams.topic_reward_alpha": + case "emissions.v2.OptionalParams.topic_reward_alpha": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_17_list{list: &list}) - case "emissions.v1.OptionalParams.task_reward_alpha": + case "emissions.v2.OptionalParams.task_reward_alpha": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_18_list{list: &list}) - case "emissions.v1.OptionalParams.validators_vs_allora_percent_reward": + case "emissions.v2.OptionalParams.validators_vs_allora_percent_reward": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_19_list{list: &list}) - case "emissions.v1.OptionalParams.max_samples_to_scale_scores": + case "emissions.v2.OptionalParams.max_samples_to_scale_scores": list := []uint64{} return protoreflect.ValueOfList(&_OptionalParams_20_list{list: &list}) - case "emissions.v1.OptionalParams.max_top_inferers_to_reward": + case "emissions.v2.OptionalParams.max_top_inferers_to_reward": list := []uint64{} return protoreflect.ValueOfList(&_OptionalParams_21_list{list: &list}) - case "emissions.v1.OptionalParams.max_top_forecasters_to_reward": + case "emissions.v2.OptionalParams.max_top_forecasters_to_reward": list := []uint64{} return protoreflect.ValueOfList(&_OptionalParams_22_list{list: &list}) - case "emissions.v1.OptionalParams.max_top_reputers_to_reward": + case "emissions.v2.OptionalParams.max_top_reputers_to_reward": list := []uint64{} return protoreflect.ValueOfList(&_OptionalParams_23_list{list: &list}) - case "emissions.v1.OptionalParams.create_topic_fee": + case "emissions.v2.OptionalParams.create_topic_fee": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_24_list{list: &list}) - case "emissions.v1.OptionalParams.gradient_descent_max_iters": + case "emissions.v2.OptionalParams.gradient_descent_max_iters": list := []uint64{} return protoreflect.ValueOfList(&_OptionalParams_25_list{list: &list}) - case "emissions.v1.OptionalParams.max_retries_to_fulfil_nonces_worker": + case "emissions.v2.OptionalParams.max_retries_to_fulfil_nonces_worker": list := []int64{} return protoreflect.ValueOfList(&_OptionalParams_26_list{list: &list}) - case "emissions.v1.OptionalParams.max_retries_to_fulfil_nonces_reputer": + case "emissions.v2.OptionalParams.max_retries_to_fulfil_nonces_reputer": list := []int64{} return protoreflect.ValueOfList(&_OptionalParams_27_list{list: &list}) - case "emissions.v1.OptionalParams.registration_fee": + case "emissions.v2.OptionalParams.registration_fee": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_28_list{list: &list}) - case "emissions.v1.OptionalParams.default_page_limit": + case "emissions.v2.OptionalParams.default_page_limit": list := []uint64{} return protoreflect.ValueOfList(&_OptionalParams_29_list{list: &list}) - case "emissions.v1.OptionalParams.max_page_limit": + case "emissions.v2.OptionalParams.max_page_limit": list := []uint64{} return protoreflect.ValueOfList(&_OptionalParams_30_list{list: &list}) - case "emissions.v1.OptionalParams.min_epoch_length_record_limit": + case "emissions.v2.OptionalParams.min_epoch_length_record_limit": list := []int64{} return protoreflect.ValueOfList(&_OptionalParams_31_list{list: &list}) - case "emissions.v1.OptionalParams.blocks_per_month": + case "emissions.v2.OptionalParams.blocks_per_month": list := []uint64{} return protoreflect.ValueOfList(&_OptionalParams_32_list{list: &list}) - case "emissions.v1.OptionalParams.p_reward_inference": + case "emissions.v2.OptionalParams.p_reward_inference": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_33_list{list: &list}) - case "emissions.v1.OptionalParams.p_reward_forecast": + case "emissions.v2.OptionalParams.p_reward_forecast": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_34_list{list: &list}) - case "emissions.v1.OptionalParams.p_reward_reputer": + case "emissions.v2.OptionalParams.p_reward_reputer": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_35_list{list: &list}) - case "emissions.v1.OptionalParams.c_reward_inference": + case "emissions.v2.OptionalParams.c_reward_inference": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_36_list{list: &list}) - case "emissions.v1.OptionalParams.c_reward_forecast": + case "emissions.v2.OptionalParams.c_reward_forecast": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_37_list{list: &list}) - case "emissions.v1.OptionalParams.c_norm": + case "emissions.v2.OptionalParams.c_norm": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_38_list{list: &list}) - case "emissions.v1.OptionalParams.topic_fee_revenue_decay_rate": + case "emissions.v2.OptionalParams.topic_fee_revenue_decay_rate": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_39_list{list: &list}) - case "emissions.v1.OptionalParams.epsilon_reputer": + case "emissions.v2.OptionalParams.epsilon_reputer": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_40_list{list: &list}) - case "emissions.v1.OptionalParams.min_effective_topic_revenue": + case "emissions.v2.OptionalParams.min_effective_topic_revenue": list := []string{} return protoreflect.ValueOfList(&_OptionalParams_41_list{list: &list}) + case "emissions.v2.OptionalParams.half_max_process_stake_removals_end_block": + list := []uint64{} + return protoreflect.ValueOfList(&_OptionalParams_42_list{list: &list}) + case "emissions.v2.OptionalParams.data_sending_fee": + list := []string{} + return protoreflect.ValueOfList(&_OptionalParams_43_list{list: &list}) + case "emissions.v2.OptionalParams.epsilon_safe_div": + list := []string{} + return protoreflect.ValueOfList(&_OptionalParams_44_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.OptionalParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.OptionalParams")) } - panic(fmt.Errorf("message emissions.v1.OptionalParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.OptionalParams does not contain field %s", fd.FullName())) } } @@ -3284,7 +3515,7 @@ func (x *fastReflection_OptionalParams) NewField(fd protoreflect.FieldDescriptor func (x *fastReflection_OptionalParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.OptionalParams", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.OptionalParams", d.FullName())) } panic("unreachable") } @@ -3596,6 +3827,25 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { n += 2 + l + runtime.Sov(uint64(l)) } } + if len(x.HalfMaxProcessStakeRemovalsEndBlock) > 0 { + l = 0 + for _, e := range x.HalfMaxProcessStakeRemovalsEndBlock { + l += runtime.Sov(uint64(e)) + } + n += 2 + runtime.Sov(uint64(l)) + l + } + if len(x.DataSendingFee) > 0 { + for _, s := range x.DataSendingFee { + l = len(s) + n += 2 + l + runtime.Sov(uint64(l)) + } + } + if len(x.EpsilonSafeDiv) > 0 { + for _, s := range x.EpsilonSafeDiv { + l = len(s) + n += 2 + l + runtime.Sov(uint64(l)) + } + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -3625,6 +3875,50 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.EpsilonSafeDiv) > 0 { + for iNdEx := len(x.EpsilonSafeDiv) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.EpsilonSafeDiv[iNdEx]) + copy(dAtA[i:], x.EpsilonSafeDiv[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.EpsilonSafeDiv[iNdEx]))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xe2 + } + } + if len(x.DataSendingFee) > 0 { + for iNdEx := len(x.DataSendingFee) - 1; iNdEx >= 0; iNdEx-- { + i -= len(x.DataSendingFee[iNdEx]) + copy(dAtA[i:], x.DataSendingFee[iNdEx]) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DataSendingFee[iNdEx]))) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xda + } + } + if len(x.HalfMaxProcessStakeRemovalsEndBlock) > 0 { + var pksize2 int + for _, num := range x.HalfMaxProcessStakeRemovalsEndBlock { + pksize2 += runtime.Sov(uint64(num)) + } + i -= pksize2 + j1 := i + for _, num := range x.HalfMaxProcessStakeRemovalsEndBlock { + for num >= 1<<7 { + dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA[j1] = uint8(num) + j1++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xd2 + } if len(x.MinEffectiveTopicRevenue) > 0 { for iNdEx := len(x.MinEffectiveTopicRevenue) - 1; iNdEx >= 0; iNdEx-- { i -= len(x.MinEffectiveTopicRevenue[iNdEx]) @@ -3725,36 +4019,13 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { } } if len(x.BlocksPerMonth) > 0 { - var pksize2 int - for _, num := range x.BlocksPerMonth { - pksize2 += runtime.Sov(uint64(num)) - } - i -= pksize2 - j1 := i - for _, num := range x.BlocksPerMonth { - for num >= 1<<7 { - dAtA[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA[j1] = uint8(num) - j1++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize2)) - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x82 - } - if len(x.MinEpochLengthRecordLimit) > 0 { var pksize4 int - for _, num := range x.MinEpochLengthRecordLimit { + for _, num := range x.BlocksPerMonth { pksize4 += runtime.Sov(uint64(num)) } i -= pksize4 j3 := i - for _, num1 := range x.MinEpochLengthRecordLimit { - num := uint64(num1) + for _, num := range x.BlocksPerMonth { for num >= 1<<7 { dAtA[j3] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -3765,18 +4036,19 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { } i = runtime.EncodeVarint(dAtA, i, uint64(pksize4)) i-- - dAtA[i] = 0x1 + dAtA[i] = 0x2 i-- - dAtA[i] = 0xfa + dAtA[i] = 0x82 } - if len(x.MaxPageLimit) > 0 { + if len(x.MinEpochLengthRecordLimit) > 0 { var pksize6 int - for _, num := range x.MaxPageLimit { + for _, num := range x.MinEpochLengthRecordLimit { pksize6 += runtime.Sov(uint64(num)) } i -= pksize6 j5 := i - for _, num := range x.MaxPageLimit { + for _, num1 := range x.MinEpochLengthRecordLimit { + num := uint64(num1) for num >= 1<<7 { dAtA[j5] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -3789,16 +4061,16 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0xf2 + dAtA[i] = 0xfa } - if len(x.DefaultPageLimit) > 0 { + if len(x.MaxPageLimit) > 0 { var pksize8 int - for _, num := range x.DefaultPageLimit { + for _, num := range x.MaxPageLimit { pksize8 += runtime.Sov(uint64(num)) } i -= pksize8 j7 := i - for _, num := range x.DefaultPageLimit { + for _, num := range x.MaxPageLimit { for num >= 1<<7 { dAtA[j7] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -3811,6 +4083,28 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x1 i-- + dAtA[i] = 0xf2 + } + if len(x.DefaultPageLimit) > 0 { + var pksize10 int + for _, num := range x.DefaultPageLimit { + pksize10 += runtime.Sov(uint64(num)) + } + i -= pksize10 + j9 := i + for _, num := range x.DefaultPageLimit { + for num >= 1<<7 { + dAtA[j9] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j9++ + } + dAtA[j9] = uint8(num) + j9++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize10)) + i-- + dAtA[i] = 0x1 + i-- dAtA[i] = 0xea } if len(x.RegistrationFee) > 0 { @@ -3825,68 +4119,68 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { } } if len(x.MaxRetriesToFulfilNoncesReputer) > 0 { - var pksize10 int + var pksize12 int for _, num := range x.MaxRetriesToFulfilNoncesReputer { - pksize10 += runtime.Sov(uint64(num)) + pksize12 += runtime.Sov(uint64(num)) } - i -= pksize10 - j9 := i + i -= pksize12 + j11 := i for _, num1 := range x.MaxRetriesToFulfilNoncesReputer { num := uint64(num1) for num >= 1<<7 { - dAtA[j9] = uint8(uint64(num)&0x7f | 0x80) + dAtA[j11] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j9++ + j11++ } - dAtA[j9] = uint8(num) - j9++ + dAtA[j11] = uint8(num) + j11++ } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize10)) + i = runtime.EncodeVarint(dAtA, i, uint64(pksize12)) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xda } if len(x.MaxRetriesToFulfilNoncesWorker) > 0 { - var pksize12 int + var pksize14 int for _, num := range x.MaxRetriesToFulfilNoncesWorker { - pksize12 += runtime.Sov(uint64(num)) + pksize14 += runtime.Sov(uint64(num)) } - i -= pksize12 - j11 := i + i -= pksize14 + j13 := i for _, num1 := range x.MaxRetriesToFulfilNoncesWorker { num := uint64(num1) for num >= 1<<7 { - dAtA[j11] = uint8(uint64(num)&0x7f | 0x80) + dAtA[j13] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j11++ + j13++ } - dAtA[j11] = uint8(num) - j11++ + dAtA[j13] = uint8(num) + j13++ } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize12)) + i = runtime.EncodeVarint(dAtA, i, uint64(pksize14)) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xd2 } if len(x.GradientDescentMaxIters) > 0 { - var pksize14 int + var pksize16 int for _, num := range x.GradientDescentMaxIters { - pksize14 += runtime.Sov(uint64(num)) + pksize16 += runtime.Sov(uint64(num)) } - i -= pksize14 - j13 := i + i -= pksize16 + j15 := i for _, num := range x.GradientDescentMaxIters { for num >= 1<<7 { - dAtA[j13] = uint8(uint64(num)&0x7f | 0x80) + dAtA[j15] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j13++ + j15++ } - dAtA[j13] = uint8(num) - j13++ + dAtA[j15] = uint8(num) + j15++ } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize14)) + i = runtime.EncodeVarint(dAtA, i, uint64(pksize16)) i-- dAtA[i] = 0x1 i-- @@ -3904,35 +4198,13 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { } } if len(x.MaxTopReputersToReward) > 0 { - var pksize16 int - for _, num := range x.MaxTopReputersToReward { - pksize16 += runtime.Sov(uint64(num)) - } - i -= pksize16 - j15 := i - for _, num := range x.MaxTopReputersToReward { - for num >= 1<<7 { - dAtA[j15] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j15++ - } - dAtA[j15] = uint8(num) - j15++ - } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize16)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba - } - if len(x.MaxTopForecastersToReward) > 0 { var pksize18 int - for _, num := range x.MaxTopForecastersToReward { + for _, num := range x.MaxTopReputersToReward { pksize18 += runtime.Sov(uint64(num)) } i -= pksize18 j17 := i - for _, num := range x.MaxTopForecastersToReward { + for _, num := range x.MaxTopReputersToReward { for num >= 1<<7 { dAtA[j17] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -3945,16 +4217,16 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0xb2 + dAtA[i] = 0xba } - if len(x.MaxTopInferersToReward) > 0 { + if len(x.MaxTopForecastersToReward) > 0 { var pksize20 int - for _, num := range x.MaxTopInferersToReward { + for _, num := range x.MaxTopForecastersToReward { pksize20 += runtime.Sov(uint64(num)) } i -= pksize20 j19 := i - for _, num := range x.MaxTopInferersToReward { + for _, num := range x.MaxTopForecastersToReward { for num >= 1<<7 { dAtA[j19] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -3967,16 +4239,16 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0xaa + dAtA[i] = 0xb2 } - if len(x.MaxSamplesToScaleScores) > 0 { + if len(x.MaxTopInferersToReward) > 0 { var pksize22 int - for _, num := range x.MaxSamplesToScaleScores { + for _, num := range x.MaxTopInferersToReward { pksize22 += runtime.Sov(uint64(num)) } i -= pksize22 j21 := i - for _, num := range x.MaxSamplesToScaleScores { + for _, num := range x.MaxTopInferersToReward { for num >= 1<<7 { dAtA[j21] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -3989,6 +4261,28 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x1 i-- + dAtA[i] = 0xaa + } + if len(x.MaxSamplesToScaleScores) > 0 { + var pksize24 int + for _, num := range x.MaxSamplesToScaleScores { + pksize24 += runtime.Sov(uint64(num)) + } + i -= pksize24 + j23 := i + for _, num := range x.MaxSamplesToScaleScores { + for num >= 1<<7 { + dAtA[j23] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j23++ + } + dAtA[j23] = uint8(num) + j23++ + } + i = runtime.EncodeVarint(dAtA, i, uint64(pksize24)) + i-- + dAtA[i] = 0x1 + i-- dAtA[i] = 0xa2 } if len(x.ValidatorsVsAlloraPercentReward) > 0 { @@ -4045,42 +4339,42 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { } } if len(x.MaxUnfulfilledReputerRequests) > 0 { - var pksize24 int + var pksize26 int for _, num := range x.MaxUnfulfilledReputerRequests { - pksize24 += runtime.Sov(uint64(num)) + pksize26 += runtime.Sov(uint64(num)) } - i -= pksize24 - j23 := i + i -= pksize26 + j25 := i for _, num := range x.MaxUnfulfilledReputerRequests { for num >= 1<<7 { - dAtA[j23] = uint8(uint64(num)&0x7f | 0x80) + dAtA[j25] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j23++ + j25++ } - dAtA[j23] = uint8(num) - j23++ + dAtA[j25] = uint8(num) + j25++ } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize24)) + i = runtime.EncodeVarint(dAtA, i, uint64(pksize26)) i-- dAtA[i] = 0x72 } if len(x.MaxUnfulfilledWorkerRequests) > 0 { - var pksize26 int + var pksize28 int for _, num := range x.MaxUnfulfilledWorkerRequests { - pksize26 += runtime.Sov(uint64(num)) + pksize28 += runtime.Sov(uint64(num)) } - i -= pksize26 - j25 := i + i -= pksize28 + j27 := i for _, num := range x.MaxUnfulfilledWorkerRequests { for num >= 1<<7 { - dAtA[j25] = uint8(uint64(num)&0x7f | 0x80) + dAtA[j27] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j25++ + j27++ } - dAtA[j25] = uint8(num) - j25++ + dAtA[j27] = uint8(num) + j27++ } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize26)) + i = runtime.EncodeVarint(dAtA, i, uint64(pksize28)) i-- dAtA[i] = 0x6a } @@ -4121,44 +4415,44 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { } } if len(x.MinEpochLength) > 0 { - var pksize28 int + var pksize30 int for _, num := range x.MinEpochLength { - pksize28 += runtime.Sov(uint64(num)) + pksize30 += runtime.Sov(uint64(num)) } - i -= pksize28 - j27 := i + i -= pksize30 + j29 := i for _, num1 := range x.MinEpochLength { num := uint64(num1) for num >= 1<<7 { - dAtA[j27] = uint8(uint64(num)&0x7f | 0x80) + dAtA[j29] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j27++ + j29++ } - dAtA[j27] = uint8(num) - j27++ + dAtA[j29] = uint8(num) + j29++ } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize28)) + i = runtime.EncodeVarint(dAtA, i, uint64(pksize30)) i-- dAtA[i] = 0x3a } if len(x.RemoveStakeDelayWindow) > 0 { - var pksize30 int + var pksize32 int for _, num := range x.RemoveStakeDelayWindow { - pksize30 += runtime.Sov(uint64(num)) + pksize32 += runtime.Sov(uint64(num)) } - i -= pksize30 - j29 := i + i -= pksize32 + j31 := i for _, num1 := range x.RemoveStakeDelayWindow { num := uint64(num1) for num >= 1<<7 { - dAtA[j29] = uint8(uint64(num)&0x7f | 0x80) + dAtA[j31] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j29++ + j31++ } - dAtA[j29] = uint8(num) - j29++ + dAtA[j31] = uint8(num) + j31++ } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize30)) + i = runtime.EncodeVarint(dAtA, i, uint64(pksize32)) i-- dAtA[i] = 0x32 } @@ -4172,22 +4466,22 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { } } if len(x.MaxTopicsPerBlock) > 0 { - var pksize32 int + var pksize34 int for _, num := range x.MaxTopicsPerBlock { - pksize32 += runtime.Sov(uint64(num)) + pksize34 += runtime.Sov(uint64(num)) } - i -= pksize32 - j31 := i + i -= pksize34 + j33 := i for _, num := range x.MaxTopicsPerBlock { for num >= 1<<7 { - dAtA[j31] = uint8(uint64(num)&0x7f | 0x80) + dAtA[j33] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j31++ + j33++ } - dAtA[j31] = uint8(num) - j31++ + dAtA[j33] = uint8(num) + j33++ } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize32)) + i = runtime.EncodeVarint(dAtA, i, uint64(pksize34)) i-- dAtA[i] = 0x22 } @@ -4201,23 +4495,23 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { } } if len(x.MaxSerializedMsgLength) > 0 { - var pksize34 int + var pksize36 int for _, num := range x.MaxSerializedMsgLength { - pksize34 += runtime.Sov(uint64(num)) + pksize36 += runtime.Sov(uint64(num)) } - i -= pksize34 - j33 := i + i -= pksize36 + j35 := i for _, num1 := range x.MaxSerializedMsgLength { num := uint64(num1) for num >= 1<<7 { - dAtA[j33] = uint8(uint64(num)&0x7f | 0x80) + dAtA[j35] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j33++ + j35++ } - dAtA[j33] = uint8(num) - j33++ + dAtA[j35] = uint8(num) + j35++ } - i = runtime.EncodeVarint(dAtA, i, uint64(pksize34)) + i = runtime.EncodeVarint(dAtA, i, uint64(pksize36)) i-- dAtA[i] = 0x12 } @@ -6307,64 +6601,204 @@ func (x *fastReflection_OptionalParams) ProtoMethods() *protoiface.Methods { } x.MinEffectiveTopicRevenue = append(x.MinEffectiveTopicRevenue, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := runtime.Skip(dAtA[iNdEx:]) - if err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if (iNdEx + skippy) > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - if !options.DiscardUnknown { - x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) - } - iNdEx += skippy - } - } - - if iNdEx > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil - } - return &protoiface.Methods{ - NoUnkeyedLiterals: struct{}{}, - Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, - Size: size, - Marshal: marshal, - Unmarshal: unmarshal, - Merge: nil, - CheckInitialized: nil, - } -} - -var ( - md_MsgUpdateParams protoreflect.MessageDescriptor - fd_MsgUpdateParams_sender protoreflect.FieldDescriptor - fd_MsgUpdateParams_params protoreflect.FieldDescriptor -) - -func init() { - file_emissions_v1_tx_proto_init() - md_MsgUpdateParams = File_emissions_v1_tx_proto.Messages().ByName("MsgUpdateParams") - fd_MsgUpdateParams_sender = md_MsgUpdateParams.Fields().ByName("sender") - fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params") -} - -var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil) - -type fastReflection_MsgUpdateParams MsgUpdateParams - -func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgUpdateParams)(x) + case 42: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.HalfMaxProcessStakeRemovalsEndBlock = append(x.HalfMaxProcessStakeRemovalsEndBlock, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(x.HalfMaxProcessStakeRemovalsEndBlock) == 0 { + x.HalfMaxProcessStakeRemovalsEndBlock = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.HalfMaxProcessStakeRemovalsEndBlock = append(x.HalfMaxProcessStakeRemovalsEndBlock, v) + } + } else { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field HalfMaxProcessStakeRemovalsEndBlock", wireType) + } + case 43: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DataSendingFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.DataSendingFee = append(x.DataSendingFee, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 44: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EpsilonSafeDiv", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.EpsilonSafeDiv = append(x.EpsilonSafeDiv, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := runtime.Skip(dAtA[iNdEx:]) + if err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if (iNdEx + skippy) > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if !options.DiscardUnknown { + x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) + } + iNdEx += skippy + } + } + + if iNdEx > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil + } + return &protoiface.Methods{ + NoUnkeyedLiterals: struct{}{}, + Flags: protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown, + Size: size, + Marshal: marshal, + Unmarshal: unmarshal, + Merge: nil, + CheckInitialized: nil, + } +} + +var ( + md_MsgUpdateParams protoreflect.MessageDescriptor + fd_MsgUpdateParams_sender protoreflect.FieldDescriptor + fd_MsgUpdateParams_params protoreflect.FieldDescriptor +) + +func init() { + file_emissions_v2_tx_proto_init() + md_MsgUpdateParams = File_emissions_v2_tx_proto.Messages().ByName("MsgUpdateParams") + fd_MsgUpdateParams_sender = md_MsgUpdateParams.Fields().ByName("sender") + fd_MsgUpdateParams_params = md_MsgUpdateParams.Fields().ByName("params") +} + +var _ protoreflect.Message = (*fastReflection_MsgUpdateParams)(nil) + +type fastReflection_MsgUpdateParams MsgUpdateParams + +func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgUpdateParams)(x) } func (x *MsgUpdateParams) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[1] + mi := &file_emissions_v2_tx_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6447,15 +6881,15 @@ func (x *fastReflection_MsgUpdateParams) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgUpdateParams.sender": + case "emissions.v2.MsgUpdateParams.sender": return x.Sender != "" - case "emissions.v1.MsgUpdateParams.params": + case "emissions.v2.MsgUpdateParams.params": return x.Params != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgUpdateParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgUpdateParams")) } - panic(fmt.Errorf("message emissions.v1.MsgUpdateParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgUpdateParams does not contain field %s", fd.FullName())) } } @@ -6467,15 +6901,15 @@ func (x *fastReflection_MsgUpdateParams) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgUpdateParams.sender": + case "emissions.v2.MsgUpdateParams.sender": x.Sender = "" - case "emissions.v1.MsgUpdateParams.params": + case "emissions.v2.MsgUpdateParams.params": x.Params = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgUpdateParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgUpdateParams")) } - panic(fmt.Errorf("message emissions.v1.MsgUpdateParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgUpdateParams does not contain field %s", fd.FullName())) } } @@ -6487,17 +6921,17 @@ func (x *fastReflection_MsgUpdateParams) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgUpdateParams.sender": + case "emissions.v2.MsgUpdateParams.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgUpdateParams.params": + case "emissions.v2.MsgUpdateParams.params": value := x.Params return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgUpdateParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgUpdateParams")) } - panic(fmt.Errorf("message emissions.v1.MsgUpdateParams does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgUpdateParams does not contain field %s", descriptor.FullName())) } } @@ -6513,15 +6947,15 @@ func (x *fastReflection_MsgUpdateParams) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgUpdateParams.sender": + case "emissions.v2.MsgUpdateParams.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgUpdateParams.params": + case "emissions.v2.MsgUpdateParams.params": x.Params = value.Message().Interface().(*OptionalParams) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgUpdateParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgUpdateParams")) } - panic(fmt.Errorf("message emissions.v1.MsgUpdateParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgUpdateParams does not contain field %s", fd.FullName())) } } @@ -6537,18 +6971,18 @@ func (x *fastReflection_MsgUpdateParams) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgUpdateParams.params": + case "emissions.v2.MsgUpdateParams.params": if x.Params == nil { x.Params = new(OptionalParams) } return protoreflect.ValueOfMessage(x.Params.ProtoReflect()) - case "emissions.v1.MsgUpdateParams.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgUpdateParams is not mutable")) + case "emissions.v2.MsgUpdateParams.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgUpdateParams is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgUpdateParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgUpdateParams")) } - panic(fmt.Errorf("message emissions.v1.MsgUpdateParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgUpdateParams does not contain field %s", fd.FullName())) } } @@ -6557,16 +6991,16 @@ func (x *fastReflection_MsgUpdateParams) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgUpdateParams.sender": + case "emissions.v2.MsgUpdateParams.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgUpdateParams.params": + case "emissions.v2.MsgUpdateParams.params": m := new(OptionalParams) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgUpdateParams")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgUpdateParams")) } - panic(fmt.Errorf("message emissions.v1.MsgUpdateParams does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgUpdateParams does not contain field %s", fd.FullName())) } } @@ -6576,7 +7010,7 @@ func (x *fastReflection_MsgUpdateParams) NewField(fd protoreflect.FieldDescripto func (x *fastReflection_MsgUpdateParams) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgUpdateParams", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgUpdateParams", d.FullName())) } panic("unreachable") } @@ -6846,8 +7280,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgUpdateParamsResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgUpdateParamsResponse") + file_emissions_v2_tx_proto_init() + md_MsgUpdateParamsResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgUpdateParamsResponse") } var _ protoreflect.Message = (*fastReflection_MsgUpdateParamsResponse)(nil) @@ -6859,7 +7293,7 @@ func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message { } func (x *MsgUpdateParamsResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[2] + mi := &file_emissions_v2_tx_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -6932,9 +7366,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Has(fd protoreflect.FieldDescri switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgUpdateParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgUpdateParamsResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) } } @@ -6948,9 +7382,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Clear(fd protoreflect.FieldDesc switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgUpdateParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgUpdateParamsResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) } } @@ -6964,9 +7398,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Get(descriptor protoreflect.Fie switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgUpdateParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgUpdateParamsResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgUpdateParamsResponse does not contain field %s", descriptor.FullName())) } } @@ -6984,9 +7418,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Set(fd protoreflect.FieldDescri switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgUpdateParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgUpdateParamsResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) } } @@ -7004,9 +7438,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) Mutable(fd protoreflect.FieldDe switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgUpdateParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgUpdateParamsResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) } } @@ -7017,9 +7451,9 @@ func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldD switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgUpdateParamsResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgUpdateParamsResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgUpdateParamsResponse does not contain field %s", fd.FullName())) } } @@ -7029,7 +7463,7 @@ func (x *fastReflection_MsgUpdateParamsResponse) NewField(fd protoreflect.FieldD func (x *fastReflection_MsgUpdateParamsResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgUpdateParamsResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgUpdateParamsResponse", d.FullName())) } panic("unreachable") } @@ -7198,38 +7632,32 @@ func (x *fastReflection_MsgUpdateParamsResponse) ProtoMethods() *protoiface.Meth } var ( - md_MsgCreateNewTopic protoreflect.MessageDescriptor - fd_MsgCreateNewTopic_creator protoreflect.FieldDescriptor - fd_MsgCreateNewTopic_metadata protoreflect.FieldDescriptor - fd_MsgCreateNewTopic_loss_logic protoreflect.FieldDescriptor - fd_MsgCreateNewTopic_loss_method protoreflect.FieldDescriptor - fd_MsgCreateNewTopic_inference_logic protoreflect.FieldDescriptor - fd_MsgCreateNewTopic_inference_method protoreflect.FieldDescriptor - fd_MsgCreateNewTopic_epoch_length protoreflect.FieldDescriptor - fd_MsgCreateNewTopic_ground_truth_lag protoreflect.FieldDescriptor - fd_MsgCreateNewTopic_default_arg protoreflect.FieldDescriptor - fd_MsgCreateNewTopic_p_norm protoreflect.FieldDescriptor - fd_MsgCreateNewTopic_alpha_regret protoreflect.FieldDescriptor - fd_MsgCreateNewTopic_allow_negative protoreflect.FieldDescriptor - fd_MsgCreateNewTopic_epsilon protoreflect.FieldDescriptor + md_MsgCreateNewTopic protoreflect.MessageDescriptor + fd_MsgCreateNewTopic_creator protoreflect.FieldDescriptor + fd_MsgCreateNewTopic_metadata protoreflect.FieldDescriptor + fd_MsgCreateNewTopic_loss_method protoreflect.FieldDescriptor + fd_MsgCreateNewTopic_epoch_length protoreflect.FieldDescriptor + fd_MsgCreateNewTopic_ground_truth_lag protoreflect.FieldDescriptor + fd_MsgCreateNewTopic_p_norm protoreflect.FieldDescriptor + fd_MsgCreateNewTopic_alpha_regret protoreflect.FieldDescriptor + fd_MsgCreateNewTopic_allow_negative protoreflect.FieldDescriptor + fd_MsgCreateNewTopic_epsilon protoreflect.FieldDescriptor + fd_MsgCreateNewTopic_worker_submission_window protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgCreateNewTopic = File_emissions_v1_tx_proto.Messages().ByName("MsgCreateNewTopic") + file_emissions_v2_tx_proto_init() + md_MsgCreateNewTopic = File_emissions_v2_tx_proto.Messages().ByName("MsgCreateNewTopic") fd_MsgCreateNewTopic_creator = md_MsgCreateNewTopic.Fields().ByName("creator") fd_MsgCreateNewTopic_metadata = md_MsgCreateNewTopic.Fields().ByName("metadata") - fd_MsgCreateNewTopic_loss_logic = md_MsgCreateNewTopic.Fields().ByName("loss_logic") fd_MsgCreateNewTopic_loss_method = md_MsgCreateNewTopic.Fields().ByName("loss_method") - fd_MsgCreateNewTopic_inference_logic = md_MsgCreateNewTopic.Fields().ByName("inference_logic") - fd_MsgCreateNewTopic_inference_method = md_MsgCreateNewTopic.Fields().ByName("inference_method") fd_MsgCreateNewTopic_epoch_length = md_MsgCreateNewTopic.Fields().ByName("epoch_length") fd_MsgCreateNewTopic_ground_truth_lag = md_MsgCreateNewTopic.Fields().ByName("ground_truth_lag") - fd_MsgCreateNewTopic_default_arg = md_MsgCreateNewTopic.Fields().ByName("default_arg") fd_MsgCreateNewTopic_p_norm = md_MsgCreateNewTopic.Fields().ByName("p_norm") fd_MsgCreateNewTopic_alpha_regret = md_MsgCreateNewTopic.Fields().ByName("alpha_regret") fd_MsgCreateNewTopic_allow_negative = md_MsgCreateNewTopic.Fields().ByName("allow_negative") fd_MsgCreateNewTopic_epsilon = md_MsgCreateNewTopic.Fields().ByName("epsilon") + fd_MsgCreateNewTopic_worker_submission_window = md_MsgCreateNewTopic.Fields().ByName("worker_submission_window") } var _ protoreflect.Message = (*fastReflection_MsgCreateNewTopic)(nil) @@ -7241,7 +7669,7 @@ func (x *MsgCreateNewTopic) ProtoReflect() protoreflect.Message { } func (x *MsgCreateNewTopic) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[3] + mi := &file_emissions_v2_tx_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -7309,30 +7737,12 @@ func (x *fastReflection_MsgCreateNewTopic) Range(f func(protoreflect.FieldDescri return } } - if x.LossLogic != "" { - value := protoreflect.ValueOfString(x.LossLogic) - if !f(fd_MsgCreateNewTopic_loss_logic, value) { - return - } - } if x.LossMethod != "" { value := protoreflect.ValueOfString(x.LossMethod) if !f(fd_MsgCreateNewTopic_loss_method, value) { return } } - if x.InferenceLogic != "" { - value := protoreflect.ValueOfString(x.InferenceLogic) - if !f(fd_MsgCreateNewTopic_inference_logic, value) { - return - } - } - if x.InferenceMethod != "" { - value := protoreflect.ValueOfString(x.InferenceMethod) - if !f(fd_MsgCreateNewTopic_inference_method, value) { - return - } - } if x.EpochLength != int64(0) { value := protoreflect.ValueOfInt64(x.EpochLength) if !f(fd_MsgCreateNewTopic_epoch_length, value) { @@ -7345,12 +7755,6 @@ func (x *fastReflection_MsgCreateNewTopic) Range(f func(protoreflect.FieldDescri return } } - if x.DefaultArg != "" { - value := protoreflect.ValueOfString(x.DefaultArg) - if !f(fd_MsgCreateNewTopic_default_arg, value) { - return - } - } if x.PNorm != "" { value := protoreflect.ValueOfString(x.PNorm) if !f(fd_MsgCreateNewTopic_p_norm, value) { @@ -7375,6 +7779,12 @@ func (x *fastReflection_MsgCreateNewTopic) Range(f func(protoreflect.FieldDescri return } } + if x.WorkerSubmissionWindow != int64(0) { + value := protoreflect.ValueOfInt64(x.WorkerSubmissionWindow) + if !f(fd_MsgCreateNewTopic_worker_submission_window, value) { + return + } + } } // Has reports whether a field is populated. @@ -7390,37 +7800,31 @@ func (x *fastReflection_MsgCreateNewTopic) Range(f func(protoreflect.FieldDescri // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgCreateNewTopic) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgCreateNewTopic.creator": + case "emissions.v2.MsgCreateNewTopic.creator": return x.Creator != "" - case "emissions.v1.MsgCreateNewTopic.metadata": + case "emissions.v2.MsgCreateNewTopic.metadata": return x.Metadata != "" - case "emissions.v1.MsgCreateNewTopic.loss_logic": - return x.LossLogic != "" - case "emissions.v1.MsgCreateNewTopic.loss_method": + case "emissions.v2.MsgCreateNewTopic.loss_method": return x.LossMethod != "" - case "emissions.v1.MsgCreateNewTopic.inference_logic": - return x.InferenceLogic != "" - case "emissions.v1.MsgCreateNewTopic.inference_method": - return x.InferenceMethod != "" - case "emissions.v1.MsgCreateNewTopic.epoch_length": + case "emissions.v2.MsgCreateNewTopic.epoch_length": return x.EpochLength != int64(0) - case "emissions.v1.MsgCreateNewTopic.ground_truth_lag": + case "emissions.v2.MsgCreateNewTopic.ground_truth_lag": return x.GroundTruthLag != int64(0) - case "emissions.v1.MsgCreateNewTopic.default_arg": - return x.DefaultArg != "" - case "emissions.v1.MsgCreateNewTopic.p_norm": + case "emissions.v2.MsgCreateNewTopic.p_norm": return x.PNorm != "" - case "emissions.v1.MsgCreateNewTopic.alpha_regret": + case "emissions.v2.MsgCreateNewTopic.alpha_regret": return x.AlphaRegret != "" - case "emissions.v1.MsgCreateNewTopic.allow_negative": + case "emissions.v2.MsgCreateNewTopic.allow_negative": return x.AllowNegative != false - case "emissions.v1.MsgCreateNewTopic.epsilon": + case "emissions.v2.MsgCreateNewTopic.epsilon": return x.Epsilon != "" + case "emissions.v2.MsgCreateNewTopic.worker_submission_window": + return x.WorkerSubmissionWindow != int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCreateNewTopic")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCreateNewTopic")) } - panic(fmt.Errorf("message emissions.v1.MsgCreateNewTopic does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCreateNewTopic does not contain field %s", fd.FullName())) } } @@ -7432,37 +7836,31 @@ func (x *fastReflection_MsgCreateNewTopic) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCreateNewTopic) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgCreateNewTopic.creator": + case "emissions.v2.MsgCreateNewTopic.creator": x.Creator = "" - case "emissions.v1.MsgCreateNewTopic.metadata": + case "emissions.v2.MsgCreateNewTopic.metadata": x.Metadata = "" - case "emissions.v1.MsgCreateNewTopic.loss_logic": - x.LossLogic = "" - case "emissions.v1.MsgCreateNewTopic.loss_method": + case "emissions.v2.MsgCreateNewTopic.loss_method": x.LossMethod = "" - case "emissions.v1.MsgCreateNewTopic.inference_logic": - x.InferenceLogic = "" - case "emissions.v1.MsgCreateNewTopic.inference_method": - x.InferenceMethod = "" - case "emissions.v1.MsgCreateNewTopic.epoch_length": + case "emissions.v2.MsgCreateNewTopic.epoch_length": x.EpochLength = int64(0) - case "emissions.v1.MsgCreateNewTopic.ground_truth_lag": + case "emissions.v2.MsgCreateNewTopic.ground_truth_lag": x.GroundTruthLag = int64(0) - case "emissions.v1.MsgCreateNewTopic.default_arg": - x.DefaultArg = "" - case "emissions.v1.MsgCreateNewTopic.p_norm": + case "emissions.v2.MsgCreateNewTopic.p_norm": x.PNorm = "" - case "emissions.v1.MsgCreateNewTopic.alpha_regret": + case "emissions.v2.MsgCreateNewTopic.alpha_regret": x.AlphaRegret = "" - case "emissions.v1.MsgCreateNewTopic.allow_negative": + case "emissions.v2.MsgCreateNewTopic.allow_negative": x.AllowNegative = false - case "emissions.v1.MsgCreateNewTopic.epsilon": + case "emissions.v2.MsgCreateNewTopic.epsilon": x.Epsilon = "" + case "emissions.v2.MsgCreateNewTopic.worker_submission_window": + x.WorkerSubmissionWindow = int64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCreateNewTopic")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCreateNewTopic")) } - panic(fmt.Errorf("message emissions.v1.MsgCreateNewTopic does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCreateNewTopic does not contain field %s", fd.FullName())) } } @@ -7474,50 +7872,41 @@ func (x *fastReflection_MsgCreateNewTopic) Clear(fd protoreflect.FieldDescriptor // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgCreateNewTopic) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgCreateNewTopic.creator": + case "emissions.v2.MsgCreateNewTopic.creator": value := x.Creator return protoreflect.ValueOfString(value) - case "emissions.v1.MsgCreateNewTopic.metadata": + case "emissions.v2.MsgCreateNewTopic.metadata": value := x.Metadata return protoreflect.ValueOfString(value) - case "emissions.v1.MsgCreateNewTopic.loss_logic": - value := x.LossLogic - return protoreflect.ValueOfString(value) - case "emissions.v1.MsgCreateNewTopic.loss_method": + case "emissions.v2.MsgCreateNewTopic.loss_method": value := x.LossMethod return protoreflect.ValueOfString(value) - case "emissions.v1.MsgCreateNewTopic.inference_logic": - value := x.InferenceLogic - return protoreflect.ValueOfString(value) - case "emissions.v1.MsgCreateNewTopic.inference_method": - value := x.InferenceMethod - return protoreflect.ValueOfString(value) - case "emissions.v1.MsgCreateNewTopic.epoch_length": + case "emissions.v2.MsgCreateNewTopic.epoch_length": value := x.EpochLength return protoreflect.ValueOfInt64(value) - case "emissions.v1.MsgCreateNewTopic.ground_truth_lag": + case "emissions.v2.MsgCreateNewTopic.ground_truth_lag": value := x.GroundTruthLag return protoreflect.ValueOfInt64(value) - case "emissions.v1.MsgCreateNewTopic.default_arg": - value := x.DefaultArg - return protoreflect.ValueOfString(value) - case "emissions.v1.MsgCreateNewTopic.p_norm": + case "emissions.v2.MsgCreateNewTopic.p_norm": value := x.PNorm return protoreflect.ValueOfString(value) - case "emissions.v1.MsgCreateNewTopic.alpha_regret": + case "emissions.v2.MsgCreateNewTopic.alpha_regret": value := x.AlphaRegret return protoreflect.ValueOfString(value) - case "emissions.v1.MsgCreateNewTopic.allow_negative": + case "emissions.v2.MsgCreateNewTopic.allow_negative": value := x.AllowNegative return protoreflect.ValueOfBool(value) - case "emissions.v1.MsgCreateNewTopic.epsilon": + case "emissions.v2.MsgCreateNewTopic.epsilon": value := x.Epsilon return protoreflect.ValueOfString(value) + case "emissions.v2.MsgCreateNewTopic.worker_submission_window": + value := x.WorkerSubmissionWindow + return protoreflect.ValueOfInt64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCreateNewTopic")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCreateNewTopic")) } - panic(fmt.Errorf("message emissions.v1.MsgCreateNewTopic does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCreateNewTopic does not contain field %s", descriptor.FullName())) } } @@ -7533,37 +7922,31 @@ func (x *fastReflection_MsgCreateNewTopic) Get(descriptor protoreflect.FieldDesc // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCreateNewTopic) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgCreateNewTopic.creator": + case "emissions.v2.MsgCreateNewTopic.creator": x.Creator = value.Interface().(string) - case "emissions.v1.MsgCreateNewTopic.metadata": + case "emissions.v2.MsgCreateNewTopic.metadata": x.Metadata = value.Interface().(string) - case "emissions.v1.MsgCreateNewTopic.loss_logic": - x.LossLogic = value.Interface().(string) - case "emissions.v1.MsgCreateNewTopic.loss_method": + case "emissions.v2.MsgCreateNewTopic.loss_method": x.LossMethod = value.Interface().(string) - case "emissions.v1.MsgCreateNewTopic.inference_logic": - x.InferenceLogic = value.Interface().(string) - case "emissions.v1.MsgCreateNewTopic.inference_method": - x.InferenceMethod = value.Interface().(string) - case "emissions.v1.MsgCreateNewTopic.epoch_length": + case "emissions.v2.MsgCreateNewTopic.epoch_length": x.EpochLength = value.Int() - case "emissions.v1.MsgCreateNewTopic.ground_truth_lag": + case "emissions.v2.MsgCreateNewTopic.ground_truth_lag": x.GroundTruthLag = value.Int() - case "emissions.v1.MsgCreateNewTopic.default_arg": - x.DefaultArg = value.Interface().(string) - case "emissions.v1.MsgCreateNewTopic.p_norm": + case "emissions.v2.MsgCreateNewTopic.p_norm": x.PNorm = value.Interface().(string) - case "emissions.v1.MsgCreateNewTopic.alpha_regret": + case "emissions.v2.MsgCreateNewTopic.alpha_regret": x.AlphaRegret = value.Interface().(string) - case "emissions.v1.MsgCreateNewTopic.allow_negative": + case "emissions.v2.MsgCreateNewTopic.allow_negative": x.AllowNegative = value.Bool() - case "emissions.v1.MsgCreateNewTopic.epsilon": + case "emissions.v2.MsgCreateNewTopic.epsilon": x.Epsilon = value.Interface().(string) + case "emissions.v2.MsgCreateNewTopic.worker_submission_window": + x.WorkerSubmissionWindow = value.Int() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCreateNewTopic")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCreateNewTopic")) } - panic(fmt.Errorf("message emissions.v1.MsgCreateNewTopic does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCreateNewTopic does not contain field %s", fd.FullName())) } } @@ -7579,37 +7962,31 @@ func (x *fastReflection_MsgCreateNewTopic) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCreateNewTopic) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgCreateNewTopic.creator": - panic(fmt.Errorf("field creator of message emissions.v1.MsgCreateNewTopic is not mutable")) - case "emissions.v1.MsgCreateNewTopic.metadata": - panic(fmt.Errorf("field metadata of message emissions.v1.MsgCreateNewTopic is not mutable")) - case "emissions.v1.MsgCreateNewTopic.loss_logic": - panic(fmt.Errorf("field loss_logic of message emissions.v1.MsgCreateNewTopic is not mutable")) - case "emissions.v1.MsgCreateNewTopic.loss_method": - panic(fmt.Errorf("field loss_method of message emissions.v1.MsgCreateNewTopic is not mutable")) - case "emissions.v1.MsgCreateNewTopic.inference_logic": - panic(fmt.Errorf("field inference_logic of message emissions.v1.MsgCreateNewTopic is not mutable")) - case "emissions.v1.MsgCreateNewTopic.inference_method": - panic(fmt.Errorf("field inference_method of message emissions.v1.MsgCreateNewTopic is not mutable")) - case "emissions.v1.MsgCreateNewTopic.epoch_length": - panic(fmt.Errorf("field epoch_length of message emissions.v1.MsgCreateNewTopic is not mutable")) - case "emissions.v1.MsgCreateNewTopic.ground_truth_lag": - panic(fmt.Errorf("field ground_truth_lag of message emissions.v1.MsgCreateNewTopic is not mutable")) - case "emissions.v1.MsgCreateNewTopic.default_arg": - panic(fmt.Errorf("field default_arg of message emissions.v1.MsgCreateNewTopic is not mutable")) - case "emissions.v1.MsgCreateNewTopic.p_norm": - panic(fmt.Errorf("field p_norm of message emissions.v1.MsgCreateNewTopic is not mutable")) - case "emissions.v1.MsgCreateNewTopic.alpha_regret": - panic(fmt.Errorf("field alpha_regret of message emissions.v1.MsgCreateNewTopic is not mutable")) - case "emissions.v1.MsgCreateNewTopic.allow_negative": - panic(fmt.Errorf("field allow_negative of message emissions.v1.MsgCreateNewTopic is not mutable")) - case "emissions.v1.MsgCreateNewTopic.epsilon": - panic(fmt.Errorf("field epsilon of message emissions.v1.MsgCreateNewTopic is not mutable")) + case "emissions.v2.MsgCreateNewTopic.creator": + panic(fmt.Errorf("field creator of message emissions.v2.MsgCreateNewTopic is not mutable")) + case "emissions.v2.MsgCreateNewTopic.metadata": + panic(fmt.Errorf("field metadata of message emissions.v2.MsgCreateNewTopic is not mutable")) + case "emissions.v2.MsgCreateNewTopic.loss_method": + panic(fmt.Errorf("field loss_method of message emissions.v2.MsgCreateNewTopic is not mutable")) + case "emissions.v2.MsgCreateNewTopic.epoch_length": + panic(fmt.Errorf("field epoch_length of message emissions.v2.MsgCreateNewTopic is not mutable")) + case "emissions.v2.MsgCreateNewTopic.ground_truth_lag": + panic(fmt.Errorf("field ground_truth_lag of message emissions.v2.MsgCreateNewTopic is not mutable")) + case "emissions.v2.MsgCreateNewTopic.p_norm": + panic(fmt.Errorf("field p_norm of message emissions.v2.MsgCreateNewTopic is not mutable")) + case "emissions.v2.MsgCreateNewTopic.alpha_regret": + panic(fmt.Errorf("field alpha_regret of message emissions.v2.MsgCreateNewTopic is not mutable")) + case "emissions.v2.MsgCreateNewTopic.allow_negative": + panic(fmt.Errorf("field allow_negative of message emissions.v2.MsgCreateNewTopic is not mutable")) + case "emissions.v2.MsgCreateNewTopic.epsilon": + panic(fmt.Errorf("field epsilon of message emissions.v2.MsgCreateNewTopic is not mutable")) + case "emissions.v2.MsgCreateNewTopic.worker_submission_window": + panic(fmt.Errorf("field worker_submission_window of message emissions.v2.MsgCreateNewTopic is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCreateNewTopic")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCreateNewTopic")) } - panic(fmt.Errorf("message emissions.v1.MsgCreateNewTopic does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCreateNewTopic does not contain field %s", fd.FullName())) } } @@ -7618,37 +7995,31 @@ func (x *fastReflection_MsgCreateNewTopic) Mutable(fd protoreflect.FieldDescript // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgCreateNewTopic) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgCreateNewTopic.creator": - return protoreflect.ValueOfString("") - case "emissions.v1.MsgCreateNewTopic.metadata": - return protoreflect.ValueOfString("") - case "emissions.v1.MsgCreateNewTopic.loss_logic": + case "emissions.v2.MsgCreateNewTopic.creator": return protoreflect.ValueOfString("") - case "emissions.v1.MsgCreateNewTopic.loss_method": + case "emissions.v2.MsgCreateNewTopic.metadata": return protoreflect.ValueOfString("") - case "emissions.v1.MsgCreateNewTopic.inference_logic": + case "emissions.v2.MsgCreateNewTopic.loss_method": return protoreflect.ValueOfString("") - case "emissions.v1.MsgCreateNewTopic.inference_method": - return protoreflect.ValueOfString("") - case "emissions.v1.MsgCreateNewTopic.epoch_length": + case "emissions.v2.MsgCreateNewTopic.epoch_length": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.MsgCreateNewTopic.ground_truth_lag": + case "emissions.v2.MsgCreateNewTopic.ground_truth_lag": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.MsgCreateNewTopic.default_arg": - return protoreflect.ValueOfString("") - case "emissions.v1.MsgCreateNewTopic.p_norm": + case "emissions.v2.MsgCreateNewTopic.p_norm": return protoreflect.ValueOfString("") - case "emissions.v1.MsgCreateNewTopic.alpha_regret": + case "emissions.v2.MsgCreateNewTopic.alpha_regret": return protoreflect.ValueOfString("") - case "emissions.v1.MsgCreateNewTopic.allow_negative": + case "emissions.v2.MsgCreateNewTopic.allow_negative": return protoreflect.ValueOfBool(false) - case "emissions.v1.MsgCreateNewTopic.epsilon": + case "emissions.v2.MsgCreateNewTopic.epsilon": return protoreflect.ValueOfString("") + case "emissions.v2.MsgCreateNewTopic.worker_submission_window": + return protoreflect.ValueOfInt64(int64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCreateNewTopic")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCreateNewTopic")) } - panic(fmt.Errorf("message emissions.v1.MsgCreateNewTopic does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCreateNewTopic does not contain field %s", fd.FullName())) } } @@ -7658,7 +8029,7 @@ func (x *fastReflection_MsgCreateNewTopic) NewField(fd protoreflect.FieldDescrip func (x *fastReflection_MsgCreateNewTopic) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgCreateNewTopic", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgCreateNewTopic", d.FullName())) } panic("unreachable") } @@ -7721,32 +8092,16 @@ func (x *fastReflection_MsgCreateNewTopic) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.LossLogic) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } l = len(x.LossMethod) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.InferenceLogic) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.InferenceMethod) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.EpochLength != 0 { n += 1 + runtime.Sov(uint64(x.EpochLength)) } if x.GroundTruthLag != 0 { n += 1 + runtime.Sov(uint64(x.GroundTruthLag)) } - l = len(x.DefaultArg) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } l = len(x.PNorm) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) @@ -7762,6 +8117,9 @@ func (x *fastReflection_MsgCreateNewTopic) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.WorkerSubmissionWindow != 0 { + n += 1 + runtime.Sov(uint64(x.WorkerSubmissionWindow)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -7791,6 +8149,11 @@ func (x *fastReflection_MsgCreateNewTopic) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.WorkerSubmissionWindow != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.WorkerSubmissionWindow)) + i-- + dAtA[i] = 0x70 + } if len(x.Epsilon) > 0 { i -= len(x.Epsilon) copy(dAtA[i:], x.Epsilon) @@ -7822,13 +8185,6 @@ func (x *fastReflection_MsgCreateNewTopic) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x52 } - if len(x.DefaultArg) > 0 { - i -= len(x.DefaultArg) - copy(dAtA[i:], x.DefaultArg) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DefaultArg))) - i-- - dAtA[i] = 0x4a - } if x.GroundTruthLag != 0 { i = runtime.EncodeVarint(dAtA, i, uint64(x.GroundTruthLag)) i-- @@ -7839,20 +8195,6 @@ func (x *fastReflection_MsgCreateNewTopic) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x38 } - if len(x.InferenceMethod) > 0 { - i -= len(x.InferenceMethod) - copy(dAtA[i:], x.InferenceMethod) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InferenceMethod))) - i-- - dAtA[i] = 0x32 - } - if len(x.InferenceLogic) > 0 { - i -= len(x.InferenceLogic) - copy(dAtA[i:], x.InferenceLogic) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InferenceLogic))) - i-- - dAtA[i] = 0x2a - } if len(x.LossMethod) > 0 { i -= len(x.LossMethod) copy(dAtA[i:], x.LossMethod) @@ -7860,13 +8202,6 @@ func (x *fastReflection_MsgCreateNewTopic) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x22 } - if len(x.LossLogic) > 0 { - i -= len(x.LossLogic) - copy(dAtA[i:], x.LossLogic) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LossLogic))) - i-- - dAtA[i] = 0x1a - } if len(x.Metadata) > 0 { i -= len(x.Metadata) copy(dAtA[i:], x.Metadata) @@ -7994,38 +8329,6 @@ func (x *fastReflection_MsgCreateNewTopic) ProtoMethods() *protoiface.Methods { } x.Metadata = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LossLogic", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.LossLogic = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LossMethod", wireType) @@ -8058,94 +8361,11 @@ func (x *fastReflection_MsgCreateNewTopic) ProtoMethods() *protoiface.Methods { } x.LossMethod = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InferenceLogic", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.InferenceLogic = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InferenceMethod", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.InferenceMethod = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 7: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field EpochLength", wireType) } - x.EpochLength = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.EpochLength |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 8: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroundTruthLag", wireType) - } - x.GroundTruthLag = 0 + x.EpochLength = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -8155,16 +8375,16 @@ func (x *fastReflection_MsgCreateNewTopic) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - x.GroundTruthLag |= int64(b&0x7F) << shift + x.EpochLength |= int64(b&0x7F) << shift if b < 0x80 { break } } - case 9: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DefaultArg", wireType) + case 8: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field GroundTruthLag", wireType) } - var stringLen uint64 + x.GroundTruthLag = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -8174,24 +8394,11 @@ func (x *fastReflection_MsgCreateNewTopic) ProtoMethods() *protoiface.Methods { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + x.GroundTruthLag |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.DefaultArg = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 10: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PNorm", wireType) @@ -8308,6 +8515,25 @@ func (x *fastReflection_MsgCreateNewTopic) ProtoMethods() *protoiface.Methods { } x.Epsilon = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 14: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WorkerSubmissionWindow", wireType) + } + x.WorkerSubmissionWindow = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.WorkerSubmissionWindow |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -8349,8 +8575,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgCreateNewTopicResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgCreateNewTopicResponse") + file_emissions_v2_tx_proto_init() + md_MsgCreateNewTopicResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgCreateNewTopicResponse") fd_MsgCreateNewTopicResponse_topic_id = md_MsgCreateNewTopicResponse.Fields().ByName("topic_id") } @@ -8363,7 +8589,7 @@ func (x *MsgCreateNewTopicResponse) ProtoReflect() protoreflect.Message { } func (x *MsgCreateNewTopicResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[4] + mi := &file_emissions_v2_tx_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8440,13 +8666,13 @@ func (x *fastReflection_MsgCreateNewTopicResponse) Range(f func(protoreflect.Fie // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgCreateNewTopicResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgCreateNewTopicResponse.topic_id": + case "emissions.v2.MsgCreateNewTopicResponse.topic_id": return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCreateNewTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCreateNewTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCreateNewTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCreateNewTopicResponse does not contain field %s", fd.FullName())) } } @@ -8458,13 +8684,13 @@ func (x *fastReflection_MsgCreateNewTopicResponse) Has(fd protoreflect.FieldDesc // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCreateNewTopicResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgCreateNewTopicResponse.topic_id": + case "emissions.v2.MsgCreateNewTopicResponse.topic_id": x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCreateNewTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCreateNewTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCreateNewTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCreateNewTopicResponse does not contain field %s", fd.FullName())) } } @@ -8476,14 +8702,14 @@ func (x *fastReflection_MsgCreateNewTopicResponse) Clear(fd protoreflect.FieldDe // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgCreateNewTopicResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgCreateNewTopicResponse.topic_id": + case "emissions.v2.MsgCreateNewTopicResponse.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCreateNewTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCreateNewTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCreateNewTopicResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCreateNewTopicResponse does not contain field %s", descriptor.FullName())) } } @@ -8499,13 +8725,13 @@ func (x *fastReflection_MsgCreateNewTopicResponse) Get(descriptor protoreflect.F // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCreateNewTopicResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgCreateNewTopicResponse.topic_id": + case "emissions.v2.MsgCreateNewTopicResponse.topic_id": x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCreateNewTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCreateNewTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCreateNewTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCreateNewTopicResponse does not contain field %s", fd.FullName())) } } @@ -8521,13 +8747,13 @@ func (x *fastReflection_MsgCreateNewTopicResponse) Set(fd protoreflect.FieldDesc // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCreateNewTopicResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgCreateNewTopicResponse.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.MsgCreateNewTopicResponse is not mutable")) + case "emissions.v2.MsgCreateNewTopicResponse.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.MsgCreateNewTopicResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCreateNewTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCreateNewTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCreateNewTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCreateNewTopicResponse does not contain field %s", fd.FullName())) } } @@ -8536,13 +8762,13 @@ func (x *fastReflection_MsgCreateNewTopicResponse) Mutable(fd protoreflect.Field // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgCreateNewTopicResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgCreateNewTopicResponse.topic_id": + case "emissions.v2.MsgCreateNewTopicResponse.topic_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCreateNewTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCreateNewTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCreateNewTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCreateNewTopicResponse does not contain field %s", fd.FullName())) } } @@ -8552,7 +8778,7 @@ func (x *fastReflection_MsgCreateNewTopicResponse) NewField(fd protoreflect.Fiel func (x *fastReflection_MsgCreateNewTopicResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgCreateNewTopicResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgCreateNewTopicResponse", d.FullName())) } panic("unreachable") } @@ -8747,84 +8973,29 @@ func (x *fastReflection_MsgCreateNewTopicResponse) ProtoMethods() *protoiface.Me } } -var _ protoreflect.List = (*_MsgInsertBulkReputerPayload_4_list)(nil) - -type _MsgInsertBulkReputerPayload_4_list struct { - list *[]*ReputerValueBundle -} - -func (x *_MsgInsertBulkReputerPayload_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgInsertBulkReputerPayload_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgInsertBulkReputerPayload_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ReputerValueBundle) - (*x.list)[i] = concreteValue -} - -func (x *_MsgInsertBulkReputerPayload_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*ReputerValueBundle) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgInsertBulkReputerPayload_4_list) AppendMutable() protoreflect.Value { - v := new(ReputerValueBundle) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgInsertBulkReputerPayload_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgInsertBulkReputerPayload_4_list) NewElement() protoreflect.Value { - v := new(ReputerValueBundle) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgInsertBulkReputerPayload_4_list) IsValid() bool { - return x.list != nil -} - var ( - md_MsgInsertBulkReputerPayload protoreflect.MessageDescriptor - fd_MsgInsertBulkReputerPayload_sender protoreflect.FieldDescriptor - fd_MsgInsertBulkReputerPayload_reputer_request_nonce protoreflect.FieldDescriptor - fd_MsgInsertBulkReputerPayload_topic_id protoreflect.FieldDescriptor - fd_MsgInsertBulkReputerPayload_reputer_value_bundles protoreflect.FieldDescriptor + md_MsgInsertReputerPayload protoreflect.MessageDescriptor + fd_MsgInsertReputerPayload_sender protoreflect.FieldDescriptor + fd_MsgInsertReputerPayload_reputer_value_bundle protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgInsertBulkReputerPayload = File_emissions_v1_tx_proto.Messages().ByName("MsgInsertBulkReputerPayload") - fd_MsgInsertBulkReputerPayload_sender = md_MsgInsertBulkReputerPayload.Fields().ByName("sender") - fd_MsgInsertBulkReputerPayload_reputer_request_nonce = md_MsgInsertBulkReputerPayload.Fields().ByName("reputer_request_nonce") - fd_MsgInsertBulkReputerPayload_topic_id = md_MsgInsertBulkReputerPayload.Fields().ByName("topic_id") - fd_MsgInsertBulkReputerPayload_reputer_value_bundles = md_MsgInsertBulkReputerPayload.Fields().ByName("reputer_value_bundles") + file_emissions_v2_tx_proto_init() + md_MsgInsertReputerPayload = File_emissions_v2_tx_proto.Messages().ByName("MsgInsertReputerPayload") + fd_MsgInsertReputerPayload_sender = md_MsgInsertReputerPayload.Fields().ByName("sender") + fd_MsgInsertReputerPayload_reputer_value_bundle = md_MsgInsertReputerPayload.Fields().ByName("reputer_value_bundle") } -var _ protoreflect.Message = (*fastReflection_MsgInsertBulkReputerPayload)(nil) +var _ protoreflect.Message = (*fastReflection_MsgInsertReputerPayload)(nil) -type fastReflection_MsgInsertBulkReputerPayload MsgInsertBulkReputerPayload +type fastReflection_MsgInsertReputerPayload MsgInsertReputerPayload -func (x *MsgInsertBulkReputerPayload) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgInsertBulkReputerPayload)(x) +func (x *MsgInsertReputerPayload) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgInsertReputerPayload)(x) } -func (x *MsgInsertBulkReputerPayload) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[5] +func (x *MsgInsertReputerPayload) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_tx_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -8835,43 +9006,43 @@ func (x *MsgInsertBulkReputerPayload) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgInsertBulkReputerPayload_messageType fastReflection_MsgInsertBulkReputerPayload_messageType -var _ protoreflect.MessageType = fastReflection_MsgInsertBulkReputerPayload_messageType{} +var _fastReflection_MsgInsertReputerPayload_messageType fastReflection_MsgInsertReputerPayload_messageType +var _ protoreflect.MessageType = fastReflection_MsgInsertReputerPayload_messageType{} -type fastReflection_MsgInsertBulkReputerPayload_messageType struct{} +type fastReflection_MsgInsertReputerPayload_messageType struct{} -func (x fastReflection_MsgInsertBulkReputerPayload_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgInsertBulkReputerPayload)(nil) +func (x fastReflection_MsgInsertReputerPayload_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgInsertReputerPayload)(nil) } -func (x fastReflection_MsgInsertBulkReputerPayload_messageType) New() protoreflect.Message { - return new(fastReflection_MsgInsertBulkReputerPayload) +func (x fastReflection_MsgInsertReputerPayload_messageType) New() protoreflect.Message { + return new(fastReflection_MsgInsertReputerPayload) } -func (x fastReflection_MsgInsertBulkReputerPayload_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgInsertBulkReputerPayload +func (x fastReflection_MsgInsertReputerPayload_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgInsertReputerPayload } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgInsertBulkReputerPayload) Descriptor() protoreflect.MessageDescriptor { - return md_MsgInsertBulkReputerPayload +func (x *fastReflection_MsgInsertReputerPayload) Descriptor() protoreflect.MessageDescriptor { + return md_MsgInsertReputerPayload } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgInsertBulkReputerPayload) Type() protoreflect.MessageType { - return _fastReflection_MsgInsertBulkReputerPayload_messageType +func (x *fastReflection_MsgInsertReputerPayload) Type() protoreflect.MessageType { + return _fastReflection_MsgInsertReputerPayload_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgInsertBulkReputerPayload) New() protoreflect.Message { - return new(fastReflection_MsgInsertBulkReputerPayload) +func (x *fastReflection_MsgInsertReputerPayload) New() protoreflect.Message { + return new(fastReflection_MsgInsertReputerPayload) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgInsertBulkReputerPayload) Interface() protoreflect.ProtoMessage { - return (*MsgInsertBulkReputerPayload)(x) +func (x *fastReflection_MsgInsertReputerPayload) Interface() protoreflect.ProtoMessage { + return (*MsgInsertReputerPayload)(x) } // Range iterates over every populated field in an undefined order, @@ -8879,28 +9050,16 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) Interface() protoreflect.Pr // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgInsertBulkReputerPayload) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgInsertReputerPayload) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Sender != "" { value := protoreflect.ValueOfString(x.Sender) - if !f(fd_MsgInsertBulkReputerPayload_sender, value) { - return - } - } - if x.ReputerRequestNonce != nil { - value := protoreflect.ValueOfMessage(x.ReputerRequestNonce.ProtoReflect()) - if !f(fd_MsgInsertBulkReputerPayload_reputer_request_nonce, value) { - return - } - } - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_MsgInsertBulkReputerPayload_topic_id, value) { + if !f(fd_MsgInsertReputerPayload_sender, value) { return } } - if len(x.ReputerValueBundles) != 0 { - value := protoreflect.ValueOfList(&_MsgInsertBulkReputerPayload_4_list{list: &x.ReputerValueBundles}) - if !f(fd_MsgInsertBulkReputerPayload_reputer_value_bundles, value) { + if x.ReputerValueBundle != nil { + value := protoreflect.ValueOfMessage(x.ReputerValueBundle.ProtoReflect()) + if !f(fd_MsgInsertReputerPayload_reputer_value_bundle, value) { return } } @@ -8917,21 +9076,17 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) Range(f func(protoreflect.F // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgInsertBulkReputerPayload) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgInsertReputerPayload) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgInsertBulkReputerPayload.sender": + case "emissions.v2.MsgInsertReputerPayload.sender": return x.Sender != "" - case "emissions.v1.MsgInsertBulkReputerPayload.reputer_request_nonce": - return x.ReputerRequestNonce != nil - case "emissions.v1.MsgInsertBulkReputerPayload.topic_id": - return x.TopicId != uint64(0) - case "emissions.v1.MsgInsertBulkReputerPayload.reputer_value_bundles": - return len(x.ReputerValueBundles) != 0 + case "emissions.v2.MsgInsertReputerPayload.reputer_value_bundle": + return x.ReputerValueBundle != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkReputerPayload")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertReputerPayload")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkReputerPayload does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertReputerPayload does not contain field %s", fd.FullName())) } } @@ -8941,21 +9096,17 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) Has(fd protoreflect.FieldDe // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkReputerPayload) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgInsertReputerPayload) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgInsertBulkReputerPayload.sender": + case "emissions.v2.MsgInsertReputerPayload.sender": x.Sender = "" - case "emissions.v1.MsgInsertBulkReputerPayload.reputer_request_nonce": - x.ReputerRequestNonce = nil - case "emissions.v1.MsgInsertBulkReputerPayload.topic_id": - x.TopicId = uint64(0) - case "emissions.v1.MsgInsertBulkReputerPayload.reputer_value_bundles": - x.ReputerValueBundles = nil + case "emissions.v2.MsgInsertReputerPayload.reputer_value_bundle": + x.ReputerValueBundle = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkReputerPayload")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertReputerPayload")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkReputerPayload does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertReputerPayload does not contain field %s", fd.FullName())) } } @@ -8965,28 +9116,19 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) Clear(fd protoreflect.Field // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgInsertBulkReputerPayload) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgInsertReputerPayload) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgInsertBulkReputerPayload.sender": + case "emissions.v2.MsgInsertReputerPayload.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgInsertBulkReputerPayload.reputer_request_nonce": - value := x.ReputerRequestNonce + case "emissions.v2.MsgInsertReputerPayload.reputer_value_bundle": + value := x.ReputerValueBundle return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "emissions.v1.MsgInsertBulkReputerPayload.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) - case "emissions.v1.MsgInsertBulkReputerPayload.reputer_value_bundles": - if len(x.ReputerValueBundles) == 0 { - return protoreflect.ValueOfList(&_MsgInsertBulkReputerPayload_4_list{}) - } - listValue := &_MsgInsertBulkReputerPayload_4_list{list: &x.ReputerValueBundles} - return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkReputerPayload")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertReputerPayload")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkReputerPayload does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertReputerPayload does not contain field %s", descriptor.FullName())) } } @@ -9000,23 +9142,17 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) Get(descriptor protoreflect // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkReputerPayload) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgInsertReputerPayload) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgInsertBulkReputerPayload.sender": + case "emissions.v2.MsgInsertReputerPayload.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgInsertBulkReputerPayload.reputer_request_nonce": - x.ReputerRequestNonce = value.Message().Interface().(*ReputerRequestNonce) - case "emissions.v1.MsgInsertBulkReputerPayload.topic_id": - x.TopicId = value.Uint() - case "emissions.v1.MsgInsertBulkReputerPayload.reputer_value_bundles": - lv := value.List() - clv := lv.(*_MsgInsertBulkReputerPayload_4_list) - x.ReputerValueBundles = *clv.list + case "emissions.v2.MsgInsertReputerPayload.reputer_value_bundle": + x.ReputerValueBundle = value.Message().Interface().(*ReputerValueBundle) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkReputerPayload")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertReputerPayload")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkReputerPayload does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertReputerPayload does not contain field %s", fd.FullName())) } } @@ -9030,61 +9166,48 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) Set(fd protoreflect.FieldDe // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkReputerPayload) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgInsertReputerPayload) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgInsertBulkReputerPayload.reputer_request_nonce": - if x.ReputerRequestNonce == nil { - x.ReputerRequestNonce = new(ReputerRequestNonce) + case "emissions.v2.MsgInsertReputerPayload.reputer_value_bundle": + if x.ReputerValueBundle == nil { + x.ReputerValueBundle = new(ReputerValueBundle) } - return protoreflect.ValueOfMessage(x.ReputerRequestNonce.ProtoReflect()) - case "emissions.v1.MsgInsertBulkReputerPayload.reputer_value_bundles": - if x.ReputerValueBundles == nil { - x.ReputerValueBundles = []*ReputerValueBundle{} - } - value := &_MsgInsertBulkReputerPayload_4_list{list: &x.ReputerValueBundles} - return protoreflect.ValueOfList(value) - case "emissions.v1.MsgInsertBulkReputerPayload.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgInsertBulkReputerPayload is not mutable")) - case "emissions.v1.MsgInsertBulkReputerPayload.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.MsgInsertBulkReputerPayload is not mutable")) + return protoreflect.ValueOfMessage(x.ReputerValueBundle.ProtoReflect()) + case "emissions.v2.MsgInsertReputerPayload.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgInsertReputerPayload is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkReputerPayload")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertReputerPayload")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkReputerPayload does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertReputerPayload does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgInsertBulkReputerPayload) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgInsertReputerPayload) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgInsertBulkReputerPayload.sender": + case "emissions.v2.MsgInsertReputerPayload.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgInsertBulkReputerPayload.reputer_request_nonce": - m := new(ReputerRequestNonce) + case "emissions.v2.MsgInsertReputerPayload.reputer_value_bundle": + m := new(ReputerValueBundle) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "emissions.v1.MsgInsertBulkReputerPayload.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.MsgInsertBulkReputerPayload.reputer_value_bundles": - list := []*ReputerValueBundle{} - return protoreflect.ValueOfList(&_MsgInsertBulkReputerPayload_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkReputerPayload")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertReputerPayload")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkReputerPayload does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertReputerPayload does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgInsertBulkReputerPayload) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgInsertReputerPayload) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgInsertBulkReputerPayload", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgInsertReputerPayload", d.FullName())) } panic("unreachable") } @@ -9092,7 +9215,7 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) WhichOneof(d protoreflect.O // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgInsertBulkReputerPayload) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgInsertReputerPayload) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9103,7 +9226,7 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) GetUnknown() protoreflect.R // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkReputerPayload) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgInsertReputerPayload) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9115,7 +9238,7 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) SetUnknown(fields protorefl // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgInsertBulkReputerPayload) IsValid() bool { +func (x *fastReflection_MsgInsertReputerPayload) IsValid() bool { return x != nil } @@ -9125,9 +9248,9 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgInsertBulkReputerPayload) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgInsertReputerPayload) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgInsertBulkReputerPayload) + x := input.Message.Interface().(*MsgInsertReputerPayload) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9143,19 +9266,10 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) ProtoMethods() *protoiface. if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.ReputerRequestNonce != nil { - l = options.Size(x.ReputerRequestNonce) + if x.ReputerValueBundle != nil { + l = options.Size(x.ReputerValueBundle) n += 1 + l + runtime.Sov(uint64(l)) } - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) - } - if len(x.ReputerValueBundles) > 0 { - for _, e := range x.ReputerValueBundles { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -9166,7 +9280,7 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) ProtoMethods() *protoiface. } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgInsertBulkReputerPayload) + x := input.Message.Interface().(*MsgInsertReputerPayload) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9185,29 +9299,8 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) ProtoMethods() *protoiface. i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.ReputerValueBundles) > 0 { - for iNdEx := len(x.ReputerValueBundles) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.ReputerValueBundles[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) - i-- - dAtA[i] = 0x18 - } - if x.ReputerRequestNonce != nil { - encoded, err := options.Marshal(x.ReputerRequestNonce) + if x.ReputerValueBundle != nil { + encoded, err := options.Marshal(x.ReputerValueBundle) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9238,7 +9331,7 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) ProtoMethods() *protoiface. }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgInsertBulkReputerPayload) + x := input.Message.Interface().(*MsgInsertReputerPayload) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9270,10 +9363,10 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) ProtoMethods() *protoiface. fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertBulkReputerPayload: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertReputerPayload: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertBulkReputerPayload: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertReputerPayload: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -9310,7 +9403,7 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) ProtoMethods() *protoiface. iNdEx = postIndex case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerRequestNonce", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerValueBundle", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9337,63 +9430,10 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) ProtoMethods() *protoiface. if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.ReputerRequestNonce == nil { - x.ReputerRequestNonce = &ReputerRequestNonce{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ReputerRequestNonce); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - x.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ReputerValueBundles", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + if x.ReputerValueBundle == nil { + x.ReputerValueBundle = &ReputerValueBundle{} } - x.ReputerValueBundles = append(x.ReputerValueBundles, &ReputerValueBundle{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ReputerValueBundles[len(x.ReputerValueBundles)-1]); err != nil { + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.ReputerValueBundle); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -9433,24 +9473,24 @@ func (x *fastReflection_MsgInsertBulkReputerPayload) ProtoMethods() *protoiface. } var ( - md_MsgInsertBulkReputerPayloadResponse protoreflect.MessageDescriptor + md_MsgInsertReputerPayloadResponse protoreflect.MessageDescriptor ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgInsertBulkReputerPayloadResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgInsertBulkReputerPayloadResponse") + file_emissions_v2_tx_proto_init() + md_MsgInsertReputerPayloadResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgInsertReputerPayloadResponse") } -var _ protoreflect.Message = (*fastReflection_MsgInsertBulkReputerPayloadResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgInsertReputerPayloadResponse)(nil) -type fastReflection_MsgInsertBulkReputerPayloadResponse MsgInsertBulkReputerPayloadResponse +type fastReflection_MsgInsertReputerPayloadResponse MsgInsertReputerPayloadResponse -func (x *MsgInsertBulkReputerPayloadResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgInsertBulkReputerPayloadResponse)(x) +func (x *MsgInsertReputerPayloadResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgInsertReputerPayloadResponse)(x) } -func (x *MsgInsertBulkReputerPayloadResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[6] +func (x *MsgInsertReputerPayloadResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_tx_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9461,43 +9501,43 @@ func (x *MsgInsertBulkReputerPayloadResponse) slowProtoReflect() protoreflect.Me return mi.MessageOf(x) } -var _fastReflection_MsgInsertBulkReputerPayloadResponse_messageType fastReflection_MsgInsertBulkReputerPayloadResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgInsertBulkReputerPayloadResponse_messageType{} +var _fastReflection_MsgInsertReputerPayloadResponse_messageType fastReflection_MsgInsertReputerPayloadResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgInsertReputerPayloadResponse_messageType{} -type fastReflection_MsgInsertBulkReputerPayloadResponse_messageType struct{} +type fastReflection_MsgInsertReputerPayloadResponse_messageType struct{} -func (x fastReflection_MsgInsertBulkReputerPayloadResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgInsertBulkReputerPayloadResponse)(nil) +func (x fastReflection_MsgInsertReputerPayloadResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgInsertReputerPayloadResponse)(nil) } -func (x fastReflection_MsgInsertBulkReputerPayloadResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgInsertBulkReputerPayloadResponse) +func (x fastReflection_MsgInsertReputerPayloadResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgInsertReputerPayloadResponse) } -func (x fastReflection_MsgInsertBulkReputerPayloadResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgInsertBulkReputerPayloadResponse +func (x fastReflection_MsgInsertReputerPayloadResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgInsertReputerPayloadResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgInsertBulkReputerPayloadResponse +func (x *fastReflection_MsgInsertReputerPayloadResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgInsertReputerPayloadResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgInsertBulkReputerPayloadResponse_messageType +func (x *fastReflection_MsgInsertReputerPayloadResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgInsertReputerPayloadResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) New() protoreflect.Message { - return new(fastReflection_MsgInsertBulkReputerPayloadResponse) +func (x *fastReflection_MsgInsertReputerPayloadResponse) New() protoreflect.Message { + return new(fastReflection_MsgInsertReputerPayloadResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Interface() protoreflect.ProtoMessage { - return (*MsgInsertBulkReputerPayloadResponse)(x) +func (x *fastReflection_MsgInsertReputerPayloadResponse) Interface() protoreflect.ProtoMessage { + return (*MsgInsertReputerPayloadResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -9505,7 +9545,7 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Interface() protore // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgInsertReputerPayloadResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -9519,13 +9559,13 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Range(f func(protor // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgInsertReputerPayloadResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkReputerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertReputerPayloadResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkReputerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertReputerPayloadResponse does not contain field %s", fd.FullName())) } } @@ -9535,13 +9575,13 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Has(fd protoreflect // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgInsertReputerPayloadResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkReputerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertReputerPayloadResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkReputerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertReputerPayloadResponse does not contain field %s", fd.FullName())) } } @@ -9551,13 +9591,13 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Clear(fd protorefle // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgInsertReputerPayloadResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkReputerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertReputerPayloadResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkReputerPayloadResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertReputerPayloadResponse does not contain field %s", descriptor.FullName())) } } @@ -9571,13 +9611,13 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Get(descriptor prot // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgInsertReputerPayloadResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkReputerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertReputerPayloadResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkReputerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertReputerPayloadResponse does not contain field %s", fd.FullName())) } } @@ -9591,36 +9631,36 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Set(fd protoreflect // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgInsertReputerPayloadResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkReputerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertReputerPayloadResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkReputerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertReputerPayloadResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgInsertReputerPayloadResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkReputerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertReputerPayloadResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkReputerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertReputerPayloadResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgInsertReputerPayloadResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgInsertBulkReputerPayloadResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgInsertReputerPayloadResponse", d.FullName())) } panic("unreachable") } @@ -9628,7 +9668,7 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) WhichOneof(d protor // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgInsertReputerPayloadResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -9639,7 +9679,7 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) GetUnknown() protor // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgInsertReputerPayloadResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -9651,7 +9691,7 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) SetUnknown(fields p // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) IsValid() bool { +func (x *fastReflection_MsgInsertReputerPayloadResponse) IsValid() bool { return x != nil } @@ -9661,9 +9701,9 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgInsertReputerPayloadResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgInsertBulkReputerPayloadResponse) + x := input.Message.Interface().(*MsgInsertReputerPayloadResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9685,7 +9725,7 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) ProtoMethods() *pro } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgInsertBulkReputerPayloadResponse) + x := input.Message.Interface().(*MsgInsertReputerPayloadResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9715,7 +9755,7 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) ProtoMethods() *pro }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgInsertBulkReputerPayloadResponse) + x := input.Message.Interface().(*MsgInsertReputerPayloadResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -9747,10 +9787,10 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) ProtoMethods() *pro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertBulkReputerPayloadResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertReputerPayloadResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertBulkReputerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertReputerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -9788,84 +9828,29 @@ func (x *fastReflection_MsgInsertBulkReputerPayloadResponse) ProtoMethods() *pro } } -var _ protoreflect.List = (*_MsgInsertBulkWorkerPayload_4_list)(nil) - -type _MsgInsertBulkWorkerPayload_4_list struct { - list *[]*WorkerDataBundle -} - -func (x *_MsgInsertBulkWorkerPayload_4_list) Len() int { - if x.list == nil { - return 0 - } - return len(*x.list) -} - -func (x *_MsgInsertBulkWorkerPayload_4_list) Get(i int) protoreflect.Value { - return protoreflect.ValueOfMessage((*x.list)[i].ProtoReflect()) -} - -func (x *_MsgInsertBulkWorkerPayload_4_list) Set(i int, value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*WorkerDataBundle) - (*x.list)[i] = concreteValue -} - -func (x *_MsgInsertBulkWorkerPayload_4_list) Append(value protoreflect.Value) { - valueUnwrapped := value.Message() - concreteValue := valueUnwrapped.Interface().(*WorkerDataBundle) - *x.list = append(*x.list, concreteValue) -} - -func (x *_MsgInsertBulkWorkerPayload_4_list) AppendMutable() protoreflect.Value { - v := new(WorkerDataBundle) - *x.list = append(*x.list, v) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgInsertBulkWorkerPayload_4_list) Truncate(n int) { - for i := n; i < len(*x.list); i++ { - (*x.list)[i] = nil - } - *x.list = (*x.list)[:n] -} - -func (x *_MsgInsertBulkWorkerPayload_4_list) NewElement() protoreflect.Value { - v := new(WorkerDataBundle) - return protoreflect.ValueOfMessage(v.ProtoReflect()) -} - -func (x *_MsgInsertBulkWorkerPayload_4_list) IsValid() bool { - return x.list != nil -} - var ( - md_MsgInsertBulkWorkerPayload protoreflect.MessageDescriptor - fd_MsgInsertBulkWorkerPayload_sender protoreflect.FieldDescriptor - fd_MsgInsertBulkWorkerPayload_nonce protoreflect.FieldDescriptor - fd_MsgInsertBulkWorkerPayload_topic_id protoreflect.FieldDescriptor - fd_MsgInsertBulkWorkerPayload_worker_data_bundles protoreflect.FieldDescriptor + md_MsgInsertWorkerPayload protoreflect.MessageDescriptor + fd_MsgInsertWorkerPayload_sender protoreflect.FieldDescriptor + fd_MsgInsertWorkerPayload_worker_data_bundle protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgInsertBulkWorkerPayload = File_emissions_v1_tx_proto.Messages().ByName("MsgInsertBulkWorkerPayload") - fd_MsgInsertBulkWorkerPayload_sender = md_MsgInsertBulkWorkerPayload.Fields().ByName("sender") - fd_MsgInsertBulkWorkerPayload_nonce = md_MsgInsertBulkWorkerPayload.Fields().ByName("nonce") - fd_MsgInsertBulkWorkerPayload_topic_id = md_MsgInsertBulkWorkerPayload.Fields().ByName("topic_id") - fd_MsgInsertBulkWorkerPayload_worker_data_bundles = md_MsgInsertBulkWorkerPayload.Fields().ByName("worker_data_bundles") + file_emissions_v2_tx_proto_init() + md_MsgInsertWorkerPayload = File_emissions_v2_tx_proto.Messages().ByName("MsgInsertWorkerPayload") + fd_MsgInsertWorkerPayload_sender = md_MsgInsertWorkerPayload.Fields().ByName("sender") + fd_MsgInsertWorkerPayload_worker_data_bundle = md_MsgInsertWorkerPayload.Fields().ByName("worker_data_bundle") } -var _ protoreflect.Message = (*fastReflection_MsgInsertBulkWorkerPayload)(nil) +var _ protoreflect.Message = (*fastReflection_MsgInsertWorkerPayload)(nil) -type fastReflection_MsgInsertBulkWorkerPayload MsgInsertBulkWorkerPayload +type fastReflection_MsgInsertWorkerPayload MsgInsertWorkerPayload -func (x *MsgInsertBulkWorkerPayload) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgInsertBulkWorkerPayload)(x) +func (x *MsgInsertWorkerPayload) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgInsertWorkerPayload)(x) } -func (x *MsgInsertBulkWorkerPayload) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[7] +func (x *MsgInsertWorkerPayload) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_tx_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -9876,43 +9861,43 @@ func (x *MsgInsertBulkWorkerPayload) slowProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -var _fastReflection_MsgInsertBulkWorkerPayload_messageType fastReflection_MsgInsertBulkWorkerPayload_messageType -var _ protoreflect.MessageType = fastReflection_MsgInsertBulkWorkerPayload_messageType{} +var _fastReflection_MsgInsertWorkerPayload_messageType fastReflection_MsgInsertWorkerPayload_messageType +var _ protoreflect.MessageType = fastReflection_MsgInsertWorkerPayload_messageType{} -type fastReflection_MsgInsertBulkWorkerPayload_messageType struct{} +type fastReflection_MsgInsertWorkerPayload_messageType struct{} -func (x fastReflection_MsgInsertBulkWorkerPayload_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgInsertBulkWorkerPayload)(nil) +func (x fastReflection_MsgInsertWorkerPayload_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgInsertWorkerPayload)(nil) } -func (x fastReflection_MsgInsertBulkWorkerPayload_messageType) New() protoreflect.Message { - return new(fastReflection_MsgInsertBulkWorkerPayload) +func (x fastReflection_MsgInsertWorkerPayload_messageType) New() protoreflect.Message { + return new(fastReflection_MsgInsertWorkerPayload) } -func (x fastReflection_MsgInsertBulkWorkerPayload_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgInsertBulkWorkerPayload +func (x fastReflection_MsgInsertWorkerPayload_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgInsertWorkerPayload } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgInsertBulkWorkerPayload) Descriptor() protoreflect.MessageDescriptor { - return md_MsgInsertBulkWorkerPayload +func (x *fastReflection_MsgInsertWorkerPayload) Descriptor() protoreflect.MessageDescriptor { + return md_MsgInsertWorkerPayload } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgInsertBulkWorkerPayload) Type() protoreflect.MessageType { - return _fastReflection_MsgInsertBulkWorkerPayload_messageType +func (x *fastReflection_MsgInsertWorkerPayload) Type() protoreflect.MessageType { + return _fastReflection_MsgInsertWorkerPayload_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgInsertBulkWorkerPayload) New() protoreflect.Message { - return new(fastReflection_MsgInsertBulkWorkerPayload) +func (x *fastReflection_MsgInsertWorkerPayload) New() protoreflect.Message { + return new(fastReflection_MsgInsertWorkerPayload) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgInsertBulkWorkerPayload) Interface() protoreflect.ProtoMessage { - return (*MsgInsertBulkWorkerPayload)(x) +func (x *fastReflection_MsgInsertWorkerPayload) Interface() protoreflect.ProtoMessage { + return (*MsgInsertWorkerPayload)(x) } // Range iterates over every populated field in an undefined order, @@ -9920,28 +9905,16 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) Interface() protoreflect.Pro // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgInsertBulkWorkerPayload) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgInsertWorkerPayload) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { if x.Sender != "" { value := protoreflect.ValueOfString(x.Sender) - if !f(fd_MsgInsertBulkWorkerPayload_sender, value) { - return - } - } - if x.Nonce != nil { - value := protoreflect.ValueOfMessage(x.Nonce.ProtoReflect()) - if !f(fd_MsgInsertBulkWorkerPayload_nonce, value) { - return - } - } - if x.TopicId != uint64(0) { - value := protoreflect.ValueOfUint64(x.TopicId) - if !f(fd_MsgInsertBulkWorkerPayload_topic_id, value) { + if !f(fd_MsgInsertWorkerPayload_sender, value) { return } } - if len(x.WorkerDataBundles) != 0 { - value := protoreflect.ValueOfList(&_MsgInsertBulkWorkerPayload_4_list{list: &x.WorkerDataBundles}) - if !f(fd_MsgInsertBulkWorkerPayload_worker_data_bundles, value) { + if x.WorkerDataBundle != nil { + value := protoreflect.ValueOfMessage(x.WorkerDataBundle.ProtoReflect()) + if !f(fd_MsgInsertWorkerPayload_worker_data_bundle, value) { return } } @@ -9958,21 +9931,17 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) Range(f func(protoreflect.Fi // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgInsertBulkWorkerPayload) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgInsertWorkerPayload) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgInsertBulkWorkerPayload.sender": + case "emissions.v2.MsgInsertWorkerPayload.sender": return x.Sender != "" - case "emissions.v1.MsgInsertBulkWorkerPayload.nonce": - return x.Nonce != nil - case "emissions.v1.MsgInsertBulkWorkerPayload.topic_id": - return x.TopicId != uint64(0) - case "emissions.v1.MsgInsertBulkWorkerPayload.worker_data_bundles": - return len(x.WorkerDataBundles) != 0 + case "emissions.v2.MsgInsertWorkerPayload.worker_data_bundle": + return x.WorkerDataBundle != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkWorkerPayload")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertWorkerPayload")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkWorkerPayload does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertWorkerPayload does not contain field %s", fd.FullName())) } } @@ -9982,21 +9951,17 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) Has(fd protoreflect.FieldDes // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkWorkerPayload) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgInsertWorkerPayload) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgInsertBulkWorkerPayload.sender": + case "emissions.v2.MsgInsertWorkerPayload.sender": x.Sender = "" - case "emissions.v1.MsgInsertBulkWorkerPayload.nonce": - x.Nonce = nil - case "emissions.v1.MsgInsertBulkWorkerPayload.topic_id": - x.TopicId = uint64(0) - case "emissions.v1.MsgInsertBulkWorkerPayload.worker_data_bundles": - x.WorkerDataBundles = nil + case "emissions.v2.MsgInsertWorkerPayload.worker_data_bundle": + x.WorkerDataBundle = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkWorkerPayload")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertWorkerPayload")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkWorkerPayload does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertWorkerPayload does not contain field %s", fd.FullName())) } } @@ -10006,28 +9971,19 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) Clear(fd protoreflect.FieldD // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgInsertBulkWorkerPayload) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgInsertWorkerPayload) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgInsertBulkWorkerPayload.sender": + case "emissions.v2.MsgInsertWorkerPayload.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgInsertBulkWorkerPayload.nonce": - value := x.Nonce + case "emissions.v2.MsgInsertWorkerPayload.worker_data_bundle": + value := x.WorkerDataBundle return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "emissions.v1.MsgInsertBulkWorkerPayload.topic_id": - value := x.TopicId - return protoreflect.ValueOfUint64(value) - case "emissions.v1.MsgInsertBulkWorkerPayload.worker_data_bundles": - if len(x.WorkerDataBundles) == 0 { - return protoreflect.ValueOfList(&_MsgInsertBulkWorkerPayload_4_list{}) - } - listValue := &_MsgInsertBulkWorkerPayload_4_list{list: &x.WorkerDataBundles} - return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkWorkerPayload")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertWorkerPayload")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkWorkerPayload does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertWorkerPayload does not contain field %s", descriptor.FullName())) } } @@ -10041,23 +9997,17 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) Get(descriptor protoreflect. // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkWorkerPayload) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgInsertWorkerPayload) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgInsertBulkWorkerPayload.sender": + case "emissions.v2.MsgInsertWorkerPayload.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgInsertBulkWorkerPayload.nonce": - x.Nonce = value.Message().Interface().(*Nonce) - case "emissions.v1.MsgInsertBulkWorkerPayload.topic_id": - x.TopicId = value.Uint() - case "emissions.v1.MsgInsertBulkWorkerPayload.worker_data_bundles": - lv := value.List() - clv := lv.(*_MsgInsertBulkWorkerPayload_4_list) - x.WorkerDataBundles = *clv.list + case "emissions.v2.MsgInsertWorkerPayload.worker_data_bundle": + x.WorkerDataBundle = value.Message().Interface().(*WorkerDataBundle) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkWorkerPayload")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertWorkerPayload")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkWorkerPayload does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertWorkerPayload does not contain field %s", fd.FullName())) } } @@ -10071,61 +10021,48 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) Set(fd protoreflect.FieldDes // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkWorkerPayload) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgInsertWorkerPayload) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgInsertBulkWorkerPayload.nonce": - if x.Nonce == nil { - x.Nonce = new(Nonce) + case "emissions.v2.MsgInsertWorkerPayload.worker_data_bundle": + if x.WorkerDataBundle == nil { + x.WorkerDataBundle = new(WorkerDataBundle) } - return protoreflect.ValueOfMessage(x.Nonce.ProtoReflect()) - case "emissions.v1.MsgInsertBulkWorkerPayload.worker_data_bundles": - if x.WorkerDataBundles == nil { - x.WorkerDataBundles = []*WorkerDataBundle{} - } - value := &_MsgInsertBulkWorkerPayload_4_list{list: &x.WorkerDataBundles} - return protoreflect.ValueOfList(value) - case "emissions.v1.MsgInsertBulkWorkerPayload.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgInsertBulkWorkerPayload is not mutable")) - case "emissions.v1.MsgInsertBulkWorkerPayload.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.MsgInsertBulkWorkerPayload is not mutable")) + return protoreflect.ValueOfMessage(x.WorkerDataBundle.ProtoReflect()) + case "emissions.v2.MsgInsertWorkerPayload.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgInsertWorkerPayload is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkWorkerPayload")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertWorkerPayload")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkWorkerPayload does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertWorkerPayload does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgInsertBulkWorkerPayload) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgInsertWorkerPayload) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgInsertBulkWorkerPayload.sender": + case "emissions.v2.MsgInsertWorkerPayload.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgInsertBulkWorkerPayload.nonce": - m := new(Nonce) + case "emissions.v2.MsgInsertWorkerPayload.worker_data_bundle": + m := new(WorkerDataBundle) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "emissions.v1.MsgInsertBulkWorkerPayload.topic_id": - return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.MsgInsertBulkWorkerPayload.worker_data_bundles": - list := []*WorkerDataBundle{} - return protoreflect.ValueOfList(&_MsgInsertBulkWorkerPayload_4_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkWorkerPayload")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertWorkerPayload")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkWorkerPayload does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertWorkerPayload does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgInsertBulkWorkerPayload) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgInsertWorkerPayload) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgInsertBulkWorkerPayload", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgInsertWorkerPayload", d.FullName())) } panic("unreachable") } @@ -10133,7 +10070,7 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) WhichOneof(d protoreflect.On // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgInsertBulkWorkerPayload) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgInsertWorkerPayload) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10144,7 +10081,7 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) GetUnknown() protoreflect.Ra // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkWorkerPayload) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgInsertWorkerPayload) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10156,7 +10093,7 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) SetUnknown(fields protorefle // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgInsertBulkWorkerPayload) IsValid() bool { +func (x *fastReflection_MsgInsertWorkerPayload) IsValid() bool { return x != nil } @@ -10166,9 +10103,9 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgInsertBulkWorkerPayload) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgInsertWorkerPayload) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgInsertBulkWorkerPayload) + x := input.Message.Interface().(*MsgInsertWorkerPayload) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10184,19 +10121,10 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) ProtoMethods() *protoiface.M if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - if x.Nonce != nil { - l = options.Size(x.Nonce) + if x.WorkerDataBundle != nil { + l = options.Size(x.WorkerDataBundle) n += 1 + l + runtime.Sov(uint64(l)) } - if x.TopicId != 0 { - n += 1 + runtime.Sov(uint64(x.TopicId)) - } - if len(x.WorkerDataBundles) > 0 { - for _, e := range x.WorkerDataBundles { - l = options.Size(e) - n += 1 + l + runtime.Sov(uint64(l)) - } - } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -10207,7 +10135,7 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) ProtoMethods() *protoiface.M } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgInsertBulkWorkerPayload) + x := input.Message.Interface().(*MsgInsertWorkerPayload) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10226,29 +10154,8 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) ProtoMethods() *protoiface.M i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } - if len(x.WorkerDataBundles) > 0 { - for iNdEx := len(x.WorkerDataBundles) - 1; iNdEx >= 0; iNdEx-- { - encoded, err := options.Marshal(x.WorkerDataBundles[iNdEx]) - if err != nil { - return protoiface.MarshalOutput{ - NoUnkeyedLiterals: input.NoUnkeyedLiterals, - Buf: input.Buf, - }, err - } - i -= len(encoded) - copy(dAtA[i:], encoded) - i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) - i-- - dAtA[i] = 0x22 - } - } - if x.TopicId != 0 { - i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) - i-- - dAtA[i] = 0x18 - } - if x.Nonce != nil { - encoded, err := options.Marshal(x.Nonce) + if x.WorkerDataBundle != nil { + encoded, err := options.Marshal(x.WorkerDataBundle) if err != nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10279,7 +10186,7 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) ProtoMethods() *protoiface.M }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgInsertBulkWorkerPayload) + x := input.Message.Interface().(*MsgInsertWorkerPayload) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10306,54 +10213,22 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) ProtoMethods() *protoiface.M wire |= uint64(b&0x7F) << shift if b < 0x80 { break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertBulkWorkerPayload: wiretype end group for non-group") - } - if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertBulkWorkerPayload: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.Sender = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertWorkerPayload: wiretype end group for non-group") + } + if fieldNum <= 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertWorkerPayload: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Sender", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow @@ -10363,50 +10238,27 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) ProtoMethods() *protoiface.M } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength } if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - if x.Nonce == nil { - x.Nonce = &Nonce{} - } - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nonce); err != nil { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err - } + x.Sender = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - x.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - x.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: + case 2: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WorkerDataBundles", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field WorkerDataBundle", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10433,8 +10285,10 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) ProtoMethods() *protoiface.M if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.WorkerDataBundles = append(x.WorkerDataBundles, &WorkerDataBundle{}) - if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.WorkerDataBundles[len(x.WorkerDataBundles)-1]); err != nil { + if x.WorkerDataBundle == nil { + x.WorkerDataBundle = &WorkerDataBundle{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.WorkerDataBundle); err != nil { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex @@ -10474,24 +10328,24 @@ func (x *fastReflection_MsgInsertBulkWorkerPayload) ProtoMethods() *protoiface.M } var ( - md_MsgInsertBulkWorkerPayloadResponse protoreflect.MessageDescriptor + md_MsgInsertWorkerPayloadResponse protoreflect.MessageDescriptor ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgInsertBulkWorkerPayloadResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgInsertBulkWorkerPayloadResponse") + file_emissions_v2_tx_proto_init() + md_MsgInsertWorkerPayloadResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgInsertWorkerPayloadResponse") } -var _ protoreflect.Message = (*fastReflection_MsgInsertBulkWorkerPayloadResponse)(nil) +var _ protoreflect.Message = (*fastReflection_MsgInsertWorkerPayloadResponse)(nil) -type fastReflection_MsgInsertBulkWorkerPayloadResponse MsgInsertBulkWorkerPayloadResponse +type fastReflection_MsgInsertWorkerPayloadResponse MsgInsertWorkerPayloadResponse -func (x *MsgInsertBulkWorkerPayloadResponse) ProtoReflect() protoreflect.Message { - return (*fastReflection_MsgInsertBulkWorkerPayloadResponse)(x) +func (x *MsgInsertWorkerPayloadResponse) ProtoReflect() protoreflect.Message { + return (*fastReflection_MsgInsertWorkerPayloadResponse)(x) } -func (x *MsgInsertBulkWorkerPayloadResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[8] +func (x *MsgInsertWorkerPayloadResponse) slowProtoReflect() protoreflect.Message { + mi := &file_emissions_v2_tx_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10502,43 +10356,43 @@ func (x *MsgInsertBulkWorkerPayloadResponse) slowProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -var _fastReflection_MsgInsertBulkWorkerPayloadResponse_messageType fastReflection_MsgInsertBulkWorkerPayloadResponse_messageType -var _ protoreflect.MessageType = fastReflection_MsgInsertBulkWorkerPayloadResponse_messageType{} +var _fastReflection_MsgInsertWorkerPayloadResponse_messageType fastReflection_MsgInsertWorkerPayloadResponse_messageType +var _ protoreflect.MessageType = fastReflection_MsgInsertWorkerPayloadResponse_messageType{} -type fastReflection_MsgInsertBulkWorkerPayloadResponse_messageType struct{} +type fastReflection_MsgInsertWorkerPayloadResponse_messageType struct{} -func (x fastReflection_MsgInsertBulkWorkerPayloadResponse_messageType) Zero() protoreflect.Message { - return (*fastReflection_MsgInsertBulkWorkerPayloadResponse)(nil) +func (x fastReflection_MsgInsertWorkerPayloadResponse_messageType) Zero() protoreflect.Message { + return (*fastReflection_MsgInsertWorkerPayloadResponse)(nil) } -func (x fastReflection_MsgInsertBulkWorkerPayloadResponse_messageType) New() protoreflect.Message { - return new(fastReflection_MsgInsertBulkWorkerPayloadResponse) +func (x fastReflection_MsgInsertWorkerPayloadResponse_messageType) New() protoreflect.Message { + return new(fastReflection_MsgInsertWorkerPayloadResponse) } -func (x fastReflection_MsgInsertBulkWorkerPayloadResponse_messageType) Descriptor() protoreflect.MessageDescriptor { - return md_MsgInsertBulkWorkerPayloadResponse +func (x fastReflection_MsgInsertWorkerPayloadResponse_messageType) Descriptor() protoreflect.MessageDescriptor { + return md_MsgInsertWorkerPayloadResponse } // Descriptor returns message descriptor, which contains only the protobuf // type information for the message. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Descriptor() protoreflect.MessageDescriptor { - return md_MsgInsertBulkWorkerPayloadResponse +func (x *fastReflection_MsgInsertWorkerPayloadResponse) Descriptor() protoreflect.MessageDescriptor { + return md_MsgInsertWorkerPayloadResponse } // Type returns the message type, which encapsulates both Go and protobuf // type information. If the Go type information is not needed, // it is recommended that the message descriptor be used instead. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Type() protoreflect.MessageType { - return _fastReflection_MsgInsertBulkWorkerPayloadResponse_messageType +func (x *fastReflection_MsgInsertWorkerPayloadResponse) Type() protoreflect.MessageType { + return _fastReflection_MsgInsertWorkerPayloadResponse_messageType } // New returns a newly allocated and mutable empty message. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) New() protoreflect.Message { - return new(fastReflection_MsgInsertBulkWorkerPayloadResponse) +func (x *fastReflection_MsgInsertWorkerPayloadResponse) New() protoreflect.Message { + return new(fastReflection_MsgInsertWorkerPayloadResponse) } // Interface unwraps the message reflection interface and // returns the underlying ProtoMessage interface. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Interface() protoreflect.ProtoMessage { - return (*MsgInsertBulkWorkerPayloadResponse)(x) +func (x *fastReflection_MsgInsertWorkerPayloadResponse) Interface() protoreflect.ProtoMessage { + return (*MsgInsertWorkerPayloadResponse)(x) } // Range iterates over every populated field in an undefined order, @@ -10546,7 +10400,7 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Interface() protoref // Range returns immediately if f returns false. // While iterating, mutating operations may only be performed // on the current field descriptor. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { +func (x *fastReflection_MsgInsertWorkerPayloadResponse) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { } // Has reports whether a field is populated. @@ -10560,13 +10414,13 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Range(f func(protore // In other cases (aside from the nullable cases above), // a proto3 scalar field is populated if it contains a non-zero value, and // a repeated field is populated if it is non-empty. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Has(fd protoreflect.FieldDescriptor) bool { +func (x *fastReflection_MsgInsertWorkerPayloadResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkWorkerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertWorkerPayloadResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkWorkerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertWorkerPayloadResponse does not contain field %s", fd.FullName())) } } @@ -10576,13 +10430,13 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Has(fd protoreflect. // associated with the given field number. // // Clear is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Clear(fd protoreflect.FieldDescriptor) { +func (x *fastReflection_MsgInsertWorkerPayloadResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkWorkerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertWorkerPayloadResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkWorkerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertWorkerPayloadResponse does not contain field %s", fd.FullName())) } } @@ -10592,13 +10446,13 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Clear(fd protoreflec // the default value of a bytes scalar is guaranteed to be a copy. // For unpopulated composite types, it returns an empty, read-only view // of the value; to obtain a mutable reference, use Mutable. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgInsertWorkerPayloadResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkWorkerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertWorkerPayloadResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkWorkerPayloadResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertWorkerPayloadResponse does not contain field %s", descriptor.FullName())) } } @@ -10612,13 +10466,13 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Get(descriptor proto // empty, read-only value, then it panics. // // Set is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { +func (x *fastReflection_MsgInsertWorkerPayloadResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkWorkerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertWorkerPayloadResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkWorkerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertWorkerPayloadResponse does not contain field %s", fd.FullName())) } } @@ -10632,36 +10486,36 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Set(fd protoreflect. // It panics if the field does not contain a composite type. // // Mutable is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgInsertWorkerPayloadResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkWorkerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertWorkerPayloadResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkWorkerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertWorkerPayloadResponse does not contain field %s", fd.FullName())) } } // NewField returns a new value that is assignable to the field // for the given descriptor. For scalars, this returns the default value. // For lists, maps, and messages, this returns a new, empty, mutable value. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { +func (x *fastReflection_MsgInsertWorkerPayloadResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgInsertBulkWorkerPayloadResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgInsertWorkerPayloadResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgInsertBulkWorkerPayloadResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgInsertWorkerPayloadResponse does not contain field %s", fd.FullName())) } } // WhichOneof reports which field within the oneof is populated, // returning nil if none are populated. // It panics if the oneof descriptor does not belong to this message. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { +func (x *fastReflection_MsgInsertWorkerPayloadResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgInsertBulkWorkerPayloadResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgInsertWorkerPayloadResponse", d.FullName())) } panic("unreachable") } @@ -10669,7 +10523,7 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) WhichOneof(d protore // GetUnknown retrieves the entire list of unknown fields. // The caller may only mutate the contents of the RawFields // if the mutated bytes are stored back into the message with SetUnknown. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) GetUnknown() protoreflect.RawFields { +func (x *fastReflection_MsgInsertWorkerPayloadResponse) GetUnknown() protoreflect.RawFields { return x.unknownFields } @@ -10680,7 +10534,7 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) GetUnknown() protore // An empty RawFields may be passed to clear the fields. // // SetUnknown is a mutating operation and unsafe for concurrent use. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) SetUnknown(fields protoreflect.RawFields) { +func (x *fastReflection_MsgInsertWorkerPayloadResponse) SetUnknown(fields protoreflect.RawFields) { x.unknownFields = fields } @@ -10692,7 +10546,7 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) SetUnknown(fields pr // message type, but the details are implementation dependent. // Validity is not part of the protobuf data model, and may not // be preserved in marshaling or other operations. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) IsValid() bool { +func (x *fastReflection_MsgInsertWorkerPayloadResponse) IsValid() bool { return x != nil } @@ -10702,9 +10556,9 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) IsValid() bool { // The returned methods type is identical to // "google.golang.org/protobuf/runtime/protoiface".Methods. // Consult the protoiface package documentation for details. -func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) ProtoMethods() *protoiface.Methods { +func (x *fastReflection_MsgInsertWorkerPayloadResponse) ProtoMethods() *protoiface.Methods { size := func(input protoiface.SizeInput) protoiface.SizeOutput { - x := input.Message.Interface().(*MsgInsertBulkWorkerPayloadResponse) + x := input.Message.Interface().(*MsgInsertWorkerPayloadResponse) if x == nil { return protoiface.SizeOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10726,7 +10580,7 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) ProtoMethods() *prot } marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) { - x := input.Message.Interface().(*MsgInsertBulkWorkerPayloadResponse) + x := input.Message.Interface().(*MsgInsertWorkerPayloadResponse) if x == nil { return protoiface.MarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10756,7 +10610,7 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) ProtoMethods() *prot }, nil } unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) { - x := input.Message.Interface().(*MsgInsertBulkWorkerPayloadResponse) + x := input.Message.Interface().(*MsgInsertWorkerPayloadResponse) if x == nil { return protoiface.UnmarshalOutput{ NoUnkeyedLiterals: input.NoUnkeyedLiterals, @@ -10788,10 +10642,10 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) ProtoMethods() *prot fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertBulkWorkerPayloadResponse: wiretype end group for non-group") + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertWorkerPayloadResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertBulkWorkerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: MsgInsertWorkerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -10830,21 +10684,17 @@ func (x *fastReflection_MsgInsertBulkWorkerPayloadResponse) ProtoMethods() *prot } var ( - md_MsgRegister protoreflect.MessageDescriptor - fd_MsgRegister_sender protoreflect.FieldDescriptor - fd_MsgRegister_lib_p2p_key protoreflect.FieldDescriptor - fd_MsgRegister_multi_address protoreflect.FieldDescriptor - fd_MsgRegister_topic_id protoreflect.FieldDescriptor - fd_MsgRegister_owner protoreflect.FieldDescriptor - fd_MsgRegister_is_reputer protoreflect.FieldDescriptor + md_MsgRegister protoreflect.MessageDescriptor + fd_MsgRegister_sender protoreflect.FieldDescriptor + fd_MsgRegister_topic_id protoreflect.FieldDescriptor + fd_MsgRegister_owner protoreflect.FieldDescriptor + fd_MsgRegister_is_reputer protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgRegister = File_emissions_v1_tx_proto.Messages().ByName("MsgRegister") + file_emissions_v2_tx_proto_init() + md_MsgRegister = File_emissions_v2_tx_proto.Messages().ByName("MsgRegister") fd_MsgRegister_sender = md_MsgRegister.Fields().ByName("sender") - fd_MsgRegister_lib_p2p_key = md_MsgRegister.Fields().ByName("lib_p2p_key") - fd_MsgRegister_multi_address = md_MsgRegister.Fields().ByName("multi_address") fd_MsgRegister_topic_id = md_MsgRegister.Fields().ByName("topic_id") fd_MsgRegister_owner = md_MsgRegister.Fields().ByName("owner") fd_MsgRegister_is_reputer = md_MsgRegister.Fields().ByName("is_reputer") @@ -10859,7 +10709,7 @@ func (x *MsgRegister) ProtoReflect() protoreflect.Message { } func (x *MsgRegister) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[9] + mi := &file_emissions_v2_tx_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -10921,18 +10771,6 @@ func (x *fastReflection_MsgRegister) Range(f func(protoreflect.FieldDescriptor, return } } - if x.LibP2PKey != "" { - value := protoreflect.ValueOfString(x.LibP2PKey) - if !f(fd_MsgRegister_lib_p2p_key, value) { - return - } - } - if x.MultiAddress != "" { - value := protoreflect.ValueOfString(x.MultiAddress) - if !f(fd_MsgRegister_multi_address, value) { - return - } - } if x.TopicId != uint64(0) { value := protoreflect.ValueOfUint64(x.TopicId) if !f(fd_MsgRegister_topic_id, value) { @@ -10966,23 +10804,19 @@ func (x *fastReflection_MsgRegister) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgRegister) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgRegister.sender": + case "emissions.v2.MsgRegister.sender": return x.Sender != "" - case "emissions.v1.MsgRegister.lib_p2p_key": - return x.LibP2PKey != "" - case "emissions.v1.MsgRegister.multi_address": - return x.MultiAddress != "" - case "emissions.v1.MsgRegister.topic_id": + case "emissions.v2.MsgRegister.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.MsgRegister.owner": + case "emissions.v2.MsgRegister.owner": return x.Owner != "" - case "emissions.v1.MsgRegister.is_reputer": + case "emissions.v2.MsgRegister.is_reputer": return x.IsReputer != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRegister")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRegister")) } - panic(fmt.Errorf("message emissions.v1.MsgRegister does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRegister does not contain field %s", fd.FullName())) } } @@ -10994,23 +10828,19 @@ func (x *fastReflection_MsgRegister) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegister) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgRegister.sender": + case "emissions.v2.MsgRegister.sender": x.Sender = "" - case "emissions.v1.MsgRegister.lib_p2p_key": - x.LibP2PKey = "" - case "emissions.v1.MsgRegister.multi_address": - x.MultiAddress = "" - case "emissions.v1.MsgRegister.topic_id": + case "emissions.v2.MsgRegister.topic_id": x.TopicId = uint64(0) - case "emissions.v1.MsgRegister.owner": + case "emissions.v2.MsgRegister.owner": x.Owner = "" - case "emissions.v1.MsgRegister.is_reputer": + case "emissions.v2.MsgRegister.is_reputer": x.IsReputer = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRegister")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRegister")) } - panic(fmt.Errorf("message emissions.v1.MsgRegister does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRegister does not contain field %s", fd.FullName())) } } @@ -11022,29 +10852,23 @@ func (x *fastReflection_MsgRegister) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgRegister) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgRegister.sender": + case "emissions.v2.MsgRegister.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgRegister.lib_p2p_key": - value := x.LibP2PKey - return protoreflect.ValueOfString(value) - case "emissions.v1.MsgRegister.multi_address": - value := x.MultiAddress - return protoreflect.ValueOfString(value) - case "emissions.v1.MsgRegister.topic_id": + case "emissions.v2.MsgRegister.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.MsgRegister.owner": + case "emissions.v2.MsgRegister.owner": value := x.Owner return protoreflect.ValueOfString(value) - case "emissions.v1.MsgRegister.is_reputer": + case "emissions.v2.MsgRegister.is_reputer": value := x.IsReputer return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRegister")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRegister")) } - panic(fmt.Errorf("message emissions.v1.MsgRegister does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRegister does not contain field %s", descriptor.FullName())) } } @@ -11060,23 +10884,19 @@ func (x *fastReflection_MsgRegister) Get(descriptor protoreflect.FieldDescriptor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegister) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgRegister.sender": + case "emissions.v2.MsgRegister.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgRegister.lib_p2p_key": - x.LibP2PKey = value.Interface().(string) - case "emissions.v1.MsgRegister.multi_address": - x.MultiAddress = value.Interface().(string) - case "emissions.v1.MsgRegister.topic_id": + case "emissions.v2.MsgRegister.topic_id": x.TopicId = value.Uint() - case "emissions.v1.MsgRegister.owner": + case "emissions.v2.MsgRegister.owner": x.Owner = value.Interface().(string) - case "emissions.v1.MsgRegister.is_reputer": + case "emissions.v2.MsgRegister.is_reputer": x.IsReputer = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRegister")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRegister")) } - panic(fmt.Errorf("message emissions.v1.MsgRegister does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRegister does not contain field %s", fd.FullName())) } } @@ -11092,23 +10912,19 @@ func (x *fastReflection_MsgRegister) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegister) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRegister.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgRegister is not mutable")) - case "emissions.v1.MsgRegister.lib_p2p_key": - panic(fmt.Errorf("field lib_p2p_key of message emissions.v1.MsgRegister is not mutable")) - case "emissions.v1.MsgRegister.multi_address": - panic(fmt.Errorf("field multi_address of message emissions.v1.MsgRegister is not mutable")) - case "emissions.v1.MsgRegister.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.MsgRegister is not mutable")) - case "emissions.v1.MsgRegister.owner": - panic(fmt.Errorf("field owner of message emissions.v1.MsgRegister is not mutable")) - case "emissions.v1.MsgRegister.is_reputer": - panic(fmt.Errorf("field is_reputer of message emissions.v1.MsgRegister is not mutable")) + case "emissions.v2.MsgRegister.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgRegister is not mutable")) + case "emissions.v2.MsgRegister.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.MsgRegister is not mutable")) + case "emissions.v2.MsgRegister.owner": + panic(fmt.Errorf("field owner of message emissions.v2.MsgRegister is not mutable")) + case "emissions.v2.MsgRegister.is_reputer": + panic(fmt.Errorf("field is_reputer of message emissions.v2.MsgRegister is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRegister")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRegister")) } - panic(fmt.Errorf("message emissions.v1.MsgRegister does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRegister does not contain field %s", fd.FullName())) } } @@ -11117,23 +10933,19 @@ func (x *fastReflection_MsgRegister) Mutable(fd protoreflect.FieldDescriptor) pr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgRegister) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRegister.sender": - return protoreflect.ValueOfString("") - case "emissions.v1.MsgRegister.lib_p2p_key": - return protoreflect.ValueOfString("") - case "emissions.v1.MsgRegister.multi_address": + case "emissions.v2.MsgRegister.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgRegister.topic_id": + case "emissions.v2.MsgRegister.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.MsgRegister.owner": + case "emissions.v2.MsgRegister.owner": return protoreflect.ValueOfString("") - case "emissions.v1.MsgRegister.is_reputer": + case "emissions.v2.MsgRegister.is_reputer": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRegister")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRegister")) } - panic(fmt.Errorf("message emissions.v1.MsgRegister does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRegister does not contain field %s", fd.FullName())) } } @@ -11143,7 +10955,7 @@ func (x *fastReflection_MsgRegister) NewField(fd protoreflect.FieldDescriptor) p func (x *fastReflection_MsgRegister) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgRegister", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgRegister", d.FullName())) } panic("unreachable") } @@ -11202,14 +11014,6 @@ func (x *fastReflection_MsgRegister) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } - l = len(x.LibP2PKey) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } - l = len(x.MultiAddress) - if l > 0 { - n += 1 + l + runtime.Sov(uint64(l)) - } if x.TopicId != 0 { n += 1 + runtime.Sov(uint64(x.TopicId)) } @@ -11271,20 +11075,6 @@ func (x *fastReflection_MsgRegister) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x20 } - if len(x.MultiAddress) > 0 { - i -= len(x.MultiAddress) - copy(dAtA[i:], x.MultiAddress) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MultiAddress))) - i-- - dAtA[i] = 0x1a - } - if len(x.LibP2PKey) > 0 { - i -= len(x.LibP2PKey) - copy(dAtA[i:], x.LibP2PKey) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.LibP2PKey))) - i-- - dAtA[i] = 0x12 - } if len(x.Sender) > 0 { i -= len(x.Sender) copy(dAtA[i:], x.Sender) @@ -11373,70 +11163,6 @@ func (x *fastReflection_MsgRegister) ProtoMethods() *protoiface.Methods { } x.Sender = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field LibP2PKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.LibP2PKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MultiAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow - } - if iNdEx >= l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength - } - if postIndex > l { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF - } - x.MultiAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 4: if wireType != 0 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) @@ -11550,8 +11276,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgRegisterResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgRegisterResponse") + file_emissions_v2_tx_proto_init() + md_MsgRegisterResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgRegisterResponse") fd_MsgRegisterResponse_success = md_MsgRegisterResponse.Fields().ByName("success") fd_MsgRegisterResponse_message = md_MsgRegisterResponse.Fields().ByName("message") } @@ -11565,7 +11291,7 @@ func (x *MsgRegisterResponse) ProtoReflect() protoreflect.Message { } func (x *MsgRegisterResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[10] + mi := &file_emissions_v2_tx_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -11648,15 +11374,15 @@ func (x *fastReflection_MsgRegisterResponse) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgRegisterResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgRegisterResponse.success": + case "emissions.v2.MsgRegisterResponse.success": return x.Success != false - case "emissions.v1.MsgRegisterResponse.message": + case "emissions.v2.MsgRegisterResponse.message": return x.Message != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRegisterResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRegisterResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRegisterResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRegisterResponse does not contain field %s", fd.FullName())) } } @@ -11668,15 +11394,15 @@ func (x *fastReflection_MsgRegisterResponse) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgRegisterResponse.success": + case "emissions.v2.MsgRegisterResponse.success": x.Success = false - case "emissions.v1.MsgRegisterResponse.message": + case "emissions.v2.MsgRegisterResponse.message": x.Message = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRegisterResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRegisterResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRegisterResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRegisterResponse does not contain field %s", fd.FullName())) } } @@ -11688,17 +11414,17 @@ func (x *fastReflection_MsgRegisterResponse) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgRegisterResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgRegisterResponse.success": + case "emissions.v2.MsgRegisterResponse.success": value := x.Success return protoreflect.ValueOfBool(value) - case "emissions.v1.MsgRegisterResponse.message": + case "emissions.v2.MsgRegisterResponse.message": value := x.Message return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRegisterResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRegisterResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRegisterResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRegisterResponse does not contain field %s", descriptor.FullName())) } } @@ -11714,15 +11440,15 @@ func (x *fastReflection_MsgRegisterResponse) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgRegisterResponse.success": + case "emissions.v2.MsgRegisterResponse.success": x.Success = value.Bool() - case "emissions.v1.MsgRegisterResponse.message": + case "emissions.v2.MsgRegisterResponse.message": x.Message = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRegisterResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRegisterResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRegisterResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRegisterResponse does not contain field %s", fd.FullName())) } } @@ -11738,15 +11464,15 @@ func (x *fastReflection_MsgRegisterResponse) Set(fd protoreflect.FieldDescriptor // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRegisterResponse.success": - panic(fmt.Errorf("field success of message emissions.v1.MsgRegisterResponse is not mutable")) - case "emissions.v1.MsgRegisterResponse.message": - panic(fmt.Errorf("field message of message emissions.v1.MsgRegisterResponse is not mutable")) + case "emissions.v2.MsgRegisterResponse.success": + panic(fmt.Errorf("field success of message emissions.v2.MsgRegisterResponse is not mutable")) + case "emissions.v2.MsgRegisterResponse.message": + panic(fmt.Errorf("field message of message emissions.v2.MsgRegisterResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRegisterResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRegisterResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRegisterResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRegisterResponse does not contain field %s", fd.FullName())) } } @@ -11755,15 +11481,15 @@ func (x *fastReflection_MsgRegisterResponse) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgRegisterResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRegisterResponse.success": + case "emissions.v2.MsgRegisterResponse.success": return protoreflect.ValueOfBool(false) - case "emissions.v1.MsgRegisterResponse.message": + case "emissions.v2.MsgRegisterResponse.message": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRegisterResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRegisterResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRegisterResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRegisterResponse does not contain field %s", fd.FullName())) } } @@ -11773,7 +11499,7 @@ func (x *fastReflection_MsgRegisterResponse) NewField(fd protoreflect.FieldDescr func (x *fastReflection_MsgRegisterResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgRegisterResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgRegisterResponse", d.FullName())) } panic("unreachable") } @@ -12025,8 +11751,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgRemoveRegistration = File_emissions_v1_tx_proto.Messages().ByName("MsgRemoveRegistration") + file_emissions_v2_tx_proto_init() + md_MsgRemoveRegistration = File_emissions_v2_tx_proto.Messages().ByName("MsgRemoveRegistration") fd_MsgRemoveRegistration_sender = md_MsgRemoveRegistration.Fields().ByName("sender") fd_MsgRemoveRegistration_topic_id = md_MsgRemoveRegistration.Fields().ByName("topic_id") fd_MsgRemoveRegistration_is_reputer = md_MsgRemoveRegistration.Fields().ByName("is_reputer") @@ -12041,7 +11767,7 @@ func (x *MsgRemoveRegistration) ProtoReflect() protoreflect.Message { } func (x *MsgRemoveRegistration) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[11] + mi := &file_emissions_v2_tx_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12130,17 +11856,17 @@ func (x *fastReflection_MsgRemoveRegistration) Range(f func(protoreflect.FieldDe // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgRemoveRegistration) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgRemoveRegistration.sender": + case "emissions.v2.MsgRemoveRegistration.sender": return x.Sender != "" - case "emissions.v1.MsgRemoveRegistration.topic_id": + case "emissions.v2.MsgRemoveRegistration.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.MsgRemoveRegistration.is_reputer": + case "emissions.v2.MsgRemoveRegistration.is_reputer": return x.IsReputer != false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveRegistration")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveRegistration")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveRegistration does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveRegistration does not contain field %s", fd.FullName())) } } @@ -12152,17 +11878,17 @@ func (x *fastReflection_MsgRemoveRegistration) Has(fd protoreflect.FieldDescript // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveRegistration) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgRemoveRegistration.sender": + case "emissions.v2.MsgRemoveRegistration.sender": x.Sender = "" - case "emissions.v1.MsgRemoveRegistration.topic_id": + case "emissions.v2.MsgRemoveRegistration.topic_id": x.TopicId = uint64(0) - case "emissions.v1.MsgRemoveRegistration.is_reputer": + case "emissions.v2.MsgRemoveRegistration.is_reputer": x.IsReputer = false default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveRegistration")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveRegistration")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveRegistration does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveRegistration does not contain field %s", fd.FullName())) } } @@ -12174,20 +11900,20 @@ func (x *fastReflection_MsgRemoveRegistration) Clear(fd protoreflect.FieldDescri // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgRemoveRegistration) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgRemoveRegistration.sender": + case "emissions.v2.MsgRemoveRegistration.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgRemoveRegistration.topic_id": + case "emissions.v2.MsgRemoveRegistration.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.MsgRemoveRegistration.is_reputer": + case "emissions.v2.MsgRemoveRegistration.is_reputer": value := x.IsReputer return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveRegistration")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveRegistration")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveRegistration does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveRegistration does not contain field %s", descriptor.FullName())) } } @@ -12203,17 +11929,17 @@ func (x *fastReflection_MsgRemoveRegistration) Get(descriptor protoreflect.Field // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveRegistration) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgRemoveRegistration.sender": + case "emissions.v2.MsgRemoveRegistration.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgRemoveRegistration.topic_id": + case "emissions.v2.MsgRemoveRegistration.topic_id": x.TopicId = value.Uint() - case "emissions.v1.MsgRemoveRegistration.is_reputer": + case "emissions.v2.MsgRemoveRegistration.is_reputer": x.IsReputer = value.Bool() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveRegistration")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveRegistration")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveRegistration does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveRegistration does not contain field %s", fd.FullName())) } } @@ -12229,17 +11955,17 @@ func (x *fastReflection_MsgRemoveRegistration) Set(fd protoreflect.FieldDescript // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveRegistration) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRemoveRegistration.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgRemoveRegistration is not mutable")) - case "emissions.v1.MsgRemoveRegistration.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.MsgRemoveRegistration is not mutable")) - case "emissions.v1.MsgRemoveRegistration.is_reputer": - panic(fmt.Errorf("field is_reputer of message emissions.v1.MsgRemoveRegistration is not mutable")) + case "emissions.v2.MsgRemoveRegistration.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgRemoveRegistration is not mutable")) + case "emissions.v2.MsgRemoveRegistration.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.MsgRemoveRegistration is not mutable")) + case "emissions.v2.MsgRemoveRegistration.is_reputer": + panic(fmt.Errorf("field is_reputer of message emissions.v2.MsgRemoveRegistration is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveRegistration")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveRegistration")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveRegistration does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveRegistration does not contain field %s", fd.FullName())) } } @@ -12248,17 +11974,17 @@ func (x *fastReflection_MsgRemoveRegistration) Mutable(fd protoreflect.FieldDesc // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgRemoveRegistration) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRemoveRegistration.sender": + case "emissions.v2.MsgRemoveRegistration.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgRemoveRegistration.topic_id": + case "emissions.v2.MsgRemoveRegistration.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.MsgRemoveRegistration.is_reputer": + case "emissions.v2.MsgRemoveRegistration.is_reputer": return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveRegistration")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveRegistration")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveRegistration does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveRegistration does not contain field %s", fd.FullName())) } } @@ -12268,7 +11994,7 @@ func (x *fastReflection_MsgRemoveRegistration) NewField(fd protoreflect.FieldDes func (x *fastReflection_MsgRemoveRegistration) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgRemoveRegistration", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgRemoveRegistration", d.FullName())) } panic("unreachable") } @@ -12546,8 +12272,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgRemoveRegistrationResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgRemoveRegistrationResponse") + file_emissions_v2_tx_proto_init() + md_MsgRemoveRegistrationResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgRemoveRegistrationResponse") fd_MsgRemoveRegistrationResponse_success = md_MsgRemoveRegistrationResponse.Fields().ByName("success") fd_MsgRemoveRegistrationResponse_message = md_MsgRemoveRegistrationResponse.Fields().ByName("message") } @@ -12561,7 +12287,7 @@ func (x *MsgRemoveRegistrationResponse) ProtoReflect() protoreflect.Message { } func (x *MsgRemoveRegistrationResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[12] + mi := &file_emissions_v2_tx_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -12644,15 +12370,15 @@ func (x *fastReflection_MsgRemoveRegistrationResponse) Range(f func(protoreflect // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgRemoveRegistrationResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgRemoveRegistrationResponse.success": + case "emissions.v2.MsgRemoveRegistrationResponse.success": return x.Success != false - case "emissions.v1.MsgRemoveRegistrationResponse.message": + case "emissions.v2.MsgRemoveRegistrationResponse.message": return x.Message != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveRegistrationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveRegistrationResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveRegistrationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveRegistrationResponse does not contain field %s", fd.FullName())) } } @@ -12664,15 +12390,15 @@ func (x *fastReflection_MsgRemoveRegistrationResponse) Has(fd protoreflect.Field // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveRegistrationResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgRemoveRegistrationResponse.success": + case "emissions.v2.MsgRemoveRegistrationResponse.success": x.Success = false - case "emissions.v1.MsgRemoveRegistrationResponse.message": + case "emissions.v2.MsgRemoveRegistrationResponse.message": x.Message = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveRegistrationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveRegistrationResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveRegistrationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveRegistrationResponse does not contain field %s", fd.FullName())) } } @@ -12684,17 +12410,17 @@ func (x *fastReflection_MsgRemoveRegistrationResponse) Clear(fd protoreflect.Fie // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgRemoveRegistrationResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgRemoveRegistrationResponse.success": + case "emissions.v2.MsgRemoveRegistrationResponse.success": value := x.Success return protoreflect.ValueOfBool(value) - case "emissions.v1.MsgRemoveRegistrationResponse.message": + case "emissions.v2.MsgRemoveRegistrationResponse.message": value := x.Message return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveRegistrationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveRegistrationResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveRegistrationResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveRegistrationResponse does not contain field %s", descriptor.FullName())) } } @@ -12710,15 +12436,15 @@ func (x *fastReflection_MsgRemoveRegistrationResponse) Get(descriptor protorefle // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveRegistrationResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgRemoveRegistrationResponse.success": + case "emissions.v2.MsgRemoveRegistrationResponse.success": x.Success = value.Bool() - case "emissions.v1.MsgRemoveRegistrationResponse.message": + case "emissions.v2.MsgRemoveRegistrationResponse.message": x.Message = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveRegistrationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveRegistrationResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveRegistrationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveRegistrationResponse does not contain field %s", fd.FullName())) } } @@ -12734,15 +12460,15 @@ func (x *fastReflection_MsgRemoveRegistrationResponse) Set(fd protoreflect.Field // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveRegistrationResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRemoveRegistrationResponse.success": - panic(fmt.Errorf("field success of message emissions.v1.MsgRemoveRegistrationResponse is not mutable")) - case "emissions.v1.MsgRemoveRegistrationResponse.message": - panic(fmt.Errorf("field message of message emissions.v1.MsgRemoveRegistrationResponse is not mutable")) + case "emissions.v2.MsgRemoveRegistrationResponse.success": + panic(fmt.Errorf("field success of message emissions.v2.MsgRemoveRegistrationResponse is not mutable")) + case "emissions.v2.MsgRemoveRegistrationResponse.message": + panic(fmt.Errorf("field message of message emissions.v2.MsgRemoveRegistrationResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveRegistrationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveRegistrationResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveRegistrationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveRegistrationResponse does not contain field %s", fd.FullName())) } } @@ -12751,15 +12477,15 @@ func (x *fastReflection_MsgRemoveRegistrationResponse) Mutable(fd protoreflect.F // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgRemoveRegistrationResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRemoveRegistrationResponse.success": + case "emissions.v2.MsgRemoveRegistrationResponse.success": return protoreflect.ValueOfBool(false) - case "emissions.v1.MsgRemoveRegistrationResponse.message": + case "emissions.v2.MsgRemoveRegistrationResponse.message": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveRegistrationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveRegistrationResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveRegistrationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveRegistrationResponse does not contain field %s", fd.FullName())) } } @@ -12769,7 +12495,7 @@ func (x *fastReflection_MsgRemoveRegistrationResponse) NewField(fd protoreflect. func (x *fastReflection_MsgRemoveRegistrationResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgRemoveRegistrationResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgRemoveRegistrationResponse", d.FullName())) } panic("unreachable") } @@ -13021,8 +12747,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgAddStake = File_emissions_v1_tx_proto.Messages().ByName("MsgAddStake") + file_emissions_v2_tx_proto_init() + md_MsgAddStake = File_emissions_v2_tx_proto.Messages().ByName("MsgAddStake") fd_MsgAddStake_sender = md_MsgAddStake.Fields().ByName("sender") fd_MsgAddStake_topic_id = md_MsgAddStake.Fields().ByName("topic_id") fd_MsgAddStake_amount = md_MsgAddStake.Fields().ByName("amount") @@ -13037,7 +12763,7 @@ func (x *MsgAddStake) ProtoReflect() protoreflect.Message { } func (x *MsgAddStake) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[13] + mi := &file_emissions_v2_tx_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13126,17 +12852,17 @@ func (x *fastReflection_MsgAddStake) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgAddStake) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgAddStake.sender": + case "emissions.v2.MsgAddStake.sender": return x.Sender != "" - case "emissions.v1.MsgAddStake.topic_id": + case "emissions.v2.MsgAddStake.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.MsgAddStake.amount": + case "emissions.v2.MsgAddStake.amount": return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddStake")) } - panic(fmt.Errorf("message emissions.v1.MsgAddStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddStake does not contain field %s", fd.FullName())) } } @@ -13148,17 +12874,17 @@ func (x *fastReflection_MsgAddStake) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgAddStake) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgAddStake.sender": + case "emissions.v2.MsgAddStake.sender": x.Sender = "" - case "emissions.v1.MsgAddStake.topic_id": + case "emissions.v2.MsgAddStake.topic_id": x.TopicId = uint64(0) - case "emissions.v1.MsgAddStake.amount": + case "emissions.v2.MsgAddStake.amount": x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddStake")) } - panic(fmt.Errorf("message emissions.v1.MsgAddStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddStake does not contain field %s", fd.FullName())) } } @@ -13170,20 +12896,20 @@ func (x *fastReflection_MsgAddStake) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgAddStake) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgAddStake.sender": + case "emissions.v2.MsgAddStake.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgAddStake.topic_id": + case "emissions.v2.MsgAddStake.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.MsgAddStake.amount": + case "emissions.v2.MsgAddStake.amount": value := x.Amount return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddStake")) } - panic(fmt.Errorf("message emissions.v1.MsgAddStake does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddStake does not contain field %s", descriptor.FullName())) } } @@ -13199,17 +12925,17 @@ func (x *fastReflection_MsgAddStake) Get(descriptor protoreflect.FieldDescriptor // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgAddStake) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgAddStake.sender": + case "emissions.v2.MsgAddStake.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgAddStake.topic_id": + case "emissions.v2.MsgAddStake.topic_id": x.TopicId = value.Uint() - case "emissions.v1.MsgAddStake.amount": + case "emissions.v2.MsgAddStake.amount": x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddStake")) } - panic(fmt.Errorf("message emissions.v1.MsgAddStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddStake does not contain field %s", fd.FullName())) } } @@ -13225,17 +12951,17 @@ func (x *fastReflection_MsgAddStake) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgAddStake) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgAddStake.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgAddStake is not mutable")) - case "emissions.v1.MsgAddStake.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.MsgAddStake is not mutable")) - case "emissions.v1.MsgAddStake.amount": - panic(fmt.Errorf("field amount of message emissions.v1.MsgAddStake is not mutable")) + case "emissions.v2.MsgAddStake.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgAddStake is not mutable")) + case "emissions.v2.MsgAddStake.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.MsgAddStake is not mutable")) + case "emissions.v2.MsgAddStake.amount": + panic(fmt.Errorf("field amount of message emissions.v2.MsgAddStake is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddStake")) } - panic(fmt.Errorf("message emissions.v1.MsgAddStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddStake does not contain field %s", fd.FullName())) } } @@ -13244,17 +12970,17 @@ func (x *fastReflection_MsgAddStake) Mutable(fd protoreflect.FieldDescriptor) pr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgAddStake) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgAddStake.sender": + case "emissions.v2.MsgAddStake.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgAddStake.topic_id": + case "emissions.v2.MsgAddStake.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.MsgAddStake.amount": + case "emissions.v2.MsgAddStake.amount": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddStake")) } - panic(fmt.Errorf("message emissions.v1.MsgAddStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddStake does not contain field %s", fd.FullName())) } } @@ -13264,7 +12990,7 @@ func (x *fastReflection_MsgAddStake) NewField(fd protoreflect.FieldDescriptor) p func (x *fastReflection_MsgAddStake) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgAddStake", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgAddStake", d.FullName())) } panic("unreachable") } @@ -13550,8 +13276,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgAddStakeResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgAddStakeResponse") + file_emissions_v2_tx_proto_init() + md_MsgAddStakeResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgAddStakeResponse") } var _ protoreflect.Message = (*fastReflection_MsgAddStakeResponse)(nil) @@ -13563,7 +13289,7 @@ func (x *MsgAddStakeResponse) ProtoReflect() protoreflect.Message { } func (x *MsgAddStakeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[14] + mi := &file_emissions_v2_tx_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -13636,9 +13362,9 @@ func (x *fastReflection_MsgAddStakeResponse) Has(fd protoreflect.FieldDescriptor switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgAddStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddStakeResponse does not contain field %s", fd.FullName())) } } @@ -13652,9 +13378,9 @@ func (x *fastReflection_MsgAddStakeResponse) Clear(fd protoreflect.FieldDescript switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgAddStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddStakeResponse does not contain field %s", fd.FullName())) } } @@ -13668,9 +13394,9 @@ func (x *fastReflection_MsgAddStakeResponse) Get(descriptor protoreflect.FieldDe switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgAddStakeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddStakeResponse does not contain field %s", descriptor.FullName())) } } @@ -13688,9 +13414,9 @@ func (x *fastReflection_MsgAddStakeResponse) Set(fd protoreflect.FieldDescriptor switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgAddStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddStakeResponse does not contain field %s", fd.FullName())) } } @@ -13708,9 +13434,9 @@ func (x *fastReflection_MsgAddStakeResponse) Mutable(fd protoreflect.FieldDescri switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgAddStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddStakeResponse does not contain field %s", fd.FullName())) } } @@ -13721,9 +13447,9 @@ func (x *fastReflection_MsgAddStakeResponse) NewField(fd protoreflect.FieldDescr switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgAddStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddStakeResponse does not contain field %s", fd.FullName())) } } @@ -13733,7 +13459,7 @@ func (x *fastReflection_MsgAddStakeResponse) NewField(fd protoreflect.FieldDescr func (x *fastReflection_MsgAddStakeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgAddStakeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgAddStakeResponse", d.FullName())) } panic("unreachable") } @@ -13909,8 +13635,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgRemoveStake = File_emissions_v1_tx_proto.Messages().ByName("MsgRemoveStake") + file_emissions_v2_tx_proto_init() + md_MsgRemoveStake = File_emissions_v2_tx_proto.Messages().ByName("MsgRemoveStake") fd_MsgRemoveStake_sender = md_MsgRemoveStake.Fields().ByName("sender") fd_MsgRemoveStake_topic_id = md_MsgRemoveStake.Fields().ByName("topic_id") fd_MsgRemoveStake_amount = md_MsgRemoveStake.Fields().ByName("amount") @@ -13925,7 +13651,7 @@ func (x *MsgRemoveStake) ProtoReflect() protoreflect.Message { } func (x *MsgRemoveStake) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[15] + mi := &file_emissions_v2_tx_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14014,17 +13740,17 @@ func (x *fastReflection_MsgRemoveStake) Range(f func(protoreflect.FieldDescripto // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgRemoveStake) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgRemoveStake.sender": + case "emissions.v2.MsgRemoveStake.sender": return x.Sender != "" - case "emissions.v1.MsgRemoveStake.topic_id": + case "emissions.v2.MsgRemoveStake.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.MsgRemoveStake.amount": + case "emissions.v2.MsgRemoveStake.amount": return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveStake does not contain field %s", fd.FullName())) } } @@ -14036,17 +13762,17 @@ func (x *fastReflection_MsgRemoveStake) Has(fd protoreflect.FieldDescriptor) boo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveStake) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgRemoveStake.sender": + case "emissions.v2.MsgRemoveStake.sender": x.Sender = "" - case "emissions.v1.MsgRemoveStake.topic_id": + case "emissions.v2.MsgRemoveStake.topic_id": x.TopicId = uint64(0) - case "emissions.v1.MsgRemoveStake.amount": + case "emissions.v2.MsgRemoveStake.amount": x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveStake does not contain field %s", fd.FullName())) } } @@ -14058,20 +13784,20 @@ func (x *fastReflection_MsgRemoveStake) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgRemoveStake) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgRemoveStake.sender": + case "emissions.v2.MsgRemoveStake.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgRemoveStake.topic_id": + case "emissions.v2.MsgRemoveStake.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.MsgRemoveStake.amount": + case "emissions.v2.MsgRemoveStake.amount": value := x.Amount return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveStake does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveStake does not contain field %s", descriptor.FullName())) } } @@ -14087,17 +13813,17 @@ func (x *fastReflection_MsgRemoveStake) Get(descriptor protoreflect.FieldDescrip // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveStake) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgRemoveStake.sender": + case "emissions.v2.MsgRemoveStake.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgRemoveStake.topic_id": + case "emissions.v2.MsgRemoveStake.topic_id": x.TopicId = value.Uint() - case "emissions.v1.MsgRemoveStake.amount": + case "emissions.v2.MsgRemoveStake.amount": x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveStake does not contain field %s", fd.FullName())) } } @@ -14113,17 +13839,17 @@ func (x *fastReflection_MsgRemoveStake) Set(fd protoreflect.FieldDescriptor, val // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveStake) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRemoveStake.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgRemoveStake is not mutable")) - case "emissions.v1.MsgRemoveStake.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.MsgRemoveStake is not mutable")) - case "emissions.v1.MsgRemoveStake.amount": - panic(fmt.Errorf("field amount of message emissions.v1.MsgRemoveStake is not mutable")) + case "emissions.v2.MsgRemoveStake.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgRemoveStake is not mutable")) + case "emissions.v2.MsgRemoveStake.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.MsgRemoveStake is not mutable")) + case "emissions.v2.MsgRemoveStake.amount": + panic(fmt.Errorf("field amount of message emissions.v2.MsgRemoveStake is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveStake does not contain field %s", fd.FullName())) } } @@ -14132,17 +13858,17 @@ func (x *fastReflection_MsgRemoveStake) Mutable(fd protoreflect.FieldDescriptor) // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgRemoveStake) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRemoveStake.sender": + case "emissions.v2.MsgRemoveStake.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgRemoveStake.topic_id": + case "emissions.v2.MsgRemoveStake.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.MsgRemoveStake.amount": + case "emissions.v2.MsgRemoveStake.amount": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveStake does not contain field %s", fd.FullName())) } } @@ -14152,7 +13878,7 @@ func (x *fastReflection_MsgRemoveStake) NewField(fd protoreflect.FieldDescriptor func (x *fastReflection_MsgRemoveStake) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgRemoveStake", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgRemoveStake", d.FullName())) } panic("unreachable") } @@ -14438,8 +14164,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgRemoveStakeResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgRemoveStakeResponse") + file_emissions_v2_tx_proto_init() + md_MsgRemoveStakeResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgRemoveStakeResponse") } var _ protoreflect.Message = (*fastReflection_MsgRemoveStakeResponse)(nil) @@ -14451,7 +14177,7 @@ func (x *MsgRemoveStakeResponse) ProtoReflect() protoreflect.Message { } func (x *MsgRemoveStakeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[16] + mi := &file_emissions_v2_tx_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14524,9 +14250,9 @@ func (x *fastReflection_MsgRemoveStakeResponse) Has(fd protoreflect.FieldDescrip switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveStakeResponse does not contain field %s", fd.FullName())) } } @@ -14540,9 +14266,9 @@ func (x *fastReflection_MsgRemoveStakeResponse) Clear(fd protoreflect.FieldDescr switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveStakeResponse does not contain field %s", fd.FullName())) } } @@ -14556,9 +14282,9 @@ func (x *fastReflection_MsgRemoveStakeResponse) Get(descriptor protoreflect.Fiel switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveStakeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveStakeResponse does not contain field %s", descriptor.FullName())) } } @@ -14576,9 +14302,9 @@ func (x *fastReflection_MsgRemoveStakeResponse) Set(fd protoreflect.FieldDescrip switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveStakeResponse does not contain field %s", fd.FullName())) } } @@ -14596,9 +14322,9 @@ func (x *fastReflection_MsgRemoveStakeResponse) Mutable(fd protoreflect.FieldDes switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveStakeResponse does not contain field %s", fd.FullName())) } } @@ -14609,9 +14335,9 @@ func (x *fastReflection_MsgRemoveStakeResponse) NewField(fd protoreflect.FieldDe switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveStakeResponse does not contain field %s", fd.FullName())) } } @@ -14621,7 +14347,7 @@ func (x *fastReflection_MsgRemoveStakeResponse) NewField(fd protoreflect.FieldDe func (x *fastReflection_MsgRemoveStakeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgRemoveStakeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgRemoveStakeResponse", d.FullName())) } panic("unreachable") } @@ -14796,8 +14522,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgCancelRemoveStake = File_emissions_v1_tx_proto.Messages().ByName("MsgCancelRemoveStake") + file_emissions_v2_tx_proto_init() + md_MsgCancelRemoveStake = File_emissions_v2_tx_proto.Messages().ByName("MsgCancelRemoveStake") fd_MsgCancelRemoveStake_sender = md_MsgCancelRemoveStake.Fields().ByName("sender") fd_MsgCancelRemoveStake_topic_id = md_MsgCancelRemoveStake.Fields().ByName("topic_id") } @@ -14811,7 +14537,7 @@ func (x *MsgCancelRemoveStake) ProtoReflect() protoreflect.Message { } func (x *MsgCancelRemoveStake) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[17] + mi := &file_emissions_v2_tx_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -14894,15 +14620,15 @@ func (x *fastReflection_MsgCancelRemoveStake) Range(f func(protoreflect.FieldDes // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgCancelRemoveStake) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgCancelRemoveStake.sender": + case "emissions.v2.MsgCancelRemoveStake.sender": return x.Sender != "" - case "emissions.v1.MsgCancelRemoveStake.topic_id": + case "emissions.v2.MsgCancelRemoveStake.topic_id": return x.TopicId != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveStake")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveStake does not contain field %s", fd.FullName())) } } @@ -14914,15 +14640,15 @@ func (x *fastReflection_MsgCancelRemoveStake) Has(fd protoreflect.FieldDescripto // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCancelRemoveStake) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgCancelRemoveStake.sender": + case "emissions.v2.MsgCancelRemoveStake.sender": x.Sender = "" - case "emissions.v1.MsgCancelRemoveStake.topic_id": + case "emissions.v2.MsgCancelRemoveStake.topic_id": x.TopicId = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveStake")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveStake does not contain field %s", fd.FullName())) } } @@ -14934,17 +14660,17 @@ func (x *fastReflection_MsgCancelRemoveStake) Clear(fd protoreflect.FieldDescrip // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgCancelRemoveStake) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgCancelRemoveStake.sender": + case "emissions.v2.MsgCancelRemoveStake.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgCancelRemoveStake.topic_id": + case "emissions.v2.MsgCancelRemoveStake.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveStake")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveStake does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveStake does not contain field %s", descriptor.FullName())) } } @@ -14960,15 +14686,15 @@ func (x *fastReflection_MsgCancelRemoveStake) Get(descriptor protoreflect.FieldD // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCancelRemoveStake) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgCancelRemoveStake.sender": + case "emissions.v2.MsgCancelRemoveStake.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgCancelRemoveStake.topic_id": + case "emissions.v2.MsgCancelRemoveStake.topic_id": x.TopicId = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveStake")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveStake does not contain field %s", fd.FullName())) } } @@ -14984,15 +14710,15 @@ func (x *fastReflection_MsgCancelRemoveStake) Set(fd protoreflect.FieldDescripto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCancelRemoveStake) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgCancelRemoveStake.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgCancelRemoveStake is not mutable")) - case "emissions.v1.MsgCancelRemoveStake.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.MsgCancelRemoveStake is not mutable")) + case "emissions.v2.MsgCancelRemoveStake.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgCancelRemoveStake is not mutable")) + case "emissions.v2.MsgCancelRemoveStake.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.MsgCancelRemoveStake is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveStake")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveStake does not contain field %s", fd.FullName())) } } @@ -15001,15 +14727,15 @@ func (x *fastReflection_MsgCancelRemoveStake) Mutable(fd protoreflect.FieldDescr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgCancelRemoveStake) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgCancelRemoveStake.sender": + case "emissions.v2.MsgCancelRemoveStake.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgCancelRemoveStake.topic_id": + case "emissions.v2.MsgCancelRemoveStake.topic_id": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveStake")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveStake does not contain field %s", fd.FullName())) } } @@ -15019,7 +14745,7 @@ func (x *fastReflection_MsgCancelRemoveStake) NewField(fd protoreflect.FieldDesc func (x *fastReflection_MsgCancelRemoveStake) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgCancelRemoveStake", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgCancelRemoveStake", d.FullName())) } panic("unreachable") } @@ -15262,8 +14988,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgCancelRemoveStakeResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgCancelRemoveStakeResponse") + file_emissions_v2_tx_proto_init() + md_MsgCancelRemoveStakeResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgCancelRemoveStakeResponse") } var _ protoreflect.Message = (*fastReflection_MsgCancelRemoveStakeResponse)(nil) @@ -15275,7 +15001,7 @@ func (x *MsgCancelRemoveStakeResponse) ProtoReflect() protoreflect.Message { } func (x *MsgCancelRemoveStakeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[18] + mi := &file_emissions_v2_tx_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15348,9 +15074,9 @@ func (x *fastReflection_MsgCancelRemoveStakeResponse) Has(fd protoreflect.FieldD switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveStakeResponse does not contain field %s", fd.FullName())) } } @@ -15364,9 +15090,9 @@ func (x *fastReflection_MsgCancelRemoveStakeResponse) Clear(fd protoreflect.Fiel switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveStakeResponse does not contain field %s", fd.FullName())) } } @@ -15380,9 +15106,9 @@ func (x *fastReflection_MsgCancelRemoveStakeResponse) Get(descriptor protoreflec switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveStakeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveStakeResponse does not contain field %s", descriptor.FullName())) } } @@ -15400,9 +15126,9 @@ func (x *fastReflection_MsgCancelRemoveStakeResponse) Set(fd protoreflect.FieldD switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveStakeResponse does not contain field %s", fd.FullName())) } } @@ -15420,9 +15146,9 @@ func (x *fastReflection_MsgCancelRemoveStakeResponse) Mutable(fd protoreflect.Fi switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveStakeResponse does not contain field %s", fd.FullName())) } } @@ -15433,9 +15159,9 @@ func (x *fastReflection_MsgCancelRemoveStakeResponse) NewField(fd protoreflect.F switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveStakeResponse does not contain field %s", fd.FullName())) } } @@ -15445,7 +15171,7 @@ func (x *fastReflection_MsgCancelRemoveStakeResponse) NewField(fd protoreflect.F func (x *fastReflection_MsgCancelRemoveStakeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgCancelRemoveStakeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgCancelRemoveStakeResponse", d.FullName())) } panic("unreachable") } @@ -15622,8 +15348,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgDelegateStake = File_emissions_v1_tx_proto.Messages().ByName("MsgDelegateStake") + file_emissions_v2_tx_proto_init() + md_MsgDelegateStake = File_emissions_v2_tx_proto.Messages().ByName("MsgDelegateStake") fd_MsgDelegateStake_sender = md_MsgDelegateStake.Fields().ByName("sender") fd_MsgDelegateStake_topic_id = md_MsgDelegateStake.Fields().ByName("topic_id") fd_MsgDelegateStake_reputer = md_MsgDelegateStake.Fields().ByName("reputer") @@ -15639,7 +15365,7 @@ func (x *MsgDelegateStake) ProtoReflect() protoreflect.Message { } func (x *MsgDelegateStake) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[19] + mi := &file_emissions_v2_tx_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -15734,19 +15460,19 @@ func (x *fastReflection_MsgDelegateStake) Range(f func(protoreflect.FieldDescrip // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgDelegateStake) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgDelegateStake.sender": + case "emissions.v2.MsgDelegateStake.sender": return x.Sender != "" - case "emissions.v1.MsgDelegateStake.topic_id": + case "emissions.v2.MsgDelegateStake.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.MsgDelegateStake.reputer": + case "emissions.v2.MsgDelegateStake.reputer": return x.Reputer != "" - case "emissions.v1.MsgDelegateStake.amount": + case "emissions.v2.MsgDelegateStake.amount": return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgDelegateStake does not contain field %s", fd.FullName())) } } @@ -15758,19 +15484,19 @@ func (x *fastReflection_MsgDelegateStake) Has(fd protoreflect.FieldDescriptor) b // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgDelegateStake) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgDelegateStake.sender": + case "emissions.v2.MsgDelegateStake.sender": x.Sender = "" - case "emissions.v1.MsgDelegateStake.topic_id": + case "emissions.v2.MsgDelegateStake.topic_id": x.TopicId = uint64(0) - case "emissions.v1.MsgDelegateStake.reputer": + case "emissions.v2.MsgDelegateStake.reputer": x.Reputer = "" - case "emissions.v1.MsgDelegateStake.amount": + case "emissions.v2.MsgDelegateStake.amount": x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgDelegateStake does not contain field %s", fd.FullName())) } } @@ -15782,23 +15508,23 @@ func (x *fastReflection_MsgDelegateStake) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgDelegateStake) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgDelegateStake.sender": + case "emissions.v2.MsgDelegateStake.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgDelegateStake.topic_id": + case "emissions.v2.MsgDelegateStake.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.MsgDelegateStake.reputer": + case "emissions.v2.MsgDelegateStake.reputer": value := x.Reputer return protoreflect.ValueOfString(value) - case "emissions.v1.MsgDelegateStake.amount": + case "emissions.v2.MsgDelegateStake.amount": value := x.Amount return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgDelegateStake does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgDelegateStake does not contain field %s", descriptor.FullName())) } } @@ -15814,19 +15540,19 @@ func (x *fastReflection_MsgDelegateStake) Get(descriptor protoreflect.FieldDescr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgDelegateStake) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgDelegateStake.sender": + case "emissions.v2.MsgDelegateStake.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgDelegateStake.topic_id": + case "emissions.v2.MsgDelegateStake.topic_id": x.TopicId = value.Uint() - case "emissions.v1.MsgDelegateStake.reputer": + case "emissions.v2.MsgDelegateStake.reputer": x.Reputer = value.Interface().(string) - case "emissions.v1.MsgDelegateStake.amount": + case "emissions.v2.MsgDelegateStake.amount": x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgDelegateStake does not contain field %s", fd.FullName())) } } @@ -15842,19 +15568,19 @@ func (x *fastReflection_MsgDelegateStake) Set(fd protoreflect.FieldDescriptor, v // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgDelegateStake) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgDelegateStake.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgDelegateStake is not mutable")) - case "emissions.v1.MsgDelegateStake.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.MsgDelegateStake is not mutable")) - case "emissions.v1.MsgDelegateStake.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.MsgDelegateStake is not mutable")) - case "emissions.v1.MsgDelegateStake.amount": - panic(fmt.Errorf("field amount of message emissions.v1.MsgDelegateStake is not mutable")) + case "emissions.v2.MsgDelegateStake.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgDelegateStake is not mutable")) + case "emissions.v2.MsgDelegateStake.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.MsgDelegateStake is not mutable")) + case "emissions.v2.MsgDelegateStake.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.MsgDelegateStake is not mutable")) + case "emissions.v2.MsgDelegateStake.amount": + panic(fmt.Errorf("field amount of message emissions.v2.MsgDelegateStake is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgDelegateStake does not contain field %s", fd.FullName())) } } @@ -15863,19 +15589,19 @@ func (x *fastReflection_MsgDelegateStake) Mutable(fd protoreflect.FieldDescripto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgDelegateStake) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgDelegateStake.sender": + case "emissions.v2.MsgDelegateStake.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgDelegateStake.topic_id": + case "emissions.v2.MsgDelegateStake.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.MsgDelegateStake.reputer": + case "emissions.v2.MsgDelegateStake.reputer": return protoreflect.ValueOfString("") - case "emissions.v1.MsgDelegateStake.amount": + case "emissions.v2.MsgDelegateStake.amount": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgDelegateStake does not contain field %s", fd.FullName())) } } @@ -15885,7 +15611,7 @@ func (x *fastReflection_MsgDelegateStake) NewField(fd protoreflect.FieldDescript func (x *fastReflection_MsgDelegateStake) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgDelegateStake", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgDelegateStake", d.FullName())) } panic("unreachable") } @@ -16214,8 +15940,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgDelegateStakeResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgDelegateStakeResponse") + file_emissions_v2_tx_proto_init() + md_MsgDelegateStakeResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgDelegateStakeResponse") } var _ protoreflect.Message = (*fastReflection_MsgDelegateStakeResponse)(nil) @@ -16227,7 +15953,7 @@ func (x *MsgDelegateStakeResponse) ProtoReflect() protoreflect.Message { } func (x *MsgDelegateStakeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[20] + mi := &file_emissions_v2_tx_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16300,9 +16026,9 @@ func (x *fastReflection_MsgDelegateStakeResponse) Has(fd protoreflect.FieldDescr switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -16316,9 +16042,9 @@ func (x *fastReflection_MsgDelegateStakeResponse) Clear(fd protoreflect.FieldDes switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -16332,9 +16058,9 @@ func (x *fastReflection_MsgDelegateStakeResponse) Get(descriptor protoreflect.Fi switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgDelegateStakeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgDelegateStakeResponse does not contain field %s", descriptor.FullName())) } } @@ -16352,9 +16078,9 @@ func (x *fastReflection_MsgDelegateStakeResponse) Set(fd protoreflect.FieldDescr switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -16372,9 +16098,9 @@ func (x *fastReflection_MsgDelegateStakeResponse) Mutable(fd protoreflect.FieldD switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -16385,9 +16111,9 @@ func (x *fastReflection_MsgDelegateStakeResponse) NewField(fd protoreflect.Field switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -16397,7 +16123,7 @@ func (x *fastReflection_MsgDelegateStakeResponse) NewField(fd protoreflect.Field func (x *fastReflection_MsgDelegateStakeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgDelegateStakeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgDelegateStakeResponse", d.FullName())) } panic("unreachable") } @@ -16574,8 +16300,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgRemoveDelegateStake = File_emissions_v1_tx_proto.Messages().ByName("MsgRemoveDelegateStake") + file_emissions_v2_tx_proto_init() + md_MsgRemoveDelegateStake = File_emissions_v2_tx_proto.Messages().ByName("MsgRemoveDelegateStake") fd_MsgRemoveDelegateStake_sender = md_MsgRemoveDelegateStake.Fields().ByName("sender") fd_MsgRemoveDelegateStake_reputer = md_MsgRemoveDelegateStake.Fields().ByName("reputer") fd_MsgRemoveDelegateStake_topic_id = md_MsgRemoveDelegateStake.Fields().ByName("topic_id") @@ -16591,7 +16317,7 @@ func (x *MsgRemoveDelegateStake) ProtoReflect() protoreflect.Message { } func (x *MsgRemoveDelegateStake) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[21] + mi := &file_emissions_v2_tx_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -16686,19 +16412,19 @@ func (x *fastReflection_MsgRemoveDelegateStake) Range(f func(protoreflect.FieldD // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgRemoveDelegateStake) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgRemoveDelegateStake.sender": + case "emissions.v2.MsgRemoveDelegateStake.sender": return x.Sender != "" - case "emissions.v1.MsgRemoveDelegateStake.reputer": + case "emissions.v2.MsgRemoveDelegateStake.reputer": return x.Reputer != "" - case "emissions.v1.MsgRemoveDelegateStake.topic_id": + case "emissions.v2.MsgRemoveDelegateStake.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.MsgRemoveDelegateStake.amount": + case "emissions.v2.MsgRemoveDelegateStake.amount": return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveDelegateStake does not contain field %s", fd.FullName())) } } @@ -16710,19 +16436,19 @@ func (x *fastReflection_MsgRemoveDelegateStake) Has(fd protoreflect.FieldDescrip // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveDelegateStake) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgRemoveDelegateStake.sender": + case "emissions.v2.MsgRemoveDelegateStake.sender": x.Sender = "" - case "emissions.v1.MsgRemoveDelegateStake.reputer": + case "emissions.v2.MsgRemoveDelegateStake.reputer": x.Reputer = "" - case "emissions.v1.MsgRemoveDelegateStake.topic_id": + case "emissions.v2.MsgRemoveDelegateStake.topic_id": x.TopicId = uint64(0) - case "emissions.v1.MsgRemoveDelegateStake.amount": + case "emissions.v2.MsgRemoveDelegateStake.amount": x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveDelegateStake does not contain field %s", fd.FullName())) } } @@ -16734,23 +16460,23 @@ func (x *fastReflection_MsgRemoveDelegateStake) Clear(fd protoreflect.FieldDescr // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgRemoveDelegateStake) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgRemoveDelegateStake.sender": + case "emissions.v2.MsgRemoveDelegateStake.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgRemoveDelegateStake.reputer": + case "emissions.v2.MsgRemoveDelegateStake.reputer": value := x.Reputer return protoreflect.ValueOfString(value) - case "emissions.v1.MsgRemoveDelegateStake.topic_id": + case "emissions.v2.MsgRemoveDelegateStake.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.MsgRemoveDelegateStake.amount": + case "emissions.v2.MsgRemoveDelegateStake.amount": value := x.Amount return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveDelegateStake does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveDelegateStake does not contain field %s", descriptor.FullName())) } } @@ -16766,19 +16492,19 @@ func (x *fastReflection_MsgRemoveDelegateStake) Get(descriptor protoreflect.Fiel // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveDelegateStake) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgRemoveDelegateStake.sender": + case "emissions.v2.MsgRemoveDelegateStake.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgRemoveDelegateStake.reputer": + case "emissions.v2.MsgRemoveDelegateStake.reputer": x.Reputer = value.Interface().(string) - case "emissions.v1.MsgRemoveDelegateStake.topic_id": + case "emissions.v2.MsgRemoveDelegateStake.topic_id": x.TopicId = value.Uint() - case "emissions.v1.MsgRemoveDelegateStake.amount": + case "emissions.v2.MsgRemoveDelegateStake.amount": x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveDelegateStake does not contain field %s", fd.FullName())) } } @@ -16794,19 +16520,19 @@ func (x *fastReflection_MsgRemoveDelegateStake) Set(fd protoreflect.FieldDescrip // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveDelegateStake) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRemoveDelegateStake.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgRemoveDelegateStake is not mutable")) - case "emissions.v1.MsgRemoveDelegateStake.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.MsgRemoveDelegateStake is not mutable")) - case "emissions.v1.MsgRemoveDelegateStake.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.MsgRemoveDelegateStake is not mutable")) - case "emissions.v1.MsgRemoveDelegateStake.amount": - panic(fmt.Errorf("field amount of message emissions.v1.MsgRemoveDelegateStake is not mutable")) + case "emissions.v2.MsgRemoveDelegateStake.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgRemoveDelegateStake is not mutable")) + case "emissions.v2.MsgRemoveDelegateStake.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.MsgRemoveDelegateStake is not mutable")) + case "emissions.v2.MsgRemoveDelegateStake.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.MsgRemoveDelegateStake is not mutable")) + case "emissions.v2.MsgRemoveDelegateStake.amount": + panic(fmt.Errorf("field amount of message emissions.v2.MsgRemoveDelegateStake is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveDelegateStake does not contain field %s", fd.FullName())) } } @@ -16815,19 +16541,19 @@ func (x *fastReflection_MsgRemoveDelegateStake) Mutable(fd protoreflect.FieldDes // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgRemoveDelegateStake) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRemoveDelegateStake.sender": + case "emissions.v2.MsgRemoveDelegateStake.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgRemoveDelegateStake.reputer": + case "emissions.v2.MsgRemoveDelegateStake.reputer": return protoreflect.ValueOfString("") - case "emissions.v1.MsgRemoveDelegateStake.topic_id": + case "emissions.v2.MsgRemoveDelegateStake.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.MsgRemoveDelegateStake.amount": + case "emissions.v2.MsgRemoveDelegateStake.amount": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveDelegateStake does not contain field %s", fd.FullName())) } } @@ -16837,7 +16563,7 @@ func (x *fastReflection_MsgRemoveDelegateStake) NewField(fd protoreflect.FieldDe func (x *fastReflection_MsgRemoveDelegateStake) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgRemoveDelegateStake", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgRemoveDelegateStake", d.FullName())) } panic("unreachable") } @@ -17166,8 +16892,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgRemoveDelegateStakeResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgRemoveDelegateStakeResponse") + file_emissions_v2_tx_proto_init() + md_MsgRemoveDelegateStakeResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgRemoveDelegateStakeResponse") } var _ protoreflect.Message = (*fastReflection_MsgRemoveDelegateStakeResponse)(nil) @@ -17179,7 +16905,7 @@ func (x *MsgRemoveDelegateStakeResponse) ProtoReflect() protoreflect.Message { } func (x *MsgRemoveDelegateStakeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[22] + mi := &file_emissions_v2_tx_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17252,9 +16978,9 @@ func (x *fastReflection_MsgRemoveDelegateStakeResponse) Has(fd protoreflect.Fiel switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -17268,9 +16994,9 @@ func (x *fastReflection_MsgRemoveDelegateStakeResponse) Clear(fd protoreflect.Fi switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -17284,9 +17010,9 @@ func (x *fastReflection_MsgRemoveDelegateStakeResponse) Get(descriptor protorefl switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveDelegateStakeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveDelegateStakeResponse does not contain field %s", descriptor.FullName())) } } @@ -17304,9 +17030,9 @@ func (x *fastReflection_MsgRemoveDelegateStakeResponse) Set(fd protoreflect.Fiel switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -17324,9 +17050,9 @@ func (x *fastReflection_MsgRemoveDelegateStakeResponse) Mutable(fd protoreflect. switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -17337,9 +17063,9 @@ func (x *fastReflection_MsgRemoveDelegateStakeResponse) NewField(fd protoreflect switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -17349,7 +17075,7 @@ func (x *fastReflection_MsgRemoveDelegateStakeResponse) NewField(fd protoreflect func (x *fastReflection_MsgRemoveDelegateStakeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgRemoveDelegateStakeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgRemoveDelegateStakeResponse", d.FullName())) } panic("unreachable") } @@ -17526,8 +17252,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgCancelRemoveDelegateStake = File_emissions_v1_tx_proto.Messages().ByName("MsgCancelRemoveDelegateStake") + file_emissions_v2_tx_proto_init() + md_MsgCancelRemoveDelegateStake = File_emissions_v2_tx_proto.Messages().ByName("MsgCancelRemoveDelegateStake") fd_MsgCancelRemoveDelegateStake_sender = md_MsgCancelRemoveDelegateStake.Fields().ByName("sender") fd_MsgCancelRemoveDelegateStake_topic_id = md_MsgCancelRemoveDelegateStake.Fields().ByName("topic_id") fd_MsgCancelRemoveDelegateStake_delegator = md_MsgCancelRemoveDelegateStake.Fields().ByName("delegator") @@ -17543,7 +17269,7 @@ func (x *MsgCancelRemoveDelegateStake) ProtoReflect() protoreflect.Message { } func (x *MsgCancelRemoveDelegateStake) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[23] + mi := &file_emissions_v2_tx_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -17638,19 +17364,19 @@ func (x *fastReflection_MsgCancelRemoveDelegateStake) Range(f func(protoreflect. // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgCancelRemoveDelegateStake) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgCancelRemoveDelegateStake.sender": + case "emissions.v2.MsgCancelRemoveDelegateStake.sender": return x.Sender != "" - case "emissions.v1.MsgCancelRemoveDelegateStake.topic_id": + case "emissions.v2.MsgCancelRemoveDelegateStake.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.MsgCancelRemoveDelegateStake.delegator": + case "emissions.v2.MsgCancelRemoveDelegateStake.delegator": return x.Delegator != "" - case "emissions.v1.MsgCancelRemoveDelegateStake.reputer": + case "emissions.v2.MsgCancelRemoveDelegateStake.reputer": return x.Reputer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveDelegateStake does not contain field %s", fd.FullName())) } } @@ -17662,19 +17388,19 @@ func (x *fastReflection_MsgCancelRemoveDelegateStake) Has(fd protoreflect.FieldD // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCancelRemoveDelegateStake) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgCancelRemoveDelegateStake.sender": + case "emissions.v2.MsgCancelRemoveDelegateStake.sender": x.Sender = "" - case "emissions.v1.MsgCancelRemoveDelegateStake.topic_id": + case "emissions.v2.MsgCancelRemoveDelegateStake.topic_id": x.TopicId = uint64(0) - case "emissions.v1.MsgCancelRemoveDelegateStake.delegator": + case "emissions.v2.MsgCancelRemoveDelegateStake.delegator": x.Delegator = "" - case "emissions.v1.MsgCancelRemoveDelegateStake.reputer": + case "emissions.v2.MsgCancelRemoveDelegateStake.reputer": x.Reputer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveDelegateStake does not contain field %s", fd.FullName())) } } @@ -17686,23 +17412,23 @@ func (x *fastReflection_MsgCancelRemoveDelegateStake) Clear(fd protoreflect.Fiel // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgCancelRemoveDelegateStake) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgCancelRemoveDelegateStake.sender": + case "emissions.v2.MsgCancelRemoveDelegateStake.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgCancelRemoveDelegateStake.topic_id": + case "emissions.v2.MsgCancelRemoveDelegateStake.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.MsgCancelRemoveDelegateStake.delegator": + case "emissions.v2.MsgCancelRemoveDelegateStake.delegator": value := x.Delegator return protoreflect.ValueOfString(value) - case "emissions.v1.MsgCancelRemoveDelegateStake.reputer": + case "emissions.v2.MsgCancelRemoveDelegateStake.reputer": value := x.Reputer return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveDelegateStake does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveDelegateStake does not contain field %s", descriptor.FullName())) } } @@ -17718,19 +17444,19 @@ func (x *fastReflection_MsgCancelRemoveDelegateStake) Get(descriptor protoreflec // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCancelRemoveDelegateStake) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgCancelRemoveDelegateStake.sender": + case "emissions.v2.MsgCancelRemoveDelegateStake.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgCancelRemoveDelegateStake.topic_id": + case "emissions.v2.MsgCancelRemoveDelegateStake.topic_id": x.TopicId = value.Uint() - case "emissions.v1.MsgCancelRemoveDelegateStake.delegator": + case "emissions.v2.MsgCancelRemoveDelegateStake.delegator": x.Delegator = value.Interface().(string) - case "emissions.v1.MsgCancelRemoveDelegateStake.reputer": + case "emissions.v2.MsgCancelRemoveDelegateStake.reputer": x.Reputer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveDelegateStake does not contain field %s", fd.FullName())) } } @@ -17746,19 +17472,19 @@ func (x *fastReflection_MsgCancelRemoveDelegateStake) Set(fd protoreflect.FieldD // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgCancelRemoveDelegateStake) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgCancelRemoveDelegateStake.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgCancelRemoveDelegateStake is not mutable")) - case "emissions.v1.MsgCancelRemoveDelegateStake.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.MsgCancelRemoveDelegateStake is not mutable")) - case "emissions.v1.MsgCancelRemoveDelegateStake.delegator": - panic(fmt.Errorf("field delegator of message emissions.v1.MsgCancelRemoveDelegateStake is not mutable")) - case "emissions.v1.MsgCancelRemoveDelegateStake.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.MsgCancelRemoveDelegateStake is not mutable")) + case "emissions.v2.MsgCancelRemoveDelegateStake.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgCancelRemoveDelegateStake is not mutable")) + case "emissions.v2.MsgCancelRemoveDelegateStake.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.MsgCancelRemoveDelegateStake is not mutable")) + case "emissions.v2.MsgCancelRemoveDelegateStake.delegator": + panic(fmt.Errorf("field delegator of message emissions.v2.MsgCancelRemoveDelegateStake is not mutable")) + case "emissions.v2.MsgCancelRemoveDelegateStake.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.MsgCancelRemoveDelegateStake is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveDelegateStake does not contain field %s", fd.FullName())) } } @@ -17767,19 +17493,19 @@ func (x *fastReflection_MsgCancelRemoveDelegateStake) Mutable(fd protoreflect.Fi // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgCancelRemoveDelegateStake) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgCancelRemoveDelegateStake.sender": + case "emissions.v2.MsgCancelRemoveDelegateStake.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgCancelRemoveDelegateStake.topic_id": + case "emissions.v2.MsgCancelRemoveDelegateStake.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.MsgCancelRemoveDelegateStake.delegator": + case "emissions.v2.MsgCancelRemoveDelegateStake.delegator": return protoreflect.ValueOfString("") - case "emissions.v1.MsgCancelRemoveDelegateStake.reputer": + case "emissions.v2.MsgCancelRemoveDelegateStake.reputer": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveDelegateStake does not contain field %s", fd.FullName())) } } @@ -17789,7 +17515,7 @@ func (x *fastReflection_MsgCancelRemoveDelegateStake) NewField(fd protoreflect.F func (x *fastReflection_MsgCancelRemoveDelegateStake) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgCancelRemoveDelegateStake", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgCancelRemoveDelegateStake", d.FullName())) } panic("unreachable") } @@ -18118,8 +17844,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgCancelRemoveDelegateStakeResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgCancelRemoveDelegateStakeResponse") + file_emissions_v2_tx_proto_init() + md_MsgCancelRemoveDelegateStakeResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgCancelRemoveDelegateStakeResponse") } var _ protoreflect.Message = (*fastReflection_MsgCancelRemoveDelegateStakeResponse)(nil) @@ -18131,7 +17857,7 @@ func (x *MsgCancelRemoveDelegateStakeResponse) ProtoReflect() protoreflect.Messa } func (x *MsgCancelRemoveDelegateStakeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[24] + mi := &file_emissions_v2_tx_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18204,9 +17930,9 @@ func (x *fastReflection_MsgCancelRemoveDelegateStakeResponse) Has(fd protoreflec switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -18220,9 +17946,9 @@ func (x *fastReflection_MsgCancelRemoveDelegateStakeResponse) Clear(fd protorefl switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -18236,9 +17962,9 @@ func (x *fastReflection_MsgCancelRemoveDelegateStakeResponse) Get(descriptor pro switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveDelegateStakeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveDelegateStakeResponse does not contain field %s", descriptor.FullName())) } } @@ -18256,9 +17982,9 @@ func (x *fastReflection_MsgCancelRemoveDelegateStakeResponse) Set(fd protoreflec switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -18276,9 +18002,9 @@ func (x *fastReflection_MsgCancelRemoveDelegateStakeResponse) Mutable(fd protore switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -18289,9 +18015,9 @@ func (x *fastReflection_MsgCancelRemoveDelegateStakeResponse) NewField(fd protor switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgCancelRemoveDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgCancelRemoveDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgCancelRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgCancelRemoveDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -18301,7 +18027,7 @@ func (x *fastReflection_MsgCancelRemoveDelegateStakeResponse) NewField(fd protor func (x *fastReflection_MsgCancelRemoveDelegateStakeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgCancelRemoveDelegateStakeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgCancelRemoveDelegateStakeResponse", d.FullName())) } panic("unreachable") } @@ -18477,8 +18203,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgFundTopic = File_emissions_v1_tx_proto.Messages().ByName("MsgFundTopic") + file_emissions_v2_tx_proto_init() + md_MsgFundTopic = File_emissions_v2_tx_proto.Messages().ByName("MsgFundTopic") fd_MsgFundTopic_sender = md_MsgFundTopic.Fields().ByName("sender") fd_MsgFundTopic_topic_id = md_MsgFundTopic.Fields().ByName("topic_id") fd_MsgFundTopic_amount = md_MsgFundTopic.Fields().ByName("amount") @@ -18493,7 +18219,7 @@ func (x *MsgFundTopic) ProtoReflect() protoreflect.Message { } func (x *MsgFundTopic) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[25] + mi := &file_emissions_v2_tx_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -18582,17 +18308,17 @@ func (x *fastReflection_MsgFundTopic) Range(f func(protoreflect.FieldDescriptor, // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgFundTopic) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgFundTopic.sender": + case "emissions.v2.MsgFundTopic.sender": return x.Sender != "" - case "emissions.v1.MsgFundTopic.topic_id": + case "emissions.v2.MsgFundTopic.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.MsgFundTopic.amount": + case "emissions.v2.MsgFundTopic.amount": return x.Amount != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgFundTopic")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgFundTopic")) } - panic(fmt.Errorf("message emissions.v1.MsgFundTopic does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgFundTopic does not contain field %s", fd.FullName())) } } @@ -18604,17 +18330,17 @@ func (x *fastReflection_MsgFundTopic) Has(fd protoreflect.FieldDescriptor) bool // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgFundTopic) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgFundTopic.sender": + case "emissions.v2.MsgFundTopic.sender": x.Sender = "" - case "emissions.v1.MsgFundTopic.topic_id": + case "emissions.v2.MsgFundTopic.topic_id": x.TopicId = uint64(0) - case "emissions.v1.MsgFundTopic.amount": + case "emissions.v2.MsgFundTopic.amount": x.Amount = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgFundTopic")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgFundTopic")) } - panic(fmt.Errorf("message emissions.v1.MsgFundTopic does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgFundTopic does not contain field %s", fd.FullName())) } } @@ -18626,20 +18352,20 @@ func (x *fastReflection_MsgFundTopic) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgFundTopic) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgFundTopic.sender": + case "emissions.v2.MsgFundTopic.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgFundTopic.topic_id": + case "emissions.v2.MsgFundTopic.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.MsgFundTopic.amount": + case "emissions.v2.MsgFundTopic.amount": value := x.Amount return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgFundTopic")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgFundTopic")) } - panic(fmt.Errorf("message emissions.v1.MsgFundTopic does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgFundTopic does not contain field %s", descriptor.FullName())) } } @@ -18655,17 +18381,17 @@ func (x *fastReflection_MsgFundTopic) Get(descriptor protoreflect.FieldDescripto // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgFundTopic) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgFundTopic.sender": + case "emissions.v2.MsgFundTopic.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgFundTopic.topic_id": + case "emissions.v2.MsgFundTopic.topic_id": x.TopicId = value.Uint() - case "emissions.v1.MsgFundTopic.amount": + case "emissions.v2.MsgFundTopic.amount": x.Amount = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgFundTopic")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgFundTopic")) } - panic(fmt.Errorf("message emissions.v1.MsgFundTopic does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgFundTopic does not contain field %s", fd.FullName())) } } @@ -18681,17 +18407,17 @@ func (x *fastReflection_MsgFundTopic) Set(fd protoreflect.FieldDescriptor, value // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgFundTopic) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgFundTopic.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgFundTopic is not mutable")) - case "emissions.v1.MsgFundTopic.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.MsgFundTopic is not mutable")) - case "emissions.v1.MsgFundTopic.amount": - panic(fmt.Errorf("field amount of message emissions.v1.MsgFundTopic is not mutable")) + case "emissions.v2.MsgFundTopic.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgFundTopic is not mutable")) + case "emissions.v2.MsgFundTopic.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.MsgFundTopic is not mutable")) + case "emissions.v2.MsgFundTopic.amount": + panic(fmt.Errorf("field amount of message emissions.v2.MsgFundTopic is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgFundTopic")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgFundTopic")) } - panic(fmt.Errorf("message emissions.v1.MsgFundTopic does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgFundTopic does not contain field %s", fd.FullName())) } } @@ -18700,17 +18426,17 @@ func (x *fastReflection_MsgFundTopic) Mutable(fd protoreflect.FieldDescriptor) p // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgFundTopic) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgFundTopic.sender": + case "emissions.v2.MsgFundTopic.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgFundTopic.topic_id": + case "emissions.v2.MsgFundTopic.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.MsgFundTopic.amount": + case "emissions.v2.MsgFundTopic.amount": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgFundTopic")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgFundTopic")) } - panic(fmt.Errorf("message emissions.v1.MsgFundTopic does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgFundTopic does not contain field %s", fd.FullName())) } } @@ -18720,7 +18446,7 @@ func (x *fastReflection_MsgFundTopic) NewField(fd protoreflect.FieldDescriptor) func (x *fastReflection_MsgFundTopic) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgFundTopic", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgFundTopic", d.FullName())) } panic("unreachable") } @@ -19006,8 +18732,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgFundTopicResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgFundTopicResponse") + file_emissions_v2_tx_proto_init() + md_MsgFundTopicResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgFundTopicResponse") } var _ protoreflect.Message = (*fastReflection_MsgFundTopicResponse)(nil) @@ -19019,7 +18745,7 @@ func (x *MsgFundTopicResponse) ProtoReflect() protoreflect.Message { } func (x *MsgFundTopicResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[26] + mi := &file_emissions_v2_tx_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19092,9 +18818,9 @@ func (x *fastReflection_MsgFundTopicResponse) Has(fd protoreflect.FieldDescripto switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgFundTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgFundTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgFundTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgFundTopicResponse does not contain field %s", fd.FullName())) } } @@ -19108,9 +18834,9 @@ func (x *fastReflection_MsgFundTopicResponse) Clear(fd protoreflect.FieldDescrip switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgFundTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgFundTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgFundTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgFundTopicResponse does not contain field %s", fd.FullName())) } } @@ -19124,9 +18850,9 @@ func (x *fastReflection_MsgFundTopicResponse) Get(descriptor protoreflect.FieldD switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgFundTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgFundTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgFundTopicResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgFundTopicResponse does not contain field %s", descriptor.FullName())) } } @@ -19144,9 +18870,9 @@ func (x *fastReflection_MsgFundTopicResponse) Set(fd protoreflect.FieldDescripto switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgFundTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgFundTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgFundTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgFundTopicResponse does not contain field %s", fd.FullName())) } } @@ -19164,9 +18890,9 @@ func (x *fastReflection_MsgFundTopicResponse) Mutable(fd protoreflect.FieldDescr switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgFundTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgFundTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgFundTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgFundTopicResponse does not contain field %s", fd.FullName())) } } @@ -19177,9 +18903,9 @@ func (x *fastReflection_MsgFundTopicResponse) NewField(fd protoreflect.FieldDesc switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgFundTopicResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgFundTopicResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgFundTopicResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgFundTopicResponse does not contain field %s", fd.FullName())) } } @@ -19189,7 +18915,7 @@ func (x *fastReflection_MsgFundTopicResponse) NewField(fd protoreflect.FieldDesc func (x *fastReflection_MsgFundTopicResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgFundTopicResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgFundTopicResponse", d.FullName())) } panic("unreachable") } @@ -19364,8 +19090,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgAddToWhitelistAdmin = File_emissions_v1_tx_proto.Messages().ByName("MsgAddToWhitelistAdmin") + file_emissions_v2_tx_proto_init() + md_MsgAddToWhitelistAdmin = File_emissions_v2_tx_proto.Messages().ByName("MsgAddToWhitelistAdmin") fd_MsgAddToWhitelistAdmin_sender = md_MsgAddToWhitelistAdmin.Fields().ByName("sender") fd_MsgAddToWhitelistAdmin_address = md_MsgAddToWhitelistAdmin.Fields().ByName("address") } @@ -19379,7 +19105,7 @@ func (x *MsgAddToWhitelistAdmin) ProtoReflect() protoreflect.Message { } func (x *MsgAddToWhitelistAdmin) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[27] + mi := &file_emissions_v2_tx_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19462,15 +19188,15 @@ func (x *fastReflection_MsgAddToWhitelistAdmin) Range(f func(protoreflect.FieldD // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgAddToWhitelistAdmin) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgAddToWhitelistAdmin.sender": + case "emissions.v2.MsgAddToWhitelistAdmin.sender": return x.Sender != "" - case "emissions.v1.MsgAddToWhitelistAdmin.address": + case "emissions.v2.MsgAddToWhitelistAdmin.address": return x.Address != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddToWhitelistAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddToWhitelistAdmin")) } - panic(fmt.Errorf("message emissions.v1.MsgAddToWhitelistAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddToWhitelistAdmin does not contain field %s", fd.FullName())) } } @@ -19482,15 +19208,15 @@ func (x *fastReflection_MsgAddToWhitelistAdmin) Has(fd protoreflect.FieldDescrip // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgAddToWhitelistAdmin) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgAddToWhitelistAdmin.sender": + case "emissions.v2.MsgAddToWhitelistAdmin.sender": x.Sender = "" - case "emissions.v1.MsgAddToWhitelistAdmin.address": + case "emissions.v2.MsgAddToWhitelistAdmin.address": x.Address = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddToWhitelistAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddToWhitelistAdmin")) } - panic(fmt.Errorf("message emissions.v1.MsgAddToWhitelistAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddToWhitelistAdmin does not contain field %s", fd.FullName())) } } @@ -19502,17 +19228,17 @@ func (x *fastReflection_MsgAddToWhitelistAdmin) Clear(fd protoreflect.FieldDescr // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgAddToWhitelistAdmin) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgAddToWhitelistAdmin.sender": + case "emissions.v2.MsgAddToWhitelistAdmin.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgAddToWhitelistAdmin.address": + case "emissions.v2.MsgAddToWhitelistAdmin.address": value := x.Address return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddToWhitelistAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddToWhitelistAdmin")) } - panic(fmt.Errorf("message emissions.v1.MsgAddToWhitelistAdmin does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddToWhitelistAdmin does not contain field %s", descriptor.FullName())) } } @@ -19528,15 +19254,15 @@ func (x *fastReflection_MsgAddToWhitelistAdmin) Get(descriptor protoreflect.Fiel // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgAddToWhitelistAdmin) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgAddToWhitelistAdmin.sender": + case "emissions.v2.MsgAddToWhitelistAdmin.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgAddToWhitelistAdmin.address": + case "emissions.v2.MsgAddToWhitelistAdmin.address": x.Address = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddToWhitelistAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddToWhitelistAdmin")) } - panic(fmt.Errorf("message emissions.v1.MsgAddToWhitelistAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddToWhitelistAdmin does not contain field %s", fd.FullName())) } } @@ -19552,15 +19278,15 @@ func (x *fastReflection_MsgAddToWhitelistAdmin) Set(fd protoreflect.FieldDescrip // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgAddToWhitelistAdmin) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgAddToWhitelistAdmin.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgAddToWhitelistAdmin is not mutable")) - case "emissions.v1.MsgAddToWhitelistAdmin.address": - panic(fmt.Errorf("field address of message emissions.v1.MsgAddToWhitelistAdmin is not mutable")) + case "emissions.v2.MsgAddToWhitelistAdmin.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgAddToWhitelistAdmin is not mutable")) + case "emissions.v2.MsgAddToWhitelistAdmin.address": + panic(fmt.Errorf("field address of message emissions.v2.MsgAddToWhitelistAdmin is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddToWhitelistAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddToWhitelistAdmin")) } - panic(fmt.Errorf("message emissions.v1.MsgAddToWhitelistAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddToWhitelistAdmin does not contain field %s", fd.FullName())) } } @@ -19569,15 +19295,15 @@ func (x *fastReflection_MsgAddToWhitelistAdmin) Mutable(fd protoreflect.FieldDes // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgAddToWhitelistAdmin) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgAddToWhitelistAdmin.sender": + case "emissions.v2.MsgAddToWhitelistAdmin.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgAddToWhitelistAdmin.address": + case "emissions.v2.MsgAddToWhitelistAdmin.address": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddToWhitelistAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddToWhitelistAdmin")) } - panic(fmt.Errorf("message emissions.v1.MsgAddToWhitelistAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddToWhitelistAdmin does not contain field %s", fd.FullName())) } } @@ -19587,7 +19313,7 @@ func (x *fastReflection_MsgAddToWhitelistAdmin) NewField(fd protoreflect.FieldDe func (x *fastReflection_MsgAddToWhitelistAdmin) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgAddToWhitelistAdmin", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgAddToWhitelistAdmin", d.FullName())) } panic("unreachable") } @@ -19846,8 +19572,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgAddToWhitelistAdminResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgAddToWhitelistAdminResponse") + file_emissions_v2_tx_proto_init() + md_MsgAddToWhitelistAdminResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgAddToWhitelistAdminResponse") } var _ protoreflect.Message = (*fastReflection_MsgAddToWhitelistAdminResponse)(nil) @@ -19859,7 +19585,7 @@ func (x *MsgAddToWhitelistAdminResponse) ProtoReflect() protoreflect.Message { } func (x *MsgAddToWhitelistAdminResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[28] + mi := &file_emissions_v2_tx_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -19932,9 +19658,9 @@ func (x *fastReflection_MsgAddToWhitelistAdminResponse) Has(fd protoreflect.Fiel switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddToWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddToWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgAddToWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddToWhitelistAdminResponse does not contain field %s", fd.FullName())) } } @@ -19948,9 +19674,9 @@ func (x *fastReflection_MsgAddToWhitelistAdminResponse) Clear(fd protoreflect.Fi switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddToWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddToWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgAddToWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddToWhitelistAdminResponse does not contain field %s", fd.FullName())) } } @@ -19964,9 +19690,9 @@ func (x *fastReflection_MsgAddToWhitelistAdminResponse) Get(descriptor protorefl switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddToWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddToWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgAddToWhitelistAdminResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddToWhitelistAdminResponse does not contain field %s", descriptor.FullName())) } } @@ -19984,9 +19710,9 @@ func (x *fastReflection_MsgAddToWhitelistAdminResponse) Set(fd protoreflect.Fiel switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddToWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddToWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgAddToWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddToWhitelistAdminResponse does not contain field %s", fd.FullName())) } } @@ -20004,9 +19730,9 @@ func (x *fastReflection_MsgAddToWhitelistAdminResponse) Mutable(fd protoreflect. switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddToWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddToWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgAddToWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddToWhitelistAdminResponse does not contain field %s", fd.FullName())) } } @@ -20017,9 +19743,9 @@ func (x *fastReflection_MsgAddToWhitelistAdminResponse) NewField(fd protoreflect switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgAddToWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgAddToWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgAddToWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgAddToWhitelistAdminResponse does not contain field %s", fd.FullName())) } } @@ -20029,7 +19755,7 @@ func (x *fastReflection_MsgAddToWhitelistAdminResponse) NewField(fd protoreflect func (x *fastReflection_MsgAddToWhitelistAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgAddToWhitelistAdminResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgAddToWhitelistAdminResponse", d.FullName())) } panic("unreachable") } @@ -20204,8 +19930,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgRemoveFromWhitelistAdmin = File_emissions_v1_tx_proto.Messages().ByName("MsgRemoveFromWhitelistAdmin") + file_emissions_v2_tx_proto_init() + md_MsgRemoveFromWhitelistAdmin = File_emissions_v2_tx_proto.Messages().ByName("MsgRemoveFromWhitelistAdmin") fd_MsgRemoveFromWhitelistAdmin_sender = md_MsgRemoveFromWhitelistAdmin.Fields().ByName("sender") fd_MsgRemoveFromWhitelistAdmin_address = md_MsgRemoveFromWhitelistAdmin.Fields().ByName("address") } @@ -20219,7 +19945,7 @@ func (x *MsgRemoveFromWhitelistAdmin) ProtoReflect() protoreflect.Message { } func (x *MsgRemoveFromWhitelistAdmin) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[29] + mi := &file_emissions_v2_tx_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -20302,15 +20028,15 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdmin) Range(f func(protoreflect.F // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgRemoveFromWhitelistAdmin) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgRemoveFromWhitelistAdmin.sender": + case "emissions.v2.MsgRemoveFromWhitelistAdmin.sender": return x.Sender != "" - case "emissions.v1.MsgRemoveFromWhitelistAdmin.address": + case "emissions.v2.MsgRemoveFromWhitelistAdmin.address": return x.Address != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveFromWhitelistAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveFromWhitelistAdmin")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveFromWhitelistAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveFromWhitelistAdmin does not contain field %s", fd.FullName())) } } @@ -20322,15 +20048,15 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdmin) Has(fd protoreflect.FieldDe // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveFromWhitelistAdmin) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgRemoveFromWhitelistAdmin.sender": + case "emissions.v2.MsgRemoveFromWhitelistAdmin.sender": x.Sender = "" - case "emissions.v1.MsgRemoveFromWhitelistAdmin.address": + case "emissions.v2.MsgRemoveFromWhitelistAdmin.address": x.Address = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveFromWhitelistAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveFromWhitelistAdmin")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveFromWhitelistAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveFromWhitelistAdmin does not contain field %s", fd.FullName())) } } @@ -20342,17 +20068,17 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdmin) Clear(fd protoreflect.Field // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgRemoveFromWhitelistAdmin) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgRemoveFromWhitelistAdmin.sender": + case "emissions.v2.MsgRemoveFromWhitelistAdmin.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgRemoveFromWhitelistAdmin.address": + case "emissions.v2.MsgRemoveFromWhitelistAdmin.address": value := x.Address return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveFromWhitelistAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveFromWhitelistAdmin")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveFromWhitelistAdmin does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveFromWhitelistAdmin does not contain field %s", descriptor.FullName())) } } @@ -20368,15 +20094,15 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdmin) Get(descriptor protoreflect // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveFromWhitelistAdmin) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgRemoveFromWhitelistAdmin.sender": + case "emissions.v2.MsgRemoveFromWhitelistAdmin.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgRemoveFromWhitelistAdmin.address": + case "emissions.v2.MsgRemoveFromWhitelistAdmin.address": x.Address = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveFromWhitelistAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveFromWhitelistAdmin")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveFromWhitelistAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveFromWhitelistAdmin does not contain field %s", fd.FullName())) } } @@ -20392,15 +20118,15 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdmin) Set(fd protoreflect.FieldDe // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRemoveFromWhitelistAdmin) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRemoveFromWhitelistAdmin.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgRemoveFromWhitelistAdmin is not mutable")) - case "emissions.v1.MsgRemoveFromWhitelistAdmin.address": - panic(fmt.Errorf("field address of message emissions.v1.MsgRemoveFromWhitelistAdmin is not mutable")) + case "emissions.v2.MsgRemoveFromWhitelistAdmin.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgRemoveFromWhitelistAdmin is not mutable")) + case "emissions.v2.MsgRemoveFromWhitelistAdmin.address": + panic(fmt.Errorf("field address of message emissions.v2.MsgRemoveFromWhitelistAdmin is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveFromWhitelistAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveFromWhitelistAdmin")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveFromWhitelistAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveFromWhitelistAdmin does not contain field %s", fd.FullName())) } } @@ -20409,15 +20135,15 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdmin) Mutable(fd protoreflect.Fie // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgRemoveFromWhitelistAdmin) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRemoveFromWhitelistAdmin.sender": + case "emissions.v2.MsgRemoveFromWhitelistAdmin.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgRemoveFromWhitelistAdmin.address": + case "emissions.v2.MsgRemoveFromWhitelistAdmin.address": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveFromWhitelistAdmin")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveFromWhitelistAdmin")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveFromWhitelistAdmin does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveFromWhitelistAdmin does not contain field %s", fd.FullName())) } } @@ -20427,7 +20153,7 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdmin) NewField(fd protoreflect.Fi func (x *fastReflection_MsgRemoveFromWhitelistAdmin) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgRemoveFromWhitelistAdmin", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgRemoveFromWhitelistAdmin", d.FullName())) } panic("unreachable") } @@ -20686,8 +20412,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgRemoveFromWhitelistAdminResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgRemoveFromWhitelistAdminResponse") + file_emissions_v2_tx_proto_init() + md_MsgRemoveFromWhitelistAdminResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgRemoveFromWhitelistAdminResponse") } var _ protoreflect.Message = (*fastReflection_MsgRemoveFromWhitelistAdminResponse)(nil) @@ -20699,7 +20425,7 @@ func (x *MsgRemoveFromWhitelistAdminResponse) ProtoReflect() protoreflect.Messag } func (x *MsgRemoveFromWhitelistAdminResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[30] + mi := &file_emissions_v2_tx_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -20772,9 +20498,9 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdminResponse) Has(fd protoreflect switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveFromWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveFromWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveFromWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveFromWhitelistAdminResponse does not contain field %s", fd.FullName())) } } @@ -20788,9 +20514,9 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdminResponse) Clear(fd protorefle switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveFromWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveFromWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveFromWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveFromWhitelistAdminResponse does not contain field %s", fd.FullName())) } } @@ -20804,9 +20530,9 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdminResponse) Get(descriptor prot switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveFromWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveFromWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveFromWhitelistAdminResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveFromWhitelistAdminResponse does not contain field %s", descriptor.FullName())) } } @@ -20824,9 +20550,9 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdminResponse) Set(fd protoreflect switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveFromWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveFromWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveFromWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveFromWhitelistAdminResponse does not contain field %s", fd.FullName())) } } @@ -20844,9 +20570,9 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdminResponse) Mutable(fd protoref switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveFromWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveFromWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveFromWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveFromWhitelistAdminResponse does not contain field %s", fd.FullName())) } } @@ -20857,9 +20583,9 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdminResponse) NewField(fd protore switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRemoveFromWhitelistAdminResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRemoveFromWhitelistAdminResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRemoveFromWhitelistAdminResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRemoveFromWhitelistAdminResponse does not contain field %s", fd.FullName())) } } @@ -20869,7 +20595,7 @@ func (x *fastReflection_MsgRemoveFromWhitelistAdminResponse) NewField(fd protore func (x *fastReflection_MsgRemoveFromWhitelistAdminResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgRemoveFromWhitelistAdminResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgRemoveFromWhitelistAdminResponse", d.FullName())) } panic("unreachable") } @@ -21042,8 +20768,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgRewardDelegateStakeResponse = File_emissions_v1_tx_proto.Messages().ByName("MsgRewardDelegateStakeResponse") + file_emissions_v2_tx_proto_init() + md_MsgRewardDelegateStakeResponse = File_emissions_v2_tx_proto.Messages().ByName("MsgRewardDelegateStakeResponse") } var _ protoreflect.Message = (*fastReflection_MsgRewardDelegateStakeResponse)(nil) @@ -21055,7 +20781,7 @@ func (x *MsgRewardDelegateStakeResponse) ProtoReflect() protoreflect.Message { } func (x *MsgRewardDelegateStakeResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[31] + mi := &file_emissions_v2_tx_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -21128,9 +20854,9 @@ func (x *fastReflection_MsgRewardDelegateStakeResponse) Has(fd protoreflect.Fiel switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRewardDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRewardDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRewardDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRewardDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -21144,9 +20870,9 @@ func (x *fastReflection_MsgRewardDelegateStakeResponse) Clear(fd protoreflect.Fi switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRewardDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRewardDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRewardDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRewardDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -21160,9 +20886,9 @@ func (x *fastReflection_MsgRewardDelegateStakeResponse) Get(descriptor protorefl switch descriptor.FullName() { default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRewardDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRewardDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRewardDelegateStakeResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRewardDelegateStakeResponse does not contain field %s", descriptor.FullName())) } } @@ -21180,9 +20906,9 @@ func (x *fastReflection_MsgRewardDelegateStakeResponse) Set(fd protoreflect.Fiel switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRewardDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRewardDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRewardDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRewardDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -21200,9 +20926,9 @@ func (x *fastReflection_MsgRewardDelegateStakeResponse) Mutable(fd protoreflect. switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRewardDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRewardDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRewardDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRewardDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -21213,9 +20939,9 @@ func (x *fastReflection_MsgRewardDelegateStakeResponse) NewField(fd protoreflect switch fd.FullName() { default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRewardDelegateStakeResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRewardDelegateStakeResponse")) } - panic(fmt.Errorf("message emissions.v1.MsgRewardDelegateStakeResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRewardDelegateStakeResponse does not contain field %s", fd.FullName())) } } @@ -21225,7 +20951,7 @@ func (x *fastReflection_MsgRewardDelegateStakeResponse) NewField(fd protoreflect func (x *fastReflection_MsgRewardDelegateStakeResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgRewardDelegateStakeResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgRewardDelegateStakeResponse", d.FullName())) } panic("unreachable") } @@ -21401,8 +21127,8 @@ var ( ) func init() { - file_emissions_v1_tx_proto_init() - md_MsgRewardDelegateStake = File_emissions_v1_tx_proto.Messages().ByName("MsgRewardDelegateStake") + file_emissions_v2_tx_proto_init() + md_MsgRewardDelegateStake = File_emissions_v2_tx_proto.Messages().ByName("MsgRewardDelegateStake") fd_MsgRewardDelegateStake_sender = md_MsgRewardDelegateStake.Fields().ByName("sender") fd_MsgRewardDelegateStake_topic_id = md_MsgRewardDelegateStake.Fields().ByName("topic_id") fd_MsgRewardDelegateStake_reputer = md_MsgRewardDelegateStake.Fields().ByName("reputer") @@ -21417,7 +21143,7 @@ func (x *MsgRewardDelegateStake) ProtoReflect() protoreflect.Message { } func (x *MsgRewardDelegateStake) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_tx_proto_msgTypes[32] + mi := &file_emissions_v2_tx_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -21506,17 +21232,17 @@ func (x *fastReflection_MsgRewardDelegateStake) Range(f func(protoreflect.FieldD // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgRewardDelegateStake) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.MsgRewardDelegateStake.sender": + case "emissions.v2.MsgRewardDelegateStake.sender": return x.Sender != "" - case "emissions.v1.MsgRewardDelegateStake.topic_id": + case "emissions.v2.MsgRewardDelegateStake.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.MsgRewardDelegateStake.reputer": + case "emissions.v2.MsgRewardDelegateStake.reputer": return x.Reputer != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRewardDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRewardDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRewardDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRewardDelegateStake does not contain field %s", fd.FullName())) } } @@ -21528,17 +21254,17 @@ func (x *fastReflection_MsgRewardDelegateStake) Has(fd protoreflect.FieldDescrip // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRewardDelegateStake) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.MsgRewardDelegateStake.sender": + case "emissions.v2.MsgRewardDelegateStake.sender": x.Sender = "" - case "emissions.v1.MsgRewardDelegateStake.topic_id": + case "emissions.v2.MsgRewardDelegateStake.topic_id": x.TopicId = uint64(0) - case "emissions.v1.MsgRewardDelegateStake.reputer": + case "emissions.v2.MsgRewardDelegateStake.reputer": x.Reputer = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRewardDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRewardDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRewardDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRewardDelegateStake does not contain field %s", fd.FullName())) } } @@ -21550,20 +21276,20 @@ func (x *fastReflection_MsgRewardDelegateStake) Clear(fd protoreflect.FieldDescr // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgRewardDelegateStake) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.MsgRewardDelegateStake.sender": + case "emissions.v2.MsgRewardDelegateStake.sender": value := x.Sender return protoreflect.ValueOfString(value) - case "emissions.v1.MsgRewardDelegateStake.topic_id": + case "emissions.v2.MsgRewardDelegateStake.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.MsgRewardDelegateStake.reputer": + case "emissions.v2.MsgRewardDelegateStake.reputer": value := x.Reputer return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRewardDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRewardDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRewardDelegateStake does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRewardDelegateStake does not contain field %s", descriptor.FullName())) } } @@ -21579,17 +21305,17 @@ func (x *fastReflection_MsgRewardDelegateStake) Get(descriptor protoreflect.Fiel // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRewardDelegateStake) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.MsgRewardDelegateStake.sender": + case "emissions.v2.MsgRewardDelegateStake.sender": x.Sender = value.Interface().(string) - case "emissions.v1.MsgRewardDelegateStake.topic_id": + case "emissions.v2.MsgRewardDelegateStake.topic_id": x.TopicId = value.Uint() - case "emissions.v1.MsgRewardDelegateStake.reputer": + case "emissions.v2.MsgRewardDelegateStake.reputer": x.Reputer = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRewardDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRewardDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRewardDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRewardDelegateStake does not contain field %s", fd.FullName())) } } @@ -21605,17 +21331,17 @@ func (x *fastReflection_MsgRewardDelegateStake) Set(fd protoreflect.FieldDescrip // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRewardDelegateStake) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRewardDelegateStake.sender": - panic(fmt.Errorf("field sender of message emissions.v1.MsgRewardDelegateStake is not mutable")) - case "emissions.v1.MsgRewardDelegateStake.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.MsgRewardDelegateStake is not mutable")) - case "emissions.v1.MsgRewardDelegateStake.reputer": - panic(fmt.Errorf("field reputer of message emissions.v1.MsgRewardDelegateStake is not mutable")) + case "emissions.v2.MsgRewardDelegateStake.sender": + panic(fmt.Errorf("field sender of message emissions.v2.MsgRewardDelegateStake is not mutable")) + case "emissions.v2.MsgRewardDelegateStake.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.MsgRewardDelegateStake is not mutable")) + case "emissions.v2.MsgRewardDelegateStake.reputer": + panic(fmt.Errorf("field reputer of message emissions.v2.MsgRewardDelegateStake is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRewardDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRewardDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRewardDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRewardDelegateStake does not contain field %s", fd.FullName())) } } @@ -21624,17 +21350,17 @@ func (x *fastReflection_MsgRewardDelegateStake) Mutable(fd protoreflect.FieldDes // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgRewardDelegateStake) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.MsgRewardDelegateStake.sender": + case "emissions.v2.MsgRewardDelegateStake.sender": return protoreflect.ValueOfString("") - case "emissions.v1.MsgRewardDelegateStake.topic_id": + case "emissions.v2.MsgRewardDelegateStake.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.MsgRewardDelegateStake.reputer": + case "emissions.v2.MsgRewardDelegateStake.reputer": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.MsgRewardDelegateStake")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.MsgRewardDelegateStake")) } - panic(fmt.Errorf("message emissions.v1.MsgRewardDelegateStake does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.MsgRewardDelegateStake does not contain field %s", fd.FullName())) } } @@ -21644,7 +21370,7 @@ func (x *fastReflection_MsgRewardDelegateStake) NewField(fd protoreflect.FieldDe func (x *fastReflection_MsgRewardDelegateStake) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.MsgRewardDelegateStake", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.MsgRewardDelegateStake", d.FullName())) } panic("unreachable") } @@ -21929,7 +21655,7 @@ func (x *fastReflection_MsgRewardDelegateStake) ProtoMethods() *protoiface.Metho // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: emissions/v1/tx.proto +// source: emissions/v2/tx.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -21949,52 +21675,55 @@ type OptionalParams struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Version []string `protobuf:"bytes,1,rep,name=version,proto3" json:"version,omitempty"` - MaxSerializedMsgLength []int64 `protobuf:"varint,2,rep,packed,name=max_serialized_msg_length,json=maxSerializedMsgLength,proto3" json:"max_serialized_msg_length,omitempty"` - MinTopicWeight []string `protobuf:"bytes,3,rep,name=min_topic_weight,json=minTopicWeight,proto3" json:"min_topic_weight,omitempty"` - MaxTopicsPerBlock []uint64 `protobuf:"varint,4,rep,packed,name=max_topics_per_block,json=maxTopicsPerBlock,proto3" json:"max_topics_per_block,omitempty"` - RequiredMinimumStake []string `protobuf:"bytes,5,rep,name=required_minimum_stake,json=requiredMinimumStake,proto3" json:"required_minimum_stake,omitempty"` - RemoveStakeDelayWindow []int64 `protobuf:"varint,6,rep,packed,name=remove_stake_delay_window,json=removeStakeDelayWindow,proto3" json:"remove_stake_delay_window,omitempty"` - MinEpochLength []int64 `protobuf:"varint,7,rep,packed,name=min_epoch_length,json=minEpochLength,proto3" json:"min_epoch_length,omitempty"` - BetaEntropy []string `protobuf:"bytes,8,rep,name=beta_entropy,json=betaEntropy,proto3" json:"beta_entropy,omitempty"` - LearningRate []string `protobuf:"bytes,9,rep,name=learning_rate,json=learningRate,proto3" json:"learning_rate,omitempty"` - MaxGradientThreshold []string `protobuf:"bytes,10,rep,name=max_gradient_threshold,json=maxGradientThreshold,proto3" json:"max_gradient_threshold,omitempty"` - MinStakeFraction []string `protobuf:"bytes,11,rep,name=min_stake_fraction,json=minStakeFraction,proto3" json:"min_stake_fraction,omitempty"` - MaxUnfulfilledWorkerRequests []uint64 `protobuf:"varint,13,rep,packed,name=max_unfulfilled_worker_requests,json=maxUnfulfilledWorkerRequests,proto3" json:"max_unfulfilled_worker_requests,omitempty"` - MaxUnfulfilledReputerRequests []uint64 `protobuf:"varint,14,rep,packed,name=max_unfulfilled_reputer_requests,json=maxUnfulfilledReputerRequests,proto3" json:"max_unfulfilled_reputer_requests,omitempty"` - TopicRewardStakeImportance []string `protobuf:"bytes,15,rep,name=topic_reward_stake_importance,json=topicRewardStakeImportance,proto3" json:"topic_reward_stake_importance,omitempty"` - TopicRewardFeeRevenueImportance []string `protobuf:"bytes,16,rep,name=topic_reward_fee_revenue_importance,json=topicRewardFeeRevenueImportance,proto3" json:"topic_reward_fee_revenue_importance,omitempty"` - TopicRewardAlpha []string `protobuf:"bytes,17,rep,name=topic_reward_alpha,json=topicRewardAlpha,proto3" json:"topic_reward_alpha,omitempty"` - TaskRewardAlpha []string `protobuf:"bytes,18,rep,name=task_reward_alpha,json=taskRewardAlpha,proto3" json:"task_reward_alpha,omitempty"` - ValidatorsVsAlloraPercentReward []string `protobuf:"bytes,19,rep,name=validators_vs_allora_percent_reward,json=validatorsVsAlloraPercentReward,proto3" json:"validators_vs_allora_percent_reward,omitempty"` - MaxSamplesToScaleScores []uint64 `protobuf:"varint,20,rep,packed,name=max_samples_to_scale_scores,json=maxSamplesToScaleScores,proto3" json:"max_samples_to_scale_scores,omitempty"` - MaxTopInferersToReward []uint64 `protobuf:"varint,21,rep,packed,name=max_top_inferers_to_reward,json=maxTopInferersToReward,proto3" json:"max_top_inferers_to_reward,omitempty"` - MaxTopForecastersToReward []uint64 `protobuf:"varint,22,rep,packed,name=max_top_forecasters_to_reward,json=maxTopForecastersToReward,proto3" json:"max_top_forecasters_to_reward,omitempty"` - MaxTopReputersToReward []uint64 `protobuf:"varint,23,rep,packed,name=max_top_reputers_to_reward,json=maxTopReputersToReward,proto3" json:"max_top_reputers_to_reward,omitempty"` - CreateTopicFee []string `protobuf:"bytes,24,rep,name=create_topic_fee,json=createTopicFee,proto3" json:"create_topic_fee,omitempty"` - GradientDescentMaxIters []uint64 `protobuf:"varint,25,rep,packed,name=gradient_descent_max_iters,json=gradientDescentMaxIters,proto3" json:"gradient_descent_max_iters,omitempty"` - MaxRetriesToFulfilNoncesWorker []int64 `protobuf:"varint,26,rep,packed,name=max_retries_to_fulfil_nonces_worker,json=maxRetriesToFulfilNoncesWorker,proto3" json:"max_retries_to_fulfil_nonces_worker,omitempty"` - MaxRetriesToFulfilNoncesReputer []int64 `protobuf:"varint,27,rep,packed,name=max_retries_to_fulfil_nonces_reputer,json=maxRetriesToFulfilNoncesReputer,proto3" json:"max_retries_to_fulfil_nonces_reputer,omitempty"` - RegistrationFee []string `protobuf:"bytes,28,rep,name=registration_fee,json=registrationFee,proto3" json:"registration_fee,omitempty"` - DefaultPageLimit []uint64 `protobuf:"varint,29,rep,packed,name=default_page_limit,json=defaultPageLimit,proto3" json:"default_page_limit,omitempty"` - MaxPageLimit []uint64 `protobuf:"varint,30,rep,packed,name=max_page_limit,json=maxPageLimit,proto3" json:"max_page_limit,omitempty"` - MinEpochLengthRecordLimit []int64 `protobuf:"varint,31,rep,packed,name=min_epoch_length_record_limit,json=minEpochLengthRecordLimit,proto3" json:"min_epoch_length_record_limit,omitempty"` - BlocksPerMonth []uint64 `protobuf:"varint,32,rep,packed,name=blocks_per_month,json=blocksPerMonth,proto3" json:"blocks_per_month,omitempty"` - PRewardInference []string `protobuf:"bytes,33,rep,name=p_reward_inference,json=pRewardInference,proto3" json:"p_reward_inference,omitempty"` - PRewardForecast []string `protobuf:"bytes,34,rep,name=p_reward_forecast,json=pRewardForecast,proto3" json:"p_reward_forecast,omitempty"` - PRewardReputer []string `protobuf:"bytes,35,rep,name=p_reward_reputer,json=pRewardReputer,proto3" json:"p_reward_reputer,omitempty"` - CRewardInference []string `protobuf:"bytes,36,rep,name=c_reward_inference,json=cRewardInference,proto3" json:"c_reward_inference,omitempty"` - CRewardForecast []string `protobuf:"bytes,37,rep,name=c_reward_forecast,json=cRewardForecast,proto3" json:"c_reward_forecast,omitempty"` - CNorm []string `protobuf:"bytes,38,rep,name=c_norm,json=cNorm,proto3" json:"c_norm,omitempty"` - TopicFeeRevenueDecayRate []string `protobuf:"bytes,39,rep,name=topic_fee_revenue_decay_rate,json=topicFeeRevenueDecayRate,proto3" json:"topic_fee_revenue_decay_rate,omitempty"` - EpsilonReputer []string `protobuf:"bytes,40,rep,name=epsilon_reputer,json=epsilonReputer,proto3" json:"epsilon_reputer,omitempty"` - MinEffectiveTopicRevenue []string `protobuf:"bytes,41,rep,name=min_effective_topic_revenue,json=minEffectiveTopicRevenue,proto3" json:"min_effective_topic_revenue,omitempty"` + Version []string `protobuf:"bytes,1,rep,name=version,proto3" json:"version,omitempty"` + MaxSerializedMsgLength []int64 `protobuf:"varint,2,rep,packed,name=max_serialized_msg_length,json=maxSerializedMsgLength,proto3" json:"max_serialized_msg_length,omitempty"` + MinTopicWeight []string `protobuf:"bytes,3,rep,name=min_topic_weight,json=minTopicWeight,proto3" json:"min_topic_weight,omitempty"` + MaxTopicsPerBlock []uint64 `protobuf:"varint,4,rep,packed,name=max_topics_per_block,json=maxTopicsPerBlock,proto3" json:"max_topics_per_block,omitempty"` + RequiredMinimumStake []string `protobuf:"bytes,5,rep,name=required_minimum_stake,json=requiredMinimumStake,proto3" json:"required_minimum_stake,omitempty"` + RemoveStakeDelayWindow []int64 `protobuf:"varint,6,rep,packed,name=remove_stake_delay_window,json=removeStakeDelayWindow,proto3" json:"remove_stake_delay_window,omitempty"` + MinEpochLength []int64 `protobuf:"varint,7,rep,packed,name=min_epoch_length,json=minEpochLength,proto3" json:"min_epoch_length,omitempty"` + BetaEntropy []string `protobuf:"bytes,8,rep,name=beta_entropy,json=betaEntropy,proto3" json:"beta_entropy,omitempty"` + LearningRate []string `protobuf:"bytes,9,rep,name=learning_rate,json=learningRate,proto3" json:"learning_rate,omitempty"` + MaxGradientThreshold []string `protobuf:"bytes,10,rep,name=max_gradient_threshold,json=maxGradientThreshold,proto3" json:"max_gradient_threshold,omitempty"` + MinStakeFraction []string `protobuf:"bytes,11,rep,name=min_stake_fraction,json=minStakeFraction,proto3" json:"min_stake_fraction,omitempty"` + MaxUnfulfilledWorkerRequests []uint64 `protobuf:"varint,13,rep,packed,name=max_unfulfilled_worker_requests,json=maxUnfulfilledWorkerRequests,proto3" json:"max_unfulfilled_worker_requests,omitempty"` + MaxUnfulfilledReputerRequests []uint64 `protobuf:"varint,14,rep,packed,name=max_unfulfilled_reputer_requests,json=maxUnfulfilledReputerRequests,proto3" json:"max_unfulfilled_reputer_requests,omitempty"` + TopicRewardStakeImportance []string `protobuf:"bytes,15,rep,name=topic_reward_stake_importance,json=topicRewardStakeImportance,proto3" json:"topic_reward_stake_importance,omitempty"` + TopicRewardFeeRevenueImportance []string `protobuf:"bytes,16,rep,name=topic_reward_fee_revenue_importance,json=topicRewardFeeRevenueImportance,proto3" json:"topic_reward_fee_revenue_importance,omitempty"` + TopicRewardAlpha []string `protobuf:"bytes,17,rep,name=topic_reward_alpha,json=topicRewardAlpha,proto3" json:"topic_reward_alpha,omitempty"` + TaskRewardAlpha []string `protobuf:"bytes,18,rep,name=task_reward_alpha,json=taskRewardAlpha,proto3" json:"task_reward_alpha,omitempty"` + ValidatorsVsAlloraPercentReward []string `protobuf:"bytes,19,rep,name=validators_vs_allora_percent_reward,json=validatorsVsAlloraPercentReward,proto3" json:"validators_vs_allora_percent_reward,omitempty"` + MaxSamplesToScaleScores []uint64 `protobuf:"varint,20,rep,packed,name=max_samples_to_scale_scores,json=maxSamplesToScaleScores,proto3" json:"max_samples_to_scale_scores,omitempty"` + MaxTopInferersToReward []uint64 `protobuf:"varint,21,rep,packed,name=max_top_inferers_to_reward,json=maxTopInferersToReward,proto3" json:"max_top_inferers_to_reward,omitempty"` + MaxTopForecastersToReward []uint64 `protobuf:"varint,22,rep,packed,name=max_top_forecasters_to_reward,json=maxTopForecastersToReward,proto3" json:"max_top_forecasters_to_reward,omitempty"` + MaxTopReputersToReward []uint64 `protobuf:"varint,23,rep,packed,name=max_top_reputers_to_reward,json=maxTopReputersToReward,proto3" json:"max_top_reputers_to_reward,omitempty"` + CreateTopicFee []string `protobuf:"bytes,24,rep,name=create_topic_fee,json=createTopicFee,proto3" json:"create_topic_fee,omitempty"` + GradientDescentMaxIters []uint64 `protobuf:"varint,25,rep,packed,name=gradient_descent_max_iters,json=gradientDescentMaxIters,proto3" json:"gradient_descent_max_iters,omitempty"` + MaxRetriesToFulfilNoncesWorker []int64 `protobuf:"varint,26,rep,packed,name=max_retries_to_fulfil_nonces_worker,json=maxRetriesToFulfilNoncesWorker,proto3" json:"max_retries_to_fulfil_nonces_worker,omitempty"` + MaxRetriesToFulfilNoncesReputer []int64 `protobuf:"varint,27,rep,packed,name=max_retries_to_fulfil_nonces_reputer,json=maxRetriesToFulfilNoncesReputer,proto3" json:"max_retries_to_fulfil_nonces_reputer,omitempty"` + RegistrationFee []string `protobuf:"bytes,28,rep,name=registration_fee,json=registrationFee,proto3" json:"registration_fee,omitempty"` + DefaultPageLimit []uint64 `protobuf:"varint,29,rep,packed,name=default_page_limit,json=defaultPageLimit,proto3" json:"default_page_limit,omitempty"` + MaxPageLimit []uint64 `protobuf:"varint,30,rep,packed,name=max_page_limit,json=maxPageLimit,proto3" json:"max_page_limit,omitempty"` + MinEpochLengthRecordLimit []int64 `protobuf:"varint,31,rep,packed,name=min_epoch_length_record_limit,json=minEpochLengthRecordLimit,proto3" json:"min_epoch_length_record_limit,omitempty"` + BlocksPerMonth []uint64 `protobuf:"varint,32,rep,packed,name=blocks_per_month,json=blocksPerMonth,proto3" json:"blocks_per_month,omitempty"` + PRewardInference []string `protobuf:"bytes,33,rep,name=p_reward_inference,json=pRewardInference,proto3" json:"p_reward_inference,omitempty"` + PRewardForecast []string `protobuf:"bytes,34,rep,name=p_reward_forecast,json=pRewardForecast,proto3" json:"p_reward_forecast,omitempty"` + PRewardReputer []string `protobuf:"bytes,35,rep,name=p_reward_reputer,json=pRewardReputer,proto3" json:"p_reward_reputer,omitempty"` + CRewardInference []string `protobuf:"bytes,36,rep,name=c_reward_inference,json=cRewardInference,proto3" json:"c_reward_inference,omitempty"` + CRewardForecast []string `protobuf:"bytes,37,rep,name=c_reward_forecast,json=cRewardForecast,proto3" json:"c_reward_forecast,omitempty"` + CNorm []string `protobuf:"bytes,38,rep,name=c_norm,json=cNorm,proto3" json:"c_norm,omitempty"` + TopicFeeRevenueDecayRate []string `protobuf:"bytes,39,rep,name=topic_fee_revenue_decay_rate,json=topicFeeRevenueDecayRate,proto3" json:"topic_fee_revenue_decay_rate,omitempty"` + EpsilonReputer []string `protobuf:"bytes,40,rep,name=epsilon_reputer,json=epsilonReputer,proto3" json:"epsilon_reputer,omitempty"` + MinEffectiveTopicRevenue []string `protobuf:"bytes,41,rep,name=min_effective_topic_revenue,json=minEffectiveTopicRevenue,proto3" json:"min_effective_topic_revenue,omitempty"` + HalfMaxProcessStakeRemovalsEndBlock []uint64 `protobuf:"varint,42,rep,packed,name=half_max_process_stake_removals_end_block,json=halfMaxProcessStakeRemovalsEndBlock,proto3" json:"half_max_process_stake_removals_end_block,omitempty"` + DataSendingFee []string `protobuf:"bytes,43,rep,name=data_sending_fee,json=dataSendingFee,proto3" json:"data_sending_fee,omitempty"` + EpsilonSafeDiv []string `protobuf:"bytes,44,rep,name=epsilon_safe_div,json=epsilonSafeDiv,proto3" json:"epsilon_safe_div,omitempty"` } func (x *OptionalParams) Reset() { *x = OptionalParams{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[0] + mi := &file_emissions_v2_tx_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22008,7 +21737,7 @@ func (*OptionalParams) ProtoMessage() {} // Deprecated: Use OptionalParams.ProtoReflect.Descriptor instead. func (*OptionalParams) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{0} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{0} } func (x *OptionalParams) GetVersion() []string { @@ -22291,6 +22020,27 @@ func (x *OptionalParams) GetMinEffectiveTopicRevenue() []string { return nil } +func (x *OptionalParams) GetHalfMaxProcessStakeRemovalsEndBlock() []uint64 { + if x != nil { + return x.HalfMaxProcessStakeRemovalsEndBlock + } + return nil +} + +func (x *OptionalParams) GetDataSendingFee() []string { + if x != nil { + return x.DataSendingFee + } + return nil +} + +func (x *OptionalParams) GetEpsilonSafeDiv() []string { + if x != nil { + return x.EpsilonSafeDiv + } + return nil +} + type MsgUpdateParams struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -22303,7 +22053,7 @@ type MsgUpdateParams struct { func (x *MsgUpdateParams) Reset() { *x = MsgUpdateParams{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[1] + mi := &file_emissions_v2_tx_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22317,7 +22067,7 @@ func (*MsgUpdateParams) ProtoMessage() {} // Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead. func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{1} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{1} } func (x *MsgUpdateParams) GetSender() string { @@ -22343,7 +22093,7 @@ type MsgUpdateParamsResponse struct { func (x *MsgUpdateParamsResponse) Reset() { *x = MsgUpdateParamsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[2] + mi := &file_emissions_v2_tx_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22357,7 +22107,7 @@ func (*MsgUpdateParamsResponse) ProtoMessage() {} // Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead. func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{2} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{2} } type MsgCreateNewTopic struct { @@ -22366,25 +22116,22 @@ type MsgCreateNewTopic struct { unknownFields protoimpl.UnknownFields // creator is the message sender. - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - LossLogic string `protobuf:"bytes,3,opt,name=loss_logic,json=lossLogic,proto3" json:"loss_logic,omitempty"` - LossMethod string `protobuf:"bytes,4,opt,name=loss_method,json=lossMethod,proto3" json:"loss_method,omitempty"` - InferenceLogic string `protobuf:"bytes,5,opt,name=inference_logic,json=inferenceLogic,proto3" json:"inference_logic,omitempty"` - InferenceMethod string `protobuf:"bytes,6,opt,name=inference_method,json=inferenceMethod,proto3" json:"inference_method,omitempty"` - EpochLength int64 `protobuf:"varint,7,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` - GroundTruthLag int64 `protobuf:"varint,8,opt,name=ground_truth_lag,json=groundTruthLag,proto3" json:"ground_truth_lag,omitempty"` - DefaultArg string `protobuf:"bytes,9,opt,name=default_arg,json=defaultArg,proto3" json:"default_arg,omitempty"` - PNorm string `protobuf:"bytes,10,opt,name=p_norm,json=pNorm,proto3" json:"p_norm,omitempty"` - AlphaRegret string `protobuf:"bytes,11,opt,name=alpha_regret,json=alphaRegret,proto3" json:"alpha_regret,omitempty"` - AllowNegative bool `protobuf:"varint,12,opt,name=allow_negative,json=allowNegative,proto3" json:"allow_negative,omitempty"` - Epsilon string `protobuf:"bytes,13,opt,name=epsilon,proto3" json:"epsilon,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + LossMethod string `protobuf:"bytes,4,opt,name=loss_method,json=lossMethod,proto3" json:"loss_method,omitempty"` + EpochLength int64 `protobuf:"varint,7,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` + GroundTruthLag int64 `protobuf:"varint,8,opt,name=ground_truth_lag,json=groundTruthLag,proto3" json:"ground_truth_lag,omitempty"` + PNorm string `protobuf:"bytes,10,opt,name=p_norm,json=pNorm,proto3" json:"p_norm,omitempty"` + AlphaRegret string `protobuf:"bytes,11,opt,name=alpha_regret,json=alphaRegret,proto3" json:"alpha_regret,omitempty"` + AllowNegative bool `protobuf:"varint,12,opt,name=allow_negative,json=allowNegative,proto3" json:"allow_negative,omitempty"` + Epsilon string `protobuf:"bytes,13,opt,name=epsilon,proto3" json:"epsilon,omitempty"` + WorkerSubmissionWindow int64 `protobuf:"varint,14,opt,name=worker_submission_window,json=workerSubmissionWindow,proto3" json:"worker_submission_window,omitempty"` } func (x *MsgCreateNewTopic) Reset() { *x = MsgCreateNewTopic{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[3] + mi := &file_emissions_v2_tx_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22398,7 +22145,7 @@ func (*MsgCreateNewTopic) ProtoMessage() {} // Deprecated: Use MsgCreateNewTopic.ProtoReflect.Descriptor instead. func (*MsgCreateNewTopic) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{3} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{3} } func (x *MsgCreateNewTopic) GetCreator() string { @@ -22415,13 +22162,6 @@ func (x *MsgCreateNewTopic) GetMetadata() string { return "" } -func (x *MsgCreateNewTopic) GetLossLogic() string { - if x != nil { - return x.LossLogic - } - return "" -} - func (x *MsgCreateNewTopic) GetLossMethod() string { if x != nil { return x.LossMethod @@ -22429,20 +22169,6 @@ func (x *MsgCreateNewTopic) GetLossMethod() string { return "" } -func (x *MsgCreateNewTopic) GetInferenceLogic() string { - if x != nil { - return x.InferenceLogic - } - return "" -} - -func (x *MsgCreateNewTopic) GetInferenceMethod() string { - if x != nil { - return x.InferenceMethod - } - return "" -} - func (x *MsgCreateNewTopic) GetEpochLength() int64 { if x != nil { return x.EpochLength @@ -22457,13 +22183,6 @@ func (x *MsgCreateNewTopic) GetGroundTruthLag() int64 { return 0 } -func (x *MsgCreateNewTopic) GetDefaultArg() string { - if x != nil { - return x.DefaultArg - } - return "" -} - func (x *MsgCreateNewTopic) GetPNorm() string { if x != nil { return x.PNorm @@ -22492,6 +22211,13 @@ func (x *MsgCreateNewTopic) GetEpsilon() string { return "" } +func (x *MsgCreateNewTopic) GetWorkerSubmissionWindow() int64 { + if x != nil { + return x.WorkerSubmissionWindow + } + return 0 +} + type MsgCreateNewTopicResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -22503,7 +22229,7 @@ type MsgCreateNewTopicResponse struct { func (x *MsgCreateNewTopicResponse) Reset() { *x = MsgCreateNewTopicResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[4] + mi := &file_emissions_v2_tx_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22517,7 +22243,7 @@ func (*MsgCreateNewTopicResponse) ProtoMessage() {} // Deprecated: Use MsgCreateNewTopicResponse.ProtoReflect.Descriptor instead. func (*MsgCreateNewTopicResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{4} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{4} } func (x *MsgCreateNewTopicResponse) GetTopicId() uint64 { @@ -22527,174 +22253,142 @@ func (x *MsgCreateNewTopicResponse) GetTopicId() uint64 { return 0 } -type MsgInsertBulkReputerPayload struct { +type MsgInsertReputerPayload struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` - ReputerRequestNonce *ReputerRequestNonce `protobuf:"bytes,2,opt,name=reputer_request_nonce,json=reputerRequestNonce,proto3" json:"reputer_request_nonce,omitempty"` - TopicId uint64 `protobuf:"varint,3,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - ReputerValueBundles []*ReputerValueBundle `protobuf:"bytes,4,rep,name=reputer_value_bundles,json=reputerValueBundles,proto3" json:"reputer_value_bundles,omitempty"` + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + ReputerValueBundle *ReputerValueBundle `protobuf:"bytes,2,opt,name=reputer_value_bundle,json=reputerValueBundle,proto3" json:"reputer_value_bundle,omitempty"` } -func (x *MsgInsertBulkReputerPayload) Reset() { - *x = MsgInsertBulkReputerPayload{} +func (x *MsgInsertReputerPayload) Reset() { + *x = MsgInsertReputerPayload{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[5] + mi := &file_emissions_v2_tx_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgInsertBulkReputerPayload) String() string { +func (x *MsgInsertReputerPayload) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgInsertBulkReputerPayload) ProtoMessage() {} +func (*MsgInsertReputerPayload) ProtoMessage() {} -// Deprecated: Use MsgInsertBulkReputerPayload.ProtoReflect.Descriptor instead. -func (*MsgInsertBulkReputerPayload) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{5} +// Deprecated: Use MsgInsertReputerPayload.ProtoReflect.Descriptor instead. +func (*MsgInsertReputerPayload) Descriptor() ([]byte, []int) { + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{5} } -func (x *MsgInsertBulkReputerPayload) GetSender() string { +func (x *MsgInsertReputerPayload) GetSender() string { if x != nil { return x.Sender } return "" } -func (x *MsgInsertBulkReputerPayload) GetReputerRequestNonce() *ReputerRequestNonce { - if x != nil { - return x.ReputerRequestNonce - } - return nil -} - -func (x *MsgInsertBulkReputerPayload) GetTopicId() uint64 { - if x != nil { - return x.TopicId - } - return 0 -} - -func (x *MsgInsertBulkReputerPayload) GetReputerValueBundles() []*ReputerValueBundle { +func (x *MsgInsertReputerPayload) GetReputerValueBundle() *ReputerValueBundle { if x != nil { - return x.ReputerValueBundles + return x.ReputerValueBundle } return nil } -type MsgInsertBulkReputerPayloadResponse struct { +type MsgInsertReputerPayloadResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgInsertBulkReputerPayloadResponse) Reset() { - *x = MsgInsertBulkReputerPayloadResponse{} +func (x *MsgInsertReputerPayloadResponse) Reset() { + *x = MsgInsertReputerPayloadResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[6] + mi := &file_emissions_v2_tx_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgInsertBulkReputerPayloadResponse) String() string { +func (x *MsgInsertReputerPayloadResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgInsertBulkReputerPayloadResponse) ProtoMessage() {} +func (*MsgInsertReputerPayloadResponse) ProtoMessage() {} -// Deprecated: Use MsgInsertBulkReputerPayloadResponse.ProtoReflect.Descriptor instead. -func (*MsgInsertBulkReputerPayloadResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{6} +// Deprecated: Use MsgInsertReputerPayloadResponse.ProtoReflect.Descriptor instead. +func (*MsgInsertReputerPayloadResponse) Descriptor() ([]byte, []int) { + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{6} } -type MsgInsertBulkWorkerPayload struct { +type MsgInsertWorkerPayload struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` - Nonce *Nonce `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` - TopicId uint64 `protobuf:"varint,3,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - WorkerDataBundles []*WorkerDataBundle `protobuf:"bytes,4,rep,name=worker_data_bundles,json=workerDataBundles,proto3" json:"worker_data_bundles,omitempty"` + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + WorkerDataBundle *WorkerDataBundle `protobuf:"bytes,2,opt,name=worker_data_bundle,json=workerDataBundle,proto3" json:"worker_data_bundle,omitempty"` } -func (x *MsgInsertBulkWorkerPayload) Reset() { - *x = MsgInsertBulkWorkerPayload{} +func (x *MsgInsertWorkerPayload) Reset() { + *x = MsgInsertWorkerPayload{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[7] + mi := &file_emissions_v2_tx_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgInsertBulkWorkerPayload) String() string { +func (x *MsgInsertWorkerPayload) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgInsertBulkWorkerPayload) ProtoMessage() {} +func (*MsgInsertWorkerPayload) ProtoMessage() {} -// Deprecated: Use MsgInsertBulkWorkerPayload.ProtoReflect.Descriptor instead. -func (*MsgInsertBulkWorkerPayload) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{7} +// Deprecated: Use MsgInsertWorkerPayload.ProtoReflect.Descriptor instead. +func (*MsgInsertWorkerPayload) Descriptor() ([]byte, []int) { + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{7} } -func (x *MsgInsertBulkWorkerPayload) GetSender() string { +func (x *MsgInsertWorkerPayload) GetSender() string { if x != nil { return x.Sender } return "" } -func (x *MsgInsertBulkWorkerPayload) GetNonce() *Nonce { - if x != nil { - return x.Nonce - } - return nil -} - -func (x *MsgInsertBulkWorkerPayload) GetTopicId() uint64 { +func (x *MsgInsertWorkerPayload) GetWorkerDataBundle() *WorkerDataBundle { if x != nil { - return x.TopicId - } - return 0 -} - -func (x *MsgInsertBulkWorkerPayload) GetWorkerDataBundles() []*WorkerDataBundle { - if x != nil { - return x.WorkerDataBundles + return x.WorkerDataBundle } return nil } -type MsgInsertBulkWorkerPayloadResponse struct { +type MsgInsertWorkerPayloadResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *MsgInsertBulkWorkerPayloadResponse) Reset() { - *x = MsgInsertBulkWorkerPayloadResponse{} +func (x *MsgInsertWorkerPayloadResponse) Reset() { + *x = MsgInsertWorkerPayloadResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[8] + mi := &file_emissions_v2_tx_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *MsgInsertBulkWorkerPayloadResponse) String() string { +func (x *MsgInsertWorkerPayloadResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*MsgInsertBulkWorkerPayloadResponse) ProtoMessage() {} +func (*MsgInsertWorkerPayloadResponse) ProtoMessage() {} -// Deprecated: Use MsgInsertBulkWorkerPayloadResponse.ProtoReflect.Descriptor instead. -func (*MsgInsertBulkWorkerPayloadResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{8} +// Deprecated: Use MsgInsertWorkerPayloadResponse.ProtoReflect.Descriptor instead. +func (*MsgInsertWorkerPayloadResponse) Descriptor() ([]byte, []int) { + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{8} } type MsgRegister struct { @@ -22702,18 +22396,16 @@ type MsgRegister struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` - LibP2PKey string `protobuf:"bytes,2,opt,name=lib_p2p_key,json=libP2pKey,proto3" json:"lib_p2p_key,omitempty"` - MultiAddress string `protobuf:"bytes,3,opt,name=multi_address,json=multiAddress,proto3" json:"multi_address,omitempty"` - TopicId uint64 `protobuf:"varint,4,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` - IsReputer bool `protobuf:"varint,6,opt,name=is_reputer,json=isReputer,proto3" json:"is_reputer,omitempty"` + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + TopicId uint64 `protobuf:"varint,4,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` + IsReputer bool `protobuf:"varint,6,opt,name=is_reputer,json=isReputer,proto3" json:"is_reputer,omitempty"` } func (x *MsgRegister) Reset() { *x = MsgRegister{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[9] + mi := &file_emissions_v2_tx_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22727,7 +22419,7 @@ func (*MsgRegister) ProtoMessage() {} // Deprecated: Use MsgRegister.ProtoReflect.Descriptor instead. func (*MsgRegister) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{9} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{9} } func (x *MsgRegister) GetSender() string { @@ -22737,20 +22429,6 @@ func (x *MsgRegister) GetSender() string { return "" } -func (x *MsgRegister) GetLibP2PKey() string { - if x != nil { - return x.LibP2PKey - } - return "" -} - -func (x *MsgRegister) GetMultiAddress() string { - if x != nil { - return x.MultiAddress - } - return "" -} - func (x *MsgRegister) GetTopicId() uint64 { if x != nil { return x.TopicId @@ -22784,7 +22462,7 @@ type MsgRegisterResponse struct { func (x *MsgRegisterResponse) Reset() { *x = MsgRegisterResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[10] + mi := &file_emissions_v2_tx_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22798,7 +22476,7 @@ func (*MsgRegisterResponse) ProtoMessage() {} // Deprecated: Use MsgRegisterResponse.ProtoReflect.Descriptor instead. func (*MsgRegisterResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{10} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{10} } func (x *MsgRegisterResponse) GetSuccess() bool { @@ -22828,7 +22506,7 @@ type MsgRemoveRegistration struct { func (x *MsgRemoveRegistration) Reset() { *x = MsgRemoveRegistration{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[11] + mi := &file_emissions_v2_tx_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22842,7 +22520,7 @@ func (*MsgRemoveRegistration) ProtoMessage() {} // Deprecated: Use MsgRemoveRegistration.ProtoReflect.Descriptor instead. func (*MsgRemoveRegistration) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{11} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{11} } func (x *MsgRemoveRegistration) GetSender() string { @@ -22878,7 +22556,7 @@ type MsgRemoveRegistrationResponse struct { func (x *MsgRemoveRegistrationResponse) Reset() { *x = MsgRemoveRegistrationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[12] + mi := &file_emissions_v2_tx_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22892,7 +22570,7 @@ func (*MsgRemoveRegistrationResponse) ProtoMessage() {} // Deprecated: Use MsgRemoveRegistrationResponse.ProtoReflect.Descriptor instead. func (*MsgRemoveRegistrationResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{12} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{12} } func (x *MsgRemoveRegistrationResponse) GetSuccess() bool { @@ -22922,7 +22600,7 @@ type MsgAddStake struct { func (x *MsgAddStake) Reset() { *x = MsgAddStake{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[13] + mi := &file_emissions_v2_tx_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22936,7 +22614,7 @@ func (*MsgAddStake) ProtoMessage() {} // Deprecated: Use MsgAddStake.ProtoReflect.Descriptor instead. func (*MsgAddStake) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{13} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{13} } func (x *MsgAddStake) GetSender() string { @@ -22969,7 +22647,7 @@ type MsgAddStakeResponse struct { func (x *MsgAddStakeResponse) Reset() { *x = MsgAddStakeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[14] + mi := &file_emissions_v2_tx_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -22983,7 +22661,7 @@ func (*MsgAddStakeResponse) ProtoMessage() {} // Deprecated: Use MsgAddStakeResponse.ProtoReflect.Descriptor instead. func (*MsgAddStakeResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{14} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{14} } type MsgRemoveStake struct { @@ -22999,7 +22677,7 @@ type MsgRemoveStake struct { func (x *MsgRemoveStake) Reset() { *x = MsgRemoveStake{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[15] + mi := &file_emissions_v2_tx_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23013,7 +22691,7 @@ func (*MsgRemoveStake) ProtoMessage() {} // Deprecated: Use MsgRemoveStake.ProtoReflect.Descriptor instead. func (*MsgRemoveStake) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{15} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{15} } func (x *MsgRemoveStake) GetSender() string { @@ -23046,7 +22724,7 @@ type MsgRemoveStakeResponse struct { func (x *MsgRemoveStakeResponse) Reset() { *x = MsgRemoveStakeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[16] + mi := &file_emissions_v2_tx_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23060,7 +22738,7 @@ func (*MsgRemoveStakeResponse) ProtoMessage() {} // Deprecated: Use MsgRemoveStakeResponse.ProtoReflect.Descriptor instead. func (*MsgRemoveStakeResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{16} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{16} } type MsgCancelRemoveStake struct { @@ -23075,7 +22753,7 @@ type MsgCancelRemoveStake struct { func (x *MsgCancelRemoveStake) Reset() { *x = MsgCancelRemoveStake{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[17] + mi := &file_emissions_v2_tx_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23089,7 +22767,7 @@ func (*MsgCancelRemoveStake) ProtoMessage() {} // Deprecated: Use MsgCancelRemoveStake.ProtoReflect.Descriptor instead. func (*MsgCancelRemoveStake) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{17} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{17} } func (x *MsgCancelRemoveStake) GetSender() string { @@ -23115,7 +22793,7 @@ type MsgCancelRemoveStakeResponse struct { func (x *MsgCancelRemoveStakeResponse) Reset() { *x = MsgCancelRemoveStakeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[18] + mi := &file_emissions_v2_tx_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23129,7 +22807,7 @@ func (*MsgCancelRemoveStakeResponse) ProtoMessage() {} // Deprecated: Use MsgCancelRemoveStakeResponse.ProtoReflect.Descriptor instead. func (*MsgCancelRemoveStakeResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{18} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{18} } type MsgDelegateStake struct { @@ -23146,7 +22824,7 @@ type MsgDelegateStake struct { func (x *MsgDelegateStake) Reset() { *x = MsgDelegateStake{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[19] + mi := &file_emissions_v2_tx_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23160,7 +22838,7 @@ func (*MsgDelegateStake) ProtoMessage() {} // Deprecated: Use MsgDelegateStake.ProtoReflect.Descriptor instead. func (*MsgDelegateStake) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{19} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{19} } func (x *MsgDelegateStake) GetSender() string { @@ -23200,7 +22878,7 @@ type MsgDelegateStakeResponse struct { func (x *MsgDelegateStakeResponse) Reset() { *x = MsgDelegateStakeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[20] + mi := &file_emissions_v2_tx_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23214,7 +22892,7 @@ func (*MsgDelegateStakeResponse) ProtoMessage() {} // Deprecated: Use MsgDelegateStakeResponse.ProtoReflect.Descriptor instead. func (*MsgDelegateStakeResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{20} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{20} } type MsgRemoveDelegateStake struct { @@ -23231,7 +22909,7 @@ type MsgRemoveDelegateStake struct { func (x *MsgRemoveDelegateStake) Reset() { *x = MsgRemoveDelegateStake{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[21] + mi := &file_emissions_v2_tx_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23245,7 +22923,7 @@ func (*MsgRemoveDelegateStake) ProtoMessage() {} // Deprecated: Use MsgRemoveDelegateStake.ProtoReflect.Descriptor instead. func (*MsgRemoveDelegateStake) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{21} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{21} } func (x *MsgRemoveDelegateStake) GetSender() string { @@ -23285,7 +22963,7 @@ type MsgRemoveDelegateStakeResponse struct { func (x *MsgRemoveDelegateStakeResponse) Reset() { *x = MsgRemoveDelegateStakeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[22] + mi := &file_emissions_v2_tx_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23299,7 +22977,7 @@ func (*MsgRemoveDelegateStakeResponse) ProtoMessage() {} // Deprecated: Use MsgRemoveDelegateStakeResponse.ProtoReflect.Descriptor instead. func (*MsgRemoveDelegateStakeResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{22} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{22} } type MsgCancelRemoveDelegateStake struct { @@ -23316,7 +22994,7 @@ type MsgCancelRemoveDelegateStake struct { func (x *MsgCancelRemoveDelegateStake) Reset() { *x = MsgCancelRemoveDelegateStake{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[23] + mi := &file_emissions_v2_tx_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23330,7 +23008,7 @@ func (*MsgCancelRemoveDelegateStake) ProtoMessage() {} // Deprecated: Use MsgCancelRemoveDelegateStake.ProtoReflect.Descriptor instead. func (*MsgCancelRemoveDelegateStake) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{23} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{23} } func (x *MsgCancelRemoveDelegateStake) GetSender() string { @@ -23370,7 +23048,7 @@ type MsgCancelRemoveDelegateStakeResponse struct { func (x *MsgCancelRemoveDelegateStakeResponse) Reset() { *x = MsgCancelRemoveDelegateStakeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[24] + mi := &file_emissions_v2_tx_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23384,7 +23062,7 @@ func (*MsgCancelRemoveDelegateStakeResponse) ProtoMessage() {} // Deprecated: Use MsgCancelRemoveDelegateStakeResponse.ProtoReflect.Descriptor instead. func (*MsgCancelRemoveDelegateStakeResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{24} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{24} } // Inferences are requested by consumers who fund topics by sending ALLO to @@ -23402,7 +23080,7 @@ type MsgFundTopic struct { func (x *MsgFundTopic) Reset() { *x = MsgFundTopic{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[25] + mi := &file_emissions_v2_tx_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23416,7 +23094,7 @@ func (*MsgFundTopic) ProtoMessage() {} // Deprecated: Use MsgFundTopic.ProtoReflect.Descriptor instead. func (*MsgFundTopic) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{25} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{25} } func (x *MsgFundTopic) GetSender() string { @@ -23449,7 +23127,7 @@ type MsgFundTopicResponse struct { func (x *MsgFundTopicResponse) Reset() { *x = MsgFundTopicResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[26] + mi := &file_emissions_v2_tx_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23463,7 +23141,7 @@ func (*MsgFundTopicResponse) ProtoMessage() {} // Deprecated: Use MsgFundTopicResponse.ProtoReflect.Descriptor instead. func (*MsgFundTopicResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{26} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{26} } type MsgAddToWhitelistAdmin struct { @@ -23478,7 +23156,7 @@ type MsgAddToWhitelistAdmin struct { func (x *MsgAddToWhitelistAdmin) Reset() { *x = MsgAddToWhitelistAdmin{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[27] + mi := &file_emissions_v2_tx_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23492,7 +23170,7 @@ func (*MsgAddToWhitelistAdmin) ProtoMessage() {} // Deprecated: Use MsgAddToWhitelistAdmin.ProtoReflect.Descriptor instead. func (*MsgAddToWhitelistAdmin) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{27} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{27} } func (x *MsgAddToWhitelistAdmin) GetSender() string { @@ -23518,7 +23196,7 @@ type MsgAddToWhitelistAdminResponse struct { func (x *MsgAddToWhitelistAdminResponse) Reset() { *x = MsgAddToWhitelistAdminResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[28] + mi := &file_emissions_v2_tx_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23532,7 +23210,7 @@ func (*MsgAddToWhitelistAdminResponse) ProtoMessage() {} // Deprecated: Use MsgAddToWhitelistAdminResponse.ProtoReflect.Descriptor instead. func (*MsgAddToWhitelistAdminResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{28} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{28} } type MsgRemoveFromWhitelistAdmin struct { @@ -23547,7 +23225,7 @@ type MsgRemoveFromWhitelistAdmin struct { func (x *MsgRemoveFromWhitelistAdmin) Reset() { *x = MsgRemoveFromWhitelistAdmin{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[29] + mi := &file_emissions_v2_tx_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23561,7 +23239,7 @@ func (*MsgRemoveFromWhitelistAdmin) ProtoMessage() {} // Deprecated: Use MsgRemoveFromWhitelistAdmin.ProtoReflect.Descriptor instead. func (*MsgRemoveFromWhitelistAdmin) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{29} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{29} } func (x *MsgRemoveFromWhitelistAdmin) GetSender() string { @@ -23587,7 +23265,7 @@ type MsgRemoveFromWhitelistAdminResponse struct { func (x *MsgRemoveFromWhitelistAdminResponse) Reset() { *x = MsgRemoveFromWhitelistAdminResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[30] + mi := &file_emissions_v2_tx_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23601,7 +23279,7 @@ func (*MsgRemoveFromWhitelistAdminResponse) ProtoMessage() {} // Deprecated: Use MsgRemoveFromWhitelistAdminResponse.ProtoReflect.Descriptor instead. func (*MsgRemoveFromWhitelistAdminResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{30} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{30} } type MsgRewardDelegateStakeResponse struct { @@ -23613,7 +23291,7 @@ type MsgRewardDelegateStakeResponse struct { func (x *MsgRewardDelegateStakeResponse) Reset() { *x = MsgRewardDelegateStakeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[31] + mi := &file_emissions_v2_tx_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23627,7 +23305,7 @@ func (*MsgRewardDelegateStakeResponse) ProtoMessage() {} // Deprecated: Use MsgRewardDelegateStakeResponse.ProtoReflect.Descriptor instead. func (*MsgRewardDelegateStakeResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{31} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{31} } type MsgRewardDelegateStake struct { @@ -23643,7 +23321,7 @@ type MsgRewardDelegateStake struct { func (x *MsgRewardDelegateStake) Reset() { *x = MsgRewardDelegateStake{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_tx_proto_msgTypes[32] + mi := &file_emissions_v2_tx_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -23657,7 +23335,7 @@ func (*MsgRewardDelegateStake) ProtoMessage() {} // Deprecated: Use MsgRewardDelegateStake.ProtoReflect.Descriptor instead. func (*MsgRewardDelegateStake) Descriptor() ([]byte, []int) { - return file_emissions_v1_tx_proto_rawDescGZIP(), []int{32} + return file_emissions_v2_tx_proto_rawDescGZIP(), []int{32} } func (x *MsgRewardDelegateStake) GetSender() string { @@ -23681,24 +23359,24 @@ func (x *MsgRewardDelegateStake) GetReputer() string { return "" } -var File_emissions_v1_tx_proto protoreflect.FileDescriptor +var File_emissions_v2_tx_proto protoreflect.FileDescriptor -var file_emissions_v1_tx_proto_rawDesc = []byte{ - 0x0a, 0x15, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, +var file_emissions_v2_tx_proto_rawDesc = []byte{ + 0x0a, 0x15, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x17, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2f, 0x6d, 0x73, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x19, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, - 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa6, 0x1a, + 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x19, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, + 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbd, 0x1c, 0x0a, 0x0e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x19, 0x6d, 0x61, @@ -23909,195 +23587,128 @@ var file_emissions_v1_tx_proto_rawDesc = []byte{ 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x18, 0x6d, 0x69, 0x6e, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, - 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x22, 0x6c, 0x0a, 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x12, 0x34, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, - 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x22, 0x19, 0x0a, 0x17, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0xff, 0x04, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x65, 0x77, - 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, - 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, - 0x6f, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x6c, 0x6f, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, - 0x73, 0x73, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x6c, 0x6f, 0x73, 0x73, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x69, - 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4c, - 0x6f, 0x67, 0x69, 0x63, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, - 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, - 0x21, 0x0a, 0x0c, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x4c, 0x65, 0x6e, 0x67, - 0x74, 0x68, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x74, 0x72, 0x75, - 0x74, 0x68, 0x5f, 0x6c, 0x61, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x67, 0x72, - 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x72, 0x75, 0x74, 0x68, 0x4c, 0x61, 0x67, 0x12, 0x1f, 0x0a, 0x0b, - 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x61, 0x72, 0x67, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x41, 0x72, 0x67, 0x12, 0x4e, 0x0a, - 0x06, 0x70, 0x5f, 0x6e, 0x6f, 0x72, 0x6d, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, - 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, - 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, - 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x05, 0x70, 0x4e, 0x6f, 0x72, 0x6d, 0x12, 0x5a, 0x0a, - 0x0c, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x5f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, - 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0b, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, - 0x6f, 0x77, 0x5f, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, - 0x12, 0x51, 0x0a, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x07, 0x65, 0x70, 0x73, 0x69, - 0x6c, 0x6f, 0x6e, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, - 0x72, 0x22, 0x36, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x65, - 0x77, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, - 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x8a, 0x02, 0x0a, 0x1b, 0x4d, 0x73, - 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x42, 0x75, 0x6c, 0x6b, 0x52, 0x65, 0x70, 0x75, 0x74, - 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x12, 0x55, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x6f, - 0x6e, 0x63, 0x65, 0x52, 0x13, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x13, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, - 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x25, 0x0a, 0x23, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x73, - 0x65, 0x72, 0x74, 0x42, 0x75, 0x6c, 0x6b, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x50, 0x61, - 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xd7, 0x01, - 0x0a, 0x1a, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x42, 0x75, 0x6c, 0x6b, 0x57, - 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x16, 0x0a, 0x06, - 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, - 0x6e, 0x64, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x12, - 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x4e, 0x0a, 0x13, 0x77, 0x6f, - 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, - 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x44, 0x61, 0x74, - 0x61, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x44, - 0x61, 0x74, 0x61, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, - 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x24, 0x0a, 0x22, 0x4d, 0x73, 0x67, 0x49, 0x6e, - 0x73, 0x65, 0x72, 0x74, 0x42, 0x75, 0x6c, 0x6b, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x50, 0x61, - 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc7, 0x01, - 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x16, 0x0a, + 0x65, 0x76, 0x65, 0x6e, 0x75, 0x65, 0x12, 0x56, 0x0a, 0x29, 0x68, 0x61, 0x6c, 0x66, 0x5f, 0x6d, + 0x61, 0x78, 0x5f, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x73, 0x74, 0x61, 0x6b, 0x65, + 0x5f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x62, 0x6c, + 0x6f, 0x63, 0x6b, 0x18, 0x2a, 0x20, 0x03, 0x28, 0x04, 0x52, 0x23, 0x68, 0x61, 0x6c, 0x66, 0x4d, + 0x61, 0x78, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x61, 0x6c, 0x73, 0x45, 0x6e, 0x64, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x12, 0x5a, + 0x0a, 0x10, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x66, + 0x65, 0x65, 0x18, 0x2b, 0x20, 0x03, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, + 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, + 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, + 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, + 0x53, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x46, 0x65, 0x65, 0x12, 0x61, 0x0a, 0x10, 0x65, 0x70, + 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x5f, 0x73, 0x61, 0x66, 0x65, 0x5f, 0x64, 0x69, 0x76, 0x18, 0x2c, + 0x20, 0x03, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0e, 0x65, + 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x53, 0x61, 0x66, 0x65, 0x44, 0x69, 0x76, 0x22, 0x6c, 0x0a, + 0x0f, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, + 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x34, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, + 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x3a, 0x0b, + 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x19, 0x0a, 0x17, 0x4d, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xf9, 0x04, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4e, 0x65, 0x77, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6c, 0x6f, 0x73, 0x73, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x5f, 0x6c, 0x65, 0x6e, + 0x67, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x65, 0x70, 0x6f, 0x63, 0x68, + 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, + 0x5f, 0x74, 0x72, 0x75, 0x74, 0x68, 0x5f, 0x6c, 0x61, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x72, 0x75, 0x74, 0x68, 0x4c, 0x61, 0x67, + 0x12, 0x4e, 0x0a, 0x06, 0x70, 0x5f, 0x6e, 0x6f, 0x72, 0x6d, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x05, 0x70, 0x4e, 0x6f, 0x72, 0x6d, + 0x12, 0x5a, 0x0a, 0x0c, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x5f, 0x72, 0x65, 0x67, 0x72, 0x65, 0x74, + 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, + 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, + 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, + 0x0b, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x52, 0x65, 0x67, 0x72, 0x65, 0x74, 0x12, 0x25, 0x0a, 0x0e, + 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x5f, 0x6e, 0x65, 0x67, 0x61, 0x74, 0x69, 0x76, 0x65, 0x18, 0x0c, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4e, 0x65, 0x67, 0x61, 0x74, + 0x69, 0x76, 0x65, 0x12, 0x51, 0x0a, 0x07, 0x65, 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, + 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x07, 0x65, + 0x70, 0x73, 0x69, 0x6c, 0x6f, 0x6e, 0x12, 0x38, 0x0a, 0x18, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x5f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x77, 0x69, 0x6e, 0x64, + 0x6f, 0x77, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, + 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x4a, 0x04, + 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x4a, 0x04, 0x08, 0x06, 0x10, 0x07, + 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x52, 0x0a, 0x6c, 0x6f, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, + 0x69, 0x63, 0x52, 0x0f, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6c, 0x6f, + 0x67, 0x69, 0x63, 0x52, 0x10, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x6d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0b, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x61, + 0x72, 0x67, 0x22, 0x36, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, + 0x65, 0x77, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x22, 0x92, 0x01, 0x0a, 0x17, 0x4d, + 0x73, 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x50, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x52, + 0x0a, 0x14, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, + 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x70, 0x75, + 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x12, + 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, + 0x21, 0x0a, 0x1f, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x70, 0x75, + 0x74, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x8b, 0x01, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, + 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0b, 0x6c, 0x69, 0x62, 0x5f, 0x70, 0x32, 0x70, - 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6c, 0x69, 0x62, 0x50, - 0x32, 0x70, 0x4b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6d, 0x75, - 0x6c, 0x74, 0x69, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x4c, 0x0a, 0x12, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, + 0x64, 0x61, 0x74, 0x61, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x52, 0x10, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x57, 0x6f, 0x72, + 0x6b, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0xaa, 0x01, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, - 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x49, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x22, 0x76, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, - 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x1d, - 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x3a, 0x0b, 0x82, - 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x53, 0x0a, 0x1d, 0x4d, 0x73, + 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, + 0x03, 0x10, 0x04, 0x52, 0x0b, 0x6c, 0x69, 0x62, 0x5f, 0x70, 0x32, 0x70, 0x5f, 0x6b, 0x65, 0x79, + 0x52, 0x0d, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, + 0x49, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x76, 0x0a, 0x15, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, - 0x97, 0x01, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x49, 0x64, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, - 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, - 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, - 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x0b, 0x82, 0xe7, - 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x15, 0x0a, 0x13, 0x4d, 0x73, 0x67, - 0x41, 0x64, 0x64, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x9a, 0x01, 0x0a, 0x0e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x74, - 0x61, 0x6b, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, - 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, - 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, - 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, - 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, - 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x18, 0x0a, - 0x16, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x56, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x43, 0x61, - 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, - 0x49, 0x64, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, - 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0xb6, 0x01, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, - 0x74, 0x61, 0x6b, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, - 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, - 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, - 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, - 0x72, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, - 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, - 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, - 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, - 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x44, - 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xbc, 0x01, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, - 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x06, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, - 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, - 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, - 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, - 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, - 0x64, 0x65, 0x72, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, - 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x19, - 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x6c, - 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, - 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, - 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, - 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x26, - 0x0a, 0x24, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x46, 0x75, - 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, + 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x70, + 0x75, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x52, 0x65, + 0x70, 0x75, 0x74, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x22, 0x53, 0x0a, 0x1d, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x97, 0x01, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x41, + 0x64, 0x64, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, @@ -24106,256 +23717,320 @@ var file_emissions_v1_tx_proto_rawDesc = []byte{ 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, - 0x72, 0x22, 0x16, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, - 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x57, 0x0a, 0x16, 0x4d, 0x73, 0x67, - 0x41, 0x64, 0x64, 0x54, 0x6f, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x57, 0x68, - 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, - 0x6d, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, - 0x65, 0x72, 0x22, 0x25, 0x0a, 0x23, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, - 0x72, 0x6f, 0x6d, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, - 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, - 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x72, 0x0a, 0x16, 0x4d, - 0x73, 0x67, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, - 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, - 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, - 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, - 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x32, - 0xc1, 0x0c, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x54, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x25, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x75, 0x0a, - 0x17, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x42, 0x75, 0x6c, 0x6b, 0x57, 0x6f, 0x72, 0x6b, 0x65, - 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x28, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, - 0x74, 0x42, 0x75, 0x6c, 0x6b, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x1a, 0x30, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x42, 0x75, 0x6c, 0x6b, 0x57, - 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x65, - 0x77, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, - 0x65, 0x77, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x1a, 0x27, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x4e, 0x65, 0x77, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x48, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x19, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, - 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x21, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x12, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x23, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, - 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x78, 0x0a, 0x18, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x42, 0x75, 0x6c, 0x6b, - 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x29, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x42, 0x75, 0x6c, 0x6b, 0x52, 0x65, 0x70, 0x75, 0x74, - 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x1a, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x73, 0x65, - 0x72, 0x74, 0x42, 0x75, 0x6c, 0x6b, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x50, 0x61, 0x79, - 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x08, - 0x41, 0x64, 0x64, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x19, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x74, - 0x61, 0x6b, 0x65, 0x1a, 0x21, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0b, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x1c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x74, - 0x61, 0x6b, 0x65, 0x1a, 0x24, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x11, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x22, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x74, 0x61, - 0x6b, 0x65, 0x1a, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, - 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, - 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x1a, - 0x26, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, - 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x13, 0x52, 0x65, 0x77, 0x61, 0x72, - 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x24, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, - 0x74, 0x61, 0x6b, 0x65, 0x1a, 0x2c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, 0x6c, - 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x69, 0x0a, 0x13, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x65, - 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x24, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x1a, - 0x2c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, + 0x72, 0x22, 0x15, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9a, 0x01, 0x0a, 0x0e, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x48, + 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, + 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, + 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, + 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, + 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x18, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x56, 0x0a, 0x14, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, + 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, + 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, + 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x1e, 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x43, 0x61, + 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb6, 0x01, 0x0a, 0x10, 0x4d, 0x73, 0x67, 0x44, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x16, 0x0a, 0x06, + 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, + 0x6e, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, + 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, + 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, + 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, + 0x75, 0x6e, 0x74, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, + 0x22, 0x1a, 0x0a, 0x18, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, + 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xbc, 0x01, 0x0a, + 0x16, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, + 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, + 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, + 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x49, 0x64, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, + 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x49, 0x6e, 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, + 0x74, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x0b, + 0x82, 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, - 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, - 0x19, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x65, 0x6c, - 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x2a, 0x2e, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, + 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x96, 0x01, + 0x0a, 0x1c, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, + 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, + 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, + 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x64, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x6f, 0x72, 0x12, + 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, 0x06, + 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x26, 0x0a, 0x24, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, - 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x1a, 0x32, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, - 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, - 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x09, 0x46, 0x75, - 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6e, 0x64, 0x54, 0x6f, - 0x70, 0x69, 0x63, 0x1a, 0x22, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x54, 0x6f, - 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x24, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x98, + 0x01, 0x0a, 0x0c, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, + 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x49, 0x64, 0x12, 0x48, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x42, 0x30, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x15, 0x63, 0x6f, 0x73, 0x6d, + 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x49, 0x6e, + 0x74, 0xd2, 0xb4, 0x2d, 0x0a, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0xa8, + 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x3a, 0x0b, 0x82, 0xe7, + 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x16, 0x0a, 0x14, 0x4d, 0x73, 0x67, + 0x46, 0x75, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x57, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x57, 0x68, 0x69, + 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x0b, 0x82, + 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x2c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x57, 0x68, 0x69, 0x74, - 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x78, 0x0a, 0x18, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, - 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x29, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, + 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x0a, 0x1b, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x57, 0x68, 0x69, + 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, + 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x3a, 0x0b, 0x82, + 0xe7, 0xb0, 0x2a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x22, 0x25, 0x0a, 0x23, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x57, 0x68, 0x69, 0x74, 0x65, - 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, - 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, - 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, + 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x20, 0x0a, 0x1e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x72, 0x0a, 0x16, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, + 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, + 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x72, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x3a, 0x0b, 0x82, 0xe7, 0xb0, 0x2a, + 0x06, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x32, 0xa9, 0x0c, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, + 0x54, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, + 0x1d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, + 0x73, 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x1a, 0x25, + 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, + 0x67, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, + 0x65, 0x77, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1f, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x4e, 0x65, 0x77, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x1a, 0x27, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x4e, 0x65, 0x77, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x48, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x19, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x21, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, + 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x12, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x23, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x2b, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x08, 0x41, 0x64, 0x64, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, + 0x19, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, + 0x73, 0x67, 0x41, 0x64, 0x64, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x1a, 0x21, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, + 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, + 0x0b, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x1c, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, + 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x1a, 0x24, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x63, 0x0a, 0x11, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x22, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x1a, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x1a, 0x26, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, + 0x0a, 0x13, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, + 0x53, 0x74, 0x61, 0x6b, 0x65, 0x12, 0x24, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, + 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x1a, 0x2c, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, + 0x77, 0x61, 0x72, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x13, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, + 0x12, 0x24, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, + 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x1a, 0x2c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, + 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7b, 0x0a, 0x19, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, + 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, + 0x65, 0x12, 0x2a, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, + 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x44, 0x65, 0x6c, 0x65, 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x1a, 0x32, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x44, 0x65, 0x6c, 0x65, + 0x67, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4b, 0x0a, 0x09, 0x46, 0x75, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x1a, + 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, + 0x67, 0x46, 0x75, 0x6e, 0x64, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x1a, 0x22, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x46, 0x75, 0x6e, + 0x64, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, + 0x0a, 0x13, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x24, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, 0x64, 0x54, 0x6f, 0x57, 0x68, 0x69, + 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x1a, 0x2c, 0x2e, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x64, + 0x64, 0x54, 0x6f, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x78, 0x0a, 0x18, 0x52, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, + 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x29, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x72, + 0x6f, 0x6d, 0x57, 0x68, 0x69, 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, + 0x1a, 0x31, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x4d, 0x73, 0x67, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x57, 0x68, 0x69, + 0x74, 0x65, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x13, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x57, 0x6f, 0x72, + 0x6b, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x24, 0x2e, 0x65, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x73, + 0x65, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, + 0x1a, 0x2c, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, + 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x50, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, + 0x0a, 0x14, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x50, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x25, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, + 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x1a, 0x2d, 0x2e, + 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, + 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x70, 0x75, 0x74, 0x65, 0x72, 0x50, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x05, 0x80, 0xe7, 0xb0, 0x2a, 0x01, 0x42, 0xbd, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, - 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_emissions_v1_tx_proto_rawDescOnce sync.Once - file_emissions_v1_tx_proto_rawDescData = file_emissions_v1_tx_proto_rawDesc + file_emissions_v2_tx_proto_rawDescOnce sync.Once + file_emissions_v2_tx_proto_rawDescData = file_emissions_v2_tx_proto_rawDesc ) -func file_emissions_v1_tx_proto_rawDescGZIP() []byte { - file_emissions_v1_tx_proto_rawDescOnce.Do(func() { - file_emissions_v1_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v1_tx_proto_rawDescData) +func file_emissions_v2_tx_proto_rawDescGZIP() []byte { + file_emissions_v2_tx_proto_rawDescOnce.Do(func() { + file_emissions_v2_tx_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_tx_proto_rawDescData) }) - return file_emissions_v1_tx_proto_rawDescData -} - -var file_emissions_v1_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 33) -var file_emissions_v1_tx_proto_goTypes = []interface{}{ - (*OptionalParams)(nil), // 0: emissions.v1.OptionalParams - (*MsgUpdateParams)(nil), // 1: emissions.v1.MsgUpdateParams - (*MsgUpdateParamsResponse)(nil), // 2: emissions.v1.MsgUpdateParamsResponse - (*MsgCreateNewTopic)(nil), // 3: emissions.v1.MsgCreateNewTopic - (*MsgCreateNewTopicResponse)(nil), // 4: emissions.v1.MsgCreateNewTopicResponse - (*MsgInsertBulkReputerPayload)(nil), // 5: emissions.v1.MsgInsertBulkReputerPayload - (*MsgInsertBulkReputerPayloadResponse)(nil), // 6: emissions.v1.MsgInsertBulkReputerPayloadResponse - (*MsgInsertBulkWorkerPayload)(nil), // 7: emissions.v1.MsgInsertBulkWorkerPayload - (*MsgInsertBulkWorkerPayloadResponse)(nil), // 8: emissions.v1.MsgInsertBulkWorkerPayloadResponse - (*MsgRegister)(nil), // 9: emissions.v1.MsgRegister - (*MsgRegisterResponse)(nil), // 10: emissions.v1.MsgRegisterResponse - (*MsgRemoveRegistration)(nil), // 11: emissions.v1.MsgRemoveRegistration - (*MsgRemoveRegistrationResponse)(nil), // 12: emissions.v1.MsgRemoveRegistrationResponse - (*MsgAddStake)(nil), // 13: emissions.v1.MsgAddStake - (*MsgAddStakeResponse)(nil), // 14: emissions.v1.MsgAddStakeResponse - (*MsgRemoveStake)(nil), // 15: emissions.v1.MsgRemoveStake - (*MsgRemoveStakeResponse)(nil), // 16: emissions.v1.MsgRemoveStakeResponse - (*MsgCancelRemoveStake)(nil), // 17: emissions.v1.MsgCancelRemoveStake - (*MsgCancelRemoveStakeResponse)(nil), // 18: emissions.v1.MsgCancelRemoveStakeResponse - (*MsgDelegateStake)(nil), // 19: emissions.v1.MsgDelegateStake - (*MsgDelegateStakeResponse)(nil), // 20: emissions.v1.MsgDelegateStakeResponse - (*MsgRemoveDelegateStake)(nil), // 21: emissions.v1.MsgRemoveDelegateStake - (*MsgRemoveDelegateStakeResponse)(nil), // 22: emissions.v1.MsgRemoveDelegateStakeResponse - (*MsgCancelRemoveDelegateStake)(nil), // 23: emissions.v1.MsgCancelRemoveDelegateStake - (*MsgCancelRemoveDelegateStakeResponse)(nil), // 24: emissions.v1.MsgCancelRemoveDelegateStakeResponse - (*MsgFundTopic)(nil), // 25: emissions.v1.MsgFundTopic - (*MsgFundTopicResponse)(nil), // 26: emissions.v1.MsgFundTopicResponse - (*MsgAddToWhitelistAdmin)(nil), // 27: emissions.v1.MsgAddToWhitelistAdmin - (*MsgAddToWhitelistAdminResponse)(nil), // 28: emissions.v1.MsgAddToWhitelistAdminResponse - (*MsgRemoveFromWhitelistAdmin)(nil), // 29: emissions.v1.MsgRemoveFromWhitelistAdmin - (*MsgRemoveFromWhitelistAdminResponse)(nil), // 30: emissions.v1.MsgRemoveFromWhitelistAdminResponse - (*MsgRewardDelegateStakeResponse)(nil), // 31: emissions.v1.MsgRewardDelegateStakeResponse - (*MsgRewardDelegateStake)(nil), // 32: emissions.v1.MsgRewardDelegateStake - (*ReputerRequestNonce)(nil), // 33: emissions.v1.ReputerRequestNonce - (*ReputerValueBundle)(nil), // 34: emissions.v1.ReputerValueBundle - (*Nonce)(nil), // 35: emissions.v1.Nonce - (*WorkerDataBundle)(nil), // 36: emissions.v1.WorkerDataBundle -} -var file_emissions_v1_tx_proto_depIdxs = []int32{ - 0, // 0: emissions.v1.MsgUpdateParams.params:type_name -> emissions.v1.OptionalParams - 33, // 1: emissions.v1.MsgInsertBulkReputerPayload.reputer_request_nonce:type_name -> emissions.v1.ReputerRequestNonce - 34, // 2: emissions.v1.MsgInsertBulkReputerPayload.reputer_value_bundles:type_name -> emissions.v1.ReputerValueBundle - 35, // 3: emissions.v1.MsgInsertBulkWorkerPayload.nonce:type_name -> emissions.v1.Nonce - 36, // 4: emissions.v1.MsgInsertBulkWorkerPayload.worker_data_bundles:type_name -> emissions.v1.WorkerDataBundle - 1, // 5: emissions.v1.Msg.UpdateParams:input_type -> emissions.v1.MsgUpdateParams - 7, // 6: emissions.v1.Msg.InsertBulkWorkerPayload:input_type -> emissions.v1.MsgInsertBulkWorkerPayload - 3, // 7: emissions.v1.Msg.CreateNewTopic:input_type -> emissions.v1.MsgCreateNewTopic - 9, // 8: emissions.v1.Msg.Register:input_type -> emissions.v1.MsgRegister - 11, // 9: emissions.v1.Msg.RemoveRegistration:input_type -> emissions.v1.MsgRemoveRegistration - 5, // 10: emissions.v1.Msg.InsertBulkReputerPayload:input_type -> emissions.v1.MsgInsertBulkReputerPayload - 13, // 11: emissions.v1.Msg.AddStake:input_type -> emissions.v1.MsgAddStake - 15, // 12: emissions.v1.Msg.RemoveStake:input_type -> emissions.v1.MsgRemoveStake - 17, // 13: emissions.v1.Msg.CancelRemoveStake:input_type -> emissions.v1.MsgCancelRemoveStake - 19, // 14: emissions.v1.Msg.DelegateStake:input_type -> emissions.v1.MsgDelegateStake - 32, // 15: emissions.v1.Msg.RewardDelegateStake:input_type -> emissions.v1.MsgRewardDelegateStake - 21, // 16: emissions.v1.Msg.RemoveDelegateStake:input_type -> emissions.v1.MsgRemoveDelegateStake - 23, // 17: emissions.v1.Msg.CancelRemoveDelegateStake:input_type -> emissions.v1.MsgCancelRemoveDelegateStake - 25, // 18: emissions.v1.Msg.FundTopic:input_type -> emissions.v1.MsgFundTopic - 27, // 19: emissions.v1.Msg.AddToWhitelistAdmin:input_type -> emissions.v1.MsgAddToWhitelistAdmin - 29, // 20: emissions.v1.Msg.RemoveFromWhitelistAdmin:input_type -> emissions.v1.MsgRemoveFromWhitelistAdmin - 2, // 21: emissions.v1.Msg.UpdateParams:output_type -> emissions.v1.MsgUpdateParamsResponse - 8, // 22: emissions.v1.Msg.InsertBulkWorkerPayload:output_type -> emissions.v1.MsgInsertBulkWorkerPayloadResponse - 4, // 23: emissions.v1.Msg.CreateNewTopic:output_type -> emissions.v1.MsgCreateNewTopicResponse - 10, // 24: emissions.v1.Msg.Register:output_type -> emissions.v1.MsgRegisterResponse - 12, // 25: emissions.v1.Msg.RemoveRegistration:output_type -> emissions.v1.MsgRemoveRegistrationResponse - 6, // 26: emissions.v1.Msg.InsertBulkReputerPayload:output_type -> emissions.v1.MsgInsertBulkReputerPayloadResponse - 14, // 27: emissions.v1.Msg.AddStake:output_type -> emissions.v1.MsgAddStakeResponse - 16, // 28: emissions.v1.Msg.RemoveStake:output_type -> emissions.v1.MsgRemoveStakeResponse - 18, // 29: emissions.v1.Msg.CancelRemoveStake:output_type -> emissions.v1.MsgCancelRemoveStakeResponse - 20, // 30: emissions.v1.Msg.DelegateStake:output_type -> emissions.v1.MsgDelegateStakeResponse - 31, // 31: emissions.v1.Msg.RewardDelegateStake:output_type -> emissions.v1.MsgRewardDelegateStakeResponse - 22, // 32: emissions.v1.Msg.RemoveDelegateStake:output_type -> emissions.v1.MsgRemoveDelegateStakeResponse - 24, // 33: emissions.v1.Msg.CancelRemoveDelegateStake:output_type -> emissions.v1.MsgCancelRemoveDelegateStakeResponse - 26, // 34: emissions.v1.Msg.FundTopic:output_type -> emissions.v1.MsgFundTopicResponse - 28, // 35: emissions.v1.Msg.AddToWhitelistAdmin:output_type -> emissions.v1.MsgAddToWhitelistAdminResponse - 30, // 36: emissions.v1.Msg.RemoveFromWhitelistAdmin:output_type -> emissions.v1.MsgRemoveFromWhitelistAdminResponse - 21, // [21:37] is the sub-list for method output_type - 5, // [5:21] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_emissions_v1_tx_proto_init() } -func file_emissions_v1_tx_proto_init() { - if File_emissions_v1_tx_proto != nil { + return file_emissions_v2_tx_proto_rawDescData +} + +var file_emissions_v2_tx_proto_msgTypes = make([]protoimpl.MessageInfo, 33) +var file_emissions_v2_tx_proto_goTypes = []interface{}{ + (*OptionalParams)(nil), // 0: emissions.v2.OptionalParams + (*MsgUpdateParams)(nil), // 1: emissions.v2.MsgUpdateParams + (*MsgUpdateParamsResponse)(nil), // 2: emissions.v2.MsgUpdateParamsResponse + (*MsgCreateNewTopic)(nil), // 3: emissions.v2.MsgCreateNewTopic + (*MsgCreateNewTopicResponse)(nil), // 4: emissions.v2.MsgCreateNewTopicResponse + (*MsgInsertReputerPayload)(nil), // 5: emissions.v2.MsgInsertReputerPayload + (*MsgInsertReputerPayloadResponse)(nil), // 6: emissions.v2.MsgInsertReputerPayloadResponse + (*MsgInsertWorkerPayload)(nil), // 7: emissions.v2.MsgInsertWorkerPayload + (*MsgInsertWorkerPayloadResponse)(nil), // 8: emissions.v2.MsgInsertWorkerPayloadResponse + (*MsgRegister)(nil), // 9: emissions.v2.MsgRegister + (*MsgRegisterResponse)(nil), // 10: emissions.v2.MsgRegisterResponse + (*MsgRemoveRegistration)(nil), // 11: emissions.v2.MsgRemoveRegistration + (*MsgRemoveRegistrationResponse)(nil), // 12: emissions.v2.MsgRemoveRegistrationResponse + (*MsgAddStake)(nil), // 13: emissions.v2.MsgAddStake + (*MsgAddStakeResponse)(nil), // 14: emissions.v2.MsgAddStakeResponse + (*MsgRemoveStake)(nil), // 15: emissions.v2.MsgRemoveStake + (*MsgRemoveStakeResponse)(nil), // 16: emissions.v2.MsgRemoveStakeResponse + (*MsgCancelRemoveStake)(nil), // 17: emissions.v2.MsgCancelRemoveStake + (*MsgCancelRemoveStakeResponse)(nil), // 18: emissions.v2.MsgCancelRemoveStakeResponse + (*MsgDelegateStake)(nil), // 19: emissions.v2.MsgDelegateStake + (*MsgDelegateStakeResponse)(nil), // 20: emissions.v2.MsgDelegateStakeResponse + (*MsgRemoveDelegateStake)(nil), // 21: emissions.v2.MsgRemoveDelegateStake + (*MsgRemoveDelegateStakeResponse)(nil), // 22: emissions.v2.MsgRemoveDelegateStakeResponse + (*MsgCancelRemoveDelegateStake)(nil), // 23: emissions.v2.MsgCancelRemoveDelegateStake + (*MsgCancelRemoveDelegateStakeResponse)(nil), // 24: emissions.v2.MsgCancelRemoveDelegateStakeResponse + (*MsgFundTopic)(nil), // 25: emissions.v2.MsgFundTopic + (*MsgFundTopicResponse)(nil), // 26: emissions.v2.MsgFundTopicResponse + (*MsgAddToWhitelistAdmin)(nil), // 27: emissions.v2.MsgAddToWhitelistAdmin + (*MsgAddToWhitelistAdminResponse)(nil), // 28: emissions.v2.MsgAddToWhitelistAdminResponse + (*MsgRemoveFromWhitelistAdmin)(nil), // 29: emissions.v2.MsgRemoveFromWhitelistAdmin + (*MsgRemoveFromWhitelistAdminResponse)(nil), // 30: emissions.v2.MsgRemoveFromWhitelistAdminResponse + (*MsgRewardDelegateStakeResponse)(nil), // 31: emissions.v2.MsgRewardDelegateStakeResponse + (*MsgRewardDelegateStake)(nil), // 32: emissions.v2.MsgRewardDelegateStake + (*ReputerValueBundle)(nil), // 33: emissions.v2.ReputerValueBundle + (*WorkerDataBundle)(nil), // 34: emissions.v2.WorkerDataBundle +} +var file_emissions_v2_tx_proto_depIdxs = []int32{ + 0, // 0: emissions.v2.MsgUpdateParams.params:type_name -> emissions.v2.OptionalParams + 33, // 1: emissions.v2.MsgInsertReputerPayload.reputer_value_bundle:type_name -> emissions.v2.ReputerValueBundle + 34, // 2: emissions.v2.MsgInsertWorkerPayload.worker_data_bundle:type_name -> emissions.v2.WorkerDataBundle + 1, // 3: emissions.v2.Msg.UpdateParams:input_type -> emissions.v2.MsgUpdateParams + 3, // 4: emissions.v2.Msg.CreateNewTopic:input_type -> emissions.v2.MsgCreateNewTopic + 9, // 5: emissions.v2.Msg.Register:input_type -> emissions.v2.MsgRegister + 11, // 6: emissions.v2.Msg.RemoveRegistration:input_type -> emissions.v2.MsgRemoveRegistration + 13, // 7: emissions.v2.Msg.AddStake:input_type -> emissions.v2.MsgAddStake + 15, // 8: emissions.v2.Msg.RemoveStake:input_type -> emissions.v2.MsgRemoveStake + 17, // 9: emissions.v2.Msg.CancelRemoveStake:input_type -> emissions.v2.MsgCancelRemoveStake + 19, // 10: emissions.v2.Msg.DelegateStake:input_type -> emissions.v2.MsgDelegateStake + 32, // 11: emissions.v2.Msg.RewardDelegateStake:input_type -> emissions.v2.MsgRewardDelegateStake + 21, // 12: emissions.v2.Msg.RemoveDelegateStake:input_type -> emissions.v2.MsgRemoveDelegateStake + 23, // 13: emissions.v2.Msg.CancelRemoveDelegateStake:input_type -> emissions.v2.MsgCancelRemoveDelegateStake + 25, // 14: emissions.v2.Msg.FundTopic:input_type -> emissions.v2.MsgFundTopic + 27, // 15: emissions.v2.Msg.AddToWhitelistAdmin:input_type -> emissions.v2.MsgAddToWhitelistAdmin + 29, // 16: emissions.v2.Msg.RemoveFromWhitelistAdmin:input_type -> emissions.v2.MsgRemoveFromWhitelistAdmin + 7, // 17: emissions.v2.Msg.InsertWorkerPayload:input_type -> emissions.v2.MsgInsertWorkerPayload + 5, // 18: emissions.v2.Msg.InsertReputerPayload:input_type -> emissions.v2.MsgInsertReputerPayload + 2, // 19: emissions.v2.Msg.UpdateParams:output_type -> emissions.v2.MsgUpdateParamsResponse + 4, // 20: emissions.v2.Msg.CreateNewTopic:output_type -> emissions.v2.MsgCreateNewTopicResponse + 10, // 21: emissions.v2.Msg.Register:output_type -> emissions.v2.MsgRegisterResponse + 12, // 22: emissions.v2.Msg.RemoveRegistration:output_type -> emissions.v2.MsgRemoveRegistrationResponse + 14, // 23: emissions.v2.Msg.AddStake:output_type -> emissions.v2.MsgAddStakeResponse + 16, // 24: emissions.v2.Msg.RemoveStake:output_type -> emissions.v2.MsgRemoveStakeResponse + 18, // 25: emissions.v2.Msg.CancelRemoveStake:output_type -> emissions.v2.MsgCancelRemoveStakeResponse + 20, // 26: emissions.v2.Msg.DelegateStake:output_type -> emissions.v2.MsgDelegateStakeResponse + 31, // 27: emissions.v2.Msg.RewardDelegateStake:output_type -> emissions.v2.MsgRewardDelegateStakeResponse + 22, // 28: emissions.v2.Msg.RemoveDelegateStake:output_type -> emissions.v2.MsgRemoveDelegateStakeResponse + 24, // 29: emissions.v2.Msg.CancelRemoveDelegateStake:output_type -> emissions.v2.MsgCancelRemoveDelegateStakeResponse + 26, // 30: emissions.v2.Msg.FundTopic:output_type -> emissions.v2.MsgFundTopicResponse + 28, // 31: emissions.v2.Msg.AddToWhitelistAdmin:output_type -> emissions.v2.MsgAddToWhitelistAdminResponse + 30, // 32: emissions.v2.Msg.RemoveFromWhitelistAdmin:output_type -> emissions.v2.MsgRemoveFromWhitelistAdminResponse + 8, // 33: emissions.v2.Msg.InsertWorkerPayload:output_type -> emissions.v2.MsgInsertWorkerPayloadResponse + 6, // 34: emissions.v2.Msg.InsertReputerPayload:output_type -> emissions.v2.MsgInsertReputerPayloadResponse + 19, // [19:35] is the sub-list for method output_type + 3, // [3:19] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_emissions_v2_tx_proto_init() } +func file_emissions_v2_tx_proto_init() { + if File_emissions_v2_tx_proto != nil { return } - file_emissions_v1_types_proto_init() - file_emissions_v1_nonce_proto_init() - file_emissions_v1_reputer_proto_init() - file_emissions_v1_worker_proto_init() + file_emissions_v2_types_proto_init() + file_emissions_v2_nonce_proto_init() + file_emissions_v2_reputer_proto_init() + file_emissions_v2_worker_proto_init() if !protoimpl.UnsafeEnabled { - file_emissions_v1_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*OptionalParams); i { case 0: return &v.state @@ -24367,7 +24042,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateParams); i { case 0: return &v.state @@ -24379,7 +24054,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgUpdateParamsResponse); i { case 0: return &v.state @@ -24391,7 +24066,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgCreateNewTopic); i { case 0: return &v.state @@ -24403,7 +24078,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgCreateNewTopicResponse); i { case 0: return &v.state @@ -24415,8 +24090,8 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgInsertBulkReputerPayload); i { + file_emissions_v2_tx_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgInsertReputerPayload); i { case 0: return &v.state case 1: @@ -24427,8 +24102,8 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgInsertBulkReputerPayloadResponse); i { + file_emissions_v2_tx_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgInsertReputerPayloadResponse); i { case 0: return &v.state case 1: @@ -24439,8 +24114,8 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgInsertBulkWorkerPayload); i { + file_emissions_v2_tx_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgInsertWorkerPayload); i { case 0: return &v.state case 1: @@ -24451,8 +24126,8 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MsgInsertBulkWorkerPayloadResponse); i { + file_emissions_v2_tx_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MsgInsertWorkerPayloadResponse); i { case 0: return &v.state case 1: @@ -24463,7 +24138,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRegister); i { case 0: return &v.state @@ -24475,7 +24150,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRegisterResponse); i { case 0: return &v.state @@ -24487,7 +24162,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRemoveRegistration); i { case 0: return &v.state @@ -24499,7 +24174,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRemoveRegistrationResponse); i { case 0: return &v.state @@ -24511,7 +24186,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgAddStake); i { case 0: return &v.state @@ -24523,7 +24198,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgAddStakeResponse); i { case 0: return &v.state @@ -24535,7 +24210,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRemoveStake); i { case 0: return &v.state @@ -24547,7 +24222,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRemoveStakeResponse); i { case 0: return &v.state @@ -24559,7 +24234,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgCancelRemoveStake); i { case 0: return &v.state @@ -24571,7 +24246,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgCancelRemoveStakeResponse); i { case 0: return &v.state @@ -24583,7 +24258,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgDelegateStake); i { case 0: return &v.state @@ -24595,7 +24270,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgDelegateStakeResponse); i { case 0: return &v.state @@ -24607,7 +24282,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRemoveDelegateStake); i { case 0: return &v.state @@ -24619,7 +24294,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRemoveDelegateStakeResponse); i { case 0: return &v.state @@ -24631,7 +24306,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgCancelRemoveDelegateStake); i { case 0: return &v.state @@ -24643,7 +24318,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgCancelRemoveDelegateStakeResponse); i { case 0: return &v.state @@ -24655,7 +24330,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgFundTopic); i { case 0: return &v.state @@ -24667,7 +24342,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgFundTopicResponse); i { case 0: return &v.state @@ -24679,7 +24354,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgAddToWhitelistAdmin); i { case 0: return &v.state @@ -24691,7 +24366,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgAddToWhitelistAdminResponse); i { case 0: return &v.state @@ -24703,7 +24378,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRemoveFromWhitelistAdmin); i { case 0: return &v.state @@ -24715,7 +24390,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRemoveFromWhitelistAdminResponse); i { case 0: return &v.state @@ -24727,7 +24402,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRewardDelegateStakeResponse); i { case 0: return &v.state @@ -24739,7 +24414,7 @@ func file_emissions_v1_tx_proto_init() { return nil } } - file_emissions_v1_tx_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_tx_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MsgRewardDelegateStake); i { case 0: return &v.state @@ -24756,18 +24431,18 @@ func file_emissions_v1_tx_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_emissions_v1_tx_proto_rawDesc, + RawDescriptor: file_emissions_v2_tx_proto_rawDesc, NumEnums: 0, NumMessages: 33, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_emissions_v1_tx_proto_goTypes, - DependencyIndexes: file_emissions_v1_tx_proto_depIdxs, - MessageInfos: file_emissions_v1_tx_proto_msgTypes, + GoTypes: file_emissions_v2_tx_proto_goTypes, + DependencyIndexes: file_emissions_v2_tx_proto_depIdxs, + MessageInfos: file_emissions_v2_tx_proto_msgTypes, }.Build() - File_emissions_v1_tx_proto = out.File - file_emissions_v1_tx_proto_rawDesc = nil - file_emissions_v1_tx_proto_goTypes = nil - file_emissions_v1_tx_proto_depIdxs = nil + File_emissions_v2_tx_proto = out.File + file_emissions_v2_tx_proto_rawDesc = nil + file_emissions_v2_tx_proto_goTypes = nil + file_emissions_v2_tx_proto_depIdxs = nil } diff --git a/x/emissions/api/v1/tx_grpc.pb.go b/x/emissions/api/v2/tx_grpc.pb.go similarity index 85% rename from x/emissions/api/v1/tx_grpc.pb.go rename to x/emissions/api/v2/tx_grpc.pb.go index 64de0d57a..0246f2414 100644 --- a/x/emissions/api/v1/tx_grpc.pb.go +++ b/x/emissions/api/v2/tx_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) -// source: emissions/v1/tx.proto +// source: emissions/v2/tx.proto -package emissionsv1 +package emissionsv2 import ( context "context" @@ -19,22 +19,22 @@ import ( const _ = grpc.SupportPackageIsVersion7 const ( - Msg_UpdateParams_FullMethodName = "/emissions.v1.Msg/UpdateParams" - Msg_InsertBulkWorkerPayload_FullMethodName = "/emissions.v1.Msg/InsertBulkWorkerPayload" - Msg_CreateNewTopic_FullMethodName = "/emissions.v1.Msg/CreateNewTopic" - Msg_Register_FullMethodName = "/emissions.v1.Msg/Register" - Msg_RemoveRegistration_FullMethodName = "/emissions.v1.Msg/RemoveRegistration" - Msg_InsertBulkReputerPayload_FullMethodName = "/emissions.v1.Msg/InsertBulkReputerPayload" - Msg_AddStake_FullMethodName = "/emissions.v1.Msg/AddStake" - Msg_RemoveStake_FullMethodName = "/emissions.v1.Msg/RemoveStake" - Msg_CancelRemoveStake_FullMethodName = "/emissions.v1.Msg/CancelRemoveStake" - Msg_DelegateStake_FullMethodName = "/emissions.v1.Msg/DelegateStake" - Msg_RewardDelegateStake_FullMethodName = "/emissions.v1.Msg/RewardDelegateStake" - Msg_RemoveDelegateStake_FullMethodName = "/emissions.v1.Msg/RemoveDelegateStake" - Msg_CancelRemoveDelegateStake_FullMethodName = "/emissions.v1.Msg/CancelRemoveDelegateStake" - Msg_FundTopic_FullMethodName = "/emissions.v1.Msg/FundTopic" - Msg_AddToWhitelistAdmin_FullMethodName = "/emissions.v1.Msg/AddToWhitelistAdmin" - Msg_RemoveFromWhitelistAdmin_FullMethodName = "/emissions.v1.Msg/RemoveFromWhitelistAdmin" + Msg_UpdateParams_FullMethodName = "/emissions.v2.Msg/UpdateParams" + Msg_CreateNewTopic_FullMethodName = "/emissions.v2.Msg/CreateNewTopic" + Msg_Register_FullMethodName = "/emissions.v2.Msg/Register" + Msg_RemoveRegistration_FullMethodName = "/emissions.v2.Msg/RemoveRegistration" + Msg_AddStake_FullMethodName = "/emissions.v2.Msg/AddStake" + Msg_RemoveStake_FullMethodName = "/emissions.v2.Msg/RemoveStake" + Msg_CancelRemoveStake_FullMethodName = "/emissions.v2.Msg/CancelRemoveStake" + Msg_DelegateStake_FullMethodName = "/emissions.v2.Msg/DelegateStake" + Msg_RewardDelegateStake_FullMethodName = "/emissions.v2.Msg/RewardDelegateStake" + Msg_RemoveDelegateStake_FullMethodName = "/emissions.v2.Msg/RemoveDelegateStake" + Msg_CancelRemoveDelegateStake_FullMethodName = "/emissions.v2.Msg/CancelRemoveDelegateStake" + Msg_FundTopic_FullMethodName = "/emissions.v2.Msg/FundTopic" + Msg_AddToWhitelistAdmin_FullMethodName = "/emissions.v2.Msg/AddToWhitelistAdmin" + Msg_RemoveFromWhitelistAdmin_FullMethodName = "/emissions.v2.Msg/RemoveFromWhitelistAdmin" + Msg_InsertWorkerPayload_FullMethodName = "/emissions.v2.Msg/InsertWorkerPayload" + Msg_InsertReputerPayload_FullMethodName = "/emissions.v2.Msg/InsertReputerPayload" ) // MsgClient is the client API for Msg service. @@ -42,11 +42,9 @@ const ( // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type MsgClient interface { UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) - InsertBulkWorkerPayload(ctx context.Context, in *MsgInsertBulkWorkerPayload, opts ...grpc.CallOption) (*MsgInsertBulkWorkerPayloadResponse, error) CreateNewTopic(ctx context.Context, in *MsgCreateNewTopic, opts ...grpc.CallOption) (*MsgCreateNewTopicResponse, error) Register(ctx context.Context, in *MsgRegister, opts ...grpc.CallOption) (*MsgRegisterResponse, error) RemoveRegistration(ctx context.Context, in *MsgRemoveRegistration, opts ...grpc.CallOption) (*MsgRemoveRegistrationResponse, error) - InsertBulkReputerPayload(ctx context.Context, in *MsgInsertBulkReputerPayload, opts ...grpc.CallOption) (*MsgInsertBulkReputerPayloadResponse, error) AddStake(ctx context.Context, in *MsgAddStake, opts ...grpc.CallOption) (*MsgAddStakeResponse, error) RemoveStake(ctx context.Context, in *MsgRemoveStake, opts ...grpc.CallOption) (*MsgRemoveStakeResponse, error) CancelRemoveStake(ctx context.Context, in *MsgCancelRemoveStake, opts ...grpc.CallOption) (*MsgCancelRemoveStakeResponse, error) @@ -57,6 +55,8 @@ type MsgClient interface { FundTopic(ctx context.Context, in *MsgFundTopic, opts ...grpc.CallOption) (*MsgFundTopicResponse, error) AddToWhitelistAdmin(ctx context.Context, in *MsgAddToWhitelistAdmin, opts ...grpc.CallOption) (*MsgAddToWhitelistAdminResponse, error) RemoveFromWhitelistAdmin(ctx context.Context, in *MsgRemoveFromWhitelistAdmin, opts ...grpc.CallOption) (*MsgRemoveFromWhitelistAdminResponse, error) + InsertWorkerPayload(ctx context.Context, in *MsgInsertWorkerPayload, opts ...grpc.CallOption) (*MsgInsertWorkerPayloadResponse, error) + InsertReputerPayload(ctx context.Context, in *MsgInsertReputerPayload, opts ...grpc.CallOption) (*MsgInsertReputerPayloadResponse, error) } type msgClient struct { @@ -76,15 +76,6 @@ func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts return out, nil } -func (c *msgClient) InsertBulkWorkerPayload(ctx context.Context, in *MsgInsertBulkWorkerPayload, opts ...grpc.CallOption) (*MsgInsertBulkWorkerPayloadResponse, error) { - out := new(MsgInsertBulkWorkerPayloadResponse) - err := c.cc.Invoke(ctx, Msg_InsertBulkWorkerPayload_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *msgClient) CreateNewTopic(ctx context.Context, in *MsgCreateNewTopic, opts ...grpc.CallOption) (*MsgCreateNewTopicResponse, error) { out := new(MsgCreateNewTopicResponse) err := c.cc.Invoke(ctx, Msg_CreateNewTopic_FullMethodName, in, out, opts...) @@ -112,15 +103,6 @@ func (c *msgClient) RemoveRegistration(ctx context.Context, in *MsgRemoveRegistr return out, nil } -func (c *msgClient) InsertBulkReputerPayload(ctx context.Context, in *MsgInsertBulkReputerPayload, opts ...grpc.CallOption) (*MsgInsertBulkReputerPayloadResponse, error) { - out := new(MsgInsertBulkReputerPayloadResponse) - err := c.cc.Invoke(ctx, Msg_InsertBulkReputerPayload_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *msgClient) AddStake(ctx context.Context, in *MsgAddStake, opts ...grpc.CallOption) (*MsgAddStakeResponse, error) { out := new(MsgAddStakeResponse) err := c.cc.Invoke(ctx, Msg_AddStake_FullMethodName, in, out, opts...) @@ -211,16 +193,32 @@ func (c *msgClient) RemoveFromWhitelistAdmin(ctx context.Context, in *MsgRemoveF return out, nil } +func (c *msgClient) InsertWorkerPayload(ctx context.Context, in *MsgInsertWorkerPayload, opts ...grpc.CallOption) (*MsgInsertWorkerPayloadResponse, error) { + out := new(MsgInsertWorkerPayloadResponse) + err := c.cc.Invoke(ctx, Msg_InsertWorkerPayload_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) InsertReputerPayload(ctx context.Context, in *MsgInsertReputerPayload, opts ...grpc.CallOption) (*MsgInsertReputerPayloadResponse, error) { + out := new(MsgInsertReputerPayloadResponse) + err := c.cc.Invoke(ctx, Msg_InsertReputerPayload_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // MsgServer is the server API for Msg service. // All implementations must embed UnimplementedMsgServer // for forward compatibility type MsgServer interface { UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) - InsertBulkWorkerPayload(context.Context, *MsgInsertBulkWorkerPayload) (*MsgInsertBulkWorkerPayloadResponse, error) CreateNewTopic(context.Context, *MsgCreateNewTopic) (*MsgCreateNewTopicResponse, error) Register(context.Context, *MsgRegister) (*MsgRegisterResponse, error) RemoveRegistration(context.Context, *MsgRemoveRegistration) (*MsgRemoveRegistrationResponse, error) - InsertBulkReputerPayload(context.Context, *MsgInsertBulkReputerPayload) (*MsgInsertBulkReputerPayloadResponse, error) AddStake(context.Context, *MsgAddStake) (*MsgAddStakeResponse, error) RemoveStake(context.Context, *MsgRemoveStake) (*MsgRemoveStakeResponse, error) CancelRemoveStake(context.Context, *MsgCancelRemoveStake) (*MsgCancelRemoveStakeResponse, error) @@ -231,6 +229,8 @@ type MsgServer interface { FundTopic(context.Context, *MsgFundTopic) (*MsgFundTopicResponse, error) AddToWhitelistAdmin(context.Context, *MsgAddToWhitelistAdmin) (*MsgAddToWhitelistAdminResponse, error) RemoveFromWhitelistAdmin(context.Context, *MsgRemoveFromWhitelistAdmin) (*MsgRemoveFromWhitelistAdminResponse, error) + InsertWorkerPayload(context.Context, *MsgInsertWorkerPayload) (*MsgInsertWorkerPayloadResponse, error) + InsertReputerPayload(context.Context, *MsgInsertReputerPayload) (*MsgInsertReputerPayloadResponse, error) mustEmbedUnimplementedMsgServer() } @@ -241,9 +241,6 @@ type UnimplementedMsgServer struct { func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") } -func (UnimplementedMsgServer) InsertBulkWorkerPayload(context.Context, *MsgInsertBulkWorkerPayload) (*MsgInsertBulkWorkerPayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InsertBulkWorkerPayload not implemented") -} func (UnimplementedMsgServer) CreateNewTopic(context.Context, *MsgCreateNewTopic) (*MsgCreateNewTopicResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateNewTopic not implemented") } @@ -253,9 +250,6 @@ func (UnimplementedMsgServer) Register(context.Context, *MsgRegister) (*MsgRegis func (UnimplementedMsgServer) RemoveRegistration(context.Context, *MsgRemoveRegistration) (*MsgRemoveRegistrationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveRegistration not implemented") } -func (UnimplementedMsgServer) InsertBulkReputerPayload(context.Context, *MsgInsertBulkReputerPayload) (*MsgInsertBulkReputerPayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InsertBulkReputerPayload not implemented") -} func (UnimplementedMsgServer) AddStake(context.Context, *MsgAddStake) (*MsgAddStakeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddStake not implemented") } @@ -286,6 +280,12 @@ func (UnimplementedMsgServer) AddToWhitelistAdmin(context.Context, *MsgAddToWhit func (UnimplementedMsgServer) RemoveFromWhitelistAdmin(context.Context, *MsgRemoveFromWhitelistAdmin) (*MsgRemoveFromWhitelistAdminResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveFromWhitelistAdmin not implemented") } +func (UnimplementedMsgServer) InsertWorkerPayload(context.Context, *MsgInsertWorkerPayload) (*MsgInsertWorkerPayloadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InsertWorkerPayload not implemented") +} +func (UnimplementedMsgServer) InsertReputerPayload(context.Context, *MsgInsertReputerPayload) (*MsgInsertReputerPayloadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InsertReputerPayload not implemented") +} func (UnimplementedMsgServer) mustEmbedUnimplementedMsgServer() {} // UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. @@ -317,24 +317,6 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } -func _Msg_InsertBulkWorkerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgInsertBulkWorkerPayload) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).InsertBulkWorkerPayload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_InsertBulkWorkerPayload_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).InsertBulkWorkerPayload(ctx, req.(*MsgInsertBulkWorkerPayload)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_CreateNewTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgCreateNewTopic) if err := dec(in); err != nil { @@ -389,24 +371,6 @@ func _Msg_RemoveRegistration_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } -func _Msg_InsertBulkReputerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgInsertBulkReputerPayload) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).InsertBulkReputerPayload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Msg_InsertBulkReputerPayload_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).InsertBulkReputerPayload(ctx, req.(*MsgInsertBulkReputerPayload)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_AddStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgAddStake) if err := dec(in); err != nil { @@ -587,21 +551,53 @@ func _Msg_RemoveFromWhitelistAdmin_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _Msg_InsertWorkerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgInsertWorkerPayload) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).InsertWorkerPayload(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_InsertWorkerPayload_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).InsertWorkerPayload(ctx, req.(*MsgInsertWorkerPayload)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_InsertReputerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgInsertReputerPayload) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).InsertReputerPayload(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: Msg_InsertReputerPayload_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).InsertReputerPayload(ctx, req.(*MsgInsertReputerPayload)) + } + return interceptor(ctx, in, info, handler) +} + // Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Msg_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "emissions.v1.Msg", + ServiceName: "emissions.v2.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, - { - MethodName: "InsertBulkWorkerPayload", - Handler: _Msg_InsertBulkWorkerPayload_Handler, - }, { MethodName: "CreateNewTopic", Handler: _Msg_CreateNewTopic_Handler, @@ -614,10 +610,6 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ MethodName: "RemoveRegistration", Handler: _Msg_RemoveRegistration_Handler, }, - { - MethodName: "InsertBulkReputerPayload", - Handler: _Msg_InsertBulkReputerPayload_Handler, - }, { MethodName: "AddStake", Handler: _Msg_AddStake_Handler, @@ -658,7 +650,15 @@ var Msg_ServiceDesc = grpc.ServiceDesc{ MethodName: "RemoveFromWhitelistAdmin", Handler: _Msg_RemoveFromWhitelistAdmin_Handler, }, + { + MethodName: "InsertWorkerPayload", + Handler: _Msg_InsertWorkerPayload_Handler, + }, + { + MethodName: "InsertReputerPayload", + Handler: _Msg_InsertReputerPayload_Handler, + }, }, Streams: []grpc.StreamDesc{}, - Metadata: "emissions/v1/tx.proto", + Metadata: "emissions/v2/tx.proto", } diff --git a/x/emissions/api/v1/types.pulsar.go b/x/emissions/api/v2/types.pulsar.go similarity index 89% rename from x/emissions/api/v1/types.pulsar.go rename to x/emissions/api/v2/types.pulsar.go index e9a8cf945..d72b61017 100644 --- a/x/emissions/api/v1/types.pulsar.go +++ b/x/emissions/api/v2/types.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package emissionsv1 +package emissionsv2 import ( fmt "fmt" @@ -22,8 +22,8 @@ var ( ) func init() { - file_emissions_v1_types_proto_init() - md_SimpleCursorPaginationRequest = File_emissions_v1_types_proto.Messages().ByName("SimpleCursorPaginationRequest") + file_emissions_v2_types_proto_init() + md_SimpleCursorPaginationRequest = File_emissions_v2_types_proto.Messages().ByName("SimpleCursorPaginationRequest") fd_SimpleCursorPaginationRequest_key = md_SimpleCursorPaginationRequest.Fields().ByName("key") fd_SimpleCursorPaginationRequest_limit = md_SimpleCursorPaginationRequest.Fields().ByName("limit") } @@ -37,7 +37,7 @@ func (x *SimpleCursorPaginationRequest) ProtoReflect() protoreflect.Message { } func (x *SimpleCursorPaginationRequest) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_types_proto_msgTypes[0] + mi := &file_emissions_v2_types_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -120,15 +120,15 @@ func (x *fastReflection_SimpleCursorPaginationRequest) Range(f func(protoreflect // a repeated field is populated if it is non-empty. func (x *fastReflection_SimpleCursorPaginationRequest) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.SimpleCursorPaginationRequest.key": + case "emissions.v2.SimpleCursorPaginationRequest.key": return len(x.Key) != 0 - case "emissions.v1.SimpleCursorPaginationRequest.limit": + case "emissions.v2.SimpleCursorPaginationRequest.limit": return x.Limit != uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.SimpleCursorPaginationRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.SimpleCursorPaginationRequest")) } - panic(fmt.Errorf("message emissions.v1.SimpleCursorPaginationRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.SimpleCursorPaginationRequest does not contain field %s", fd.FullName())) } } @@ -140,15 +140,15 @@ func (x *fastReflection_SimpleCursorPaginationRequest) Has(fd protoreflect.Field // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SimpleCursorPaginationRequest) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.SimpleCursorPaginationRequest.key": + case "emissions.v2.SimpleCursorPaginationRequest.key": x.Key = nil - case "emissions.v1.SimpleCursorPaginationRequest.limit": + case "emissions.v2.SimpleCursorPaginationRequest.limit": x.Limit = uint64(0) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.SimpleCursorPaginationRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.SimpleCursorPaginationRequest")) } - panic(fmt.Errorf("message emissions.v1.SimpleCursorPaginationRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.SimpleCursorPaginationRequest does not contain field %s", fd.FullName())) } } @@ -160,17 +160,17 @@ func (x *fastReflection_SimpleCursorPaginationRequest) Clear(fd protoreflect.Fie // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_SimpleCursorPaginationRequest) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.SimpleCursorPaginationRequest.key": + case "emissions.v2.SimpleCursorPaginationRequest.key": value := x.Key return protoreflect.ValueOfBytes(value) - case "emissions.v1.SimpleCursorPaginationRequest.limit": + case "emissions.v2.SimpleCursorPaginationRequest.limit": value := x.Limit return protoreflect.ValueOfUint64(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.SimpleCursorPaginationRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.SimpleCursorPaginationRequest")) } - panic(fmt.Errorf("message emissions.v1.SimpleCursorPaginationRequest does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.SimpleCursorPaginationRequest does not contain field %s", descriptor.FullName())) } } @@ -186,15 +186,15 @@ func (x *fastReflection_SimpleCursorPaginationRequest) Get(descriptor protorefle // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SimpleCursorPaginationRequest) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.SimpleCursorPaginationRequest.key": + case "emissions.v2.SimpleCursorPaginationRequest.key": x.Key = value.Bytes() - case "emissions.v1.SimpleCursorPaginationRequest.limit": + case "emissions.v2.SimpleCursorPaginationRequest.limit": x.Limit = value.Uint() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.SimpleCursorPaginationRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.SimpleCursorPaginationRequest")) } - panic(fmt.Errorf("message emissions.v1.SimpleCursorPaginationRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.SimpleCursorPaginationRequest does not contain field %s", fd.FullName())) } } @@ -210,15 +210,15 @@ func (x *fastReflection_SimpleCursorPaginationRequest) Set(fd protoreflect.Field // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SimpleCursorPaginationRequest) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.SimpleCursorPaginationRequest.key": - panic(fmt.Errorf("field key of message emissions.v1.SimpleCursorPaginationRequest is not mutable")) - case "emissions.v1.SimpleCursorPaginationRequest.limit": - panic(fmt.Errorf("field limit of message emissions.v1.SimpleCursorPaginationRequest is not mutable")) + case "emissions.v2.SimpleCursorPaginationRequest.key": + panic(fmt.Errorf("field key of message emissions.v2.SimpleCursorPaginationRequest is not mutable")) + case "emissions.v2.SimpleCursorPaginationRequest.limit": + panic(fmt.Errorf("field limit of message emissions.v2.SimpleCursorPaginationRequest is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.SimpleCursorPaginationRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.SimpleCursorPaginationRequest")) } - panic(fmt.Errorf("message emissions.v1.SimpleCursorPaginationRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.SimpleCursorPaginationRequest does not contain field %s", fd.FullName())) } } @@ -227,15 +227,15 @@ func (x *fastReflection_SimpleCursorPaginationRequest) Mutable(fd protoreflect.F // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_SimpleCursorPaginationRequest) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.SimpleCursorPaginationRequest.key": + case "emissions.v2.SimpleCursorPaginationRequest.key": return protoreflect.ValueOfBytes(nil) - case "emissions.v1.SimpleCursorPaginationRequest.limit": + case "emissions.v2.SimpleCursorPaginationRequest.limit": return protoreflect.ValueOfUint64(uint64(0)) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.SimpleCursorPaginationRequest")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.SimpleCursorPaginationRequest")) } - panic(fmt.Errorf("message emissions.v1.SimpleCursorPaginationRequest does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.SimpleCursorPaginationRequest does not contain field %s", fd.FullName())) } } @@ -245,7 +245,7 @@ func (x *fastReflection_SimpleCursorPaginationRequest) NewField(fd protoreflect. func (x *fastReflection_SimpleCursorPaginationRequest) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.SimpleCursorPaginationRequest", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.SimpleCursorPaginationRequest", d.FullName())) } panic("unreachable") } @@ -491,8 +491,8 @@ var ( ) func init() { - file_emissions_v1_types_proto_init() - md_SimpleCursorPaginationResponse = File_emissions_v1_types_proto.Messages().ByName("SimpleCursorPaginationResponse") + file_emissions_v2_types_proto_init() + md_SimpleCursorPaginationResponse = File_emissions_v2_types_proto.Messages().ByName("SimpleCursorPaginationResponse") fd_SimpleCursorPaginationResponse_next_key = md_SimpleCursorPaginationResponse.Fields().ByName("next_key") } @@ -505,7 +505,7 @@ func (x *SimpleCursorPaginationResponse) ProtoReflect() protoreflect.Message { } func (x *SimpleCursorPaginationResponse) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_types_proto_msgTypes[1] + mi := &file_emissions_v2_types_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -582,13 +582,13 @@ func (x *fastReflection_SimpleCursorPaginationResponse) Range(f func(protoreflec // a repeated field is populated if it is non-empty. func (x *fastReflection_SimpleCursorPaginationResponse) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.SimpleCursorPaginationResponse.next_key": + case "emissions.v2.SimpleCursorPaginationResponse.next_key": return len(x.NextKey) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.SimpleCursorPaginationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.SimpleCursorPaginationResponse")) } - panic(fmt.Errorf("message emissions.v1.SimpleCursorPaginationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.SimpleCursorPaginationResponse does not contain field %s", fd.FullName())) } } @@ -600,13 +600,13 @@ func (x *fastReflection_SimpleCursorPaginationResponse) Has(fd protoreflect.Fiel // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SimpleCursorPaginationResponse) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.SimpleCursorPaginationResponse.next_key": + case "emissions.v2.SimpleCursorPaginationResponse.next_key": x.NextKey = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.SimpleCursorPaginationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.SimpleCursorPaginationResponse")) } - panic(fmt.Errorf("message emissions.v1.SimpleCursorPaginationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.SimpleCursorPaginationResponse does not contain field %s", fd.FullName())) } } @@ -618,14 +618,14 @@ func (x *fastReflection_SimpleCursorPaginationResponse) Clear(fd protoreflect.Fi // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_SimpleCursorPaginationResponse) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.SimpleCursorPaginationResponse.next_key": + case "emissions.v2.SimpleCursorPaginationResponse.next_key": value := x.NextKey return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.SimpleCursorPaginationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.SimpleCursorPaginationResponse")) } - panic(fmt.Errorf("message emissions.v1.SimpleCursorPaginationResponse does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.SimpleCursorPaginationResponse does not contain field %s", descriptor.FullName())) } } @@ -641,13 +641,13 @@ func (x *fastReflection_SimpleCursorPaginationResponse) Get(descriptor protorefl // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SimpleCursorPaginationResponse) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.SimpleCursorPaginationResponse.next_key": + case "emissions.v2.SimpleCursorPaginationResponse.next_key": x.NextKey = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.SimpleCursorPaginationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.SimpleCursorPaginationResponse")) } - panic(fmt.Errorf("message emissions.v1.SimpleCursorPaginationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.SimpleCursorPaginationResponse does not contain field %s", fd.FullName())) } } @@ -663,13 +663,13 @@ func (x *fastReflection_SimpleCursorPaginationResponse) Set(fd protoreflect.Fiel // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_SimpleCursorPaginationResponse) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.SimpleCursorPaginationResponse.next_key": - panic(fmt.Errorf("field next_key of message emissions.v1.SimpleCursorPaginationResponse is not mutable")) + case "emissions.v2.SimpleCursorPaginationResponse.next_key": + panic(fmt.Errorf("field next_key of message emissions.v2.SimpleCursorPaginationResponse is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.SimpleCursorPaginationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.SimpleCursorPaginationResponse")) } - panic(fmt.Errorf("message emissions.v1.SimpleCursorPaginationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.SimpleCursorPaginationResponse does not contain field %s", fd.FullName())) } } @@ -678,13 +678,13 @@ func (x *fastReflection_SimpleCursorPaginationResponse) Mutable(fd protoreflect. // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_SimpleCursorPaginationResponse) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.SimpleCursorPaginationResponse.next_key": + case "emissions.v2.SimpleCursorPaginationResponse.next_key": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.SimpleCursorPaginationResponse")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.SimpleCursorPaginationResponse")) } - panic(fmt.Errorf("message emissions.v1.SimpleCursorPaginationResponse does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.SimpleCursorPaginationResponse does not contain field %s", fd.FullName())) } } @@ -694,7 +694,7 @@ func (x *fastReflection_SimpleCursorPaginationResponse) NewField(fd protoreflect func (x *fastReflection_SimpleCursorPaginationResponse) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.SimpleCursorPaginationResponse", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.SimpleCursorPaginationResponse", d.FullName())) } panic("unreachable") } @@ -913,8 +913,8 @@ var ( ) func init() { - file_emissions_v1_types_proto_init() - md_ListeningCoefficient = File_emissions_v1_types_proto.Messages().ByName("ListeningCoefficient") + file_emissions_v2_types_proto_init() + md_ListeningCoefficient = File_emissions_v2_types_proto.Messages().ByName("ListeningCoefficient") fd_ListeningCoefficient_coefficient = md_ListeningCoefficient.Fields().ByName("coefficient") } @@ -927,7 +927,7 @@ func (x *ListeningCoefficient) ProtoReflect() protoreflect.Message { } func (x *ListeningCoefficient) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_types_proto_msgTypes[2] + mi := &file_emissions_v2_types_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1004,13 +1004,13 @@ func (x *fastReflection_ListeningCoefficient) Range(f func(protoreflect.FieldDes // a repeated field is populated if it is non-empty. func (x *fastReflection_ListeningCoefficient) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.ListeningCoefficient.coefficient": + case "emissions.v2.ListeningCoefficient.coefficient": return x.Coefficient != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.ListeningCoefficient")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ListeningCoefficient")) } - panic(fmt.Errorf("message emissions.v1.ListeningCoefficient does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.ListeningCoefficient does not contain field %s", fd.FullName())) } } @@ -1022,13 +1022,13 @@ func (x *fastReflection_ListeningCoefficient) Has(fd protoreflect.FieldDescripto // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ListeningCoefficient) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.ListeningCoefficient.coefficient": + case "emissions.v2.ListeningCoefficient.coefficient": x.Coefficient = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.ListeningCoefficient")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ListeningCoefficient")) } - panic(fmt.Errorf("message emissions.v1.ListeningCoefficient does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.ListeningCoefficient does not contain field %s", fd.FullName())) } } @@ -1040,14 +1040,14 @@ func (x *fastReflection_ListeningCoefficient) Clear(fd protoreflect.FieldDescrip // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ListeningCoefficient) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.ListeningCoefficient.coefficient": + case "emissions.v2.ListeningCoefficient.coefficient": value := x.Coefficient return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.ListeningCoefficient")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ListeningCoefficient")) } - panic(fmt.Errorf("message emissions.v1.ListeningCoefficient does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.ListeningCoefficient does not contain field %s", descriptor.FullName())) } } @@ -1063,13 +1063,13 @@ func (x *fastReflection_ListeningCoefficient) Get(descriptor protoreflect.FieldD // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ListeningCoefficient) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.ListeningCoefficient.coefficient": + case "emissions.v2.ListeningCoefficient.coefficient": x.Coefficient = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.ListeningCoefficient")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ListeningCoefficient")) } - panic(fmt.Errorf("message emissions.v1.ListeningCoefficient does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.ListeningCoefficient does not contain field %s", fd.FullName())) } } @@ -1085,13 +1085,13 @@ func (x *fastReflection_ListeningCoefficient) Set(fd protoreflect.FieldDescripto // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ListeningCoefficient) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.ListeningCoefficient.coefficient": - panic(fmt.Errorf("field coefficient of message emissions.v1.ListeningCoefficient is not mutable")) + case "emissions.v2.ListeningCoefficient.coefficient": + panic(fmt.Errorf("field coefficient of message emissions.v2.ListeningCoefficient is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.ListeningCoefficient")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ListeningCoefficient")) } - panic(fmt.Errorf("message emissions.v1.ListeningCoefficient does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.ListeningCoefficient does not contain field %s", fd.FullName())) } } @@ -1100,13 +1100,13 @@ func (x *fastReflection_ListeningCoefficient) Mutable(fd protoreflect.FieldDescr // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ListeningCoefficient) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.ListeningCoefficient.coefficient": + case "emissions.v2.ListeningCoefficient.coefficient": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.ListeningCoefficient")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ListeningCoefficient")) } - panic(fmt.Errorf("message emissions.v1.ListeningCoefficient does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.ListeningCoefficient does not contain field %s", fd.FullName())) } } @@ -1116,7 +1116,7 @@ func (x *fastReflection_ListeningCoefficient) NewField(fd protoreflect.FieldDesc func (x *fastReflection_ListeningCoefficient) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.ListeningCoefficient", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.ListeningCoefficient", d.FullName())) } panic("unreachable") } @@ -1331,7 +1331,7 @@ func (x *fastReflection_ListeningCoefficient) ProtoMethods() *protoiface.Methods // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: emissions/v1/types.proto +// source: emissions/v2/types.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -1352,7 +1352,7 @@ type SimpleCursorPaginationRequest struct { func (x *SimpleCursorPaginationRequest) Reset() { *x = SimpleCursorPaginationRequest{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_types_proto_msgTypes[0] + mi := &file_emissions_v2_types_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1366,7 +1366,7 @@ func (*SimpleCursorPaginationRequest) ProtoMessage() {} // Deprecated: Use SimpleCursorPaginationRequest.ProtoReflect.Descriptor instead. func (*SimpleCursorPaginationRequest) Descriptor() ([]byte, []int) { - return file_emissions_v1_types_proto_rawDescGZIP(), []int{0} + return file_emissions_v2_types_proto_rawDescGZIP(), []int{0} } func (x *SimpleCursorPaginationRequest) GetKey() []byte { @@ -1394,7 +1394,7 @@ type SimpleCursorPaginationResponse struct { func (x *SimpleCursorPaginationResponse) Reset() { *x = SimpleCursorPaginationResponse{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_types_proto_msgTypes[1] + mi := &file_emissions_v2_types_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1408,7 +1408,7 @@ func (*SimpleCursorPaginationResponse) ProtoMessage() {} // Deprecated: Use SimpleCursorPaginationResponse.ProtoReflect.Descriptor instead. func (*SimpleCursorPaginationResponse) Descriptor() ([]byte, []int) { - return file_emissions_v1_types_proto_rawDescGZIP(), []int{1} + return file_emissions_v2_types_proto_rawDescGZIP(), []int{1} } func (x *SimpleCursorPaginationResponse) GetNextKey() []byte { @@ -1429,7 +1429,7 @@ type ListeningCoefficient struct { func (x *ListeningCoefficient) Reset() { *x = ListeningCoefficient{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_types_proto_msgTypes[2] + mi := &file_emissions_v2_types_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1443,7 +1443,7 @@ func (*ListeningCoefficient) ProtoMessage() {} // Deprecated: Use ListeningCoefficient.ProtoReflect.Descriptor instead. func (*ListeningCoefficient) Descriptor() ([]byte, []int) { - return file_emissions_v1_types_proto_rawDescGZIP(), []int{2} + return file_emissions_v2_types_proto_rawDescGZIP(), []int{2} } func (x *ListeningCoefficient) GetCoefficient() string { @@ -1453,12 +1453,12 @@ func (x *ListeningCoefficient) GetCoefficient() string { return "" } -var File_emissions_v1_types_proto protoreflect.FileDescriptor +var File_emissions_v2_types_proto protoreflect.FileDescriptor -var file_emissions_v1_types_proto_rawDesc = []byte{ - 0x0a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x74, +var file_emissions_v2_types_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, 0x69, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, @@ -1479,39 +1479,39 @@ var file_emissions_v1_types_proto_rawDesc = []byte{ 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x0b, 0x63, 0x6f, 0x65, 0x66, 0x66, 0x69, 0x63, 0x69, 0x65, 0x6e, 0x74, 0x42, 0xc0, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6d, - 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, - 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, - 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x65, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, + 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, + 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18, + 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_emissions_v1_types_proto_rawDescOnce sync.Once - file_emissions_v1_types_proto_rawDescData = file_emissions_v1_types_proto_rawDesc + file_emissions_v2_types_proto_rawDescOnce sync.Once + file_emissions_v2_types_proto_rawDescData = file_emissions_v2_types_proto_rawDesc ) -func file_emissions_v1_types_proto_rawDescGZIP() []byte { - file_emissions_v1_types_proto_rawDescOnce.Do(func() { - file_emissions_v1_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v1_types_proto_rawDescData) +func file_emissions_v2_types_proto_rawDescGZIP() []byte { + file_emissions_v2_types_proto_rawDescOnce.Do(func() { + file_emissions_v2_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_types_proto_rawDescData) }) - return file_emissions_v1_types_proto_rawDescData + return file_emissions_v2_types_proto_rawDescData } -var file_emissions_v1_types_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_emissions_v1_types_proto_goTypes = []interface{}{ - (*SimpleCursorPaginationRequest)(nil), // 0: emissions.v1.SimpleCursorPaginationRequest - (*SimpleCursorPaginationResponse)(nil), // 1: emissions.v1.SimpleCursorPaginationResponse - (*ListeningCoefficient)(nil), // 2: emissions.v1.ListeningCoefficient +var file_emissions_v2_types_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_emissions_v2_types_proto_goTypes = []interface{}{ + (*SimpleCursorPaginationRequest)(nil), // 0: emissions.v2.SimpleCursorPaginationRequest + (*SimpleCursorPaginationResponse)(nil), // 1: emissions.v2.SimpleCursorPaginationResponse + (*ListeningCoefficient)(nil), // 2: emissions.v2.ListeningCoefficient } -var file_emissions_v1_types_proto_depIdxs = []int32{ +var file_emissions_v2_types_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name @@ -1519,13 +1519,13 @@ var file_emissions_v1_types_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for field type_name } -func init() { file_emissions_v1_types_proto_init() } -func file_emissions_v1_types_proto_init() { - if File_emissions_v1_types_proto != nil { +func init() { file_emissions_v2_types_proto_init() } +func file_emissions_v2_types_proto_init() { + if File_emissions_v2_types_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_emissions_v1_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SimpleCursorPaginationRequest); i { case 0: return &v.state @@ -1537,7 +1537,7 @@ func file_emissions_v1_types_proto_init() { return nil } } - file_emissions_v1_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SimpleCursorPaginationResponse); i { case 0: return &v.state @@ -1549,7 +1549,7 @@ func file_emissions_v1_types_proto_init() { return nil } } - file_emissions_v1_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListeningCoefficient); i { case 0: return &v.state @@ -1566,18 +1566,18 @@ func file_emissions_v1_types_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_emissions_v1_types_proto_rawDesc, + RawDescriptor: file_emissions_v2_types_proto_rawDesc, NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_emissions_v1_types_proto_goTypes, - DependencyIndexes: file_emissions_v1_types_proto_depIdxs, - MessageInfos: file_emissions_v1_types_proto_msgTypes, + GoTypes: file_emissions_v2_types_proto_goTypes, + DependencyIndexes: file_emissions_v2_types_proto_depIdxs, + MessageInfos: file_emissions_v2_types_proto_msgTypes, }.Build() - File_emissions_v1_types_proto = out.File - file_emissions_v1_types_proto_rawDesc = nil - file_emissions_v1_types_proto_goTypes = nil - file_emissions_v1_types_proto_depIdxs = nil + File_emissions_v2_types_proto = out.File + file_emissions_v2_types_proto_rawDesc = nil + file_emissions_v2_types_proto_goTypes = nil + file_emissions_v2_types_proto_depIdxs = nil } diff --git a/x/emissions/api/v1/worker.pulsar.go b/x/emissions/api/v2/worker.pulsar.go similarity index 85% rename from x/emissions/api/v1/worker.pulsar.go rename to x/emissions/api/v2/worker.pulsar.go index 5d73438a7..2b86e1796 100644 --- a/x/emissions/api/v1/worker.pulsar.go +++ b/x/emissions/api/v2/worker.pulsar.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-go-pulsar. DO NOT EDIT. -package emissionsv1 +package emissionsv2 import ( fmt "fmt" @@ -20,8 +20,8 @@ var ( ) func init() { - file_emissions_v1_worker_proto_init() - md_TimestampedValue = File_emissions_v1_worker_proto.Messages().ByName("TimestampedValue") + file_emissions_v2_worker_proto_init() + md_TimestampedValue = File_emissions_v2_worker_proto.Messages().ByName("TimestampedValue") fd_TimestampedValue_block_height = md_TimestampedValue.Fields().ByName("block_height") fd_TimestampedValue_value = md_TimestampedValue.Fields().ByName("value") } @@ -35,7 +35,7 @@ func (x *TimestampedValue) ProtoReflect() protoreflect.Message { } func (x *TimestampedValue) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_worker_proto_msgTypes[0] + mi := &file_emissions_v2_worker_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -118,15 +118,15 @@ func (x *fastReflection_TimestampedValue) Range(f func(protoreflect.FieldDescrip // a repeated field is populated if it is non-empty. func (x *fastReflection_TimestampedValue) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.TimestampedValue.block_height": + case "emissions.v2.TimestampedValue.block_height": return x.BlockHeight != int64(0) - case "emissions.v1.TimestampedValue.value": + case "emissions.v2.TimestampedValue.value": return x.Value != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.TimestampedValue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TimestampedValue")) } - panic(fmt.Errorf("message emissions.v1.TimestampedValue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.TimestampedValue does not contain field %s", fd.FullName())) } } @@ -138,15 +138,15 @@ func (x *fastReflection_TimestampedValue) Has(fd protoreflect.FieldDescriptor) b // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TimestampedValue) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.TimestampedValue.block_height": + case "emissions.v2.TimestampedValue.block_height": x.BlockHeight = int64(0) - case "emissions.v1.TimestampedValue.value": + case "emissions.v2.TimestampedValue.value": x.Value = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.TimestampedValue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TimestampedValue")) } - panic(fmt.Errorf("message emissions.v1.TimestampedValue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.TimestampedValue does not contain field %s", fd.FullName())) } } @@ -158,17 +158,17 @@ func (x *fastReflection_TimestampedValue) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_TimestampedValue) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.TimestampedValue.block_height": + case "emissions.v2.TimestampedValue.block_height": value := x.BlockHeight return protoreflect.ValueOfInt64(value) - case "emissions.v1.TimestampedValue.value": + case "emissions.v2.TimestampedValue.value": value := x.Value return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.TimestampedValue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TimestampedValue")) } - panic(fmt.Errorf("message emissions.v1.TimestampedValue does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.TimestampedValue does not contain field %s", descriptor.FullName())) } } @@ -184,15 +184,15 @@ func (x *fastReflection_TimestampedValue) Get(descriptor protoreflect.FieldDescr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TimestampedValue) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.TimestampedValue.block_height": + case "emissions.v2.TimestampedValue.block_height": x.BlockHeight = value.Int() - case "emissions.v1.TimestampedValue.value": + case "emissions.v2.TimestampedValue.value": x.Value = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.TimestampedValue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TimestampedValue")) } - panic(fmt.Errorf("message emissions.v1.TimestampedValue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.TimestampedValue does not contain field %s", fd.FullName())) } } @@ -208,15 +208,15 @@ func (x *fastReflection_TimestampedValue) Set(fd protoreflect.FieldDescriptor, v // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_TimestampedValue) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.TimestampedValue.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.TimestampedValue is not mutable")) - case "emissions.v1.TimestampedValue.value": - panic(fmt.Errorf("field value of message emissions.v1.TimestampedValue is not mutable")) + case "emissions.v2.TimestampedValue.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.TimestampedValue is not mutable")) + case "emissions.v2.TimestampedValue.value": + panic(fmt.Errorf("field value of message emissions.v2.TimestampedValue is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.TimestampedValue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TimestampedValue")) } - panic(fmt.Errorf("message emissions.v1.TimestampedValue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.TimestampedValue does not contain field %s", fd.FullName())) } } @@ -225,15 +225,15 @@ func (x *fastReflection_TimestampedValue) Mutable(fd protoreflect.FieldDescripto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_TimestampedValue) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.TimestampedValue.block_height": + case "emissions.v2.TimestampedValue.block_height": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.TimestampedValue.value": + case "emissions.v2.TimestampedValue.value": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.TimestampedValue")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.TimestampedValue")) } - panic(fmt.Errorf("message emissions.v1.TimestampedValue does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.TimestampedValue does not contain field %s", fd.FullName())) } } @@ -243,7 +243,7 @@ func (x *fastReflection_TimestampedValue) NewField(fd protoreflect.FieldDescript func (x *fastReflection_TimestampedValue) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.TimestampedValue", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.TimestampedValue", d.FullName())) } panic("unreachable") } @@ -492,8 +492,8 @@ var ( ) func init() { - file_emissions_v1_worker_proto_init() - md_Inference = File_emissions_v1_worker_proto.Messages().ByName("Inference") + file_emissions_v2_worker_proto_init() + md_Inference = File_emissions_v2_worker_proto.Messages().ByName("Inference") fd_Inference_topic_id = md_Inference.Fields().ByName("topic_id") fd_Inference_block_height = md_Inference.Fields().ByName("block_height") fd_Inference_inferer = md_Inference.Fields().ByName("inferer") @@ -511,7 +511,7 @@ func (x *Inference) ProtoReflect() protoreflect.Message { } func (x *Inference) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_worker_proto_msgTypes[1] + mi := &file_emissions_v2_worker_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -618,23 +618,23 @@ func (x *fastReflection_Inference) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_Inference) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.Inference.topic_id": + case "emissions.v2.Inference.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.Inference.block_height": + case "emissions.v2.Inference.block_height": return x.BlockHeight != int64(0) - case "emissions.v1.Inference.inferer": + case "emissions.v2.Inference.inferer": return x.Inferer != "" - case "emissions.v1.Inference.value": + case "emissions.v2.Inference.value": return x.Value != "" - case "emissions.v1.Inference.extra_data": + case "emissions.v2.Inference.extra_data": return len(x.ExtraData) != 0 - case "emissions.v1.Inference.proof": + case "emissions.v2.Inference.proof": return x.Proof != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Inference")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Inference")) } - panic(fmt.Errorf("message emissions.v1.Inference does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Inference does not contain field %s", fd.FullName())) } } @@ -646,23 +646,23 @@ func (x *fastReflection_Inference) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Inference) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.Inference.topic_id": + case "emissions.v2.Inference.topic_id": x.TopicId = uint64(0) - case "emissions.v1.Inference.block_height": + case "emissions.v2.Inference.block_height": x.BlockHeight = int64(0) - case "emissions.v1.Inference.inferer": + case "emissions.v2.Inference.inferer": x.Inferer = "" - case "emissions.v1.Inference.value": + case "emissions.v2.Inference.value": x.Value = "" - case "emissions.v1.Inference.extra_data": + case "emissions.v2.Inference.extra_data": x.ExtraData = nil - case "emissions.v1.Inference.proof": + case "emissions.v2.Inference.proof": x.Proof = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Inference")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Inference")) } - panic(fmt.Errorf("message emissions.v1.Inference does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Inference does not contain field %s", fd.FullName())) } } @@ -674,29 +674,29 @@ func (x *fastReflection_Inference) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Inference) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.Inference.topic_id": + case "emissions.v2.Inference.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.Inference.block_height": + case "emissions.v2.Inference.block_height": value := x.BlockHeight return protoreflect.ValueOfInt64(value) - case "emissions.v1.Inference.inferer": + case "emissions.v2.Inference.inferer": value := x.Inferer return protoreflect.ValueOfString(value) - case "emissions.v1.Inference.value": + case "emissions.v2.Inference.value": value := x.Value return protoreflect.ValueOfString(value) - case "emissions.v1.Inference.extra_data": + case "emissions.v2.Inference.extra_data": value := x.ExtraData return protoreflect.ValueOfBytes(value) - case "emissions.v1.Inference.proof": + case "emissions.v2.Inference.proof": value := x.Proof return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Inference")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Inference")) } - panic(fmt.Errorf("message emissions.v1.Inference does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.Inference does not contain field %s", descriptor.FullName())) } } @@ -712,23 +712,23 @@ func (x *fastReflection_Inference) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Inference) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.Inference.topic_id": + case "emissions.v2.Inference.topic_id": x.TopicId = value.Uint() - case "emissions.v1.Inference.block_height": + case "emissions.v2.Inference.block_height": x.BlockHeight = value.Int() - case "emissions.v1.Inference.inferer": + case "emissions.v2.Inference.inferer": x.Inferer = value.Interface().(string) - case "emissions.v1.Inference.value": + case "emissions.v2.Inference.value": x.Value = value.Interface().(string) - case "emissions.v1.Inference.extra_data": + case "emissions.v2.Inference.extra_data": x.ExtraData = value.Bytes() - case "emissions.v1.Inference.proof": + case "emissions.v2.Inference.proof": x.Proof = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Inference")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Inference")) } - panic(fmt.Errorf("message emissions.v1.Inference does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Inference does not contain field %s", fd.FullName())) } } @@ -744,23 +744,23 @@ func (x *fastReflection_Inference) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Inference) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Inference.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.Inference is not mutable")) - case "emissions.v1.Inference.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.Inference is not mutable")) - case "emissions.v1.Inference.inferer": - panic(fmt.Errorf("field inferer of message emissions.v1.Inference is not mutable")) - case "emissions.v1.Inference.value": - panic(fmt.Errorf("field value of message emissions.v1.Inference is not mutable")) - case "emissions.v1.Inference.extra_data": - panic(fmt.Errorf("field extra_data of message emissions.v1.Inference is not mutable")) - case "emissions.v1.Inference.proof": - panic(fmt.Errorf("field proof of message emissions.v1.Inference is not mutable")) + case "emissions.v2.Inference.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.Inference is not mutable")) + case "emissions.v2.Inference.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.Inference is not mutable")) + case "emissions.v2.Inference.inferer": + panic(fmt.Errorf("field inferer of message emissions.v2.Inference is not mutable")) + case "emissions.v2.Inference.value": + panic(fmt.Errorf("field value of message emissions.v2.Inference is not mutable")) + case "emissions.v2.Inference.extra_data": + panic(fmt.Errorf("field extra_data of message emissions.v2.Inference is not mutable")) + case "emissions.v2.Inference.proof": + panic(fmt.Errorf("field proof of message emissions.v2.Inference is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Inference")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Inference")) } - panic(fmt.Errorf("message emissions.v1.Inference does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Inference does not contain field %s", fd.FullName())) } } @@ -769,23 +769,23 @@ func (x *fastReflection_Inference) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Inference) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Inference.topic_id": + case "emissions.v2.Inference.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Inference.block_height": + case "emissions.v2.Inference.block_height": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.Inference.inferer": + case "emissions.v2.Inference.inferer": return protoreflect.ValueOfString("") - case "emissions.v1.Inference.value": + case "emissions.v2.Inference.value": return protoreflect.ValueOfString("") - case "emissions.v1.Inference.extra_data": + case "emissions.v2.Inference.extra_data": return protoreflect.ValueOfBytes(nil) - case "emissions.v1.Inference.proof": + case "emissions.v2.Inference.proof": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Inference")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Inference")) } - panic(fmt.Errorf("message emissions.v1.Inference does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Inference does not contain field %s", fd.FullName())) } } @@ -795,7 +795,7 @@ func (x *fastReflection_Inference) NewField(fd protoreflect.FieldDescriptor) pro func (x *fastReflection_Inference) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.Inference", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.Inference", d.FullName())) } panic("unreachable") } @@ -1248,8 +1248,8 @@ var ( ) func init() { - file_emissions_v1_worker_proto_init() - md_Inferences = File_emissions_v1_worker_proto.Messages().ByName("Inferences") + file_emissions_v2_worker_proto_init() + md_Inferences = File_emissions_v2_worker_proto.Messages().ByName("Inferences") fd_Inferences_inferences = md_Inferences.Fields().ByName("inferences") } @@ -1262,7 +1262,7 @@ func (x *Inferences) ProtoReflect() protoreflect.Message { } func (x *Inferences) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_worker_proto_msgTypes[2] + mi := &file_emissions_v2_worker_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1339,13 +1339,13 @@ func (x *fastReflection_Inferences) Range(f func(protoreflect.FieldDescriptor, p // a repeated field is populated if it is non-empty. func (x *fastReflection_Inferences) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.Inferences.inferences": + case "emissions.v2.Inferences.inferences": return len(x.Inferences) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Inferences")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Inferences")) } - panic(fmt.Errorf("message emissions.v1.Inferences does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Inferences does not contain field %s", fd.FullName())) } } @@ -1357,13 +1357,13 @@ func (x *fastReflection_Inferences) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Inferences) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.Inferences.inferences": + case "emissions.v2.Inferences.inferences": x.Inferences = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Inferences")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Inferences")) } - panic(fmt.Errorf("message emissions.v1.Inferences does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Inferences does not contain field %s", fd.FullName())) } } @@ -1375,7 +1375,7 @@ func (x *fastReflection_Inferences) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Inferences) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.Inferences.inferences": + case "emissions.v2.Inferences.inferences": if len(x.Inferences) == 0 { return protoreflect.ValueOfList(&_Inferences_1_list{}) } @@ -1383,9 +1383,9 @@ func (x *fastReflection_Inferences) Get(descriptor protoreflect.FieldDescriptor) return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Inferences")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Inferences")) } - panic(fmt.Errorf("message emissions.v1.Inferences does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.Inferences does not contain field %s", descriptor.FullName())) } } @@ -1401,15 +1401,15 @@ func (x *fastReflection_Inferences) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Inferences) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.Inferences.inferences": + case "emissions.v2.Inferences.inferences": lv := value.List() clv := lv.(*_Inferences_1_list) x.Inferences = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Inferences")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Inferences")) } - panic(fmt.Errorf("message emissions.v1.Inferences does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Inferences does not contain field %s", fd.FullName())) } } @@ -1425,7 +1425,7 @@ func (x *fastReflection_Inferences) Set(fd protoreflect.FieldDescriptor, value p // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Inferences) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Inferences.inferences": + case "emissions.v2.Inferences.inferences": if x.Inferences == nil { x.Inferences = []*Inference{} } @@ -1433,9 +1433,9 @@ func (x *fastReflection_Inferences) Mutable(fd protoreflect.FieldDescriptor) pro return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Inferences")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Inferences")) } - panic(fmt.Errorf("message emissions.v1.Inferences does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Inferences does not contain field %s", fd.FullName())) } } @@ -1444,14 +1444,14 @@ func (x *fastReflection_Inferences) Mutable(fd protoreflect.FieldDescriptor) pro // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Inferences) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Inferences.inferences": + case "emissions.v2.Inferences.inferences": list := []*Inference{} return protoreflect.ValueOfList(&_Inferences_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Inferences")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Inferences")) } - panic(fmt.Errorf("message emissions.v1.Inferences does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Inferences does not contain field %s", fd.FullName())) } } @@ -1461,7 +1461,7 @@ func (x *fastReflection_Inferences) NewField(fd protoreflect.FieldDescriptor) pr func (x *fastReflection_Inferences) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.Inferences", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.Inferences", d.FullName())) } panic("unreachable") } @@ -1692,8 +1692,8 @@ var ( ) func init() { - file_emissions_v1_worker_proto_init() - md_ForecastElement = File_emissions_v1_worker_proto.Messages().ByName("ForecastElement") + file_emissions_v2_worker_proto_init() + md_ForecastElement = File_emissions_v2_worker_proto.Messages().ByName("ForecastElement") fd_ForecastElement_inferer = md_ForecastElement.Fields().ByName("inferer") fd_ForecastElement_value = md_ForecastElement.Fields().ByName("value") } @@ -1707,7 +1707,7 @@ func (x *ForecastElement) ProtoReflect() protoreflect.Message { } func (x *ForecastElement) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_worker_proto_msgTypes[3] + mi := &file_emissions_v2_worker_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1790,15 +1790,15 @@ func (x *fastReflection_ForecastElement) Range(f func(protoreflect.FieldDescript // a repeated field is populated if it is non-empty. func (x *fastReflection_ForecastElement) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.ForecastElement.inferer": + case "emissions.v2.ForecastElement.inferer": return x.Inferer != "" - case "emissions.v1.ForecastElement.value": + case "emissions.v2.ForecastElement.value": return x.Value != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.ForecastElement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ForecastElement")) } - panic(fmt.Errorf("message emissions.v1.ForecastElement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.ForecastElement does not contain field %s", fd.FullName())) } } @@ -1810,15 +1810,15 @@ func (x *fastReflection_ForecastElement) Has(fd protoreflect.FieldDescriptor) bo // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ForecastElement) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.ForecastElement.inferer": + case "emissions.v2.ForecastElement.inferer": x.Inferer = "" - case "emissions.v1.ForecastElement.value": + case "emissions.v2.ForecastElement.value": x.Value = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.ForecastElement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ForecastElement")) } - panic(fmt.Errorf("message emissions.v1.ForecastElement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.ForecastElement does not contain field %s", fd.FullName())) } } @@ -1830,17 +1830,17 @@ func (x *fastReflection_ForecastElement) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_ForecastElement) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.ForecastElement.inferer": + case "emissions.v2.ForecastElement.inferer": value := x.Inferer return protoreflect.ValueOfString(value) - case "emissions.v1.ForecastElement.value": + case "emissions.v2.ForecastElement.value": value := x.Value return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.ForecastElement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ForecastElement")) } - panic(fmt.Errorf("message emissions.v1.ForecastElement does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.ForecastElement does not contain field %s", descriptor.FullName())) } } @@ -1856,15 +1856,15 @@ func (x *fastReflection_ForecastElement) Get(descriptor protoreflect.FieldDescri // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ForecastElement) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.ForecastElement.inferer": + case "emissions.v2.ForecastElement.inferer": x.Inferer = value.Interface().(string) - case "emissions.v1.ForecastElement.value": + case "emissions.v2.ForecastElement.value": x.Value = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.ForecastElement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ForecastElement")) } - panic(fmt.Errorf("message emissions.v1.ForecastElement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.ForecastElement does not contain field %s", fd.FullName())) } } @@ -1880,15 +1880,15 @@ func (x *fastReflection_ForecastElement) Set(fd protoreflect.FieldDescriptor, va // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_ForecastElement) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.ForecastElement.inferer": - panic(fmt.Errorf("field inferer of message emissions.v1.ForecastElement is not mutable")) - case "emissions.v1.ForecastElement.value": - panic(fmt.Errorf("field value of message emissions.v1.ForecastElement is not mutable")) + case "emissions.v2.ForecastElement.inferer": + panic(fmt.Errorf("field inferer of message emissions.v2.ForecastElement is not mutable")) + case "emissions.v2.ForecastElement.value": + panic(fmt.Errorf("field value of message emissions.v2.ForecastElement is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.ForecastElement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ForecastElement")) } - panic(fmt.Errorf("message emissions.v1.ForecastElement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.ForecastElement does not contain field %s", fd.FullName())) } } @@ -1897,15 +1897,15 @@ func (x *fastReflection_ForecastElement) Mutable(fd protoreflect.FieldDescriptor // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_ForecastElement) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.ForecastElement.inferer": + case "emissions.v2.ForecastElement.inferer": return protoreflect.ValueOfString("") - case "emissions.v1.ForecastElement.value": + case "emissions.v2.ForecastElement.value": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.ForecastElement")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.ForecastElement")) } - panic(fmt.Errorf("message emissions.v1.ForecastElement does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.ForecastElement does not contain field %s", fd.FullName())) } } @@ -1915,7 +1915,7 @@ func (x *fastReflection_ForecastElement) NewField(fd protoreflect.FieldDescripto func (x *fastReflection_ForecastElement) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.ForecastElement", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.ForecastElement", d.FullName())) } panic("unreachable") } @@ -2230,8 +2230,8 @@ var ( ) func init() { - file_emissions_v1_worker_proto_init() - md_Forecast = File_emissions_v1_worker_proto.Messages().ByName("Forecast") + file_emissions_v2_worker_proto_init() + md_Forecast = File_emissions_v2_worker_proto.Messages().ByName("Forecast") fd_Forecast_topic_id = md_Forecast.Fields().ByName("topic_id") fd_Forecast_block_height = md_Forecast.Fields().ByName("block_height") fd_Forecast_forecaster = md_Forecast.Fields().ByName("forecaster") @@ -2248,7 +2248,7 @@ func (x *Forecast) ProtoReflect() protoreflect.Message { } func (x *Forecast) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_worker_proto_msgTypes[4] + mi := &file_emissions_v2_worker_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2349,21 +2349,21 @@ func (x *fastReflection_Forecast) Range(f func(protoreflect.FieldDescriptor, pro // a repeated field is populated if it is non-empty. func (x *fastReflection_Forecast) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.Forecast.topic_id": + case "emissions.v2.Forecast.topic_id": return x.TopicId != uint64(0) - case "emissions.v1.Forecast.block_height": + case "emissions.v2.Forecast.block_height": return x.BlockHeight != int64(0) - case "emissions.v1.Forecast.forecaster": + case "emissions.v2.Forecast.forecaster": return x.Forecaster != "" - case "emissions.v1.Forecast.forecast_elements": + case "emissions.v2.Forecast.forecast_elements": return len(x.ForecastElements) != 0 - case "emissions.v1.Forecast.extra_data": + case "emissions.v2.Forecast.extra_data": return len(x.ExtraData) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Forecast")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Forecast")) } - panic(fmt.Errorf("message emissions.v1.Forecast does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Forecast does not contain field %s", fd.FullName())) } } @@ -2375,21 +2375,21 @@ func (x *fastReflection_Forecast) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Forecast) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.Forecast.topic_id": + case "emissions.v2.Forecast.topic_id": x.TopicId = uint64(0) - case "emissions.v1.Forecast.block_height": + case "emissions.v2.Forecast.block_height": x.BlockHeight = int64(0) - case "emissions.v1.Forecast.forecaster": + case "emissions.v2.Forecast.forecaster": x.Forecaster = "" - case "emissions.v1.Forecast.forecast_elements": + case "emissions.v2.Forecast.forecast_elements": x.ForecastElements = nil - case "emissions.v1.Forecast.extra_data": + case "emissions.v2.Forecast.extra_data": x.ExtraData = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Forecast")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Forecast")) } - panic(fmt.Errorf("message emissions.v1.Forecast does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Forecast does not contain field %s", fd.FullName())) } } @@ -2401,29 +2401,29 @@ func (x *fastReflection_Forecast) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Forecast) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.Forecast.topic_id": + case "emissions.v2.Forecast.topic_id": value := x.TopicId return protoreflect.ValueOfUint64(value) - case "emissions.v1.Forecast.block_height": + case "emissions.v2.Forecast.block_height": value := x.BlockHeight return protoreflect.ValueOfInt64(value) - case "emissions.v1.Forecast.forecaster": + case "emissions.v2.Forecast.forecaster": value := x.Forecaster return protoreflect.ValueOfString(value) - case "emissions.v1.Forecast.forecast_elements": + case "emissions.v2.Forecast.forecast_elements": if len(x.ForecastElements) == 0 { return protoreflect.ValueOfList(&_Forecast_4_list{}) } listValue := &_Forecast_4_list{list: &x.ForecastElements} return protoreflect.ValueOfList(listValue) - case "emissions.v1.Forecast.extra_data": + case "emissions.v2.Forecast.extra_data": value := x.ExtraData return protoreflect.ValueOfBytes(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Forecast")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Forecast")) } - panic(fmt.Errorf("message emissions.v1.Forecast does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.Forecast does not contain field %s", descriptor.FullName())) } } @@ -2439,23 +2439,23 @@ func (x *fastReflection_Forecast) Get(descriptor protoreflect.FieldDescriptor) p // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Forecast) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.Forecast.topic_id": + case "emissions.v2.Forecast.topic_id": x.TopicId = value.Uint() - case "emissions.v1.Forecast.block_height": + case "emissions.v2.Forecast.block_height": x.BlockHeight = value.Int() - case "emissions.v1.Forecast.forecaster": + case "emissions.v2.Forecast.forecaster": x.Forecaster = value.Interface().(string) - case "emissions.v1.Forecast.forecast_elements": + case "emissions.v2.Forecast.forecast_elements": lv := value.List() clv := lv.(*_Forecast_4_list) x.ForecastElements = *clv.list - case "emissions.v1.Forecast.extra_data": + case "emissions.v2.Forecast.extra_data": x.ExtraData = value.Bytes() default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Forecast")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Forecast")) } - panic(fmt.Errorf("message emissions.v1.Forecast does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Forecast does not contain field %s", fd.FullName())) } } @@ -2471,25 +2471,25 @@ func (x *fastReflection_Forecast) Set(fd protoreflect.FieldDescriptor, value pro // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Forecast) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Forecast.forecast_elements": + case "emissions.v2.Forecast.forecast_elements": if x.ForecastElements == nil { x.ForecastElements = []*ForecastElement{} } value := &_Forecast_4_list{list: &x.ForecastElements} return protoreflect.ValueOfList(value) - case "emissions.v1.Forecast.topic_id": - panic(fmt.Errorf("field topic_id of message emissions.v1.Forecast is not mutable")) - case "emissions.v1.Forecast.block_height": - panic(fmt.Errorf("field block_height of message emissions.v1.Forecast is not mutable")) - case "emissions.v1.Forecast.forecaster": - panic(fmt.Errorf("field forecaster of message emissions.v1.Forecast is not mutable")) - case "emissions.v1.Forecast.extra_data": - panic(fmt.Errorf("field extra_data of message emissions.v1.Forecast is not mutable")) + case "emissions.v2.Forecast.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.Forecast is not mutable")) + case "emissions.v2.Forecast.block_height": + panic(fmt.Errorf("field block_height of message emissions.v2.Forecast is not mutable")) + case "emissions.v2.Forecast.forecaster": + panic(fmt.Errorf("field forecaster of message emissions.v2.Forecast is not mutable")) + case "emissions.v2.Forecast.extra_data": + panic(fmt.Errorf("field extra_data of message emissions.v2.Forecast is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Forecast")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Forecast")) } - panic(fmt.Errorf("message emissions.v1.Forecast does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Forecast does not contain field %s", fd.FullName())) } } @@ -2498,22 +2498,22 @@ func (x *fastReflection_Forecast) Mutable(fd protoreflect.FieldDescriptor) proto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Forecast) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Forecast.topic_id": + case "emissions.v2.Forecast.topic_id": return protoreflect.ValueOfUint64(uint64(0)) - case "emissions.v1.Forecast.block_height": + case "emissions.v2.Forecast.block_height": return protoreflect.ValueOfInt64(int64(0)) - case "emissions.v1.Forecast.forecaster": + case "emissions.v2.Forecast.forecaster": return protoreflect.ValueOfString("") - case "emissions.v1.Forecast.forecast_elements": + case "emissions.v2.Forecast.forecast_elements": list := []*ForecastElement{} return protoreflect.ValueOfList(&_Forecast_4_list{list: &list}) - case "emissions.v1.Forecast.extra_data": + case "emissions.v2.Forecast.extra_data": return protoreflect.ValueOfBytes(nil) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Forecast")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Forecast")) } - panic(fmt.Errorf("message emissions.v1.Forecast does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Forecast does not contain field %s", fd.FullName())) } } @@ -2523,7 +2523,7 @@ func (x *fastReflection_Forecast) NewField(fd protoreflect.FieldDescriptor) prot func (x *fastReflection_Forecast) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.Forecast", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.Forecast", d.FullName())) } panic("unreachable") } @@ -2946,8 +2946,8 @@ var ( ) func init() { - file_emissions_v1_worker_proto_init() - md_Forecasts = File_emissions_v1_worker_proto.Messages().ByName("Forecasts") + file_emissions_v2_worker_proto_init() + md_Forecasts = File_emissions_v2_worker_proto.Messages().ByName("Forecasts") fd_Forecasts_forecasts = md_Forecasts.Fields().ByName("forecasts") } @@ -2960,7 +2960,7 @@ func (x *Forecasts) ProtoReflect() protoreflect.Message { } func (x *Forecasts) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_worker_proto_msgTypes[5] + mi := &file_emissions_v2_worker_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3037,13 +3037,13 @@ func (x *fastReflection_Forecasts) Range(f func(protoreflect.FieldDescriptor, pr // a repeated field is populated if it is non-empty. func (x *fastReflection_Forecasts) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.Forecasts.forecasts": + case "emissions.v2.Forecasts.forecasts": return len(x.Forecasts) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Forecasts")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Forecasts")) } - panic(fmt.Errorf("message emissions.v1.Forecasts does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Forecasts does not contain field %s", fd.FullName())) } } @@ -3055,13 +3055,13 @@ func (x *fastReflection_Forecasts) Has(fd protoreflect.FieldDescriptor) bool { // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Forecasts) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.Forecasts.forecasts": + case "emissions.v2.Forecasts.forecasts": x.Forecasts = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Forecasts")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Forecasts")) } - panic(fmt.Errorf("message emissions.v1.Forecasts does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Forecasts does not contain field %s", fd.FullName())) } } @@ -3073,7 +3073,7 @@ func (x *fastReflection_Forecasts) Clear(fd protoreflect.FieldDescriptor) { // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_Forecasts) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.Forecasts.forecasts": + case "emissions.v2.Forecasts.forecasts": if len(x.Forecasts) == 0 { return protoreflect.ValueOfList(&_Forecasts_1_list{}) } @@ -3081,9 +3081,9 @@ func (x *fastReflection_Forecasts) Get(descriptor protoreflect.FieldDescriptor) return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Forecasts")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Forecasts")) } - panic(fmt.Errorf("message emissions.v1.Forecasts does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.Forecasts does not contain field %s", descriptor.FullName())) } } @@ -3099,15 +3099,15 @@ func (x *fastReflection_Forecasts) Get(descriptor protoreflect.FieldDescriptor) // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Forecasts) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.Forecasts.forecasts": + case "emissions.v2.Forecasts.forecasts": lv := value.List() clv := lv.(*_Forecasts_1_list) x.Forecasts = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Forecasts")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Forecasts")) } - panic(fmt.Errorf("message emissions.v1.Forecasts does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Forecasts does not contain field %s", fd.FullName())) } } @@ -3123,7 +3123,7 @@ func (x *fastReflection_Forecasts) Set(fd protoreflect.FieldDescriptor, value pr // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_Forecasts) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Forecasts.forecasts": + case "emissions.v2.Forecasts.forecasts": if x.Forecasts == nil { x.Forecasts = []*Forecast{} } @@ -3131,9 +3131,9 @@ func (x *fastReflection_Forecasts) Mutable(fd protoreflect.FieldDescriptor) prot return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Forecasts")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Forecasts")) } - panic(fmt.Errorf("message emissions.v1.Forecasts does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Forecasts does not contain field %s", fd.FullName())) } } @@ -3142,14 +3142,14 @@ func (x *fastReflection_Forecasts) Mutable(fd protoreflect.FieldDescriptor) prot // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_Forecasts) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.Forecasts.forecasts": + case "emissions.v2.Forecasts.forecasts": list := []*Forecast{} return protoreflect.ValueOfList(&_Forecasts_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.Forecasts")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.Forecasts")) } - panic(fmt.Errorf("message emissions.v1.Forecasts does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.Forecasts does not contain field %s", fd.FullName())) } } @@ -3159,7 +3159,7 @@ func (x *fastReflection_Forecasts) NewField(fd protoreflect.FieldDescriptor) pro func (x *fastReflection_Forecasts) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.Forecasts", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.Forecasts", d.FullName())) } panic("unreachable") } @@ -3390,8 +3390,8 @@ var ( ) func init() { - file_emissions_v1_worker_proto_init() - md_InferenceForecastBundle = File_emissions_v1_worker_proto.Messages().ByName("InferenceForecastBundle") + file_emissions_v2_worker_proto_init() + md_InferenceForecastBundle = File_emissions_v2_worker_proto.Messages().ByName("InferenceForecastBundle") fd_InferenceForecastBundle_inference = md_InferenceForecastBundle.Fields().ByName("inference") fd_InferenceForecastBundle_forecast = md_InferenceForecastBundle.Fields().ByName("forecast") } @@ -3405,7 +3405,7 @@ func (x *InferenceForecastBundle) ProtoReflect() protoreflect.Message { } func (x *InferenceForecastBundle) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_worker_proto_msgTypes[6] + mi := &file_emissions_v2_worker_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3488,15 +3488,15 @@ func (x *fastReflection_InferenceForecastBundle) Range(f func(protoreflect.Field // a repeated field is populated if it is non-empty. func (x *fastReflection_InferenceForecastBundle) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.InferenceForecastBundle.inference": + case "emissions.v2.InferenceForecastBundle.inference": return x.Inference != nil - case "emissions.v1.InferenceForecastBundle.forecast": + case "emissions.v2.InferenceForecastBundle.forecast": return x.Forecast != nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.InferenceForecastBundle")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.InferenceForecastBundle")) } - panic(fmt.Errorf("message emissions.v1.InferenceForecastBundle does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.InferenceForecastBundle does not contain field %s", fd.FullName())) } } @@ -3508,15 +3508,15 @@ func (x *fastReflection_InferenceForecastBundle) Has(fd protoreflect.FieldDescri // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_InferenceForecastBundle) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.InferenceForecastBundle.inference": + case "emissions.v2.InferenceForecastBundle.inference": x.Inference = nil - case "emissions.v1.InferenceForecastBundle.forecast": + case "emissions.v2.InferenceForecastBundle.forecast": x.Forecast = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.InferenceForecastBundle")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.InferenceForecastBundle")) } - panic(fmt.Errorf("message emissions.v1.InferenceForecastBundle does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.InferenceForecastBundle does not contain field %s", fd.FullName())) } } @@ -3528,17 +3528,17 @@ func (x *fastReflection_InferenceForecastBundle) Clear(fd protoreflect.FieldDesc // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_InferenceForecastBundle) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.InferenceForecastBundle.inference": + case "emissions.v2.InferenceForecastBundle.inference": value := x.Inference return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "emissions.v1.InferenceForecastBundle.forecast": + case "emissions.v2.InferenceForecastBundle.forecast": value := x.Forecast return protoreflect.ValueOfMessage(value.ProtoReflect()) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.InferenceForecastBundle")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.InferenceForecastBundle")) } - panic(fmt.Errorf("message emissions.v1.InferenceForecastBundle does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.InferenceForecastBundle does not contain field %s", descriptor.FullName())) } } @@ -3554,15 +3554,15 @@ func (x *fastReflection_InferenceForecastBundle) Get(descriptor protoreflect.Fie // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_InferenceForecastBundle) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.InferenceForecastBundle.inference": + case "emissions.v2.InferenceForecastBundle.inference": x.Inference = value.Message().Interface().(*Inference) - case "emissions.v1.InferenceForecastBundle.forecast": + case "emissions.v2.InferenceForecastBundle.forecast": x.Forecast = value.Message().Interface().(*Forecast) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.InferenceForecastBundle")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.InferenceForecastBundle")) } - panic(fmt.Errorf("message emissions.v1.InferenceForecastBundle does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.InferenceForecastBundle does not contain field %s", fd.FullName())) } } @@ -3578,21 +3578,21 @@ func (x *fastReflection_InferenceForecastBundle) Set(fd protoreflect.FieldDescri // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_InferenceForecastBundle) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.InferenceForecastBundle.inference": + case "emissions.v2.InferenceForecastBundle.inference": if x.Inference == nil { x.Inference = new(Inference) } return protoreflect.ValueOfMessage(x.Inference.ProtoReflect()) - case "emissions.v1.InferenceForecastBundle.forecast": + case "emissions.v2.InferenceForecastBundle.forecast": if x.Forecast == nil { x.Forecast = new(Forecast) } return protoreflect.ValueOfMessage(x.Forecast.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.InferenceForecastBundle")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.InferenceForecastBundle")) } - panic(fmt.Errorf("message emissions.v1.InferenceForecastBundle does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.InferenceForecastBundle does not contain field %s", fd.FullName())) } } @@ -3601,17 +3601,17 @@ func (x *fastReflection_InferenceForecastBundle) Mutable(fd protoreflect.FieldDe // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_InferenceForecastBundle) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.InferenceForecastBundle.inference": + case "emissions.v2.InferenceForecastBundle.inference": m := new(Inference) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "emissions.v1.InferenceForecastBundle.forecast": + case "emissions.v2.InferenceForecastBundle.forecast": m := new(Forecast) return protoreflect.ValueOfMessage(m.ProtoReflect()) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.InferenceForecastBundle")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.InferenceForecastBundle")) } - panic(fmt.Errorf("message emissions.v1.InferenceForecastBundle does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.InferenceForecastBundle does not contain field %s", fd.FullName())) } } @@ -3621,7 +3621,7 @@ func (x *fastReflection_InferenceForecastBundle) NewField(fd protoreflect.FieldD func (x *fastReflection_InferenceForecastBundle) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.InferenceForecastBundle", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.InferenceForecastBundle", d.FullName())) } panic("unreachable") } @@ -3900,15 +3900,19 @@ func (x *fastReflection_InferenceForecastBundle) ProtoMethods() *protoiface.Meth var ( md_WorkerDataBundle protoreflect.MessageDescriptor fd_WorkerDataBundle_worker protoreflect.FieldDescriptor + fd_WorkerDataBundle_nonce protoreflect.FieldDescriptor + fd_WorkerDataBundle_topic_id protoreflect.FieldDescriptor fd_WorkerDataBundle_inference_forecasts_bundle protoreflect.FieldDescriptor fd_WorkerDataBundle_inferences_forecasts_bundle_signature protoreflect.FieldDescriptor fd_WorkerDataBundle_pubkey protoreflect.FieldDescriptor ) func init() { - file_emissions_v1_worker_proto_init() - md_WorkerDataBundle = File_emissions_v1_worker_proto.Messages().ByName("WorkerDataBundle") + file_emissions_v2_worker_proto_init() + md_WorkerDataBundle = File_emissions_v2_worker_proto.Messages().ByName("WorkerDataBundle") fd_WorkerDataBundle_worker = md_WorkerDataBundle.Fields().ByName("worker") + fd_WorkerDataBundle_nonce = md_WorkerDataBundle.Fields().ByName("nonce") + fd_WorkerDataBundle_topic_id = md_WorkerDataBundle.Fields().ByName("topic_id") fd_WorkerDataBundle_inference_forecasts_bundle = md_WorkerDataBundle.Fields().ByName("inference_forecasts_bundle") fd_WorkerDataBundle_inferences_forecasts_bundle_signature = md_WorkerDataBundle.Fields().ByName("inferences_forecasts_bundle_signature") fd_WorkerDataBundle_pubkey = md_WorkerDataBundle.Fields().ByName("pubkey") @@ -3923,7 +3927,7 @@ func (x *WorkerDataBundle) ProtoReflect() protoreflect.Message { } func (x *WorkerDataBundle) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_worker_proto_msgTypes[7] + mi := &file_emissions_v2_worker_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3985,6 +3989,18 @@ func (x *fastReflection_WorkerDataBundle) Range(f func(protoreflect.FieldDescrip return } } + if x.Nonce != nil { + value := protoreflect.ValueOfMessage(x.Nonce.ProtoReflect()) + if !f(fd_WorkerDataBundle_nonce, value) { + return + } + } + if x.TopicId != uint64(0) { + value := protoreflect.ValueOfUint64(x.TopicId) + if !f(fd_WorkerDataBundle_topic_id, value) { + return + } + } if x.InferenceForecastsBundle != nil { value := protoreflect.ValueOfMessage(x.InferenceForecastsBundle.ProtoReflect()) if !f(fd_WorkerDataBundle_inference_forecasts_bundle, value) { @@ -4018,19 +4034,23 @@ func (x *fastReflection_WorkerDataBundle) Range(f func(protoreflect.FieldDescrip // a repeated field is populated if it is non-empty. func (x *fastReflection_WorkerDataBundle) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.WorkerDataBundle.worker": + case "emissions.v2.WorkerDataBundle.worker": return x.Worker != "" - case "emissions.v1.WorkerDataBundle.inference_forecasts_bundle": + case "emissions.v2.WorkerDataBundle.nonce": + return x.Nonce != nil + case "emissions.v2.WorkerDataBundle.topic_id": + return x.TopicId != uint64(0) + case "emissions.v2.WorkerDataBundle.inference_forecasts_bundle": return x.InferenceForecastsBundle != nil - case "emissions.v1.WorkerDataBundle.inferences_forecasts_bundle_signature": + case "emissions.v2.WorkerDataBundle.inferences_forecasts_bundle_signature": return len(x.InferencesForecastsBundleSignature) != 0 - case "emissions.v1.WorkerDataBundle.pubkey": + case "emissions.v2.WorkerDataBundle.pubkey": return x.Pubkey != "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.WorkerDataBundle")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerDataBundle")) } - panic(fmt.Errorf("message emissions.v1.WorkerDataBundle does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.WorkerDataBundle does not contain field %s", fd.FullName())) } } @@ -4042,19 +4062,23 @@ func (x *fastReflection_WorkerDataBundle) Has(fd protoreflect.FieldDescriptor) b // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_WorkerDataBundle) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.WorkerDataBundle.worker": + case "emissions.v2.WorkerDataBundle.worker": x.Worker = "" - case "emissions.v1.WorkerDataBundle.inference_forecasts_bundle": + case "emissions.v2.WorkerDataBundle.nonce": + x.Nonce = nil + case "emissions.v2.WorkerDataBundle.topic_id": + x.TopicId = uint64(0) + case "emissions.v2.WorkerDataBundle.inference_forecasts_bundle": x.InferenceForecastsBundle = nil - case "emissions.v1.WorkerDataBundle.inferences_forecasts_bundle_signature": + case "emissions.v2.WorkerDataBundle.inferences_forecasts_bundle_signature": x.InferencesForecastsBundleSignature = nil - case "emissions.v1.WorkerDataBundle.pubkey": + case "emissions.v2.WorkerDataBundle.pubkey": x.Pubkey = "" default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.WorkerDataBundle")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerDataBundle")) } - panic(fmt.Errorf("message emissions.v1.WorkerDataBundle does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.WorkerDataBundle does not contain field %s", fd.FullName())) } } @@ -4066,23 +4090,29 @@ func (x *fastReflection_WorkerDataBundle) Clear(fd protoreflect.FieldDescriptor) // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_WorkerDataBundle) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.WorkerDataBundle.worker": + case "emissions.v2.WorkerDataBundle.worker": value := x.Worker return protoreflect.ValueOfString(value) - case "emissions.v1.WorkerDataBundle.inference_forecasts_bundle": + case "emissions.v2.WorkerDataBundle.nonce": + value := x.Nonce + return protoreflect.ValueOfMessage(value.ProtoReflect()) + case "emissions.v2.WorkerDataBundle.topic_id": + value := x.TopicId + return protoreflect.ValueOfUint64(value) + case "emissions.v2.WorkerDataBundle.inference_forecasts_bundle": value := x.InferenceForecastsBundle return protoreflect.ValueOfMessage(value.ProtoReflect()) - case "emissions.v1.WorkerDataBundle.inferences_forecasts_bundle_signature": + case "emissions.v2.WorkerDataBundle.inferences_forecasts_bundle_signature": value := x.InferencesForecastsBundleSignature return protoreflect.ValueOfBytes(value) - case "emissions.v1.WorkerDataBundle.pubkey": + case "emissions.v2.WorkerDataBundle.pubkey": value := x.Pubkey return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.WorkerDataBundle")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerDataBundle")) } - panic(fmt.Errorf("message emissions.v1.WorkerDataBundle does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.WorkerDataBundle does not contain field %s", descriptor.FullName())) } } @@ -4098,19 +4128,23 @@ func (x *fastReflection_WorkerDataBundle) Get(descriptor protoreflect.FieldDescr // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_WorkerDataBundle) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.WorkerDataBundle.worker": + case "emissions.v2.WorkerDataBundle.worker": x.Worker = value.Interface().(string) - case "emissions.v1.WorkerDataBundle.inference_forecasts_bundle": + case "emissions.v2.WorkerDataBundle.nonce": + x.Nonce = value.Message().Interface().(*Nonce) + case "emissions.v2.WorkerDataBundle.topic_id": + x.TopicId = value.Uint() + case "emissions.v2.WorkerDataBundle.inference_forecasts_bundle": x.InferenceForecastsBundle = value.Message().Interface().(*InferenceForecastBundle) - case "emissions.v1.WorkerDataBundle.inferences_forecasts_bundle_signature": + case "emissions.v2.WorkerDataBundle.inferences_forecasts_bundle_signature": x.InferencesForecastsBundleSignature = value.Bytes() - case "emissions.v1.WorkerDataBundle.pubkey": + case "emissions.v2.WorkerDataBundle.pubkey": x.Pubkey = value.Interface().(string) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.WorkerDataBundle")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerDataBundle")) } - panic(fmt.Errorf("message emissions.v1.WorkerDataBundle does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.WorkerDataBundle does not contain field %s", fd.FullName())) } } @@ -4126,22 +4160,29 @@ func (x *fastReflection_WorkerDataBundle) Set(fd protoreflect.FieldDescriptor, v // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_WorkerDataBundle) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.WorkerDataBundle.inference_forecasts_bundle": + case "emissions.v2.WorkerDataBundle.nonce": + if x.Nonce == nil { + x.Nonce = new(Nonce) + } + return protoreflect.ValueOfMessage(x.Nonce.ProtoReflect()) + case "emissions.v2.WorkerDataBundle.inference_forecasts_bundle": if x.InferenceForecastsBundle == nil { x.InferenceForecastsBundle = new(InferenceForecastBundle) } return protoreflect.ValueOfMessage(x.InferenceForecastsBundle.ProtoReflect()) - case "emissions.v1.WorkerDataBundle.worker": - panic(fmt.Errorf("field worker of message emissions.v1.WorkerDataBundle is not mutable")) - case "emissions.v1.WorkerDataBundle.inferences_forecasts_bundle_signature": - panic(fmt.Errorf("field inferences_forecasts_bundle_signature of message emissions.v1.WorkerDataBundle is not mutable")) - case "emissions.v1.WorkerDataBundle.pubkey": - panic(fmt.Errorf("field pubkey of message emissions.v1.WorkerDataBundle is not mutable")) + case "emissions.v2.WorkerDataBundle.worker": + panic(fmt.Errorf("field worker of message emissions.v2.WorkerDataBundle is not mutable")) + case "emissions.v2.WorkerDataBundle.topic_id": + panic(fmt.Errorf("field topic_id of message emissions.v2.WorkerDataBundle is not mutable")) + case "emissions.v2.WorkerDataBundle.inferences_forecasts_bundle_signature": + panic(fmt.Errorf("field inferences_forecasts_bundle_signature of message emissions.v2.WorkerDataBundle is not mutable")) + case "emissions.v2.WorkerDataBundle.pubkey": + panic(fmt.Errorf("field pubkey of message emissions.v2.WorkerDataBundle is not mutable")) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.WorkerDataBundle")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerDataBundle")) } - panic(fmt.Errorf("message emissions.v1.WorkerDataBundle does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.WorkerDataBundle does not contain field %s", fd.FullName())) } } @@ -4150,20 +4191,25 @@ func (x *fastReflection_WorkerDataBundle) Mutable(fd protoreflect.FieldDescripto // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_WorkerDataBundle) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.WorkerDataBundle.worker": + case "emissions.v2.WorkerDataBundle.worker": return protoreflect.ValueOfString("") - case "emissions.v1.WorkerDataBundle.inference_forecasts_bundle": + case "emissions.v2.WorkerDataBundle.nonce": + m := new(Nonce) + return protoreflect.ValueOfMessage(m.ProtoReflect()) + case "emissions.v2.WorkerDataBundle.topic_id": + return protoreflect.ValueOfUint64(uint64(0)) + case "emissions.v2.WorkerDataBundle.inference_forecasts_bundle": m := new(InferenceForecastBundle) return protoreflect.ValueOfMessage(m.ProtoReflect()) - case "emissions.v1.WorkerDataBundle.inferences_forecasts_bundle_signature": + case "emissions.v2.WorkerDataBundle.inferences_forecasts_bundle_signature": return protoreflect.ValueOfBytes(nil) - case "emissions.v1.WorkerDataBundle.pubkey": + case "emissions.v2.WorkerDataBundle.pubkey": return protoreflect.ValueOfString("") default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.WorkerDataBundle")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerDataBundle")) } - panic(fmt.Errorf("message emissions.v1.WorkerDataBundle does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.WorkerDataBundle does not contain field %s", fd.FullName())) } } @@ -4173,7 +4219,7 @@ func (x *fastReflection_WorkerDataBundle) NewField(fd protoreflect.FieldDescript func (x *fastReflection_WorkerDataBundle) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.WorkerDataBundle", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.WorkerDataBundle", d.FullName())) } panic("unreachable") } @@ -4232,6 +4278,13 @@ func (x *fastReflection_WorkerDataBundle) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.Nonce != nil { + l = options.Size(x.Nonce) + n += 1 + l + runtime.Sov(uint64(l)) + } + if x.TopicId != 0 { + n += 1 + runtime.Sov(uint64(x.TopicId)) + } if x.InferenceForecastsBundle != nil { l = options.Size(x.InferenceForecastsBundle) n += 1 + l + runtime.Sov(uint64(l)) @@ -4278,14 +4331,14 @@ func (x *fastReflection_WorkerDataBundle) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], x.Pubkey) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Pubkey))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x32 } if len(x.InferencesForecastsBundleSignature) > 0 { i -= len(x.InferencesForecastsBundleSignature) copy(dAtA[i:], x.InferencesForecastsBundleSignature) i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InferencesForecastsBundleSignature))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x2a } if x.InferenceForecastsBundle != nil { encoded, err := options.Marshal(x.InferenceForecastsBundle) @@ -4299,6 +4352,25 @@ func (x *fastReflection_WorkerDataBundle) ProtoMethods() *protoiface.Methods { copy(dAtA[i:], encoded) i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) i-- + dAtA[i] = 0x22 + } + if x.TopicId != 0 { + i = runtime.EncodeVarint(dAtA, i, uint64(x.TopicId)) + i-- + dAtA[i] = 0x18 + } + if x.Nonce != nil { + encoded, err := options.Marshal(x.Nonce) + if err != nil { + return protoiface.MarshalOutput{ + NoUnkeyedLiterals: input.NoUnkeyedLiterals, + Buf: input.Buf, + }, err + } + i -= len(encoded) + copy(dAtA[i:], encoded) + i = runtime.EncodeVarint(dAtA, i, uint64(len(encoded))) + i-- dAtA[i] = 0x12 } if len(x.Worker) > 0 { @@ -4390,6 +4462,61 @@ func (x *fastReflection_WorkerDataBundle) ProtoMethods() *protoiface.Methods { x.Worker = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + if x.Nonce == nil { + x.Nonce = &Nonce{} + } + if err := options.Unmarshal(dAtA[iNdEx:postIndex], x.Nonce); err != nil { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + x.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + x.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InferenceForecastsBundle", wireType) } @@ -4425,7 +4552,7 @@ func (x *fastReflection_WorkerDataBundle) ProtoMethods() *protoiface.Methods { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err } iNdEx = postIndex - case 3: + case 5: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InferencesForecastsBundleSignature", wireType) } @@ -4459,7 +4586,7 @@ func (x *fastReflection_WorkerDataBundle) ProtoMethods() *protoiface.Methods { x.InferencesForecastsBundleSignature = []byte{} } iNdEx = postIndex - case 4: + case 6: if wireType != 2 { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType) } @@ -4583,8 +4710,8 @@ var ( ) func init() { - file_emissions_v1_worker_proto_init() - md_WorkerDataBundles = File_emissions_v1_worker_proto.Messages().ByName("WorkerDataBundles") + file_emissions_v2_worker_proto_init() + md_WorkerDataBundles = File_emissions_v2_worker_proto.Messages().ByName("WorkerDataBundles") fd_WorkerDataBundles_worker_data_bundles = md_WorkerDataBundles.Fields().ByName("worker_data_bundles") } @@ -4597,7 +4724,7 @@ func (x *WorkerDataBundles) ProtoReflect() protoreflect.Message { } func (x *WorkerDataBundles) slowProtoReflect() protoreflect.Message { - mi := &file_emissions_v1_worker_proto_msgTypes[8] + mi := &file_emissions_v2_worker_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4674,13 +4801,13 @@ func (x *fastReflection_WorkerDataBundles) Range(f func(protoreflect.FieldDescri // a repeated field is populated if it is non-empty. func (x *fastReflection_WorkerDataBundles) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "emissions.v1.WorkerDataBundles.worker_data_bundles": + case "emissions.v2.WorkerDataBundles.worker_data_bundles": return len(x.WorkerDataBundles) != 0 default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.WorkerDataBundles")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerDataBundles")) } - panic(fmt.Errorf("message emissions.v1.WorkerDataBundles does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.WorkerDataBundles does not contain field %s", fd.FullName())) } } @@ -4692,13 +4819,13 @@ func (x *fastReflection_WorkerDataBundles) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_WorkerDataBundles) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "emissions.v1.WorkerDataBundles.worker_data_bundles": + case "emissions.v2.WorkerDataBundles.worker_data_bundles": x.WorkerDataBundles = nil default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.WorkerDataBundles")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerDataBundles")) } - panic(fmt.Errorf("message emissions.v1.WorkerDataBundles does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.WorkerDataBundles does not contain field %s", fd.FullName())) } } @@ -4710,7 +4837,7 @@ func (x *fastReflection_WorkerDataBundles) Clear(fd protoreflect.FieldDescriptor // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_WorkerDataBundles) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "emissions.v1.WorkerDataBundles.worker_data_bundles": + case "emissions.v2.WorkerDataBundles.worker_data_bundles": if len(x.WorkerDataBundles) == 0 { return protoreflect.ValueOfList(&_WorkerDataBundles_1_list{}) } @@ -4718,9 +4845,9 @@ func (x *fastReflection_WorkerDataBundles) Get(descriptor protoreflect.FieldDesc return protoreflect.ValueOfList(listValue) default: if descriptor.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.WorkerDataBundles")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerDataBundles")) } - panic(fmt.Errorf("message emissions.v1.WorkerDataBundles does not contain field %s", descriptor.FullName())) + panic(fmt.Errorf("message emissions.v2.WorkerDataBundles does not contain field %s", descriptor.FullName())) } } @@ -4736,15 +4863,15 @@ func (x *fastReflection_WorkerDataBundles) Get(descriptor protoreflect.FieldDesc // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_WorkerDataBundles) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "emissions.v1.WorkerDataBundles.worker_data_bundles": + case "emissions.v2.WorkerDataBundles.worker_data_bundles": lv := value.List() clv := lv.(*_WorkerDataBundles_1_list) x.WorkerDataBundles = *clv.list default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.WorkerDataBundles")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerDataBundles")) } - panic(fmt.Errorf("message emissions.v1.WorkerDataBundles does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.WorkerDataBundles does not contain field %s", fd.FullName())) } } @@ -4760,7 +4887,7 @@ func (x *fastReflection_WorkerDataBundles) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_WorkerDataBundles) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.WorkerDataBundles.worker_data_bundles": + case "emissions.v2.WorkerDataBundles.worker_data_bundles": if x.WorkerDataBundles == nil { x.WorkerDataBundles = []*WorkerDataBundle{} } @@ -4768,9 +4895,9 @@ func (x *fastReflection_WorkerDataBundles) Mutable(fd protoreflect.FieldDescript return protoreflect.ValueOfList(value) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.WorkerDataBundles")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerDataBundles")) } - panic(fmt.Errorf("message emissions.v1.WorkerDataBundles does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.WorkerDataBundles does not contain field %s", fd.FullName())) } } @@ -4779,14 +4906,14 @@ func (x *fastReflection_WorkerDataBundles) Mutable(fd protoreflect.FieldDescript // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_WorkerDataBundles) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "emissions.v1.WorkerDataBundles.worker_data_bundles": + case "emissions.v2.WorkerDataBundles.worker_data_bundles": list := []*WorkerDataBundle{} return protoreflect.ValueOfList(&_WorkerDataBundles_1_list{list: &list}) default: if fd.IsExtension() { - panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v1.WorkerDataBundles")) + panic(fmt.Errorf("proto3 declared messages do not support extensions: emissions.v2.WorkerDataBundles")) } - panic(fmt.Errorf("message emissions.v1.WorkerDataBundles does not contain field %s", fd.FullName())) + panic(fmt.Errorf("message emissions.v2.WorkerDataBundles does not contain field %s", fd.FullName())) } } @@ -4796,7 +4923,7 @@ func (x *fastReflection_WorkerDataBundles) NewField(fd protoreflect.FieldDescrip func (x *fastReflection_WorkerDataBundles) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor { switch d.FullName() { default: - panic(fmt.Errorf("%s is not a oneof field in emissions.v1.WorkerDataBundles", d.FullName())) + panic(fmt.Errorf("%s is not a oneof field in emissions.v2.WorkerDataBundles", d.FullName())) } panic("unreachable") } @@ -5024,7 +5151,7 @@ func (x *fastReflection_WorkerDataBundles) ProtoMethods() *protoiface.Methods { // versions: // protoc-gen-go v1.27.0 // protoc (unknown) -// source: emissions/v1/worker.proto +// source: emissions/v2/worker.proto const ( // Verify that this generated code is sufficiently up-to-date. @@ -5045,7 +5172,7 @@ type TimestampedValue struct { func (x *TimestampedValue) Reset() { *x = TimestampedValue{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_worker_proto_msgTypes[0] + mi := &file_emissions_v2_worker_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5059,7 +5186,7 @@ func (*TimestampedValue) ProtoMessage() {} // Deprecated: Use TimestampedValue.ProtoReflect.Descriptor instead. func (*TimestampedValue) Descriptor() ([]byte, []int) { - return file_emissions_v1_worker_proto_rawDescGZIP(), []int{0} + return file_emissions_v2_worker_proto_rawDescGZIP(), []int{0} } func (x *TimestampedValue) GetBlockHeight() int64 { @@ -5092,7 +5219,7 @@ type Inference struct { func (x *Inference) Reset() { *x = Inference{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_worker_proto_msgTypes[1] + mi := &file_emissions_v2_worker_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5106,7 +5233,7 @@ func (*Inference) ProtoMessage() {} // Deprecated: Use Inference.ProtoReflect.Descriptor instead. func (*Inference) Descriptor() ([]byte, []int) { - return file_emissions_v1_worker_proto_rawDescGZIP(), []int{1} + return file_emissions_v2_worker_proto_rawDescGZIP(), []int{1} } func (x *Inference) GetTopicId() uint64 { @@ -5162,7 +5289,7 @@ type Inferences struct { func (x *Inferences) Reset() { *x = Inferences{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_worker_proto_msgTypes[2] + mi := &file_emissions_v2_worker_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5176,7 +5303,7 @@ func (*Inferences) ProtoMessage() {} // Deprecated: Use Inferences.ProtoReflect.Descriptor instead. func (*Inferences) Descriptor() ([]byte, []int) { - return file_emissions_v1_worker_proto_rawDescGZIP(), []int{2} + return file_emissions_v2_worker_proto_rawDescGZIP(), []int{2} } func (x *Inferences) GetInferences() []*Inference { @@ -5198,7 +5325,7 @@ type ForecastElement struct { func (x *ForecastElement) Reset() { *x = ForecastElement{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_worker_proto_msgTypes[3] + mi := &file_emissions_v2_worker_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5212,7 +5339,7 @@ func (*ForecastElement) ProtoMessage() {} // Deprecated: Use ForecastElement.ProtoReflect.Descriptor instead. func (*ForecastElement) Descriptor() ([]byte, []int) { - return file_emissions_v1_worker_proto_rawDescGZIP(), []int{3} + return file_emissions_v2_worker_proto_rawDescGZIP(), []int{3} } func (x *ForecastElement) GetInferer() string { @@ -5244,7 +5371,7 @@ type Forecast struct { func (x *Forecast) Reset() { *x = Forecast{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_worker_proto_msgTypes[4] + mi := &file_emissions_v2_worker_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5258,7 +5385,7 @@ func (*Forecast) ProtoMessage() {} // Deprecated: Use Forecast.ProtoReflect.Descriptor instead. func (*Forecast) Descriptor() ([]byte, []int) { - return file_emissions_v1_worker_proto_rawDescGZIP(), []int{4} + return file_emissions_v2_worker_proto_rawDescGZIP(), []int{4} } func (x *Forecast) GetTopicId() uint64 { @@ -5307,7 +5434,7 @@ type Forecasts struct { func (x *Forecasts) Reset() { *x = Forecasts{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_worker_proto_msgTypes[5] + mi := &file_emissions_v2_worker_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5321,7 +5448,7 @@ func (*Forecasts) ProtoMessage() {} // Deprecated: Use Forecasts.ProtoReflect.Descriptor instead. func (*Forecasts) Descriptor() ([]byte, []int) { - return file_emissions_v1_worker_proto_rawDescGZIP(), []int{5} + return file_emissions_v2_worker_proto_rawDescGZIP(), []int{5} } func (x *Forecasts) GetForecasts() []*Forecast { @@ -5343,7 +5470,7 @@ type InferenceForecastBundle struct { func (x *InferenceForecastBundle) Reset() { *x = InferenceForecastBundle{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_worker_proto_msgTypes[6] + mi := &file_emissions_v2_worker_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5357,7 +5484,7 @@ func (*InferenceForecastBundle) ProtoMessage() {} // Deprecated: Use InferenceForecastBundle.ProtoReflect.Descriptor instead. func (*InferenceForecastBundle) Descriptor() ([]byte, []int) { - return file_emissions_v1_worker_proto_rawDescGZIP(), []int{6} + return file_emissions_v2_worker_proto_rawDescGZIP(), []int{6} } func (x *InferenceForecastBundle) GetInference() *Inference { @@ -5380,15 +5507,17 @@ type WorkerDataBundle struct { unknownFields protoimpl.UnknownFields Worker string `protobuf:"bytes,1,opt,name=worker,proto3" json:"worker,omitempty"` - InferenceForecastsBundle *InferenceForecastBundle `protobuf:"bytes,2,opt,name=inference_forecasts_bundle,json=inferenceForecastsBundle,proto3" json:"inference_forecasts_bundle,omitempty"` - InferencesForecastsBundleSignature []byte `protobuf:"bytes,3,opt,name=inferences_forecasts_bundle_signature,json=inferencesForecastsBundleSignature,proto3" json:"inferences_forecasts_bundle_signature,omitempty"` - Pubkey string `protobuf:"bytes,4,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + Nonce *Nonce `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` + TopicId uint64 `protobuf:"varint,3,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + InferenceForecastsBundle *InferenceForecastBundle `protobuf:"bytes,4,opt,name=inference_forecasts_bundle,json=inferenceForecastsBundle,proto3" json:"inference_forecasts_bundle,omitempty"` + InferencesForecastsBundleSignature []byte `protobuf:"bytes,5,opt,name=inferences_forecasts_bundle_signature,json=inferencesForecastsBundleSignature,proto3" json:"inferences_forecasts_bundle_signature,omitempty"` + Pubkey string `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"` } func (x *WorkerDataBundle) Reset() { *x = WorkerDataBundle{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_worker_proto_msgTypes[7] + mi := &file_emissions_v2_worker_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5402,7 +5531,7 @@ func (*WorkerDataBundle) ProtoMessage() {} // Deprecated: Use WorkerDataBundle.ProtoReflect.Descriptor instead. func (*WorkerDataBundle) Descriptor() ([]byte, []int) { - return file_emissions_v1_worker_proto_rawDescGZIP(), []int{7} + return file_emissions_v2_worker_proto_rawDescGZIP(), []int{7} } func (x *WorkerDataBundle) GetWorker() string { @@ -5412,6 +5541,20 @@ func (x *WorkerDataBundle) GetWorker() string { return "" } +func (x *WorkerDataBundle) GetNonce() *Nonce { + if x != nil { + return x.Nonce + } + return nil +} + +func (x *WorkerDataBundle) GetTopicId() uint64 { + if x != nil { + return x.TopicId + } + return 0 +} + func (x *WorkerDataBundle) GetInferenceForecastsBundle() *InferenceForecastBundle { if x != nil { return x.InferenceForecastsBundle @@ -5444,7 +5587,7 @@ type WorkerDataBundles struct { func (x *WorkerDataBundles) Reset() { *x = WorkerDataBundles{} if protoimpl.UnsafeEnabled { - mi := &file_emissions_v1_worker_proto_msgTypes[8] + mi := &file_emissions_v2_worker_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -5458,7 +5601,7 @@ func (*WorkerDataBundles) ProtoMessage() {} // Deprecated: Use WorkerDataBundles.ProtoReflect.Descriptor instead. func (*WorkerDataBundles) Descriptor() ([]byte, []int) { - return file_emissions_v1_worker_proto_rawDescGZIP(), []int{8} + return file_emissions_v2_worker_proto_rawDescGZIP(), []int{8} } func (x *WorkerDataBundles) GetWorkerDataBundles() []*WorkerDataBundle { @@ -5468,160 +5611,169 @@ func (x *WorkerDataBundles) GetWorkerDataBundles() []*WorkerDataBundle { return nil } -var File_emissions_v1_worker_proto protoreflect.FileDescriptor +var File_emissions_v2_worker_proto protoreflect.FileDescriptor -var file_emissions_v1_worker_proto_rawDesc = []byte{ - 0x0a, 0x19, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x77, +var file_emissions_v2_worker_proto_rawDesc = []byte{ + 0x0a, 0x19, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x8a, 0x01, 0x0a, 0x10, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, - 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, - 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x4d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, - 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, - 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xed, 0x01, 0x0a, - 0x09, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, - 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, - 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x66, 0x65, - 0x72, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, - 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, - 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x72, 0x61, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x78, 0x74, 0x72, 0x61, 0x44, 0x61, 0x74, 0x61, - 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x45, 0x0a, 0x0a, - 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0a, 0x69, 0x6e, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, - 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0a, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x73, 0x22, 0x80, 0x01, 0x0a, 0x0f, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, - 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, - 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, - 0x72, 0x12, 0x4d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x14, 0x67, 0x6f, 0x67, 0x6f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x18, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x6e, 0x6f, + 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x01, 0x0a, 0x10, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, + 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, + 0x74, 0x12, 0x4d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, 0x44, 0x65, 0x63, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xd9, 0x01, 0x0a, 0x08, 0x46, 0x6f, 0x72, 0x65, 0x63, - 0x61, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x21, - 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, - 0x72, 0x12, 0x4a, 0x0a, 0x11, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x6c, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, - 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x65, - 0x63, 0x61, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x10, 0x66, 0x6f, 0x72, - 0x65, 0x63, 0x61, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1d, 0x0a, - 0x0a, 0x65, 0x78, 0x74, 0x72, 0x61, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x09, 0x65, 0x78, 0x74, 0x72, 0x61, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x04, 0xe8, 0xa0, - 0x1f, 0x01, 0x22, 0x41, 0x0a, 0x09, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x12, - 0x34, 0x0a, 0x09, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x52, 0x09, 0x66, 0x6f, 0x72, 0x65, - 0x63, 0x61, 0x73, 0x74, 0x73, 0x22, 0x8a, 0x01, 0x0a, 0x17, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x12, 0x35, 0x0a, 0x09, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x69, - 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x32, 0x0a, 0x08, 0x66, 0x6f, 0x72, 0x65, - 0x63, 0x61, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x65, 0x6d, 0x69, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, - 0x73, 0x74, 0x52, 0x08, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x3a, 0x04, 0xe8, 0xa0, - 0x1f, 0x01, 0x22, 0x80, 0x02, 0x0a, 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x44, 0x61, 0x74, - 0x61, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x12, + 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xed, 0x01, 0x0a, 0x09, 0x49, 0x6e, 0x66, 0x65, 0x72, + 0x65, 0x6e, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, + 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, + 0x00, 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, + 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, + 0x2e, 0x44, 0x65, 0x63, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, + 0x78, 0x74, 0x72, 0x61, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x09, 0x65, 0x78, 0x74, 0x72, 0x61, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, + 0x6f, 0x6f, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, + 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x45, 0x0a, 0x0a, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x0a, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x52, 0x0a, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x80, 0x01, + 0x0a, 0x0f, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, + 0x74, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x72, 0x12, 0x4d, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x37, 0xc8, 0xde, 0x1f, 0x00, + 0xda, 0xde, 0x1f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, + 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, + 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x6d, 0x61, 0x74, 0x68, 0x2e, + 0x44, 0x65, 0x63, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, + 0x22, 0xd9, 0x01, 0x0a, 0x08, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x12, 0x19, 0x0a, + 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, + 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x66, + 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x65, 0x72, 0x12, 0x4a, 0x0a, 0x11, 0x66, + 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x45, 0x6c, + 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x10, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x45, + 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x72, 0x61, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x65, 0x78, 0x74, + 0x72, 0x61, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x41, 0x0a, 0x09, + 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x12, 0x34, 0x0a, 0x09, 0x66, 0x6f, 0x72, + 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x65, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x6f, 0x72, 0x65, + 0x63, 0x61, 0x73, 0x74, 0x52, 0x09, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x22, + 0x8a, 0x01, 0x0a, 0x17, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x46, 0x6f, 0x72, + 0x65, 0x63, 0x61, 0x73, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x35, 0x0a, 0x09, 0x69, + 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x09, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x12, 0x32, 0x0a, 0x08, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x52, 0x08, 0x66, 0x6f, + 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0xc6, 0x02, 0x0a, + 0x10, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x12, 0x29, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, + 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x4e, 0x6f, 0x6e, 0x63, 0x65, 0x52, 0x05, 0x6e, + 0x6f, 0x6e, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x69, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x49, 0x64, 0x12, 0x63, 0x0a, 0x1a, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x66, 0x6f, 0x72, - 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, + 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x46, 0x6f, 0x72, 0x65, + 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x18, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x51, 0x0a, 0x25, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x5f, 0x66, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x5f, 0x62, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, + 0x64, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x22, 0x69, 0x6e, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x46, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x73, 0x74, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, - 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x3a, + 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6b, 0x65, 0x79, 0x3a, 0x04, 0xe8, 0xa0, 0x1f, 0x01, 0x22, 0x63, 0x0a, 0x11, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x13, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x44, 0x61, 0x74, + 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x11, 0x77, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x42, 0xc1, 0x01, 0x0a, 0x10, 0x63, - 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x42, + 0x6f, 0x6d, 0x2e, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x32, 0x42, 0x0b, 0x57, 0x6f, 0x72, 0x6b, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x76, 0x31, 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x31, 0xa2, + 0x2f, 0x76, 0x32, 0x3b, 0x65, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x45, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, - 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x73, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0c, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, + 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x18, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x5c, + 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x0d, 0x45, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_emissions_v1_worker_proto_rawDescOnce sync.Once - file_emissions_v1_worker_proto_rawDescData = file_emissions_v1_worker_proto_rawDesc + file_emissions_v2_worker_proto_rawDescOnce sync.Once + file_emissions_v2_worker_proto_rawDescData = file_emissions_v2_worker_proto_rawDesc ) -func file_emissions_v1_worker_proto_rawDescGZIP() []byte { - file_emissions_v1_worker_proto_rawDescOnce.Do(func() { - file_emissions_v1_worker_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v1_worker_proto_rawDescData) +func file_emissions_v2_worker_proto_rawDescGZIP() []byte { + file_emissions_v2_worker_proto_rawDescOnce.Do(func() { + file_emissions_v2_worker_proto_rawDescData = protoimpl.X.CompressGZIP(file_emissions_v2_worker_proto_rawDescData) }) - return file_emissions_v1_worker_proto_rawDescData -} - -var file_emissions_v1_worker_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_emissions_v1_worker_proto_goTypes = []interface{}{ - (*TimestampedValue)(nil), // 0: emissions.v1.TimestampedValue - (*Inference)(nil), // 1: emissions.v1.Inference - (*Inferences)(nil), // 2: emissions.v1.Inferences - (*ForecastElement)(nil), // 3: emissions.v1.ForecastElement - (*Forecast)(nil), // 4: emissions.v1.Forecast - (*Forecasts)(nil), // 5: emissions.v1.Forecasts - (*InferenceForecastBundle)(nil), // 6: emissions.v1.InferenceForecastBundle - (*WorkerDataBundle)(nil), // 7: emissions.v1.WorkerDataBundle - (*WorkerDataBundles)(nil), // 8: emissions.v1.WorkerDataBundles -} -var file_emissions_v1_worker_proto_depIdxs = []int32{ - 1, // 0: emissions.v1.Inferences.inferences:type_name -> emissions.v1.Inference - 3, // 1: emissions.v1.Forecast.forecast_elements:type_name -> emissions.v1.ForecastElement - 4, // 2: emissions.v1.Forecasts.forecasts:type_name -> emissions.v1.Forecast - 1, // 3: emissions.v1.InferenceForecastBundle.inference:type_name -> emissions.v1.Inference - 4, // 4: emissions.v1.InferenceForecastBundle.forecast:type_name -> emissions.v1.Forecast - 6, // 5: emissions.v1.WorkerDataBundle.inference_forecasts_bundle:type_name -> emissions.v1.InferenceForecastBundle - 7, // 6: emissions.v1.WorkerDataBundles.worker_data_bundles:type_name -> emissions.v1.WorkerDataBundle - 7, // [7:7] is the sub-list for method output_type - 7, // [7:7] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_emissions_v1_worker_proto_init() } -func file_emissions_v1_worker_proto_init() { - if File_emissions_v1_worker_proto != nil { + return file_emissions_v2_worker_proto_rawDescData +} + +var file_emissions_v2_worker_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_emissions_v2_worker_proto_goTypes = []interface{}{ + (*TimestampedValue)(nil), // 0: emissions.v2.TimestampedValue + (*Inference)(nil), // 1: emissions.v2.Inference + (*Inferences)(nil), // 2: emissions.v2.Inferences + (*ForecastElement)(nil), // 3: emissions.v2.ForecastElement + (*Forecast)(nil), // 4: emissions.v2.Forecast + (*Forecasts)(nil), // 5: emissions.v2.Forecasts + (*InferenceForecastBundle)(nil), // 6: emissions.v2.InferenceForecastBundle + (*WorkerDataBundle)(nil), // 7: emissions.v2.WorkerDataBundle + (*WorkerDataBundles)(nil), // 8: emissions.v2.WorkerDataBundles + (*Nonce)(nil), // 9: emissions.v2.Nonce +} +var file_emissions_v2_worker_proto_depIdxs = []int32{ + 1, // 0: emissions.v2.Inferences.inferences:type_name -> emissions.v2.Inference + 3, // 1: emissions.v2.Forecast.forecast_elements:type_name -> emissions.v2.ForecastElement + 4, // 2: emissions.v2.Forecasts.forecasts:type_name -> emissions.v2.Forecast + 1, // 3: emissions.v2.InferenceForecastBundle.inference:type_name -> emissions.v2.Inference + 4, // 4: emissions.v2.InferenceForecastBundle.forecast:type_name -> emissions.v2.Forecast + 9, // 5: emissions.v2.WorkerDataBundle.nonce:type_name -> emissions.v2.Nonce + 6, // 6: emissions.v2.WorkerDataBundle.inference_forecasts_bundle:type_name -> emissions.v2.InferenceForecastBundle + 7, // 7: emissions.v2.WorkerDataBundles.worker_data_bundles:type_name -> emissions.v2.WorkerDataBundle + 8, // [8:8] is the sub-list for method output_type + 8, // [8:8] is the sub-list for method input_type + 8, // [8:8] is the sub-list for extension type_name + 8, // [8:8] is the sub-list for extension extendee + 0, // [0:8] is the sub-list for field type_name +} + +func init() { file_emissions_v2_worker_proto_init() } +func file_emissions_v2_worker_proto_init() { + if File_emissions_v2_worker_proto != nil { return } + file_emissions_v2_nonce_proto_init() if !protoimpl.UnsafeEnabled { - file_emissions_v1_worker_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_worker_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TimestampedValue); i { case 0: return &v.state @@ -5633,7 +5785,7 @@ func file_emissions_v1_worker_proto_init() { return nil } } - file_emissions_v1_worker_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_worker_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Inference); i { case 0: return &v.state @@ -5645,7 +5797,7 @@ func file_emissions_v1_worker_proto_init() { return nil } } - file_emissions_v1_worker_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_worker_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Inferences); i { case 0: return &v.state @@ -5657,7 +5809,7 @@ func file_emissions_v1_worker_proto_init() { return nil } } - file_emissions_v1_worker_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_worker_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ForecastElement); i { case 0: return &v.state @@ -5669,7 +5821,7 @@ func file_emissions_v1_worker_proto_init() { return nil } } - file_emissions_v1_worker_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_worker_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Forecast); i { case 0: return &v.state @@ -5681,7 +5833,7 @@ func file_emissions_v1_worker_proto_init() { return nil } } - file_emissions_v1_worker_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_worker_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Forecasts); i { case 0: return &v.state @@ -5693,7 +5845,7 @@ func file_emissions_v1_worker_proto_init() { return nil } } - file_emissions_v1_worker_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_worker_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*InferenceForecastBundle); i { case 0: return &v.state @@ -5705,7 +5857,7 @@ func file_emissions_v1_worker_proto_init() { return nil } } - file_emissions_v1_worker_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_worker_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*WorkerDataBundle); i { case 0: return &v.state @@ -5717,7 +5869,7 @@ func file_emissions_v1_worker_proto_init() { return nil } } - file_emissions_v1_worker_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_emissions_v2_worker_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*WorkerDataBundles); i { case 0: return &v.state @@ -5734,18 +5886,18 @@ func file_emissions_v1_worker_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_emissions_v1_worker_proto_rawDesc, + RawDescriptor: file_emissions_v2_worker_proto_rawDesc, NumEnums: 0, NumMessages: 9, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_emissions_v1_worker_proto_goTypes, - DependencyIndexes: file_emissions_v1_worker_proto_depIdxs, - MessageInfos: file_emissions_v1_worker_proto_msgTypes, + GoTypes: file_emissions_v2_worker_proto_goTypes, + DependencyIndexes: file_emissions_v2_worker_proto_depIdxs, + MessageInfos: file_emissions_v2_worker_proto_msgTypes, }.Build() - File_emissions_v1_worker_proto = out.File - file_emissions_v1_worker_proto_rawDesc = nil - file_emissions_v1_worker_proto_goTypes = nil - file_emissions_v1_worker_proto_depIdxs = nil + File_emissions_v2_worker_proto = out.File + file_emissions_v2_worker_proto_rawDesc = nil + file_emissions_v2_worker_proto_goTypes = nil + file_emissions_v2_worker_proto_depIdxs = nil } diff --git a/x/emissions/keeper/actor_utils/README.md b/x/emissions/keeper/actor_utils/README.md new file mode 100644 index 000000000..381e76d58 --- /dev/null +++ b/x/emissions/keeper/actor_utils/README.md @@ -0,0 +1,2 @@ + +This package contains utilities to deal with actors (workers, reputers). \ No newline at end of file diff --git a/x/emissions/keeper/msgserver/msg_server_losses.go b/x/emissions/keeper/actor_utils/losses.go similarity index 55% rename from x/emissions/keeper/msgserver/msg_server_losses.go rename to x/emissions/keeper/actor_utils/losses.go index a0da219b2..5f151b5af 100644 --- a/x/emissions/keeper/msgserver/msg_server_losses.go +++ b/x/emissions/keeper/actor_utils/losses.go @@ -1,4 +1,4 @@ -package msgserver +package actor_utils import ( "context" @@ -9,75 +9,80 @@ import ( "cosmossdk.io/collections" errorsmod "cosmossdk.io/errors" cosmosMath "cosmossdk.io/math" + keeper "github.com/allora-network/allora-chain/x/emissions/keeper" synth "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis" "github.com/allora-network/allora-chain/x/emissions/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) -// Called by reputer to submit their assessment of the quality of workers' work compared to ground truth -func (ms msgServer) InsertBulkReputerPayload( - ctx context.Context, - msg *types.MsgInsertBulkReputerPayload, -) (*types.MsgInsertBulkReputerPayloadResponse, error) { - err := checkInputLength(ctx, ms, msg) - if err != nil { - return nil, err - } +// REPUTER NONCES CLOSING - // Validate top level here. We avoid validating the full message here because that would allow for 1 bundle to fail the whole message. - if err := msg.ValidateTopLevel(); err != nil { - return nil, err - } +// Closes an open reputer nonce. +func CloseReputerNonce( + k *keeper.Keeper, + ctx sdk.Context, + topicId keeper.TopicId, + nonce types.Nonce) error { // Check if the topic exists - topic, err := ms.k.GetTopic(ctx, msg.TopicId) + topic, err := k.GetTopic(ctx, topicId) if err != nil { - return nil, sdkerrors.ErrNotFound + return sdkerrors.ErrNotFound } /// Do filters upon the leader (the sender) first, then do checks on each reputer in the payload /// All filters should be done in order of increasing computational complexity // Check if the worker nonce is unfulfilled - workerNonceUnfulfilled, err := ms.k.IsWorkerNonceUnfulfilled(ctx, msg.TopicId, msg.ReputerRequestNonce.ReputerNonce) + workerNonceUnfulfilled, err := k.IsWorkerNonceUnfulfilled(ctx, topicId, &nonce) if err != nil { - return nil, err + return err } // Throw if worker nonce is unfulfilled -- can't report losses on something not yet committed if workerNonceUnfulfilled { - return nil, errorsmod.Wrapf( + return errorsmod.Wrapf( types.ErrNonceStillUnfulfilled, "Reputer's worker nonce not yet fulfilled for reputer block: %v", - msg.ReputerRequestNonce.ReputerNonce.BlockHeight, + &nonce.BlockHeight, ) } // Check if the reputer nonce is unfulfilled - reputerNonceUnfulfilled, err := ms.k.IsReputerNonceUnfulfilled(ctx, msg.TopicId, msg.ReputerRequestNonce.ReputerNonce) + reputerNonceUnfulfilled, err := k.IsReputerNonceUnfulfilled(ctx, topicId, &nonce) if err != nil { - return nil, err + return err } // Throw if already fulfilled -- can't return a response twice if !reputerNonceUnfulfilled { - return nil, errorsmod.Wrapf( - types.ErrNonceAlreadyFulfilled, + return errorsmod.Wrapf( + types.ErrUnfulfilledNonceNotFound, "Reputer nonce already fulfilled: %v", - msg.ReputerRequestNonce.ReputerNonce.BlockHeight, + &nonce.BlockHeight, ) } + // Check if the window time has passed: if blockheight > nonce.BlockHeight + topic.WorkerSubmissionWindow + blockHeight := ctx.BlockHeight() + if blockHeight < nonce.BlockHeight+topic.GroundTruthLag { + return types.ErrReputerNonceWindowNotAvailable + } - params, err := ms.k.GetParams(ctx) + params, err := k.GetParams(ctx) if err != nil { - return nil, err + return err + } + + reputerLossBundles, err := k.GetReputerLossBundlesAtBlock(ctx, topicId, nonce.BlockHeight) + if err != nil { + return types.ErrNoValidBundles } /// Do checks on each reputer in the payload // Iterate through the array to ensure each reputer is in the whitelist // and get get score for each reputer => later we can skim only the top few by score descending - lossBundlesByReputer := make(map[string]*types.ReputerValueBundle) - latestReputerScores := make(map[string]types.Score) - for _, bundle := range msg.ReputerValueBundles { + lossBundlesByReputer := make([]*types.ReputerValueBundle, 0) + stakesByReputer := make(map[string]cosmosMath.Int) + for _, bundle := range reputerLossBundles.ReputerValueBundles { if err := bundle.Validate(); err != nil { continue } @@ -85,164 +90,140 @@ func (ms msgServer) InsertBulkReputerPayload( reputer := bundle.ValueBundle.Reputer // Check that the reputer's value bundle is for a topic matching the leader's given topic - if bundle.ValueBundle.TopicId != msg.TopicId { + if bundle.ValueBundle.TopicId != topicId { continue } // Check that the reputer's value bundle is for a nonce matching the leader's given nonce - if bundle.ValueBundle.ReputerRequestNonce.ReputerNonce.BlockHeight != msg.ReputerRequestNonce.ReputerNonce.BlockHeight { + if bundle.ValueBundle.ReputerRequestNonce.ReputerNonce.BlockHeight != nonce.BlockHeight { continue } - // Check if we've seen this reputer already in this bulk payload - if _, ok := lossBundlesByReputer[bundle.ValueBundle.Reputer]; !ok { - // Check that the reputer is registered in the topic - isReputerRegistered, err := ms.k.IsReputerRegisteredInTopic(ctx, bundle.ValueBundle.TopicId, reputer) - if err != nil { - continue - } - // We'll keep what we can get from the payload, but we'll ignore the rest - if !isReputerRegistered { - continue - } + // Check that the reputer is registered in the topic + isReputerRegistered, err := k.IsReputerRegisteredInTopic(ctx, bundle.ValueBundle.TopicId, reputer) + if err != nil { + continue + } + // We'll keep what we can get from the payload, but we'll ignore the rest + if !isReputerRegistered { + continue + } - // Check that the reputer enough stake in the topic - stake, err := ms.k.GetStakeReputerAuthority(ctx, msg.TopicId, reputer) - if err != nil { - continue - } - if stake.LT(params.RequiredMinimumStake) { - continue - } + // Check that the reputer enough stake in the topic + stake, err := k.GetStakeReputerAuthority(ctx, topicId, reputer) + if err != nil { + continue + } + if stake.LT(params.RequiredMinimumStake) { + continue + } - // Examine forecast elements to verify that they're for registered inferers in the current set. - // A check of their registration and other filters have already been applied when their inferences were inserted. - // We keep what we can, ignoring the reputer and their contribution (losses) entirely - // if they're left with no valid losses. - filteredBundle, err := filterUnacceptedWorkersFromReputerValueBundle(ctx, ms, msg.TopicId, *msg.ReputerRequestNonce, bundle) - if err != nil { - continue - } + // Examine forecast elements to verify that they're for registered inferers in the current set. + // A check of their registration and other filters have already been applied when their inferences were inserted. + // We keep what we can, ignoring the reputer and their contribution (losses) entirely + // if they're left with no valid losses. - /// If we do PoX-like anti-sybil procedure, would go here + filteredBundle, err := filterUnacceptedWorkersFromReputerValueBundle(k, ctx, topicId, *bundle.ValueBundle.ReputerRequestNonce, bundle) + if err != nil { + continue + } - /// Filtering done now, now write what we must for inclusion + /// If we do PoX-like anti-sybil procedure, would go here - // Get the latest score for each reputer - latestScore, err := ms.k.GetLatestReputerScore(ctx, bundle.ValueBundle.TopicId, reputer) - if err != nil { - continue - } - latestReputerScores[bundle.ValueBundle.Reputer] = latestScore - lossBundlesByReputer[bundle.ValueBundle.Reputer] = filteredBundle - } - } + /// Filtering done now, now write what we must for inclusion - // If we pseudo-random sample from the non-sybil set of reputers, we would do it here - topReputers := FindTopNByScoreDesc(params.MaxTopReputersToReward, latestReputerScores, msg.ReputerRequestNonce.ReputerNonce.BlockHeight) + lossBundlesByReputer = append(lossBundlesByReputer, filteredBundle) - // Check that the reputer in the payload is a top reputer among those who have submitted losses - stakesByReputer := make(map[string]cosmosMath.Int) - lossBundlesFromTopReputers := make([]*types.ReputerValueBundle, 0) - for _, reputer := range topReputers { - stake, err := ms.k.GetStakeReputerAuthority(ctx, msg.TopicId, reputer) + stake, err = k.GetStakeReputerAuthority(ctx, topicId, reputer) if err != nil { continue } - - lossBundlesFromTopReputers = append(lossBundlesFromTopReputers, lossBundlesByReputer[reputer]) - stakesByReputer[reputer] = stake + stakesByReputer[bundle.ValueBundle.Reputer] = stake } + // sort by reputer score descending - sort.Slice(lossBundlesFromTopReputers, func(i, j int) bool { - return lossBundlesFromTopReputers[i].ValueBundle.Reputer < lossBundlesFromTopReputers[j].ValueBundle.Reputer + sort.Slice(lossBundlesByReputer, func(i, j int) bool { + return lossBundlesByReputer[i].ValueBundle.Reputer < lossBundlesByReputer[j].ValueBundle.Reputer }) - if len(lossBundlesFromTopReputers) == 0 { - return nil, types.ErrNoValidBundles - } - bundles := types.ReputerValueBundles{ - ReputerValueBundles: lossBundlesFromTopReputers, + ReputerValueBundles: lossBundlesByReputer, } - err = ms.k.InsertReputerLossBundlesAtBlock(ctx, msg.TopicId, msg.ReputerRequestNonce.ReputerNonce.BlockHeight, bundles) + err = k.InsertReputerLossBundlesAtBlock(ctx, topicId, nonce.BlockHeight, bundles) if err != nil { - return nil, err + return err } networkLossBundle, err := synth.CalcNetworkLosses(stakesByReputer, bundles, topic.Epsilon) if err != nil { - return nil, err + return err } sdkCtx := sdk.UnwrapSDKContext(ctx) - sdkCtx.Logger().Debug(fmt.Sprintf("Reputer Nonce %d Network Loss Bundle %v", msg.ReputerRequestNonce.ReputerNonce.BlockHeight, networkLossBundle)) + sdkCtx.Logger().Debug(fmt.Sprintf("Reputer Nonce %d Network Loss Bundle %v", &nonce.BlockHeight, networkLossBundle)) - networkLossBundle.ReputerRequestNonce = msg.ReputerRequestNonce + networkLossBundle.ReputerRequestNonce = &types.ReputerRequestNonce{ + ReputerNonce: &nonce, + } - err = ms.k.InsertNetworkLossBundleAtBlock(ctx, msg.TopicId, msg.ReputerRequestNonce.ReputerNonce.BlockHeight, networkLossBundle) + err = k.InsertNetworkLossBundleAtBlock(ctx, topicId, nonce.BlockHeight, networkLossBundle) if err != nil { - return nil, err + return err } - types.EmitNewNetworkLossSetEvent(sdkCtx, msg.TopicId, msg.ReputerRequestNonce.ReputerNonce.BlockHeight, networkLossBundle) + types.EmitNewNetworkLossSetEvent(sdkCtx, topicId, nonce.BlockHeight, networkLossBundle) err = synth.GetCalcSetNetworkRegrets( sdkCtx, - ms.k, - msg.TopicId, + *k, + topicId, networkLossBundle, - *msg.ReputerRequestNonce.ReputerNonce, + nonce, topic.AlphaRegret, params.CNorm, topic.PNorm, topic.Epsilon) if err != nil { - return nil, err + return err } // Update the unfulfilled nonces - _, err = ms.k.FulfillReputerNonce(ctx, msg.TopicId, msg.ReputerRequestNonce.ReputerNonce) + _, err = k.FulfillReputerNonce(ctx, topicId, &nonce) if err != nil { - return nil, err + return err } // Update topic reward nonce - err = ms.k.SetTopicRewardNonce(ctx, msg.TopicId, msg.ReputerRequestNonce.ReputerNonce.BlockHeight) + err = k.SetTopicRewardNonce(ctx, topicId, nonce.BlockHeight) if err != nil { - return nil, err - } - - err = ms.k.AddRewardableTopic(ctx, msg.TopicId) - if err != nil { - return nil, err + return err } - blockHeight := sdkCtx.BlockHeight() - err = ms.k.SetTopicLastCommit(ctx, topic.Id, blockHeight, msg.ReputerRequestNonce.ReputerNonce, msg.Sender, types.ActorType_REPUTER) + err = k.AddRewardableTopic(ctx, topicId) if err != nil { - return nil, err + return err } - err = ms.k.SetTopicLastReputerPayload(ctx, topic.Id, blockHeight, msg.ReputerRequestNonce.ReputerNonce, msg.Sender) + err = k.SetReputerTopicLastCommit(ctx, topic.Id, blockHeight, &nonce) if err != nil { - return nil, err + return err } - return &types.MsgInsertBulkReputerPayloadResponse{}, nil + sdkCtx.Logger().Info(fmt.Sprintf("Closed reputer nonce for topic: %d, nonce: %v", topicId, nonce)) + return nil } // Filter out values of unaccepted workers. // It is assumed that the work of inferers and forecasters stored at the nonce is already filtered for acceptance. // This also removes duplicate values of the same worker. func filterUnacceptedWorkersFromReputerValueBundle( + k *keeper.Keeper, ctx context.Context, - ms msgServer, topicId uint64, reputerRequestNonce types.ReputerRequestNonce, reputerValueBundle *types.ReputerValueBundle, ) (*types.ReputerValueBundle, error) { // Get the accepted inferers of the associated worker response payload - inferences, err := ms.k.GetInferencesAtBlock(ctx, topicId, reputerRequestNonce.ReputerNonce.BlockHeight) + inferences, err := k.GetInferencesAtBlock(ctx, topicId, reputerRequestNonce.ReputerNonce.BlockHeight) if err != nil { if errors.Is(err, collections.ErrNotFound) { return nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "no inferences found at block height") @@ -256,14 +237,9 @@ func filterUnacceptedWorkersFromReputerValueBundle( } // Get the accepted forecasters of the associated worker response payload - forecasts, err := ms.k.GetForecastsAtBlock(ctx, topicId, reputerRequestNonce.ReputerNonce.BlockHeight) + forecasts, err := k.GetForecastsAtBlock(ctx, topicId, reputerRequestNonce.ReputerNonce.BlockHeight) if err != nil { - // If no forecasts, we'll just assume there are 0 forecasters - if errors.Is(err, collections.ErrNotFound) { - forecasts = &types.Forecasts{Forecasts: make([]*types.Forecast, 0)} - } else { - return nil, err - } + return nil, err } acceptedForecastersOfBatch := make(map[string]bool) for _, forecast := range forecasts.Forecasts { diff --git a/x/emissions/keeper/actor_utils/losses_test.go b/x/emissions/keeper/actor_utils/losses_test.go new file mode 100644 index 000000000..b34e61629 --- /dev/null +++ b/x/emissions/keeper/actor_utils/losses_test.go @@ -0,0 +1,3 @@ +package actor_utils_test + +// TODO losses tests diff --git a/x/emissions/keeper/msgserver/msg_server_util_sort.go b/x/emissions/keeper/actor_utils/util_sort.go similarity index 98% rename from x/emissions/keeper/msgserver/msg_server_util_sort.go rename to x/emissions/keeper/actor_utils/util_sort.go index 6fd8bfef0..7e58149a4 100644 --- a/x/emissions/keeper/msgserver/msg_server_util_sort.go +++ b/x/emissions/keeper/actor_utils/util_sort.go @@ -1,4 +1,4 @@ -package msgserver +package actor_utils import ( "container/heap" @@ -21,6 +21,7 @@ type SortableItem struct { type Actor = string type BlockHeight = int64 type Score = types.Score +type TopicId = uint64 type PriorityQueue []*SortableItem diff --git a/x/emissions/keeper/msgserver/msg_server_common_test.go b/x/emissions/keeper/actor_utils/util_test.go similarity index 99% rename from x/emissions/keeper/msgserver/msg_server_common_test.go rename to x/emissions/keeper/actor_utils/util_test.go index 36871d2b6..870267935 100644 --- a/x/emissions/keeper/msgserver/msg_server_common_test.go +++ b/x/emissions/keeper/actor_utils/util_test.go @@ -1,4 +1,4 @@ -package msgserver +package actor_utils import ( "testing" diff --git a/x/emissions/keeper/actor_utils/worker.go b/x/emissions/keeper/actor_utils/worker.go new file mode 100644 index 000000000..ad2a05258 --- /dev/null +++ b/x/emissions/keeper/actor_utils/worker.go @@ -0,0 +1,233 @@ +package actor_utils + +import ( + "fmt" + "sort" + + keeper "github.com/allora-network/allora-chain/x/emissions/keeper" + "github.com/allora-network/allora-chain/x/emissions/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// WORKER NONCES CLOSING + +// Closes an open worker nonce. +func CloseWorkerNonce(k *keeper.Keeper, ctx sdk.Context, topicId keeper.TopicId, nonce types.Nonce) error { + // Check if the topic exists + topicExists, err := k.TopicExists(ctx, topicId) + if err != nil { + return err + } + if !topicExists { + return types.ErrInvalidTopicId + } + + // Check if the nonce is unfulfilled + nonceUnfulfilled, err := k.IsWorkerNonceUnfulfilled(ctx, topicId, &nonce) + if err != nil { + return err + } + // If the nonce is already fulfilled, return an error + if !nonceUnfulfilled { + return types.ErrUnfulfilledNonceNotFound + } + + topic, err := k.GetTopic(ctx, topicId) + if err != nil { + return types.ErrInvalidTopicId + } + + // Check if the window time has passed: if blockheight > nonce.BlockHeight + topic.WorkerSubmissionWindow + blockHeight := ctx.BlockHeight() + if blockHeight <= topic.EpochLastEnded || + blockHeight > topic.EpochLastEnded+topic.GroundTruthLag { + return types.ErrWorkerNonceWindowNotAvailable + } + + // Get all inferences from this topic, nonce + inferences, err := k.GetInferencesAtBlock(ctx, topicId, nonce.BlockHeight) + if err != nil { + return err + } + if len(inferences.Inferences) == 0 { + return types.ErrNoValidInferences + } + + acceptedInferers, err := insertInferencesFromTopInferers( + ctx, + k, + topicId, + nonce, + inferences.Inferences, + ) + if err != nil { + return err + } + + // Get all forecasts from this topicId, nonce + forecasts, err := k.GetForecastsAtBlock(ctx, topicId, nonce.BlockHeight) + if err != nil { + return err + } + + err = insertForecastsFromTopForecasters( + ctx, + k, + topicId, + nonce, + forecasts.Forecasts, + acceptedInferers, + ) + if err != nil { + return err + } + // Update the unfulfilled worker nonce + _, err = k.FulfillWorkerNonce(ctx, topicId, &nonce) + if err != nil { + return err + } + + err = k.AddReputerNonce(ctx, topic.Id, &nonce) + if err != nil { + return err + } + + err = k.SetWorkerTopicLastCommit(ctx, topic.Id, blockHeight, &nonce) + if err != nil { + return err + } + + ctx.Logger().Info(fmt.Sprintf("Closed worker nonce for topic: %d, nonce: %v", topicId, nonce)) + // Return an empty response as the operation was successful + return nil +} + +// Output a new set of inferences where only 1 inference per registerd inferer is kept, +// ignore the rest. In particular, take the first inference from each registered inferer +// and none from any unregistered inferer. +// Signatures, anti-synil procedures, and "skimming of only the top few workers by score +// descending" should be done here. +func insertInferencesFromTopInferers( + ctx sdk.Context, + k *keeper.Keeper, + topicId uint64, + nonce types.Nonce, + inferences []*types.Inference, +) (map[string]bool, error) { + acceptedInferers := make(map[string]bool, 0) + if len(inferences) == 0 { + ctx.Logger().Warn(fmt.Sprintf("No inferences to process for topic: %d, nonce: %v", topicId, nonce)) + return nil, types.ErrNoValidInferences // TODO Change err name - No inferences to process + } + for _, inference := range inferences { + // Check that the forecast exist, is for the correct topic, and is for the correct nonce + if inference.TopicId != topicId { + ctx.Logger().Warn("Inference does not match topic: ", topicId, ", nonce: ", nonce, "for inferer: ", inference.Inferer) + continue + } + if inference.BlockHeight != nonce.BlockHeight { + ctx.Logger().Warn("Inference does not match blockHeight: ", topicId, ", nonce: ", nonce, "for inferer: ", inference.Inferer) + continue + } + acceptedInferers[inference.Inferer] = true + } + + // Ensure deterministic ordering of inferences + sort.Slice(inferences, func(i, j int) bool { + return inferences[i].Inferer < inferences[j].Inferer + }) + + // Store the final list of inferences + inferencesToInsert := types.Inferences{ + Inferences: inferences, + } + err := k.InsertInferences(ctx, topicId, nonce, inferencesToInsert) + if err != nil { + return nil, err + } + + return acceptedInferers, nil +} + +// Output a new set of forecasts where only 1 forecast per registerd forecaster is kept, +// ignore the rest. In particular, take the first forecast from each registered forecaster +// and none from any unregistered forecaster. +// Signatures, anti-synil procedures, and "skimming of only the top few workers by score +// descending" should be done here. +func insertForecastsFromTopForecasters( + ctx sdk.Context, + k *keeper.Keeper, + topicId uint64, + nonce types.Nonce, + forecasts []*types.Forecast, + acceptedInferersOfBatch map[string]bool, +) error { + forecastsByForecaster := make(map[string]*types.Forecast) + latestForecaster := make([]*types.Forecast, 0) + for _, forecast := range forecasts { + if forecast == nil { + continue + } + + // Examine forecast elements to verify that they're for inferers in the current set. + // We assume that set of inferers has been verified above. + // We keep what we can, ignoring the forecaster and their contribution (forecast) entirely + // if they're left with no valid forecast elements. + acceptedForecastElements := make([]*types.ForecastElement, 0) + for _, el := range forecast.ForecastElements { + if _, ok := acceptedInferersOfBatch[el.Inferer]; ok { + acceptedForecastElements = append(acceptedForecastElements, el) + } + } + + // Discard if empty + if len(acceptedForecastElements) == 0 { + continue + } + + // Update the forecast with the filtered elements + if forecast.ForecastElements != nil { + forecast.ForecastElements = acceptedForecastElements + } + + if forecast.Forecaster == "" { + ctx.Logger().Warn("Forecast was added that has no forecaster, ignoring") + continue + } + // Check that the forecast exist, is for the correct topic, and is for the correct nonce + if forecast.TopicId != topicId { + ctx.Logger().Warn("Forecast does not match topic: ", topicId, ", nonce: ", nonce, "for forecaster: ", forecast.Forecaster) + continue + } + if forecast.BlockHeight != nonce.BlockHeight { + ctx.Logger().Warn("Forecast does not match blockHeight: ", topicId, ", nonce: ", nonce, "for forecaster: ", forecast.Forecaster) + continue + } + + /// Now do filters on each forecaster + // Ensure that we only have one forecast per forecaster. If not, we just take the first one + if _, ok := forecastsByForecaster[forecast.Forecaster]; !ok { + latestForecaster = append(latestForecaster, forecast) + forecastsByForecaster[forecast.Forecaster] = forecast + } + } + + // Though less than ideal because it produces less-acurate network inferences, + // it is fine if no forecasts are accepted + // => no need to check len(forecastsFromTopForecasters) == 0 + + // Ensure deterministic ordering + sort.Slice(latestForecaster, func(i, j int) bool { + return latestForecaster[i].Forecaster < latestForecaster[j].Forecaster + }) + // Store the final list of forecasts + forecastsToInsert := types.Forecasts{ + Forecasts: latestForecaster, + } + err := k.InsertForecasts(ctx, topicId, nonce, forecastsToInsert) + if err != nil { + return err + } + + return nil +} diff --git a/x/emissions/keeper/actor_utils/worker_test.go b/x/emissions/keeper/actor_utils/worker_test.go new file mode 100644 index 000000000..9aef4bb72 --- /dev/null +++ b/x/emissions/keeper/actor_utils/worker_test.go @@ -0,0 +1,3 @@ +package actor_utils_test + +// TODO worker tests diff --git a/x/emissions/keeper/genesis.go b/x/emissions/keeper/genesis.go index b1869d482..384d12e5a 100644 --- a/x/emissions/keeper/genesis.go +++ b/x/emissions/keeper/genesis.go @@ -3,9 +3,13 @@ package keeper import ( "context" + "cosmossdk.io/errors" + + "cosmossdk.io/collections" cosmosMath "cosmossdk.io/math" alloraMath "github.com/allora-network/allora-chain/math" "github.com/allora-network/allora-chain/x/emissions/types" + sdk "github.com/cosmos/cosmos-sdk/types" ) // InitGenesis initializes the module state from a genesis state. @@ -17,28 +21,642 @@ func (k *Keeper) InitGenesis(ctx context.Context, data *types.GenesisState) erro k.authKeeper.SetModuleAccount(ctx, alloraRewardsModuleAccount) alloraPendingRewardsModuleAccount := k.authKeeper.GetModuleAccount(ctx, types.AlloraPendingRewardForDelegatorAccountName) k.authKeeper.SetModuleAccount(ctx, alloraPendingRewardsModuleAccount) + + // go through the genesis state object + + // params Params if err := k.SetParams(ctx, data.Params); err != nil { - return err + return errors.Wrap(err, "error setting params") + } + // nextTopicId uint64 + if data.NextTopicId == 0 { + // reserve topic ID 0 for future use + if _, err := k.IncrementTopicId(ctx); err != nil { + return errors.Wrap(err, "error incrementing topic ID") + } + } else { + if err := k.nextTopicId.Set(ctx, data.NextTopicId); err != nil { + return errors.Wrap(err, "error setting next topic ID") + } + } + //Topics []*TopicIdAndTopic + if len(data.Topics) != 0 { + for _, topic := range data.Topics { + if topic != nil { + if err := k.topics.Set(ctx, topic.TopicId, *topic.Topic); err != nil { + return errors.Wrap(err, "error setting topic") + } + } + } + } + //ActiveTopics []uint64 + if len(data.ActiveTopics) != 0 { + for _, topicId := range data.ActiveTopics { + if err := k.activeTopics.Set(ctx, topicId); err != nil { + return errors.Wrap(err, "error setting activeTopics") + } + } + } + //RewardableTopics []uint64 + if len(data.RewardableTopics) != 0 { + for _, topicId := range data.RewardableTopics { + if err := k.rewardableTopics.Set(ctx, topicId); err != nil { + return errors.Wrap(err, "error setting rewardableTopics") + } + } + } + //TopicWorkers []*TopicAndActorId + if len(data.TopicWorkers) != 0 { + for _, topicAndActorId := range data.TopicWorkers { + if topicAndActorId != nil { + if err := k.topicWorkers.Set(ctx, collections.Join(topicAndActorId.TopicId, topicAndActorId.ActorId)); err != nil { + return errors.Wrap(err, "error setting topicWorkers") + } + } + } + + } + //TopicReputers []*TopicAndActorId + if len(data.TopicReputers) != 0 { + for _, topicAndActorId := range data.TopicReputers { + if topicAndActorId != nil { + if err := k.topicReputers.Set(ctx, collections.Join(topicAndActorId.TopicId, topicAndActorId.ActorId)); err != nil { + return errors.Wrap(err, "error setting topicReputers") + } + } + } + + } + //TopicRewardNonce []*TopicIdAndBlockHeight + if len(data.TopicRewardNonce) != 0 { + for _, topicIdAndBlockHeight := range data.TopicRewardNonce { + if topicIdAndBlockHeight != nil { + if err := k.topicRewardNonce.Set(ctx, topicIdAndBlockHeight.TopicId, topicIdAndBlockHeight.BlockHeight); err != nil { + return errors.Wrap(err, "error setting topicRewardNonce") + } + } + } + } + //InfererScoresByBlock []*TopicIdBlockHeightScores + if len(data.InfererScoresByBlock) != 0 { + for _, topicIdBlockHeightScores := range data.InfererScoresByBlock { + if topicIdBlockHeightScores != nil { + if err := k.infererScoresByBlock.Set(ctx, + collections.Join(topicIdBlockHeightScores.TopicId, topicIdBlockHeightScores.BlockHeight), + *topicIdBlockHeightScores.Scores); err != nil { + return errors.Wrap(err, "error setting infererScoresByBlock") + } + } + } + + } + //ForecasterScoresByBlock []*TopicIdBlockHeightScores + if len(data.ForecasterScoresByBlock) != 0 { + for _, topicIdBlockHeightScores := range data.ForecasterScoresByBlock { + if topicIdBlockHeightScores != nil { + if err := k.forecasterScoresByBlock.Set( + ctx, + collections.Join(topicIdBlockHeightScores.TopicId, topicIdBlockHeightScores.BlockHeight), + *topicIdBlockHeightScores.Scores); err != nil { + return errors.Wrap(err, "error setting forecasterScoresByBlock") + } + } + } + + } + //ReputerScoresByBlock []*TopicIdBlockHeightScores + if len(data.ReputerScoresByBlock) != 0 { + for _, topicIdBlockHeightScores := range data.ReputerScoresByBlock { + if topicIdBlockHeightScores != nil { + if err := k.reputerScoresByBlock.Set( + ctx, + collections.Join(topicIdBlockHeightScores.TopicId, topicIdBlockHeightScores.BlockHeight), + *topicIdBlockHeightScores.Scores); err != nil { + return errors.Wrap(err, "error setting reputerScoresByBlock") + } + } + } + } + //LatestInfererScoresByWorker []*TopicIdActorIdScore + if len(data.LatestInfererScoresByWorker) != 0 { + for _, topicIdActorIdScore := range data.LatestInfererScoresByWorker { + if topicIdActorIdScore != nil { + if err := k.latestInfererScoresByWorker.Set(ctx, + collections.Join(topicIdActorIdScore.TopicId, topicIdActorIdScore.ActorId), + *topicIdActorIdScore.Score); err != nil { + return errors.Wrap(err, "error setting latestInfererScoresByWorker") + } + } + } + } + //LatestForecasterScoresByWorker []*TopicIdActorIdScore + if len(data.LatestForecasterScoresByWorker) != 0 { + for _, topicIdActorIdScore := range data.LatestForecasterScoresByWorker { + if topicIdActorIdScore != nil { + if err := k.latestForecasterScoresByWorker.Set(ctx, + collections.Join(topicIdActorIdScore.TopicId, topicIdActorIdScore.ActorId), + *topicIdActorIdScore.Score); err != nil { + return errors.Wrap(err, "error setting latestForecasterScoresByWorker") + } + } + } + } + //LatestReputerScoresByReputer []*TopicIdActorIdScore + if len(data.LatestReputerScoresByReputer) != 0 { + for _, topicIdActorIdScore := range data.LatestReputerScoresByReputer { + if topicIdActorIdScore != nil { + if err := k.latestReputerScoresByReputer.Set(ctx, + collections.Join(topicIdActorIdScore.TopicId, topicIdActorIdScore.ActorId), + *topicIdActorIdScore.Score); err != nil { + return errors.Wrap(err, "error setting latestReputerScoresByReputer") + } + } + } + } + //ReputerListeningCoefficient []*TopicIdActorIdListeningCoefficient + if len(data.ReputerListeningCoefficient) != 0 { + for _, topicIdActorIdListeningCoefficient := range data.ReputerListeningCoefficient { + if topicIdActorIdListeningCoefficient != nil { + if err := k.reputerListeningCoefficient.Set(ctx, + collections.Join(topicIdActorIdListeningCoefficient.TopicId, topicIdActorIdListeningCoefficient.ActorId), + *topicIdActorIdListeningCoefficient.ListeningCoefficient); err != nil { + return errors.Wrap(err, "error setting reputerListeningCoefficient") + } + } + } + } + //PreviousReputerRewardFraction []*TopicIdActorIdDec + if len(data.PreviousReputerRewardFraction) != 0 { + for _, topicIdActorIdDec := range data.PreviousReputerRewardFraction { + if topicIdActorIdDec != nil { + if err := k.previousReputerRewardFraction.Set(ctx, + collections.Join(topicIdActorIdDec.TopicId, topicIdActorIdDec.ActorId), + topicIdActorIdDec.Dec); err != nil { + return errors.Wrap(err, "error setting previousReputerRewardFraction") + } + } + } + } + //PreviousInferenceRewardFraction []*TopicIdActorIdDec + if len(data.PreviousInferenceRewardFraction) != 0 { + for _, topicIdActorIdDec := range data.PreviousInferenceRewardFraction { + if topicIdActorIdDec != nil { + if err := k.previousInferenceRewardFraction.Set(ctx, + collections.Join(topicIdActorIdDec.TopicId, topicIdActorIdDec.ActorId), + topicIdActorIdDec.Dec); err != nil { + return errors.Wrap(err, "error setting previousInferenceRewardFraction") + } + } + } + } + //PreviousForecastRewardFraction []*TopicIdActorIdDec + if len(data.PreviousForecastRewardFraction) != 0 { + for _, topicIdActorIdDec := range data.PreviousForecastRewardFraction { + if topicIdActorIdDec != nil { + if err := k.previousForecastRewardFraction.Set(ctx, + collections.Join(topicIdActorIdDec.TopicId, topicIdActorIdDec.ActorId), + topicIdActorIdDec.Dec); err != nil { + return errors.Wrap(err, "error setting previousForecastRewardFraction") + } + } + } + } + // TotalStake cosmossdk_io_math.Int + if data.TotalStake.GT(cosmosMath.ZeroInt()) { + if err := k.totalStake.Set(ctx, data.TotalStake); err != nil { + return errors.Wrap(err, "error setting totalStake") + } + } else { + if err := k.totalStake.Set(ctx, cosmosMath.ZeroInt()); err != nil { + return errors.Wrap(err, "error setting totalStake to zero int") + } + } + //TopicStake []*TopicIdAndInt + if len(data.TopicStake) != 0 { + for _, topicIdAndInt := range data.TopicStake { + if topicIdAndInt != nil { + if err := k.topicStake.Set(ctx, topicIdAndInt.TopicId, topicIdAndInt.Int); err != nil { + return errors.Wrap(err, "error setting topicStake") + } + } + } + } + //StakeReputerAuthority []*TopicIdActorIdInt + if len(data.StakeReputerAuthority) != 0 { + for _, topicIdActorIdInt := range data.StakeReputerAuthority { + if topicIdActorIdInt != nil { + if err := k.stakeReputerAuthority.Set(ctx, + collections.Join(topicIdActorIdInt.TopicId, topicIdActorIdInt.ActorId), + topicIdActorIdInt.Int); err != nil { + return errors.Wrap(err, "error setting stakeReputerAuthority") + } + } + } + } + //StakeSumFromDelegator []*TopicIdActorIdInt + if len(data.StakeSumFromDelegator) != 0 { + for _, topicIdActorIdInt := range data.StakeSumFromDelegator { + if topicIdActorIdInt != nil { + if err := k.stakeSumFromDelegator.Set(ctx, + collections.Join(topicIdActorIdInt.TopicId, topicIdActorIdInt.ActorId), + topicIdActorIdInt.Int); err != nil { + return errors.Wrap(err, "error setting stakeSumFromDelegator") + } + } + } + } + //DelegatedStakes []*TopicIdDelegatorReputerDelegatorInfo + if len(data.DelegatedStakes) != 0 { + for _, topicIdDelegatorReputerDelegatorInfo := range data.DelegatedStakes { + if topicIdDelegatorReputerDelegatorInfo != nil { + if err := k.delegatedStakes.Set(ctx, + collections.Join3( + topicIdDelegatorReputerDelegatorInfo.TopicId, + topicIdDelegatorReputerDelegatorInfo.Delegator, + topicIdDelegatorReputerDelegatorInfo.Reputer, + ), + *topicIdDelegatorReputerDelegatorInfo.DelegatorInfo); err != nil { + return errors.Wrap(err, "error setting delegatedStakes") + } + } + } + } + //StakeFromDelegatorsUponReputer []*TopicIdActorIdInt + if len(data.StakeFromDelegatorsUponReputer) != 0 { + for _, topicIdActorIdInt := range data.StakeFromDelegatorsUponReputer { + if topicIdActorIdInt != nil { + if err := k.stakeFromDelegatorsUponReputer.Set(ctx, + collections.Join(topicIdActorIdInt.TopicId, topicIdActorIdInt.ActorId), + topicIdActorIdInt.Int); err != nil { + return errors.Wrap(err, "error setting stakeFromDelegatorsUponReputer") + } + } + } + } + //DelegateRewardPerShare []*TopicIdActorIdDec + if len(data.DelegateRewardPerShare) != 0 { + for _, topicIdActorIdDec := range data.DelegateRewardPerShare { + if topicIdActorIdDec != nil { + if err := k.delegateRewardPerShare.Set(ctx, + collections.Join(topicIdActorIdDec.TopicId, topicIdActorIdDec.ActorId), + topicIdActorIdDec.Dec); err != nil { + return errors.Wrap(err, "error setting delegateRewardPerShare") + } + } + } + } + //StakeRemovalsByBlock []*BlockHeightTopicIdReputerStakeRemovalInfo + if len(data.StakeRemovalsByBlock) != 0 { + for _, blockHeightTopicIdReputerStakeRemovalInfo := range data.StakeRemovalsByBlock { + if blockHeightTopicIdReputerStakeRemovalInfo != nil { + if err := k.stakeRemovalsByBlock.Set(ctx, + collections.Join3( + blockHeightTopicIdReputerStakeRemovalInfo.BlockHeight, + blockHeightTopicIdReputerStakeRemovalInfo.TopicId, + blockHeightTopicIdReputerStakeRemovalInfo.Reputer), + *blockHeightTopicIdReputerStakeRemovalInfo.StakeRemovalInfo); err != nil { + return errors.Wrap(err, "error setting stakeRemovalsByBlock") + } + } + } + } + //StakeRemovalsByActor []*ActorIdTopicIdBlockHeight + if len(data.StakeRemovalsByActor) != 0 { + for _, actorIdTopicIdBlockHeight := range data.StakeRemovalsByActor { + if actorIdTopicIdBlockHeight != nil { + if err := k.stakeRemovalsByActor.Set(ctx, + collections.Join3( + actorIdTopicIdBlockHeight.ActorId, + actorIdTopicIdBlockHeight.TopicId, + actorIdTopicIdBlockHeight.BlockHeight)); err != nil { + return errors.Wrap(err, "error setting stakeRemovalsByActor") + } + } + } } - if err := k.SetTotalStake(ctx, cosmosMath.ZeroInt()); err != nil { - return err + //DelegateStakeRemovalsByBlock []*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo + if len(data.DelegateStakeRemovalsByBlock) != 0 { + for _, blockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo := range data.DelegateStakeRemovalsByBlock { + if blockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo != nil { + if err := k.delegateStakeRemovalsByBlock.Set(ctx, + Join4( + blockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.BlockHeight, + blockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.TopicId, + blockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Delegator, + blockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Reputer, + ), + *blockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.DelegateStakeRemovalInfo); err != nil { + return errors.Wrap(err, "error setting delegateStakeRemovalsByBlock") + } + } + } } - // reserve topic ID 0 for future use - if _, err := k.IncrementTopicId(ctx); err != nil { - return err + //DelegateStakeRemovalsByActor []*DelegatorReputerTopicIdBlockHeight + if len(data.DelegateStakeRemovalsByActor) != 0 { + for _, delegatorReputerTopicIdBlockHeight := range data.DelegateStakeRemovalsByActor { + if delegatorReputerTopicIdBlockHeight != nil { + if err := k.delegateStakeRemovalsByActor.Set(ctx, + Join4( + delegatorReputerTopicIdBlockHeight.Delegator, + delegatorReputerTopicIdBlockHeight.Reputer, + delegatorReputerTopicIdBlockHeight.TopicId, + delegatorReputerTopicIdBlockHeight.BlockHeight)); err != nil { + return errors.Wrap(err, "error setting delegateStakeRemovalsByActor") + } + } + } + } + //Inferences []*TopicIdActorIdInference + if len(data.Inferences) != 0 { + for _, topicIdActorIdInference := range data.Inferences { + if topicIdActorIdInference != nil { + if err := k.inferences.Set(ctx, + collections.Join( + topicIdActorIdInference.TopicId, + topicIdActorIdInference.ActorId), + *topicIdActorIdInference.Inference); err != nil { + return errors.Wrap(err, "error setting inferences") + } + } + } } - // add core team to the whitelists - if err := k.addCoreTeamToWhitelists(ctx, data.CoreTeamAddresses); err != nil { - return err + // Forecasts []*TopicIdActorIdForecast + if len(data.Forecasts) != 0 { + for _, topicIdActorIdForecast := range data.Forecasts { + if topicIdActorIdForecast != nil { + if err := k.forecasts.Set(ctx, + collections.Join( + topicIdActorIdForecast.TopicId, + topicIdActorIdForecast.ActorId), + *topicIdActorIdForecast.Forecast); err != nil { + return errors.Wrap(err, "error setting forecasts") + } + } + } } - // For mint module inflation rate calculation set the initial - // "previous percentage of rewards that went to staked reputers" to 30% - if err := k.SetPreviousPercentageRewardToStakedReputers(ctx, alloraMath.MustNewDecFromString("0.3")); err != nil { - return err + // Workers []*LibP2PKeyAndOffchainNode + if len(data.Workers) != 0 { + for _, libP2PKeyAndOffchainNode := range data.Workers { + if libP2PKeyAndOffchainNode != nil { + if err := k.workers.Set( + ctx, + libP2PKeyAndOffchainNode.LibP2PKey, + *libP2PKeyAndOffchainNode.OffchainNode); err != nil { + return errors.Wrap(err, "error setting workers") + } + } + } } + // Reputers []*LibP2PKeyAndOffchainNode + if len(data.Reputers) != 0 { + for _, libP2PKeyAndOffchainNode := range data.Reputers { + if libP2PKeyAndOffchainNode != nil { + if err := k.reputers.Set( + ctx, + libP2PKeyAndOffchainNode.LibP2PKey, + *libP2PKeyAndOffchainNode.OffchainNode); err != nil { + return errors.Wrap(err, "error setting reputers") + } + } + } + + } + + // TopicFeeRevenue []*TopicIdAndInt + if len(data.TopicFeeRevenue) != 0 { + for _, topicIdAndInt := range data.TopicFeeRevenue { + if topicIdAndInt != nil { + if err := k.topicFeeRevenue.Set(ctx, topicIdAndInt.TopicId, topicIdAndInt.Int); err != nil { + return errors.Wrap(err, "error setting topicFeeRevenue") + } + } + } + } + // PreviousTopicWeight []*TopicIdAndDec + if len(data.PreviousTopicWeight) != 0 { + for _, topicIdAndDec := range data.PreviousTopicWeight { + if topicIdAndDec != nil { + if err := k.previousTopicWeight.Set( + ctx, + topicIdAndDec.TopicId, + topicIdAndDec.Dec); err != nil { + return errors.Wrap(err, "error setting previousTopicWeight") + } + } + } + } + + //AllInferences []*TopicIdBlockHeightInferences + if len(data.AllInferences) != 0 { + for _, topicIdBlockHeightInferences := range data.AllInferences { + if err := k.allInferences.Set(ctx, + collections.Join(topicIdBlockHeightInferences.TopicId, topicIdBlockHeightInferences.BlockHeight), + *topicIdBlockHeightInferences.Inferences); err != nil { + return errors.Wrap(err, "error setting allInferences") + } + } + } + //AllForecasts []*TopicIdBlockHeightForecasts + if len(data.AllForecasts) != 0 { + for _, topicIdBlockHeightForecasts := range data.AllForecasts { + if err := k.allForecasts.Set(ctx, + collections.Join(topicIdBlockHeightForecasts.TopicId, topicIdBlockHeightForecasts.BlockHeight), + *topicIdBlockHeightForecasts.Forecasts); err != nil { + return errors.Wrap(err, "error setting allForecasts") + } + } + } + //AllLossBundles []*TopicIdBlockHeightReputerValueBundles + if len(data.AllLossBundles) != 0 { + for _, topicIdBlockHeightReputerValueBundles := range data.AllLossBundles { + if err := k.allLossBundles.Set(ctx, + collections.Join(topicIdBlockHeightReputerValueBundles.TopicId, topicIdBlockHeightReputerValueBundles.BlockHeight), + *topicIdBlockHeightReputerValueBundles.ReputerValueBundles); err != nil { + return errors.Wrap(err, "error setting allLossBundles") + } + } + } + //NetworkLossBundles []*TopicIdBlockHeightValueBundles + if len(data.NetworkLossBundles) != 0 { + for _, topicIdBlockHeightValueBundles := range data.NetworkLossBundles { + if err := k.networkLossBundles.Set(ctx, + collections.Join(topicIdBlockHeightValueBundles.TopicId, topicIdBlockHeightValueBundles.BlockHeight), + *topicIdBlockHeightValueBundles.ValueBundle); err != nil { + return errors.Wrap(err, "error setting networkLossBundles") + } + } + } + //PreviousPercentageRewardToStakedReputers github_com_allora_network_allora_chain_math.Dec + if data.PreviousPercentageRewardToStakedReputers != alloraMath.ZeroDec() { + if err := k.SetPreviousPercentageRewardToStakedReputers(ctx, data.PreviousPercentageRewardToStakedReputers); err != nil { + return errors.Wrap(err, "error setting previousPercentageRewardToStakedReputers") + } + } else { + // For mint module inflation rate calculation set the initial + // "previous percentage of rewards that went to staked reputers" to 30% + if err := k.SetPreviousPercentageRewardToStakedReputers(ctx, alloraMath.MustNewDecFromString("0.3")); err != nil { + return errors.Wrap(err, "error setting previousPercentageRewardToStakedReputers to 0.3") + } + } + //UnfulfilledWorkerNonces []*TopicIdAndNonces + if len(data.UnfulfilledWorkerNonces) != 0 { + for _, topicIdAndNonces := range data.UnfulfilledWorkerNonces { + if err := k.unfulfilledWorkerNonces.Set(ctx, topicIdAndNonces.TopicId, *topicIdAndNonces.Nonces); err != nil { + return errors.Wrap(err, "error setting unfulfilledWorkerNonces") + } + } + } + //UnfulfilledReputerNonces []*TopicIdAndReputerRequestNonces + if len(data.UnfulfilledReputerNonces) != 0 { + for _, topicIdAndReputerRequestNonces := range data.UnfulfilledReputerNonces { + if err := k.unfulfilledReputerNonces.Set(ctx, topicIdAndReputerRequestNonces.TopicId, *topicIdAndReputerRequestNonces.ReputerRequestNonces); err != nil { + return errors.Wrap(err, "error setting unfulfilledReputerNonces") + } + } + } + //LatestInfererNetworkRegrets []*TopicIdActorIdTimeStampedValue + if len(data.LatestInfererNetworkRegrets) != 0 { + for _, topicIdActorIdTimeStampedValue := range data.LatestInfererNetworkRegrets { + if err := k.latestInfererNetworkRegrets.Set(ctx, + collections.Join(topicIdActorIdTimeStampedValue.TopicId, topicIdActorIdTimeStampedValue.ActorId), + *topicIdActorIdTimeStampedValue.TimestampedValue); err != nil { + return errors.Wrap(err, "error setting latestInfererNetworkRegrets") + } + } + } + // LatestNaiveInfererNetworkRegrets + if len(data.LatestNaiveInfererNetworkRegrets) != 0 { + for _, topicIdActorIdTimeStampedValue := range data.LatestNaiveInfererNetworkRegrets { + if err := k.latestNaiveInfererNetworkRegrets.Set(ctx, + collections.Join(topicIdActorIdTimeStampedValue.TopicId, topicIdActorIdTimeStampedValue.ActorId), + *topicIdActorIdTimeStampedValue.TimestampedValue); err != nil { + return errors.Wrap(err, "error setting latestNaiveInfererNetworkRegrets") + } + } + } + //LatestForecasterNetworkRegrets []*TopicIdActorIdTimeStampedValue + if len(data.LatestForecasterNetworkRegrets) != 0 { + for _, topicIdActorIdTimeStampedValue := range data.LatestForecasterNetworkRegrets { + if err := k.latestForecasterNetworkRegrets.Set(ctx, + collections.Join(topicIdActorIdTimeStampedValue.TopicId, topicIdActorIdTimeStampedValue.ActorId), + *topicIdActorIdTimeStampedValue.TimestampedValue); err != nil { + return errors.Wrap(err, "error setting latestForecasterNetworkRegrets") + } + } + } + // LatestOneOutInfererInfererNetworkRegrets + if len(data.LatestOneOutInfererInfererNetworkRegrets) != 0 { + for _, topicIdActorIdTimeStampedValue := range data.LatestOneOutInfererInfererNetworkRegrets { + if err := k.latestOneOutInfererInfererNetworkRegrets.Set(ctx, + collections.Join3( + topicIdActorIdTimeStampedValue.TopicId, + topicIdActorIdTimeStampedValue.ActorId1, + topicIdActorIdTimeStampedValue.ActorId2, + ), + *topicIdActorIdTimeStampedValue.TimestampedValue); err != nil { + return errors.Wrap(err, "error setting latestOneOutInfererInfererNetworkRegrets") + } + } + } + // LatestOneOutInfererForecasterNetworkRegrets + if len(data.LatestOneOutInfererForecasterNetworkRegrets) != 0 { + for _, topicIdActorIdTimeStampedValue := range data.LatestOneOutInfererForecasterNetworkRegrets { + if err := k.latestOneOutInfererForecasterNetworkRegrets.Set(ctx, + collections.Join3( + topicIdActorIdTimeStampedValue.TopicId, + topicIdActorIdTimeStampedValue.ActorId1, + topicIdActorIdTimeStampedValue.ActorId2, + ), + *topicIdActorIdTimeStampedValue.TimestampedValue); err != nil { + return errors.Wrap(err, "error setting latestOneOutInfererForecasterNetworkRegrets") + } + } + } + // LatestOneOutForecasterInfererNetworkRegrets + if len(data.LatestOneOutForecasterInfererNetworkRegrets) != 0 { + for _, topicIdActorIdTimeStampedValue := range data.LatestOneOutForecasterInfererNetworkRegrets { + if err := k.latestOneOutForecasterInfererNetworkRegrets.Set(ctx, + collections.Join3( + topicIdActorIdTimeStampedValue.TopicId, + topicIdActorIdTimeStampedValue.ActorId1, + topicIdActorIdTimeStampedValue.ActorId2, + ), + *topicIdActorIdTimeStampedValue.TimestampedValue); err != nil { + return errors.Wrap(err, "error setting latestOneOutForecasterInfererNetworkRegrets") + } + } + } + // LatestOneOutForecasterForecasterNetworkRegrets + if len(data.LatestOneOutForecasterForecasterNetworkRegrets) != 0 { + for _, topicIdActorIdTimeStampedValue := range data.LatestOneOutForecasterForecasterNetworkRegrets { + if err := k.latestOneOutForecasterForecasterNetworkRegrets.Set(ctx, + collections.Join3( + topicIdActorIdTimeStampedValue.TopicId, + topicIdActorIdTimeStampedValue.ActorId1, + topicIdActorIdTimeStampedValue.ActorId2, + ), + *topicIdActorIdTimeStampedValue.TimestampedValue); err != nil { + return errors.Wrap(err, "error setting latestOneOutForecasterForecasterNetworkRegrets") + } + } + } + //LatestOneInForecasterNetworkRegrets []*TopicIdActorIdActorIdTimeStampedValue + if len(data.LatestOneInForecasterNetworkRegrets) != 0 { + for _, topicIdActorIdActorIdTimeStampedValue := range data.LatestOneInForecasterNetworkRegrets { + if err := k.latestOneInForecasterNetworkRegrets.Set(ctx, + collections.Join3( + topicIdActorIdActorIdTimeStampedValue.TopicId, + topicIdActorIdActorIdTimeStampedValue.ActorId1, + topicIdActorIdActorIdTimeStampedValue.ActorId2), + *topicIdActorIdActorIdTimeStampedValue.TimestampedValue); err != nil { + return errors.Wrap(err, "error setting latestOneInForecasterNetworkRegrets") + } + } + } + // PreviousForecasterScoreRatio + if len(data.PreviousForecasterScoreRatio) != 0 { + for _, topicIdDec := range data.PreviousForecasterScoreRatio { + if err := k.previousForecasterScoreRatio.Set(ctx, topicIdDec.TopicId, topicIdDec.Dec); err != nil { + return errors.Wrap(err, "error setting previousForecasterScoreRatio") + } + } + } + //CoreTeamAddresses []string + if len(data.CoreTeamAddresses) != 0 { + // make sure what we are storage isn't garbage + for _, address := range data.CoreTeamAddresses { + _, err := sdk.AccAddressFromBech32(address) + if err != nil { + return errors.Wrap(err, "error converting core team address from bech32") + } + } + if err := k.addCoreTeamToWhitelists(ctx, data.CoreTeamAddresses); err != nil { + return errors.Wrap(err, "error adding core team addresses to whitelists") + } + } + //TopicLastWorkerCommit []*TopicIdTimestampedActorNonce + if len(data.TopicLastWorkerCommit) != 0 { + for _, topicIdTimestampedActorNonce := range data.TopicLastWorkerCommit { + if err := k.topicLastWorkerCommit.Set(ctx, + topicIdTimestampedActorNonce.TopicId, + *topicIdTimestampedActorNonce.TimestampedActorNonce); err != nil { + return errors.Wrap(err, "error setting topicLastWorkerCommit") + } + } + } + //TopicLastReputerCommit []*TopicIdTimestampedActorNonce + if len(data.TopicLastReputerCommit) != 0 { + for _, topicIdTimestampedActorNonce := range data.TopicLastReputerCommit { + if err := k.topicLastReputerCommit.Set(ctx, + topicIdTimestampedActorNonce.TopicId, + *topicIdTimestampedActorNonce.TimestampedActorNonce); err != nil { + return errors.Wrap(err, "error setting topicLastReputerCommit") + } + } + } return nil } @@ -46,11 +664,979 @@ func (k *Keeper) InitGenesis(ctx context.Context, data *types.GenesisState) erro func (k *Keeper) ExportGenesis(ctx context.Context) (*types.GenesisState, error) { moduleParams, err := k.GetParams(ctx) if err != nil { - return nil, err + return nil, errors.Wrap(err, "failed to get module params") + } + + nextTopicId, err := k.nextTopicId.Peek(ctx) + if err != nil { + return nil, errors.Wrap(err, "failed to get next topic ID") + } + + topicsIter, err := k.topics.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate topics") + } + topics := make([]*types.TopicIdAndTopic, 0) + for ; topicsIter.Valid(); topicsIter.Next() { + keyValue, err := topicsIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: topicsIter") + } + value := keyValue.Value + topic := types.TopicIdAndTopic{ + TopicId: keyValue.Key, + Topic: &value, + } + topics = append(topics, &topic) + } + + activeTopics := make([]uint64, 0) + activeTopicsIter, err := k.activeTopics.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate active topics") + } + for ; activeTopicsIter.Valid(); activeTopicsIter.Next() { + key, err := activeTopicsIter.Key() + if err != nil { + return nil, errors.Wrap(err, "failed to get key: activeTopicsIter") + } + activeTopics = append(activeTopics, key) + } + + rewardableTopics := make([]uint64, 0) + rewardableTopicsIter, err := k.rewardableTopics.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate rewardable topics") + } + for ; rewardableTopicsIter.Valid(); rewardableTopicsIter.Next() { + key, err := rewardableTopicsIter.Key() + if err != nil { + return nil, errors.Wrap(err, "failed to get key: rewardableTopicsIter") + } + rewardableTopics = append(rewardableTopics, key) + } + + topicWorkers := make([]*types.TopicAndActorId, 0) + topicWorkersIter, err := k.topicWorkers.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate topic workers") + } + for ; topicWorkersIter.Valid(); topicWorkersIter.Next() { + key, err := topicWorkersIter.Key() + if err != nil { + return nil, errors.Wrap(err, "failed to get key: topicWorkersIter") + } + topicIdAndActorId := types.TopicAndActorId{ + TopicId: key.K1(), + ActorId: key.K2(), + } + topicWorkers = append(topicWorkers, &topicIdAndActorId) + } + + topicReputers := make([]*types.TopicAndActorId, 0) + topicReputersIter, err := k.topicReputers.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate topic reputers") + } + for ; topicReputersIter.Valid(); topicReputersIter.Next() { + key, err := topicReputersIter.Key() + if err != nil { + return nil, errors.Wrap(err, "failed to get key: topicReputersIter") + } + topicIdAndActorId := types.TopicAndActorId{ + TopicId: key.K1(), + ActorId: key.K2(), + } + topicReputers = append(topicReputers, &topicIdAndActorId) + } + + topicRewardNonce := make([]*types.TopicIdAndBlockHeight, 0) + topicRewardNonceIter, err := k.topicRewardNonce.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate topic reward nonce") + } + for ; topicRewardNonceIter.Valid(); topicRewardNonceIter.Next() { + keyValue, err := topicRewardNonceIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: topicRewardNonceIter") + } + topicIdAndBlockHeight := types.TopicIdAndBlockHeight{ + TopicId: keyValue.Key, + BlockHeight: keyValue.Value, + } + topicRewardNonce = append(topicRewardNonce, &topicIdAndBlockHeight) + } + + infererScoresByBlock := make([]*types.TopicIdBlockHeightScores, 0) + infererScoresByBlockIter, err := k.infererScoresByBlock.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate inferer scores by block") + } + for ; infererScoresByBlockIter.Valid(); infererScoresByBlockIter.Next() { + keyValue, err := infererScoresByBlockIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: infererScoresByBlockIter") + } + value := keyValue.Value + topicIdBlockHeightScores := types.TopicIdBlockHeightScores{ + TopicId: keyValue.Key.K1(), + BlockHeight: keyValue.Key.K2(), + Scores: &value, + } + infererScoresByBlock = append(infererScoresByBlock, &topicIdBlockHeightScores) + } + + forecasterScoresByBlock := make([]*types.TopicIdBlockHeightScores, 0) + forecasterScoresByBlockIter, err := k.forecasterScoresByBlock.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate forecaster scores by block") + } + for ; forecasterScoresByBlockIter.Valid(); forecasterScoresByBlockIter.Next() { + keyValue, err := forecasterScoresByBlockIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: forecasterScoresByBlockIter") + } + value := keyValue.Value + topicIdBlockHeightScores := types.TopicIdBlockHeightScores{ + TopicId: keyValue.Key.K1(), + BlockHeight: keyValue.Key.K2(), + Scores: &value, + } + forecasterScoresByBlock = append(forecasterScoresByBlock, &topicIdBlockHeightScores) + } + + reputerScoresByBlock := make([]*types.TopicIdBlockHeightScores, 0) + reputerScoresByBlockIter, err := k.reputerScoresByBlock.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate reputer scores by block") + } + for ; reputerScoresByBlockIter.Valid(); reputerScoresByBlockIter.Next() { + keyValue, err := reputerScoresByBlockIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: reputerScoresByBlockIter") + } + value := keyValue.Value + topicIdBlockHeightScores := types.TopicIdBlockHeightScores{ + TopicId: keyValue.Key.K1(), + BlockHeight: keyValue.Key.K2(), + Scores: &value, + } + reputerScoresByBlock = append(reputerScoresByBlock, &topicIdBlockHeightScores) + } + + latestInfererScoresByWorker := make([]*types.TopicIdActorIdScore, 0) + latestInfererScoresByWorkerIter, err := k.latestInfererScoresByWorker.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate latest inferer scores by worker") + } + for ; latestInfererScoresByWorkerIter.Valid(); latestInfererScoresByWorkerIter.Next() { + keyValue, err := latestInfererScoresByWorkerIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: latestInfererScoresByWorkerIter") + } + value := keyValue.Value + topicIdActorIdScore := types.TopicIdActorIdScore{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + Score: &value, + } + latestInfererScoresByWorker = append(latestInfererScoresByWorker, &topicIdActorIdScore) + } + + latestForecasterScoresByWorker := make([]*types.TopicIdActorIdScore, 0) + latestForecasterScoresByWorkerIter, err := k.latestForecasterScoresByWorker.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate latest forecaster scores by worker") + } + for ; latestForecasterScoresByWorkerIter.Valid(); latestForecasterScoresByWorkerIter.Next() { + keyValue, err := latestForecasterScoresByWorkerIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: latestForecasterScoresByWorkerIter") + } + value := keyValue.Value + topicIdActorIdScore := types.TopicIdActorIdScore{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + Score: &value, + } + latestForecasterScoresByWorker = append(latestForecasterScoresByWorker, &topicIdActorIdScore) + } + + latestReputerScoresByReputer := make([]*types.TopicIdActorIdScore, 0) + latestReputerScoresByReputerIter, err := k.latestReputerScoresByReputer.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate latest reputer scores by reputer") + } + for ; latestReputerScoresByReputerIter.Valid(); latestReputerScoresByReputerIter.Next() { + keyValue, err := latestReputerScoresByReputerIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: latestReputerScoresByReputerIter") + } + value := keyValue.Value + topicIdActorIdScore := types.TopicIdActorIdScore{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + Score: &value, + } + latestReputerScoresByReputer = append(latestReputerScoresByReputer, &topicIdActorIdScore) + } + + reputerListeningCoefficient := make([]*types.TopicIdActorIdListeningCoefficient, 0) + reputerListeningCoefficientIter, err := k.reputerListeningCoefficient.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate reputer listening coefficient") + } + for ; reputerListeningCoefficientIter.Valid(); reputerListeningCoefficientIter.Next() { + keyValue, err := reputerListeningCoefficientIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: reputerListeningCoefficientIter") + } + value := keyValue.Value + topicIdActorIdListeningCoefficient := types.TopicIdActorIdListeningCoefficient{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + ListeningCoefficient: &value, + } + reputerListeningCoefficient = append(reputerListeningCoefficient, &topicIdActorIdListeningCoefficient) + } + + previousReputerRewardFraction := make([]*types.TopicIdActorIdDec, 0) + previousReputerRewardFractionIter, err := k.previousReputerRewardFraction.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate previous reputer reward fraction") + } + for ; previousReputerRewardFractionIter.Valid(); previousReputerRewardFractionIter.Next() { + keyValue, err := previousReputerRewardFractionIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: previousReputerRewardFractionIter") + } + topicIdActorIdDec := types.TopicIdActorIdDec{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + Dec: keyValue.Value, + } + previousReputerRewardFraction = append(previousReputerRewardFraction, &topicIdActorIdDec) + } + + previousInferenceRewardFraction := make([]*types.TopicIdActorIdDec, 0) + previousInferenceRewardFractionIter, err := k.previousInferenceRewardFraction.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate previous inference reward fraction") + } + for ; previousInferenceRewardFractionIter.Valid(); previousInferenceRewardFractionIter.Next() { + keyValue, err := previousInferenceRewardFractionIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: previousInferenceRewardFractionIter") + } + topicIdActorIdDec := types.TopicIdActorIdDec{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + Dec: keyValue.Value, + } + previousInferenceRewardFraction = append(previousInferenceRewardFraction, &topicIdActorIdDec) + } + + previousForecastRewardFraction := make([]*types.TopicIdActorIdDec, 0) + previousForecastRewardFractionIter, err := k.previousForecastRewardFraction.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate previous forecast reward fraction") + } + for ; previousForecastRewardFractionIter.Valid(); previousForecastRewardFractionIter.Next() { + keyValue, err := previousForecastRewardFractionIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: previousForecastRewardFractionIter") + } + topicIdActorIdDec := types.TopicIdActorIdDec{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + Dec: keyValue.Value, + } + previousForecastRewardFraction = append(previousForecastRewardFraction, &topicIdActorIdDec) + } + + totalStake, err := k.totalStake.Get(ctx) + if err != nil { + return nil, errors.Wrap(err, "failed to get total stake") + } + + // Fill in the values from keeper.go + + // topicStake + topicStake := make([]*types.TopicIdAndInt, 0) + var i uint64 + for i = 1; i < nextTopicId; i++ { + stake, err := k.topicStake.Get(ctx, i) + if err != nil { + return nil, errors.Wrapf(err, "failed to get topic stake %d", i) + } + topicStake = append(topicStake, &types.TopicIdAndInt{ + TopicId: i, + Int: stake, + }) + } + + // stakeReputerAuthority + stakeReputerAuthority := make([]*types.TopicIdActorIdInt, 0) + stakeReputerAuthorityIter, err := k.stakeReputerAuthority.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate stake reputer authority") + } + for ; stakeReputerAuthorityIter.Valid(); stakeReputerAuthorityIter.Next() { + keyValue, err := stakeReputerAuthorityIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: stakeReputerAuthorityIter") + } + topicIdActorIdInt := types.TopicIdActorIdInt{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + Int: keyValue.Value, + } + stakeReputerAuthority = append(stakeReputerAuthority, &topicIdActorIdInt) + } + + // stakeSumFromDelegator + stakeSumFromDelegator := make([]*types.TopicIdActorIdInt, 0) + stakeSumFromDelegatorIter, err := k.stakeSumFromDelegator.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate stake sum from delegator") + } + for ; stakeSumFromDelegatorIter.Valid(); stakeSumFromDelegatorIter.Next() { + keyValue, err := stakeSumFromDelegatorIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: stakeSumFromDelegatorIter") + } + topicIdActorIdInt := types.TopicIdActorIdInt{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + Int: keyValue.Value, + } + stakeSumFromDelegator = append(stakeSumFromDelegator, &topicIdActorIdInt) + } + + // delegatedStakes + delegatedStakes := make([]*types.TopicIdDelegatorReputerDelegatorInfo, 0) + delegatedStakesIter, err := k.delegatedStakes.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate delegated stakes") + } + for ; delegatedStakesIter.Valid(); delegatedStakesIter.Next() { + keyValue, err := delegatedStakesIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: delegatedStakesIter") + } + value := keyValue.Value + topicIdDelegatorReputerDelegatorInfo := types.TopicIdDelegatorReputerDelegatorInfo{ + TopicId: keyValue.Key.K1(), + Delegator: keyValue.Key.K2(), + Reputer: keyValue.Key.K3(), + DelegatorInfo: &value, + } + delegatedStakes = append(delegatedStakes, &topicIdDelegatorReputerDelegatorInfo) + } + + // stakeFromDelegatorsUponReputer + stakeFromDelegatorsUponReputer := make([]*types.TopicIdActorIdInt, 0) + stakeFromDelegatorsUponReputerIter, err := k.stakeFromDelegatorsUponReputer.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate stake from delegators upon reputer") + } + for ; stakeFromDelegatorsUponReputerIter.Valid(); stakeFromDelegatorsUponReputerIter.Next() { + keyValue, err := stakeFromDelegatorsUponReputerIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: stakeFromDelegatorsUponReputerIter") + } + topicIdActorIdInt := types.TopicIdActorIdInt{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + Int: keyValue.Value, + } + stakeFromDelegatorsUponReputer = append(stakeFromDelegatorsUponReputer, &topicIdActorIdInt) + } + + // delegateRewardPerShare + delegateRewardPerShare := make([]*types.TopicIdActorIdDec, 0) + delegateRewardPerShareIter, err := k.delegateRewardPerShare.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate delegate reward per share") + } + for ; delegateRewardPerShareIter.Valid(); delegateRewardPerShareIter.Next() { + keyValue, err := delegateRewardPerShareIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: delegateRewardPerShareIter") + } + topicIdActorIdDec := types.TopicIdActorIdDec{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + Dec: keyValue.Value, + } + delegateRewardPerShare = append(delegateRewardPerShare, &topicIdActorIdDec) + } + + // stakeRemovalsByBlock + stakeRemovalsByBlock := make([]*types.BlockHeightTopicIdReputerStakeRemovalInfo, 0) + stakeRemovalsByBlockIter, err := k.stakeRemovalsByBlock.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate stake removals by block") + } + for ; stakeRemovalsByBlockIter.Valid(); stakeRemovalsByBlockIter.Next() { + keyValue, err := stakeRemovalsByBlockIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: stakeRemovalsByBlockIter") + } + value := keyValue.Value + blockHeightTopicIdReputerStakeRemovalInfo := types.BlockHeightTopicIdReputerStakeRemovalInfo{ + BlockHeight: keyValue.Key.K1(), + TopicId: keyValue.Key.K2(), + StakeRemovalInfo: &value, + } + stakeRemovalsByBlock = append(stakeRemovalsByBlock, &blockHeightTopicIdReputerStakeRemovalInfo) + } + + // stakeRemovalsByActor + stakeRemovalsByActor := make([]*types.ActorIdTopicIdBlockHeight, 0) + stakeRemovalsByActorIter, err := k.stakeRemovalsByActor.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate stake removals by actor") + } + for ; stakeRemovalsByActorIter.Valid(); stakeRemovalsByActorIter.Next() { + key, err := stakeRemovalsByActorIter.Key() + if err != nil { + return nil, errors.Wrap(err, "failed to get key: stakeRemovalsByActorIter") + } + actorIdTopicIdBlockHeight := types.ActorIdTopicIdBlockHeight{ + ActorId: key.K1(), + TopicId: key.K2(), + BlockHeight: key.K3(), + } + stakeRemovalsByActor = append(stakeRemovalsByActor, &actorIdTopicIdBlockHeight) + } + + // delegateStakeRemovalsByBlock + delegateStakeRemovalsByBlock := make([]*types.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo, 0) + delegateStakeRemovalsByBlockIter, err := k.delegateStakeRemovalsByBlock.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate delegate stake removals by block") + } + for ; delegateStakeRemovalsByBlockIter.Valid(); delegateStakeRemovalsByBlockIter.Next() { + keyValue, err := delegateStakeRemovalsByBlockIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: delegateStakeRemovalsByBlockIter") + } + value := keyValue.Value + blockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo := types.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo{ + BlockHeight: keyValue.Key.K1(), + TopicId: keyValue.Key.K2(), + DelegateStakeRemovalInfo: &value, + } + delegateStakeRemovalsByBlock = append(delegateStakeRemovalsByBlock, &blockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) + } + + // delegateStakeRemovalsByActor + delegateStakeRemovalsByActor := make([]*types.DelegatorReputerTopicIdBlockHeight, 0) + delegateStakeRemovalsByActorIter, err := k.delegateStakeRemovalsByActor.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate delegate stake removals by actor") + } + for ; delegateStakeRemovalsByActorIter.Valid(); delegateStakeRemovalsByActorIter.Next() { + key, err := delegateStakeRemovalsByActorIter.Key() + if err != nil { + return nil, errors.Wrap(err, "failed to get key: delegateStakeRemovalsByActorIter") + } + delegatorReputerTopicIdBlockHeight := types.DelegatorReputerTopicIdBlockHeight{ + Delegator: key.K1(), + Reputer: key.K2(), + TopicId: key.K3(), + BlockHeight: key.K4(), + } + delegateStakeRemovalsByActor = append(delegateStakeRemovalsByActor, &delegatorReputerTopicIdBlockHeight) + } + + // inferences + inferences := make([]*types.TopicIdActorIdInference, 0) + inferencesIter, err := k.inferences.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate inferences") + } + for ; inferencesIter.Valid(); inferencesIter.Next() { + keyValue, err := inferencesIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: inferencesIter") + } + value := keyValue.Value + topicIdActorIdInference := types.TopicIdActorIdInference{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + Inference: &value, + } + inferences = append(inferences, &topicIdActorIdInference) + } + + // forecasts + forecasts := make([]*types.TopicIdActorIdForecast, 0) + forecastsIter, err := k.forecasts.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate forecasts") + } + for ; forecastsIter.Valid(); forecastsIter.Next() { + keyValue, err := forecastsIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: forecastsIter") + } + value := keyValue.Value + topicIdActorIdForecast := types.TopicIdActorIdForecast{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + Forecast: &value, + } + forecasts = append(forecasts, &topicIdActorIdForecast) + } + + // workers + workers := make([]*types.LibP2PKeyAndOffchainNode, 0) + workersIter, err := k.workers.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate workers") + } + for ; workersIter.Valid(); workersIter.Next() { + keyValue, err := workersIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: workersIter") + } + value := keyValue.Value + libP2PKeyAndOffchainNode := types.LibP2PKeyAndOffchainNode{ + LibP2PKey: keyValue.Key, + OffchainNode: &value, + } + workers = append(workers, &libP2PKeyAndOffchainNode) + } + + // reputers + reputers := make([]*types.LibP2PKeyAndOffchainNode, 0) + reputersIter, err := k.reputers.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate reputers") + } + for ; reputersIter.Valid(); reputersIter.Next() { + keyValue, err := reputersIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: reputersIter") + } + libP2PKeyAndOffchainNode := types.LibP2PKeyAndOffchainNode{ + LibP2PKey: keyValue.Key, + OffchainNode: &keyValue.Value, + } + reputers = append(reputers, &libP2PKeyAndOffchainNode) + } + + // topicFeeRevenue + topicFeeRevenue := make([]*types.TopicIdAndInt, 0) + topicFeeRevenueIter, err := k.topicFeeRevenue.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate topic fee revenue") + } + for ; topicFeeRevenueIter.Valid(); topicFeeRevenueIter.Next() { + keyValue, err := topicFeeRevenueIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: topicFeeRevenueIter") + } + topicIdAndInt := types.TopicIdAndInt{ + TopicId: keyValue.Key, + Int: keyValue.Value, + } + topicFeeRevenue = append(topicFeeRevenue, &topicIdAndInt) + } + + // previousTopicWeight + previousTopicWeight := make([]*types.TopicIdAndDec, 0) + previousTopicWeightIter, err := k.previousTopicWeight.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate previous topic weight") + } + for ; previousTopicWeightIter.Valid(); previousTopicWeightIter.Next() { + keyValue, err := previousTopicWeightIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: previousTopicWeightIter") + } + topicIdAndDec := types.TopicIdAndDec{ + TopicId: keyValue.Key, + Dec: keyValue.Value, + } + previousTopicWeight = append(previousTopicWeight, &topicIdAndDec) + } + + // allInferences + allInferences := make([]*types.TopicIdBlockHeightInferences, 0) + allInferencesIter, err := k.allInferences.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate all inferences") + } + for ; allInferencesIter.Valid(); allInferencesIter.Next() { + keyValue, err := allInferencesIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: allInferencesIter") + } + value := keyValue.Value + topicIdBlockHeightInferences := types.TopicIdBlockHeightInferences{ + TopicId: keyValue.Key.K1(), + BlockHeight: keyValue.Key.K2(), + Inferences: &value, + } + allInferences = append(allInferences, &topicIdBlockHeightInferences) + } + + // allForecasts + allForecasts := make([]*types.TopicIdBlockHeightForecasts, 0) + allForecastsIter, err := k.allForecasts.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate all forecasts") + } + for ; allForecastsIter.Valid(); allForecastsIter.Next() { + keyValue, err := allForecastsIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: allForecastsIter") + } + value := keyValue.Value + topicIdBlockHeightForecasts := types.TopicIdBlockHeightForecasts{ + TopicId: keyValue.Key.K1(), + BlockHeight: keyValue.Key.K2(), + Forecasts: &value, + } + allForecasts = append(allForecasts, &topicIdBlockHeightForecasts) + } + + // allLossBundles + allLossBundles := make([]*types.TopicIdBlockHeightReputerValueBundles, 0) + allLossBundlesIter, err := k.allLossBundles.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate all loss bundles") + } + for ; allLossBundlesIter.Valid(); allLossBundlesIter.Next() { + keyValue, err := allLossBundlesIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: allLossBundlesIter") + } + value := keyValue.Value + topicIdBlockHeightValueBundles := types.TopicIdBlockHeightReputerValueBundles{ + TopicId: keyValue.Key.K1(), + BlockHeight: keyValue.Key.K2(), + ReputerValueBundles: &value, + } + allLossBundles = append(allLossBundles, &topicIdBlockHeightValueBundles) + } + + // networkLossBundles + networkLossBundles := make([]*types.TopicIdBlockHeightValueBundles, 0) + networkLossBundlesIter, err := k.networkLossBundles.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate network loss bundles") + } + for ; networkLossBundlesIter.Valid(); networkLossBundlesIter.Next() { + keyValue, err := networkLossBundlesIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: networkLossBundlesIter") + } + value := keyValue.Value + topicIdBlockHeightValueBundles := types.TopicIdBlockHeightValueBundles{ + TopicId: keyValue.Key.K1(), + BlockHeight: keyValue.Key.K2(), + ValueBundle: &value, + } + networkLossBundles = append(networkLossBundles, &topicIdBlockHeightValueBundles) + } + + // previousPercentageRewardToStakedReputers + previousPercentageRewardToStakedReputers, err := k.previousPercentageRewardToStakedReputers.Get(ctx) + if err != nil { + return nil, errors.Wrap(err, "failed to get previous percentage reward to staked reputers") + } + + // unfulfilledWorkerNonces + unfulfilledWorkerNonces := make([]*types.TopicIdAndNonces, 0) + unfulfilledWorkerNoncesIter, err := k.unfulfilledWorkerNonces.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate unfulfilled worker nonces") + } + for ; unfulfilledWorkerNoncesIter.Valid(); unfulfilledWorkerNoncesIter.Next() { + keyValue, err := unfulfilledWorkerNoncesIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: unfulfilledWorkerNoncesIter") + } + topicIdAndNonces := types.TopicIdAndNonces{ + TopicId: keyValue.Key, + Nonces: &keyValue.Value, + } + unfulfilledWorkerNonces = append(unfulfilledWorkerNonces, &topicIdAndNonces) + } + + // unfulfilledReputerNonces + unfulfilledReputerNonces := make([]*types.TopicIdAndReputerRequestNonces, 0) + unfulfilledReputerNoncesIter, err := k.unfulfilledReputerNonces.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate unfulfilled reputer nonces") + } + for ; unfulfilledReputerNoncesIter.Valid(); unfulfilledReputerNoncesIter.Next() { + keyValue, err := unfulfilledReputerNoncesIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: unfulfilledReputerNoncesIter") + } + value := keyValue.Value + topicIdAndReputerRequestNonces := types.TopicIdAndReputerRequestNonces{ + TopicId: keyValue.Key, + ReputerRequestNonces: &value, + } + unfulfilledReputerNonces = append(unfulfilledReputerNonces, &topicIdAndReputerRequestNonces) + } + + latestInfererNetworkRegrets := make([]*types.TopicIdActorIdTimeStampedValue, 0) + latestInfererNetworkRegretsIter, err := k.latestInfererNetworkRegrets.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate latest inferer network regrets") + } + for ; latestInfererNetworkRegretsIter.Valid(); latestInfererNetworkRegretsIter.Next() { + keyValue, err := latestInfererNetworkRegretsIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: latestInfererNetworkRegretsIter") + } + topicIdActorIdTimeStampedValue := types.TopicIdActorIdTimeStampedValue{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + TimestampedValue: &keyValue.Value, + } + latestInfererNetworkRegrets = append(latestInfererNetworkRegrets, &topicIdActorIdTimeStampedValue) + } + + latestNaiveInfererNetworkRegrets := make([]*types.TopicIdActorIdTimeStampedValue, 0) + latestNaiveInfererNetworkRegretsIter, err := k.latestNaiveInfererNetworkRegrets.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate latest naive inferer network regrets") + } + for ; latestNaiveInfererNetworkRegretsIter.Valid(); latestNaiveInfererNetworkRegretsIter.Next() { + keyValue, err := latestNaiveInfererNetworkRegretsIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: latestNaiveInfererNetworkRegretsIter") + } + topicIdActorIdTimeStampedValue := types.TopicIdActorIdTimeStampedValue{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + TimestampedValue: &keyValue.Value, + } + latestNaiveInfererNetworkRegrets = append(latestNaiveInfererNetworkRegrets, &topicIdActorIdTimeStampedValue) + } + + latestForecasterNetworkRegrets := make([]*types.TopicIdActorIdTimeStampedValue, 0) + latestForecasterNetworkRegretsIter, err := k.latestForecasterNetworkRegrets.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate latest forecaster network regrets") + } + for ; latestForecasterNetworkRegretsIter.Valid(); latestForecasterNetworkRegretsIter.Next() { + keyValue, err := latestForecasterNetworkRegretsIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: latestForecasterNetworkRegretsIter") + } + topicIdActorIdTimeStampedValue := types.TopicIdActorIdTimeStampedValue{ + TopicId: keyValue.Key.K1(), + ActorId: keyValue.Key.K2(), + TimestampedValue: &keyValue.Value, + } + latestForecasterNetworkRegrets = append(latestForecasterNetworkRegrets, &topicIdActorIdTimeStampedValue) + } + + latestOneOutInfererInfererNetworkRegrets := make([]*types.TopicIdActorIdActorIdTimeStampedValue, 0) + latestOneOutInfererInfererNetworkRegretsIter, err := k.latestOneOutInfererInfererNetworkRegrets.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate latest one out inferer inferer network regrets") + } + for ; latestOneOutInfererInfererNetworkRegretsIter.Valid(); latestOneOutInfererInfererNetworkRegretsIter.Next() { + keyValue, err := latestOneOutInfererInfererNetworkRegretsIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: latestOneOutInfererInfererNetworkRegretsIter") + } + topicIdActorIdTimeStampedValue := types.TopicIdActorIdActorIdTimeStampedValue{ + TopicId: keyValue.Key.K1(), + ActorId1: keyValue.Key.K2(), + ActorId2: keyValue.Key.K3(), + TimestampedValue: &keyValue.Value, + } + latestOneOutInfererInfererNetworkRegrets = append(latestOneOutInfererInfererNetworkRegrets, &topicIdActorIdTimeStampedValue) + } + + latestOneOutInfererForecasterNetworkRegrets := make([]*types.TopicIdActorIdActorIdTimeStampedValue, 0) + latestOneOutInfererForecasterNetworkRegretsIter, err := k.latestOneOutInfererForecasterNetworkRegrets.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate latest one out inferer forecaster network regrets") + } + for ; latestOneOutInfererForecasterNetworkRegretsIter.Valid(); latestOneOutInfererForecasterNetworkRegretsIter.Next() { + keyValue, err := latestOneOutInfererForecasterNetworkRegretsIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: latestOneOutInfererForecasterNetworkRegretsIter") + } + topicIdActorIdTimeStampedValue := types.TopicIdActorIdActorIdTimeStampedValue{ + TopicId: keyValue.Key.K1(), + ActorId1: keyValue.Key.K2(), + ActorId2: keyValue.Key.K3(), + TimestampedValue: &keyValue.Value, + } + latestOneOutInfererForecasterNetworkRegrets = append(latestOneOutInfererForecasterNetworkRegrets, &topicIdActorIdTimeStampedValue) + } + + latestOneOutForecasterInfererNetworkRegrets := make([]*types.TopicIdActorIdActorIdTimeStampedValue, 0) + latestOneOutForecasterInfererNetworkRegretsIter, err := k.latestOneOutForecasterInfererNetworkRegrets.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate latest one out forecaster inferer network regrets") + } + for ; latestOneOutForecasterInfererNetworkRegretsIter.Valid(); latestOneOutForecasterInfererNetworkRegretsIter.Next() { + keyValue, err := latestOneOutForecasterInfererNetworkRegretsIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: latestOneOutForecasterInfererNetworkRegretsIter") + } + topicIdActorIdTimeStampedValue := types.TopicIdActorIdActorIdTimeStampedValue{ + TopicId: keyValue.Key.K1(), + ActorId1: keyValue.Key.K2(), + ActorId2: keyValue.Key.K3(), + TimestampedValue: &keyValue.Value, + } + latestOneOutForecasterInfererNetworkRegrets = append(latestOneOutForecasterInfererNetworkRegrets, &topicIdActorIdTimeStampedValue) + } + + latestOneOutForecasterForecasterNetworkRegrets := make([]*types.TopicIdActorIdActorIdTimeStampedValue, 0) + latestOneOutForecasterForecasterNetworkRegretsIter, err := k.latestOneOutForecasterForecasterNetworkRegrets.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate latest one out forecaster forecaster network regrets") + } + for ; latestOneOutForecasterForecasterNetworkRegretsIter.Valid(); latestOneOutForecasterForecasterNetworkRegretsIter.Next() { + keyValue, err := latestOneOutForecasterForecasterNetworkRegretsIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: latestOneOutForecasterForecasterNetworkRegretsIter") + } + topicIdActorIdTimeStampedValue := types.TopicIdActorIdActorIdTimeStampedValue{ + TopicId: keyValue.Key.K1(), + ActorId1: keyValue.Key.K2(), + ActorId2: keyValue.Key.K3(), + TimestampedValue: &keyValue.Value, + } + latestOneOutForecasterForecasterNetworkRegrets = append(latestOneOutForecasterForecasterNetworkRegrets, &topicIdActorIdTimeStampedValue) + } + + latestOneInForecasterNetworkRegrets := make([]*types.TopicIdActorIdActorIdTimeStampedValue, 0) + latestOneInForecasterNetworkRegretsIter, err := k.latestOneInForecasterNetworkRegrets.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate latest one in forecaster network regrets") + } + for ; latestOneInForecasterNetworkRegretsIter.Valid(); latestOneInForecasterNetworkRegretsIter.Next() { + keyValue, err := latestOneInForecasterNetworkRegretsIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: latestOneInForecasterNetworkRegretsIter") + } + topicIdActorIdActorIdTimeStampedValue := types.TopicIdActorIdActorIdTimeStampedValue{ + TopicId: keyValue.Key.K1(), + ActorId1: keyValue.Key.K2(), + ActorId2: keyValue.Key.K3(), + TimestampedValue: &keyValue.Value, + } + latestOneInForecasterNetworkRegrets = append(latestOneInForecasterNetworkRegrets, &topicIdActorIdActorIdTimeStampedValue) + } + + coreTeamAddresses := make([]string, 0) + coreTeamAddressesIter, err := k.whitelistAdmins.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate core team addresses") + } + for ; coreTeamAddressesIter.Valid(); coreTeamAddressesIter.Next() { + key, err := coreTeamAddressesIter.Key() + if err != nil { + return nil, errors.Wrap(err, "failed to get key: coreTeamAddressesIter") + } + coreTeamAddresses = append(coreTeamAddresses, key) + } + + topicLastWorkerCommit := make([]*types.TopicIdTimestampedActorNonce, 0) + topicLastWorkerCommitIter, err := k.topicLastWorkerCommit.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate topic last worker commit") + } + for ; topicLastWorkerCommitIter.Valid(); topicLastWorkerCommitIter.Next() { + keyValue, err := topicLastWorkerCommitIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: topicLastWorkerCommitIter") + } + topicIdTimestampedActorNonce := types.TopicIdTimestampedActorNonce{ + TopicId: keyValue.Key, + TimestampedActorNonce: &keyValue.Value, + } + topicLastWorkerCommit = append(topicLastWorkerCommit, &topicIdTimestampedActorNonce) + } + + topicLastReputerCommit := make([]*types.TopicIdTimestampedActorNonce, 0) + topicLastReputerCommitIter, err := k.topicLastReputerCommit.Iterate(ctx, nil) + if err != nil { + return nil, errors.Wrap(err, "failed to iterate topic last reputer commit") + } + for ; topicLastReputerCommitIter.Valid(); topicLastReputerCommitIter.Next() { + keyValue, err := topicLastReputerCommitIter.KeyValue() + if err != nil { + return nil, errors.Wrap(err, "failed to get key value: topicLastReputerCommitIter") + } + topicIdTimestampedActorNonce := types.TopicIdTimestampedActorNonce{ + TopicId: keyValue.Key, + TimestampedActorNonce: &keyValue.Value, + } + topicLastReputerCommit = append(topicLastReputerCommit, &topicIdTimestampedActorNonce) } return &types.GenesisState{ - Params: moduleParams, + Params: moduleParams, + NextTopicId: nextTopicId, + Topics: topics, + ActiveTopics: activeTopics, + RewardableTopics: rewardableTopics, + TopicWorkers: topicWorkers, + TopicReputers: topicReputers, + TopicRewardNonce: topicRewardNonce, + InfererScoresByBlock: infererScoresByBlock, + ForecasterScoresByBlock: forecasterScoresByBlock, + ReputerScoresByBlock: reputerScoresByBlock, + LatestInfererScoresByWorker: latestInfererScoresByWorker, + LatestForecasterScoresByWorker: latestForecasterScoresByWorker, + LatestReputerScoresByReputer: latestReputerScoresByReputer, + ReputerListeningCoefficient: reputerListeningCoefficient, + PreviousReputerRewardFraction: previousReputerRewardFraction, + PreviousInferenceRewardFraction: previousInferenceRewardFraction, + PreviousForecastRewardFraction: previousForecastRewardFraction, + TotalStake: totalStake, + TopicStake: topicStake, + StakeReputerAuthority: stakeReputerAuthority, + StakeSumFromDelegator: stakeSumFromDelegator, + DelegatedStakes: delegatedStakes, + StakeFromDelegatorsUponReputer: stakeFromDelegatorsUponReputer, + DelegateRewardPerShare: delegateRewardPerShare, + StakeRemovalsByBlock: stakeRemovalsByBlock, + StakeRemovalsByActor: stakeRemovalsByActor, + DelegateStakeRemovalsByBlock: delegateStakeRemovalsByBlock, + DelegateStakeRemovalsByActor: delegateStakeRemovalsByActor, + Inferences: inferences, + Forecasts: forecasts, + Workers: workers, + Reputers: reputers, + TopicFeeRevenue: topicFeeRevenue, + PreviousTopicWeight: previousTopicWeight, + AllInferences: allInferences, + AllForecasts: allForecasts, + AllLossBundles: allLossBundles, + NetworkLossBundles: networkLossBundles, + PreviousPercentageRewardToStakedReputers: previousPercentageRewardToStakedReputers, + UnfulfilledWorkerNonces: unfulfilledWorkerNonces, + UnfulfilledReputerNonces: unfulfilledReputerNonces, + LatestInfererNetworkRegrets: latestInfererNetworkRegrets, + LatestForecasterNetworkRegrets: latestForecasterNetworkRegrets, + LatestOneInForecasterNetworkRegrets: latestOneInForecasterNetworkRegrets, + CoreTeamAddresses: coreTeamAddresses, + TopicLastWorkerCommit: topicLastWorkerCommit, + TopicLastReputerCommit: topicLastReputerCommit, + LatestNaiveInfererNetworkRegrets: latestNaiveInfererNetworkRegrets, + LatestOneOutInfererInfererNetworkRegrets: latestOneOutInfererInfererNetworkRegrets, + LatestOneOutForecasterInfererNetworkRegrets: latestOneOutForecasterInfererNetworkRegrets, + LatestOneOutInfererForecasterNetworkRegrets: latestOneOutInfererForecasterNetworkRegrets, + LatestOneOutForecasterForecasterNetworkRegrets: latestOneOutForecasterForecasterNetworkRegrets, }, nil } diff --git a/x/emissions/keeper/genesis_test.go b/x/emissions/keeper/genesis_test.go new file mode 100644 index 000000000..d07897f84 --- /dev/null +++ b/x/emissions/keeper/genesis_test.go @@ -0,0 +1,15 @@ +package keeper_test + +import ( + cosmossdk_io_math "cosmossdk.io/math" +) + +// at minimum test that an import can be done from an export without error +func (s *KeeperTestSuite) TestImportExportGenesisNoError() { + s.emissionsKeeper.SetTopicStake(s.ctx, 0, cosmossdk_io_math.OneInt()) + genesisState, err := s.emissionsKeeper.ExportGenesis(s.ctx) + s.Require().NoError(err) + + err = s.emissionsKeeper.InitGenesis(s.ctx, genesisState) + s.Require().NoError(err) +} diff --git a/x/emissions/keeper/inference_synthesis/README.md b/x/emissions/keeper/inference_synthesis/README.md index 4f2605827..d14bbb9cf 100644 --- a/x/emissions/keeper/inference_synthesis/README.md +++ b/x/emissions/keeper/inference_synthesis/README.md @@ -1,3 +1,3 @@ # Inference Synthesis -This package contains the logic from the Inference Synthesis Section of the litepaper, which combine current inferences, forecasts, previous losses and current regrets into current network losses and new latest regrets per worker or combination of workers (and topic). +This package contains the logic from the Inference Synthesis Section of the Allora litepaper, which combine current inferences, forecasts, previous losses and current regrets into current network losses and new latest regrets per worker or combination of workers (and topic). diff --git a/x/emissions/keeper/inference_synthesis/common.go b/x/emissions/keeper/inference_synthesis/common.go index 65ad63dd6..58cf06ae5 100644 --- a/x/emissions/keeper/inference_synthesis/common.go +++ b/x/emissions/keeper/inference_synthesis/common.go @@ -3,8 +3,7 @@ package inference_synthesis import ( "cosmossdk.io/log" cosmosMath "cosmossdk.io/math" - "github.com/allora-network/allora-chain/x/emissions/types" - emissions "github.com/allora-network/allora-chain/x/emissions/types" + emissionstypes "github.com/allora-network/allora-chain/x/emissions/types" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -17,8 +16,8 @@ func CosmosIntOneE18() cosmosMath.Int { } // Create a map from worker address to their inference or forecast-implied inference -func MakeMapFromInfererToTheirInference(inferences []*emissions.Inference) map[Worker]*emissions.Inference { - inferencesByWorker := make(map[Worker]*emissions.Inference) +func MakeMapFromInfererToTheirInference(inferences []*emissionstypes.Inference) map[Worker]*emissionstypes.Inference { + inferencesByWorker := make(map[Worker]*emissionstypes.Inference) for _, inference := range inferences { inferencesByWorker[inference.Inferer] = inference } @@ -26,8 +25,8 @@ func MakeMapFromInfererToTheirInference(inferences []*emissions.Inference) map[W } // Create a map from worker address to their inference or forecast-implied inference -func MakeMapFromForecasterToTheirForecast(forecasts []*emissions.Forecast) map[Worker]*emissions.Forecast { - forecastsByWorker := make(map[Worker]*emissions.Forecast) +func MakeMapFromForecasterToTheirForecast(forecasts []*emissionstypes.Forecast) map[Worker]*emissionstypes.Forecast { + forecastsByWorker := make(map[Worker]*emissionstypes.Forecast) for _, forecast := range forecasts { forecastsByWorker[forecast.Forecaster] = forecast } @@ -35,10 +34,10 @@ func MakeMapFromForecasterToTheirForecast(forecasts []*emissions.Forecast) map[W } // It is assumed every key of `weights` is contained within the `workers` slice -func ConvertWeightsToArrays(workers []Worker, weights map[Worker]Weight) []*types.RegretInformedWeight { - weightsArray := make([]*types.RegretInformedWeight, 0) +func ConvertWeightsToArrays(workers []Worker, weights map[Worker]Weight) []*emissionstypes.RegretInformedWeight { + weightsArray := make([]*emissionstypes.RegretInformedWeight, 0) for _, worker := range workers { - weightsArray = append(weightsArray, &types.RegretInformedWeight{Worker: worker, Weight: weights[worker]}) + weightsArray = append(weightsArray, &emissionstypes.RegretInformedWeight{Worker: worker, Weight: weights[worker]}) } return weightsArray } @@ -46,13 +45,13 @@ func ConvertWeightsToArrays(workers []Worker, weights map[Worker]Weight) []*type // It is assumed every key of `forecastImpliedInferenceByWorker` is contained within the `workers` slice func ConvertForecastImpliedInferencesToArrays( workers []Worker, - forecastImpliedInferenceByWorker map[string]*types.Inference, -) []*types.WorkerAttributedValue { - forecastImpliedInferences := make([]*types.WorkerAttributedValue, 0) + forecastImpliedInferenceByWorker map[string]*emissionstypes.Inference, +) []*emissionstypes.WorkerAttributedValue { + forecastImpliedInferences := make([]*emissionstypes.WorkerAttributedValue, 0) for _, worker := range workers { forecastImpliedInferences = append( forecastImpliedInferences, - &types.WorkerAttributedValue{Worker: worker, Value: forecastImpliedInferenceByWorker[worker].Value}, + &emissionstypes.WorkerAttributedValue{Worker: worker, Value: forecastImpliedInferenceByWorker[worker].Value}, ) } return forecastImpliedInferences diff --git a/x/emissions/keeper/inference_synthesis/common_test.go b/x/emissions/keeper/inference_synthesis/common_test.go deleted file mode 100644 index 10bd19940..000000000 --- a/x/emissions/keeper/inference_synthesis/common_test.go +++ /dev/null @@ -1,56 +0,0 @@ -package inference_synthesis_test - -import ( - "encoding/csv" - "fmt" - "strings" - - alloraMath "github.com/allora-network/allora-chain/math" -) - -const simulatorHeaders = "returns,inference_0,inference_1,inference_2,inference_3,inference_4,forecasted_loss_0_for_0,forecasted_loss_0_for_1,forecasted_loss_0_for_2,forecasted_loss_0_for_3,forecasted_loss_0_for_4,forecasted_loss_1_for_0,forecasted_loss_1_for_1,forecasted_loss_1_for_2,forecasted_loss_1_for_3,forecasted_loss_1_for_4,forecasted_loss_2_for_0,forecasted_loss_2_for_1,forecasted_loss_2_for_2,forecasted_loss_2_for_3,forecasted_loss_2_for_4,forecast_implied_inference_0,forecast_implied_inference_1,forecast_implied_inference_2,forecast_implied_inference_0_oneout_0,forecast_implied_inference_0_oneout_1,forecast_implied_inference_0_oneout_2,forecast_implied_inference_0_oneout_3,forecast_implied_inference_0_oneout_4,forecast_implied_inference_1_oneout_0,forecast_implied_inference_1_oneout_1,forecast_implied_inference_1_oneout_2,forecast_implied_inference_1_oneout_3,forecast_implied_inference_1_oneout_4,forecast_implied_inference_2_oneout_0,forecast_implied_inference_2_oneout_1,forecast_implied_inference_2_oneout_2,forecast_implied_inference_2_oneout_3,forecast_implied_inference_2_oneout_4,network_inference,network_naive_inference,network_inference_oneout_0,network_inference_oneout_1,network_inference_oneout_2,network_inference_oneout_3,network_inference_oneout_4,network_inference_oneout_5,network_inference_oneout_6,network_inference_oneout_7,network_naive_inference_onein_0,network_naive_inference_onein_1,network_naive_inference_onein_2,network_loss,reputer_stake_0,reputer_stake_1,reputer_stake_2,reputer_stake_3,reputer_stake_4,reputer_0_loss_inference_0,reputer_0_loss_inference_1,reputer_0_loss_inference_2,reputer_0_loss_inference_3,reputer_0_loss_inference_4,reputer_1_loss_inference_0,reputer_1_loss_inference_1,reputer_1_loss_inference_2,reputer_1_loss_inference_3,reputer_1_loss_inference_4,reputer_2_loss_inference_0,reputer_2_loss_inference_1,reputer_2_loss_inference_2,reputer_2_loss_inference_3,reputer_2_loss_inference_4,reputer_3_loss_inference_0,reputer_3_loss_inference_1,reputer_3_loss_inference_2,reputer_3_loss_inference_3,reputer_3_loss_inference_4,reputer_4_loss_inference_0,reputer_4_loss_inference_1,reputer_4_loss_inference_2,reputer_4_loss_inference_3,reputer_4_loss_inference_4,reputer_0_loss_forecast_implied_inference_0,reputer_0_loss_forecast_implied_inference_1,reputer_0_loss_forecast_implied_inference_2,reputer_1_loss_forecast_implied_inference_0,reputer_1_loss_forecast_implied_inference_1,reputer_1_loss_forecast_implied_inference_2,reputer_2_loss_forecast_implied_inference_0,reputer_2_loss_forecast_implied_inference_1,reputer_2_loss_forecast_implied_inference_2,reputer_3_loss_forecast_implied_inference_0,reputer_3_loss_forecast_implied_inference_1,reputer_3_loss_forecast_implied_inference_2,reputer_4_loss_forecast_implied_inference_0,reputer_4_loss_forecast_implied_inference_1,reputer_4_loss_forecast_implied_inference_2,inference_loss_0,inference_loss_1,inference_loss_2,inference_loss_3,inference_loss_4,forecast_implied_inference_loss_0,forecast_implied_inference_loss_1,forecast_implied_inference_loss_2,inference_regret_worker_0,inference_regret_worker_1,inference_regret_worker_2,inference_regret_worker_3,inference_regret_worker_4,inference_regret_worker_5,inference_regret_worker_6,inference_regret_worker_7,inference_regret_worker_0_onein_0,inference_regret_worker_1_onein_0,inference_regret_worker_2_onein_0,inference_regret_worker_3_onein_0,inference_regret_worker_4_onein_0,inference_regret_worker_5_onein_0,inference_regret_worker_0_onein_1,inference_regret_worker_1_onein_1,inference_regret_worker_2_onein_1,inference_regret_worker_3_onein_1,inference_regret_worker_4_onein_1,inference_regret_worker_5_onein_1,inference_regret_worker_0_onein_2,inference_regret_worker_1_onein_2,inference_regret_worker_2_onein_2,inference_regret_worker_3_onein_2,inference_regret_worker_4_onein_2,inference_regret_worker_5_onein_2,reputer_0_loss_network_inference,reputer_1_loss_network_inference,reputer_2_loss_network_inference,reputer_3_loss_network_inference,reputer_4_loss_network_inference,network_loss_reputers" - -func GetSimulatedValuesGetterForEpoch( - epoch string, -) func(header string) alloraMath.Dec { - r := csv.NewReader(strings.NewReader(simulatorHeaders + "\n" + epoch + "\n")) - headersRead, err := r.Read() - if err != nil { - panic(err) - } - valuesRead, err := r.Read() - if err != nil { - panic(err) - } - simulatedValuesDec := make(map[string]alloraMath.Dec) - if len(headersRead) != len(valuesRead) { - panic("Header and values length mismatch") - } - for i := 0; i < len(headersRead); i++ { - simulatedValuesDec[headersRead[i]] = alloraMath.MustNewDecFromString(valuesRead[i]) - } - - return func(header string) alloraMath.Dec { - value, exists := simulatedValuesDec[header] - if !exists { - panic(fmt.Sprintf("Header '%s' not found in simulated values map", header)) - } - return value - } -} - -func GetSimulatedValuesGetterForEpochs() map[int]func(header string) alloraMath.Dec { - simulatorEpochs := map[int]string{ - 0: "0.14734599092308542,0.09568027544066265,0.1363961722713124,0.28999212512190586,-0.043228157098207404,-0.08952427556667253,-2.4522483571827967,-3.9143259056607604,-0.9000652810336911,-1.6463473123710934,-1.7074338362858081,-3.6057839168272388,-3.3370374927703272,-1.8020705214436292,-0.4166286294086259,-0.6320114483270471,-2.2337117261065287,-2.9696871084391168,-2.600598385811391,0.2879310787880367,-2.393218206225104,0.07786322803380022,0.07786322803380022,0.07786322803380022,0.07340896618208459,0.06322999197442214,0.02483100376177378,0.10813607431680211,0.1197101039339184,0.07340896618208459,0.06322999197442214,0.02483100376177378,0.10813607431680211,0.1197101039339184,0.07340896618208459,0.06322999197442214,0.02483100376177378,0.10813607431680211,0.1197101039339184,0.07786322803380022,0.07786322803380022,0.07340896618208459,0.06322999197442214,0.02483100376177378,0.10813607431680211,0.1197101039339184,0.07786322803380022,0.07786322803380022,0.07786322803380022,0.07786322803380022,0.07786322803380022,0.07786322803380022,-2.275807620843759,217031.57378387608,216977.26497098248,191667.2084540071,165915.74025345925,192524.3792010807,-2.566939641403175,-3.9736265128811463,-1.6340360212984417,-1.4176728655687159,-1.2079652914565473,-2.6088805833404183,-4.000736871762039,-1.6890715035451003,-1.4317268105415675,-1.2617231938096802,-2.689672174984615,-3.9238074717070286,-1.5476152402605594,-1.8009740342405995,-1.1520002891011365,-2.7349150737829033,-4.03906759914352,-1.6070223223836477,-1.5228132940782646,-1.1307023134439265,-2.8117620659236184,-3.6409465030573775,-1.6136585227630547,-1.538615949883192,-1.1546136547916908,-2.31545419645954,-2.202524362738222,-2.2418613449256553,-2.463191636253571,-2.3117852658702835,-2.377847531291077,-2.307194877599067,-2.4421291055572634,-2.4565977821135654,-2.5007081332210515,-2.556704987343238,-2.4084782805129823,-2.2869687933477585,-2.096657210218583,-2.18113123428791,-2.6763048668905065,-3.915851167807982,-1.6207980063276026,-1.5368098127741545,-1.1854546887256259,-2.372078644284439,-2.3122813614294224,-2.329875537306649,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,1.0,-2.246115755861928,-2.389726076391205,-2.4496588542454085,-2.0935493245943335,-2.1648829510940852,-2.275807620843759", - 1: "-0.05745793670163129,-0.04146077933409088,0.26430637626736225,-0.15537044892430302,0.20280570322915553,-0.2809213378134252,-2.6492671930352873,-1.095583070816085,-1.5996969055917107,-1.5636283897963263,-1.653693226447897,-3.1796232478126405,-1.9469176358512206,-3.340531306675051,-0.7430328122226876,-0.8004791268432215,-3.034331002898215,-0.03408752461993494,-1.4395724013525566,-1.5372154240009501,1.0002317318569662,-0.0021280973150602624,-0.0021280973150602624,-0.0021280973150602624,0.0077050731896973895,-0.06873671571066589,0.03618249058725043,-0.05336154745111421,0.06757021280953097,0.0077050731896973895,-0.06873671571066589,0.03618249058725043,-0.05336154745111421,0.06757021280953097,0.0077050731896973895,-0.06873671571066589,0.03618249058725043,-0.05336154745111421,0.06757021280953097,-0.002128097315060258,-0.0021280973150602685,0.007705073189697395,-0.06873671571066589,0.03618249058725042,-0.05336154745111421,0.06757021280953097,-0.00212809731506026,-0.00212809731506026,-0.00212809731506026,-0.0021280973150602676,-0.0021280973150602676,-0.0021280973150602676,-2.2746680980664324,217283.792426463,217288.83658437288,191831.31021715293,166101.3609442742,192706.7111574466,-2.453199488542913,-3.927474108646508,-1.5875734137853104,-1.413232962147433,-1.1645813959508593,-2.577129640134377,-4.013463196690888,-1.6225641793064787,-1.3927429446820159,-1.279568103423225,-2.7080537021907425,-4.050821038854415,-1.628754408936683,-1.685195119912563,-1.187854341176235,-2.6805643098631657,-3.844667147643489,-1.613528645869478,-1.3942731386256675,-1.2494959682102034,-2.6724445134599852,-3.789850883655542,-1.7549094862543286,-1.4826299763358262,-1.2615032689856926,-2.257223611729998,-2.2200021871391087,-2.3541839874974393,-2.4059121506439825,-2.3452453035112213,-2.290839580268419,-2.3163541655711244,-2.4115061571528535,-2.4199553202684294,-2.5648964075151084,-2.597414134132694,-2.33876846794408,-2.1857102145299496,-2.2027807687894683,-2.2922977412022663,-2.6113717888447368,-3.9295761984750865,-1.6404157359909375,-1.4720453012264856,-1.227747220318532,-2.3394142558222155,-2.345173563704459,-2.338315864496653,0.9336703690778304,1.0654908100408655,0.8365747637924505,0.8197377203160053,0.79530791222521,0.9064746157755783,0.9070505465638027,0.9063647766430221,0.9309667390022757,1.0627871799653106,0.8338711337168957,0.8170340902404505,0.7926042821496552,0.9037709857000236,0.928895380088691,1.060715821051726,0.8317997748033111,0.8149627313268659,0.7905329232360705,0.9022755575746633,0.9344740992853171,1.0662945402483521,0.8373784939999372,0.820541450523492,0.7961116424326966,0.9071685068505088,-2.2374825510512,-2.379941301136895,-2.3792642036007,-2.1063368755238936,-2.2388642699960517,-2.2746680980664324", - 2: "-0.07369649777428276,-0.002581909014417502,-0.040176235347061245,-0.16127260888226766,-0.2650234821483614,-0.22475663059136536,-1.4859617999114954,-1.9675342140709517,-1.5695832159168832,-1.0788764772284467,-1.9989928096438128,-3.069387034745436,-3.1516928820783194,-2.0399363729917765,-2.036254601993781,-2.5760515274013445,-1.596874381907372,-2.643181085845546,-1.882313219268639,-2.2415848872905446,-0.9728451247767491,-0.14401152149609722,-0.06033647642365894,-0.0788247910992649,-0.14406055700970213,-0.22116998428583062,-0.14203200418752598,-0.15022507568413512,-0.042805818043314764,-0.09971604694353424,-0.07764147234669996,-0.06081372035614342,-0.05997449737360058,-0.027452947250289073,-0.08300969134603335,-0.2505418137725777,-0.08073420268438519,-0.04435207078861626,-0.06538790375994824,-0.12212295687531177,-0.13876217319669462,-0.14543075032404645,-0.17185541443450286,-0.11658831204703714,-0.09761986109735195,-0.08638584349223712,-0.11899601907234242,-0.1309495969398336,-0.12830840912903274,-0.13963706457992842,-0.12569122373452205,-0.1287726095137897,-2.3119510720644354,217559.84209268863,217643.58465541984,192040.154795241,166304.25712108248,192957.18494825868,-2.794084752534733,-2.912821634455895,-1.666465324388764,-1.299483037447976,-1.2090755078850224,-2.915823629617737,-2.9853988644020046,-1.7479644345364538,-1.2582560150307411,-1.2482221909764606,-3.0263162379346786,-3.0088643777907707,-1.7447744585431957,-1.674889433292988,-1.1882842787996828,-3.0454528488179244,-2.882315026677848,-1.77611536413237,-1.3220364835770746,-1.3117571312313745,-2.95330515626394,-2.8950984623722817,-1.8514966966001682,-1.3636402989708447,-1.2870653407471915,-2.2824919560736756,-2.27604750292788,-2.375437672570877,-2.4221682862605367,-2.4008477647655777,-2.353153335799059,-2.4041089874731227,-2.402938933266083,-2.456237349098233,-2.511047796370679,-2.592673377511453,-2.3867542495649383,-2.2681895131640935,-2.252874586654308,-2.3254034947953484,-2.9396691722522155,-2.938920680110131,-1.7543662024988351,-1.3798177972415762,-1.2462292601725724,-2.3727145689425746,-2.377126639938461,-2.378371545401871,0.9030751421888253,1.0216386898413485,0.6971588004566455,0.6445506208021189,0.6092049398135028,0.8219035038858344,0.822863048694825,0.8223703463124634,0.8961366015974169,1.01470014924994,0.6902202598652369,0.6376120802107104,0.6022663992220942,0.814964963294426,0.8921315672954454,1.0106951149479686,0.6862152255632655,0.633607045908739,0.5982613649201227,0.811919473801445,0.9000390901938307,1.0186026378463537,0.6941227484616508,0.6415145688071242,0.6061688878185079,0.8193342943174687,-2.2622100195025574,-2.3935788818038666,-2.3997885341784317,-2.2004379345870424,-2.2846531825685865,-2.3119510720644354", - 3: "-0.1086093599370808,-0.23772957272378142,-0.3206683838203465,-0.1560428348450878,-0.4522695690798907,0.07921662671338901,-1.279565042483667,-1.8023838212861185,-2.7290991574493773,-0.7001340374717215,-1.0548889133075208,-2.1944885298394747,-0.8098096442068731,-1.7294465073793757,-0.5897442364764094,-1.6379694537640836,-1.8694055734902197,-1.315823499632638,-1.9910129037951294,-0.2869443116578908,0.06935400567563284,-0.1612628406995495,-0.21204353706275944,-0.19566458942928167,-0.16253920014979617,-0.15612586345806054,-0.3172991101417655,-0.1599227183181089,-0.1626657427520344,-0.07028824105402616,-0.2132111483924151,-0.2139736603348025,-0.2214512184171357,-0.2286515412740618,-0.16995305637421793,-0.18966020558503321,-0.2471097786080373,-0.19494204533665124,-0.19082284409960237,-0.2070580876184135,-0.2174987467511435,-0.17893495122999659,-0.18940322391012568,-0.2442619211421764,-0.17307716382110322,-0.24983578408497212,-0.21360026574967977,-0.2063458805549355,-0.20868573021686088,-0.20812609574254454,-0.21658954513641285,-0.2138597205308332,-2.3979699021542826,217893.18582272177,218110.2494880441,192285.4749845225,166569.99248307856,193289.33534758896,-2.6855836247833795,-2.895631339293046,-1.7499265266681285,-1.305485234369785,-1.3032707429834007,-2.7421144591057627,-2.9505249992351854,-1.8257754309573688,-1.30556830066608,-1.3611546391439875,-2.885122180844985,-2.992938824030687,-1.8295850098904913,-1.645045347805901,-1.2706527667399716,-2.865231705822166,-2.856048703054859,-1.9123237559680977,-1.3502439813378364,-1.421884969007282,-2.7646428879354983,-2.927587756580716,-1.9262754410236185,-1.4197555986390458,-1.389693127907496,-2.2770251604871934,-2.6108218287317517,-2.8780680843557107,-2.3890669526468318,-2.71902211306267,-2.88202230427151,-2.4049760457219245,-2.8205824831289767,-2.982323078758758,-2.43021925674522,-2.904987063386831,-2.9243544386129776,-2.3467190115016514,-2.6611899104848473,-2.8730423165363534,-2.782637496503791,-2.9262616029081383,-1.8440393923714176,-1.4014761986343318,-1.3465994687800888,-2.3661101521809256,-2.7349613326149345,-2.906047355383291,0.8512343874048937,0.9723039909325992,0.5720498694326944,0.48044618836991193,0.44314740249473317,0.7365271784999152,0.7742758868714076,0.7909410570041179,0.8495951749604952,0.9706647784882007,0.570410656988296,0.47880697592551347,0.4415081900503346,0.7348879660555169,0.8399443059696293,0.961013909497335,0.5607597879974301,0.46915610693464765,0.43185732105946867,0.7629858054361434,0.848163474550825,0.9692330780785305,0.5689789565786257,0.47737527551584324,0.44007648964066426,0.7878701441500492,-2.333958346614425,-2.4654746205187115,-2.502608834522719,-2.3040364263855366,-2.370809388366875,-2.3979699021542826", - 4: "-0.07820530429866374,-0.12911369797464775,-0.11397392477038251,-0.08225794110992682,0.4610805983360889,-0.23530655241179554,-2.166853714746728,-2.576245963402976,-4.349173902509044,-0.43938276809029053,-1.5000564859721817,-1.7137371847840663,-1.9531097489250415,-4.036804071449624,-0.45324956367773916,-1.51684125685237,-1.606671039157792,-3.054773368674252,-3.568477363226547,1.1628093342120673,-1.4044356992194016,-0.08985658213696854,-0.08566246201942397,-0.09773002028845901,-0.08790303718972156,-0.08688443720444393,-0.11898640122855499,-0.089445638490697,-0.08806744103361296,-0.08526635038065948,-0.08516143720244765,-0.12622948908685397,-0.08505666688925365,-0.08396658106142454,-0.09785844089879703,-0.08985603194344885,-0.12057288023310395,-0.09443908991686505,-0.09494859308567316,-0.04663249762827179,-0.020200472947778846,-0.03452560118559817,-0.03534065173879262,-0.054782034233138065,-0.1184686634647725,-0.0187555427469999,-0.040505142811180374,-0.041095932869504,-0.03936271157418527,-0.03170120824332098,-0.031047501110856184,-0.03305315292943287,-2.3374843203671096,218216.54888352467,218618.92283807945,192558.17466547008,166861.37222479642,193661.91538893126,-2.492243327000714,-2.574373154118222,-1.9092073404997798,-1.2347785453364006,-1.282179392226562,-2.51674728579474,-2.5965173111796442,-1.965549225632195,-1.2274360637849122,-1.3623779197962296,-2.6810056498295727,-2.682810825831458,-1.9764504388215496,-1.5552392172307439,-1.2999607211793762,-2.6527390954970684,-2.535888262399974,-2.0962933567165276,-1.277208708286648,-1.441831548639878,-2.586984067072113,-2.618562229787363,-2.0777427198290876,-1.3024257484398936,-1.3710043783361443,-2.307320105300563,-2.476656105883646,-2.6878216838032434,-2.406815996493469,-2.5733332635416684,-2.73861475553102,-2.4130635412334778,-2.6404436508421236,-2.8238308036740443,-2.4834339271984542,-2.717878556421278,-2.749220734290907,-2.4037308187625204,-2.548425934440393,-2.73535135986212,-2.5799607624531866,-2.602514698250348,-1.9992370401752122,-1.3158790457967369,-1.3476380671650992,-2.3984096926094347,-2.5845680676502005,-2.7451434756233484,0.790358592873012,0.9015766296276632,0.4810201544702352,0.33024104207588345,0.2998480369250588,0.6689669978741563,0.721556672912576,0.75261286682933,0.7941179660138709,0.9053360027685218,0.484779527611094,0.3340004152167423,0.3036074100659175,0.6727263710150151,0.7845106894196756,0.8957287261743269,0.4751722510168988,0.3243931386225471,0.29400013347172227,0.7157087694592397,0.7893094597447671,0.9005274964994182,0.4799710213419904,0.3291919089476385,0.29879890379681373,0.7515637337010851,-2.2700935153625603,-2.3746917456911314,-2.4545571435320737,-2.291052740709289,-2.2950177859938754,-2.3374843203671096", - } - - gettersMap := map[int](func(header string) alloraMath.Dec){} - for epochNumber, epoch := range simulatorEpochs { - gettersMap[epochNumber] = GetSimulatedValuesGetterForEpoch(epoch) - } - return gettersMap -} diff --git a/x/emissions/keeper/inference_synthesis/network_inference_builder.go b/x/emissions/keeper/inference_synthesis/network_inference_builder.go index f3f77f7e2..b4b3275f8 100644 --- a/x/emissions/keeper/inference_synthesis/network_inference_builder.go +++ b/x/emissions/keeper/inference_synthesis/network_inference_builder.go @@ -98,8 +98,24 @@ func (b *NetworkInferenceBuilder) SetNaiveValue() *NetworkInferenceBuilder { b.logger.Debug(fmt.Sprintf("Calculating naive inference for topic %v", b.palette.TopicId)) palette := b.palette.Clone() - palette.Forecasters = nil - palette.ForecasterRegrets = make(map[string]*alloraMath.Dec, 0) + // Update the forecasters info to exclude all forecasters + err := palette.UpdateForecastersInfo(make([]string, 0)) + if err != nil { + b.logger.Warn(fmt.Sprintf("Error updating forecasters info for naive inference: %s", err.Error())) + return b + } + + // Get inferer naive regrets + palette.InfererRegrets = make(map[string]*alloraMath.Dec) + for _, inferer := range palette.Inferers { + regret, _, err := palette.K.GetNaiveInfererNetworkRegret(palette.Ctx, palette.TopicId, inferer) + if err != nil { + b.logger.Warn(fmt.Sprintf("Error getting naive regret for inferer %s: %s", inferer, err.Error())) + return b + } + palette.InfererRegrets[inferer] = ®ret.Value + } + weights, err := palette.CalcWeightsGivenWorkers() if err != nil { b.logger.Warn(fmt.Sprintf("Error calculating weights for naive inference: %s", err.Error())) @@ -121,6 +137,7 @@ func (b *NetworkInferenceBuilder) SetNaiveValue() *NetworkInferenceBuilder { func (b *NetworkInferenceBuilder) calcOneOutInfererInference(withheldInferer Worker) (alloraMath.Dec, error) { b.logger.Debug(fmt.Sprintf("Calculating one-out inference for topic %v withheld inferer %s", b.palette.TopicId, withheldInferer)) palette := b.palette.Clone() + totalInferers := palette.Inferers // Remove the inferer from the palette's inferers remainingInferers := make([]Worker, 0) @@ -134,6 +151,7 @@ func (b *NetworkInferenceBuilder) calcOneOutInfererInference(withheldInferer Wor if err != nil { return alloraMath.Dec{}, errorsmod.Wrapf(err, "Error updating inferers") } + paletteCopy := palette.Clone() // Recalculate the forecast-implied inferences without the worker's inference @@ -144,6 +162,26 @@ func (b *NetworkInferenceBuilder) calcOneOutInfererInference(withheldInferer Wor } paletteCopy.ForecastImpliedInferenceByWorker = palette.ForecastImpliedInferenceByWorker + + // Get regrets for the remaining inferers + paletteCopy.InfererRegrets = make(map[string]*alloraMath.Dec) + for _, inferer := range totalInferers { + regret, _, err := paletteCopy.K.GetOneOutInfererInfererNetworkRegret(paletteCopy.Ctx, paletteCopy.TopicId, withheldInferer, inferer) + if err != nil { + return alloraMath.Dec{}, errorsmod.Wrapf(err, "Error getting one-out inferer regret") + } + paletteCopy.InfererRegrets[inferer] = ®ret.Value + } + // Get regrets for the forecasters + paletteCopy.ForecasterRegrets = make(map[string]*alloraMath.Dec) + for _, forecaster := range paletteCopy.Forecasters { + regret, _, err := paletteCopy.K.GetOneOutInfererForecasterNetworkRegret(paletteCopy.Ctx, paletteCopy.TopicId, withheldInferer, forecaster) + if err != nil { + return alloraMath.Dec{}, errorsmod.Wrapf(err, "Error getting one-out forecaster regret") + } + paletteCopy.ForecasterRegrets[forecaster] = ®ret.Value + } + weights, err := paletteCopy.CalcWeightsGivenWorkers() if err != nil { return alloraMath.Dec{}, errorsmod.Wrapf(err, "Error calculating one-out inference for forecaster") @@ -188,8 +226,9 @@ func (b *NetworkInferenceBuilder) SetOneOutInfererValues() *NetworkInferenceBuil // Calculate the one-out inference given a withheld forecaster func (b *NetworkInferenceBuilder) calcOneOutForecasterInference(withheldForecaster Worker) (alloraMath.Dec, error) { b.logger.Debug(fmt.Sprintf("Calculating one-out inference for topic %v withheld forecaster %s", b.palette.TopicId, withheldForecaster)) - palette := b.palette.Clone() + totalForecasters := palette.Forecasters + // Remove the withheldForecaster from the palette's forecasters remainingForecasters := make([]Worker, 0) for _, forecaster := range palette.Forecasters { @@ -203,6 +242,25 @@ func (b *NetworkInferenceBuilder) calcOneOutForecasterInference(withheldForecast return alloraMath.Dec{}, errorsmod.Wrapf(err, "Error updating forecasters") } + // Get regrets for the remaining inferers + palette.InfererRegrets = make(map[string]*alloraMath.Dec) + for _, inferer := range palette.Inferers { + regret, _, err := palette.K.GetOneOutForecasterInfererNetworkRegret(palette.Ctx, palette.TopicId, withheldForecaster, inferer) + if err != nil { + return alloraMath.Dec{}, errorsmod.Wrapf(err, "Error getting one-out inferer regret") + } + palette.InfererRegrets[inferer] = ®ret.Value + } + // Get regrets for the forecasters + palette.ForecasterRegrets = make(map[string]*alloraMath.Dec) + for _, forecaster := range totalForecasters { + regret, _, err := palette.K.GetOneOutForecasterForecasterNetworkRegret(palette.Ctx, palette.TopicId, withheldForecaster, forecaster) + if err != nil { + return alloraMath.Dec{}, errorsmod.Wrapf(err, "Error getting one-out forecaster regret") + } + palette.ForecasterRegrets[forecaster] = ®ret.Value + } + weights, err := palette.CalcWeightsGivenWorkers() if err != nil { return alloraMath.Dec{}, errorsmod.Wrapf(err, "Error calculating one-out inference for forecaster") @@ -253,7 +311,8 @@ func (b *NetworkInferenceBuilder) calcOneInValue(oneInForecaster Worker) (allora forecastImpliedInferencesWithForecaster[oneInForecaster] = palette.ForecastImpliedInferenceByWorker[oneInForecaster] palette.ForecastImpliedInferenceByWorker = forecastImpliedInferencesWithForecaster - regret, _, err := palette.K.GetOneInForecasterSelfNetworkRegret(palette.Ctx, palette.TopicId, oneInForecaster) + // Get self regret for the forecaster + regret, _, err := palette.K.GetOneInForecasterNetworkRegret(palette.Ctx, palette.TopicId, oneInForecaster, oneInForecaster) if err != nil { return alloraMath.Dec{}, errorsmod.Wrapf(err, "Error getting one-in forecaster regret") } diff --git a/x/emissions/keeper/inference_synthesis/network_inference_builder_test.go b/x/emissions/keeper/inference_synthesis/network_inference_builder_test.go index 35bfc0f5a..674bc3bee 100644 --- a/x/emissions/keeper/inference_synthesis/network_inference_builder_test.go +++ b/x/emissions/keeper/inference_synthesis/network_inference_builder_test.go @@ -11,7 +11,6 @@ import ( clog "cosmossdk.io/log" cosmosMath "cosmossdk.io/math" - // cosmosMath "cosmossdk.io/math" storetypes "cosmossdk.io/store/types" "github.com/allora-network/allora-chain/app/params" alloraMath "github.com/allora-network/allora-chain/math" @@ -20,7 +19,6 @@ import ( inferencesynthesis "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis" "github.com/allora-network/allora-chain/x/emissions/keeper/msgserver" "github.com/allora-network/allora-chain/x/emissions/module" - "github.com/allora-network/allora-chain/x/emissions/types" emissionstypes "github.com/allora-network/allora-chain/x/emissions/types" "github.com/cosmos/cosmos-sdk/codec/address" "github.com/cosmos/cosmos-sdk/runtime" @@ -51,7 +49,7 @@ type InferenceSynthesisTestSuite struct { bankKeeper keeper.BankKeeper emissionsKeeper keeper.Keeper appModule module.AppModule - msgServer types.MsgServer + msgServer emissionstypes.MsgServer key *storetypes.KVStoreKey addrs []sdk.AccAddress addrsStr []string @@ -66,15 +64,15 @@ func (s *InferenceSynthesisTestSuite) SetupTest() { addressCodec := address.NewBech32Codec(params.Bech32PrefixAccAddr) maccPerms := map[string][]string{ - "fee_collector": {"minter"}, - "mint": {"minter"}, - types.AlloraStakingAccountName: {"burner", "minter", "staking"}, - types.AlloraRewardsAccountName: {"minter"}, - types.AlloraPendingRewardForDelegatorAccountName: {"minter"}, - "bonded_tokens_pool": {"burner", "staking"}, - "not_bonded_tokens_pool": {"burner", "staking"}, - multiPerm: {"burner", "minter", "staking"}, - randomPerm: {"random"}, + "fee_collector": {"minter"}, + "mint": {"minter"}, + emissionstypes.AlloraStakingAccountName: {"burner", "minter", "staking"}, + emissionstypes.AlloraRewardsAccountName: {"minter"}, + emissionstypes.AlloraPendingRewardForDelegatorAccountName: {"minter"}, + "bonded_tokens_pool": {"burner", "staking"}, + "not_bonded_tokens_pool": {"burner", "staking"}, + multiPerm: {"burner", "minter", "staking"}, + randomPerm: {"random"}, } accountKeeper := authkeeper.NewAccountKeeper( @@ -89,8 +87,8 @@ func (s *InferenceSynthesisTestSuite) SetupTest() { var addrs []sdk.AccAddress = make([]sdk.AccAddress, 0) var addrsStr []string = make([]string, 0) - pubkeys := simtestutil.CreateTestPubKeys(5) - for i := 0; i < 5; i++ { + pubkeys := simtestutil.CreateTestPubKeys(50) + for i := 0; i < 50; i++ { addrs = append(addrs, sdk.AccAddress(pubkeys[i].Address())) addrsStr = append(addrsStr, addrs[i].String()) } @@ -130,21 +128,18 @@ func (s *InferenceSynthesisTestSuite) SetupTest() { } err := s.emissionsKeeper.SetTopic(s.ctx, 1, emissionstypes.Topic{ - Id: 1, - Creator: "creator", - Metadata: "metadata", - LossLogic: "losslogic", - LossMethod: "lossmethod", - InferenceLogic: "inferencelogic", - InferenceMethod: "inferencemethod", - EpochLastEnded: 0, - EpochLength: 100, - GroundTruthLag: 10, - DefaultArg: "defaultarg", - PNorm: alloraMath.NewDecFromInt64(3), - AlphaRegret: alloraMath.MustNewDecFromString("0.1"), - AllowNegative: false, - InitialRegret: alloraMath.MustNewDecFromString("0.0001"), + Id: 1, + Creator: "creator", + Metadata: "metadata", + LossMethod: "mse", + EpochLastEnded: 0, + EpochLength: 100, + GroundTruthLag: 10, + WorkerSubmissionWindow: 10, + PNorm: alloraMath.NewDecFromInt64(3), + AlphaRegret: alloraMath.MustNewDecFromString("0.1"), + AllowNegative: false, + InitialRegret: alloraMath.MustNewDecFromString("0.0001"), }) s.Require().NoError(err) } @@ -162,7 +157,7 @@ func (s *InferenceSynthesisTestSuite) getEpochValueBundleByEpoch(epochNumber int topicId := uint64(1) blockHeight := int64(1) - epochGetters := GetSimulatedValuesGetterForEpochs() + epochGetters := alloratestutil.GetSimulatedValuesGetterForEpochs() epochGet := epochGetters[epochNumber] networkLossPrevious := alloraMath.ZeroDec() @@ -172,6 +167,7 @@ func (s *InferenceSynthesisTestSuite) getEpochValueBundleByEpoch(epochNumber int networkLossPrevious = epochPrevGet("network_loss") // SET EPOCH 2 VALUES IN THE SYSTEM + // Set inferer network regrets infererNetworkRegrets := map[string]inferencesynthesis.Regret{ "worker0": epochPrevGet("inference_regret_worker_0"), @@ -180,8 +176,6 @@ func (s *InferenceSynthesisTestSuite) getEpochValueBundleByEpoch(epochNumber int "worker3": epochPrevGet("inference_regret_worker_3"), "worker4": epochPrevGet("inference_regret_worker_4"), } - - // Set inferer network regrets for inferer, regret := range infererNetworkRegrets { s.emissionsKeeper.SetInfererNetworkRegret( s.ctx, @@ -191,13 +185,12 @@ func (s *InferenceSynthesisTestSuite) getEpochValueBundleByEpoch(epochNumber int ) } + // Set forecaster network regrets forecasterNetworkRegrets := map[string]inferencesynthesis.Regret{ "forecaster0": epochPrevGet("inference_regret_worker_5"), "forecaster1": epochPrevGet("inference_regret_worker_6"), "forecaster2": epochPrevGet("inference_regret_worker_7"), } - - // Set forecaster network regrets for forecaster, regret := range forecasterNetworkRegrets { s.emissionsKeeper.SetForecasterNetworkRegret( s.ctx, @@ -207,12 +200,117 @@ func (s *InferenceSynthesisTestSuite) getEpochValueBundleByEpoch(epochNumber int ) } + // Set naive inferer network regrets + infererNaiveNetworkRegrets := + map[string]inferencesynthesis.Regret{ + "worker0": epochPrevGet("naive_inference_regret_worker_0"), + "worker1": epochPrevGet("naive_inference_regret_worker_1"), + "worker2": epochPrevGet("naive_inference_regret_worker_2"), + "worker3": epochPrevGet("naive_inference_regret_worker_3"), + "worker4": epochPrevGet("naive_inference_regret_worker_4"), + } + for inferer, regret := range infererNaiveNetworkRegrets { + s.emissionsKeeper.SetNaiveInfererNetworkRegret( + s.ctx, + topicId, + inferer, + emissionstypes.TimestampedValue{BlockHeight: blockHeight, Value: regret}, + ) + } + + // Set one-out inferer inferer network regrets + setOneOutInfererInfererNetworkRegret := func(infererIndex int, infererIndex2 int, epochGetter func(string) alloraMath.Dec) { + infererName := "worker" + strconv.Itoa(infererIndex) + infererName2 := "worker" + strconv.Itoa(infererIndex2) + headerName := "inference_regret_worker_" + strconv.Itoa(infererIndex) + "_oneout_" + strconv.Itoa(infererIndex2) + k.SetOneOutInfererInfererNetworkRegret( + s.ctx, + topicId, + infererName2, + infererName, + emissionstypes.TimestampedValue{ + BlockHeight: blockHeight, + Value: epochGetter(headerName), + }, + ) + } + for inferer := 0; inferer < 5; inferer++ { + for inferer2 := 0; inferer2 < 5; inferer2++ { + setOneOutInfererInfererNetworkRegret(inferer, inferer2, epochPrevGet) + } + } + + // Set one-out inferer forecaster network regrets + setOneOutInfererForecasterNetworkRegret := func(infererIndex int, forecasterIndex int, epochGetter func(string) alloraMath.Dec) { + infererName := "worker" + strconv.Itoa(infererIndex) + forecasterName := "forecaster" + strconv.Itoa(forecasterIndex-5) + headerName := "inference_regret_worker_" + strconv.Itoa(forecasterIndex) + "_oneout_" + strconv.Itoa(infererIndex) + k.SetOneOutInfererForecasterNetworkRegret( + s.ctx, + topicId, + infererName, + forecasterName, + emissionstypes.TimestampedValue{ + BlockHeight: blockHeight, + Value: epochGetter(headerName), + }, + ) + } + for forecaster := 5; forecaster < 8; forecaster++ { + for inferer := 0; inferer < 5; inferer++ { + setOneOutInfererForecasterNetworkRegret(inferer, forecaster, epochPrevGet) + } + } + + // Set one-out forecaster inferer network regrets + setOneOutForecasterInfererNetworkRegret := func(infererIndex int, forecasterIndex int, epochGetter func(string) alloraMath.Dec) { + infererName := "worker" + strconv.Itoa(infererIndex) + forecasterName := "forecaster" + strconv.Itoa(forecasterIndex-5) + headerName := "inference_regret_worker_" + strconv.Itoa(infererIndex) + "_oneout_" + strconv.Itoa(forecasterIndex) + k.SetOneOutForecasterInfererNetworkRegret( + s.ctx, + topicId, + forecasterName, + infererName, + emissionstypes.TimestampedValue{ + BlockHeight: blockHeight, + Value: epochGetter(headerName), + }, + ) + } + for inferer := 0; inferer < 5; inferer++ { + for forecaster := 5; forecaster < 8; forecaster++ { + setOneOutForecasterInfererNetworkRegret(inferer, forecaster, epochPrevGet) + } + } + + // Set one-out forecaster forecaster network regrets + setOneOutForecasterForecasterNetworkRegret := func(forecasterIndex int, forecasterIndex2 int, epochGetter func(string) alloraMath.Dec) { + forecasterName := "forecaster" + strconv.Itoa(forecasterIndex-5) + forecasterName2 := "forecaster" + strconv.Itoa(forecasterIndex2-5) + headerName := "inference_regret_worker_" + strconv.Itoa(forecasterIndex) + "_oneout_" + strconv.Itoa(forecasterIndex2) + k.SetOneOutForecasterForecasterNetworkRegret( + s.ctx, + topicId, + forecasterName2, + forecasterName, + emissionstypes.TimestampedValue{ + BlockHeight: blockHeight, + Value: epochGetter(headerName), + }, + ) + } + for forecaster := 5; forecaster < 8; forecaster++ { + for forecaster2 := 5; forecaster2 < 8; forecaster2++ { + setOneOutForecasterForecasterNetworkRegret(forecaster, forecaster2, epochPrevGet) + } + } + // Set one-in network regrets setOneInForecasterNetworkRegret := func(forecasterIndex int, infererIndex int, epochGetter func(string) alloraMath.Dec) { forecasterName := "forecaster" + strconv.Itoa(forecasterIndex) infererName := "worker" + strconv.Itoa(infererIndex) headerName := "inference_regret_worker_" + strconv.Itoa(infererIndex) + "_onein_" + strconv.Itoa(forecasterIndex) - k.SetOneInForecasterNetworkRegret( s.ctx, topicId, @@ -224,16 +322,14 @@ func (s *InferenceSynthesisTestSuite) getEpochValueBundleByEpoch(epochNumber int }, ) } - - // Set one-in self network regrets setOneInForecasterSelfRegret := func(forecaster int, epochGet func(string) alloraMath.Dec) { forecasterName := "forecaster" + strconv.Itoa(forecaster) headerName := "inference_regret_worker_5_onein_" + strconv.Itoa(forecaster) - - k.SetOneInForecasterSelfNetworkRegret( + k.SetOneInForecasterNetworkRegret( s.ctx, topicId, forecasterName, + forecasterName, emissionstypes.TimestampedValue{ BlockHeight: blockHeight, Value: epochGet(headerName), @@ -242,6 +338,7 @@ func (s *InferenceSynthesisTestSuite) getEpochValueBundleByEpoch(epochNumber int } for forecaster := 0; forecaster < 3; forecaster++ { + // Set self one-in network regrets setOneInForecasterSelfRegret(forecaster, epochPrevGet) for inferer := 0; inferer < 5; inferer++ { setOneInForecasterNetworkRegret(forecaster, inferer, epochPrevGet) @@ -304,7 +401,8 @@ func (s *InferenceSynthesisTestSuite) getEpochValueBundleByEpoch(epochNumber int Inferences: &inferences, Forecasts: forecasts, NetworkCombinedLoss: networkLossPrevious, - Epsilon: alloraMath.MustNewDecFromString("0.0001"), + EpsilonTopic: alloraMath.MustNewDecFromString("0.01"), + EpsilonSafeDiv: alloraMath.MustNewDecFromString("0.0000001"), PNorm: alloraMath.MustNewDecFromString("3.0"), CNorm: alloraMath.MustNewDecFromString("0.75"), }, @@ -318,38 +416,34 @@ func (s *InferenceSynthesisTestSuite) testCorrectCombinedInitialValueForEpoch(ep networkInferenceBuilder, epochGet := s.getEpochValueBundleByEpoch(epoch) valueBundle := networkInferenceBuilder.SetCombinedValue().Build() s.Require().NotNil(valueBundle.CombinedValue) - alloratestutil.InEpsilon2(s.T(), valueBundle.CombinedValue, epochGet[epoch]("network_inference").String()) + alloratestutil.InEpsilon5(s.T(), valueBundle.CombinedValue, epochGet[epoch]("network_inference").String()) } func (s *InferenceSynthesisTestSuite) TestCorrectCombinedValueEpoch2() { - s.testCorrectCombinedInitialValueForEpoch(2) + s.testCorrectCombinedInitialValueForEpoch(302) } func (s *InferenceSynthesisTestSuite) TestCorrectCombnedValueEpoch3() { - s.testCorrectCombinedInitialValueForEpoch(3) + s.testCorrectCombinedInitialValueForEpoch(303) } func (s *InferenceSynthesisTestSuite) TestCorrectCombinedValueEpoch4() { - s.testCorrectCombinedInitialValueForEpoch(4) + s.testCorrectCombinedInitialValueForEpoch(304) } func (s *InferenceSynthesisTestSuite) testCorrectNaiveValueForEpoch(epoch int) { networkInferenceBuilder, epochGet := s.getEpochValueBundleByEpoch(epoch) valueBundle := networkInferenceBuilder.SetNaiveValue().Build() s.Require().NotNil(valueBundle.NaiveValue) - alloratestutil.InEpsilon2(s.T(), valueBundle.NaiveValue, epochGet[epoch]("network_naive_inference").String()) -} - -func (s *InferenceSynthesisTestSuite) TestCorrectInitialNaiveValue() { - s.testCorrectNaiveValueForEpoch(0) + alloratestutil.InEpsilon5(s.T(), valueBundle.NaiveValue, epochGet[epoch]("network_naive_inference").String()) } func (s *InferenceSynthesisTestSuite) TestCorrectNaiveValueEpoch2() { - s.testCorrectNaiveValueForEpoch(2) + s.testCorrectNaiveValueForEpoch(302) } func (s *InferenceSynthesisTestSuite) TestCorrectNaiveValueEpoch3() { - s.testCorrectNaiveValueForEpoch(3) + s.testCorrectNaiveValueForEpoch(303) } func (s *InferenceSynthesisTestSuite) testCorrectOneOutInfererValuesForEpoch(epoch int) { @@ -370,7 +464,7 @@ func (s *InferenceSynthesisTestSuite) testCorrectOneOutInfererValuesForEpoch(epo for _, workerAttributedValue := range valueBundle.OneOutInfererValues { if workerAttributedValue.Worker == worker { found = true - alloratestutil.InEpsilon2(s.T(), expectedValue, workerAttributedValue.Value.String()) + alloratestutil.InEpsilon5(s.T(), expectedValue, workerAttributedValue.Value.String()) } } s.Require().True(found) @@ -378,11 +472,11 @@ func (s *InferenceSynthesisTestSuite) testCorrectOneOutInfererValuesForEpoch(epo } func (s *InferenceSynthesisTestSuite) TestCorrectOneOutInfererValuesEpoch2() { - s.testCorrectOneOutInfererValuesForEpoch(2) + s.testCorrectOneOutInfererValuesForEpoch(302) } func (s *InferenceSynthesisTestSuite) TestCorrectOneOutInfererValuesEpoch3() { - s.testCorrectOneOutInfererValuesForEpoch(3) + s.testCorrectOneOutInfererValuesForEpoch(303) } func (s *InferenceSynthesisTestSuite) testCorrectOneOutForecasterValuesForEpoch(epoch int) { @@ -400,7 +494,7 @@ func (s *InferenceSynthesisTestSuite) testCorrectOneOutForecasterValuesForEpoch( for _, workerAttributedValue := range valueBundle.OneOutForecasterValues { if workerAttributedValue.Worker == worker { found = true - alloratestutil.InEpsilon2(s.T(), expectedValue, workerAttributedValue.Value.String()) + alloratestutil.InEpsilon5(s.T(), expectedValue, workerAttributedValue.Value.String()) } } s.Require().True(found) @@ -408,15 +502,15 @@ func (s *InferenceSynthesisTestSuite) testCorrectOneOutForecasterValuesForEpoch( } func (s *InferenceSynthesisTestSuite) TestCorrectOneOutForecasterValuesEpoch2() { - s.testCorrectOneOutForecasterValuesForEpoch(2) + s.testCorrectOneOutForecasterValuesForEpoch(302) } func (s *InferenceSynthesisTestSuite) TestCorrectOneOutForecasterValuesEpoch3() { - s.testCorrectOneOutForecasterValuesForEpoch(3) + s.testCorrectOneOutForecasterValuesForEpoch(303) } func (s *InferenceSynthesisTestSuite) TestCorrectOneOutForecasterValuesEpoch4() { - s.testCorrectOneOutForecasterValuesForEpoch(4) + s.testCorrectOneOutForecasterValuesForEpoch(304) } func (s *InferenceSynthesisTestSuite) testCorrectOneInForecasterValuesForEpoch(epoch int) { @@ -434,7 +528,7 @@ func (s *InferenceSynthesisTestSuite) testCorrectOneInForecasterValuesForEpoch(e for _, workerAttributedValue := range valueBundle.OneInForecasterValues { if workerAttributedValue.Worker == worker { found = true - alloratestutil.InEpsilon2(s.T(), expectedValue, workerAttributedValue.Value.String()) + alloratestutil.InEpsilon5(s.T(), expectedValue, workerAttributedValue.Value.String()) } } s.Require().True(found) @@ -442,15 +536,15 @@ func (s *InferenceSynthesisTestSuite) testCorrectOneInForecasterValuesForEpoch(e } func (s *InferenceSynthesisTestSuite) TestCorrectOneInForecasterValuesEpoch2() { - s.testCorrectOneInForecasterValuesForEpoch(2) + s.testCorrectOneInForecasterValuesForEpoch(302) } func (s *InferenceSynthesisTestSuite) TestCorrectOneInForecasterValuesEpoch3() { - s.testCorrectOneInForecasterValuesForEpoch(3) + s.testCorrectOneInForecasterValuesForEpoch(303) } func (s *InferenceSynthesisTestSuite) TestCorrectOneInForecasterValuesEpoch4() { - s.testCorrectOneInForecasterValuesForEpoch(4) + s.testCorrectOneInForecasterValuesForEpoch(304) } func (s *InferenceSynthesisTestSuite) TestBuildNetworkInferencesIncompleteData() { @@ -494,11 +588,6 @@ func (s *InferenceSynthesisTestSuite) TestBuildNetworkInferencesIncompleteData() }, } - networkCombinedLoss := alloraMath.MustNewDecFromString("1") - epsilon := alloraMath.MustNewDecFromString("0.0001") - pNorm := alloraMath.MustNewDecFromString("2") - cNorm := alloraMath.MustNewDecFromString("0.75") - // Call the function without setting regrets networkInferenceBuilder, err := inferencesynthesis.NewNetworkInferenceBuilderFromSynthRequest( inferencesynthesis.SynthRequest{ @@ -507,10 +596,11 @@ func (s *InferenceSynthesisTestSuite) TestBuildNetworkInferencesIncompleteData() TopicId: topicId, Inferences: inferences, Forecasts: forecasts, - NetworkCombinedLoss: networkCombinedLoss, - Epsilon: epsilon, - PNorm: pNorm, - CNorm: cNorm, + NetworkCombinedLoss: alloraMath.MustNewDecFromString("1"), + EpsilonTopic: alloraMath.MustNewDecFromString("0.0001"), + EpsilonSafeDiv: alloraMath.MustNewDecFromString("0.0000001"), + PNorm: alloraMath.MustNewDecFromString("2"), + CNorm: alloraMath.MustNewDecFromString("0.75"), }, ) s.Require().NoError(err) @@ -563,11 +653,6 @@ func (s *InferenceSynthesisTestSuite) TestCalcNetworkInferencesTwoWorkerTwoForec }, } - networkCombinedLoss := alloraMath.MustNewDecFromString("0.2") - epsilon := alloraMath.MustNewDecFromString("0.0001") - pNorm := alloraMath.MustNewDecFromString("2") - cNorm := alloraMath.MustNewDecFromString("0.75") - // Set inferer network regrets err := k.SetInfererNetworkRegret(ctx, topicId, worker1, emissionstypes.TimestampedValue{Value: alloraMath.MustNewDecFromString("0.2")}) s.Require().NoError(err) @@ -597,10 +682,11 @@ func (s *InferenceSynthesisTestSuite) TestCalcNetworkInferencesTwoWorkerTwoForec TopicId: topicId, Inferences: inferences, Forecasts: forecasts, - NetworkCombinedLoss: networkCombinedLoss, - Epsilon: epsilon, - PNorm: pNorm, - CNorm: cNorm, + NetworkCombinedLoss: alloraMath.MustNewDecFromString("0.2"), + EpsilonTopic: alloraMath.MustNewDecFromString("0.0001"), + EpsilonSafeDiv: alloraMath.MustNewDecFromString("0.0000001"), + PNorm: alloraMath.MustNewDecFromString("2"), + CNorm: alloraMath.MustNewDecFromString("0.75"), }, ) s.Require().NoError(err) @@ -667,11 +753,6 @@ func (s *InferenceSynthesisTestSuite) TestCalcNetworkInferencesThreeWorkerThreeF }, } - networkCombinedLoss := alloraMath.MustNewDecFromString("10000") - epsilon := alloraMath.MustNewDecFromString("0.001") - pNorm := alloraMath.MustNewDecFromString("2") - cNorm := alloraMath.MustNewDecFromString("0.75") - // Set inferer network regrets err := k.SetInfererNetworkRegret(ctx, topicId, worker1, emissionstypes.TimestampedValue{Value: alloraMath.MustNewDecFromString("0.001")}) s.Require().NoError(err) @@ -717,10 +798,11 @@ func (s *InferenceSynthesisTestSuite) TestCalcNetworkInferencesThreeWorkerThreeF TopicId: topicId, Inferences: inferences, Forecasts: forecasts, - NetworkCombinedLoss: networkCombinedLoss, - Epsilon: epsilon, - PNorm: pNorm, - CNorm: cNorm, + NetworkCombinedLoss: alloraMath.MustNewDecFromString("10000"), + EpsilonTopic: alloraMath.MustNewDecFromString("0.001"), + EpsilonSafeDiv: alloraMath.MustNewDecFromString("0.0000001"), + PNorm: alloraMath.MustNewDecFromString("2"), + CNorm: alloraMath.MustNewDecFromString("0.75"), }, ) s.Require().NoError(err) @@ -771,11 +853,6 @@ func (s *InferenceSynthesisTestSuite) TestCalc0neInInferencesTwoForecastersOldTw }, } - networkCombinedLoss := alloraMath.MustNewDecFromString("10000") - epsilon := alloraMath.MustNewDecFromString("0.001") - pNorm := alloraMath.MustNewDecFromString("2") - cNorm := alloraMath.MustNewDecFromString("0.75") - // Set inferer network regrets - Just for worker1 err := k.SetInfererNetworkRegret(ctx, topicId, worker1, emissionstypes.TimestampedValue{Value: alloraMath.MustNewDecFromString("0.001")}) s.Require().NoError(err) @@ -787,9 +864,9 @@ func (s *InferenceSynthesisTestSuite) TestCalc0neInInferencesTwoForecastersOldTw s.Require().NoError(err) // Set one-in forecaster network regrets - err = k.SetOneInForecasterSelfNetworkRegret(ctx, topicId, worker1, emissionstypes.TimestampedValue{Value: alloraMath.MustNewDecFromString("0.001")}) + err = k.SetOneInForecasterNetworkRegret(ctx, topicId, worker1, worker1, emissionstypes.TimestampedValue{Value: alloraMath.MustNewDecFromString("0.001")}) s.Require().NoError(err) - err = k.SetOneInForecasterSelfNetworkRegret(ctx, topicId, worker2, emissionstypes.TimestampedValue{Value: alloraMath.MustNewDecFromString("0.001")}) + err = k.SetOneInForecasterNetworkRegret(ctx, topicId, worker2, worker2, emissionstypes.TimestampedValue{Value: alloraMath.MustNewDecFromString("0.001")}) s.Require().NoError(err) err = k.SetOneInForecasterNetworkRegret(ctx, topicId, worker2, worker1, emissionstypes.TimestampedValue{Value: alloraMath.MustNewDecFromString("0.008")}) s.Require().NoError(err) @@ -801,10 +878,11 @@ func (s *InferenceSynthesisTestSuite) TestCalc0neInInferencesTwoForecastersOldTw TopicId: topicId, Inferences: inferences, Forecasts: forecasts, - NetworkCombinedLoss: networkCombinedLoss, - Epsilon: epsilon, - PNorm: pNorm, - CNorm: cNorm, + NetworkCombinedLoss: alloraMath.MustNewDecFromString("10000"), + EpsilonTopic: alloraMath.MustNewDecFromString("0.001"), + EpsilonSafeDiv: alloraMath.MustNewDecFromString("0.0000001"), + PNorm: alloraMath.MustNewDecFromString("2"), + CNorm: alloraMath.MustNewDecFromString("0.75"), }, ) s.Require().NoError(err) diff --git a/x/emissions/keeper/inference_synthesis/network_inferences.go b/x/emissions/keeper/inference_synthesis/network_inferences.go index 4dbb87c1f..5201718c3 100644 --- a/x/emissions/keeper/inference_synthesis/network_inferences.go +++ b/x/emissions/keeper/inference_synthesis/network_inferences.go @@ -42,7 +42,7 @@ func GetNetworkInferencesAtBlock( var forecasterWeights map[string]alloraMath.Dec inferences, err := k.GetInferencesAtBlock(ctx, topicId, inferencesNonce) - if err != nil { + if err != nil || len(inferences.Inferences) == 0 { return nil, nil, infererWeights, forecasterWeights, errorsmod.Wrapf(sdkerrors.ErrInvalidRequest, "no inferences found for topic %v at block %v", topicId, inferencesNonce) } // Add inferences in the bundle -> this bundle will be used as a fallback in case of error @@ -91,7 +91,8 @@ func GetNetworkInferencesAtBlock( Inferences: inferences, Forecasts: forecasts, NetworkCombinedLoss: networkLosses.CombinedValue, - Epsilon: topic.Epsilon, + EpsilonTopic: topic.Epsilon, + EpsilonSafeDiv: moduleParams.EpsilonSafeDiv, PNorm: topic.PNorm, CNorm: moduleParams.CNorm, }, @@ -171,12 +172,12 @@ func GetLatestNetworkInference( forecasts, err := k.GetForecastsAtBlock(ctx, topicId, inferenceBlockHeight) if err != nil { - Logger(ctx).Warn(fmt.Sprintf("Error getting forecasts: %s", err.Error())) if errors.Is(err, collections.ErrNotFound) { forecasts = &emissions.Forecasts{ Forecasts: make([]*emissions.Forecast, 0), } } else { + Logger(ctx).Warn(fmt.Sprintf("Error getting forecasts: %s", err.Error())) return networkInferences, nil, infererWeights, forecasterWeights, inferenceBlockHeight, lossBlockHeight, nil } } @@ -210,7 +211,8 @@ func GetLatestNetworkInference( Inferences: inferences, Forecasts: forecasts, NetworkCombinedLoss: networkLosses.CombinedValue, - Epsilon: topic.Epsilon, + EpsilonTopic: topic.Epsilon, + EpsilonSafeDiv: moduleParams.EpsilonSafeDiv, PNorm: topic.PNorm, CNorm: moduleParams.CNorm, }, diff --git a/x/emissions/keeper/inference_synthesis/network_inferences_test.go b/x/emissions/keeper/inference_synthesis/network_inferences_test.go index e36a98c8a..6cca915a9 100644 --- a/x/emissions/keeper/inference_synthesis/network_inferences_test.go +++ b/x/emissions/keeper/inference_synthesis/network_inferences_test.go @@ -24,34 +24,34 @@ func TestMakeMapFromWorkerToTheirWork(t *testing.T) { inferences: []*emissionstypes.Inference{ { TopicId: 101, - Inferer: "worker1", + Inferer: "inferer1", Value: alloraMath.MustNewDecFromString("10"), }, { TopicId: 102, - Inferer: "worker2", + Inferer: "inferer2", Value: alloraMath.MustNewDecFromString("20"), }, { TopicId: 103, - Inferer: "worker3", + Inferer: "inferer3", Value: alloraMath.MustNewDecFromString("30"), }, }, expected: map[string]*emissionstypes.Inference{ - "worker1": { + "inferer1": { TopicId: 101, - Inferer: "worker1", + Inferer: "inferer1", Value: alloraMath.MustNewDecFromString("10"), }, - "worker2": { + "inferer2": { TopicId: 102, - Inferer: "worker2", + Inferer: "inferer2", Value: alloraMath.MustNewDecFromString("20"), }, - "worker3": { + "inferer3": { TopicId: 103, - Inferer: "worker3", + Inferer: "inferer3", Value: alloraMath.MustNewDecFromString("30"), }, }, @@ -72,9 +72,9 @@ func TestMakeMapFromWorkerToTheirWork(t *testing.T) { } func (s *InferenceSynthesisTestSuite) TestGetNetworkInferencesAtBlock() { - epochGet := GetSimulatedValuesGetterForEpochs() - epoch2Get := epochGet[2] - epoch3Get := epochGet[3] + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch2Get := epochGet[302] + epoch3Get := epochGet[303] require := s.Require() keeper := s.emissionsKeeper @@ -89,251 +89,56 @@ func (s *InferenceSynthesisTestSuite) TestGetNetworkInferencesAtBlock() { } err := s.emissionsKeeper.SetTopic(s.ctx, topicId, emissionstypes.Topic{ - Id: topicId, - Creator: "creator", - Metadata: "metadata", - LossLogic: "losslogic", - LossMethod: "lossmethod", - InferenceLogic: "inferencelogic", - InferenceMethod: "inferencemethod", - EpochLastEnded: 0, - EpochLength: 100, - GroundTruthLag: 10, - DefaultArg: "defaultarg", - PNorm: alloraMath.NewDecFromInt64(3), - AlphaRegret: alloraMath.MustNewDecFromString("0.1"), - AllowNegative: false, + Id: topicId, + Creator: "creator", + Metadata: "metadata", + LossMethod: "mse", + EpochLastEnded: 0, + EpochLength: 100, + GroundTruthLag: 10, + WorkerSubmissionWindow: 10, + PNorm: alloraMath.NewDecFromInt64(3), + AlphaRegret: alloraMath.MustNewDecFromString("0.1"), + AllowNegative: false, + Epsilon: alloraMath.MustNewDecFromString("0.01"), }) s.Require().NoError(err) - reputer0 := "allo1m5v6rgjtxh4xszrrzqacwjh4ve6r0za2gxx9qr" - reputer1 := "allo1e7cj9839ht2xm8urynqs5279hrvqd8neusvp2x" - reputer2 := "allo1k9ss0xfer54nyack5678frl36e5g3rj2yzxtfj" - reputer3 := "allo18ljxewge4vqrkk09tm5heldqg25yj8d9ekgkw5" - reputer4 := "allo1k36ljvn8z0u49sagdg46p75psgreh23kdjn3l0" + inferer0 := "allo1m5v6rgjtxh4xszrrzqacwjh4ve6r0za2gxx9qr" + inferer1 := "allo1e7cj9839ht2xm8urynqs5279hrvqd8neusvp2x" + inferer2 := "allo1k9ss0xfer54nyack5678frl36e5g3rj2yzxtfj" + inferer3 := "allo18ljxewge4vqrkk09tm5heldqg25yj8d9ekgkw5" + inferer4 := "allo1k36ljvn8z0u49sagdg46p75psgreh23kdjn3l0" + infererAddresses := []string{inferer0, inferer1, inferer2, inferer3, inferer4} forecaster0 := "allo1pluvmvsmvecg2ccuqxa6ugzvc3a5udfyy0t76v" forecaster1 := "allo1e92saykj94jw3z55g4d3lfz098ppk0suwzc03a" forecaster2 := "allo1pk6mxny5p79t8zhkm23z7u3zmfuz2gn0snxkkt" + forecasterAddresses := []string{forecaster0, forecaster1, forecaster2} // Set Previous Loss err = keeper.InsertNetworkLossBundleAtBlock(s.ctx, topicId, blockHeightPreviousLosses, emissionstypes.ValueBundle{ - CombinedValue: epoch2Get("network_loss_reputers"), + CombinedValue: epoch2Get("network_loss"), ReputerRequestNonce: reputerRequestNonce, TopicId: topicId, }) require.NoError(err) - // Set Inferences - inferences := emissionstypes.Inferences{ - Inferences: []*emissionstypes.Inference{ - { - Inferer: reputer0, - Value: epoch3Get("inference_0"), - TopicId: topicId, - BlockHeight: blockHeight, - }, - { - Inferer: reputer1, - Value: epoch3Get("inference_1"), - TopicId: topicId, - BlockHeight: blockHeight, - }, - { - Inferer: reputer2, - Value: epoch3Get("inference_2"), - TopicId: topicId, - BlockHeight: blockHeight, - }, - { - Inferer: reputer3, - Value: epoch3Get("inference_3"), - TopicId: topicId, - BlockHeight: blockHeight, - }, - { - Inferer: reputer4, - Value: epoch3Get("inference_4"), - TopicId: topicId, - BlockHeight: blockHeight, - }, - }, - } + inferences, err := testutil.GetInferencesFromCsv(topicId, blockHeight, infererAddresses, epoch3Get) + s.Require().NoError(err) err = keeper.InsertInferences(s.ctx, topicId, simpleNonce, inferences) s.Require().NoError(err) - // Set Forecasts - forecasts := emissionstypes.Forecasts{ - Forecasts: []*emissionstypes.Forecast{ - { - Forecaster: forecaster0, - ForecastElements: []*emissionstypes.ForecastElement{ - { - Inferer: reputer0, - Value: epoch3Get("forecasted_loss_0_for_0"), - }, - { - Inferer: reputer1, - Value: epoch3Get("forecasted_loss_0_for_1"), - }, - { - Inferer: reputer2, - Value: epoch3Get("forecasted_loss_0_for_2"), - }, - { - Inferer: reputer3, - Value: epoch3Get("forecasted_loss_0_for_3"), - }, - { - Inferer: reputer4, - Value: epoch3Get("forecasted_loss_0_for_4"), - }, - }, - TopicId: topicId, - BlockHeight: blockHeight, - }, - { - Forecaster: forecaster1, - ForecastElements: []*emissionstypes.ForecastElement{ - { - Inferer: reputer0, - Value: epoch3Get("forecasted_loss_1_for_0"), - }, - { - Inferer: reputer1, - Value: epoch3Get("forecasted_loss_1_for_1"), - }, - { - Inferer: reputer2, - Value: epoch3Get("forecasted_loss_1_for_2"), - }, - { - Inferer: reputer3, - Value: epoch3Get("forecasted_loss_1_for_3"), - }, - { - Inferer: reputer4, - Value: epoch3Get("forecasted_loss_1_for_4"), - }, - }, - TopicId: topicId, - BlockHeight: blockHeight, - }, - { - Forecaster: forecaster2, - ForecastElements: []*emissionstypes.ForecastElement{ - { - Inferer: reputer0, - Value: epoch3Get("forecasted_loss_2_for_0"), - }, - { - Inferer: reputer1, - Value: epoch3Get("forecasted_loss_2_for_1"), - }, - { - Inferer: reputer2, - Value: epoch3Get("forecasted_loss_2_for_2"), - }, - { - Inferer: reputer3, - Value: epoch3Get("forecasted_loss_2_for_3"), - }, - { - Inferer: reputer4, - Value: epoch3Get("forecasted_loss_2_for_4"), - }, - }, - TopicId: topicId, - BlockHeight: blockHeight, - }, - }, - } + forecasts, err := testutil.GetForecastsFromCsv(topicId, blockHeight, infererAddresses, forecasterAddresses, epoch3Get) + s.Require().NoError(err) err = keeper.InsertForecasts(s.ctx, topicId, simpleNonce, forecasts) s.Require().NoError(err) - // Set inferer network regrets - infererNetworkRegrets := map[string]inferencesynthesis.Regret{ - reputer0: epoch2Get("inference_regret_worker_0"), - reputer1: epoch2Get("inference_regret_worker_1"), - reputer2: epoch2Get("inference_regret_worker_2"), - reputer3: epoch2Get("inference_regret_worker_3"), - reputer4: epoch2Get("inference_regret_worker_4"), - } - - for inferer, regret := range infererNetworkRegrets { - s.emissionsKeeper.SetInfererNetworkRegret( - s.ctx, - topicId, - inferer, - emissionstypes.TimestampedValue{BlockHeight: blockHeight, Value: regret}, - ) - } - - // Set forecaster network regrets - forecasterNetworkRegrets := map[string]inferencesynthesis.Regret{ - forecaster0: epoch2Get("inference_regret_worker_5"), - forecaster1: epoch2Get("inference_regret_worker_6"), - forecaster2: epoch2Get("inference_regret_worker_7"), - } - - for forecaster, regret := range forecasterNetworkRegrets { - s.emissionsKeeper.SetForecasterNetworkRegret( - s.ctx, - topicId, - forecaster, - emissionstypes.TimestampedValue{BlockHeight: blockHeight, Value: regret}, - ) - } - - // Set one in forecaster network regrets - setOneInForecasterNetworkRegret := func(forecaster string, inferer string, value string) { - keeper.SetOneInForecasterNetworkRegret( - s.ctx, - topicId, - forecaster, - inferer, - emissionstypes.TimestampedValue{ - BlockHeight: blockHeight, - Value: alloraMath.MustNewDecFromString(value), - }, - ) - } - - /// Epoch 3 values - setOneInForecasterNetworkRegret(forecaster0, reputer0, epoch2Get("inference_regret_worker_0_onein_0").String()) - setOneInForecasterNetworkRegret(forecaster0, reputer1, epoch2Get("inference_regret_worker_1_onein_0").String()) - setOneInForecasterNetworkRegret(forecaster0, reputer2, epoch2Get("inference_regret_worker_2_onein_0").String()) - setOneInForecasterNetworkRegret(forecaster0, reputer3, epoch2Get("inference_regret_worker_3_onein_0").String()) - setOneInForecasterNetworkRegret(forecaster0, reputer4, epoch2Get("inference_regret_worker_4_onein_0").String()) - - keeper.SetOneInForecasterSelfNetworkRegret(s.ctx, topicId, forecaster0, emissionstypes.TimestampedValue{ - BlockHeight: blockHeight, - Value: epoch2Get("inference_regret_worker_5_onein_0"), - }) - - setOneInForecasterNetworkRegret(forecaster1, reputer0, epoch2Get("inference_regret_worker_0_onein_1").String()) - setOneInForecasterNetworkRegret(forecaster1, reputer1, epoch2Get("inference_regret_worker_1_onein_1").String()) - setOneInForecasterNetworkRegret(forecaster1, reputer2, epoch2Get("inference_regret_worker_2_onein_1").String()) - setOneInForecasterNetworkRegret(forecaster1, reputer3, epoch2Get("inference_regret_worker_3_onein_1").String()) - setOneInForecasterNetworkRegret(forecaster1, reputer4, epoch2Get("inference_regret_worker_4_onein_1").String()) - - keeper.SetOneInForecasterSelfNetworkRegret(s.ctx, topicId, forecaster1, emissionstypes.TimestampedValue{ - BlockHeight: blockHeight, - Value: epoch2Get("inference_regret_worker_5_onein_1"), - }) - - setOneInForecasterNetworkRegret(forecaster2, reputer0, epoch2Get("inference_regret_worker_0_onein_2").String()) - setOneInForecasterNetworkRegret(forecaster2, reputer1, epoch2Get("inference_regret_worker_1_onein_2").String()) - setOneInForecasterNetworkRegret(forecaster2, reputer2, epoch2Get("inference_regret_worker_2_onein_2").String()) - setOneInForecasterNetworkRegret(forecaster2, reputer3, epoch2Get("inference_regret_worker_3_onein_2").String()) - setOneInForecasterNetworkRegret(forecaster2, reputer4, epoch2Get("inference_regret_worker_4_onein_2").String()) - - keeper.SetOneInForecasterSelfNetworkRegret(s.ctx, topicId, forecaster2, emissionstypes.TimestampedValue{ - BlockHeight: blockHeight, - Value: epoch2Get("inference_regret_worker_5_onein_2"), - }) + // Set regrets from the previous epoch + err = testutil.SetRegretsFromPreviousEpoch(s.ctx, s.emissionsKeeper, topicId, blockHeight, infererAddresses, forecasterAddresses, epoch2Get) + s.Require().NoError(err) // Calculate valueBundle, _, _, _, err := @@ -345,9 +150,10 @@ func (s *InferenceSynthesisTestSuite) TestGetNetworkInferencesAtBlock() { blockHeightPreviousLosses, ) require.NoError(err) - testutil.InEpsilon2(s.T(), valueBundle.CombinedValue, epoch3Get("network_inference").String()) - testutil.InEpsilon2(s.T(), valueBundle.NaiveValue, epoch3Get("network_naive_inference").String()) + testutil.InEpsilon5(s.T(), valueBundle.CombinedValue, epoch3Get("network_inference").String()) + testutil.InEpsilon5(s.T(), valueBundle.NaiveValue, epoch3Get("network_naive_inference").String()) + s.Require().Len(valueBundle.InfererValues, 5) for _, inference := range inferences.Inferences { found := false for _, infererValue := range valueBundle.InfererValues { @@ -358,68 +164,440 @@ func (s *InferenceSynthesisTestSuite) TestGetNetworkInferencesAtBlock() { } require.True(found, "Inference not found") } + + s.Require().Len(valueBundle.ForecasterValues, 3) for _, forecasterValue := range valueBundle.ForecasterValues { switch string(forecasterValue.Worker) { case forecaster0: - testutil.InEpsilon2(s.T(), forecasterValue.Value, epoch3Get("forecast_implied_inference_0").String()) + testutil.InEpsilon5(s.T(), forecasterValue.Value, epoch3Get("forecast_implied_inference_0").String()) case forecaster1: - testutil.InEpsilon2(s.T(), forecasterValue.Value, epoch3Get("forecast_implied_inference_1").String()) + testutil.InEpsilon5(s.T(), forecasterValue.Value, epoch3Get("forecast_implied_inference_1").String()) case forecaster2: - testutil.InEpsilon2(s.T(), forecasterValue.Value, epoch3Get("forecast_implied_inference_2").String()) + testutil.InEpsilon5(s.T(), forecasterValue.Value, epoch3Get("forecast_implied_inference_2").String()) default: require.Fail("Unexpected forecaster %v", forecasterValue.Worker) } } + s.Require().Len(valueBundle.OneOutInfererValues, 5) for _, oneOutInfererValue := range valueBundle.OneOutInfererValues { switch string(oneOutInfererValue.Worker) { - case reputer0: - testutil.InEpsilon2(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_0").String()) - case reputer1: - testutil.InEpsilon2(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_1").String()) - case reputer2: - testutil.InEpsilon2(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_2").String()) - case reputer3: - testutil.InEpsilon2(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_3").String()) - case reputer4: - testutil.InEpsilon2(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_4").String()) + case inferer0: + testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_0").String()) + case inferer1: + testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_1").String()) + case inferer2: + testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_2").String()) + case inferer3: + testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_3").String()) + case inferer4: + testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_4").String()) default: require.Fail("Unexpected worker %v", oneOutInfererValue.Worker) } } + s.Require().Len(valueBundle.OneOutForecasterValues, 3) for _, oneOutForecasterValue := range valueBundle.OneOutForecasterValues { switch string(oneOutForecasterValue.Worker) { case forecaster0: - testutil.InEpsilon2(s.T(), oneOutForecasterValue.Value, epoch3Get("network_inference_oneout_5").String()) + testutil.InEpsilon5(s.T(), oneOutForecasterValue.Value, epoch3Get("network_inference_oneout_5").String()) case forecaster1: - testutil.InEpsilon2(s.T(), oneOutForecasterValue.Value, epoch3Get("network_inference_oneout_6").String()) + testutil.InEpsilon5(s.T(), oneOutForecasterValue.Value, epoch3Get("network_inference_oneout_6").String()) case forecaster2: - testutil.InEpsilon2(s.T(), oneOutForecasterValue.Value, epoch3Get("network_inference_oneout_7").String()) + testutil.InEpsilon5(s.T(), oneOutForecasterValue.Value, epoch3Get("network_inference_oneout_7").String()) default: require.Fail("Unexpected worker %v", oneOutForecasterValue.Worker) } } + s.Require().Len(valueBundle.OneInForecasterValues, 3) for _, oneInForecasterValue := range valueBundle.OneInForecasterValues { switch string(oneInForecasterValue.Worker) { case forecaster0: - testutil.InEpsilon2(s.T(), oneInForecasterValue.Value, epoch3Get("network_naive_inference_onein_0").String()) + testutil.InEpsilon5(s.T(), oneInForecasterValue.Value, epoch3Get("network_naive_inference_onein_0").String()) case forecaster1: - testutil.InEpsilon2(s.T(), oneInForecasterValue.Value, epoch3Get("network_naive_inference_onein_1").String()) + testutil.InEpsilon5(s.T(), oneInForecasterValue.Value, epoch3Get("network_naive_inference_onein_1").String()) case forecaster2: - testutil.InEpsilon2(s.T(), oneInForecasterValue.Value, epoch3Get("network_naive_inference_onein_2").String()) + testutil.InEpsilon5(s.T(), oneInForecasterValue.Value, epoch3Get("network_naive_inference_onein_2").String()) default: require.Fail("Unexpected worker %v", oneInForecasterValue.Worker) } } } -func (s *InferenceSynthesisTestSuite) TestGetLatestNetworkInference() { +// TODO: Need to revisit these tests after finshing non-edge case tests +// func (s *InferenceSynthesisTestSuite) TestGetNetworkInferencesAtBlockWithJustOneNotNewForecaster() { +// epochGet := testutil.GetSimulatedValuesGetterForEpochs() +// epoch2Get := epochGet[302] +// epoch3Get := epochGet[303] + +// require := s.Require() +// keeper := s.emissionsKeeper + +// topicId := uint64(1) +// blockHeight := int64(300) +// blockHeightPreviousLosses := int64(200) + +// simpleNonce := emissionstypes.Nonce{BlockHeight: blockHeight} +// reputerRequestNonce := &emissionstypes.ReputerRequestNonce{ +// ReputerNonce: &emissionstypes.Nonce{BlockHeight: blockHeightPreviousLosses}, +// } + +//err := s.emissionsKeeper.SetTopic(s.ctx, topicId, emissionstypes.Topic{ +// Id: topicId, +// Creator: "creator", +// Metadata: "metadata", +// LossMethod: "mse", +// EpochLastEnded: 0, +// EpochLength: 100, +// GroundTruthLag: 10, +// WorkerSubmissionWindow: 10, +// PNorm: alloraMath.NewDecFromInt64(3), +// AlphaRegret: alloraMath.MustNewDecFromString("0.1"), +// AllowNegative: false, +// Epsilon: alloraMath.MustNewDecFromString("0.0001"), +//}) +//s.Require().NoError(err) + +// inferer0 := "allo1m5v6rgjtxh4xszrrzqacwjh4ve6r0za2gxx9qr" +// inferer1 := "allo1e7cj9839ht2xm8urynqs5279hrvqd8neusvp2x" +// inferer2 := "allo1k9ss0xfer54nyack5678frl36e5g3rj2yzxtfj" +// inferer3 := "allo18ljxewge4vqrkk09tm5heldqg25yj8d9ekgkw5" +// inferer4 := "allo1k36ljvn8z0u49sagdg46p75psgreh23kdjn3l0" +// infererAddresses := []string{inferer0, inferer1, inferer2, inferer3, inferer4} + +// forecaster0 := "allo1pluvmvsmvecg2ccuqxa6ugzvc3a5udfyy0t76v" +// forecaster1 := "allo1e92saykj94jw3z55g4d3lfz098ppk0suwzc03a" +// forecaster2 := "allo1pk6mxny5p79t8zhkm23z7u3zmfuz2gn0snxkkt" +// forecasterAddresses := []string{forecaster0, forecaster1, forecaster2} + +// // Set Previous Loss +// err = keeper.InsertNetworkLossBundleAtBlock(s.ctx, topicId, blockHeightPreviousLosses, emissionstypes.ValueBundle{ +// CombinedValue: epoch2Get("network_loss"), +// ReputerRequestNonce: reputerRequestNonce, +// TopicId: topicId, +// }) +// require.NoError(err) + +// inferences, err := testutil.GetInferencesFromCsv(topicId, blockHeight, infererAddresses, epoch3Get) +// s.Require().NoError(err) + +// err = keeper.InsertInferences(s.ctx, topicId, simpleNonce, inferences) +// s.Require().NoError(err) + +// forecasts, err := testutil.GetForecastsFromCsv(topicId, blockHeight, infererAddresses, forecasterAddresses, epoch3Get) +// s.Require().NoError(err) + +// err = keeper.InsertForecasts(s.ctx, topicId, simpleNonce, forecasts) +// s.Require().NoError(err) + +// // Set inferer network regrets +// infererNetworkRegrets := map[string]inferencesynthesis.Regret{ +// inferer0: epoch2Get("inference_regret_worker_0"), +// inferer1: epoch2Get("inference_regret_worker_1"), +// inferer2: epoch2Get("inference_regret_worker_2"), +// inferer3: epoch2Get("inference_regret_worker_3"), +// inferer4: epoch2Get("inference_regret_worker_4"), +// } + +// for inferer, regret := range infererNetworkRegrets { +// s.emissionsKeeper.SetInfererNetworkRegret( +// s.ctx, +// topicId, +// inferer, +// emissionstypes.TimestampedValue{BlockHeight: blockHeight, Value: regret}, +// ) +// } + +// // Set forecaster network regrets - just one of the forecasters +// forecasterNetworkRegrets := map[string]inferencesynthesis.Regret{ +// forecaster0: epoch2Get("inference_regret_worker_7"), +// } +// allRegrets := make([]inferencesynthesis.Regret, 0) +// for _, regret := range infererNetworkRegrets { + +// allRegrets = append(allRegrets, regret) +// } +// allRegrets = append(allRegrets, forecasterNetworkRegrets[forecaster0]) + +// for forecaster, regret := range forecasterNetworkRegrets { +// s.emissionsKeeper.SetForecasterNetworkRegret( +// s.ctx, +// topicId, +// forecaster, +// emissionstypes.TimestampedValue{BlockHeight: blockHeight, Value: regret}, +// ) +// } + +// // Set one in forecaster network regrets +// setOneInForecasterNetworkRegret := func(forecaster string, inferer string, value string) { +// keeper.SetOneInForecasterNetworkRegret( +// s.ctx, +// topicId, +// forecaster, +// inferer, +// emissionstypes.TimestampedValue{ +// BlockHeight: blockHeight, +// Value: alloraMath.MustNewDecFromString(value), +// }, +// ) +// } + +// /// Epoch 3 values +// setOneInForecasterNetworkRegret(forecaster0, inferer0, epoch2Get("inference_regret_worker_2_onein_2").String()) +// setOneInForecasterNetworkRegret(forecaster0, inferer1, epoch2Get("inference_regret_worker_1_onein_2").String()) +// setOneInForecasterNetworkRegret(forecaster0, inferer2, epoch2Get("inference_regret_worker_2_onein_2").String()) +// setOneInForecasterNetworkRegret(forecaster0, inferer3, epoch2Get("inference_regret_worker_3_onein_2").String()) +// setOneInForecasterNetworkRegret(forecaster0, inferer4, epoch2Get("inference_regret_worker_4_onein_2").String()) +// setOneInForecasterNetworkRegret(forecaster0, forecaster0, epoch2Get("inference_regret_worker_5_onein_2").String()) + +// // Update topic initial regret for new participants +// epsilon := alloraMath.MustNewDecFromString("0.01") +// pNorm := alloraMath.MustNewDecFromString("3.0") +// cNorm := alloraMath.MustNewDecFromString("0.75") +// initialRegret, err := inferencesynthesis.CalcTopicInitialRegret(allRegrets, epsilon, pNorm, cNorm) +// require.NoError(err) +// testutil.InEpsilon5(s.T(), initialRegret, "-3.112687101514772") + +// err = s.emissionsKeeper.UpdateTopicInitialRegret(s.ctx, topicId, initialRegret) +// require.NoError(err) + +// // Calculate network inference +// valueBundle, _, _, _, err := +// inferencesynthesis.GetNetworkInferencesAtBlock( +// s.ctx, +// s.emissionsKeeper, +// topicId, +// blockHeight, +// blockHeightPreviousLosses, +// ) +// require.NoError(err) + +// testutil.InEpsilon5(s.T(), valueBundle.CombinedValue, "0.13832892076283418") +// testutil.InEpsilon5(s.T(), valueBundle.NaiveValue, "-0.217498746751143482") + +// for _, inference := range inferences.Inferences { +// found := false +// for _, infererValue := range valueBundle.InfererValues { +// if string(inference.Inferer) == infererValue.Worker { +// found = true +// require.Equal(inference.Value, infererValue.Value) +// } +// } +// require.True(found, "Inference not found") +// } + +// for _, forecasterValue := range valueBundle.ForecasterValues { +// switch string(forecasterValue.Worker) { +// case forecaster0: +// testutil.InEpsilon5(s.T(), forecasterValue.Value, "-0.16104230535974168") +// case forecaster1: +// testutil.InEpsilon5(s.T(), forecasterValue.Value, "-0.2129694366166174") +// case forecaster2: +// testutil.InEpsilon5(s.T(), forecasterValue.Value, "-0.19537706255730902") +// default: +// require.Fail("Unexpected forecaster %v", forecasterValue.Worker) +// } +// } + +// for _, oneOutInfererValue := range valueBundle.OneOutInfererValues { +// switch string(oneOutInfererValue.Worker) { +// case inferer0: +// testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, "-0.18159007177591316") +// case inferer1: +// testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, "-0.1891891776070881") +// case inferer2: +// testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, "-0.2453618383732347") +// case inferer3: +// testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, "-0.17135248130644976") +// case inferer4: +// testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, "-0.2519675192553942") +// default: +// require.Fail("Unexpected worker %v", oneOutInfererValue.Worker) +// } +// } + +// for _, oneOutForecasterValue := range valueBundle.OneOutForecasterValues { +// switch string(oneOutForecasterValue.Worker) { +// case forecaster0: +// testutil.InEpsilon5(s.T(), oneOutForecasterValue.Value, "-0.21430649513970956") +// case forecaster1: +// testutil.InEpsilon5(s.T(), oneOutForecasterValue.Value, "-0.20645616254043958") +// case forecaster2: +// testutil.InEpsilon5(s.T(), oneOutForecasterValue.Value, "-0.20875138413550787") +// default: +// require.Fail("Unexpected worker %v", oneOutForecasterValue.Worker) +// } +// } + +// for _, oneInForecasterValue := range valueBundle.OneInForecasterValues { +// switch string(oneInForecasterValue.Worker) { +// case forecaster0: +// testutil.InEpsilon5(s.T(), oneInForecasterValue.Value, "-0.20808933985257652") +// case forecaster1: +// testutil.InEpsilon5(s.T(), oneInForecasterValue.Value, "-0.21674386172872248") +// case forecaster2: +// testutil.InEpsilon5(s.T(), oneInForecasterValue.Value, "-0.21381179938550443") +// default: +// require.Fail("Unexpected worker %v", oneInForecasterValue.Worker) +// } +// } +// } + +// func (s *InferenceSynthesisTestSuite) TestGetNetworkInferencesAtBlockWithAllInferersForecastersNew() { +// s.SetupTest() +// epochGet := testutil.GetSimulatedValuesGetterForEpochs() +// epoch2Get := epochGet[302] +// epoch3Get := epochGet[303] + +// require := s.Require() +// keeper := s.emissionsKeeper + +// topicId := uint64(1) +// blockHeightInferences := int64(300) +// blockHeightPreviousLosses := int64(200) + +// simpleNonce := emissionstypes.Nonce{BlockHeight: blockHeightInferences} +// reputerRequestNonce := &emissionstypes.ReputerRequestNonce{ +// ReputerNonce: &emissionstypes.Nonce{BlockHeight: blockHeightPreviousLosses}, +// } + +//err := s.emissionsKeeper.SetTopic(s.ctx, topicId, emissionstypes.Topic{ +// Id: topicId, +// Creator: "creator", +// Metadata: "metadata", +// LossMethod: "mse", +// EpochLastEnded: 0, +// EpochLength: 100, +// GroundTruthLag: 10, +// WorkerSubmissionWindow: 10, +// PNorm: alloraMath.NewDecFromInt64(3), +// AlphaRegret: alloraMath.MustNewDecFromString("0.1"), +// AllowNegative: false, +// Epsilon: alloraMath.MustNewDecFromString("0.0001"), +//}) +//s.Require().NoError(err) + +// inferer0 := "allo1m5v6rgjtxh4xszrrzqacwjh4ve6r0za2gxx9qr" +// inferer1 := "allo1e7cj9839ht2xm8urynqs5279hrvqd8neusvp2x" +// inferer2 := "allo1k9ss0xfer54nyack5678frl36e5g3rj2yzxtfj" +// inferer3 := "allo18ljxewge4vqrkk09tm5heldqg25yj8d9ekgkw5" +// inferer4 := "allo1k36ljvn8z0u49sagdg46p75psgreh23kdjn3l0" +// infererAddresses := []string{inferer0, inferer1, inferer2, inferer3, inferer4} + +// forecaster0 := "allo1pluvmvsmvecg2ccuqxa6ugzvc3a5udfyy0t76v" +// forecaster1 := "allo1e92saykj94jw3z55g4d3lfz098ppk0suwzc03a" +// forecaster2 := "allo1pk6mxny5p79t8zhkm23z7u3zmfuz2gn0snxkkt" +// forecasterAddresses := []string{forecaster0, forecaster1, forecaster2} + +// // Set Previous Loss +// err = keeper.InsertNetworkLossBundleAtBlock(s.ctx, topicId, blockHeightPreviousLosses, emissionstypes.ValueBundle{ +// CombinedValue: epoch2Get("network_loss"), +// ReputerRequestNonce: reputerRequestNonce, +// TopicId: topicId, +// }) +// require.NoError(err) + +// inferences, err := testutil.GetInferencesFromCsv(topicId, blockHeightInferences, infererAddresses, epoch3Get) +// s.Require().NoError(err) + +// err = keeper.InsertInferences(s.ctx, topicId, simpleNonce, inferences) +// s.Require().NoError(err) + +// forecasts, err := testutil.GetForecastsFromCsv(topicId, blockHeightInferences, infererAddresses, forecasterAddresses, epoch3Get) +// s.Require().NoError(err) + +// err = keeper.InsertForecasts(s.ctx, topicId, simpleNonce, forecasts) +// s.Require().NoError(err) + +// // Calculate +// valueBundle, _, _, _, err := +// inferencesynthesis.GetNetworkInferencesAtBlock( +// s.ctx, +// s.emissionsKeeper, +// topicId, +// blockHeightInferences, +// blockHeightPreviousLosses, +// ) + +// require.NoError(err) +// testutil.InEpsilon5(s.T(), valueBundle.CombinedValue, "-0.20711031728617318") +// testutil.InEpsilon5(s.T(), valueBundle.NaiveValue, "-0.217498746751143482") + +// for _, inference := range inferences.Inferences { +// found := false +// for _, infererValue := range valueBundle.InfererValues { +// if string(inference.Inferer) == infererValue.Worker { +// found = true +// require.Equal(inference.Value, infererValue.Value) +// } +// } +// require.True(found, "Inference not found") +// } + +// for _, forecasterValue := range valueBundle.ForecasterValues { +// switch string(forecasterValue.Worker) { +// case forecaster0: +// testutil.InEpsilon5(s.T(), forecasterValue.Value, "-0.16104230535974168") +// case forecaster1: +// testutil.InEpsilon5(s.T(), forecasterValue.Value, "-0.2129694366166174") +// case forecaster2: +// testutil.InEpsilon5(s.T(), forecasterValue.Value, "-0.19537706255730902") +// default: +// require.Fail("Unexpected forecaster %v", forecasterValue.Worker) +// } +// } + +// for _, oneOutInfererValue := range valueBundle.OneOutInfererValues { +// switch string(oneOutInfererValue.Worker) { +// case inferer0: +// testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, "-0.17891655703176346") +// case inferer1: +// testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, "-0.18952169458753146") +// case inferer2: +// testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, "-0.24439774598242406") +// case inferer3: +// testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, "-0.1731395049235943") +// case inferer4: +// testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, "-0.24978380449844517") +// default: +// require.Fail("Unexpected worker %v", oneOutInfererValue.Worker) +// } +// } + +// for _, oneOutForecasterValue := range valueBundle.OneOutForecasterValues { +// switch string(oneOutForecasterValue.Worker) { +// case forecaster0: +// testutil.InEpsilon5(s.T(), oneOutForecasterValue.Value, "-0.21369146184709198") +// case forecaster1: +// testutil.InEpsilon5(s.T(), oneOutForecasterValue.Value, "-0.20627330023896687") +// case forecaster2: +// testutil.InEpsilon5(s.T(), oneOutForecasterValue.Value, "-0.2087864965331538") +// default: +// require.Fail("Unexpected worker %v", oneOutForecasterValue.Worker) +// } +// } + +// for _, oneInForecasterValue := range valueBundle.OneInForecasterValues { +// switch string(oneInForecasterValue.Worker) { +// case forecaster0: +// testutil.InEpsilon5(s.T(), oneInForecasterValue.Value, "-0.2080893398525765") +// case forecaster1: +// testutil.InEpsilon5(s.T(), oneInForecasterValue.Value, "-0.21674386172872245") +// case forecaster2: +// testutil.InEpsilon5(s.T(), oneInForecasterValue.Value, "-0.2138117993855044") +// default: +// require.Fail("Unexpected worker %v", oneInForecasterValue.Worker) +// } +// } +// } + +func (s *InferenceSynthesisTestSuite) TestGetLatestNetworkInferenceFromCsv() { s.SetupTest() - epochGet := GetSimulatedValuesGetterForEpochs() - epoch2Get := epochGet[2] - epoch3Get := epochGet[3] + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch2Get := epochGet[302] + epoch3Get := epochGet[303] require := s.Require() keeper := s.emissionsKeeper @@ -434,251 +612,56 @@ func (s *InferenceSynthesisTestSuite) TestGetLatestNetworkInference() { } err := s.emissionsKeeper.SetTopic(s.ctx, topicId, emissionstypes.Topic{ - Id: topicId, - Creator: "creator", - Metadata: "metadata", - LossLogic: "losslogic", - LossMethod: "lossmethod", - InferenceLogic: "inferencelogic", - InferenceMethod: "inferencemethod", - EpochLastEnded: 0, - EpochLength: 100, - GroundTruthLag: 10, - DefaultArg: "defaultarg", - PNorm: alloraMath.NewDecFromInt64(3), - AlphaRegret: alloraMath.MustNewDecFromString("0.1"), - AllowNegative: false, + Id: topicId, + Creator: "creator", + Metadata: "metadata", + LossMethod: "mse", + EpochLastEnded: 0, + EpochLength: 100, + GroundTruthLag: 10, + WorkerSubmissionWindow: 10, + PNorm: alloraMath.NewDecFromInt64(3), + AlphaRegret: alloraMath.MustNewDecFromString("0.1"), + AllowNegative: false, + Epsilon: alloraMath.MustNewDecFromString("0.01"), }) s.Require().NoError(err) - reputer0 := "allo1m5v6rgjtxh4xszrrzqacwjh4ve6r0za2gxx9qr" - reputer1 := "allo1e7cj9839ht2xm8urynqs5279hrvqd8neusvp2x" - reputer2 := "allo1k9ss0xfer54nyack5678frl36e5g3rj2yzxtfj" - reputer3 := "allo18ljxewge4vqrkk09tm5heldqg25yj8d9ekgkw5" - reputer4 := "allo1k36ljvn8z0u49sagdg46p75psgreh23kdjn3l0" + inferer0 := "allo1m5v6rgjtxh4xszrrzqacwjh4ve6r0za2gxx9qr" + inferer1 := "allo1e7cj9839ht2xm8urynqs5279hrvqd8neusvp2x" + inferer2 := "allo1k9ss0xfer54nyack5678frl36e5g3rj2yzxtfj" + inferer3 := "allo18ljxewge4vqrkk09tm5heldqg25yj8d9ekgkw5" + inferer4 := "allo1k36ljvn8z0u49sagdg46p75psgreh23kdjn3l0" + infererAddresses := []string{inferer0, inferer1, inferer2, inferer3, inferer4} forecaster0 := "allo1pluvmvsmvecg2ccuqxa6ugzvc3a5udfyy0t76v" forecaster1 := "allo1e92saykj94jw3z55g4d3lfz098ppk0suwzc03a" forecaster2 := "allo1pk6mxny5p79t8zhkm23z7u3zmfuz2gn0snxkkt" + forecasterAddresses := []string{forecaster0, forecaster1, forecaster2} // Set Previous Loss err = keeper.InsertNetworkLossBundleAtBlock(s.ctx, topicId, blockHeightPreviousLosses, emissionstypes.ValueBundle{ - CombinedValue: epoch2Get("network_loss_reputers"), + CombinedValue: epoch2Get("network_loss"), ReputerRequestNonce: reputerRequestNonce, TopicId: topicId, }) require.NoError(err) - // Set Inferences - inferences := emissionstypes.Inferences{ - Inferences: []*emissionstypes.Inference{ - { - Inferer: reputer0, - Value: epoch3Get("inference_0"), - TopicId: topicId, - BlockHeight: blockHeightInferences, - }, - { - Inferer: reputer1, - Value: epoch3Get("inference_1"), - TopicId: topicId, - BlockHeight: blockHeightInferences, - }, - { - Inferer: reputer2, - Value: epoch3Get("inference_2"), - TopicId: topicId, - BlockHeight: blockHeightInferences, - }, - { - Inferer: reputer3, - Value: epoch3Get("inference_3"), - TopicId: topicId, - BlockHeight: blockHeightInferences, - }, - { - Inferer: reputer4, - Value: epoch3Get("inference_4"), - TopicId: topicId, - BlockHeight: blockHeightInferences, - }, - }, - } + inferences, err := testutil.GetInferencesFromCsv(topicId, blockHeightInferences, infererAddresses, epoch3Get) + s.Require().NoError(err) err = keeper.InsertInferences(s.ctx, topicId, simpleNonce, inferences) s.Require().NoError(err) - // Set Forecasts - forecasts := emissionstypes.Forecasts{ - Forecasts: []*emissionstypes.Forecast{ - { - Forecaster: forecaster0, - ForecastElements: []*emissionstypes.ForecastElement{ - { - Inferer: reputer0, - Value: epoch3Get("forecasted_loss_0_for_0"), - }, - { - Inferer: reputer1, - Value: epoch3Get("forecasted_loss_0_for_1"), - }, - { - Inferer: reputer2, - Value: epoch3Get("forecasted_loss_0_for_2"), - }, - { - Inferer: reputer3, - Value: epoch3Get("forecasted_loss_0_for_3"), - }, - { - Inferer: reputer4, - Value: epoch3Get("forecasted_loss_0_for_4"), - }, - }, - TopicId: topicId, - BlockHeight: blockHeightInferences, - }, - { - Forecaster: forecaster1, - ForecastElements: []*emissionstypes.ForecastElement{ - { - Inferer: reputer0, - Value: epoch3Get("forecasted_loss_1_for_0"), - }, - { - Inferer: reputer1, - Value: epoch3Get("forecasted_loss_1_for_1"), - }, - { - Inferer: reputer2, - Value: epoch3Get("forecasted_loss_1_for_2"), - }, - { - Inferer: reputer3, - Value: epoch3Get("forecasted_loss_1_for_3"), - }, - { - Inferer: reputer4, - Value: epoch3Get("forecasted_loss_1_for_4"), - }, - }, - TopicId: topicId, - BlockHeight: blockHeightInferences, - }, - { - Forecaster: forecaster2, - ForecastElements: []*emissionstypes.ForecastElement{ - { - Inferer: reputer0, - Value: epoch3Get("forecasted_loss_2_for_0"), - }, - { - Inferer: reputer1, - Value: epoch3Get("forecasted_loss_2_for_1"), - }, - { - Inferer: reputer2, - Value: epoch3Get("forecasted_loss_2_for_2"), - }, - { - Inferer: reputer3, - Value: epoch3Get("forecasted_loss_2_for_3"), - }, - { - Inferer: reputer4, - Value: epoch3Get("forecasted_loss_2_for_4"), - }, - }, - TopicId: topicId, - BlockHeight: blockHeightInferences, - }, - }, - } + forecasts, err := testutil.GetForecastsFromCsv(topicId, blockHeightInferences, infererAddresses, forecasterAddresses, epoch3Get) + s.Require().NoError(err) err = keeper.InsertForecasts(s.ctx, topicId, simpleNonce, forecasts) s.Require().NoError(err) - // Set inferer network regrets - infererNetworkRegrets := map[string]inferencesynthesis.Regret{ - reputer0: epoch2Get("inference_regret_worker_0"), - reputer1: epoch2Get("inference_regret_worker_1"), - reputer2: epoch2Get("inference_regret_worker_2"), - reputer3: epoch2Get("inference_regret_worker_3"), - reputer4: epoch2Get("inference_regret_worker_4"), - } - - for inferer, regret := range infererNetworkRegrets { - s.emissionsKeeper.SetInfererNetworkRegret( - s.ctx, - topicId, - inferer, - emissionstypes.TimestampedValue{BlockHeight: blockHeightInferences, Value: regret}, - ) - } - - // Set forecaster network regrets - forecasterNetworkRegrets := map[string]inferencesynthesis.Regret{ - forecaster0: epoch2Get("inference_regret_worker_5"), - forecaster1: epoch2Get("inference_regret_worker_6"), - forecaster2: epoch2Get("inference_regret_worker_7"), - } - - for forecaster, regret := range forecasterNetworkRegrets { - s.emissionsKeeper.SetForecasterNetworkRegret( - s.ctx, - topicId, - forecaster, - emissionstypes.TimestampedValue{BlockHeight: blockHeightInferences, Value: regret}, - ) - } - - // Set one in forecaster network regrets - setOneInForecasterNetworkRegret := func(forecaster string, inferer string, value string) { - keeper.SetOneInForecasterNetworkRegret( - s.ctx, - topicId, - forecaster, - inferer, - emissionstypes.TimestampedValue{ - BlockHeight: blockHeightInferences, - Value: alloraMath.MustNewDecFromString(value), - }, - ) - } - - /// Epoch 3 values - setOneInForecasterNetworkRegret(forecaster0, reputer0, epoch2Get("inference_regret_worker_0_onein_0").String()) - setOneInForecasterNetworkRegret(forecaster0, reputer1, epoch2Get("inference_regret_worker_1_onein_0").String()) - setOneInForecasterNetworkRegret(forecaster0, reputer2, epoch2Get("inference_regret_worker_2_onein_0").String()) - setOneInForecasterNetworkRegret(forecaster0, reputer3, epoch2Get("inference_regret_worker_3_onein_0").String()) - setOneInForecasterNetworkRegret(forecaster0, reputer4, epoch2Get("inference_regret_worker_4_onein_0").String()) - - keeper.SetOneInForecasterSelfNetworkRegret(s.ctx, topicId, forecaster0, emissionstypes.TimestampedValue{ - BlockHeight: blockHeightInferences, - Value: epoch2Get("inference_regret_worker_5_onein_0"), - }) - - setOneInForecasterNetworkRegret(forecaster1, reputer0, epoch2Get("inference_regret_worker_0_onein_1").String()) - setOneInForecasterNetworkRegret(forecaster1, reputer1, epoch2Get("inference_regret_worker_1_onein_1").String()) - setOneInForecasterNetworkRegret(forecaster1, reputer2, epoch2Get("inference_regret_worker_2_onein_1").String()) - setOneInForecasterNetworkRegret(forecaster1, reputer3, epoch2Get("inference_regret_worker_3_onein_1").String()) - setOneInForecasterNetworkRegret(forecaster1, reputer4, epoch2Get("inference_regret_worker_4_onein_1").String()) - - keeper.SetOneInForecasterSelfNetworkRegret(s.ctx, topicId, forecaster1, emissionstypes.TimestampedValue{ - BlockHeight: blockHeightInferences, - Value: epoch2Get("inference_regret_worker_5_onein_1"), - }) - - setOneInForecasterNetworkRegret(forecaster2, reputer0, epoch2Get("inference_regret_worker_0_onein_2").String()) - setOneInForecasterNetworkRegret(forecaster2, reputer1, epoch2Get("inference_regret_worker_1_onein_2").String()) - setOneInForecasterNetworkRegret(forecaster2, reputer2, epoch2Get("inference_regret_worker_2_onein_2").String()) - setOneInForecasterNetworkRegret(forecaster2, reputer3, epoch2Get("inference_regret_worker_3_onein_2").String()) - setOneInForecasterNetworkRegret(forecaster2, reputer4, epoch2Get("inference_regret_worker_4_onein_2").String()) - - keeper.SetOneInForecasterSelfNetworkRegret(s.ctx, topicId, forecaster2, emissionstypes.TimestampedValue{ - BlockHeight: blockHeightInferences, - Value: epoch2Get("inference_regret_worker_5_onein_2"), - }) + // Set regrets from the previous epoch + err = testutil.SetRegretsFromPreviousEpoch(s.ctx, s.emissionsKeeper, topicId, blockHeightInferences, infererAddresses, forecasterAddresses, epoch2Get) + s.Require().NoError(err) // Calculate valueBundle, _, _, _, _, _, err := @@ -688,9 +671,10 @@ func (s *InferenceSynthesisTestSuite) TestGetLatestNetworkInference() { topicId, ) require.NoError(err) - testutil.InEpsilon2(s.T(), valueBundle.CombinedValue, epoch3Get("network_inference").String()) - testutil.InEpsilon2(s.T(), valueBundle.NaiveValue, epoch3Get("network_naive_inference").String()) + testutil.InEpsilon5(s.T(), valueBundle.CombinedValue, epoch3Get("network_inference").String()) + testutil.InEpsilon5(s.T(), valueBundle.NaiveValue, epoch3Get("network_naive_inference").String()) + s.Require().Len(valueBundle.InfererValues, 5) for _, inference := range inferences.Inferences { found := false for _, infererValue := range valueBundle.InfererValues { @@ -701,57 +685,62 @@ func (s *InferenceSynthesisTestSuite) TestGetLatestNetworkInference() { } require.True(found, "Inference not found") } + + s.Require().Len(valueBundle.ForecasterValues, 3) for _, forecasterValue := range valueBundle.ForecasterValues { switch string(forecasterValue.Worker) { case forecaster0: - testutil.InEpsilon2(s.T(), forecasterValue.Value, epoch3Get("forecast_implied_inference_0").String()) + testutil.InEpsilon5(s.T(), forecasterValue.Value, epoch3Get("forecast_implied_inference_0").String()) case forecaster1: - testutil.InEpsilon2(s.T(), forecasterValue.Value, epoch3Get("forecast_implied_inference_1").String()) + testutil.InEpsilon5(s.T(), forecasterValue.Value, epoch3Get("forecast_implied_inference_1").String()) case forecaster2: - testutil.InEpsilon2(s.T(), forecasterValue.Value, epoch3Get("forecast_implied_inference_2").String()) + testutil.InEpsilon5(s.T(), forecasterValue.Value, epoch3Get("forecast_implied_inference_2").String()) default: require.Fail("Unexpected forecaster %v", forecasterValue.Worker) } } + s.Require().Len(valueBundle.OneOutInfererValues, 5) for _, oneOutInfererValue := range valueBundle.OneOutInfererValues { switch string(oneOutInfererValue.Worker) { - case reputer0: - testutil.InEpsilon2(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_0").String()) - case reputer1: - testutil.InEpsilon2(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_1").String()) - case reputer2: - testutil.InEpsilon2(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_2").String()) - case reputer3: - testutil.InEpsilon2(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_3").String()) - case reputer4: - testutil.InEpsilon2(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_4").String()) + case inferer0: + testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_0").String()) + case inferer1: + testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_1").String()) + case inferer2: + testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_2").String()) + case inferer3: + testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_3").String()) + case inferer4: + testutil.InEpsilon5(s.T(), oneOutInfererValue.Value, epoch3Get("network_inference_oneout_4").String()) default: require.Fail("Unexpected worker %v", oneOutInfererValue.Worker) } } + s.Require().Len(valueBundle.OneOutForecasterValues, 3) for _, oneOutForecasterValue := range valueBundle.OneOutForecasterValues { switch string(oneOutForecasterValue.Worker) { case forecaster0: - testutil.InEpsilon2(s.T(), oneOutForecasterValue.Value, epoch3Get("network_inference_oneout_5").String()) + testutil.InEpsilon5(s.T(), oneOutForecasterValue.Value, epoch3Get("network_inference_oneout_5").String()) case forecaster1: - testutil.InEpsilon2(s.T(), oneOutForecasterValue.Value, epoch3Get("network_inference_oneout_6").String()) + testutil.InEpsilon5(s.T(), oneOutForecasterValue.Value, epoch3Get("network_inference_oneout_6").String()) case forecaster2: - testutil.InEpsilon2(s.T(), oneOutForecasterValue.Value, epoch3Get("network_inference_oneout_7").String()) + testutil.InEpsilon5(s.T(), oneOutForecasterValue.Value, epoch3Get("network_inference_oneout_7").String()) default: require.Fail("Unexpected worker %v", oneOutForecasterValue.Worker) } } + s.Require().Len(valueBundle.OneInForecasterValues, 3) for _, oneInForecasterValue := range valueBundle.OneInForecasterValues { switch string(oneInForecasterValue.Worker) { case forecaster0: - testutil.InEpsilon2(s.T(), oneInForecasterValue.Value, epoch3Get("network_naive_inference_onein_0").String()) + testutil.InEpsilon5(s.T(), oneInForecasterValue.Value, epoch3Get("network_naive_inference_onein_0").String()) case forecaster1: - testutil.InEpsilon2(s.T(), oneInForecasterValue.Value, epoch3Get("network_naive_inference_onein_1").String()) + testutil.InEpsilon5(s.T(), oneInForecasterValue.Value, epoch3Get("network_naive_inference_onein_1").String()) case forecaster2: - testutil.InEpsilon2(s.T(), oneInForecasterValue.Value, epoch3Get("network_naive_inference_onein_2").String()) + testutil.InEpsilon5(s.T(), oneInForecasterValue.Value, epoch3Get("network_naive_inference_onein_2").String()) default: require.Fail("Unexpected worker %v", oneInForecasterValue.Worker) } diff --git a/x/emissions/keeper/inference_synthesis/network_losses.go b/x/emissions/keeper/inference_synthesis/network_losses.go index 1e1a6ab8b..7cff91ce9 100644 --- a/x/emissions/keeper/inference_synthesis/network_losses.go +++ b/x/emissions/keeper/inference_synthesis/network_losses.go @@ -70,6 +70,7 @@ func CalcNetworkLosses( runningWeightedInfererLosses := make(map[Worker]*RunningWeightedLoss) runningWeightedForecasterLosses := make(map[Worker]*RunningWeightedLoss) runningWeightedNaiveLoss := RunningWeightedLoss{alloraMath.ZeroDec(), alloraMath.ZeroDec()} + runningWeightedOneOutInfererForecasterLosses := make(map[Worker]map[Worker]*RunningWeightedLoss) runningWeightedOneOutInfererLosses := make(map[Worker]*RunningWeightedLoss) // Withheld worker -> Forecaster -> Loss runningWeightedOneOutForecasterLosses := make(map[Worker]*RunningWeightedLoss) runningWeightedOneInForecasterLosses := make(map[Worker]*RunningWeightedLoss) @@ -126,6 +127,28 @@ func CalcNetworkLosses( return emissions.ValueBundle{}, errorsmod.Wrapf(err, "Error updating running weighted average for naive loss: ") } + // Update one-out inferer forecaster losses + for _, losses := range report.ValueBundle.OneOutInfererForecasterValues { + for _, loss := range losses.OneOutInfererValues { + if runningWeightedOneOutInfererForecasterLosses[losses.Forecaster][loss.Worker] == nil { + // initialize first map + if runningWeightedOneOutInfererForecasterLosses[losses.Forecaster] == nil { + runningWeightedOneOutInfererForecasterLosses[losses.Forecaster] = make(map[Worker]*RunningWeightedLoss) + } + runningWeightedOneOutInfererForecasterLosses[losses.Forecaster][loss.Worker] = &RunningWeightedLoss{ + UnnormalizedWeightedLoss: alloraMath.ZeroDec(), + SumWeight: alloraMath.ZeroDec(), + } + } + + nextAvg, err := RunningWeightedAvgUpdate(runningWeightedOneOutInfererForecasterLosses[losses.Forecaster][loss.Worker], stakeAmount, loss.Value) + if err != nil { + return emissions.ValueBundle{}, errorsmod.Wrapf(err, "Error updating running weighted average for one-out inferer forecaster") + } + runningWeightedOneOutInfererForecasterLosses[losses.Forecaster][loss.Worker] = &nextAvg + } + } + // Update one-out inferer losses for _, loss := range report.ValueBundle.OneOutInfererValues { if runningWeightedOneOutInfererLosses[loss.Worker] == nil { @@ -196,15 +219,28 @@ func CalcNetworkLosses( oneOutInfererLosses := convertMapOfRunningWeightedLossesToWorkerAttributedValue[emissions.WithheldWorkerAttributedValue](runningWeightedOneOutInfererLosses, sortedInferers, epsilon) oneOutForecasterLosses := convertMapOfRunningWeightedLossesToWorkerAttributedValue[emissions.WithheldWorkerAttributedValue](runningWeightedOneOutForecasterLosses, sortedForecasters, epsilon) oneInForecasterLosses := convertMapOfRunningWeightedLossesToWorkerAttributedValue[emissions.WorkerAttributedValue](runningWeightedOneInForecasterLosses, sortedForecasters, epsilon) + oneOutInfererForecasterLosses := make([]*emissions.OneOutInfererForecasterValues, 0) + for _, forecaster := range sortedForecasters { + innerMap, ok := runningWeightedOneOutInfererForecasterLosses[forecaster] + if !ok { + continue + } + oneOutInfererValues := convertMapOfRunningWeightedLossesToWorkerAttributedValue[emissions.WithheldWorkerAttributedValue](innerMap, sortedInferers, epsilon) + oneOutInfererForecasterLosses = append(oneOutInfererForecasterLosses, &emissions.OneOutInfererForecasterValues{ + Forecaster: forecaster, + OneOutInfererValues: oneOutInfererValues, + }) + } output := emissions.ValueBundle{ - CombinedValue: combinedValue, - InfererValues: infererLosses, - ForecasterValues: forecasterLosses, - NaiveValue: naiveValue, - OneOutInfererValues: oneOutInfererLosses, - OneOutForecasterValues: oneOutForecasterLosses, - OneInForecasterValues: oneInForecasterLosses, + CombinedValue: combinedValue, + InfererValues: infererLosses, + ForecasterValues: forecasterLosses, + NaiveValue: naiveValue, + OneOutInfererForecasterValues: oneOutInfererForecasterLosses, + OneOutInfererValues: oneOutInfererLosses, + OneOutForecasterValues: oneOutForecasterLosses, + OneInForecasterValues: oneInForecasterLosses, } return output, nil diff --git a/x/emissions/keeper/inference_synthesis/network_losses_test.go b/x/emissions/keeper/inference_synthesis/network_losses_test.go index 5b1abcddf..2a0dff851 100644 --- a/x/emissions/keeper/inference_synthesis/network_losses_test.go +++ b/x/emissions/keeper/inference_synthesis/network_losses_test.go @@ -3,7 +3,7 @@ package inference_synthesis_test import ( cosmosMath "cosmossdk.io/math" alloraMath "github.com/allora-network/allora-chain/math" - + "github.com/allora-network/allora-chain/test/testutil" "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis" emissions "github.com/allora-network/allora-chain/x/emissions/types" ) @@ -414,6 +414,164 @@ func (s *InferenceSynthesisTestSuite) TestCalcNetworkLosses() { } } +func (s *InferenceSynthesisTestSuite) TestCalcNetworkLossesFromCsv() { + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch301Get := epochGet[301] + topicId := uint64(1) + epsilon := alloraMath.MustNewDecFromString("1e-4") + + reputer0 := s.addrs[0].String() + reputer1 := s.addrs[1].String() + reputer2 := s.addrs[2].String() + reputer3 := s.addrs[3].String() + reputer4 := s.addrs[4].String() + reputerAddresses := []string{reputer0, reputer1, reputer2, reputer3, reputer4} + + inferer0 := s.addrs[5].String() + inferer1 := s.addrs[6].String() + inferer2 := s.addrs[7].String() + inferer3 := s.addrs[8].String() + inferer4 := s.addrs[9].String() + infererAddresses := []string{inferer0, inferer1, inferer2, inferer3, inferer4} + + forecaster0 := s.addrs[10].String() + forecaster1 := s.addrs[11].String() + forecaster2 := s.addrs[12].String() + forecasterAddresses := []string{forecaster0, forecaster1, forecaster2} + + cosmosOneE18 := inference_synthesis.CosmosIntOneE18() + cosmosOneE18Dec, err := alloraMath.NewDecFromSdkInt(cosmosOneE18) + s.Require().NoError(err) + + reputer0Stake, err := epoch301Get("reputer_stake_0").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer0StakeInt, err := reputer0Stake.BigInt() + s.Require().NoError(err) + reputer1Stake, err := epoch301Get("reputer_stake_1").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer1StakeInt, err := reputer1Stake.BigInt() + s.Require().NoError(err) + reputer2Stake, err := epoch301Get("reputer_stake_2").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer2StakeInt, err := reputer2Stake.BigInt() + s.Require().NoError(err) + reputer3Stake, err := epoch301Get("reputer_stake_3").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer3StakeInt, err := reputer3Stake.BigInt() + s.Require().NoError(err) + reputer4Stake, err := epoch301Get("reputer_stake_4").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer4StakeInt, err := reputer4Stake.BigInt() + s.Require().NoError(err) + + var stakesByReputer = map[string]cosmosMath.Int{ + reputer0: cosmosMath.NewIntFromBigInt(reputer0StakeInt), + reputer1: cosmosMath.NewIntFromBigInt(reputer1StakeInt), + reputer2: cosmosMath.NewIntFromBigInt(reputer2StakeInt), + reputer3: cosmosMath.NewIntFromBigInt(reputer3StakeInt), + reputer4: cosmosMath.NewIntFromBigInt(reputer4StakeInt), + } + + reportedLosses, err := testutil.GetReputersDataFromCsv( + topicId, + infererAddresses, + forecasterAddresses, + reputerAddresses, + epoch301Get, + ) + s.Require().NoError(err) + + networkLosses, err := inference_synthesis.CalcNetworkLosses(stakesByReputer, reportedLosses, epsilon) + s.Require().NoError(err) + + expectedNetworkLosses, err := testutil.GetNetworkLossFromCsv( + topicId, + infererAddresses, + forecasterAddresses, + epoch301Get, + ) + s.Require().NoError(err) + + testutil.InEpsilon5(s.T(), expectedNetworkLosses.CombinedValue, networkLosses.CombinedValue.String()) + testutil.InEpsilon5(s.T(), expectedNetworkLosses.NaiveValue, networkLosses.NaiveValue.String()) + s.Require().Len(networkLosses.InfererValues, len(expectedNetworkLosses.InfererValues)) + for _, expectedValue := range expectedNetworkLosses.InfererValues { + found := false + for _, workerAttributedValue := range networkLosses.InfererValues { + if workerAttributedValue.Worker == expectedValue.Worker { + found = true + testutil.InEpsilon5(s.T(), expectedValue.Value, workerAttributedValue.Value.String()) + } + } + s.Require().True(found) + } + s.Require().Len(networkLosses.ForecasterValues, len(expectedNetworkLosses.ForecasterValues)) + for _, expectedValue := range expectedNetworkLosses.ForecasterValues { + found := false + for _, workerAttributedValue := range networkLosses.ForecasterValues { + if workerAttributedValue.Worker == expectedValue.Worker { + found = true + testutil.InEpsilon5(s.T(), expectedValue.Value, workerAttributedValue.Value.String()) + } + } + s.Require().True(found) + } + s.Require().Len(networkLosses.OneOutInfererForecasterValues, len(expectedNetworkLosses.OneOutInfererForecasterValues)) + for _, expectedValue := range expectedNetworkLosses.OneOutInfererForecasterValues { + found := false + for _, workerAttributedValue := range networkLosses.OneOutInfererForecasterValues { + if workerAttributedValue.Forecaster == expectedValue.Forecaster { + found = true + s.Require().Len(workerAttributedValue.OneOutInfererValues, len(expectedValue.OneOutInfererValues)) + for _, expectedOneOutInfererValue := range expectedValue.OneOutInfererValues { + foundOneOutInferer := false + for _, oneOutInfererValue := range workerAttributedValue.OneOutInfererValues { + if oneOutInfererValue.Worker == expectedOneOutInfererValue.Worker { + foundOneOutInferer = true + testutil.InEpsilon5(s.T(), expectedOneOutInfererValue.Value, oneOutInfererValue.Value.String()) + } + } + s.Require().True(foundOneOutInferer) + } + } + } + s.Require().True(found) + } + s.Require().Len(networkLosses.OneOutInfererValues, len(expectedNetworkLosses.OneOutInfererValues)) + for _, expectedValue := range expectedNetworkLosses.OneOutInfererValues { + found := false + for _, workerAttributedValue := range networkLosses.OneOutInfererValues { + if workerAttributedValue.Worker == expectedValue.Worker { + found = true + testutil.InEpsilon5(s.T(), expectedValue.Value, workerAttributedValue.Value.String()) + } + } + s.Require().True(found) + } + s.Require().Len(networkLosses.OneOutForecasterValues, len(expectedNetworkLosses.OneOutForecasterValues)) + for _, expectedValue := range expectedNetworkLosses.OneOutForecasterValues { + found := false + for _, workerAttributedValue := range networkLosses.OneOutForecasterValues { + if workerAttributedValue.Worker == expectedValue.Worker { + found = true + testutil.InEpsilon5(s.T(), expectedValue.Value, workerAttributedValue.Value.String()) + } + } + s.Require().True(found) + } + s.Require().Len(networkLosses.OneInForecasterValues, len(expectedNetworkLosses.OneInForecasterValues)) + for _, expectedValue := range expectedNetworkLosses.OneInForecasterValues { + found := false + for _, workerAttributedValue := range networkLosses.OneInForecasterValues { + if workerAttributedValue.Worker == expectedValue.Worker { + found = true + testutil.InEpsilon5(s.T(), expectedValue.Value, workerAttributedValue.Value.String()) + } + } + s.Require().True(found) + } +} + func (s *InferenceSynthesisTestSuite) TestCalcNetworkLossesCombined() { tests := append(getTestCasesOneWorker(), getTestCasesTwoWorkers()...) diff --git a/x/emissions/keeper/inference_synthesis/network_regrets.go b/x/emissions/keeper/inference_synthesis/network_regrets.go index dfda33d71..85798d846 100644 --- a/x/emissions/keeper/inference_synthesis/network_regrets.go +++ b/x/emissions/keeper/inference_synthesis/network_regrets.go @@ -11,13 +11,14 @@ import ( ) type networkLossesByWorker struct { - CombinedLoss Loss - InfererLosses map[Worker]Loss - ForecasterLosses map[Worker]Loss - NaiveLoss Loss - OneOutInfererLosses map[Worker]Loss - OneOutForecasterLosses map[Worker]Loss - OneInForecasterLosses map[Worker]Loss + CombinedLoss Loss + InfererLosses map[Worker]Loss + ForecasterLosses map[Worker]Loss + NaiveLoss Loss + OneOutInfererForecasterLosses map[Worker]map[Worker]Loss + OneOutInfererLosses map[Worker]Loss + OneOutForecasterLosses map[Worker]Loss + OneInForecasterLosses map[Worker]Loss } // Convert a ValueBundle to a networkLossesByWorker @@ -34,6 +35,16 @@ func ConvertValueBundleToNetworkLossesByWorker( forecasterLosses[forecaster.Worker] = forecaster.Value } + oneOutInfererForecasterLosses := make(map[Worker]map[Worker]Loss) + for _, oneOutInfererForecaster := range valueBundle.OneOutInfererForecasterValues { + if _, ok := oneOutInfererForecasterLosses[oneOutInfererForecaster.Forecaster]; !ok { + oneOutInfererForecasterLosses[oneOutInfererForecaster.Forecaster] = make(map[Worker]Loss) + } + for _, infererLoss := range oneOutInfererForecaster.OneOutInfererValues { + oneOutInfererForecasterLosses[oneOutInfererForecaster.Forecaster][infererLoss.Worker] = infererLoss.Value + } + } + oneOutInfererLosses := make(map[Worker]Loss) for _, oneOutInferer := range valueBundle.OneOutInfererValues { oneOutInfererLosses[oneOutInferer.Worker] = oneOutInferer.Value @@ -50,13 +61,14 @@ func ConvertValueBundleToNetworkLossesByWorker( } return networkLossesByWorker{ - CombinedLoss: valueBundle.CombinedValue, - InfererLosses: infererLosses, - ForecasterLosses: forecasterLosses, - NaiveLoss: valueBundle.NaiveValue, - OneOutInfererLosses: oneOutInfererLosses, - OneOutForecasterLosses: oneOutForecasterLosses, - OneInForecasterLosses: oneInForecasterLosses, + CombinedLoss: valueBundle.CombinedValue, + InfererLosses: infererLosses, + ForecasterLosses: forecasterLosses, + NaiveLoss: valueBundle.NaiveValue, + OneOutInfererForecasterLosses: oneOutInfererForecasterLosses, + OneOutInfererLosses: oneOutInfererLosses, + OneOutForecasterLosses: oneOutForecasterLosses, + OneInForecasterLosses: oneInForecasterLosses, } } @@ -102,18 +114,19 @@ func GetCalcSetNetworkRegrets( workersRegrets := make([]alloraMath.Dec, 0) - // Get old regret R_{i-1,j} and Calculate then Set the new regrets R_ij for inferers sort.Slice(networkLosses.InfererValues, func(i, j int) bool { return networkLosses.InfererValues[i].Worker < networkLosses.InfererValues[j].Worker }) + + // R_ij - Inferer Regrets for _, infererLoss := range networkLosses.InfererValues { lastRegret, newParticipant, err := k.GetInfererNetworkRegret(ctx, topicId, infererLoss.Worker) if err != nil { return errorsmod.Wrapf(err, "failed to get inferer regret") } newInfererRegret, err := ComputeAndBuildEMRegret( - networkLosses.CombinedValue, - networkLossesByWorker.InfererLosses[infererLoss.Worker], + networkLosses.CombinedValue, // L_i + networkLossesByWorker.InfererLosses[infererLoss.Worker], // L_ij lastRegret.Value, alpha, blockHeight, @@ -121,24 +134,28 @@ func GetCalcSetNetworkRegrets( if err != nil { return errorsmod.Wrapf(err, "Error computing and building inferer regret") } - k.SetInfererNetworkRegret(ctx, topicId, infererLoss.Worker, newInfererRegret) + err = k.SetInfererNetworkRegret(ctx, topicId, infererLoss.Worker, newInfererRegret) + if err != nil { + return errorsmod.Wrapf(err, "Error setting inferer regret") + } if !newParticipant { workersRegrets = append(workersRegrets, newInfererRegret.Value) } } - // Get old regret R_{i-1,k} and Calculate then Set the new regrets R_ik for forecasters sort.Slice(networkLosses.ForecasterValues, func(i, j int) bool { return networkLosses.ForecasterValues[i].Worker < networkLosses.ForecasterValues[j].Worker }) + + // R_ik - Forecaster Regrets for _, forecasterLoss := range networkLosses.ForecasterValues { lastRegret, newParticipant, err := k.GetForecasterNetworkRegret(ctx, topicId, forecasterLoss.Worker) if err != nil { return errorsmod.Wrapf(err, "Error getting forecaster regret") } newForecasterRegret, err := ComputeAndBuildEMRegret( - networkLosses.CombinedValue, - networkLossesByWorker.ForecasterLosses[forecasterLoss.Worker], + networkLosses.CombinedValue, // L_i + networkLossesByWorker.ForecasterLosses[forecasterLoss.Worker], // L_ik lastRegret.Value, alpha, blockHeight, @@ -146,16 +163,146 @@ func GetCalcSetNetworkRegrets( if err != nil { return errorsmod.Wrapf(err, "Error computing and building forecaster regret") } - k.SetForecasterNetworkRegret(ctx, topicId, forecasterLoss.Worker, newForecasterRegret) + err = k.SetForecasterNetworkRegret(ctx, topicId, forecasterLoss.Worker, newForecasterRegret) + if err != nil { + return errorsmod.Wrapf(err, "Error setting forecaster regret") + } if !newParticipant { workersRegrets = append(workersRegrets, newForecasterRegret.Value) } } - // Calculate the new one-in regrets for the forecasters R^+_ij'k where j' includes all j and forecast implied inference from forecaster k + // R^-_ij - Naive Regrets + for _, infererLoss := range networkLosses.InfererValues { + lastRegret, _, err := k.GetNaiveInfererNetworkRegret(ctx, topicId, infererLoss.Worker) + if err != nil { + return errorsmod.Wrapf(err, "failed to get inferer regret") + } + newInfererRegret, err := ComputeAndBuildEMRegret( + networkLosses.NaiveValue, // L^-_i + networkLossesByWorker.InfererLosses[infererLoss.Worker], // L_ij + lastRegret.Value, + alpha, + blockHeight, + ) + if err != nil { + return errorsmod.Wrapf(err, "Error computing and building inferer regret") + } + err = k.SetNaiveInfererNetworkRegret(ctx, topicId, infererLoss.Worker, newInfererRegret) + if err != nil { + return errorsmod.Wrapf(err, "Error setting inferer regret") + } + } + + sort.Slice(networkLosses.OneOutInfererValues, func(i, j int) bool { + return networkLosses.OneOutInfererValues[i].Worker < networkLosses.OneOutInfererValues[j].Worker + }) + + // R^-j′ij - One-out inferer inferer regrets + for _, oneOutInfererLoss := range networkLosses.OneOutInfererValues { + for _, infererLoss := range networkLosses.InfererValues { + lastRegret, _, err := k.GetOneOutInfererInfererNetworkRegret(ctx, topicId, oneOutInfererLoss.Worker, infererLoss.Worker) + if err != nil { + return errorsmod.Wrapf(err, "Error getting one-out inferer inferer regret") + } + newOneOutInfererInfererRegret, err := ComputeAndBuildEMRegret( + networkLossesByWorker.OneOutInfererLosses[oneOutInfererLoss.Worker], // L^-_j'i + networkLossesByWorker.InfererLosses[infererLoss.Worker], // L_ij + lastRegret.Value, + alpha, + blockHeight, + ) + if err != nil { + return errorsmod.Wrapf(err, "Error computing and building one-out inferer regret") + } + err = k.SetOneOutInfererInfererNetworkRegret(ctx, topicId, oneOutInfererLoss.Worker, infererLoss.Worker, newOneOutInfererInfererRegret) + if err != nil { + return errorsmod.Wrapf(err, "Error setting one-out inferer inferer regret") + } + } + } + + // R^-j′ik - One-out inferer forecaster regrets + for _, oneOutInfererLoss := range networkLosses.OneOutInfererValues { + for _, oneOutInfererForecasterLoss := range networkLosses.OneOutInfererForecasterValues { + lastRegret, _, err := k.GetOneOutInfererForecasterNetworkRegret(ctx, topicId, oneOutInfererLoss.Worker, oneOutInfererForecasterLoss.Forecaster) + if err != nil { + return errorsmod.Wrapf(err, "Error getting one-out inferer forecaster regret") + } + newOneOutInfererForecasterRegret, err := ComputeAndBuildEMRegret( + networkLossesByWorker.OneOutInfererLosses[oneOutInfererLoss.Worker], // L^-_j'i + networkLossesByWorker.OneOutInfererForecasterLosses[oneOutInfererForecasterLoss.Forecaster][oneOutInfererLoss.Worker], // L^-_j'ik + lastRegret.Value, + alpha, + blockHeight, + ) + if err != nil { + return errorsmod.Wrapf(err, "Error computing and building one-out inferer forecaster regret") + } + err = k.SetOneOutInfererForecasterNetworkRegret(ctx, topicId, oneOutInfererLoss.Worker, oneOutInfererForecasterLoss.Forecaster, newOneOutInfererForecasterRegret) + if err != nil { + return errorsmod.Wrapf(err, "Error setting one-out inferer forecaster regret") + } + } + } + + sort.Slice(networkLosses.OneOutForecasterValues, func(i, j int) bool { + return networkLosses.OneOutForecasterValues[i].Worker < networkLosses.OneOutForecasterValues[j].Worker + }) + + // R^-k′ij - One-out forecaster inferer regrets + for _, oneOutForecasterLoss := range networkLosses.OneOutForecasterValues { + for _, infererloss := range networkLosses.InfererValues { + lastRegret, _, err := k.GetOneOutForecasterInfererNetworkRegret(ctx, topicId, oneOutForecasterLoss.Worker, infererloss.Worker) + if err != nil { + return errorsmod.Wrapf(err, "Error getting one-out forecaster inferer regret") + } + newOneOutForecasterInfererRegret, err := ComputeAndBuildEMRegret( + networkLossesByWorker.OneOutForecasterLosses[oneOutForecasterLoss.Worker], // L^-_k'i + networkLossesByWorker.InfererLosses[infererloss.Worker], // L_ij + lastRegret.Value, + alpha, + blockHeight, + ) + if err != nil { + return errorsmod.Wrapf(err, "Error computing and building one-out forecaster inferer regret") + } + err = k.SetOneOutForecasterInfererNetworkRegret(ctx, topicId, oneOutForecasterLoss.Worker, infererloss.Worker, newOneOutForecasterInfererRegret) + if err != nil { + return errorsmod.Wrapf(err, "Error setting one-out forecaster inferer regret") + } + } + } + + // R^-k′ik - One-out forecaster forecaster regrets + for _, oneOutForecasterLoss := range networkLosses.OneOutForecasterValues { + for _, forecasterLoss := range networkLosses.ForecasterValues { + lastRegret, _, err := k.GetOneOutForecasterForecasterNetworkRegret(ctx, topicId, oneOutForecasterLoss.Worker, forecasterLoss.Worker) + if err != nil { + return errorsmod.Wrapf(err, "Error getting one-out forecaster forecaster regret") + } + newOneOutForecasterForecasterRegret, err := ComputeAndBuildEMRegret( + networkLossesByWorker.OneOutForecasterLosses[oneOutForecasterLoss.Worker], // L^-_k'i + networkLossesByWorker.ForecasterLosses[forecasterLoss.Worker], // L_ik + lastRegret.Value, + alpha, + blockHeight, + ) + if err != nil { + return errorsmod.Wrapf(err, "Error computing and building one-out forecaster forecaster regret") + } + err = k.SetOneOutForecasterForecasterNetworkRegret(ctx, topicId, oneOutForecasterLoss.Worker, forecasterLoss.Worker, newOneOutForecasterForecasterRegret) + if err != nil { + return errorsmod.Wrapf(err, "Error setting one-out forecaster forecaster regret") + } + } + } + sort.Slice(networkLosses.OneInForecasterValues, func(i, j int) bool { return networkLosses.OneInForecasterValues[i].Worker < networkLosses.OneInForecasterValues[j].Worker }) + + // R^+_k'ij - One-in forecaster regrets for _, oneInForecasterLoss := range networkLosses.OneInForecasterValues { // Loop over the inferer losses so that their losses may be compared against the one-in forecaster's loss, for each forecaster for _, infererLoss := range networkLosses.InfererValues { @@ -164,8 +311,8 @@ func GetCalcSetNetworkRegrets( return errorsmod.Wrapf(err, "Error getting one-in forecaster regret") } newOneInForecasterRegret, err := ComputeAndBuildEMRegret( - networkLossesByWorker.OneInForecasterLosses[oneInForecasterLoss.Worker], - networkLossesByWorker.InfererLosses[infererLoss.Worker], + networkLossesByWorker.OneInForecasterLosses[oneInForecasterLoss.Worker], // L^+_k'i + networkLossesByWorker.InfererLosses[infererLoss.Worker], // L_ij lastRegret.Value, alpha, blockHeight, @@ -173,24 +320,31 @@ func GetCalcSetNetworkRegrets( if err != nil { return errorsmod.Wrapf(err, "Error computing and building one-in forecaster regret") } - k.SetOneInForecasterNetworkRegret(ctx, topicId, oneInForecasterLoss.Worker, infererLoss.Worker, newOneInForecasterRegret) + // fmt.Printf("regret %v, forecaster %s, inferer %s, value %s\n", newOneInForecasterRegret.Value, oneInForecasterLoss.Worker, infererLoss.Worker, newOneInForecasterRegret.Value.String()) + err = k.SetOneInForecasterNetworkRegret(ctx, topicId, oneInForecasterLoss.Worker, infererLoss.Worker, newOneInForecasterRegret) + if err != nil { + return errorsmod.Wrapf(err, "Error setting one-in forecaster regret") + } } - // Self-regret for the forecaster given their own regret - lastRegret, _, err := k.GetOneInForecasterSelfNetworkRegret(ctx, topicId, oneInForecasterLoss.Worker) + + lastRegret, _, err := k.GetOneInForecasterNetworkRegret(ctx, topicId, oneInForecasterLoss.Worker, oneInForecasterLoss.Worker) if err != nil { - return errorsmod.Wrapf(err, "Error getting one-in forecaster self regret") + return errorsmod.Wrapf(err, "Error getting one-in forecaster regret") } - oneInForecasterSelfRegret, err := ComputeAndBuildEMRegret( - networkLossesByWorker.OneInForecasterLosses[oneInForecasterLoss.Worker], - networkLossesByWorker.ForecasterLosses[oneInForecasterLoss.Worker], + newOneInForecasterRegret, err := ComputeAndBuildEMRegret( + networkLossesByWorker.OneInForecasterLosses[oneInForecasterLoss.Worker], // L^+_k'i + networkLossesByWorker.ForecasterLosses[oneInForecasterLoss.Worker], // L_ik' lastRegret.Value, alpha, blockHeight, ) if err != nil { - return errorsmod.Wrapf(err, "Error computing and building one-in forecaster self regret") + return errorsmod.Wrapf(err, "Error computing and building one-in forecaster regret") + } + err = k.SetOneInForecasterNetworkRegret(ctx, topicId, oneInForecasterLoss.Worker, oneInForecasterLoss.Worker, newOneInForecasterRegret) + if err != nil { + return errorsmod.Wrapf(err, "Error setting one-in forecaster regret") } - k.SetOneInForecasterSelfNetworkRegret(ctx, topicId, oneInForecasterLoss.Worker, oneInForecasterSelfRegret) } // Recalculate topic initial regret @@ -199,7 +353,10 @@ func GetCalcSetNetworkRegrets( if err != nil { return errorsmod.Wrapf(err, "Error calculating topic initial regret") } - k.UpdateTopicInitialRegret(ctx, topicId, updatedTopicInitialRegret) + err = k.UpdateTopicInitialRegret(ctx, topicId, updatedTopicInitialRegret) + if err != nil { + return errorsmod.Wrapf(err, "Error updating topic initial regret") + } } return nil diff --git a/x/emissions/keeper/inference_synthesis/network_regrets_test.go b/x/emissions/keeper/inference_synthesis/network_regrets_test.go index 802f70377..1d09bfe4a 100644 --- a/x/emissions/keeper/inference_synthesis/network_regrets_test.go +++ b/x/emissions/keeper/inference_synthesis/network_regrets_test.go @@ -1,33 +1,37 @@ package inference_synthesis_test import ( + "context" + "fmt" + alloraMath "github.com/allora-network/allora-chain/math" + "github.com/allora-network/allora-chain/test/testutil" "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis" - "github.com/allora-network/allora-chain/x/emissions/types" + emissionstypes "github.com/allora-network/allora-chain/x/emissions/types" ) func (s *InferenceSynthesisTestSuite) TestConvertValueBundleToNetworkLossesByWorker() { require := s.Require() - valueBundle := types.ValueBundle{ + valueBundle := emissionstypes.ValueBundle{ CombinedValue: alloraMath.MustNewDecFromString("0.1"), NaiveValue: alloraMath.MustNewDecFromString("0.1"), - InfererValues: []*types.WorkerAttributedValue{ + InfererValues: []*emissionstypes.WorkerAttributedValue{ {Worker: "worker1", Value: alloraMath.MustNewDecFromString("0.1")}, {Worker: "worker2", Value: alloraMath.MustNewDecFromString("0.2")}, }, - ForecasterValues: []*types.WorkerAttributedValue{ + ForecasterValues: []*emissionstypes.WorkerAttributedValue{ {Worker: "worker1", Value: alloraMath.MustNewDecFromString("0.1")}, {Worker: "worker2", Value: alloraMath.MustNewDecFromString("0.2")}, }, - OneOutInfererValues: []*types.WithheldWorkerAttributedValue{ + OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ {Worker: "worker1", Value: alloraMath.MustNewDecFromString("0.1")}, {Worker: "worker2", Value: alloraMath.MustNewDecFromString("0.2")}, }, - OneOutForecasterValues: []*types.WithheldWorkerAttributedValue{ + OneOutForecasterValues: []*emissionstypes.WithheldWorkerAttributedValue{ {Worker: "worker1", Value: alloraMath.MustNewDecFromString("0.1")}, {Worker: "worker2", Value: alloraMath.MustNewDecFromString("0.2")}, }, - OneInForecasterValues: []*types.WorkerAttributedValue{ + OneInForecasterValues: []*emissionstypes.WorkerAttributedValue{ {Worker: "worker1", Value: alloraMath.MustNewDecFromString("0.1")}, {Worker: "worker2", Value: alloraMath.MustNewDecFromString("0.2")}, }, @@ -78,35 +82,53 @@ func (s *InferenceSynthesisTestSuite) TestGetCalcSetNetworkRegretsTwoWorkers() { require := s.Require() k := s.emissionsKeeper + topicId := uint64(2) + // Create new topic + err := s.emissionsKeeper.SetTopic(s.ctx, topicId, emissionstypes.Topic{ + Id: topicId, + Creator: "creator", + Metadata: "metadata", + LossMethod: "mse", + EpochLastEnded: 0, + EpochLength: 100, + GroundTruthLag: 10, + WorkerSubmissionWindow: 10, + PNorm: alloraMath.NewDecFromInt64(3), + AlphaRegret: alloraMath.MustNewDecFromString("0.1"), + AllowNegative: false, + InitialRegret: alloraMath.MustNewDecFromString("0"), + }) + s.Require().NoError(err) + worker1 := "worker1" worker2 := "worker2" + worker3 := "worker3" pNorm := alloraMath.MustNewDecFromString("0.1") cNorm := alloraMath.MustNewDecFromString("0.1") epsilon := alloraMath.MustNewDecFromString("0.0001") - valueBundle := types.ValueBundle{ + valueBundle := emissionstypes.ValueBundle{ CombinedValue: alloraMath.MustNewDecFromString("500"), NaiveValue: alloraMath.MustNewDecFromString("123"), - InfererValues: []*types.WorkerAttributedValue{ + InfererValues: []*emissionstypes.WorkerAttributedValue{ {Worker: worker1, Value: alloraMath.MustNewDecFromString("200")}, {Worker: worker2, Value: alloraMath.MustNewDecFromString("200")}, }, - ForecasterValues: []*types.WorkerAttributedValue{ + ForecasterValues: []*emissionstypes.WorkerAttributedValue{ {Worker: worker1, Value: alloraMath.MustNewDecFromString("200")}, {Worker: worker2, Value: alloraMath.MustNewDecFromString("200")}, }, - OneInForecasterValues: []*types.WorkerAttributedValue{ + OneInForecasterValues: []*emissionstypes.WorkerAttributedValue{ {Worker: worker1, Value: alloraMath.MustNewDecFromString("200")}, {Worker: worker2, Value: alloraMath.MustNewDecFromString("200")}, }, } blockHeight := int64(42) - nonce := types.Nonce{BlockHeight: blockHeight} + nonce := emissionstypes.Nonce{BlockHeight: blockHeight} alpha := alloraMath.MustNewDecFromString("0.1") - topicId := uint64(1) - timestampedValue := types.TimestampedValue{ + timestampedValue := emissionstypes.TimestampedValue{ BlockHeight: blockHeight, Value: alloraMath.MustNewDecFromString("200"), } @@ -120,7 +142,34 @@ func (s *InferenceSynthesisTestSuite) TestGetCalcSetNetworkRegretsTwoWorkers() { k.SetOneInForecasterNetworkRegret(s.ctx, topicId, worker2, worker1, timestampedValue) k.SetOneInForecasterNetworkRegret(s.ctx, topicId, worker2, worker2, timestampedValue) - err := inference_synthesis.GetCalcSetNetworkRegrets( + // New potential participant should start with zero regret at this point since the initial regret in the topic is zero + // It will be updated after the first regret calculation + worker3LastRegret, worker3NoPriorRegret, err := k.GetInfererNetworkRegret(s.ctx, topicId, worker3) + require.NoError(err) + require.Equal(worker3LastRegret.Value, alloraMath.ZeroDec()) + require.True(worker3NoPriorRegret) + + worker3LastRegret, worker3NoPriorRegret, err = k.GetForecasterNetworkRegret(s.ctx, topicId, worker3) + require.NoError(err) + require.Equal(worker3LastRegret.Value, alloraMath.ZeroDec()) + require.True(worker3NoPriorRegret) + + worker3LastRegret, worker3NoPriorRegret, err = k.GetOneInForecasterNetworkRegret(s.ctx, topicId, worker3, worker1) + require.NoError(err) + require.Equal(worker3LastRegret.Value, alloraMath.ZeroDec()) + require.True(worker3NoPriorRegret) + + worker3LastRegret, worker3NoPriorRegret, err = k.GetOneInForecasterNetworkRegret(s.ctx, topicId, worker3, worker2) + require.NoError(err) + require.Equal(worker3LastRegret.Value, alloraMath.ZeroDec()) + require.True(worker3NoPriorRegret) + + worker3LastRegret, worker3NoPriorRegret, err = k.GetOneInForecasterNetworkRegret(s.ctx, topicId, worker3, worker3) + require.NoError(err) + require.Equal(worker3LastRegret.Value, alloraMath.ZeroDec()) + require.True(worker3NoPriorRegret) + + err = inference_synthesis.GetCalcSetNetworkRegrets( s.ctx, s.emissionsKeeper, topicId, @@ -135,21 +184,49 @@ func (s *InferenceSynthesisTestSuite) TestGetCalcSetNetworkRegretsTwoWorkers() { bothAccs := []string{worker1, worker2} expected := alloraMath.MustNewDecFromString("210") - expectedOneIn := alloraMath.MustNewDecFromString("180") + // expectedOneIn := alloraMath.MustNewDecFromString("180") + + // New potential participant should not start with zero regret since we already have participants with prior regrets which will + // be used to calculate the initial regret in the topic + worker3LastRegret, worker3NoPriorRegret, err = k.GetInfererNetworkRegret(s.ctx, topicId, worker3) + require.NoError(err) + require.NotEqual(worker3LastRegret.Value, alloraMath.ZeroDec()) + require.True(worker3NoPriorRegret) + + worker3LastRegret, worker3NoPriorRegret, err = k.GetForecasterNetworkRegret(s.ctx, topicId, worker3) + require.NoError(err) + require.NotEqual(worker3LastRegret.Value, alloraMath.ZeroDec()) + require.True(worker3NoPriorRegret) + + worker3LastRegret, worker3NoPriorRegret, err = k.GetOneInForecasterNetworkRegret(s.ctx, topicId, worker3, worker1) + require.NoError(err) + require.NotEqual(worker3LastRegret.Value, alloraMath.ZeroDec()) + require.True(worker3NoPriorRegret) + + worker3LastRegret, worker3NoPriorRegret, err = k.GetOneInForecasterNetworkRegret(s.ctx, topicId, worker3, worker2) + require.NoError(err) + require.NotEqual(worker3LastRegret.Value, alloraMath.ZeroDec()) + require.True(worker3NoPriorRegret) + + worker3LastRegret, worker3NoPriorRegret, err = k.GetOneInForecasterNetworkRegret(s.ctx, topicId, worker3, worker3) + require.NoError(err) + require.NotEqual(worker3LastRegret.Value, alloraMath.ZeroDec()) + require.True(worker3NoPriorRegret) for _, acc := range bothAccs { - lastRegret, _, err := k.GetInfererNetworkRegret(s.ctx, topicId, acc) + lastRegret, noPriorRegret, err := k.GetInfererNetworkRegret(s.ctx, topicId, acc) require.NoError(err) require.True(alloraMath.InDelta(expected, lastRegret.Value, alloraMath.MustNewDecFromString("0.0001"))) + require.False(noPriorRegret) - lastRegret, _, err = k.GetForecasterNetworkRegret(s.ctx, topicId, acc) + lastRegret, noPriorRegret, err = k.GetForecasterNetworkRegret(s.ctx, topicId, acc) require.NoError(err) require.True(alloraMath.InDelta(expected, lastRegret.Value, alloraMath.MustNewDecFromString("0.0001"))) + require.False(noPriorRegret) for _, accInner := range bothAccs { lastRegret, _, err = k.GetOneInForecasterNetworkRegret(s.ctx, topicId, acc, accInner) require.NoError(err) - require.True(alloraMath.InDelta(expectedOneIn, lastRegret.Value, alloraMath.MustNewDecFromString("0.0001"))) } } } @@ -166,31 +243,31 @@ func (s *InferenceSynthesisTestSuite) TestGetCalcSetNetworkRegretsThreeWorkers() cNorm := alloraMath.MustNewDecFromString("0.1") epsilon := alloraMath.MustNewDecFromString("0.0001") - valueBundle := types.ValueBundle{ + valueBundle := emissionstypes.ValueBundle{ CombinedValue: alloraMath.MustNewDecFromString("500"), NaiveValue: alloraMath.MustNewDecFromString("123"), - InfererValues: []*types.WorkerAttributedValue{ + InfererValues: []*emissionstypes.WorkerAttributedValue{ {Worker: worker1, Value: alloraMath.MustNewDecFromString("200")}, {Worker: worker2, Value: alloraMath.MustNewDecFromString("200")}, {Worker: worker3, Value: alloraMath.MustNewDecFromString("200")}, }, - ForecasterValues: []*types.WorkerAttributedValue{ + ForecasterValues: []*emissionstypes.WorkerAttributedValue{ {Worker: worker1, Value: alloraMath.MustNewDecFromString("200")}, {Worker: worker2, Value: alloraMath.MustNewDecFromString("200")}, {Worker: worker3, Value: alloraMath.MustNewDecFromString("200")}, }, - OneInForecasterValues: []*types.WorkerAttributedValue{ + OneInForecasterValues: []*emissionstypes.WorkerAttributedValue{ {Worker: worker1, Value: alloraMath.MustNewDecFromString("200")}, {Worker: worker2, Value: alloraMath.MustNewDecFromString("200")}, {Worker: worker3, Value: alloraMath.MustNewDecFromString("200")}, }, } blockHeight := int64(42) - nonce := types.Nonce{BlockHeight: blockHeight} + nonce := emissionstypes.Nonce{BlockHeight: blockHeight} alpha := alloraMath.MustNewDecFromString("0.1") topicId := uint64(1) - timestampedValue := types.TimestampedValue{ + timestampedValue := emissionstypes.TimestampedValue{ BlockHeight: blockHeight, Value: alloraMath.MustNewDecFromString("200"), } @@ -247,6 +324,118 @@ func (s *InferenceSynthesisTestSuite) TestGetCalcSetNetworkRegretsThreeWorkers() } } +func (s *InferenceSynthesisTestSuite) TestGetCalcSetNetworkRegretsFromCsv() { + require := s.Require() + k := s.emissionsKeeper + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epochPrevGet := epochGet[300] + epoch301Get := epochGet[301] + topicId := uint64(1) + blockHeight := int64(1003) + nonce := emissionstypes.Nonce{BlockHeight: blockHeight} + alpha := alloraMath.MustNewDecFromString("0.1") + pNorm := alloraMath.MustNewDecFromString("3.0") + cNorm := alloraMath.MustNewDecFromString("0.75") + epsilon := alloraMath.MustNewDecFromString("1e-4") + + inferer0 := s.addrs[0].String() + inferer1 := s.addrs[1].String() + inferer2 := s.addrs[2].String() + inferer3 := s.addrs[3].String() + inferer4 := s.addrs[4].String() + infererAddresses := []string{inferer0, inferer1, inferer2, inferer3, inferer4} + + forecaster0 := s.addrs[5].String() + forecaster1 := s.addrs[6].String() + forecaster2 := s.addrs[7].String() + forecasterAddresses := []string{forecaster0, forecaster1, forecaster2} + + err := testutil.SetRegretsFromPreviousEpoch(s.ctx, s.emissionsKeeper, topicId, blockHeight, infererAddresses, forecasterAddresses, epochPrevGet) + require.NoError(err) + + networkLosses, err := testutil.GetNetworkLossFromCsv( + topicId, + infererAddresses, + forecasterAddresses, + epoch301Get, + ) + s.Require().NoError(err) + + err = inference_synthesis.GetCalcSetNetworkRegrets( + s.ctx, + k, + topicId, + networkLosses, + nonce, + alpha, + cNorm, + pNorm, + epsilon, + ) + require.NoError(err) + + checkRegret := func(worker string, expected alloraMath.Dec, getter func(context.Context, uint64, string) (emissionstypes.TimestampedValue, bool, error)) { + regret, _, err := getter(s.ctx, topicId, worker) + require.NoError(err) + testutil.InEpsilon5(s.T(), expected, regret.Value.String()) + } + + checkOneOutRegret := func(worker string, innerWorker string, expected alloraMath.Dec, getter func(context.Context, uint64, string, string) (emissionstypes.TimestampedValue, bool, error)) { + regret, _, err := getter(s.ctx, topicId, worker, innerWorker) + require.NoError(err) + testutil.InEpsilon5(s.T(), expected, regret.Value.String()) + } + + for i := 0; i < len(infererAddresses); i++ { + expectedRegret := epoch301Get(fmt.Sprintf("inference_regret_worker_%v", i)) + checkRegret(infererAddresses[i], expectedRegret, k.GetInfererNetworkRegret) + + expectedRegret = epoch301Get(fmt.Sprintf("naive_inference_regret_worker_%v", i)) + checkRegret(infererAddresses[i], expectedRegret, k.GetNaiveInfererNetworkRegret) + } + + for i := 0; i < len(forecasterAddresses); i++ { + forecasterCsvIndex := i + 5 + expectedRegret := epoch301Get(fmt.Sprintf("inference_regret_worker_%v", forecasterCsvIndex)) + checkRegret(forecasterAddresses[i], expectedRegret, k.GetForecasterNetworkRegret) + } + + for i, inferer := range infererAddresses { + for j, infererInner := range infererAddresses { + expectedRegret := epoch301Get(fmt.Sprintf("inference_regret_worker_%v_oneout_%v", j, i)) + checkOneOutRegret(inferer, infererInner, expectedRegret, k.GetOneOutInfererInfererNetworkRegret) + } + + for l, forecaster := range forecasterAddresses { + forecasterCsvIndex := l + 5 + expectedRegret := epoch301Get(fmt.Sprintf("inference_regret_worker_%v_oneout_%v", forecasterCsvIndex, i)) + checkOneOutRegret(inferer, forecaster, expectedRegret, k.GetOneOutInfererForecasterNetworkRegret) + } + } + + for i, forecaster := range forecasterAddresses { + forecasterCsvIndex := i + 5 + for j, inferer := range infererAddresses { + expectedRegret := epoch301Get(fmt.Sprintf("inference_regret_worker_%v_oneout_%v", j, forecasterCsvIndex)) + checkOneOutRegret(forecaster, inferer, expectedRegret, k.GetOneOutForecasterInfererNetworkRegret) + } + + for z, forecasterInner := range forecasterAddresses { + forecasterCsvIndex2 := z + 5 + expectedRegret := epoch301Get(fmt.Sprintf("inference_regret_worker_%v_oneout_%v", forecasterCsvIndex2, forecasterCsvIndex)) + checkOneOutRegret(forecaster, forecasterInner, expectedRegret, k.GetOneOutForecasterForecasterNetworkRegret) + } + + expectedOneInRegret := epoch301Get(fmt.Sprintf("inference_regret_worker_%v_onein_%v", 5, i)) + checkOneOutRegret(forecaster, forecaster, expectedOneInRegret, k.GetOneInForecasterNetworkRegret) + + for l, inferer := range infererAddresses { + expectedOneInRegret := epoch301Get(fmt.Sprintf("inference_regret_worker_%v_onein_%v", l, i)) + checkOneOutRegret(forecaster, inferer, expectedOneInRegret, k.GetOneInForecasterNetworkRegret) + } + } +} + // In this test we run two trials of calculating setting network regrets with different losses. // We then compare the resulting regrets to see if the higher losses result in lower regrets. func (s *InferenceSynthesisTestSuite) TestHigherLossesLowerRegret() { @@ -255,7 +444,7 @@ func (s *InferenceSynthesisTestSuite) TestHigherLossesLowerRegret() { topicId := uint64(1) blockHeight := int64(1003) - nonce := types.Nonce{BlockHeight: blockHeight} + nonce := emissionstypes.Nonce{BlockHeight: blockHeight} alpha := alloraMath.MustNewDecFromString("0.1") pNorm := alloraMath.MustNewDecFromString("0.1") cNorm := alloraMath.MustNewDecFromString("0.1") @@ -265,40 +454,40 @@ func (s *InferenceSynthesisTestSuite) TestHigherLossesLowerRegret() { worker1 := "worker1" worker2 := "worker2" - networkLossesValueBundle0 := types.ValueBundle{ + networkLossesValueBundle0 := emissionstypes.ValueBundle{ CombinedValue: alloraMath.MustNewDecFromString("0.1"), NaiveValue: alloraMath.MustNewDecFromString("0.1"), - InfererValues: []*types.WorkerAttributedValue{ + InfererValues: []*emissionstypes.WorkerAttributedValue{ {Worker: worker0, Value: alloraMath.MustNewDecFromString("0.2")}, {Worker: worker1, Value: alloraMath.MustNewDecFromString("0.3")}, {Worker: worker2, Value: alloraMath.MustNewDecFromString("0.4")}, }, - ForecasterValues: []*types.WorkerAttributedValue{ + ForecasterValues: []*emissionstypes.WorkerAttributedValue{ {Worker: worker0, Value: alloraMath.MustNewDecFromString("0.2")}, {Worker: worker1, Value: alloraMath.MustNewDecFromString("0.3")}, {Worker: worker2, Value: alloraMath.MustNewDecFromString("0.4")}, }, - OneInForecasterValues: []*types.WorkerAttributedValue{ + OneInForecasterValues: []*emissionstypes.WorkerAttributedValue{ {Worker: worker0, Value: alloraMath.MustNewDecFromString("0.2")}, {Worker: worker1, Value: alloraMath.MustNewDecFromString("0.3")}, {Worker: worker2, Value: alloraMath.MustNewDecFromString("0.4")}, }, } - networkLossesValueBundle1 := types.ValueBundle{ + networkLossesValueBundle1 := emissionstypes.ValueBundle{ CombinedValue: alloraMath.MustNewDecFromString("0.1"), NaiveValue: alloraMath.MustNewDecFromString("0.1"), - InfererValues: []*types.WorkerAttributedValue{ + InfererValues: []*emissionstypes.WorkerAttributedValue{ {Worker: worker0, Value: alloraMath.MustNewDecFromString("0.3")}, {Worker: worker1, Value: alloraMath.MustNewDecFromString("0.3")}, {Worker: worker2, Value: alloraMath.MustNewDecFromString("0.4")}, }, - ForecasterValues: []*types.WorkerAttributedValue{ + ForecasterValues: []*emissionstypes.WorkerAttributedValue{ {Worker: worker0, Value: alloraMath.MustNewDecFromString("0.3")}, {Worker: worker1, Value: alloraMath.MustNewDecFromString("0.3")}, {Worker: worker2, Value: alloraMath.MustNewDecFromString("0.4")}, }, - OneInForecasterValues: []*types.WorkerAttributedValue{ + OneInForecasterValues: []*emissionstypes.WorkerAttributedValue{ {Worker: worker0, Value: alloraMath.MustNewDecFromString("0.3")}, {Worker: worker1, Value: alloraMath.MustNewDecFromString("0.3")}, {Worker: worker2, Value: alloraMath.MustNewDecFromString("0.4")}, @@ -306,17 +495,17 @@ func (s *InferenceSynthesisTestSuite) TestHigherLossesLowerRegret() { } resetRegrets := func() { - timestampedValue0_1 := types.TimestampedValue{ + timestampedValue0_1 := emissionstypes.TimestampedValue{ BlockHeight: blockHeight, Value: alloraMath.MustNewDecFromString("0.1"), } - timestampedValue0_2 := types.TimestampedValue{ + timestampedValue0_2 := emissionstypes.TimestampedValue{ BlockHeight: blockHeight, Value: alloraMath.MustNewDecFromString("0.2"), } - timestampedValue0_3 := types.TimestampedValue{ + timestampedValue0_3 := emissionstypes.TimestampedValue{ BlockHeight: blockHeight, Value: alloraMath.MustNewDecFromString("0.3"), } @@ -349,19 +538,25 @@ func (s *InferenceSynthesisTestSuite) TestHigherLossesLowerRegret() { // Record resulting regrets - infererRegret0_0, _, err := k.GetInfererNetworkRegret(s.ctx, topicId, worker0) + infererRegret0_0, noPriorRegret, err := k.GetInfererNetworkRegret(s.ctx, topicId, worker0) require.NoError(err) - infererRegret0_1, _, err := k.GetInfererNetworkRegret(s.ctx, topicId, worker1) + require.False(noPriorRegret) + infererRegret0_1, noPriorRegret, err := k.GetInfererNetworkRegret(s.ctx, topicId, worker1) require.NoError(err) - infererRegret0_2, _, err := k.GetInfererNetworkRegret(s.ctx, topicId, worker2) + require.False(noPriorRegret) + infererRegret0_2, noPriorRegret, err := k.GetInfererNetworkRegret(s.ctx, topicId, worker2) require.NoError(err) + require.False(noPriorRegret) - forecasterRegret0_0, _, err := k.GetForecasterNetworkRegret(s.ctx, topicId, worker0) + forecasterRegret0_0, noPriorRegret, err := k.GetForecasterNetworkRegret(s.ctx, topicId, worker0) require.NoError(err) - forecasterRegret0_1, _, err := k.GetForecasterNetworkRegret(s.ctx, topicId, worker1) + require.False(noPriorRegret) + forecasterRegret0_1, noPriorRegret, err := k.GetForecasterNetworkRegret(s.ctx, topicId, worker1) require.NoError(err) - forecasterRegret0_2, _, err := k.GetForecasterNetworkRegret(s.ctx, topicId, worker2) + require.False(noPriorRegret) + forecasterRegret0_2, noPriorRegret, err := k.GetForecasterNetworkRegret(s.ctx, topicId, worker2) require.NoError(err) + require.False(noPriorRegret) // Test 1 @@ -382,19 +577,25 @@ func (s *InferenceSynthesisTestSuite) TestHigherLossesLowerRegret() { // Record resulting regrets - infererRegret1_0, _, err := k.GetInfererNetworkRegret(s.ctx, topicId, worker0) + infererRegret1_0, noPriorRegret, err := k.GetInfererNetworkRegret(s.ctx, topicId, worker0) require.NoError(err) - infererRegret1_1, _, err := k.GetInfererNetworkRegret(s.ctx, topicId, worker1) + require.False(noPriorRegret) + infererRegret1_1, noPriorRegret, err := k.GetInfererNetworkRegret(s.ctx, topicId, worker1) require.NoError(err) - infererRegret1_2, _, err := k.GetInfererNetworkRegret(s.ctx, topicId, worker2) + require.False(noPriorRegret) + infererRegret1_2, noPriorRegret, err := k.GetInfererNetworkRegret(s.ctx, topicId, worker2) require.NoError(err) + require.False(noPriorRegret) - forecasterRegret1_0, _, err := k.GetForecasterNetworkRegret(s.ctx, topicId, worker0) + forecasterRegret1_0, noPriorRegret, err := k.GetForecasterNetworkRegret(s.ctx, topicId, worker0) require.NoError(err) - forecasterRegret1_1, _, err := k.GetForecasterNetworkRegret(s.ctx, topicId, worker1) + require.False(noPriorRegret) + forecasterRegret1_1, noPriorRegret, err := k.GetForecasterNetworkRegret(s.ctx, topicId, worker1) require.NoError(err) - forecasterRegret1_2, _, err := k.GetForecasterNetworkRegret(s.ctx, topicId, worker2) + require.False(noPriorRegret) + forecasterRegret1_2, noPriorRegret, err := k.GetForecasterNetworkRegret(s.ctx, topicId, worker2) require.NoError(err) + require.False(noPriorRegret) // Test @@ -406,3 +607,23 @@ func (s *InferenceSynthesisTestSuite) TestHigherLossesLowerRegret() { require.Equal(forecasterRegret0_1.Value, forecasterRegret1_1.Value) require.Equal(forecasterRegret0_2.Value, forecasterRegret1_2.Value) } + +func (s *InferenceSynthesisTestSuite) TestCalcTopicInitialRegret() { + require := s.Require() + + regrets := []alloraMath.Dec{ + alloraMath.MustNewDecFromString("0.6445506208021189"), + alloraMath.MustNewDecFromString("1.0216386898413485"), + alloraMath.MustNewDecFromString("0.6092049398135028"), + alloraMath.MustNewDecFromString("0.6971588004566455"), + alloraMath.MustNewDecFromString("0.9030751421888253"), + alloraMath.MustNewDecFromString("0.8219035038858344"), + } + cNorm := alloraMath.MustNewDecFromString("0.75") + pNorm := alloraMath.MustNewDecFromString("3.0") + epsilon := alloraMath.MustNewDecFromString("0.0001") + + calculatedInitialRegret, err := inference_synthesis.CalcTopicInitialRegret(regrets, epsilon, pNorm, cNorm) + require.NoError(err) + testutil.InEpsilon5(s.T(), calculatedInitialRegret, "0.2869843501503934597325669544281814") +} diff --git a/x/emissions/keeper/inference_synthesis/nonce_mgmt.go b/x/emissions/keeper/inference_synthesis/nonce_mgmt.go deleted file mode 100644 index 8f9a056c0..000000000 --- a/x/emissions/keeper/inference_synthesis/nonce_mgmt.go +++ /dev/null @@ -1,57 +0,0 @@ -package inference_synthesis - -import ( - "sort" - - emissions "github.com/allora-network/allora-chain/x/emissions/types" -) - -// Filter nonces that are within the epoch length of the current block height -func FilterNoncesWithinEpochLength(n emissions.Nonces, blockHeight, epochLength int64) emissions.Nonces { - var filtered emissions.Nonces - for _, nonce := range n.Nonces { - if blockHeight-nonce.BlockHeight <= epochLength { - filtered.Nonces = append(filtered.Nonces, nonce) - } - } - return filtered -} - -func SortByBlockHeight(r []*emissions.ReputerRequestNonce) { - sort.Slice(r, func(i, j int) bool { - // Sorting in descending order (bigger values first) - return r[i].ReputerNonce.BlockHeight > r[j].ReputerNonce.BlockHeight - }) -} - -// Select the top N latest reputer nonces -func SelectTopNReputerNonces(reputerRequestNonces *emissions.ReputerRequestNonces, N int, currentBlockHeight, groundTruthLag int64) []*emissions.ReputerRequestNonce { - topN := make([]*emissions.ReputerRequestNonce, 0) - // sort reputerRequestNonces by reputer block height - - // Create a copy of the original slice to avoid modifying chain state - sortedSlice := make([]*emissions.ReputerRequestNonce, len(reputerRequestNonces.Nonces)) - copy(sortedSlice, reputerRequestNonces.Nonces) - SortByBlockHeight(sortedSlice) - - // loop reputerRequestNonces - for _, nonce := range sortedSlice { - nonceCopy := nonce - // Only select when the ground truth is available. - if currentBlockHeight >= nonceCopy.ReputerNonce.BlockHeight+groundTruthLag { - topN = append(topN, nonceCopy) - } - if len(topN) >= N { - break - } - } - return topN -} - -// Select the top N latest worker nonces -func SelectTopNWorkerNonces(workerNonces emissions.Nonces, N int) []*emissions.Nonce { - if len(workerNonces.Nonces) <= N { - return workerNonces.Nonces - } - return workerNonces.Nonces[:N] -} diff --git a/x/emissions/keeper/inference_synthesis/nonce_mgmt_test.go b/x/emissions/keeper/inference_synthesis/nonce_mgmt_test.go deleted file mode 100644 index e4f3fc5eb..000000000 --- a/x/emissions/keeper/inference_synthesis/nonce_mgmt_test.go +++ /dev/null @@ -1,311 +0,0 @@ -package inference_synthesis_test - -import ( - "testing" - - "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis" - emissionstypes "github.com/allora-network/allora-chain/x/emissions/types" - "github.com/stretchr/testify/require" -) - -func TestSortByBlockHeight(t *testing.T) { - // Create some test data - tests := []struct { - name string - input *emissionstypes.ReputerRequestNonces - output *emissionstypes.ReputerRequestNonces - }{ - { - name: "Sorted in descending order", - input: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 5}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 2}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 7}}, - }, - }, - output: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 7}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 5}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 2}}, - }, - }, - }, - { - name: "Already sorted", - input: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 10}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 9}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 7}}, - }, - }, - output: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 10}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 9}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 7}}, - }, - }, - }, - { - name: "Empty input", - input: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{}, - }, - output: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{}, - }, - }, - { - name: "Single element", - input: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 3}}, - }, - }, - output: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 3}}, - }, - }, - }, - } - - for _, test := range tests { - t.Run(test.name, func(t *testing.T) { - // Call the sorting function - inference_synthesis.SortByBlockHeight(test.input.Nonces) - - // Compare the sorted input with the expected output - require.Equal(t, test.input.Nonces, test.output.Nonces, "Sorting result mismatch.\nExpected: %v\nGot: %v") - }) - } -} - -func TestSelectTopNWorkerNonces(t *testing.T) { - // Define test cases - tests := []struct { - name string - workerNonces emissionstypes.Nonces - N int - expectedTopNNonces []*emissionstypes.Nonce - }{ - { - name: "N greater than length of nonces", - workerNonces: emissionstypes.Nonces{ - Nonces: []*emissionstypes.Nonce{ - {BlockHeight: 1}, - {BlockHeight: 2}, - }, - }, - N: 5, - expectedTopNNonces: []*emissionstypes.Nonce{ - {BlockHeight: 1}, - {BlockHeight: 2}, - }, - }, - { - name: "N less than length of nonces", - workerNonces: emissionstypes.Nonces{ - Nonces: []*emissionstypes.Nonce{ - {BlockHeight: 1}, - {BlockHeight: 2}, - {BlockHeight: 3}, - }, - }, - N: 2, - expectedTopNNonces: []*emissionstypes.Nonce{ - {BlockHeight: 1}, - {BlockHeight: 2}, - }, - }, - } - - // Run test cases - for _, tc := range tests { - t.Run(tc.name, func(t *testing.T) { - actual := inference_synthesis.SelectTopNWorkerNonces(tc.workerNonces, tc.N) - require.Equal(t, actual, tc.expectedTopNNonces, "Worker nonces to not match") - }) - } -} - -func TestFilterNoncesWithinEpochLength(t *testing.T) { - tests := []struct { - name string - nonces emissionstypes.Nonces - blockHeight int64 - epochLength int64 - expectedNonce emissionstypes.Nonces - }{ - { - name: "Nonces within epoch length", - nonces: emissionstypes.Nonces{ - Nonces: []*emissionstypes.Nonce{ - {BlockHeight: 10}, - {BlockHeight: 15}, - }, - }, - blockHeight: 20, - epochLength: 10, - expectedNonce: emissionstypes.Nonces{ - Nonces: []*emissionstypes.Nonce{ - {BlockHeight: 10}, - {BlockHeight: 15}, - }, - }, - }, - { - name: "Nonces outside epoch length", - nonces: emissionstypes.Nonces{ - Nonces: []*emissionstypes.Nonce{ - {BlockHeight: 5}, - {BlockHeight: 15}, - }, - }, - blockHeight: 20, - epochLength: 10, - expectedNonce: emissionstypes.Nonces{ - Nonces: []*emissionstypes.Nonce{ - {BlockHeight: 15}, - }, - }, - }, - } - - for _, tc := range tests { - t.Run(tc.name, func(t *testing.T) { - actual := inference_synthesis.FilterNoncesWithinEpochLength(tc.nonces, tc.blockHeight, tc.epochLength) - require.Equal(t, tc.expectedNonce, actual, "Filter nonces do not match") - }) - } -} - -func TestSelectTopNReputerNonces(t *testing.T) { - // Define test cases - tests := []struct { - name string - reputerRequestNonces *emissionstypes.ReputerRequestNonces - N int - expectedTopNReputerNonce []*emissionstypes.ReputerRequestNonce - currentBlockHeight int64 - groundTruthLag int64 - epochLength int64 - }{ - { - name: "N greater than length of nonces, zero lag", - reputerRequestNonces: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 1}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 3}}, - }, - }, - N: 5, - expectedTopNReputerNonce: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 3}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 1}}, - }, - currentBlockHeight: 10, - groundTruthLag: 0, - epochLength: 1, - }, - { - name: "N less than length of nonces, zero lag", - reputerRequestNonces: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 1}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 3}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 5}}, - }, - }, - N: 2, - expectedTopNReputerNonce: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 5}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 3}}, - }, - currentBlockHeight: 10, - groundTruthLag: 0, - epochLength: 1, - }, - { - name: "Ground truth lag cutting selection midway", - reputerRequestNonces: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 2}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 6}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 4}}, - }, - }, - N: 3, - expectedTopNReputerNonce: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 4}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 2}}, - }, - currentBlockHeight: 10, - groundTruthLag: 5, - epochLength: 1, - }, - { - name: "Big Ground truth lag, not selecting any nonces", - reputerRequestNonces: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 2}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 6}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 4}}, - }, - }, - N: 3, - expectedTopNReputerNonce: []*emissionstypes.ReputerRequestNonce{}, - currentBlockHeight: 10, - groundTruthLag: 10, - epochLength: 1, - }, - { - name: "Small ground truth lag, selecting all nonces", - reputerRequestNonces: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 6}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 5}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 4}}, - }, - }, - N: 3, - expectedTopNReputerNonce: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 6}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 5}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 4}}, - }, - currentBlockHeight: 10, - groundTruthLag: 2, - epochLength: 1, - }, - { - name: "Mid ground truth lag, selecting some nonces", - reputerRequestNonces: &emissionstypes.ReputerRequestNonces{ - Nonces: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 6}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 5}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 4}}, - }, - }, - N: 3, - expectedTopNReputerNonce: []*emissionstypes.ReputerRequestNonce{ - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 5}}, - {ReputerNonce: &emissionstypes.Nonce{BlockHeight: 4}}, - }, - currentBlockHeight: 10, - groundTruthLag: 5, - epochLength: 1, - }, - } - - // Run test cases - for _, tc := range tests { - t.Run(tc.name, func(t *testing.T) { - actual := inference_synthesis.SelectTopNReputerNonces(tc.reputerRequestNonces, tc.N, tc.currentBlockHeight, tc.groundTruthLag) - require.Equal(t, tc.expectedTopNReputerNonce, actual, "Reputer nonces do not match") - }) - } -} diff --git a/x/emissions/keeper/inference_synthesis/synth_palette_bootstrap.go b/x/emissions/keeper/inference_synthesis/synth_palette_bootstrap.go index e46a41a68..75fad1d3d 100644 --- a/x/emissions/keeper/inference_synthesis/synth_palette_bootstrap.go +++ b/x/emissions/keeper/inference_synthesis/synth_palette_bootstrap.go @@ -102,7 +102,8 @@ func (p SynthPalette) Clone() SynthPalette { ForecastImpliedInferenceByWorker: forecastImpliedInferenceByWorker, ForecasterRegrets: forecasterRegrets, NetworkCombinedLoss: p.NetworkCombinedLoss, - Epsilon: p.Epsilon, + EpsilonTopic: p.EpsilonTopic, + EpsilonSafeDiv: p.EpsilonSafeDiv, PNorm: p.PNorm, CNorm: p.CNorm, } diff --git a/x/emissions/keeper/inference_synthesis/synth_palette_bootstrap_test.go b/x/emissions/keeper/inference_synthesis/synth_palette_bootstrap_test.go index f320920d4..169dff1f3 100644 --- a/x/emissions/keeper/inference_synthesis/synth_palette_bootstrap_test.go +++ b/x/emissions/keeper/inference_synthesis/synth_palette_bootstrap_test.go @@ -38,7 +38,8 @@ func TestSynthPalette_Clone(t *testing.T) { ForecastImpliedInferenceByWorker: make(map[synth.Worker]*emissionstypes.Inference), ForecasterRegrets: make(map[synth.Worker]*alloraMath.Dec), NetworkCombinedLoss: alloraMath.MustNewDecFromString("0.0"), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + EpsilonTopic: alloraMath.MustNewDecFromString("0.01"), + EpsilonSafeDiv: alloraMath.MustNewDecFromString("0.0000001"), PNorm: alloraMath.MustNewDecFromString("2"), CNorm: alloraMath.MustNewDecFromString("1"), } @@ -63,8 +64,10 @@ func TestSynthPalette_Clone(t *testing.T) { paletteCNorm := fmt.Sprintf("%v", palette.CNorm) clonePNorm := fmt.Sprintf("%v", clone.PNorm) palettePNorm := fmt.Sprintf("%v", palette.PNorm) - cloneEpsilon := fmt.Sprintf("%v", clone.Epsilon) - paletteEpsilon := fmt.Sprintf("%v", palette.Epsilon) + cloneEpsilonTopic := fmt.Sprintf("%v", clone.EpsilonTopic) + paletteEpsilonTopic := fmt.Sprintf("%v", palette.EpsilonTopic) + closeEpsilonSafeDiv := fmt.Sprintf("%v", clone.EpsilonSafeDiv) + paletteEpsilonSafeDiv := fmt.Sprintf("%v", palette.EpsilonSafeDiv) paletteForecasterRegrets := fmt.Sprintf("%v", palette.ForecasterRegrets) cloneForecasterRegrets := fmt.Sprintf("%v", clone.ForecasterRegrets) if &clone.Ctx == &palette.Ctx || cloneK != paletteK || &clone.Logger == &palette.Logger || @@ -74,8 +77,8 @@ func TestSynthPalette_Clone(t *testing.T) { &clone.InfererRegrets == &palette.InfererRegrets || &clone.Forecasters == &palette.Forecasters || &clone.ForecastByWorker == &palette.ForecastByWorker || &clone.ForecastImpliedInferenceByWorker == &palette.ForecastImpliedInferenceByWorker || &clone.ForecasterRegrets == &palette.ForecasterRegrets || cloneForecasterRegrets != paletteForecasterRegrets || - &clone.CNorm == &palette.CNorm || &clone.PNorm == &palette.PNorm || &clone.Epsilon == &palette.Epsilon || - cloneCNorm != paletteCNorm || clonePNorm != palettePNorm || cloneEpsilon != paletteEpsilon { + &clone.CNorm == &palette.CNorm || &clone.PNorm == &palette.PNorm || &clone.EpsilonTopic == &palette.EpsilonTopic || + cloneCNorm != paletteCNorm || clonePNorm != palettePNorm || cloneEpsilonTopic != paletteEpsilonTopic || closeEpsilonSafeDiv != paletteEpsilonSafeDiv { t.Errorf("Clone() failed: cloned palette is not a deep copy") } } diff --git a/x/emissions/keeper/inference_synthesis/synth_palette_factory.go b/x/emissions/keeper/inference_synthesis/synth_palette_factory.go index ef05c8cfa..ba66bf633 100644 --- a/x/emissions/keeper/inference_synthesis/synth_palette_factory.go +++ b/x/emissions/keeper/inference_synthesis/synth_palette_factory.go @@ -31,7 +31,8 @@ func (f *SynthPaletteFactory) BuildPaletteFromRequest(req SynthRequest) (SynthPa ForecastImpliedInferenceByWorker: nil, // Populated below ForecasterRegrets: make(map[string]*alloraMath.Dec), // Populated below NetworkCombinedLoss: req.NetworkCombinedLoss, - Epsilon: req.Epsilon, + EpsilonTopic: req.EpsilonTopic, + EpsilonSafeDiv: req.EpsilonSafeDiv, PNorm: req.PNorm, CNorm: req.CNorm, } diff --git a/x/emissions/keeper/inference_synthesis/synth_palette_forecast_implied_test.go b/x/emissions/keeper/inference_synthesis/synth_palette_forecast_implied_test.go index b2ed135c6..35fd604b9 100644 --- a/x/emissions/keeper/inference_synthesis/synth_palette_forecast_implied_test.go +++ b/x/emissions/keeper/inference_synthesis/synth_palette_forecast_implied_test.go @@ -110,7 +110,7 @@ func (s *InferenceSynthesisTestSuite) TestCalcForecastImpliedInferencesTwoWorker } expected := map[string]*emissionstypes.Inference{ - "forecaster0": {Value: alloraMath.MustNewDecFromString("1.018004876148456175753781623")}, + "forecaster0": {Value: alloraMath.MustNewDecFromString("1.055841253742177320400327600231111")}, } inferenceByWorker := map[string]*emissionstypes.Inference{ "worker0": {Value: alloraMath.MustNewDecFromString("1")}, @@ -123,7 +123,7 @@ func (s *InferenceSynthesisTestSuite) TestCalcForecastImpliedInferencesTwoWorker Forecasters: []string{"forecaster0"}, Inferers: []string{"worker0", "worker1"}, NetworkCombinedLoss: networkCombinedLoss, - Epsilon: epsilon, + EpsilonTopic: epsilon, PNorm: pNorm, CNorm: cNorm, } @@ -177,7 +177,7 @@ func (s *InferenceSynthesisTestSuite) TestCalcForecastImpliedInferencesTwoWorker Forecasters: []string{"worker0"}, Inferers: []string{"worker0", "worker1"}, NetworkCombinedLoss: networkCombinedLoss, - Epsilon: epsilon, + EpsilonTopic: epsilon, PNorm: pNorm, CNorm: cNorm, } @@ -228,8 +228,8 @@ func (s *InferenceSynthesisTestSuite) TestCalcForecastImpliedInferencesThreeWork } expected := map[string]*emissionstypes.Inference{ - "worker0": {Value: alloraMath.MustNewDecFromString("1.09768148018932306697138469819693")}, - "worker1": {Value: alloraMath.MustNewDecFromString("1.092613996774755705653569661621415")}, + "worker0": {Value: alloraMath.MustNewDecFromString("1.158380376510523897775902553985830")}, + "worker1": {Value: alloraMath.MustNewDecFromString("1.149124717287201046499545990921485")}, "worker2": nil, } inferenceByWorker := map[string]*emissionstypes.Inference{ @@ -248,7 +248,7 @@ func (s *InferenceSynthesisTestSuite) TestCalcForecastImpliedInferencesThreeWork Forecasters: []string{"worker0", "worker1", "worker2"}, Inferers: []string{"worker0", "worker1", "worker2"}, NetworkCombinedLoss: networkCombinedLoss, - Epsilon: epsilon, + EpsilonTopic: epsilon, PNorm: pNorm, CNorm: cNorm, } @@ -278,8 +278,8 @@ func (s *InferenceSynthesisTestSuite) TestCalcForecastImpliedInferencesThreeWork } func (s *InferenceSynthesisTestSuite) TestCalcForcastImpliedInferencesEpoch2() { - epochGet := GetSimulatedValuesGetterForEpochs() - epoch2Get := epochGet[2] + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch2Get := epochGet[302] forecasts := &emissionstypes.Forecasts{ Forecasts: []*emissionstypes.Forecast{ @@ -315,7 +315,7 @@ func (s *InferenceSynthesisTestSuite) TestCalcForcastImpliedInferencesEpoch2() { Forecasters: []string{"forecaster0"}, Inferers: []string{"worker0", "worker1", "worker2", "worker3", "worker4"}, NetworkCombinedLoss: networkCombinedLoss, - Epsilon: epsilon, + EpsilonTopic: epsilon, PNorm: pNorm, CNorm: cNorm, } @@ -338,8 +338,8 @@ func (s *InferenceSynthesisTestSuite) TestCalcForcastImpliedInferencesEpoch2() { } func (s *InferenceSynthesisTestSuite) TestCalcForcastImpliedInferencesEpoch3() { - epochGet := GetSimulatedValuesGetterForEpochs() - epoch3Get := epochGet[3] + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch3Get := epochGet[303] forecasts := &emissionstypes.Forecasts{ Forecasts: []*emissionstypes.Forecast{ @@ -377,7 +377,7 @@ func (s *InferenceSynthesisTestSuite) TestCalcForcastImpliedInferencesEpoch3() { Forecasters: []string{"forecaster0"}, Inferers: []string{"worker0", "worker1", "worker2", "worker3", "worker4"}, NetworkCombinedLoss: networkCombinedLoss, - Epsilon: epsilon, + EpsilonTopic: epsilon, PNorm: pNorm, CNorm: cNorm, } diff --git a/x/emissions/keeper/inference_synthesis/synth_palette_weight.go b/x/emissions/keeper/inference_synthesis/synth_palette_weight.go index 418b8ddc7..e9bb61b53 100644 --- a/x/emissions/keeper/inference_synthesis/synth_palette_weight.go +++ b/x/emissions/keeper/inference_synthesis/synth_palette_weight.go @@ -33,7 +33,7 @@ func (p *SynthPalette) CalcWeightsGivenWorkers() (RegretInformedWeights, error) return RegretInformedWeights{}, errorsmod.Wrapf(err, "Error calculating standard deviation of regrets") } // Add epsilon to standard deviation - stdDevRegretsPlusEpsilon, err := stdDevRegrets.Abs().Add(p.Epsilon) + stdDevRegretsPlusEpsilon, err := stdDevRegrets.Abs().Add(p.EpsilonTopic) if err != nil { return RegretInformedWeights{}, errorsmod.Wrapf(err, "Error adding epsilon to standard deviation") } @@ -188,8 +188,8 @@ func (p *SynthPalette) CalcWeightedInference(weights RegretInformedWeights) (Inf } // Normalize the running unnormalized network inference to yield output - if sumWeights.Lt(p.Epsilon) { - sumWeights = p.Epsilon + if sumWeights.Lt(p.EpsilonSafeDiv) { + sumWeights = p.EpsilonSafeDiv } ret, err := runningUnnormalizedI_i.Quo(sumWeights) if err != nil { diff --git a/x/emissions/keeper/inference_synthesis/types.go b/x/emissions/keeper/inference_synthesis/types.go index 49eadbe87..5f7a5b811 100644 --- a/x/emissions/keeper/inference_synthesis/types.go +++ b/x/emissions/keeper/inference_synthesis/types.go @@ -18,12 +18,6 @@ type Weight = alloraMath.Dec type InferenceValue = alloraMath.Dec type Stake = cosmosMath.Int -type StdDevRegrets struct { - stdDevInferenceRegrets Regret - stdDevCombinedRegrets Regret - // StdDevOneInForecastRegret map[Worker]Regret // max regret for each one-in forecaster -} - // Need to differentiate between the two types of regrets because workers may complete tasks // for both roles and may have different regrets for those different roles type RegretInformedWeights struct { @@ -38,7 +32,8 @@ type SynthRequest struct { Inferences *emissions.Inferences Forecasts *emissions.Forecasts NetworkCombinedLoss Loss - Epsilon alloraMath.Dec + EpsilonTopic alloraMath.Dec + EpsilonSafeDiv alloraMath.Dec PNorm alloraMath.Dec CNorm alloraMath.Dec } @@ -67,7 +62,8 @@ type SynthPalette struct { // Must respect the order of sister `forecasters` property ForecasterRegrets map[Worker]*alloraMath.Dec NetworkCombinedLoss Loss - Epsilon alloraMath.Dec + EpsilonTopic alloraMath.Dec + EpsilonSafeDiv alloraMath.Dec PNorm alloraMath.Dec CNorm alloraMath.Dec } diff --git a/x/emissions/keeper/invariants.go b/x/emissions/keeper/invariants.go index 0b3cb372b..fb8c73326 100644 --- a/x/emissions/keeper/invariants.go +++ b/x/emissions/keeper/invariants.go @@ -76,6 +76,7 @@ func StakingInvariantLenStakeRemovalsSame(k Keeper) sdk.Invariant { if err != nil { panic(fmt.Sprintf("failed to get stake removals iterator: %v", err)) } + defer iterByBlock.Close() valuesByBlock, err := iterByBlock.Values() if err != nil { panic(fmt.Sprintf("failed to get stake removals values: %v", err)) @@ -85,6 +86,7 @@ func StakingInvariantLenStakeRemovalsSame(k Keeper) sdk.Invariant { if err != nil { panic(fmt.Sprintf("failed to get stake removals iterator: %v", err)) } + defer iterByActor.Close() valuesByActor, err := iterByActor.Keys() if err != nil { panic(fmt.Sprintf("failed to get stake removals values: %v", err)) @@ -165,6 +167,7 @@ func StakingInvariantDelegatedStakes(k Keeper) sdk.Invariant { if err != nil { panic(fmt.Sprintf("failed to get delegated stakes iterator: %v", err)) } + defer topicIter.Close() type ExpectedSumToComputedSum struct { expected cosmosMath.Int computed cosmosMath.Int @@ -273,6 +276,7 @@ func StakingInvariantSumStakeFromStakeReputerAuthorityEqualTotalStakeAndTopicSta if err != nil { panic(fmt.Sprintf("failed to get reputer authorities iterator: %v", err)) } + defer reputerAuthoritiesForTopicIter.Close() for ; reputerAuthoritiesForTopicIter.Valid(); reputerAuthoritiesForTopicIter.Next() { reputerAuthority, err := reputerAuthoritiesForTopicIter.Value() if err != nil { @@ -314,6 +318,7 @@ func StakingInvariantPendingRewardForDelegatorsEqualRewardPerShareMinusRewardDeb if err != nil { panic("failed to get delegated stakes iterator") } + defer iter.Close() type TopicAndReputer struct { topicId uint64 reputer string @@ -351,6 +356,7 @@ func StakingInvariantPendingRewardForDelegatorsEqualRewardPerShareMinusRewardDeb if err != nil { panic("failed to get delegate reward per share iterator") } + defer iter2.Close() accumulatedRewardsBeyondRewardDebt := alloraMath.ZeroDec() for ; iter2.Valid(); iter2.Next() { keyValue, err := iter2.KeyValue() diff --git a/x/emissions/keeper/keeper.go b/x/emissions/keeper/keeper.go index 3a263ef6e..64ebdf20f 100644 --- a/x/emissions/keeper/keeper.go +++ b/x/emissions/keeper/keeper.go @@ -4,12 +4,13 @@ import ( "context" "encoding/binary" "errors" + "fmt" + "sort" errorsmod "cosmossdk.io/errors" - "github.com/allora-network/allora-chain/app/params" - cosmosMath "cosmossdk.io/math" + "github.com/allora-network/allora-chain/app/params" alloraMath "github.com/allora-network/allora-chain/math" "cosmossdk.io/collections" @@ -30,6 +31,7 @@ type Delegator = string type Keeper struct { cdc codec.BinaryCodec + storeService coreStore.KVStoreService addressCodec address.Codec feeCollectorName string @@ -47,8 +49,6 @@ type Keeper struct { // every topic that has been created indexed by their topicId starting from 1 (0 is reserved for the root network) topics collections.Map[TopicId, types.Topic] activeTopics collections.KeySet[TopicId] - // every topic that is ready to request inferences and possible also losses - churnableTopics collections.KeySet[TopicId] // every topic that has been churned and ready to be rewarded i.e. reputer losses have been committed rewardableTopics collections.KeySet[TopicId] // for a topic, what is every worker node that has registered to it? @@ -80,6 +80,7 @@ type Keeper struct { previousInferenceRewardFraction collections.Map[collections.Pair[TopicId, ActorId], alloraMath.Dec] // map of (topic, worker) -> previous reward for forecast (used for EMA) previousForecastRewardFraction collections.Map[collections.Pair[TopicId, ActorId], alloraMath.Dec] + previousForecasterScoreRatio collections.Map[TopicId, alloraMath.Dec] /// STAKING @@ -119,10 +120,10 @@ type Keeper struct { forecasts collections.Map[collections.Pair[TopicId, ActorId], types.Forecast] // map of worker id to node data about that worker - workers collections.Map[LibP2pKey, types.OffchainNode] + workers collections.Map[ActorId, types.OffchainNode] // map of reputer id to node data about that reputer - reputers collections.Map[LibP2pKey, types.OffchainNode] + reputers collections.Map[ActorId, types.OffchainNode] // fee revenue collected by a topic over the course of the last reward cadence topicFeeRevenue collections.Map[TopicId, cosmosMath.Int] @@ -147,6 +148,9 @@ type Keeper struct { /// NONCES + // map of open worker nonce windows for topics on particular block heights + openWorkerWindows collections.Map[BlockHeight, types.TopicIds] + // map of (topic) -> unfulfilled nonces unfulfilledWorkerNonces collections.Map[TopicId, types.Nonces] @@ -162,8 +166,16 @@ type Keeper struct { // map of (topic, forecaster, inferer) -> R^+_{ij_kk} regret of forecaster loss from comparing one-in loss with // all network inferer (3rd index) regrets L_ij made under the regime of the one-in forecaster (2nd index) latestOneInForecasterNetworkRegrets collections.Map[collections.Triple[TopicId, ActorId, ActorId], types.TimestampedValue] - // the forecaster (2nd index) regrets made under the regime of the same forecaster as a one-in forecaster - latestOneInForecasterSelfNetworkRegrets collections.Map[collections.Pair[TopicId, ActorId], types.TimestampedValue] + // map of (topic id, inferer) -> regret + latestNaiveInfererNetworkRegrets collections.Map[collections.Pair[TopicId, ActorId], types.TimestampedValue] + // map of (topic id , one out inferer, inferer)-> regret + latestOneOutInfererInfererNetworkRegrets collections.Map[collections.Triple[TopicId, ActorId, ActorId], types.TimestampedValue] + // map of (topicId, oneOutInferer, forecaster) -> regret + latestOneOutInfererForecasterNetworkRegrets collections.Map[collections.Triple[TopicId, ActorId, ActorId], types.TimestampedValue] + // map of (topicId, oneOutInferer, inferer) -> regret + latestOneOutForecasterInfererNetworkRegrets collections.Map[collections.Triple[TopicId, ActorId, ActorId], types.TimestampedValue] + // map of (topicId, oneOutForecaster, forecaster) -> regret + latestOneOutForecasterForecasterNetworkRegrets collections.Map[collections.Triple[TopicId, ActorId, ActorId], types.TimestampedValue] /// WHITELISTS @@ -171,11 +183,8 @@ type Keeper struct { /// RECORD COMMITS - // - topicLastWorkerCommit collections.Map[TopicId, types.TimestampedActorNonce] - topicLastReputerCommit collections.Map[TopicId, types.TimestampedActorNonce] - topicLastWorkerPayload collections.Map[TopicId, types.TimestampedActorNonce] - topicLastReputerPayload collections.Map[TopicId, types.TimestampedActorNonce] + topicLastWorkerCommit collections.Map[TopicId, types.TimestampedActorNonce] + topicLastReputerCommit collections.Map[TopicId, types.TimestampedActorNonce] } func NewKeeper( @@ -190,6 +199,7 @@ func NewKeeper( sb := collections.NewSchemaBuilder(storeService) k := Keeper{ cdc: cdc, + storeService: storeService, addressCodec: addressCodec, feeCollectorName: feeCollectorName, params: collections.NewItem(sb, types.ParamsKey, "params", codec.CollValue[types.Params](cdc)), @@ -200,7 +210,6 @@ func NewKeeper( nextTopicId: collections.NewSequence(sb, types.NextTopicIdKey, "next_TopicId"), topics: collections.NewMap(sb, types.TopicsKey, "topics", collections.Uint64Key, codec.CollValue[types.Topic](cdc)), activeTopics: collections.NewKeySet(sb, types.ActiveTopicsKey, "active_topics", collections.Uint64Key), - churnableTopics: collections.NewKeySet(sb, types.ChurnableTopicsKey, "churnable_topics", collections.Uint64Key), rewardableTopics: collections.NewKeySet(sb, types.RewardableTopicsKey, "rewardable_topics", collections.Uint64Key), topicWorkers: collections.NewKeySet(sb, types.TopicWorkersKey, "topic_workers", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey)), topicReputers: collections.NewKeySet(sb, types.TopicReputersKey, "topic_reputers", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey)), @@ -227,25 +236,29 @@ func NewKeeper( latestInfererNetworkRegrets: collections.NewMap(sb, types.InfererNetworkRegretsKey, "inferer_network_regrets", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), codec.CollValue[types.TimestampedValue](cdc)), latestForecasterNetworkRegrets: collections.NewMap(sb, types.ForecasterNetworkRegretsKey, "forecaster_network_regrets", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), codec.CollValue[types.TimestampedValue](cdc)), latestOneInForecasterNetworkRegrets: collections.NewMap(sb, types.OneInForecasterNetworkRegretsKey, "one_in_forecaster_network_regrets", collections.TripleKeyCodec(collections.Uint64Key, collections.StringKey, collections.StringKey), codec.CollValue[types.TimestampedValue](cdc)), - latestOneInForecasterSelfNetworkRegrets: collections.NewMap(sb, types.OneInForecasterSelfNetworkRegretsKey, "one_in_forecaster_self_network_regrets", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), codec.CollValue[types.TimestampedValue](cdc)), - whitelistAdmins: collections.NewKeySet(sb, types.WhitelistAdminsKey, "whitelist_admins", collections.StringKey), - infererScoresByBlock: collections.NewMap(sb, types.InferenceScoresKey, "inferer_scores_by_block", collections.PairKeyCodec(collections.Uint64Key, collections.Int64Key), codec.CollValue[types.Scores](cdc)), - forecasterScoresByBlock: collections.NewMap(sb, types.ForecastScoresKey, "forecaster_scores_by_block", collections.PairKeyCodec(collections.Uint64Key, collections.Int64Key), codec.CollValue[types.Scores](cdc)), - latestInfererScoresByWorker: collections.NewMap(sb, types.LatestInfererScoresByWorkerKey, "latest_inferer_scores_by_worker", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), codec.CollValue[types.Score](cdc)), - latestForecasterScoresByWorker: collections.NewMap(sb, types.LatestForecasterScoresByWorkerKey, "latest_forecaster_scores_by_worker", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), codec.CollValue[types.Score](cdc)), - latestReputerScoresByReputer: collections.NewMap(sb, types.LatestReputerScoresByReputerKey, "latest_reputer_scores_by_reputer", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), codec.CollValue[types.Score](cdc)), - previousReputerRewardFraction: collections.NewMap(sb, types.PreviousReputerRewardFractionKey, "previous_reputer_reward_fraction", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), alloraMath.DecValue), - previousInferenceRewardFraction: collections.NewMap(sb, types.PreviousInferenceRewardFractionKey, "previous_inference_reward_fraction", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), alloraMath.DecValue), - previousForecastRewardFraction: collections.NewMap(sb, types.PreviousForecastRewardFractionKey, "previous_forecast_reward_fraction", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), alloraMath.DecValue), - reputerScoresByBlock: collections.NewMap(sb, types.ReputerScoresKey, "reputer_scores_by_block", collections.PairKeyCodec(collections.Uint64Key, collections.Int64Key), codec.CollValue[types.Scores](cdc)), - reputerListeningCoefficient: collections.NewMap(sb, types.ReputerListeningCoefficientKey, "reputer_listening_coefficient", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), codec.CollValue[types.ListeningCoefficient](cdc)), - unfulfilledWorkerNonces: collections.NewMap(sb, types.UnfulfilledWorkerNoncesKey, "unfulfilled_worker_nonces", collections.Uint64Key, codec.CollValue[types.Nonces](cdc)), - unfulfilledReputerNonces: collections.NewMap(sb, types.UnfulfilledReputerNoncesKey, "unfulfilled_reputer_nonces", collections.Uint64Key, codec.CollValue[types.ReputerRequestNonces](cdc)), - topicRewardNonce: collections.NewMap(sb, types.TopicRewardNonceKey, "topic_reward_nonce", collections.Uint64Key, collections.Int64Value), - topicLastWorkerCommit: collections.NewMap(sb, types.TopicLastWorkerCommitKey, "topic_last_worker_commit", collections.Uint64Key, codec.CollValue[types.TimestampedActorNonce](cdc)), - topicLastReputerCommit: collections.NewMap(sb, types.TopicLastReputerCommitKey, "topic_last_reputer_commit", collections.Uint64Key, codec.CollValue[types.TimestampedActorNonce](cdc)), - topicLastWorkerPayload: collections.NewMap(sb, types.TopicLastWorkerPayloadKey, "topic_last_worker_payload", collections.Uint64Key, codec.CollValue[types.TimestampedActorNonce](cdc)), - topicLastReputerPayload: collections.NewMap(sb, types.TopicLastReputerPayloadKey, "topic_last_reputer_payload", collections.Uint64Key, codec.CollValue[types.TimestampedActorNonce](cdc)), + latestNaiveInfererNetworkRegrets: collections.NewMap(sb, types.LatestNaiveInfererNetworkRegretsKey, "latest_naive_inferer_network_regrets", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), codec.CollValue[types.TimestampedValue](cdc)), + latestOneOutInfererInfererNetworkRegrets: collections.NewMap(sb, types.LatestOneOutInfererInfererNetworkRegretsKey, "latest_one_out_inferer_inferer_network_regrets", collections.TripleKeyCodec(collections.Uint64Key, collections.StringKey, collections.StringKey), codec.CollValue[types.TimestampedValue](cdc)), + latestOneOutInfererForecasterNetworkRegrets: collections.NewMap(sb, types.LatestOneOutInfererForecasterNetworkRegretsKey, "latest_one_out_inferer_forecaster_network_regrets", collections.TripleKeyCodec(collections.Uint64Key, collections.StringKey, collections.StringKey), codec.CollValue[types.TimestampedValue](cdc)), + latestOneOutForecasterInfererNetworkRegrets: collections.NewMap(sb, types.LatestOneOutForecasterInfererNetworkRegretsKey, "latest_one_out_forecaster_inferer_network_regrets", collections.TripleKeyCodec(collections.Uint64Key, collections.StringKey, collections.StringKey), codec.CollValue[types.TimestampedValue](cdc)), + latestOneOutForecasterForecasterNetworkRegrets: collections.NewMap(sb, types.LatestOneOutForecasterForecasterNetworkRegretsKey, "latest_one_out_forecaster_forecaster_network_regrets", collections.TripleKeyCodec(collections.Uint64Key, collections.StringKey, collections.StringKey), codec.CollValue[types.TimestampedValue](cdc)), + whitelistAdmins: collections.NewKeySet(sb, types.WhitelistAdminsKey, "whitelist_admins", collections.StringKey), + infererScoresByBlock: collections.NewMap(sb, types.InferenceScoresKey, "inferer_scores_by_block", collections.PairKeyCodec(collections.Uint64Key, collections.Int64Key), codec.CollValue[types.Scores](cdc)), + forecasterScoresByBlock: collections.NewMap(sb, types.ForecastScoresKey, "forecaster_scores_by_block", collections.PairKeyCodec(collections.Uint64Key, collections.Int64Key), codec.CollValue[types.Scores](cdc)), + latestInfererScoresByWorker: collections.NewMap(sb, types.LatestInfererScoresByWorkerKey, "latest_inferer_scores_by_worker", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), codec.CollValue[types.Score](cdc)), + latestForecasterScoresByWorker: collections.NewMap(sb, types.LatestForecasterScoresByWorkerKey, "latest_forecaster_scores_by_worker", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), codec.CollValue[types.Score](cdc)), + latestReputerScoresByReputer: collections.NewMap(sb, types.LatestReputerScoresByReputerKey, "latest_reputer_scores_by_reputer", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), codec.CollValue[types.Score](cdc)), + previousReputerRewardFraction: collections.NewMap(sb, types.PreviousReputerRewardFractionKey, "previous_reputer_reward_fraction", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), alloraMath.DecValue), + previousInferenceRewardFraction: collections.NewMap(sb, types.PreviousInferenceRewardFractionKey, "previous_inference_reward_fraction", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), alloraMath.DecValue), + previousForecastRewardFraction: collections.NewMap(sb, types.PreviousForecastRewardFractionKey, "previous_forecast_reward_fraction", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), alloraMath.DecValue), + previousForecasterScoreRatio: collections.NewMap(sb, types.PreviousForecasterScoreRatioKey, "previous_forecaster_score_ratio", collections.Uint64Key, alloraMath.DecValue), + reputerScoresByBlock: collections.NewMap(sb, types.ReputerScoresKey, "reputer_scores_by_block", collections.PairKeyCodec(collections.Uint64Key, collections.Int64Key), codec.CollValue[types.Scores](cdc)), + reputerListeningCoefficient: collections.NewMap(sb, types.ReputerListeningCoefficientKey, "reputer_listening_coefficient", collections.PairKeyCodec(collections.Uint64Key, collections.StringKey), codec.CollValue[types.ListeningCoefficient](cdc)), + unfulfilledWorkerNonces: collections.NewMap(sb, types.UnfulfilledWorkerNoncesKey, "unfulfilled_worker_nonces", collections.Uint64Key, codec.CollValue[types.Nonces](cdc)), + unfulfilledReputerNonces: collections.NewMap(sb, types.UnfulfilledReputerNoncesKey, "unfulfilled_reputer_nonces", collections.Uint64Key, codec.CollValue[types.ReputerRequestNonces](cdc)), + topicRewardNonce: collections.NewMap(sb, types.TopicRewardNonceKey, "topic_reward_nonce", collections.Uint64Key, collections.Int64Value), + topicLastWorkerCommit: collections.NewMap(sb, types.TopicLastWorkerCommitKey, "topic_last_worker_commit", collections.Uint64Key, codec.CollValue[types.TimestampedActorNonce](cdc)), + topicLastReputerCommit: collections.NewMap(sb, types.TopicLastReputerCommitKey, "topic_last_reputer_commit", collections.Uint64Key, codec.CollValue[types.TimestampedActorNonce](cdc)), + openWorkerWindows: collections.NewMap(sb, types.OpenWorkerWindowsKey, "open_worker_windows", collections.Int64Key, codec.CollValue[types.TopicIds](cdc)), } schema, err := sb.Build() @@ -258,8 +271,43 @@ func NewKeeper( return k } +func (k *Keeper) GetStorageService() coreStore.KVStoreService { + return k.storeService +} + +func (k *Keeper) GetBinaryCodec() codec.BinaryCodec { + return k.cdc +} + /// NONCES +// GetTopicIds returns the TopicIds for a given BlockHeight. +// If no TopicIds are found for the BlockHeight, it returns an empty slice. +func (k *Keeper) GetWorkerWindowTopicIds(ctx sdk.Context, height BlockHeight) types.TopicIds { + topicIds, err := k.openWorkerWindows.Get(ctx, height) + if err != nil { + return types.TopicIds{} + } + return topicIds +} + +// SetTopicId appends a new TopicId to the list of TopicIds for a given BlockHeight. +// If no entry exists for the BlockHeight, it creates a new entry with the TopicId. +func (k *Keeper) AddWorkerWindowTopicId(ctx sdk.Context, height BlockHeight, topicId TopicId) error { + var topicIds types.TopicIds + topicIds, err := k.openWorkerWindows.Get(ctx, height) + if err != nil { + topicIds = types.TopicIds{} + } + topicIds.TopicIds = append(topicIds.TopicIds, topicId) + k.openWorkerWindows.Set(ctx, height, topicIds) + return nil +} + +func (k *Keeper) DeleteWorkerWindowBlockheight(ctx sdk.Context, height BlockHeight) error { + return k.openWorkerWindows.Remove(ctx, height) +} + // Attempts to fulfill an unfulfilled nonce. // If the nonce is present, then it is removed from the unfulfilled nonces and this function returns true. // If the nonce is not present, then the function returns false. @@ -463,21 +511,6 @@ func (k *Keeper) SetInfererNetworkRegret(ctx context.Context, topicId TopicId, w return k.latestInfererNetworkRegrets.Set(ctx, key, regret) } -func (k *Keeper) SetForecasterNetworkRegret(ctx context.Context, topicId TopicId, worker ActorId, regret types.TimestampedValue) error { - key := collections.Join(topicId, worker) - return k.latestForecasterNetworkRegrets.Set(ctx, key, regret) -} - -func (k *Keeper) SetOneInForecasterNetworkRegret(ctx context.Context, topicId TopicId, forecaster ActorId, inferer ActorId, regret types.TimestampedValue) error { - key := collections.Join3(topicId, forecaster, inferer) - return k.latestOneInForecasterNetworkRegrets.Set(ctx, key, regret) -} - -func (k *Keeper) SetOneInForecasterSelfNetworkRegret(ctx context.Context, topicId TopicId, forecaster ActorId, regret types.TimestampedValue) error { - key := collections.Join(topicId, forecaster) - return k.latestOneInForecasterSelfNetworkRegrets.Set(ctx, key, regret) -} - // Returns the regret of a inferer from comparing loss of inferer relative to loss of other inferers // Returns (0, true) if no regret is found func (k *Keeper) GetInfererNetworkRegret(ctx context.Context, topicId TopicId, worker ActorId) (types.TimestampedValue, bool, error) { @@ -499,6 +532,11 @@ func (k *Keeper) GetInfererNetworkRegret(ctx context.Context, topicId TopicId, w return regret, false, nil } +func (k *Keeper) SetForecasterNetworkRegret(ctx context.Context, topicId TopicId, worker ActorId, regret types.TimestampedValue) error { + key := collections.Join(topicId, worker) + return k.latestForecasterNetworkRegrets.Set(ctx, key, regret) +} + // Returns the regret of a forecaster from comparing loss of forecaster relative to loss of other forecasters // Returns (0, true) if no regret is found func (k *Keeper) GetForecasterNetworkRegret(ctx context.Context, topicId TopicId, worker ActorId) (types.TimestampedValue, bool, error) { @@ -520,10 +558,15 @@ func (k *Keeper) GetForecasterNetworkRegret(ctx context.Context, topicId TopicId return regret, false, nil } +func (k *Keeper) SetOneInForecasterNetworkRegret(ctx context.Context, topicId TopicId, oneInForecaster ActorId, inferer ActorId, regret types.TimestampedValue) error { + key := collections.Join3(topicId, oneInForecaster, inferer) + return k.latestOneInForecasterNetworkRegrets.Set(ctx, key, regret) +} + // Returns the regret of a forecaster from comparing loss of forecaster relative to loss of other forecasters // Returns (0, true) if no regret is found -func (k *Keeper) GetOneInForecasterNetworkRegret(ctx context.Context, topicId TopicId, forecaster ActorId, inferer ActorId) (types.TimestampedValue, bool, error) { - key := collections.Join3(topicId, forecaster, inferer) +func (k *Keeper) GetOneInForecasterNetworkRegret(ctx context.Context, topicId TopicId, oneInForecaster ActorId, inferer ActorId) (types.TimestampedValue, bool, error) { + key := collections.Join3(topicId, oneInForecaster, inferer) regret, err := k.latestOneInForecasterNetworkRegrets.Get(ctx, key) if err != nil { if errors.Is(err, collections.ErrNotFound) { @@ -541,9 +584,110 @@ func (k *Keeper) GetOneInForecasterNetworkRegret(ctx context.Context, topicId To return regret, false, nil } -func (k *Keeper) GetOneInForecasterSelfNetworkRegret(ctx context.Context, topicId TopicId, forecaster ActorId) (types.TimestampedValue, bool, error) { - key := collections.Join(topicId, forecaster) - regret, err := k.latestOneInForecasterSelfNetworkRegrets.Get(ctx, key) +func (k *Keeper) SetNaiveInfererNetworkRegret(ctx context.Context, topicId TopicId, inferer ActorId, regret types.TimestampedValue) error { + key := collections.Join(topicId, inferer) + return k.latestNaiveInfererNetworkRegrets.Set(ctx, key, regret) +} + +func (k *Keeper) GetNaiveInfererNetworkRegret(ctx context.Context, topicId TopicId, inferer ActorId) (types.TimestampedValue, bool, error) { + key := collections.Join(topicId, inferer) + regret, err := k.latestNaiveInfererNetworkRegrets.Get(ctx, key) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + topic, err := k.GetTopic(ctx, topicId) + if err != nil { + return types.TimestampedValue{}, false, err + } + return types.TimestampedValue{ + BlockHeight: 0, + Value: topic.InitialRegret, + }, true, nil + } + return types.TimestampedValue{}, false, err + } + return regret, false, nil +} + +func (k *Keeper) SetOneOutInfererInfererNetworkRegret(ctx context.Context, topicId TopicId, oneOutInferer ActorId, inferer ActorId, regret types.TimestampedValue) error { + key := collections.Join3(topicId, oneOutInferer, inferer) + return k.latestOneOutInfererInfererNetworkRegrets.Set(ctx, key, regret) +} + +func (k *Keeper) GetOneOutInfererInfererNetworkRegret(ctx context.Context, topicId TopicId, oneOutInferer ActorId, inferer ActorId) (types.TimestampedValue, bool, error) { + key := collections.Join3(topicId, oneOutInferer, inferer) + regret, err := k.latestOneOutInfererInfererNetworkRegrets.Get(ctx, key) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + topic, err := k.GetTopic(ctx, topicId) + if err != nil { + return types.TimestampedValue{}, false, err + } + return types.TimestampedValue{ + BlockHeight: 0, + Value: topic.InitialRegret, + }, true, nil + } + return types.TimestampedValue{}, false, err + } + return regret, false, nil +} + +func (k *Keeper) SetOneOutInfererForecasterNetworkRegret(ctx context.Context, topicId TopicId, oneOutInferer ActorId, forecaster ActorId, regret types.TimestampedValue) error { + key := collections.Join3(topicId, oneOutInferer, forecaster) + return k.latestOneOutInfererForecasterNetworkRegrets.Set(ctx, key, regret) +} + +func (k *Keeper) GetOneOutInfererForecasterNetworkRegret(ctx context.Context, topicId TopicId, oneOutInferer ActorId, forecaster ActorId) (types.TimestampedValue, bool, error) { + key := collections.Join3(topicId, oneOutInferer, forecaster) + regret, err := k.latestOneOutInfererForecasterNetworkRegrets.Get(ctx, key) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + topic, err := k.GetTopic(ctx, topicId) + if err != nil { + return types.TimestampedValue{}, false, err + } + return types.TimestampedValue{ + BlockHeight: 0, + Value: topic.InitialRegret, + }, true, nil + } + return types.TimestampedValue{}, false, err + } + return regret, false, nil +} + +func (k *Keeper) SetOneOutForecasterInfererNetworkRegret(ctx context.Context, topicId TopicId, oneOutForecaster ActorId, inferer ActorId, regret types.TimestampedValue) error { + key := collections.Join3(topicId, oneOutForecaster, inferer) + return k.latestOneOutForecasterInfererNetworkRegrets.Set(ctx, key, regret) +} + +func (k *Keeper) GetOneOutForecasterInfererNetworkRegret(ctx context.Context, topicId TopicId, oneOutForecaster ActorId, inferer ActorId) (types.TimestampedValue, bool, error) { + key := collections.Join3(topicId, oneOutForecaster, inferer) + regret, err := k.latestOneOutForecasterInfererNetworkRegrets.Get(ctx, key) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + topic, err := k.GetTopic(ctx, topicId) + if err != nil { + return types.TimestampedValue{}, false, err + } + return types.TimestampedValue{ + BlockHeight: 0, + Value: topic.InitialRegret, + }, true, nil + } + return types.TimestampedValue{}, false, err + } + return regret, false, nil +} + +func (k *Keeper) SetOneOutForecasterForecasterNetworkRegret(ctx context.Context, topicId TopicId, oneOutForecaster ActorId, forecaster ActorId, regret types.TimestampedValue) error { + key := collections.Join3(topicId, oneOutForecaster, forecaster) + return k.latestOneOutForecasterForecasterNetworkRegrets.Set(ctx, key, regret) +} + +func (k *Keeper) GetOneOutForecasterForecasterNetworkRegret(ctx context.Context, topicId TopicId, oneOutForecaster ActorId, forecaster ActorId) (types.TimestampedValue, bool, error) { + key := collections.Join3(topicId, oneOutForecaster, forecaster) + regret, err := k.latestOneOutForecasterForecasterNetworkRegrets.Get(ctx, key) if err != nil { if errors.Is(err, collections.ErrNotFound) { topic, err := k.GetTopic(ctx, topicId) @@ -583,6 +727,9 @@ func (k *Keeper) GetInferencesAtBlock(ctx context.Context, topicId TopicId, bloc key := collections.Join(topicId, block) inferences, err := k.allInferences.Get(ctx, key) if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return &types.Inferences{}, nil + } return nil, err } return &inferences, nil @@ -615,11 +762,55 @@ func (k *Keeper) GetForecastsAtBlock(ctx context.Context, topicId TopicId, block key := collections.Join(topicId, block) forecasts, err := k.allForecasts.Get(ctx, key) if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return &types.Forecasts{}, nil + } return nil, err } return &forecasts, nil } +// Append individual inference for a topic/block +func (k *Keeper) AppendInference(ctx context.Context, topicId TopicId, nonce types.Nonce, inference *types.Inference) error { + block := nonce.BlockHeight + moduleParams, err := k.GetParams(ctx) + if err != nil { + return err + } + key := collections.Join(topicId, block) + inferences, err := k.allInferences.Get(ctx, key) + if err != nil { + inferences = types.Inferences{} + } + var newInferences types.Inferences + // remove inference if this inferer already submitted + for _, exInference := range inferences.Inferences { + if exInference.Inferer != inference.Inferer { + newInferences.Inferences = append(newInferences.Inferences, exInference) + } + } + // append inference if not reached out topN + if len(newInferences.Inferences) < int(moduleParams.MaxTopInferersToReward) { + newInferences.Inferences = append(newInferences.Inferences, inference) + return k.allInferences.Set(ctx, key, newInferences) + } + // get score of current inference and check with + score, err := k.GetLatestInfererScore(ctx, topicId, inference.Inferer) + if err != nil { + return err + } + lowScore, lowScoreIndex, err := GetLowScoreFromAllInferences(ctx, k, topicId, newInferences) + if err != nil { + return err + } + if score.Score.Gt(lowScore.Score) { + newInferences.Inferences = append(newInferences.Inferences[:lowScoreIndex], newInferences.Inferences[lowScoreIndex+1:]...) + newInferences.Inferences = append(newInferences.Inferences, inference) + return k.allInferences.Set(ctx, key, newInferences) + } + return nil +} + // Insert a complete set of inferences for a topic/block. Overwrites previous ones. func (k *Keeper) InsertInferences(ctx context.Context, topicId TopicId, nonce types.Nonce, inferences types.Inferences) error { block := nonce.BlockHeight @@ -636,6 +827,46 @@ func (k *Keeper) InsertInferences(ctx context.Context, topicId TopicId, nonce ty return k.allInferences.Set(ctx, key, inferences) } +// Append individual forecast for a topic/block +func (k *Keeper) AppendForecast(ctx context.Context, topicId TopicId, nonce types.Nonce, forecast *types.Forecast) error { + block := nonce.BlockHeight + moduleParams, err := k.GetParams(ctx) + if err != nil { + return err + } + key := collections.Join(topicId, block) + forecasts, err := k.allForecasts.Get(ctx, key) + if err != nil { + forecasts = types.Forecasts{} + } + var newForecasts types.Forecasts + // remove forecast if this forecaster already submitted + for _, exForecast := range forecasts.Forecasts { + if exForecast.Forecaster != forecast.Forecaster { + newForecasts.Forecasts = append(newForecasts.Forecasts, exForecast) + } + } + if len(newForecasts.Forecasts) < int(moduleParams.MaxTopForecastersToReward) { + newForecasts.Forecasts = append(newForecasts.Forecasts, forecast) + return k.allForecasts.Set(ctx, key, newForecasts) + } + // get score of current inference and check with + score, err := k.GetLatestForecasterScore(ctx, topicId, forecast.Forecaster) + if err != nil { + return err + } + lowScore, lowScoreIndex, err := GetLowScoreFromAllForecasts(ctx, k, topicId, newForecasts) + if err != nil { + return err + } + if score.Score.Gt(lowScore.Score) { + newForecasts.Forecasts = append(newForecasts.Forecasts[:lowScoreIndex], newForecasts.Forecasts[lowScoreIndex+1:]...) + newForecasts.Forecasts = append(newForecasts.Forecasts, forecast) + return k.allForecasts.Set(ctx, key, newForecasts) + } + return nil +} + // Insert a complete set of inferences for a topic/block. Overwrites previous ones. func (k *Keeper) InsertForecasts(ctx context.Context, topicId TopicId, nonce types.Nonce, forecasts types.Forecasts) error { block := nonce.BlockHeight @@ -686,6 +917,48 @@ func (k *Keeper) DeleteTopicRewardNonce(ctx context.Context, topicId TopicId) er /// LOSS BUNDLES +// Append loss bundle for a topoic and blockheight +func (k *Keeper) AppendReputerLoss(ctx context.Context, topicId TopicId, block BlockHeight, reputerLoss *types.ReputerValueBundle) error { + moduleParams, err := k.GetParams(ctx) + if err != nil { + return err + } + key := collections.Join(topicId, block) + reputerLossBundles, err := k.allLossBundles.Get(ctx, key) + if err != nil { + reputerLossBundles = types.ReputerValueBundles{} + } + + var newReputerLossBundles types.ReputerValueBundles + // remove reputation if this reputer already submitted + for _, exReputation := range reputerLossBundles.ReputerValueBundles { + if exReputation.ValueBundle.Reputer != reputerLoss.ValueBundle.Reputer { + newReputerLossBundles.ReputerValueBundles = append(newReputerLossBundles.ReputerValueBundles, exReputation) + } + } + if len(newReputerLossBundles.ReputerValueBundles) < int(moduleParams.MaxTopReputersToReward) { + newReputerLossBundles.ReputerValueBundles = append(newReputerLossBundles.ReputerValueBundles, reputerLoss) + return k.allLossBundles.Set(ctx, key, newReputerLossBundles) + } + + // get score of current inference and check with + score, err := k.GetLatestReputerScore(ctx, topicId, reputerLoss.ValueBundle.Reputer) + if err != nil { + return err + } + lowScore, lowScoreIndex, err := GetLowScoreFromAllLossBundles(ctx, k, topicId, newReputerLossBundles) + if err != nil { + return err + } + if score.Score.Gt(lowScore.Score) { + newReputerLossBundles.ReputerValueBundles = append(newReputerLossBundles.ReputerValueBundles[:lowScoreIndex], + newReputerLossBundles.ReputerValueBundles[lowScoreIndex+1:]...) + newReputerLossBundles.ReputerValueBundles = append(newReputerLossBundles.ReputerValueBundles, reputerLoss) + return k.allLossBundles.Set(ctx, key, newReputerLossBundles) + } + return nil +} + // Insert a loss bundle for a topic and timestamp. Overwrites previous ones stored at that composite index. func (k *Keeper) InsertReputerLossBundlesAtBlock(ctx context.Context, topicId TopicId, block BlockHeight, reputerLossBundles types.ReputerValueBundles) error { key := collections.Join(topicId, block) @@ -697,6 +970,9 @@ func (k *Keeper) GetReputerLossBundlesAtBlock(ctx context.Context, topicId Topic key := collections.Join(topicId, block) reputerLossBundles, err := k.allLossBundles.Get(ctx, key) if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return &types.ReputerValueBundles{}, nil + } return nil, err } return &reputerLossBundles, nil @@ -713,6 +989,9 @@ func (k *Keeper) GetNetworkLossBundleAtBlock(ctx context.Context, topicId TopicI key := collections.Join(topicId, block) lossBundle, err := k.networkLossBundles.Get(ctx, key) if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return &types.ValueBundle{}, nil + } return nil, err } return &lossBundle, nil @@ -950,7 +1229,7 @@ func (k *Keeper) RemoveReputerStake( // stakeSumFromDelegator, delegatedStakes, stakeFromDelegatorsUponReputer func (k *Keeper) RemoveDelegateStake( ctx context.Context, - blockHeight BlockHeight, + stakeRemovalBlockHeight BlockHeight, topicId TopicId, delegator ActorId, reputer ActorId, @@ -1084,7 +1363,7 @@ func (k *Keeper) RemoveDelegateStake( if err := k.SetTotalStake(ctx, totalStakeNew); err != nil { return errorsmod.Wrapf(err, "Setting total stake failed") } - if err := k.DeleteDelegateStakeRemoval(ctx, blockHeight, topicId, reputer, delegator); err != nil { + if err := k.DeleteDelegateStakeRemoval(ctx, stakeRemovalBlockHeight, topicId, reputer, delegator); err != nil { return errorsmod.Wrapf(err, "Deleting delegate stake removal from queue failed") } @@ -1285,25 +1564,40 @@ func (k Keeper) GetStakeRemoval( return k.stakeRemovalsByBlock.Get(ctx, collections.Join3(BlockHeight, topicId, reputer)) } -// get a list of stake removals for this block -func (k *Keeper) GetStakeRemovalsForBlock( +// get a list of stake removals that are valid for removal +// before and including this block. +func (k *Keeper) GetStakeRemovalsUpUntilBlock( ctx context.Context, blockHeight BlockHeight, -) ([]types.StakeRemovalInfo, error) { - ret := make([]types.StakeRemovalInfo, 0) - rng := collections.NewPrefixedTripleRange[BlockHeight, TopicId, ActorId](blockHeight) + limit uint64, +) (ret []types.StakeRemovalInfo, anyLeft bool, err error) { + ret = make([]types.StakeRemovalInfo, 0) + // make a range that has everything less than the block height, inclusive + startKey := collections.TriplePrefix[BlockHeight, TopicId, ActorId](0) + rng := &collections.Range[collections.Triple[BlockHeight, TopicId, ActorId]]{} + rng = rng.Prefix(startKey) + // +1 for end exclusive. Don't know why end inclusive is being buggy but it is + endKey := collections.TriplePrefix[BlockHeight, TopicId, ActorId](blockHeight + 1) + rng = rng.EndExclusive(endKey) + iter, err := k.stakeRemovalsByBlock.Iterate(ctx, rng) if err != nil { - return ret, err + return ret, false, err } + defer iter.Close() + count := uint64(0) for ; iter.Valid(); iter.Next() { + if count >= limit { + return ret, true, nil + } val, err := iter.Value() if err != nil { - return ret, err + return ret, true, err } ret = append(ret, val) + count += 1 } - return ret, nil + return ret, false, nil } // get the first found stake removal for a reputer and topicId or err not found if not found @@ -1389,25 +1683,40 @@ func (k Keeper) GetDelegateStakeRemoval( return k.delegateStakeRemovalsByBlock.Get(ctx, Join4(blockHeight, topicId, delegator, reputer)) } -// get a list of stake removals for this block -func (k *Keeper) GetDelegateStakeRemovalsForBlock( +// get a list of stake removals that are valid for removal +// before and including this block. +func (k *Keeper) GetDelegateStakeRemovalsUpUntilBlock( ctx context.Context, blockHeight BlockHeight, -) ([]types.DelegateStakeRemovalInfo, error) { + limit uint64, +) ([]types.DelegateStakeRemovalInfo, bool, error) { ret := make([]types.DelegateStakeRemovalInfo, 0) - rng := NewSinglePrefixedQuadrupleRange[BlockHeight, TopicId, ActorId, ActorId](blockHeight) + + // make a range that has everything less than the block height, inclusive + startKey := QuadrupleSinglePrefix[BlockHeight, TopicId, ActorId, ActorId](0) + rng := &collections.Range[Quadruple[BlockHeight, TopicId, ActorId, ActorId]]{} + rng = rng.Prefix(startKey) + endKey := QuadrupleSinglePrefix[BlockHeight, TopicId, ActorId, ActorId](blockHeight + 1) + rng = rng.EndExclusive(endKey) + iter, err := k.delegateStakeRemovalsByBlock.Iterate(ctx, rng) if err != nil { - return ret, err + return ret, false, err } + defer iter.Close() + count := uint64(0) for ; iter.Valid(); iter.Next() { + if count >= limit { + return ret, true, nil + } val, err := iter.Value() if err != nil { - return ret, err + return ret, true, err } ret = append(ret, val) + count += 1 } - return ret, nil + return ret, false, nil } // return the first found stake removal object for a delegator, reputer, and topicId @@ -1455,7 +1764,7 @@ func (k *Keeper) InsertReputer(ctx context.Context, topicId TopicId, reputer Act if err != nil { return err } - err = k.reputers.Set(ctx, reputerInfo.LibP2PKey, reputerInfo) + err = k.reputers.Set(ctx, reputer, reputerInfo) if err != nil { return err } @@ -1472,7 +1781,7 @@ func (k *Keeper) RemoveReputer(ctx context.Context, topicId TopicId, reputer Act return nil } -func (k *Keeper) GetReputerByLibp2pKey(ctx sdk.Context, reputerKey string) (types.OffchainNode, error) { +func (k *Keeper) GetReputerInfo(ctx sdk.Context, reputerKey ActorId) (types.OffchainNode, error) { return k.reputers.Get(ctx, reputerKey) } @@ -1485,7 +1794,7 @@ func (k *Keeper) InsertWorker(ctx context.Context, topicId TopicId, worker Actor if err != nil { return err } - err = k.workers.Set(ctx, workerInfo.LibP2PKey, workerInfo) + err = k.workers.Set(ctx, worker, workerInfo) if err != nil { return err } @@ -1502,38 +1811,10 @@ func (k *Keeper) RemoveWorker(ctx context.Context, topicId TopicId, worker Actor return nil } -func (k *Keeper) GetWorkerByLibp2pKey(ctx sdk.Context, workerKey string) (types.OffchainNode, error) { +func (k *Keeper) GetWorkerInfo(ctx sdk.Context, workerKey ActorId) (types.OffchainNode, error) { return k.workers.Get(ctx, workerKey) } -func (k *Keeper) GetWorkerAddressByP2PKey(ctx context.Context, p2pKey string) (sdk.AccAddress, error) { - worker, err := k.workers.Get(ctx, p2pKey) - if err != nil { - return nil, err - } - - workerAddress, err := sdk.AccAddressFromBech32(worker.GetOwner()) - if err != nil { - return nil, err - } - - return workerAddress, nil -} - -func (k *Keeper) GetReputerAddressByP2PKey(ctx context.Context, p2pKey string) (sdk.AccAddress, error) { - reputer, err := k.reputers.Get(ctx, p2pKey) - if err != nil { - return nil, err - } - - address, err := sdk.AccAddressFromBech32(reputer.GetOwner()) - if err != nil { - return nil, err - } - - return address, nil -} - /// TOPICS // Get the previous weight during rewards calculation for a topic @@ -1720,7 +2001,7 @@ func (k *Keeper) AddTopicFeeRevenue(ctx context.Context, topicId TopicId, amount } // Drop the fee revenue by the global Ecosystem bucket drip amount -func (k *Keeper) DripTopicFeeRevenue(ctx context.Context, topicId TopicId, block BlockHeight) error { +func (k *Keeper) DripTopicFeeRevenue(ctx sdk.Context, topicId TopicId, block BlockHeight) error { topicFeeRevenue, err := k.GetTopicFeeRevenue(ctx, topicId) if err != nil { return err @@ -1746,40 +2027,9 @@ func (k *Keeper) DripTopicFeeRevenue(ctx context.Context, topicId TopicId, block } newTopicFeeRevenue = val.SdkIntTrim() } - return k.topicFeeRevenue.Set(ctx, topicId, newTopicFeeRevenue) -} - -/// CHURNABLE TOPICS -// Get the churnable topics -func (k *Keeper) GetChurnableTopics(ctx context.Context) ([]TopicId, error) { - iter, err := k.churnableTopics.Iterate(ctx, nil) - if err != nil { - return nil, err - } - defer iter.Close() - - topics := make([]TopicId, 0) - for ; iter.Valid(); iter.Next() { - topicId, err := iter.Key() - if err != nil { - return nil, err - } - topics = append(topics, topicId) - } - - return topics, nil -} - -// Add as topic as churnable -func (k *Keeper) AddChurnableTopic(ctx context.Context, topicId TopicId) error { - return k.churnableTopics.Set(ctx, topicId) -} - -// ResetChurnReadyTopics clears all topics from the churn-ready set and resets related states. -func (k *Keeper) ResetChurnableTopics(ctx context.Context) error { - k.churnableTopics.Clear(ctx, nil) - return nil + ctx.Logger().Debug(fmt.Sprintf("Dripping topic fee revenue: block %d, topicId %d, oldRevenue %v, newRevenue %v", ctx.BlockHeight(), topicId, topicFeeRevenue, newTopicFeeRevenue)) + return k.topicFeeRevenue.Set(ctx, topicId, newTopicFeeRevenue) } // REWARDABLE TOPICS @@ -1919,32 +2169,42 @@ func (k *Keeper) GetInferenceScoresUntilBlock(ctx context.Context, topicId Topic EndInclusive(blockHeight). Descending() - scores := make([]*types.Score, 0) iter, err := k.infererScoresByBlock.Iterate(ctx, rng) if err != nil { return nil, err } + defer iter.Close() + + scores := make([]*types.Score, 0) + for ; iter.Valid(); iter.Next() { + existingScores, err := iter.KeyValue() + if err != nil { + return nil, err + } + scores = append(scores, existingScores.Value.Scores...) + } - // Get max number of time steps that should be retrieved moduleParams, err := k.GetParams(ctx) if err != nil { return nil, err } maxNumTimeSteps := moduleParams.MaxSamplesToScaleScores - count := 0 - for ; iter.Valid() && count < int(maxNumTimeSteps); iter.Next() { - existingScores, err := iter.KeyValue() - if err != nil { - return nil, err - } - for _, score := range existingScores.Value.Scores { - scores = append(scores, score) - count++ + // Sort blockScores first by BlockHeight in descending order, then by Address + sort.SliceStable(scores, func(i, j int) bool { + if scores[i].BlockHeight == scores[j].BlockHeight { + return scores[i].Address < scores[j].Address } + return scores[i].BlockHeight > scores[j].BlockHeight + }) + + // Collect the sorted scores up to the maximum number of time steps + sortedScores := make([]*types.Score, 0, len(scores)) + for i := 0; i < len(scores) && i < int(maxNumTimeSteps); i++ { + sortedScores = append(sortedScores, scores[i]) } - return scores, nil + return sortedScores, nil } func (k *Keeper) GetWorkerInferenceScoresAtBlock(ctx context.Context, topicId TopicId, block BlockHeight) (types.Scores, error) { @@ -1988,32 +2248,42 @@ func (k *Keeper) GetForecastScoresUntilBlock(ctx context.Context, topicId TopicI EndInclusive(blockHeight). Descending() - scores := make([]*types.Score, 0) iter, err := k.forecasterScoresByBlock.Iterate(ctx, rng) if err != nil { return nil, err } + defer iter.Close() + + scores := make([]*types.Score, 0) + for ; iter.Valid(); iter.Next() { + existingScores, err := iter.KeyValue() + if err != nil { + return nil, err + } + scores = append(scores, existingScores.Value.Scores...) + } - // Get max number of time steps that should be retrieved moduleParams, err := k.GetParams(ctx) if err != nil { return nil, err } maxNumTimeSteps := moduleParams.MaxSamplesToScaleScores - count := 0 - for ; iter.Valid() && count < int(maxNumTimeSteps); iter.Next() { - existingScores, err := iter.KeyValue() - if err != nil { - return nil, err - } - for _, score := range existingScores.Value.Scores { - scores = append(scores, score) - count++ + // Sort blockScores first by BlockHeight in descending order, then by Address + sort.SliceStable(scores, func(i, j int) bool { + if scores[i].BlockHeight == scores[j].BlockHeight { + return scores[i].Address < scores[j].Address } + return scores[i].BlockHeight > scores[j].BlockHeight + }) + + // Collect the sorted scores up to the maximum number of time steps + sortedScores := make([]*types.Score, 0) + for i := 0; i < len(scores) && i < int(maxNumTimeSteps); i++ { + sortedScores = append(sortedScores, scores[i]) } - return scores, nil + return sortedScores, nil } func (k *Keeper) GetWorkerForecastScoresAtBlock(ctx context.Context, topicId TopicId, block BlockHeight) (types.Scores, error) { @@ -2330,11 +2600,19 @@ func (k *Keeper) PruneReputerNonces(ctx context.Context, topicId uint64, blockHe } // Return true if the topic has met its cadence or is the first run -func (k *Keeper) CheckCadence(blockHeight int64, topic types.Topic) bool { +func (k *Keeper) CheckWorkerOpenCadence(blockHeight int64, topic types.Topic) bool { return (blockHeight-topic.EpochLastEnded)%topic.EpochLength == 0 || topic.EpochLastEnded == 0 } +func (k *Keeper) CheckWorkerCloseCadence(blockHeight int64, topic types.Topic) bool { + return blockHeight-topic.EpochLastEnded == topic.WorkerSubmissionWindow +} + +func (k *Keeper) CheckReputerCloseCadence(blockHeight int64, topic types.Topic) bool { + return (blockHeight-topic.EpochLastEnded)%topic.EpochLength == 0 +} + func (k *Keeper) ValidateStringIsBech32(actor ActorId) error { _, err := sdk.AccAddressFromBech32(actor) if err != nil { @@ -2343,48 +2621,39 @@ func (k *Keeper) ValidateStringIsBech32(actor ActorId) error { return nil } -func (k *Keeper) SetTopicLastCommit(ctx context.Context, topic types.TopicId, blockHeight int64, nonce *types.Nonce, actor ActorId, actorType types.ActorType) error { - if actorType == types.ActorType_REPUTER { - return k.topicLastReputerCommit.Set(ctx, topic, types.TimestampedActorNonce{ - BlockHeight: blockHeight, - Actor: actor, - Nonce: nonce, - }) - } +func (k *Keeper) SetWorkerTopicLastCommit(ctx context.Context, topic types.TopicId, blockHeight int64, nonce *types.Nonce) error { return k.topicLastWorkerCommit.Set(ctx, topic, types.TimestampedActorNonce{ BlockHeight: blockHeight, - Actor: actor, Nonce: nonce, }) } -func (k *Keeper) GetTopicLastCommit(ctx context.Context, topic TopicId, actorType types.ActorType) (types.TimestampedActorNonce, error) { - if actorType == types.ActorType_REPUTER { - return k.topicLastReputerCommit.Get(ctx, topic) - } - return k.topicLastWorkerCommit.Get(ctx, topic) -} - -func (k *Keeper) SetTopicLastWorkerPayload(ctx context.Context, topic types.TopicId, blockHeight int64, nonce *types.Nonce, actor ActorId) error { - return k.topicLastWorkerPayload.Set(ctx, topic, types.TimestampedActorNonce{ +func (k *Keeper) SetReputerTopicLastCommit(ctx context.Context, topic types.TopicId, blockHeight int64, nonce *types.Nonce) error { + return k.topicLastReputerCommit.Set(ctx, topic, types.TimestampedActorNonce{ BlockHeight: blockHeight, - Actor: actor, Nonce: nonce, }) } -func (k *Keeper) GetTopicLastWorkerPayload(ctx context.Context, topic TopicId) (types.TimestampedActorNonce, error) { - return k.topicLastWorkerPayload.Get(ctx, topic) +func (k *Keeper) GetWorkerTopicLastCommit(ctx context.Context, topic TopicId) (types.TimestampedActorNonce, error) { + return k.topicLastWorkerCommit.Get(ctx, topic) } -func (k *Keeper) SetTopicLastReputerPayload(ctx context.Context, topic types.TopicId, blockHeight int64, nonce *types.Nonce, actor ActorId) error { - return k.topicLastReputerPayload.Set(ctx, topic, types.TimestampedActorNonce{ - BlockHeight: blockHeight, - Actor: actor, - Nonce: nonce, - }) +func (k *Keeper) GetReputerTopicLastCommit(ctx context.Context, topic TopicId) (types.TimestampedActorNonce, error) { + return k.topicLastReputerCommit.Get(ctx, topic) } -func (k *Keeper) GetTopicLastReputerPayload(ctx context.Context, topic TopicId) (types.TimestampedActorNonce, error) { - return k.topicLastReputerPayload.Get(ctx, topic) +func (k *Keeper) SetPreviousForecasterScoreRatio(ctx context.Context, topicId TopicId, forecasterScoreRatio alloraMath.Dec) error { + return k.previousForecasterScoreRatio.Set(ctx, topicId, forecasterScoreRatio) +} + +func (k *Keeper) GetPreviousForecasterScoreRatio(ctx context.Context, topicId TopicId) (alloraMath.Dec, error) { + forecastTau, err := k.previousForecasterScoreRatio.Get(ctx, topicId) + if err != nil { + if errors.Is(err, collections.ErrNotFound) { + return alloraMath.ZeroDec(), nil + } + return alloraMath.Dec{}, err + } + return forecastTau, nil } diff --git a/x/emissions/keeper/keeper_test.go b/x/emissions/keeper/keeper_test.go index 8ebf12508..5949d656e 100644 --- a/x/emissions/keeper/keeper_test.go +++ b/x/emissions/keeper/keeper_test.go @@ -48,10 +48,9 @@ type ChainKey struct { } var ( - nonAdminAccounts = simtestutil.CreateRandomAccounts(4) - PKS = simtestutil.CreateTestPubKeys(10) - Addr = sdk.AccAddress(PKS[0].Address()) - ValAddr = GeneratePrivateKeys(10) + PKS = simtestutil.CreateTestPubKeys(10) + Addr = sdk.AccAddress(PKS[0].Address()) + ValAddr = GeneratePrivateKeys(10) ) type KeeperTestSuite struct { @@ -182,18 +181,15 @@ func (s *KeeperTestSuite) CreateOneTopic() uint64 { creator := sdk.AccAddress(PKS[0].Address()) newTopicMsg := &types.MsgCreateNewTopic{ - Creator: creator.String(), - Metadata: metadata, - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: creator.String(), + Metadata: metadata, + LossMethod: "method", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10800, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } s.MintTokensToAddress(creator, types.DefaultParams().CreateTopicFee) @@ -710,6 +706,90 @@ func (s *KeeperTestSuite) TestDifferentTopicIdsYieldDifferentOneInForecasterNetw s.Require().NotEqual(gotRegret1, gotRegret2, "Regrets from different topics should not be equal") } +func (s *KeeperTestSuite) TestSetAndGetNaiveInfererNetworkRegret() { + ctx := s.ctx + keeper := s.emissionsKeeper + topicId := uint64(1) + inferer := "inferer-address" + + regret := types.TimestampedValue{BlockHeight: 100, Value: alloraMath.NewDecFromInt64(10)} + + err := keeper.SetNaiveInfererNetworkRegret(ctx, topicId, inferer, regret) + s.Require().NoError(err) + + gotRegret, _, err := keeper.GetNaiveInfererNetworkRegret(ctx, topicId, inferer) + s.Require().NoError(err) + s.Require().Equal(regret, gotRegret) +} + +func (s *KeeperTestSuite) TestSetAndGetLatestOneOutInfererInfererNetworkRegret() { + ctx := s.ctx + keeper := s.emissionsKeeper + topicId := uint64(1) + inferer1 := "inferer1-address" + inferer2 := "inferer2-address" + + regret := types.TimestampedValue{BlockHeight: 100, Value: alloraMath.NewDecFromInt64(15)} + + err := keeper.SetOneOutInfererInfererNetworkRegret(ctx, topicId, inferer1, inferer2, regret) + s.Require().NoError(err) + + gotRegret, _, err := keeper.GetOneOutInfererInfererNetworkRegret(ctx, topicId, inferer1, inferer2) + s.Require().NoError(err) + s.Require().Equal(regret, gotRegret) +} + +func (s *KeeperTestSuite) TestSetAndGetLatestOneOutInfererForecasterNetworkRegret() { + ctx := s.ctx + keeper := s.emissionsKeeper + topicId := uint64(1) + inferer := "inferer-address" + forecaster := "forecaster-address" + + regret := types.TimestampedValue{BlockHeight: 100, Value: alloraMath.NewDecFromInt64(20)} + + err := keeper.SetOneOutInfererForecasterNetworkRegret(ctx, topicId, inferer, forecaster, regret) + s.Require().NoError(err) + + gotRegret, _, err := keeper.GetOneOutInfererForecasterNetworkRegret(ctx, topicId, inferer, forecaster) + s.Require().NoError(err) + s.Require().Equal(regret, gotRegret) +} + +func (s *KeeperTestSuite) TestSetAndGetLatestOneOutForecasterInfererNetworkRegret() { + ctx := s.ctx + keeper := s.emissionsKeeper + topicId := uint64(1) + forecaster := "forecaster-address" + inferer := "inferer-address" + + regret := types.TimestampedValue{BlockHeight: 100, Value: alloraMath.NewDecFromInt64(25)} + + err := keeper.SetOneOutForecasterInfererNetworkRegret(ctx, topicId, forecaster, inferer, regret) + s.Require().NoError(err) + + gotRegret, _, err := keeper.GetOneOutForecasterInfererNetworkRegret(ctx, topicId, forecaster, inferer) + s.Require().NoError(err) + s.Require().Equal(regret, gotRegret) +} + +func (s *KeeperTestSuite) TestSetAndGetLatestOneOutForecasterForecasterNetworkRegret() { + ctx := s.ctx + keeper := s.emissionsKeeper + topicId := uint64(1) + forecaster1 := "forecaster1-address" + forecaster2 := "forecaster2-address" + + regret := types.TimestampedValue{BlockHeight: 100, Value: alloraMath.NewDecFromInt64(30)} + + err := keeper.SetOneOutForecasterForecasterNetworkRegret(ctx, topicId, forecaster1, forecaster2, regret) + s.Require().NoError(err) + + gotRegret, _, err := keeper.GetOneOutForecasterForecasterNetworkRegret(ctx, topicId, forecaster1, forecaster2) + s.Require().NoError(err) + s.Require().Equal(regret, gotRegret) +} + // / PARAMS TESTS func (s *KeeperTestSuite) TestSetGetMaxTopicsPerBlock() { ctx := s.ctx @@ -1171,8 +1251,8 @@ func (s *KeeperTestSuite) TestGetReputerLossBundlesAtBlock() { // Test getting data before any insert, should return error or nil result, err := s.emissionsKeeper.GetReputerLossBundlesAtBlock(ctx, topicId, block) - require.Error(err, "Should return error for non-existent data") - require.Nil(result, "Result should be nil for non-existent data") + require.NoError(err) + require.Nil(result.ReputerValueBundles, "Result should be nil for non-existent data") } func (s *KeeperTestSuite) TestInsertNetworkLossBundleAtBlock() { @@ -1202,8 +1282,8 @@ func (s *KeeperTestSuite) TestGetNetworkLossBundleAtBlock() { // Attempt to retrieve before insertion result, err := s.emissionsKeeper.GetNetworkLossBundleAtBlock(ctx, topicId, block) - require.Error(err, "Should return error for non-existent data") - require.Nil(result, "Result should be nil for non-existent data") + require.NoError(err, "Should return error for non-existent data") + require.Equal(uint64(0), result.TopicId, "Result should be nil for non-existent data") } // ######################################## @@ -1519,9 +1599,10 @@ func (s *KeeperTestSuite) TestSetGetDeleteStakeRemovalByAddressWithDetailedPlace // Topic 101 // Retrieve the stake removal information - retrievedInfo, err := keeper.GetStakeRemovalsForBlock(ctx, removalInfo0.BlockRemovalCompleted) + retrievedInfo, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock(ctx, removalInfo0.BlockRemovalCompleted, 1) s.Require().NoError(err) s.Require().Len(retrievedInfo, 1, "There should be only one delegate stake removal information for the block") + s.Require().False(limitHit, "The limit should not be hit") s.Require().Equal(removalInfo0.BlockRemovalStarted, retrievedInfo[0].BlockRemovalStarted, "Block removal started should match") s.Require().Equal(removalInfo0.BlockRemovalCompleted, retrievedInfo[0].BlockRemovalCompleted, "Block removal completed should match") s.Require().Equal(removalInfo0.TopicId, retrievedInfo[0].TopicId, "Topic IDs should match for all placements") @@ -1531,38 +1612,165 @@ func (s *KeeperTestSuite) TestSetGetDeleteStakeRemovalByAddressWithDetailedPlace // Topic 102 // Retrieve the stake removal information - retrievedInfo, err = keeper.GetStakeRemovalsForBlock(ctx, removalInfo1.BlockRemovalCompleted) + retrievedInfo, limitHit, err = keeper.GetStakeRemovalsUpUntilBlock(ctx, removalInfo1.BlockRemovalCompleted, 2) s.Require().NoError(err) - s.Require().Len(retrievedInfo, 1, "There should be only one delegate stake removal information for the block") - s.Require().Equal(removalInfo1.BlockRemovalStarted, retrievedInfo[0].BlockRemovalStarted, "Block removal started should match") - s.Require().Equal(removalInfo1.BlockRemovalCompleted, retrievedInfo[0].BlockRemovalCompleted, "Block removal started should match") - s.Require().Equal(removalInfo1.TopicId, retrievedInfo[0].TopicId, "Topic IDs should match for all placements") - s.Require().Equal(removalInfo1.Reputer, retrievedInfo[0].Reputer, "Reputer addresses should match for all placements") - s.Require().Equal(removalInfo1.Amount, retrievedInfo[0].Amount, "Amounts should match for all placements") + s.Require().Len(retrievedInfo, 2, "There should be only one delegate stake removal information for the block") + s.Require().False(limitHit, "The limit should not be hit") + s.Require().Equal(removalInfo1.BlockRemovalStarted, retrievedInfo[1].BlockRemovalStarted, "Block removal started should match") + s.Require().Equal(removalInfo1.BlockRemovalCompleted, retrievedInfo[1].BlockRemovalCompleted, "Block removal started should match") + s.Require().Equal(removalInfo1.TopicId, retrievedInfo[1].TopicId, "Topic IDs should match for all placements") + s.Require().Equal(removalInfo1.Reputer, retrievedInfo[1].Reputer, "Reputer addresses should match for all placements") + s.Require().Equal(removalInfo1.Amount, retrievedInfo[1].Amount, "Amounts should match for all placements") // delete 101 err = keeper.DeleteStakeRemoval(ctx, removalInfo0.BlockRemovalCompleted, removalInfo0.TopicId, removalInfo0.Reputer) s.Require().NoError(err) - removals, err := keeper.GetStakeRemovalsForBlock(ctx, removalInfo0.BlockRemovalCompleted) + removals, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock(ctx, removalInfo0.BlockRemovalCompleted, 100) s.Require().NoError(err) s.Require().Len(removals, 0) + s.Require().False(limitHit, "The limit should not be hit") // delete 102 err = keeper.DeleteStakeRemoval(ctx, removalInfo1.BlockRemovalCompleted, removalInfo1.TopicId, removalInfo1.Reputer) s.Require().NoError(err) - removals, err = keeper.GetStakeRemovalsForBlock(ctx, removalInfo1.BlockRemovalCompleted) + removals, limitHit, err = keeper.GetStakeRemovalsUpUntilBlock(ctx, removalInfo1.BlockRemovalCompleted, 100) s.Require().NoError(err) s.Require().Len(removals, 0) + s.Require().False(limitHit, "The limit should not be hit") } -func (s *KeeperTestSuite) TestGetStakeRemovalsForBlockNotFound() { +func (s *KeeperTestSuite) TestGetStakeRemovalsUpUntilBlockNotFound() { ctx := s.ctx keeper := s.emissionsKeeper // Attempt to retrieve stake removal info for an address with no set info - removals, err := keeper.GetStakeRemovalsForBlock(ctx, 202) + removals, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock(ctx, 202, 100) s.Require().NoError(err) s.Require().Len(removals, 0) + s.Require().False(limitHit, "The limit should not be hit") +} + +func (s *KeeperTestSuite) TestGetStakeRemovalsUpUntilBlockLimitPreviousBlocks() { + ctx := s.ctx + keeper := s.emissionsKeeper + topicIdStart := uint64(100) + blockRemovalsStart := int64(12) + blockRemovalsEnd := int64(13) + + topicId := topicIdStart + reputer := "reputer" + strconv.Itoa(int(topicId)) + removalInfo := types.StakeRemovalInfo{ + BlockRemovalStarted: blockRemovalsStart, + BlockRemovalCompleted: blockRemovalsEnd, + TopicId: topicId, + Reputer: reputer, + Amount: cosmosMath.NewInt(100), + } + err := keeper.SetStakeRemoval(ctx, removalInfo) + s.Require().NoError(err) + + retrievedInfo, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock( + ctx, + blockRemovalsEnd+1, // note how we are getting a block AFTER blockRemovalsEnd + 1000, + ) + s.Require().NoError(err) + s.Require().False(limitHit) + s.Require().Len(retrievedInfo, 1) +} + +func (s *KeeperTestSuite) TestGetStakeRemovalsUpUntilBlockLimitExactBlock() { + ctx := s.ctx + keeper := s.emissionsKeeper + topicIdStart := uint64(100) + blockRemovalsStart := int64(12) + blockRemovalsEnd := int64(13) + + topicId := topicIdStart + reputer := "reputer" + strconv.Itoa(int(topicId)) + removalInfo := types.StakeRemovalInfo{ + BlockRemovalStarted: blockRemovalsStart, + BlockRemovalCompleted: blockRemovalsEnd, + TopicId: topicId, + Reputer: reputer, + Amount: cosmosMath.NewInt(100), + } + err := keeper.SetStakeRemoval(ctx, removalInfo) + s.Require().NoError(err) + + retrievedInfo, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock( + ctx, + blockRemovalsEnd, + 1000, + ) + s.Require().NoError(err) + s.Require().False(limitHit) + s.Require().Len(retrievedInfo, 1) +} + +func (s *KeeperTestSuite) TestGetStakeRemovalsUpUntilBlockLimitGreaterThanNumRemovals() { + ctx := s.ctx + keeper := s.emissionsKeeper + numRemovals := int64(5) + topicIdStart := uint64(100) + blockRemovalsStart := int64(12) + blockRemovalsEnd := types.DefaultParams().RemoveStakeDelayWindow + blockRemovalsStart + + for i := int64(0); i < numRemovals; i++ { + topicId := topicIdStart + uint64(i) + reputer := "reputer" + strconv.Itoa(int(topicId)) + // Create a sample stake removal information + removalInfo := types.StakeRemovalInfo{ + BlockRemovalStarted: blockRemovalsStart + i, + BlockRemovalCompleted: blockRemovalsEnd + i, + TopicId: topicId, + Reputer: reputer, + Amount: cosmosMath.NewInt(100), + } + err := keeper.SetStakeRemoval(ctx, removalInfo) + s.Require().NoError(err) + } + retrievedInfo, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock( + ctx, + blockRemovalsEnd+numRemovals, + uint64(numRemovals), + ) + s.Require().NoError(err) + s.Require().False(limitHit) + s.Require().Len(retrievedInfo, int(numRemovals)) +} + +func (s *KeeperTestSuite) TestGetStakeRemovalsUpUntilBlockLimitLessThanNumRemovals() { + ctx := s.ctx + keeper := s.emissionsKeeper + numRemovals := int64(5) + limitRemovals := numRemovals - 2 + topicIdStart := uint64(100) + blockRemovalsStart := int64(12) + blockRemovalsEnd := types.DefaultParams().RemoveStakeDelayWindow + blockRemovalsStart + + for i := int64(0); i < numRemovals; i++ { + topicId := topicIdStart + uint64(i) + reputer := "reputer" + strconv.Itoa(int(topicId)) + // Create a sample stake removal information + removalInfo := types.StakeRemovalInfo{ + BlockRemovalStarted: blockRemovalsStart + i, + BlockRemovalCompleted: blockRemovalsEnd + i, + TopicId: topicId, + Reputer: reputer, + Amount: cosmosMath.NewInt(100), + } + err := keeper.SetStakeRemoval(ctx, removalInfo) + s.Require().NoError(err) + } + retrievedInfo, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock( + ctx, + blockRemovalsEnd+numRemovals, + uint64(limitRemovals), + ) + s.Require().NoError(err) + s.Require().True(limitHit) + s.Require().Len(retrievedInfo, int(limitRemovals)) } func (s *KeeperTestSuite) TestSetGetDeleteDelegateStakeRemovalByAddress() { @@ -1604,9 +1812,10 @@ func (s *KeeperTestSuite) TestSetGetDeleteDelegateStakeRemovalByAddress() { // Topic 201 // Retrieve the delegate stake removal information - retrievedInfo, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, removalInfo0.BlockRemovalCompleted) + retrievedInfo, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, removalInfo0.BlockRemovalCompleted, 100) s.Require().NoError(err) s.Require().Len(retrievedInfo, 1, "There should be only one delegate stake removal information for the block") + s.Require().False(limitHit) s.Require().Equal(removalInfo0.BlockRemovalStarted, retrievedInfo[0].BlockRemovalStarted, "Block removal started should match") s.Require().Equal(removalInfo0.TopicId, retrievedInfo[0].TopicId, "Topic IDs should match for all placements") s.Require().Equal(removalInfo0.Reputer, retrievedInfo[0].Reputer, "Reputer addresses should match for all placements") @@ -1616,28 +1825,31 @@ func (s *KeeperTestSuite) TestSetGetDeleteDelegateStakeRemovalByAddress() { // Topic 202 // Retrieve the delegate stake removal information - retrievedInfo, err = keeper.GetDelegateStakeRemovalsForBlock(ctx, removalInfo1.BlockRemovalCompleted) + retrievedInfo, limitHit, err = keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, removalInfo1.BlockRemovalCompleted, 100) s.Require().NoError(err) - s.Require().Len(retrievedInfo, 1) - s.Require().Equal(removalInfo1.BlockRemovalStarted, retrievedInfo[0].BlockRemovalStarted, "Block removal started should match") - s.Require().Equal(removalInfo1.TopicId, retrievedInfo[0].TopicId, "Topic IDs should match for all placements") - s.Require().Equal(removalInfo1.Reputer, retrievedInfo[0].Reputer, "Reputer addresses should match for all placements") - s.Require().Equal(removalInfo1.Delegator, retrievedInfo[0].Delegator, "Delegator addresses should match for all placements") - s.Require().Equal(removalInfo1.Amount, retrievedInfo[0].Amount, "Amounts should match for all placements") + s.Require().Len(retrievedInfo, 2) + s.Require().False(limitHit) + s.Require().Equal(removalInfo1.BlockRemovalStarted, retrievedInfo[1].BlockRemovalStarted, "Block removal started should match") + s.Require().Equal(removalInfo1.TopicId, retrievedInfo[1].TopicId, "Topic IDs should match for all placements") + s.Require().Equal(removalInfo1.Reputer, retrievedInfo[1].Reputer, "Reputer addresses should match for all placements") + s.Require().Equal(removalInfo1.Delegator, retrievedInfo[1].Delegator, "Delegator addresses should match for all placements") + s.Require().Equal(removalInfo1.Amount, retrievedInfo[1].Amount, "Amounts should match for all placements") // delete 101 err = keeper.DeleteDelegateStakeRemoval(ctx, removalInfo0.BlockRemovalCompleted, removalInfo0.TopicId, removalInfo0.Reputer, removalInfo0.Delegator) s.Require().NoError(err) - removals, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, removalInfo0.BlockRemovalCompleted) + removals, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, removalInfo0.BlockRemovalCompleted, 100) s.Require().NoError(err) s.Require().Len(removals, 0) + s.Require().False(limitHit) // delete 102 err = keeper.DeleteDelegateStakeRemoval(ctx, removalInfo1.BlockRemovalCompleted, removalInfo1.TopicId, removalInfo1.Reputer, removalInfo1.Delegator) s.Require().NoError(err) - removals, err = keeper.GetDelegateStakeRemovalsForBlock(ctx, removalInfo1.BlockRemovalCompleted) + removals, limitHit, err = keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, removalInfo1.BlockRemovalCompleted, 100) s.Require().NoError(err) s.Require().Len(removals, 0) + s.Require().False(limitHit) } func (s *KeeperTestSuite) TestGetDeleteDelegateStake() { @@ -1687,9 +1899,10 @@ func (s *KeeperTestSuite) TestGetDelegateStakeRemovalByAddressNotFound() { keeper := s.emissionsKeeper // Attempt to retrieve delegate stake removal info for an address with no set info - removals, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, 201) + removals, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, 201, 100) s.Require().NoError(err) s.Require().Len(removals, 0) + s.Require().False(limitHit, "The limit should not be hit") } func (s *KeeperTestSuite) TestSetParams() { @@ -1697,7 +1910,7 @@ func (s *KeeperTestSuite) TestSetParams() { keeper := s.emissionsKeeper params := types.Params{ - Version: "v1.0.0", + Version: "v0.3.0", MinTopicWeight: alloraMath.NewDecFromInt64(100), MaxTopicsPerBlock: 1000, RequiredMinimumStake: cosmosMath.NewInt(1), @@ -1756,57 +1969,23 @@ func (s *KeeperTestSuite) TestInsertWorker() { ctx := s.ctx keeper := s.emissionsKeeper worker := "sampleWorkerAddress" - key := "worker-libp2p-key-sample" topicId := uint64(401) // Define sample OffchainNode information for a worker workerInfo := types.OffchainNode{ - LibP2PKey: key, - MultiAddress: "worker-multi-address-sample", - Owner: "worker-owner-sample", - NodeAddress: "worker-node-address-sample", - NodeId: "worker-node-id-sample", + Owner: "worker-owner-sample", + NodeAddress: worker, } // Attempt to insert the worker for multiple topics err := keeper.InsertWorker(ctx, topicId, worker, workerInfo) s.Require().NoError(err) - node, err := keeper.GetWorkerByLibp2pKey(ctx, key) + node, err := keeper.GetWorkerInfo(ctx, worker) s.Require().NoError(err) - s.Require().Equal(workerInfo.LibP2PKey, node.LibP2PKey) - s.Require().Equal(workerInfo.MultiAddress, node.MultiAddress) s.Require().Equal(workerInfo.Owner, node.Owner) s.Require().Equal(workerInfo.NodeAddress, node.NodeAddress) - s.Require().Equal(workerInfo.NodeId, node.NodeId) -} - -func (s *KeeperTestSuite) TestGetWorkerAddressByP2PKey() { - ctx := s.ctx - keeper := s.emissionsKeeper - worker := "sampleWorkerAddress" - topicId := uint64(401) - - // Define sample OffchainNode information for a worker - workerInfo := types.OffchainNode{ - LibP2PKey: "worker-libp2p-key-sample", - MultiAddress: "worker-multi-address-sample", - Owner: "allo146fyx5akdrcpn2ypjpg4tra2l7q2wevs05pz2n", - NodeAddress: "worker-node-address-sample", - NodeId: "worker-node-id-sample", - } - - // Attempt to insert the worker for multiple topics - err := keeper.InsertWorker(ctx, topicId, worker, workerInfo) - s.Require().NoError(err) - - // Call the function to get the worker address using the P2P key - retrievedAddress, err := keeper.GetWorkerAddressByP2PKey(ctx, workerInfo.LibP2PKey) - s.Require().NoError(err) - workerAddress, err := sdk.AccAddressFromBech32(workerInfo.Owner) - s.Require().NoError(err) - s.Require().Equal(workerAddress, retrievedAddress) } func (s *KeeperTestSuite) TestRemoveWorker() { @@ -1817,11 +1996,8 @@ func (s *KeeperTestSuite) TestRemoveWorker() { // Define sample OffchainNode information for a worker workerInfo := types.OffchainNode{ - LibP2PKey: "worker-libp2p-key-sample", - MultiAddress: "worker-multi-address-sample", - Owner: "worker-owner-sample", - NodeAddress: "worker-node-address-sample", - NodeId: "worker-node-id-sample", + Owner: "worker-owner-sample", + NodeAddress: "worker-node-address-sample", } // Insert the worker @@ -1851,11 +2027,8 @@ func (s *KeeperTestSuite) TestInsertReputer() { // Define sample OffchainNode information for a reputer reputerInfo := types.OffchainNode{ - LibP2PKey: "reputer-libp2p-key-sample", - MultiAddress: "reputer-multi-address-sample", - Owner: "reputer-owner-sample", - NodeAddress: "reputer-node-address-sample", - NodeId: "reputer-node-id-sample", + Owner: "reputer-owner-sample", + NodeAddress: "reputer-node-address-sample", } // Attempt to insert the reputer for multiple topics @@ -1868,29 +2041,25 @@ func (s *KeeperTestSuite) TestInsertReputer() { s.Require().True(isRegistered, "Reputer should be registered in each topic") } -func (s *KeeperTestSuite) TestGetReputerByLibp2pKey() { +func (s *KeeperTestSuite) TestGetReputerInfo() { ctx := s.ctx reputer := "sampleReputerAddress" topicId := uint64(501) keeper := s.emissionsKeeper - reputerKey := "someLibP2PKey123" reputerInfo := types.OffchainNode{ - LibP2PKey: reputerKey, - MultiAddress: "/ip4/127.0.0.1/tcp/4001", - Owner: "cosmos1...", - NodeAddress: "cosmosNodeAddress", - NodeId: "nodeId123", + Owner: "cosmos1...", + NodeAddress: reputer, } err := keeper.InsertReputer(ctx, topicId, reputer, reputerInfo) s.Require().NoError(err) - actualReputer, err := keeper.GetReputerByLibp2pKey(ctx, reputerKey) + actualReputer, err := keeper.GetReputerInfo(ctx, reputer) s.Require().NoError(err) s.Require().Equal(reputerInfo, actualReputer) nonExistentKey := "nonExistentKey123" - _, err = keeper.GetReputerByLibp2pKey(ctx, nonExistentKey) + _, err = keeper.GetReputerInfo(ctx, nonExistentKey) s.Require().Error(err) } @@ -1919,33 +2088,6 @@ func (s *KeeperTestSuite) TestRemoveReputer() { s.Require().False(isRegisteredPost, "Reputer should not be registered in the topic after removal") } -func (s *KeeperTestSuite) TestGetReputerAddressByP2PKey() { - ctx := s.ctx - keeper := s.emissionsKeeper - reputer := "sampleReputerAddress" - topicId := uint64(501) - - // Define sample OffchainNode information for a reputer - reputerInfo := types.OffchainNode{ - LibP2PKey: "reputer-libp2p-key-sample", - MultiAddress: "reputer-multi-address-sample", - Owner: "allo146fyx5akdrcpn2ypjpg4tra2l7q2wevs05pz2n", - NodeAddress: "reputer-node-address-sample", - NodeId: "reputer-node-id-sample", - } - - // Insert the reputer for multiple topics - err := keeper.InsertReputer(ctx, topicId, reputer, reputerInfo) - s.Require().NoError(err) - - // Retrieve the reputer address using the P2P key - retrievedAddress, err := keeper.GetReputerAddressByP2PKey(ctx, reputerInfo.LibP2PKey) - s.Require().NoError(err) - expectedAddress, err := sdk.AccAddressFromBech32(reputerInfo.Owner) - s.Require().NoError(err) - s.Require().Equal(expectedAddress, retrievedAddress, "The retrieved address should match the expected address") -} - /// TOPICS func (s *KeeperTestSuite) TestSetAndGetPreviousTopicWeight() { @@ -2228,50 +2370,6 @@ func (s *KeeperTestSuite) TestGetTopic() { s.Require().Equal(newTopic.Metadata, retrievedTopic.Metadata, "Retrieved topic should match the set topic") } -func (s *KeeperTestSuite) TestSetGetTopicLastWorkerPayload() { - ctx := s.ctx - keeper := s.emissionsKeeper - topicId := uint64(123) - blockHeight := int64(1000) - nonce := &types.Nonce{BlockHeight: blockHeight} - actor := "allo1j62tlhf5empp365vy39kgvr92uzrmglm7krt6p" - - // Set the worker payload - err := keeper.SetTopicLastWorkerPayload(ctx, topicId, blockHeight, nonce, actor) - s.Require().NoError(err) - - // Get the worker payload - payload, err := keeper.GetTopicLastWorkerPayload(ctx, topicId) - s.Require().NoError(err) - - // Check the retrieved values - s.Require().Equal(blockHeight, payload.BlockHeight, "Block height should match") - s.Require().Equal(actor, payload.Actor, "Actor ID should match") - s.Require().Equal(nonce, payload.Nonce, "Nonce should match") -} - -func (s *KeeperTestSuite) TestSetGetTopicLastReputerPayload() { - ctx := s.ctx - keeper := s.emissionsKeeper - topicId := uint64(456) - blockHeight := int64(2000) - nonce := &types.Nonce{BlockHeight: blockHeight} - actor := "allo1j62tlhf5empp365vy39kgvr92uzrmglm7krt6p" - - // Set the reputer payload - err := keeper.SetTopicLastReputerPayload(ctx, topicId, blockHeight, nonce, actor) - s.Require().NoError(err) - - // Get the reputer payload - payload, err := keeper.GetTopicLastReputerPayload(ctx, topicId) - s.Require().NoError(err) - - // Check the retrieved values - s.Require().Equal(blockHeight, payload.BlockHeight, "Block height should match") - s.Require().Equal(actor, payload.Actor, "Actor ID should match") - s.Require().Equal(nonce, payload.Nonce, "Nonce should match") -} - /// FEE REVENUE func (s *KeeperTestSuite) TestGetTopicFeeRevenue() { @@ -2321,35 +2419,6 @@ func (s *KeeperTestSuite) TestAddTopicFeeRevenue() { s.Require().Equal(initialAmount, feeRev, "Initial revenue should be correctly recorded") } -/// TOPIC CHURN - -func (s *KeeperTestSuite) TestChurnableTopics() { - ctx := s.ctx - keeper := s.emissionsKeeper - topicId := uint64(123) - topicId2 := uint64(456) - - err := keeper.AddChurnableTopic(ctx, topicId) - s.Require().NoError(err) - - err = keeper.AddChurnableTopic(ctx, topicId2) - s.Require().NoError(err) - - // Ensure the first topic is retrieved - retrievedIds, err := keeper.GetChurnableTopics(ctx) - s.Require().NoError(err) - s.Require().Len(retrievedIds, 2, "Should retrieve all churn ready topics") - - // Reset the churn ready topics - err = keeper.ResetChurnableTopics(ctx) - s.Require().NoError(err) - - // Ensure no topics remain - remainingIds, err := keeper.GetChurnableTopics(ctx) - s.Require().NoError(err) - s.Require().Len(remainingIds, 0, "Should have no churn ready topics after reset") -} - /// REWARDABLE TOPICS func (s *KeeperTestSuite) TestRewardableTopics() { @@ -3017,14 +3086,19 @@ func (s *KeeperTestSuite) TestPruneRecordsAfterRewards() { s.Require().NoError(err, "Pruning records after rewards should not fail") // Check if the records are pruned - _, err = s.emissionsKeeper.GetInferencesAtBlock(s.ctx, topicId, block) - s.Require().Error(err, "Should return error for non-existent data") - _, err = s.emissionsKeeper.GetForecastsAtBlock(s.ctx, topicId, block) - s.Require().Error(err, "Should return error for non-existent data") - _, err = s.emissionsKeeper.GetReputerLossBundlesAtBlock(s.ctx, topicId, block) - s.Require().Error(err, "Should return error for non-existent data") - _, err = s.emissionsKeeper.GetNetworkLossBundleAtBlock(s.ctx, topicId, block) - s.Require().Error(err, "Should return error for non-existent data") + inferences, err := s.emissionsKeeper.GetInferencesAtBlock(s.ctx, topicId, block) + s.Require().NoError(err, "Getting inferences should not fail") + s.Require().Equal(len(inferences.Inferences), 0, "Must be pruned") + forecasts, err := s.emissionsKeeper.GetForecastsAtBlock(s.ctx, topicId, block) + s.Require().NoError(err, "Getting forecasts should not fail") + s.Require().Equal(len(forecasts.Forecasts), 0, "Must be pruned") + lossbundles, err := s.emissionsKeeper.GetReputerLossBundlesAtBlock(s.ctx, topicId, block) + s.Require().NoError(err, "Getting reputer loss bundles should not fail") + s.Require().Equal(len(lossbundles.ReputerValueBundles), 0, "Must be pruned") + networkBundles, err := s.emissionsKeeper.GetNetworkLossBundleAtBlock(s.ctx, topicId, block) + s.Require().NoError(err, "Getting network loss bundle should not fail but be empty") + s.Require().Equal(uint64(0), networkBundles.TopicId, "Must be pruned as evidenced by nil topic id") + s.Require().Equal("0", networkBundles.CombinedValue.String(), "Must be pruned as evidenced by nil combined value") } func (s *KeeperTestSuite) TestPruneWorkerNoncesLogicCorrectness() { @@ -3374,3 +3448,273 @@ func (s *KeeperTestSuite) TestGetFirstDelegateStakeRemovalForDelegatorReputerAnd s.Require().NoError(err) s.Require().False(found) } + +func (s *KeeperTestSuite) TestAppendForecast() { + ctx := s.ctx + k := s.emissionsKeeper + topicId := uint64(1) + nonce := types.Nonce{BlockHeight: 10} + blockHeightInferences := int64(10) + + worker1 := "worker1" + worker2 := "worker2" + worker3 := "worker3" + worker4 := "worker4" + worker5 := "worker5" + + score1 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker1, Score: alloraMath.NewDecFromInt64(95)} + score2 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker2, Score: alloraMath.NewDecFromInt64(90)} + score3 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker3, Score: alloraMath.NewDecFromInt64(99)} + score4 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker4, Score: alloraMath.NewDecFromInt64(91)} + score5 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker5, Score: alloraMath.NewDecFromInt64(96)} + _ = k.SetLatestInfererScore(ctx, topicId, worker1, score1) + _ = k.SetLatestInfererScore(ctx, topicId, worker2, score2) + _ = k.SetLatestInfererScore(ctx, topicId, worker3, score3) + _ = k.SetLatestInfererScore(ctx, topicId, worker4, score4) + _ = k.SetLatestInfererScore(ctx, topicId, worker5, score5) + + allInferences := types.Inferences{ + Inferences: []*types.Inference{ + {TopicId: topicId, BlockHeight: blockHeightInferences, Inferer: worker1, Value: alloraMath.MustNewDecFromString("0.52")}, + {TopicId: topicId, BlockHeight: blockHeightInferences, Inferer: worker2, Value: alloraMath.MustNewDecFromString("0.71")}, + {TopicId: topicId, BlockHeight: blockHeightInferences, Inferer: worker3, Value: alloraMath.MustNewDecFromString("0.71")}, + }, + } + _ = k.InsertInferences(ctx, topicId, nonce, allInferences) + + newInference := types.Inference{ + TopicId: topicId, BlockHeight: blockHeightInferences, Inferer: worker4, Value: alloraMath.MustNewDecFromString("0.52"), + } + err := k.AppendInference(ctx, topicId, nonce, &newInference) + s.Require().NoError(err) + newAllInferences, err := k.GetInferencesAtBlock(ctx, topicId, blockHeightInferences) + s.Require().NoError(err) + s.Require().Equal(len(newAllInferences.Inferences), len(allInferences.Inferences)+1) + params := types.Params{ + MaxTopInferersToReward: 4, + } + k.SetParams(ctx, params) + newInference2 := types.Inference{ + TopicId: topicId, BlockHeight: blockHeightInferences, Inferer: worker5, Value: alloraMath.MustNewDecFromString("0.52"), + } + err = k.AppendInference(ctx, topicId, nonce, &newInference2) + s.Require().NoError(err) + newAllInferences, err = k.GetInferencesAtBlock(ctx, topicId, blockHeightInferences) + s.Require().NoError(err) + s.Require().Equal(len(newAllInferences.Inferences), int(params.MaxTopInferersToReward)) + s.Require().Equal(newAllInferences.Inferences[1].Inferer, worker3) +} + +func (s *KeeperTestSuite) TestAppendInference() { + ctx := s.ctx + k := s.emissionsKeeper + topicId := uint64(1) + nonce := types.Nonce{BlockHeight: 10} + blockHeightInferences := int64(10) + + worker1 := "worker1" + worker2 := "worker2" + worker3 := "worker3" + worker4 := "worker4" + worker5 := "worker5" + + score1 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker1, Score: alloraMath.NewDecFromInt64(95)} + score2 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker2, Score: alloraMath.NewDecFromInt64(90)} + score3 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker3, Score: alloraMath.NewDecFromInt64(99)} + score4 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker4, Score: alloraMath.NewDecFromInt64(91)} + score5 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker5, Score: alloraMath.NewDecFromInt64(96)} + _ = k.SetLatestForecasterScore(ctx, topicId, worker1, score1) + _ = k.SetLatestForecasterScore(ctx, topicId, worker2, score2) + _ = k.SetLatestForecasterScore(ctx, topicId, worker3, score3) + _ = k.SetLatestForecasterScore(ctx, topicId, worker4, score4) + _ = k.SetLatestForecasterScore(ctx, topicId, worker5, score5) + + allForecasts := types.Forecasts{ + Forecasts: []*types.Forecast{ + { + TopicId: topicId, + BlockHeight: blockHeightInferences, + Forecaster: worker1, + ForecastElements: []*types.ForecastElement{ + { + Inferer: worker1, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + { + Inferer: worker2, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + }, + }, + { + TopicId: topicId, + BlockHeight: blockHeightInferences, + Forecaster: worker2, + ForecastElements: []*types.ForecastElement{ + { + Inferer: worker1, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + { + Inferer: worker2, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + }, + }, + { + TopicId: topicId, + BlockHeight: blockHeightInferences, + Forecaster: worker3, + ForecastElements: []*types.ForecastElement{ + { + Inferer: worker1, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + { + Inferer: worker2, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + }, + }, + }, + } + _ = k.InsertForecasts(ctx, topicId, nonce, allForecasts) + + newForecast := types.Forecast{ + TopicId: topicId, + BlockHeight: blockHeightInferences, + Forecaster: worker4, + ForecastElements: []*types.ForecastElement{ + { + Inferer: worker1, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + { + Inferer: worker2, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + }, + } + err := k.AppendForecast(ctx, topicId, nonce, &newForecast) + s.Require().NoError(err) + newAllForecasts, err := k.GetForecastsAtBlock(ctx, topicId, blockHeightInferences) + s.Require().NoError(err) + s.Require().Equal(len(newAllForecasts.Forecasts), len(allForecasts.Forecasts)+1) + params := types.Params{ + MaxTopInferersToReward: 4, + } + k.SetParams(ctx, params) + newInference2 := types.Forecast{ + TopicId: topicId, + BlockHeight: blockHeightInferences, + Forecaster: worker5, + ForecastElements: []*types.ForecastElement{ + { + Inferer: worker1, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + { + Inferer: worker2, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + }, + } + err = k.AppendForecast(ctx, topicId, nonce, &newInference2) + s.Require().NoError(err) + newAllForecasts, err = k.GetForecastsAtBlock(ctx, topicId, blockHeightInferences) + s.Require().NoError(err) + s.Require().Equal(len(newAllForecasts.Forecasts), int(params.MaxTopInferersToReward)) + s.Require().Equal(newAllForecasts.Forecasts[1].Forecaster, worker3) +} + +func (s *KeeperTestSuite) TestAppendReputerLoss() { + + ctx := s.ctx + k := s.emissionsKeeper + topicId := uint64(1) + blockHeight := int64(10) + nonce := types.Nonce{BlockHeight: blockHeight} + reputerRequestNonce := &types.ReputerRequestNonce{ + ReputerNonce: &types.Nonce{BlockHeight: blockHeight}, + } + + reputer1 := "reputer1" + reputer2 := "reputer2" + reputer3 := "reputer3" + reputer4 := "reputer4" + reputer5 := "reputer5" + + score1 := types.Score{TopicId: topicId, BlockHeight: 2, Address: reputer1, Score: alloraMath.NewDecFromInt64(95)} + score2 := types.Score{TopicId: topicId, BlockHeight: 2, Address: reputer2, Score: alloraMath.NewDecFromInt64(90)} + score3 := types.Score{TopicId: topicId, BlockHeight: 2, Address: reputer3, Score: alloraMath.NewDecFromInt64(99)} + score4 := types.Score{TopicId: topicId, BlockHeight: 2, Address: reputer4, Score: alloraMath.NewDecFromInt64(91)} + score5 := types.Score{TopicId: topicId, BlockHeight: 2, Address: reputer5, Score: alloraMath.NewDecFromInt64(96)} + _ = k.SetLatestReputerScore(ctx, topicId, reputer1, score1) + _ = k.SetLatestReputerScore(ctx, topicId, reputer2, score2) + _ = k.SetLatestReputerScore(ctx, topicId, reputer3, score3) + _ = k.SetLatestReputerScore(ctx, topicId, reputer4, score4) + _ = k.SetLatestReputerScore(ctx, topicId, reputer5, score5) + + allReputerLosses := types.ReputerValueBundles{ + ReputerValueBundles: []*types.ReputerValueBundle{ + { + ValueBundle: &types.ValueBundle{ + Reputer: reputer1, + CombinedValue: alloraMath.MustNewDecFromString(".0000117005278862668"), + ReputerRequestNonce: reputerRequestNonce, + TopicId: topicId, + }, + }, + { + ValueBundle: &types.ValueBundle{ + Reputer: reputer2, + CombinedValue: alloraMath.MustNewDecFromString(".00000962701954026944"), + ReputerRequestNonce: reputerRequestNonce, + TopicId: topicId, + }, + }, + { + ValueBundle: &types.ValueBundle{ + Reputer: reputer3, + CombinedValue: alloraMath.MustNewDecFromString(".0000256948644008351"), + ReputerRequestNonce: reputerRequestNonce, + TopicId: topicId, + }, + }, + }, + } + _ = k.InsertReputerLossBundlesAtBlock(ctx, topicId, nonce.BlockHeight, allReputerLosses) + + newReputerLoss := types.ReputerValueBundle{ + ValueBundle: &types.ValueBundle{ + Reputer: reputer4, + CombinedValue: alloraMath.MustNewDecFromString(".0000256948644008351"), + ReputerRequestNonce: reputerRequestNonce, + TopicId: topicId, + }, + } + err := k.AppendReputerLoss(ctx, topicId, nonce.BlockHeight, &newReputerLoss) + s.Require().NoError(err) + newAllReputerLosses, err := k.GetReputerLossBundlesAtBlock(ctx, topicId, nonce.BlockHeight) + s.Require().NoError(err) + s.Require().Equal(len(newAllReputerLosses.ReputerValueBundles), len(allReputerLosses.ReputerValueBundles)+1) + params := types.Params{ + MaxTopReputersToReward: 4, + } + k.SetParams(ctx, params) + + newReputerLoss2 := types.ReputerValueBundle{ + ValueBundle: &types.ValueBundle{ + Reputer: reputer5, + CombinedValue: alloraMath.MustNewDecFromString(".0000256948644008351"), + ReputerRequestNonce: reputerRequestNonce, + TopicId: topicId, + }, + } + err = k.AppendReputerLoss(ctx, topicId, nonce.BlockHeight, &newReputerLoss2) + s.Require().NoError(err) + newAllReputerLosses, err = k.GetReputerLossBundlesAtBlock(ctx, topicId, nonce.BlockHeight) + s.Require().NoError(err) + s.Require().Equal(len(newAllReputerLosses.ReputerValueBundles), int(params.MaxTopReputersToReward)) + s.Require().Equal(newAllReputerLosses.ReputerValueBundles[1].ValueBundle.Reputer, reputer3) +} diff --git a/x/emissions/keeper/migrator.go b/x/emissions/keeper/migrator.go deleted file mode 100644 index b313a2ea4..000000000 --- a/x/emissions/keeper/migrator.go +++ /dev/null @@ -1,26 +0,0 @@ -package keeper - -import ( - v2 "github.com/allora-network/allora-chain/x/emissions/migrations/v2" - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// Migrator is a struct for handling in-place state migrations. -type Migrator struct { - keeper Keeper -} - -// NewMigrator returns Migrator instance for the state migration. -func NewMigrator(k Keeper) Migrator { - return Migrator{ - keeper: k, - } -} - -// Migrate1to2 migrates the emissions module state from the consensus version 1 to -// version 2. For now this is a no-op since we don't actually have any state to -// upgrade, but in the future this function or a 2to3 would be used to handle -// state migrations between versions of the emissions module. -func (m Migrator) Migrate1to2(ctx sdk.Context) error { - return v2.MigrateStore(ctx) -} diff --git a/x/emissions/keeper/msgserver/msg_server_demand.go b/x/emissions/keeper/msgserver/msg_server_demand.go index 0494aa455..d556fe67a 100644 --- a/x/emissions/keeper/msgserver/msg_server_demand.go +++ b/x/emissions/keeper/msgserver/msg_server_demand.go @@ -3,10 +3,7 @@ package msgserver import ( "context" - appParams "github.com/allora-network/allora-chain/app/params" "github.com/allora-network/allora-chain/x/emissions/types" - minttypes "github.com/allora-network/allora-chain/x/mint/types" - sdk "github.com/cosmos/cosmos-sdk/types" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" ) @@ -20,22 +17,6 @@ func (ms msgServer) FundTopic(ctx context.Context, msg *types.MsgFundTopic) (*ty return nil, err } - // Check sender has funds to pay for the inference request - // bank module does this for us in module SendCoins / subUnlockedCoins so we don't need to check - // Send funds - coins := sdk.NewCoins(sdk.NewCoin(appParams.DefaultBondDenom, msg.Amount)) - err = ms.k.SendCoinsFromAccountToModule(ctx, msg.Sender, minttypes.EcosystemModuleName, coins) - if err != nil { - return nil, err - } - - // Account for the revenue the topic has generated - err = ms.k.AddTopicFeeRevenue(ctx, msg.TopicId, msg.Amount) - if err != nil { - return nil, err - } - - // Activate topic if it exhibits minimum weight - err = activateTopicIfWeightAtLeastGlobalMin(ctx, ms, msg.TopicId, msg.Amount) + err = sendEffectiveRevenueActivateTopicIfWeightSufficient(ctx, ms, msg.Sender, msg.TopicId, msg.Amount) return &types.MsgFundTopicResponse{}, err } diff --git a/x/emissions/keeper/msgserver/msg_server_demand_test.go b/x/emissions/keeper/msgserver/msg_server_demand_test.go index abbdb5445..e79f5b7c9 100644 --- a/x/emissions/keeper/msgserver/msg_server_demand_test.go +++ b/x/emissions/keeper/msgserver/msg_server_demand_test.go @@ -33,7 +33,6 @@ func (s *MsgServerTestSuite) TestFundTopicSimple() { params.TopicRewardAlpha, params.TopicRewardStakeImportance, params.TopicRewardFeeRevenueImportance, - r.Amount, ) s.Require().NoError(err) response, err := s.msgServer.FundTopic(s.ctx, &r) @@ -52,7 +51,6 @@ func (s *MsgServerTestSuite) TestFundTopicSimple() { params.TopicRewardAlpha, params.TopicRewardStakeImportance, params.TopicRewardFeeRevenueImportance, - r.Amount, ) s.Require().NoError(err) s.Require().True(feeRevAfter.GT(feeRevBefore), "Topic fee revenue should be greater after funding the topic") @@ -109,7 +107,6 @@ func (s *MsgServerTestSuite) TestHighWeightForHighFundedTopic() { params.TopicRewardAlpha, params.TopicRewardStakeImportance, params.TopicRewardFeeRevenueImportance, - r.Amount, ) s.Require().NoError(err) @@ -120,7 +117,6 @@ func (s *MsgServerTestSuite) TestHighWeightForHighFundedTopic() { params.TopicRewardAlpha, params.TopicRewardStakeImportance, params.TopicRewardFeeRevenueImportance, - r2.Amount, ) s.Require().NoError(err) diff --git a/x/emissions/keeper/msgserver/msg_server_losses_test.go b/x/emissions/keeper/msgserver/msg_server_losses_test.go deleted file mode 100644 index 2a2af69e9..000000000 --- a/x/emissions/keeper/msgserver/msg_server_losses_test.go +++ /dev/null @@ -1,767 +0,0 @@ -package msgserver_test - -import ( - "encoding/hex" - - alloraMath "github.com/allora-network/allora-chain/math" - "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis" - "github.com/allora-network/allora-chain/x/emissions/types" - "github.com/cometbft/cometbft/crypto/secp256k1" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -func (s *MsgServerTestSuite) getBasicReputerPayload( - reputerAddr sdk.AccAddress, - workerAddr sdk.AccAddress, - block types.BlockHeight, -) ( - reputerValueBundle types.ValueBundle, - expectedInferences types.Inferences, - expectedForecasts types.Forecasts, - topicId uint64, - reputerNonce types.Nonce, - workerNonce types.Nonce, -) { - ctx, msgServer := s.ctx, s.msgServer - require := s.Require() - keeper := s.emissionsKeeper - - params, err := keeper.GetParams(ctx) - require.NoError(err) - - minStakeScaled := params.RequiredMinimumStake.Mul(inference_synthesis.CosmosIntOneE18()) - - topicId = s.commonStakingSetup(ctx, reputerAddr.String(), workerAddr.String(), minStakeScaled) - s.MintTokensToAddress(reputerAddr, params.RequiredMinimumStake) - - addStakeMsg := &types.MsgAddStake{ - Sender: reputerAddr.String(), - TopicId: topicId, - Amount: minStakeScaled, - } - - _, err = msgServer.AddStake(ctx, addStakeMsg) - s.Require().NoError(err) - - reputerNonce = types.Nonce{ - BlockHeight: block, - } - workerNonce = types.Nonce{ - BlockHeight: block, - } - - keeper.AddWorkerNonce(ctx, topicId, &workerNonce) - keeper.FulfillWorkerNonce(ctx, topicId, &workerNonce) - keeper.AddReputerNonce(ctx, topicId, &reputerNonce) - - // add in inference and forecast data - expectedInferences = types.Inferences{ - Inferences: []*types.Inference{ - { - Value: alloraMath.NewDecFromInt64(1), // Assuming NewDecFromInt64 exists and is appropriate - Inferer: workerAddr.String(), - }, - }, - } - - expectedForecasts = types.Forecasts{ - Forecasts: []*types.Forecast{ - { - TopicId: topicId, - Forecaster: workerAddr.String(), - }, - }, - } - - reputerValueBundle = types.ValueBundle{ - TopicId: topicId, - Reputer: reputerAddr.String(), - CombinedValue: alloraMath.NewDecFromInt64(100), - InfererValues: []*types.WorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - }, - ForecasterValues: []*types.WorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - }, - NaiveValue: alloraMath.NewDecFromInt64(100), - OneOutInfererValues: []*types.WithheldWorkerAttributedValue{}, - OneOutForecasterValues: []*types.WithheldWorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - }, - OneInForecasterValues: []*types.WorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - }, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &reputerNonce, - }, - } - - return reputerValueBundle, expectedInferences, expectedForecasts, topicId, reputerNonce, workerNonce -} - -func (s *MsgServerTestSuite) signValueBundle(reputerValueBundle *types.ValueBundle, privateKey secp256k1.PrivKey) []byte { - require := s.Require() - src := make([]byte, 0) - src, err := reputerValueBundle.XXX_Marshal(src, true) - require.NoError(err, "Marshall reputer value bundle should not return an error") - - valueBundleSignature, err := privateKey.Sign(src) - require.NoError(err, "Sign should not return an error") - - return valueBundleSignature -} - -func (s *MsgServerTestSuite) constructAndInsertReputerPayload( - reputerAddr sdk.AccAddress, - reputerPrivateKey secp256k1.PrivKey, - reputerPublicKeyBytes []byte, - reputerValueBundle *types.ValueBundle, - topicId uint64, - reputerNonce *types.Nonce, -) error { - ctx, msgServer := s.ctx, s.msgServer - valueBundleSignature := s.signValueBundle(reputerValueBundle, reputerPrivateKey) - - // Create a MsgInsertBulkReputerPayload message - lossesMsg := &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddr.String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: reputerNonce, - }, - ReputerValueBundles: []*types.ReputerValueBundle{ - { - ValueBundle: reputerValueBundle, - Signature: valueBundleSignature, - Pubkey: hex.EncodeToString(reputerPublicKeyBytes), - }, - }, - } - - _, err := msgServer.InsertBulkReputerPayload(ctx, lossesMsg) - return err -} - -func (s *MsgServerTestSuite) TestMsgInsertBulkReputerPayload() { - ctx := s.ctx - require := s.Require() - keeper := s.emissionsKeeper - - block := types.BlockHeight(1) - - reputerPrivateKey := secp256k1.GenPrivKey() - reputerPublicKeyBytes := reputerPrivateKey.PubKey().Bytes() - reputerAddr := sdk.AccAddress(reputerPrivateKey.PubKey().Address()) - - workerPrivateKey := secp256k1.GenPrivKey() - workerAddr := sdk.AccAddress(workerPrivateKey.PubKey().Address()) - - reputerValueBundle, expectedInferences, expectedForecasts, topicId, reputerNonce, _ := s.getBasicReputerPayload(reputerAddr, workerAddr, block) - - err := keeper.InsertForecasts(ctx, topicId, types.Nonce{BlockHeight: int64(block)}, expectedForecasts) - require.NoError(err) - - err = keeper.InsertInferences(ctx, topicId, types.Nonce{BlockHeight: block}, expectedInferences) - require.NoError(err) - - err = s.constructAndInsertReputerPayload(reputerAddr, reputerPrivateKey, reputerPublicKeyBytes, &reputerValueBundle, topicId, &reputerNonce) - require.NoError(err) -} - -func (s *MsgServerTestSuite) TestInsertingReputerPayloadWithMismatchedTopicIdsIsIgnored() { - ctx := s.ctx - require := s.Require() - keeper := s.emissionsKeeper - - block := types.BlockHeight(1) - - reputerPrivateKey := secp256k1.GenPrivKey() - reputerPublicKeyBytes := reputerPrivateKey.PubKey().Bytes() - reputerAddr := sdk.AccAddress(reputerPrivateKey.PubKey().Address()) - - workerPrivateKey := secp256k1.GenPrivKey() - workerAddr := sdk.AccAddress(workerPrivateKey.PubKey().Address()) - - reputerValueBundle, expectedInferences, expectedForecasts, topicId, reputerNonce, _ := s.getBasicReputerPayload(reputerAddr, workerAddr, block) - - // BEGIN MODIFICATION - reputerValueBundle.TopicId = topicId + 1 - // END MODIFICATION - - err := keeper.InsertForecasts(ctx, topicId, types.Nonce{BlockHeight: int64(block)}, expectedForecasts) - require.NoError(err) - - err = keeper.InsertInferences(ctx, topicId, types.Nonce{BlockHeight: block}, expectedInferences) - require.NoError(err) - - err = s.constructAndInsertReputerPayload( - reputerAddr, - reputerPrivateKey, - reputerPublicKeyBytes, - &reputerValueBundle, - topicId, - &reputerNonce, - ) - - require.ErrorIs(err, types.ErrNoValidBundles) -} - -func (s *MsgServerTestSuite) TestInsertingReputerPayloadWithMismatchedReputerNonceIsIgnored() { - ctx := s.ctx - require := s.Require() - keeper := s.emissionsKeeper - - block := types.BlockHeight(1) - - reputerPrivateKey := secp256k1.GenPrivKey() - reputerPublicKeyBytes := reputerPrivateKey.PubKey().Bytes() - reputerAddr := sdk.AccAddress(reputerPrivateKey.PubKey().Address()) - - workerPrivateKey := secp256k1.GenPrivKey() - workerAddr := sdk.AccAddress(workerPrivateKey.PubKey().Address()) - - reputerValueBundle, expectedInferences, expectedForecasts, topicId, reputerNonce, _ := s.getBasicReputerPayload(reputerAddr, workerAddr, block) - - // BEGIN MODIFICATION - reputerValueBundle.ReputerRequestNonce.ReputerNonce.BlockHeight = 123 - // END MODIFICATION - - err := keeper.InsertForecasts(ctx, topicId, types.Nonce{BlockHeight: block}, expectedForecasts) - require.NoError(err) - - err = keeper.InsertInferences(ctx, topicId, types.Nonce{BlockHeight: block}, expectedInferences) - require.NoError(err) - - err = s.constructAndInsertReputerPayload( - reputerAddr, - reputerPrivateKey, - reputerPublicKeyBytes, - &reputerValueBundle, - topicId, - &reputerNonce, - ) - - require.ErrorIs(err, types.ErrNoValidBundles) -} - -func (s *MsgServerTestSuite) TestInsertingReputerPayloadWithUnregisteredReputerIsIgnored() { - ctx, msgServer := s.ctx, s.msgServer - require := s.Require() - keeper := s.emissionsKeeper - - block := types.BlockHeight(1) - - reputerPrivateKey := secp256k1.GenPrivKey() - reputerPublicKeyBytes := reputerPrivateKey.PubKey().Bytes() - reputerAddr := sdk.AccAddress(reputerPrivateKey.PubKey().Address()) - - workerPrivateKey := secp256k1.GenPrivKey() - workerAddr := sdk.AccAddress(workerPrivateKey.PubKey().Address()) - - reputerValueBundle, expectedInferences, expectedForecasts, topicId, reputerNonce, _ := s.getBasicReputerPayload(reputerAddr, workerAddr, block) - - // BEGIN MODIFICATION - unregisterMsg := &types.MsgRemoveRegistration{ - Sender: reputerAddr.String(), - TopicId: topicId, - IsReputer: true, - } - - _, err := msgServer.RemoveRegistration(ctx, unregisterMsg) - require.NoError(err) - // END MODIFICATION - - err = keeper.InsertForecasts(ctx, topicId, types.Nonce{BlockHeight: block}, expectedForecasts) - require.NoError(err) - - err = keeper.InsertInferences(ctx, topicId, types.Nonce{BlockHeight: block}, expectedInferences) - require.NoError(err) - - err = s.constructAndInsertReputerPayload( - reputerAddr, - reputerPrivateKey, - reputerPublicKeyBytes, - &reputerValueBundle, - topicId, - &reputerNonce, - ) - - require.ErrorIs(err, types.ErrNoValidBundles) -} - -func (s *MsgServerTestSuite) TestInsertingReputerPayloadWithUnderstakeReputerIsIgnored() { - ctx, msgServer := s.ctx, s.msgServer - require := s.Require() - keeper := s.emissionsKeeper - - reputerPrivateKey := secp256k1.GenPrivKey() - reputerPublicKeyBytes := reputerPrivateKey.PubKey().Bytes() - reputerAddr := sdk.AccAddress(reputerPrivateKey.PubKey().Address()) - - workerPrivateKey := secp256k1.GenPrivKey() - workerAddr := sdk.AccAddress(workerPrivateKey.PubKey().Address()) - - // BEGIN MODIFICATION - block := ctx.BlockHeight() - - reputerValueBundle, expectedInferences, expectedForecasts, topicId, reputerNonce, _ := s.getBasicReputerPayload(reputerAddr, workerAddr, block) - - reputerStake, err := keeper.GetStakeReputerAuthority(ctx, topicId, reputerAddr.String()) - require.NoError(err) - - params, err := keeper.GetParams(ctx) - require.NoError(err) - removalDelay := params.RemoveStakeDelayWindow - - startRemoveStakeMsg := &types.MsgRemoveStake{ - Sender: reputerAddr.String(), - TopicId: topicId, - Amount: reputerStake, - } - - _, err = msgServer.RemoveStake(ctx, startRemoveStakeMsg) - require.NoError(err) - - block = block + removalDelay - ctx = ctx.WithBlockHeight(block) - - // run the end block to force the removal of stake to go through - s.appModule.EndBlock(ctx) - - // END MODIFICATION - - err = keeper.InsertForecasts(ctx, topicId, types.Nonce{BlockHeight: block}, expectedForecasts) - require.NoError(err) - - err = keeper.InsertInferences(ctx, topicId, types.Nonce{BlockHeight: block}, expectedInferences) - require.NoError(err, "InsertInferences should not return an error") - - err = s.constructAndInsertReputerPayload( - reputerAddr, - reputerPrivateKey, - reputerPublicKeyBytes, - &reputerValueBundle, - topicId, - &reputerNonce, - ) - - require.ErrorIs(err, types.ErrNoValidBundles) -} - -func (s *MsgServerTestSuite) TestInsertingReputerPayloadWithMissingInferencesIsIgnored() { - ctx := s.ctx - require := s.Require() - keeper := s.emissionsKeeper - - block := types.BlockHeight(1) - - reputerPrivateKey := secp256k1.GenPrivKey() - reputerPublicKeyBytes := reputerPrivateKey.PubKey().Bytes() - reputerAddr := sdk.AccAddress(reputerPrivateKey.PubKey().Address()) - - workerPrivateKey := secp256k1.GenPrivKey() - workerAddr := sdk.AccAddress(workerPrivateKey.PubKey().Address()) - - reputerValueBundle, _, expectedForecasts, topicId, reputerNonce, _ := s.getBasicReputerPayload(reputerAddr, workerAddr, block) - - err := keeper.InsertForecasts(ctx, topicId, types.Nonce{BlockHeight: block}, expectedForecasts) - require.NoError(err) - - // BEGIN MODIFICATION - // err = keeper.InsertInferences(ctx, topicId, types.Nonce{BlockHeight: block}, expectedInferences) - // require.NoError(err, "InsertInferences should not return an error") - // END MODIFICATION - - err = s.constructAndInsertReputerPayload( - reputerAddr, - reputerPrivateKey, - reputerPublicKeyBytes, - &reputerValueBundle, - topicId, - &reputerNonce, - ) - - require.ErrorIs(err, types.ErrNoValidBundles) -} - -func (s *MsgServerTestSuite) TestInsertingReputerPayloadWithIncorrectBaseWorkerNonceIsIgnored() { - ctx := s.ctx - require := s.Require() - keeper := s.emissionsKeeper - - block := types.BlockHeight(1) - - reputerPrivateKey := secp256k1.GenPrivKey() - reputerPublicKeyBytes := reputerPrivateKey.PubKey().Bytes() - reputerAddr := sdk.AccAddress(reputerPrivateKey.PubKey().Address()) - - workerPrivateKey := secp256k1.GenPrivKey() - workerAddr := sdk.AccAddress(workerPrivateKey.PubKey().Address()) - - reputerValueBundle, expectedInferences, expectedForecasts, topicId, reputerNonce, _ := s.getBasicReputerPayload(reputerAddr, workerAddr, block) - - // BEGIN MODIFICATION - reputerNonce.BlockHeight = block + 1 - // END MODIFICATION - - err := keeper.InsertForecasts(ctx, topicId, types.Nonce{BlockHeight: int64(block)}, expectedForecasts) - require.NoError(err) - - err = keeper.InsertInferences(ctx, topicId, types.Nonce{BlockHeight: block}, expectedInferences) - require.NoError(err) - - err = s.constructAndInsertReputerPayload( - reputerAddr, - reputerPrivateKey, - reputerPublicKeyBytes, - &reputerValueBundle, - topicId, - &reputerNonce, - ) - - require.ErrorIs(err, types.ErrNonceAlreadyFulfilled) -} - -func (s *MsgServerTestSuite) TestMsgInsertBulkReputerPayloadInvalid() { - ctx, msgServer := s.ctx, s.msgServer - require := s.Require() - keeper := s.emissionsKeeper - - reputerPrivateKey := secp256k1.GenPrivKey() - reputerPublicKeyBytes := reputerPrivateKey.PubKey().Bytes() - reputerAddr := sdk.AccAddress(reputerPrivateKey.PubKey().Address()) - - workerPrivateKey := secp256k1.GenPrivKey() - workerAddr := sdk.AccAddress(workerPrivateKey.PubKey().Address()) - - params, err := keeper.GetParams(ctx) - require.NoError(err) - - minStakeScaled := params.RequiredMinimumStake.Mul(inference_synthesis.CosmosIntOneE18()) - - topicId := s.commonStakingSetup(ctx, reputerAddr.String(), workerAddr.String(), minStakeScaled) - - s.MintTokensToAddress(reputerAddr, params.RequiredMinimumStake) - - addStakeMsg := &types.MsgAddStake{ - Sender: reputerAddr.String(), - TopicId: topicId, - Amount: minStakeScaled, - } - - _, err = msgServer.AddStake(ctx, addStakeMsg) - s.Require().NoError(err) - - reputerNonce := &types.Nonce{ - BlockHeight: 2, - } - workerNonce := &types.Nonce{ - BlockHeight: 1, - } - - keeper.AddWorkerNonce(ctx, topicId, workerNonce) - keeper.FulfillWorkerNonce(ctx, topicId, workerNonce) - keeper.AddReputerNonce(ctx, topicId, reputerNonce) - - // add in inference and forecast data - block := types.BlockHeight(1) - expectedInferences := types.Inferences{ - Inferences: []*types.Inference{ - { - Value: alloraMath.NewDecFromInt64(1), // Assuming NewDecFromInt64 exists and is appropriate - Inferer: workerAddr.String(), - }, - }, - } - - nonce := types.Nonce{BlockHeight: block} // Assuming block type cast to int64 if needed - err = keeper.InsertInferences(ctx, topicId, nonce, expectedInferences) - require.NoError(err, "InsertInferences should not return an error") - - expectedForecasts := types.Forecasts{ - Forecasts: []*types.Forecast{ - { - TopicId: topicId, - Forecaster: workerAddr.String(), - }, - }, - } - - nonce = types.Nonce{BlockHeight: int64(block)} - err = keeper.InsertForecasts(ctx, topicId, nonce, expectedForecasts) - s.Require().NoError(err) - - reputerValueBundle := &types.ValueBundle{ - TopicId: topicId, - Reputer: reputerAddr.String(), - CombinedValue: alloraMath.NewDecFromInt64(100), - InfererValues: []*types.WorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - }, - ForecasterValues: []*types.WorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - }, - NaiveValue: alloraMath.NewDecFromInt64(100), - OneOutInfererValues: []*types.WithheldWorkerAttributedValue{}, - OneOutForecasterValues: []*types.WithheldWorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - }, - OneInForecasterValues: []*types.WorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - }, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: reputerNonce, - }, - } - - src := make([]byte, 0) - src, err = reputerValueBundle.XXX_Marshal(src, true) - require.NoError(err, "Marshall reputer value bundle should not return an error") - - valueBundleSignature, err := reputerPrivateKey.Sign(src) - require.NoError(err, "Sign should not return an error") - - // Create a MsgInsertBulkReputerPayload message - lossesMsg := &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddr.String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: reputerNonce, - }, - ReputerValueBundles: []*types.ReputerValueBundle{ - { - ValueBundle: reputerValueBundle, - Signature: valueBundleSignature, - Pubkey: hex.EncodeToString(reputerPublicKeyBytes), - }, - }, - } - - // Send to the wrong topic should error - lossesMsg.TopicId = topicId + 999 - _, err = msgServer.InsertBulkReputerPayload(ctx, lossesMsg) - require.ErrorIs(err, sdkerrors.ErrNotFound) - - // Fix topic - lossesMsg.TopicId = topicId - - // Send bundle with one-out inference with just 1 inferer in topic-block - lossesMsg.ReputerValueBundles[0].ValueBundle.OneOutInfererValues = []*types.WithheldWorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - } - _, err = msgServer.InsertBulkReputerPayload(ctx, lossesMsg) - require.ErrorIs(err, types.ErrNoValidBundles) -} - -func (s *MsgServerTestSuite) TestMsgInsertHugeBulkReputerPayloadFails() { - ctx, msgServer := s.ctx, s.msgServer - require := s.Require() - keeper := s.emissionsKeeper - - reputerPrivateKey := secp256k1.GenPrivKey() - reputerPublicKeyBytes := reputerPrivateKey.PubKey().Bytes() - reputerAddr := sdk.AccAddress(reputerPrivateKey.PubKey().Address()) - - workerPrivateKey := secp256k1.GenPrivKey() - workerAddr := sdk.AccAddress(workerPrivateKey.PubKey().Address()) - - params, err := keeper.GetParams(ctx) - require.NoError(err) - - minStakeScaled := params.RequiredMinimumStake.Mul(inference_synthesis.CosmosIntOneE18()) - - topicId := s.commonStakingSetup(ctx, reputerAddr.String(), workerAddr.String(), minStakeScaled) - - s.MintTokensToAddress(reputerAddr, params.RequiredMinimumStake) - - addStakeMsg := &types.MsgAddStake{ - Sender: reputerAddr.String(), - TopicId: topicId, - Amount: minStakeScaled, - } - - _, err = msgServer.AddStake(ctx, addStakeMsg) - s.Require().NoError(err) - - reputerNonce := &types.Nonce{ - BlockHeight: 1, - } - workerNonce := &types.Nonce{ - BlockHeight: 1, - } - - keeper.AddWorkerNonce(ctx, topicId, workerNonce) - keeper.FulfillWorkerNonce(ctx, topicId, workerNonce) - keeper.AddReputerNonce(ctx, topicId, reputerNonce) - - // add in inference and forecast data - block := types.BlockHeight(1) - expectedInferences := types.Inferences{ - Inferences: []*types.Inference{ - { - Value: alloraMath.NewDecFromInt64(1), // Assuming NewDecFromInt64 exists and is appropriate - Inferer: workerAddr.String(), - }, - }, - } - - nonce := types.Nonce{BlockHeight: block} // Assuming block type cast to int64 if needed - err = keeper.InsertInferences(ctx, topicId, nonce, expectedInferences) - require.NoError(err, "InsertInferences should not return an error") - - expectedForecasts := types.Forecasts{ - Forecasts: []*types.Forecast{ - { - TopicId: topicId, - Forecaster: workerAddr.String(), - }, - }, - } - - nonce = types.Nonce{BlockHeight: int64(block)} - err = keeper.InsertForecasts(ctx, topicId, nonce, expectedForecasts) - s.Require().NoError(err) - - reputerValueBundle := &types.ValueBundle{ - TopicId: topicId, - Reputer: reputerAddr.String(), - CombinedValue: alloraMath.NewDecFromInt64(100), - InfererValues: []*types.WorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - }, - ForecasterValues: []*types.WorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - }, - NaiveValue: alloraMath.NewDecFromInt64(100), - OneOutInfererValues: []*types.WithheldWorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - }, - OneOutForecasterValues: []*types.WithheldWorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - }, - OneInForecasterValues: []*types.WorkerAttributedValue{ - { - Worker: workerAddr.String(), - Value: alloraMath.NewDecFromInt64(100), - }, - }, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: reputerNonce, - }, - } - - src := make([]byte, 0) - src, err = reputerValueBundle.XXX_Marshal(src, true) - require.NoError(err, "Marshall reputer value bundle should not return an error") - - valueBundleSignature, err := reputerPrivateKey.Sign(src) - require.NoError(err, "Sign should not return an error") - - reputerValueBundles := []*types.ReputerValueBundle{} - for i := 0; i < 1000000; i++ { - reputerValueBundles = append( - reputerValueBundles, - &types.ReputerValueBundle{ - ValueBundle: reputerValueBundle, - Signature: valueBundleSignature, - Pubkey: hex.EncodeToString(reputerPublicKeyBytes), - }, - ) - } - - // Create a MsgInsertBulkReputerPayload message - lossesMsg := &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddr.String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: reputerNonce, - }, - ReputerValueBundles: reputerValueBundles, - } - - _, err = msgServer.InsertBulkReputerPayload(ctx, lossesMsg) - require.Error(err, types.ErrQueryTooLarge) -} - -func (s *MsgServerTestSuite) TestMsgInsertBulkReputerPayloadUpdateTopicCommit() { - ctx := s.ctx - require := s.Require() - keeper := s.emissionsKeeper - block := types.BlockHeight(1) - - reputerPrivateKey := secp256k1.GenPrivKey() - reputerPublicKeyBytes := reputerPrivateKey.PubKey().Bytes() - reputerAddr := sdk.AccAddress(reputerPrivateKey.PubKey().Address()) - workerPrivateKey := secp256k1.GenPrivKey() - workerAddr := sdk.AccAddress(workerPrivateKey.PubKey().Address()) - reputerValueBundle, expectedInferences, expectedForecasts, topicId, reputerNonce, _ := s.getBasicReputerPayload(reputerAddr, workerAddr, block) - err := keeper.InsertForecasts(ctx, topicId, types.Nonce{BlockHeight: int64(block)}, expectedForecasts) - require.NoError(err) - err = keeper.InsertInferences(ctx, topicId, types.Nonce{BlockHeight: block}, expectedInferences) - require.NoError(err) - - blockHeight := sdk.UnwrapSDKContext(ctx).BlockHeight() - err = s.constructAndInsertReputerPayload( - reputerAddr, - reputerPrivateKey, - reputerPublicKeyBytes, - &reputerValueBundle, - topicId, - &reputerNonce, - ) - require.NoError(err, "InsertReputerPayload should not return an error") - - lastCommit, err := keeper.GetTopicLastCommit(ctx, topicId, types.ActorType_REPUTER) - require.NoError(err, "GetTopicLastCommit should not return an error") - - require.Equal(blockHeight, lastCommit.BlockHeight, "BlockHeight should be same") - require.Equal(reputerValueBundle.Reputer, lastCommit.Actor, "Actor should be same") - require.Equal(reputerValueBundle.ReputerRequestNonce.ReputerNonce, lastCommit.Nonce, "Nonce should be same") - - lastReputerPayload, err := keeper.GetTopicLastReputerPayload(ctx, topicId) - require.NoError(err) - - require.Equal(blockHeight, lastReputerPayload.BlockHeight, "BlockHeight should be same") - require.Equal(reputerValueBundle.Reputer, lastReputerPayload.Actor, "Actor should be same") - require.Equal(reputerValueBundle.ReputerRequestNonce.ReputerNonce, lastReputerPayload.Nonce, "Nonce should be same") -} diff --git a/x/emissions/keeper/msgserver/msg_server_params.go b/x/emissions/keeper/msgserver/msg_server_params.go index 452863b78..85ae7f577 100644 --- a/x/emissions/keeper/msgserver/msg_server_params.go +++ b/x/emissions/keeper/msgserver/msg_server_params.go @@ -143,6 +143,15 @@ func (ms msgServer) UpdateParams(ctx context.Context, msg *types.MsgUpdateParams if len(newParams.MinEffectiveTopicRevenue) == 1 { existingParams.MinEffectiveTopicRevenue = newParams.MinEffectiveTopicRevenue[0] } + if len(newParams.HalfMaxProcessStakeRemovalsEndBlock) == 1 { + existingParams.HalfMaxProcessStakeRemovalsEndBlock = newParams.HalfMaxProcessStakeRemovalsEndBlock[0] + } + if len(newParams.DataSendingFee) == 1 { + existingParams.DataSendingFee = newParams.DataSendingFee[0] + } + if len(newParams.EpsilonSafeDiv) == 1 { + existingParams.EpsilonSafeDiv = newParams.EpsilonSafeDiv[0] + } err = existingParams.Validate() if err != nil { return nil, err diff --git a/x/emissions/keeper/msgserver/msg_server_registrations.go b/x/emissions/keeper/msgserver/msg_server_registrations.go index 7263b958c..72383af18 100644 --- a/x/emissions/keeper/msgserver/msg_server_registrations.go +++ b/x/emissions/keeper/msgserver/msg_server_registrations.go @@ -6,7 +6,6 @@ import ( "github.com/allora-network/allora-chain/app/params" "github.com/allora-network/allora-chain/x/emissions/types" - mintTypes "github.com/allora-network/allora-chain/x/mint/types" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -24,26 +23,18 @@ func (ms msgServer) Register(ctx context.Context, msg *types.MsgRegister) (*type return nil, types.ErrTopicDoesNotExist } - hasEnoughBal, fee, err := ms.CheckBalanceForRegistration(ctx, msg.Sender) + params, err := ms.k.GetParams(ctx) if err != nil { return nil, err } - if !hasEnoughBal { - return nil, types.ErrTopicRegistrantNotEnoughDenom - } - - // Before creating topic, transfer fee amount from creator to ecosystem bucket - err = ms.k.SendCoinsFromAccountToModule(ctx, msg.Sender, mintTypes.EcosystemModuleName, sdk.NewCoins(fee)) + err = sendEffectiveRevenueActivateTopicIfWeightSufficient(ctx, ms, msg.Sender, msg.TopicId, params.RegistrationFee) if err != nil { return nil, err } nodeInfo := types.OffchainNode{ - NodeAddress: msg.Sender, - LibP2PKey: msg.LibP2PKey, - MultiAddress: msg.MultiAddress, - Owner: msg.Owner, - NodeId: msg.Owner + "|" + msg.LibP2PKey, + NodeAddress: msg.Sender, + Owner: msg.Owner, } if msg.IsReputer { diff --git a/x/emissions/keeper/msgserver/msg_server_registrations_test.go b/x/emissions/keeper/msgserver/msg_server_registrations_test.go index 27dff87df..3811ec801 100644 --- a/x/emissions/keeper/msgserver/msg_server_registrations_test.go +++ b/x/emissions/keeper/msgserver/msg_server_registrations_test.go @@ -9,6 +9,7 @@ import ( "github.com/allora-network/allora-chain/x/emissions/types" minttypes "github.com/allora-network/allora-chain/x/mint/types" sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" @@ -29,12 +30,10 @@ func (s *MsgServerTestSuite) TestMsgRegisterReputer() { s.emissionsKeeper.ActivateTopic(ctx, topicId) // Reputer register registerMsg := &types.MsgRegister{ - Sender: reputerAddr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: reputerAddr.String(), + Sender: reputerAddr.String(), + TopicId: topicId, + IsReputer: true, + Owner: reputerAddr.String(), } mintAmount := sdk.NewCoins(sdk.NewInt64Coin(params.DefaultBondDenom, 100)) @@ -74,12 +73,10 @@ func (s *MsgServerTestSuite) TestMsgRemoveRegistration() { s.emissionsKeeper.ActivateTopic(ctx, topicId) // Reputer register registerMsg := &types.MsgRegister{ - Sender: reputerAddr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: reputerAddr.String(), + Sender: reputerAddr.String(), + TopicId: topicId, + IsReputer: true, + Owner: reputerAddr.String(), } mintAmount := sdk.NewCoins(sdk.NewInt64Coin(params.DefaultBondDenom, 100)) @@ -128,12 +125,10 @@ func (s *MsgServerTestSuite) TestMsgRegisterWorker() { s.emissionsKeeper.ActivateTopic(ctx, topicId) // Reputer register registerMsg := &types.MsgRegister{ - Sender: workerAddr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: workerAddr.String(), + Sender: workerAddr.String(), + TopicId: topicId, + IsReputer: false, + Owner: workerAddr.String(), } mintAmount := sdk.NewCoins(sdk.NewInt64Coin(params.DefaultBondDenom, 100)) @@ -177,12 +172,10 @@ func (s *MsgServerTestSuite) TestMsgRemoveRegistrationWorker() { s.emissionsKeeper.ActivateTopic(ctx, topicId) // Reputer register registerMsg := &types.MsgRegister{ - Sender: workerAddr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: workerAddr.String(), + Sender: workerAddr.String(), + TopicId: topicId, + IsReputer: false, + Owner: workerAddr.String(), } mintAmount := sdk.NewCoins(sdk.NewInt64Coin(params.DefaultBondDenom, 100)) @@ -216,32 +209,10 @@ func (s *MsgServerTestSuite) TestMsgRemoveRegistrationWorker() { require.False(isWorkerRegistered, "Worker should be registered in topic") } -func (s *MsgServerTestSuite) TestMsgRegisterReputerInvalidLibP2PKey() { - ctx, msgServer := s.ctx, s.msgServer - require := s.Require() - - topicId := uint64(0) - - // Mock setup for addresses - reputerAddr := sdk.AccAddress(PKS[0].Address()) - - // Topic does not exist - registerMsg := &types.MsgRegister{ - Sender: reputerAddr.String(), - Owner: reputerAddr.String(), - LibP2PKey: "", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - } - _, err := msgServer.Register(ctx, registerMsg) - require.ErrorIs(err, types.ErrLibP2PKeyRequired, "Register should return an error") -} - func (s *MsgServerTestSuite) TestMsgRegisterReputerInsufficientBalance() { ctx, msgServer := s.ctx, s.msgServer require := s.Require() - topicId := uint64(0) + topicId := s.CreateOneTopic() // Mock setup for addresses reputerAddr := sdk.AccAddress(PKS[0].Address()) @@ -250,17 +221,16 @@ func (s *MsgServerTestSuite) TestMsgRegisterReputerInsufficientBalance() { s.emissionsKeeper.ActivateTopic(ctx, 1) // Zero initial stake + s.MintTokensToAddress(reputerAddr, cosmosMath.NewInt(1)) // Topic does not exist registerMsg := &types.MsgRegister{ - Sender: reputerAddr.String(), - Owner: reputerAddr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, + Sender: reputerAddr.String(), + Owner: reputerAddr.String(), + TopicId: topicId, + IsReputer: true, } _, err := msgServer.Register(ctx, registerMsg) - require.ErrorIs(types.ErrTopicRegistrantNotEnoughDenom, err, "Register should return an error") + require.Error(err) } func (s *MsgServerTestSuite) TestMsgRegisterReputerInsufficientDenom() { @@ -274,19 +244,17 @@ func (s *MsgServerTestSuite) TestMsgRegisterReputerInsufficientDenom() { // Register Reputer reputerRegMsg := &types.MsgRegister{ - Sender: reputerAddr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: reputerAddr.String(), + Sender: reputerAddr.String(), + TopicId: topicId, + IsReputer: true, + Owner: reputerAddr.String(), } s.emissionsKeeper.AddReputerStake(ctx, topicId, reputerAddr.String(), registrationInitialStake.QuoRaw(2)) // Try to register without any funds to pay fees _, err := msgServer.Register(ctx, reputerRegMsg) - require.ErrorIs(err, types.ErrTopicRegistrantNotEnoughDenom, "Register should return an error") + require.ErrorIs(err, sdkerrors.ErrInsufficientFunds, "Register should return an error") } func (s *MsgServerTestSuite) TestBlocklistedAddressUnableToRegister() { @@ -323,18 +291,15 @@ func (s *MsgServerTestSuite) TestBlocklistedAddressUnableToRegister() { s.MintTokensToAddress(worker, cosmosMath.NewInt(10).Mul(cosmosOneE18)) // Create topic newTopicMsg := &types.MsgCreateNewTopic{ - Creator: worker.String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: epochLength, - GroundTruthLag: epochLength, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: worker.String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: epochLength, + GroundTruthLag: epochLength, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err := s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -343,26 +308,22 @@ func (s *MsgServerTestSuite) TestBlocklistedAddressUnableToRegister() { // Register 1 worker workerRegMsg := &types.MsgRegister{ - Sender: worker.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: worker.String(), + Sender: worker.String(), + TopicId: topicId, + IsReputer: false, + Owner: worker.String(), } _, err = s.msgServer.Register(s.ctx, workerRegMsg) s.Require().NoError(err) reputerRegMsg := &types.MsgRegister{ - Sender: reputer.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: reputer.String(), + Sender: reputer.String(), + TopicId: topicId, + IsReputer: true, + Owner: reputer.String(), } _, err = s.msgServer.Register(s.ctx, reputerRegMsg) - s.Require().ErrorIs(err, types.ErrTopicRegistrantNotEnoughDenom, "Register should return an error") + s.Require().ErrorIs(err, sdkerrors.ErrInsufficientFunds, "Register should return an error") } func (s *MsgServerTestSuite) TestMsgRegisterReputerInvalidTopicNotExist() { @@ -376,12 +337,10 @@ func (s *MsgServerTestSuite) TestMsgRegisterReputerInvalidTopicNotExist() { // Topic does not exist registerMsg := &types.MsgRegister{ - Sender: reputerAddr.String(), - Owner: reputerAddr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, + Sender: reputerAddr.String(), + Owner: reputerAddr.String(), + TopicId: topicId, + IsReputer: true, } _, err := msgServer.Register(ctx, registerMsg) require.ErrorIs(err, types.ErrTopicDoesNotExist, "Register should return an error") diff --git a/x/emissions/keeper/msgserver/msg_server_reputer_payload.go b/x/emissions/keeper/msgserver/msg_server_reputer_payload.go new file mode 100644 index 000000000..8546f5133 --- /dev/null +++ b/x/emissions/keeper/msgserver/msg_server_reputer_payload.go @@ -0,0 +1,81 @@ +package msgserver + +import ( + "context" + + errorsmod "cosmossdk.io/errors" + + "github.com/allora-network/allora-chain/x/emissions/types" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +// A tx function that accepts a individual loss and possibly returns an error +func (ms msgServer) InsertReputerPayload(ctx context.Context, msg *types.MsgInsertReputerPayload) (*types.MsgInsertReputerPayloadResponse, error) { + err := checkInputLength(ctx, ms, msg) + if err != nil { + return nil, err + } + + blockHeight := sdk.UnwrapSDKContext(ctx).BlockHeight() + + if err := msg.ReputerValueBundle.Validate(); err != nil { + return nil, errorsmod.Wrapf(types.ErrInvalidWorkerData, + "Worker invalid data for block: %d", blockHeight) + } + + nonce := msg.ReputerValueBundle.ValueBundle.ReputerRequestNonce + topicId := msg.ReputerValueBundle.ValueBundle.TopicId + + // Check if the topic exists + topicExists, err := ms.k.TopicExists(ctx, topicId) + if err != nil || !topicExists { + return nil, types.ErrInvalidTopicId + } + + // Check if the worker nonce is fulfilled + workerNonceUnfulfilled, err := ms.k.IsWorkerNonceUnfulfilled(ctx, topicId, nonce.ReputerNonce) + if err != nil { + return nil, err + } + // Returns an error if unfulfilled worker nonce exists + if workerNonceUnfulfilled { + return nil, types.ErrNonceStillUnfulfilled + } + + // Check if the reputer nonce is unfulfilled + reputerNonceUnfulfilled, err := ms.k.IsReputerNonceUnfulfilled(ctx, topicId, nonce.ReputerNonce) + if err != nil { + return nil, err + } + // If the reputer nonce is already fulfilled, return an error + if !reputerNonceUnfulfilled { + return nil, types.ErrUnfulfilledNonceNotFound + } + + topic, err := ms.k.GetTopic(ctx, topicId) + if err != nil { + return nil, types.ErrInvalidTopicId + } + + // Check if the ground truth lag has passed: if blockheight > nonce.BlockHeight + topic.GroundTruthLag + if blockHeight < nonce.ReputerNonce.BlockHeight+topic.GroundTruthLag { + return nil, types.ErrReputerNonceWindowNotAvailable + } + + // Before creating topic, transfer fee amount from creator to ecosystem bucket + params, err := ms.k.GetParams(ctx) + if err != nil { + return nil, errorsmod.Wrapf(err, "Error getting params for sender: %v", &msg.Sender) + } + err = sendEffectiveRevenueActivateTopicIfWeightSufficient(ctx, ms, msg.Sender, topicId, params.DataSendingFee) + if err != nil { + return nil, err + } + + err = ms.k.AppendReputerLoss(ctx, topicId, nonce.ReputerNonce.BlockHeight, msg.ReputerValueBundle) + if err != nil { + return nil, err + } + + return &types.MsgInsertReputerPayloadResponse{}, nil +} diff --git a/x/emissions/keeper/msgserver/msg_server_reputer_payload_test.go b/x/emissions/keeper/msgserver/msg_server_reputer_payload_test.go new file mode 100644 index 000000000..b43ce512e --- /dev/null +++ b/x/emissions/keeper/msgserver/msg_server_reputer_payload_test.go @@ -0,0 +1,181 @@ +package msgserver_test + +import ( + "encoding/hex" + + alloraMath "github.com/allora-network/allora-chain/math" + "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis" + "github.com/allora-network/allora-chain/x/emissions/types" + "github.com/cometbft/cometbft/crypto/secp256k1" + sdk "github.com/cosmos/cosmos-sdk/types" +) + +func (s *MsgServerTestSuite) setUpMsgReputerPayload( + reputerAddr sdk.AccAddress, + workerAddr sdk.AccAddress, + block types.BlockHeight, +) ( + reputerValueBundle types.ValueBundle, + expectedInferences types.Inferences, + expectedForecasts types.Forecasts, + topicId uint64, + reputerNonce types.Nonce, + workerNonce types.Nonce, +) { + ctx, msgServer := s.ctx, s.msgServer + require := s.Require() + keeper := s.emissionsKeeper + + params, err := keeper.GetParams(ctx) + require.NoError(err) + + minStakeScaled := params.RequiredMinimumStake.Mul(inference_synthesis.CosmosIntOneE18()) + + topicId = s.commonStakingSetup(ctx, reputerAddr.String(), workerAddr.String(), minStakeScaled) + s.MintTokensToAddress(reputerAddr, params.RequiredMinimumStake) + + addStakeMsg := &types.MsgAddStake{ + Sender: reputerAddr.String(), + TopicId: topicId, + Amount: minStakeScaled, + } + + _, err = msgServer.AddStake(ctx, addStakeMsg) + s.Require().NoError(err) + + reputerNonce = types.Nonce{ + BlockHeight: block, + } + workerNonce = types.Nonce{ + BlockHeight: block, + } + + keeper.AddWorkerNonce(ctx, topicId, &workerNonce) + keeper.FulfillWorkerNonce(ctx, topicId, &workerNonce) + keeper.AddReputerNonce(ctx, topicId, &reputerNonce) + + // add in inference and forecast data + expectedInferences = types.Inferences{ + Inferences: []*types.Inference{ + { + Value: alloraMath.NewDecFromInt64(1), // Assuming NewDecFromInt64 exists and is appropriate + Inferer: workerAddr.String(), + }, + }, + } + + expectedForecasts = types.Forecasts{ + Forecasts: []*types.Forecast{ + { + TopicId: topicId, + Forecaster: workerAddr.String(), + }, + }, + } + + reputerValueBundle = types.ValueBundle{ + TopicId: topicId, + Reputer: reputerAddr.String(), + CombinedValue: alloraMath.NewDecFromInt64(100), + InfererValues: []*types.WorkerAttributedValue{ + { + Worker: workerAddr.String(), + Value: alloraMath.NewDecFromInt64(100), + }, + }, + ForecasterValues: []*types.WorkerAttributedValue{ + { + Worker: workerAddr.String(), + Value: alloraMath.NewDecFromInt64(100), + }, + }, + NaiveValue: alloraMath.NewDecFromInt64(100), + OneOutInfererValues: []*types.WithheldWorkerAttributedValue{}, + OneOutForecasterValues: []*types.WithheldWorkerAttributedValue{ + { + Worker: workerAddr.String(), + Value: alloraMath.NewDecFromInt64(100), + }, + }, + OneInForecasterValues: []*types.WorkerAttributedValue{ + { + Worker: workerAddr.String(), + Value: alloraMath.NewDecFromInt64(100), + }, + }, + ReputerRequestNonce: &types.ReputerRequestNonce{ + ReputerNonce: &reputerNonce, + }, + } + + return reputerValueBundle, expectedInferences, expectedForecasts, topicId, reputerNonce, workerNonce +} + +func (s *MsgServerTestSuite) signValueBundle(reputerValueBundle *types.ValueBundle, privateKey secp256k1.PrivKey) []byte { + require := s.Require() + src := make([]byte, 0) + src, err := reputerValueBundle.XXX_Marshal(src, true) + require.NoError(err, "Marshall reputer value bundle should not return an error") + + valueBundleSignature, err := privateKey.Sign(src) + require.NoError(err, "Sign should not return an error") + + return valueBundleSignature +} + +func (s *MsgServerTestSuite) constructAndInsertReputerPayload( + reputerAddr sdk.AccAddress, + reputerPrivateKey secp256k1.PrivKey, + reputerPublicKeyBytes []byte, + reputerValueBundle *types.ValueBundle, + topicId uint64, + reputerNonce *types.Nonce, +) error { + ctx, msgServer := s.ctx, s.msgServer + valueBundleSignature := s.signValueBundle(reputerValueBundle, reputerPrivateKey) + + // Create a MsgInsertReputerPayload message + lossesMsg := &types.MsgInsertReputerPayload{ + Sender: reputerAddr.String(), + ReputerValueBundle: &types.ReputerValueBundle{ + ValueBundle: reputerValueBundle, + Signature: valueBundleSignature, + Pubkey: hex.EncodeToString(reputerPublicKeyBytes), + }, + } + + _, err := msgServer.InsertReputerPayload(ctx, lossesMsg) + return err +} + +func (s *MsgServerTestSuite) TestMsgInsertReputerPayload() { + ctx := s.ctx + require := s.Require() + keeper := s.emissionsKeeper + + block := types.BlockHeight(1) + + reputerPrivateKey := secp256k1.GenPrivKey() + reputerPublicKeyBytes := reputerPrivateKey.PubKey().Bytes() + reputerAddr := sdk.AccAddress(reputerPrivateKey.PubKey().Address()) + + workerPrivateKey := secp256k1.GenPrivKey() + workerAddr := sdk.AccAddress(workerPrivateKey.PubKey().Address()) + + reputerValueBundle, expectedInferences, expectedForecasts, topicId, reputerNonce, _ := s.setUpMsgReputerPayload(reputerAddr, workerAddr, block) + + err := keeper.InsertForecasts(ctx, topicId, types.Nonce{BlockHeight: int64(block)}, expectedForecasts) + require.NoError(err) + + err = keeper.InsertInferences(ctx, topicId, types.Nonce{BlockHeight: block}, expectedInferences) + require.NoError(err) + + topic, err := s.emissionsKeeper.GetTopic(s.ctx, topicId) + s.Require().NoError(err) + + newBlockheight := block + topic.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(newBlockheight) + + err = s.constructAndInsertReputerPayload(reputerAddr, reputerPrivateKey, reputerPublicKeyBytes, &reputerValueBundle, topicId, &reputerNonce) + require.NoError(err) +} diff --git a/x/emissions/keeper/msgserver/msg_server_stake.go b/x/emissions/keeper/msgserver/msg_server_stake.go index 5b287902c..56c642d1a 100644 --- a/x/emissions/keeper/msgserver/msg_server_stake.go +++ b/x/emissions/keeper/msgserver/msg_server_stake.go @@ -6,6 +6,7 @@ import ( "errors" errorsmod "cosmossdk.io/errors" + cosmosMath "cosmossdk.io/math" "github.com/allora-network/allora-chain/app/params" alloraMath "github.com/allora-network/allora-chain/math" "github.com/allora-network/allora-chain/x/emissions/types" @@ -51,7 +52,7 @@ func (ms msgServer) AddStake(ctx context.Context, msg *types.MsgAddStake) (*type return nil, err } - err = activateTopicIfWeightAtLeastGlobalMin(ctx, ms, msg.TopicId, msg.Amount) + err = activateTopicIfWeightAtLeastGlobalMin(ctx, ms, msg.TopicId) return &types.MsgAddStakeResponse{}, err } @@ -59,8 +60,8 @@ func (ms msgServer) AddStake(ctx context.Context, msg *types.MsgAddStake) (*type // once the withdrawal delay has passed then the ABCI endBlocker will automatically pay out the stake removal // if this function is called twice, it will overwrite the previous stake removal and the delay will reset. func (ms msgServer) RemoveStake(ctx context.Context, msg *types.MsgRemoveStake) (*types.MsgRemoveStakeResponse, error) { - if msg.Amount.IsZero() { - return nil, types.ErrReceivedZeroAmount + if msg.Amount.LTE(cosmosMath.ZeroInt()) { + return nil, types.ErrInvalidValue } // Check the sender has enough stake already placed on the topic to remove the stake @@ -165,15 +166,16 @@ func (ms msgServer) DelegateStake(ctx context.Context, msg *types.MsgDelegateSta return nil, err } - return &types.MsgDelegateStakeResponse{}, nil + err = activateTopicIfWeightAtLeastGlobalMin(ctx, ms, msg.TopicId) + return &types.MsgDelegateStakeResponse{}, err } // RemoveDelegateStake kicks off a stake removal process. Stake Removals are placed into a delayed queue. // once the withdrawal delay has passed then the ABCI endBlocker will automatically pay out the stake removal // if this function is called twice, it will overwrite the previous stake removal and the delay will reset. func (ms msgServer) RemoveDelegateStake(ctx context.Context, msg *types.MsgRemoveDelegateStake) (*types.MsgRemoveDelegateStakeResponse, error) { - if msg.Amount.IsZero() { - return nil, types.ErrReceivedZeroAmount + if msg.Amount.LTE(cosmosMath.ZeroInt()) { + return nil, types.ErrInvalidValue } // Check the delegator has enough stake already placed on the topic to remove the stake @@ -303,7 +305,10 @@ func (ms msgServer) RewardDelegateStake(ctx context.Context, msg *types.MsgRewar if err != nil { return nil, err } - ms.k.SetDelegateStakePlacement(ctx, msg.TopicId, msg.Sender, msg.Reputer, delegateInfo) + err = ms.k.SetDelegateStakePlacement(ctx, msg.TopicId, msg.Sender, msg.Reputer, delegateInfo) + if err != nil { + return nil, err + } } return &types.MsgRewardDelegateStakeResponse{}, nil } diff --git a/x/emissions/keeper/msgserver/msg_server_stake_test.go b/x/emissions/keeper/msgserver/msg_server_stake_test.go index 8168a9db7..fa4585e02 100644 --- a/x/emissions/keeper/msgserver/msg_server_stake_test.go +++ b/x/emissions/keeper/msgserver/msg_server_stake_test.go @@ -26,18 +26,15 @@ func (s *MsgServerTestSuite) commonStakingSetup( // Create Topic newTopicMsg := &types.MsgCreateNewTopic{ - Creator: reputerAddr.String(), - Metadata: "Some metadata for the new topic", - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputerAddr.String(), + Metadata: "Some metadata for the new topic", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } reputerInitialBalance := types.DefaultParams().CreateTopicFee.Add(cosmosMath.Int(reputerInitialBalanceUint)) @@ -53,12 +50,10 @@ func (s *MsgServerTestSuite) commonStakingSetup( // Register Reputer reputerRegMsg := &types.MsgRegister{ - Sender: reputerAddr.String(), - Owner: reputerAddr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, + Sender: reputerAddr.String(), + Owner: reputerAddr.String(), + TopicId: topicId, + IsReputer: true, } _, err = msgServer.Register(ctx, reputerRegMsg) require.NoError(err, "Registering reputer should not return an error") @@ -71,11 +66,9 @@ func (s *MsgServerTestSuite) commonStakingSetup( // Register Worker workerRegMsg := &types.MsgRegister{ - Sender: workerAddr.String(), - Owner: workerAddr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, + Sender: workerAddr.String(), + Owner: workerAddr.String(), + TopicId: topicId, } _, err = msgServer.Register(ctx, workerRegMsg) require.NoError(err, "Registering worker should not return an error") @@ -150,10 +143,11 @@ func (s *MsgServerTestSuite) TestStartRemoveStake() { require.NoError(err) expectedUnstake := ctx.BlockHeight() + moduleParams.RemoveStakeDelayWindow - retrievedInfo, err := keeper.GetStakeRemovalsForBlock(ctx, expectedUnstake) + retrievedInfo, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock(ctx, expectedUnstake, 100) require.NoError(err) require.NotNil(retrievedInfo) require.Len(retrievedInfo, 1) + require.False(limitHit) expected := types.StakeRemovalInfo{ TopicId: topicId, @@ -185,9 +179,10 @@ func (s *MsgServerTestSuite) TestStartRemoveStakeInsufficientStake() { moduleParams, err := s.emissionsKeeper.GetParams(ctx) require.NoError(err) expectedUnstake := ctx.BlockHeight() + moduleParams.RemoveStakeDelayWindow - retrievedInfo, err := s.emissionsKeeper.GetStakeRemovalsForBlock(ctx, expectedUnstake) + retrievedInfo, limitHit, err := s.emissionsKeeper.GetStakeRemovalsUpUntilBlock(ctx, expectedUnstake, 100) require.NoError(err) require.Len(retrievedInfo, 0) + require.False(limitHit) } func (s *MsgServerTestSuite) TestConfirmRemoveStake() { @@ -233,9 +228,10 @@ func (s *MsgServerTestSuite) TestConfirmRemoveStake() { require.True(finalStake.IsZero(), "Stake amount should be zero after removal is confirmed") // Check that the stake removal has been removed from the state - removals, err := keeper.GetStakeRemovalsForBlock(ctx, blockEnd) + removals, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock(ctx, blockEnd, 100) require.NoError(err) require.Len(removals, 0) + require.False(limitHit) } func (s *MsgServerTestSuite) TestStartRemoveStakeTwiceInSameBlock() { @@ -265,9 +261,10 @@ func (s *MsgServerTestSuite) TestStartRemoveStakeTwiceInSameBlock() { }) s.Require().NoError(err) - stakePlacements, err := keeper.GetStakeRemovalsForBlock(ctx, removeBlock) + stakePlacements, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock(ctx, removeBlock, 100) require.NoError(err) require.Len(stakePlacements, 1) + require.False(limitHit) expected := types.StakeRemovalInfo{ TopicId: topicId, @@ -286,9 +283,10 @@ func (s *MsgServerTestSuite) TestStartRemoveStakeTwiceInSameBlock() { }) s.Require().NoError(err) - stakePlacements2, err := keeper.GetStakeRemovalsForBlock(ctx, removeBlock) + stakePlacements2, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock(ctx, removeBlock, 100) require.NoError(err) require.Len(stakePlacements2, 1) + require.False(limitHit) expected2 := types.StakeRemovalInfo{ TopicId: expected.TopicId, Reputer: expected.Reputer, @@ -326,9 +324,10 @@ func (s *MsgServerTestSuite) TestRemoveStakeTwiceInDifferentBlocks() { }) s.Require().NoError(err) - stakePlacements, err := keeper.GetStakeRemovalsForBlock(ctx, removeBlock) + stakePlacements, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock(ctx, removeBlock, 100) require.NoError(err) require.Len(stakePlacements, 1) + require.False(limitHit) expected := types.StakeRemovalInfo{ TopicId: topicId, @@ -350,12 +349,14 @@ func (s *MsgServerTestSuite) TestRemoveStakeTwiceInDifferentBlocks() { }) s.Require().NoError(err) - stakePlacements, err = keeper.GetStakeRemovalsForBlock(ctx, removeBlock) + stakePlacements, limitHit, err = keeper.GetStakeRemovalsUpUntilBlock(ctx, removeBlock, 100) require.NoError(err) require.Len(stakePlacements, 0) - stakePlacements, err = keeper.GetStakeRemovalsForBlock(ctx, newRemoveBlock) + require.False(limitHit) + stakePlacements, limitHit, err = keeper.GetStakeRemovalsUpUntilBlock(ctx, newRemoveBlock, 100) require.NoError(err) require.Len(stakePlacements, 1) + require.False(limitHit) expected.BlockRemovalStarted = newStartBlock expected.BlockRemovalCompleted = newRemoveBlock expected.Amount = newStake @@ -386,9 +387,10 @@ func (s *MsgServerTestSuite) TestRemoveMultipleReputersSameBlock() { Amount: stakeAmount1, }) s.Require().NoError(err) - stakePlacements1, err := keeper.GetStakeRemovalsForBlock(ctx, removeBlock) + stakePlacements1, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock(ctx, removeBlock, 100) require.NoError(err) require.Len(stakePlacements1, 1) + require.False(limitHit) expected1 := types.StakeRemovalInfo{ TopicId: topicId, Reputer: senderAddr1.String(), @@ -405,9 +407,10 @@ func (s *MsgServerTestSuite) TestRemoveMultipleReputersSameBlock() { Amount: stakeAmount2, }) s.Require().NoError(err) - stakePlacements2, err := keeper.GetStakeRemovalsForBlock(ctx, removeBlock) + stakePlacements2, limitHit, err := keeper.GetStakeRemovalsUpUntilBlock(ctx, removeBlock, 100) require.NoError(err) require.Len(stakePlacements2, 2) + require.False(limitHit) expected2 := types.StakeRemovalInfo{ TopicId: topicId, Reputer: senderAddr2.String(), @@ -419,6 +422,21 @@ func (s *MsgServerTestSuite) TestRemoveMultipleReputersSameBlock() { require.Contains(stakePlacements2, expected2) } +func (s *MsgServerTestSuite) TestStartRemoveStakeNegative() { + ctx := s.ctx + require := s.Require() + senderAddr := sdk.AccAddress(PKS[0].Address()) + + msg := &types.MsgRemoveStake{ + Sender: senderAddr.String(), + TopicId: uint64(123), + Amount: cosmosMath.NewInt(-1), + } + + _, err := s.msgServer.RemoveStake(ctx, msg) + require.ErrorIs(err, types.ErrInvalidValue) +} + func (s *MsgServerTestSuite) TestDelegateStake() { ctx := s.ctx require := s.Require() @@ -426,16 +444,13 @@ func (s *MsgServerTestSuite) TestDelegateStake() { delegatorAddr := sdk.AccAddress(PKS[0].Address()) reputerAddr := sdk.AccAddress(PKS[1].Address()) - topicId := uint64(123) + topicId := s.CreateOneTopic() stakeAmount := cosmosMath.NewInt(50) s.MintTokensToAddress(delegatorAddr, cosmosMath.NewInt(1000)) reputerInfo := types.OffchainNode{ - LibP2PKey: "reputer-libp2p-key-sample", - MultiAddress: "reputer-multi-address-sample", - Owner: "reputer-owner-sample", - NodeAddress: "reputer-node-address-sample", - NodeId: "reputer-node-id-sample", + Owner: "reputer-owner-sample", + NodeAddress: "reputer-node-address-sample", } keeper.InsertReputer(ctx, topicId, reputerAddr.String(), reputerInfo) @@ -481,11 +496,8 @@ func (s *MsgServerTestSuite) TestReputerCantSelfDelegateStake() { s.MintTokensToAddress(delegatorAddr, cosmosMath.NewInt(1000)) reputerInfo := types.OffchainNode{ - LibP2PKey: "reputer-libp2p-key-sample", - MultiAddress: "reputer-multi-address-sample", - Owner: "reputer-owner-sample", - NodeAddress: "reputer-node-address-sample", - NodeId: "reputer-node-id-sample", + Owner: "reputer-owner-sample", + NodeAddress: "reputer-node-address-sample", } keeper.InsertReputer(ctx, topicId, reputerAddr.String(), reputerInfo) @@ -509,16 +521,13 @@ func (s *MsgServerTestSuite) TestDelegateeCantWithdrawDelegatedStake() { delegatorAddr := sdk.AccAddress(PKS[0].Address()) reputerAddr := sdk.AccAddress(PKS[1].Address()) - topicId := uint64(123) + topicId := s.CreateOneTopic() stakeAmount := cosmosMath.NewInt(50) s.MintTokensToAddress(delegatorAddr, cosmosMath.NewInt(1000)) reputerInfo := types.OffchainNode{ - LibP2PKey: "reputer-libp2p-key-sample", - MultiAddress: "reputer-multi-address-sample", - Owner: "reputer-owner-sample", - NodeAddress: "reputer-node-address-sample", - NodeId: "reputer-node-id-sample", + Owner: "reputer-owner-sample", + NodeAddress: "reputer-node-address-sample", } keeper.InsertReputer(ctx, topicId, reputerAddr.String(), reputerInfo) @@ -585,18 +594,15 @@ func (s *MsgServerTestSuite) TestStartRemoveDelegateStake() { delegatorAddr := sdk.AccAddress(PKS[0].Address()) reputerAddr := sdk.AccAddress(PKS[1].Address()) - topicId := uint64(123) + topicId := s.CreateOneTopic() stakeAmount := cosmosMath.NewInt(50) moduleParams, err := keeper.GetParams(ctx) require.NoError(err) removalDelay := moduleParams.RemoveStakeDelayWindow reputerInfo := types.OffchainNode{ - LibP2PKey: "reputer-libp2p-key-sample", - MultiAddress: "reputer-multi-address-sample", - Owner: "reputer-owner-sample", - NodeAddress: "reputer-node-address-sample", - NodeId: "reputer-node-id-sample", + Owner: "reputer-owner-sample", + NodeAddress: "reputer-node-address-sample", } keeper.InsertReputer(ctx, topicId, reputerAddr.String(), reputerInfo) @@ -628,8 +634,9 @@ func (s *MsgServerTestSuite) TestStartRemoveDelegateStake() { // Verification: Check if the removal has been queued removeBlock := ctx.BlockHeight() + removalDelay - removalInfo, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, removeBlock) + removalInfo, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, removeBlock, 100) require.NoError(err) + require.False(limitHit) require.Len(removalInfo, 1) require.NotNil(removalInfo[0]) } @@ -641,15 +648,12 @@ func (s *MsgServerTestSuite) TestStartRemoveDelegateStakeError() { delegatorAddr := sdk.AccAddress(PKS[0].Address()) reputerAddr := sdk.AccAddress(PKS[1].Address()) - topicId := uint64(123) + topicId := s.CreateOneTopic() stakeAmount := cosmosMath.NewInt(50) reputerInfo := types.OffchainNode{ - LibP2PKey: "reputer-libp2p-key-sample", - MultiAddress: "reputer-multi-address-sample", - Owner: "reputer-owner-sample", - NodeAddress: "reputer-node-address-sample", - NodeId: "reputer-node-id-sample", + Owner: "reputer-owner-sample", + NodeAddress: "reputer-node-address-sample", } keeper.InsertReputer(ctx, topicId, reputerAddr.String(), reputerInfo) @@ -687,7 +691,7 @@ func (s *MsgServerTestSuite) TestConfirmRemoveDelegateStake() { delegatorAddr := sdk.AccAddress(PKS[0].Address()) reputerAddr := sdk.AccAddress(PKS[1].Address()) - topicId := uint64(123) + topicId := s.CreateOneTopic() stakeAmount := cosmosMath.NewInt(50) sdkCtx := sdk.UnwrapSDKContext(ctx) @@ -732,8 +736,9 @@ func (s *MsgServerTestSuite) TestConfirmRemoveDelegateStake() { require.True(delegateStakePlaced.Amount.IsZero(), "Delegate stake should be zero after successful removal") // Check that the stake removal has been removed from the state - removals, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, endBlock) + removals, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, endBlock, 100) require.NoError(err) + require.False(limitHit) require.Len(removals, 0) } @@ -746,7 +751,7 @@ func (s *MsgServerTestSuite) TestStartRemoveDelegateStakeTwiceSameBlock() { delegatorAddr := sdk.AccAddress(PKS[0].Address()) reputerAddr := sdk.AccAddress(PKS[1].Address()) - topicId := uint64(123) + topicId := s.CreateOneTopic() stakeAmount := cosmosMath.NewInt(50) sdkCtx := sdk.UnwrapSDKContext(ctx) @@ -787,8 +792,9 @@ func (s *MsgServerTestSuite) TestStartRemoveDelegateStakeTwiceSameBlock() { BlockRemovalCompleted: endBlock, } - stakePlacements, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, endBlock) + stakePlacements, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, endBlock, 100) require.NoError(err) + require.False(limitHit) require.Len(stakePlacements, 1) require.Equal(expected, stakePlacements[0]) @@ -802,8 +808,9 @@ func (s *MsgServerTestSuite) TestStartRemoveDelegateStakeTwiceSameBlock() { }) require.NoError(err) - stakePlacements, err = keeper.GetDelegateStakeRemovalsForBlock(ctx, endBlock) + stakePlacements, limitHit, err = keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, endBlock, 100) require.NoError(err) + require.False(limitHit) require.Len(stakePlacements, 1) expected.Amount = newStakeAmount require.Equal(expected, stakePlacements[0]) @@ -816,7 +823,7 @@ func (s *MsgServerTestSuite) TestStartRemoveDelegateStakeTwice() { delegatorAddr := sdk.AccAddress(PKS[0].Address()) reputerAddr := sdk.AccAddress(PKS[1].Address()) - topicId := uint64(123) + topicId := s.CreateOneTopic() stakeAmount := cosmosMath.NewInt(50) sdkCtx := sdk.UnwrapSDKContext(ctx) @@ -857,8 +864,9 @@ func (s *MsgServerTestSuite) TestStartRemoveDelegateStakeTwice() { BlockRemovalCompleted: endBlock, } - stakePlacements, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, endBlock) + stakePlacements, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, endBlock, 100) require.NoError(err) + require.False(limitHit) require.Len(stakePlacements, 1) require.Equal(expected, stakePlacements[0]) @@ -876,12 +884,14 @@ func (s *MsgServerTestSuite) TestStartRemoveDelegateStakeTwice() { }) require.NoError(err) - stakePlacements, err = keeper.GetDelegateStakeRemovalsForBlock(ctx, endBlock) + stakePlacements, limitHit, err = keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, endBlock, 100) require.NoError(err) + require.False(limitHit) require.Len(stakePlacements, 0) - stakePlacements, err = keeper.GetDelegateStakeRemovalsForBlock(ctx, newEndBlock) + stakePlacements, limitHit, err = keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, newEndBlock, 100) require.NoError(err) + require.False(limitHit) require.Len(stakePlacements, 1) expected.Amount = newStakeAmount @@ -890,12 +900,55 @@ func (s *MsgServerTestSuite) TestStartRemoveDelegateStakeTwice() { require.Equal(expected, stakePlacements[0]) } +func (s *MsgServerTestSuite) TestStartRemoveDelegateStakeNegative() { + ctx := s.ctx + require := s.Require() + keeper := s.emissionsKeeper + + delegatorAddr := sdk.AccAddress(PKS[0].Address()) + reputerAddr := sdk.AccAddress(PKS[1].Address()) + topicId := s.CreateOneTopic() + stakeAmount := cosmosMath.NewInt(50) + + reputerInfo := types.OffchainNode{ + Owner: "reputer-owner-sample", + NodeAddress: "reputer-node-address-sample", + } + + keeper.InsertReputer(ctx, topicId, reputerAddr.String(), reputerInfo) + + s.MintTokensToAddress(delegatorAddr, cosmosMath.NewInt(1000)) + + msg := &types.MsgDelegateStake{ + Sender: delegatorAddr.String(), + Reputer: reputerAddr.String(), + TopicId: topicId, + Amount: stakeAmount, + } + + // Perform the stake delegation + response, err := s.msgServer.DelegateStake(ctx, msg) + require.NoError(err) + require.NotNil(response, "Response should not be nil after successful delegation") + + msg2 := &types.MsgRemoveDelegateStake{ + Sender: delegatorAddr.String(), + Reputer: reputerAddr.String(), + TopicId: topicId, + Amount: cosmosMath.NewInt(-1), + } + + // Perform the stake removal initiation + _, err = s.msgServer.RemoveDelegateStake(ctx, msg2) + require.Error(err, types.ErrInvalidValue) +} + func (s *MsgServerTestSuite) TestRemoveDelegateStakeMultipleReputersSameDelegator() { ctx := s.ctx require := s.Require() keeper := s.emissionsKeeper delegatorAddr := sdk.AccAddress(PKS[0].Address()) - topicId := uint64(123) + topicId := s.CreateOneTopic() stakeAmount := cosmosMath.NewInt(50) sdkCtx := sdk.UnwrapSDKContext(ctx) startBlock := sdkCtx.BlockHeight() @@ -942,8 +995,9 @@ func (s *MsgServerTestSuite) TestRemoveDelegateStakeMultipleReputersSameDelegato require.True(delegateStakePlaced.Amount.IsZero(), "Delegate stake should be zero after successful removal") } // Check that the stake removals have been removed from the state - removals, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, endBlock) + removals, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, endBlock, 100) require.NoError(err) + require.False(limitHit) require.Len(removals, 0) } @@ -952,7 +1006,7 @@ func (s *MsgServerTestSuite) TestRemoveOneDelegateMultipleTargetsDifferentBlocks require := s.Require() keeper := s.emissionsKeeper delegatorAddr := sdk.AccAddress(PKS[0].Address()) - topicId := uint64(123) + topicId := s.CreateOneTopic() stakeAmount := cosmosMath.NewInt(50) sdkCtx := sdk.UnwrapSDKContext(ctx) params, err := keeper.GetParams(ctx) @@ -990,11 +1044,10 @@ func (s *MsgServerTestSuite) TestRemoveOneDelegateMultipleTargetsDifferentBlocks } // verify the removals are put in correctly - for i := 0; i < len(reputers); i++ { - removals, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, endBlock+int64(i)) - require.NoError(err) - require.Len(removals, 1) - } + removals, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, endBlock+int64(len(reputers)), 100) + require.NoError(err) + require.False(limitHit) + require.Len(removals, len(reputers)) // Call ctx.WithBlockHeight to simulate passing time ctx = ctx.WithBlockHeight(endBlock) @@ -1004,8 +1057,9 @@ func (s *MsgServerTestSuite) TestRemoveOneDelegateMultipleTargetsDifferentBlocks require.NoError(err) // Check that the stake removals have been removed from the state - removals, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, endBlock) + removals, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, endBlock, 100) require.NoError(err) + require.False(limitHit) require.Len(removals, 0) ctx = ctx.WithBlockHeight(ctx.BlockHeight() + 1) } @@ -1036,7 +1090,7 @@ func (s *MsgServerTestSuite) TestRemoveMultipleDelegatesSameTargetSameBlock() { sdk.AccAddress(PKS[1].Address()), sdk.AccAddress(PKS[2].Address()), } - topicId := uint64(123) + topicId := s.CreateOneTopic() stakeAmount := cosmosMath.NewInt(50) sdkCtx := sdk.UnwrapSDKContext(ctx) params, err := keeper.GetParams(ctx) @@ -1071,8 +1125,9 @@ func (s *MsgServerTestSuite) TestRemoveMultipleDelegatesSameTargetSameBlock() { } // verify the removals are put in correctly - removals, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, endBlock) + removals, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, endBlock, 100) require.NoError(err) + require.False(limitHit) require.Len(removals, len(delegators)) // Call ctx.WithBlockHeight to simulate passing time @@ -1083,8 +1138,9 @@ func (s *MsgServerTestSuite) TestRemoveMultipleDelegatesSameTargetSameBlock() { require.NoError(err) // Check that the stake removals have been removed from the state - removals, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, endBlock) + removals, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, endBlock, 100) require.NoError(err) + require.False(limitHit) require.Len(removals, 0) } // Check that the stake was actually removed for each reputer @@ -1113,7 +1169,7 @@ func (s *MsgServerTestSuite) TestRemoveMultipleDelegatesDifferentTargetsSameBloc sdk.AccAddress(PKS[0].Address()), sdk.AccAddress(PKS[1].Address()), } - topicId := uint64(123) + topicId := s.CreateOneTopic() stakeAmount := cosmosMath.NewInt(50) sdkCtx := sdk.UnwrapSDKContext(ctx) params, err := keeper.GetParams(ctx) @@ -1150,8 +1206,9 @@ func (s *MsgServerTestSuite) TestRemoveMultipleDelegatesDifferentTargetsSameBloc } // verify the removals are put in correctly - removals, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, endBlock) + removals, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, endBlock, 100) require.NoError(err) + require.False(limitHit) require.Len(removals, len(delegators)) // Call ctx.WithBlockHeight to simulate passing time @@ -1162,8 +1219,9 @@ func (s *MsgServerTestSuite) TestRemoveMultipleDelegatesDifferentTargetsSameBloc require.NoError(err) // Check that the stake removals have been removed from the state - removals, err := keeper.GetDelegateStakeRemovalsForBlock(ctx, endBlock) + removals, limitHit, err := keeper.GetDelegateStakeRemovalsUpUntilBlock(ctx, endBlock, 100) require.NoError(err) + require.False(limitHit) require.Len(removals, 0) } // Check that the stake was actually removed for each reputer diff --git a/x/emissions/keeper/msgserver/msg_server_test.go b/x/emissions/keeper/msgserver/msg_server_test.go index 5c688d803..58e270576 100644 --- a/x/emissions/keeper/msgserver/msg_server_test.go +++ b/x/emissions/keeper/msgserver/msg_server_test.go @@ -187,18 +187,15 @@ func (s *MsgServerTestSuite) CreateOneTopic() uint64 { creator := sdk.AccAddress(PKS[0].Address()) newTopicMsg := &types.MsgCreateNewTopic{ - Creator: creator.String(), - Metadata: metadata, - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: creator.String(), + Metadata: metadata, + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } s.MintTokensToAddress(creator, types.DefaultParams().CreateTopicFee) @@ -219,18 +216,15 @@ func (s *MsgServerTestSuite) TestCreateSeveralTopics() { creator := sdk.AccAddress(PKS[0].Address()) newTopicMsg := &types.MsgCreateNewTopic{ - Creator: creator.String(), - Metadata: metadata, - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: creator.String(), + Metadata: metadata, + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } creatorInitialBalance := types.DefaultParams().CreateTopicFee.Mul(cosmosMath.NewInt(3)) diff --git a/x/emissions/keeper/msgserver/msg_server_topics.go b/x/emissions/keeper/msgserver/msg_server_topics.go index 13dcd5414..e1060f906 100644 --- a/x/emissions/keeper/msgserver/msg_server_topics.go +++ b/x/emissions/keeper/msgserver/msg_server_topics.go @@ -3,13 +3,9 @@ package msgserver import ( "context" - "cosmossdk.io/errors" - "github.com/allora-network/allora-chain/app/params" + errorsmod "cosmossdk.io/errors" alloraMath "github.com/allora-network/allora-chain/math" "github.com/allora-network/allora-chain/x/emissions/types" - mintTypes "github.com/allora-network/allora-chain/x/mint/types" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) func (ms msgServer) CreateNewTopic(ctx context.Context, msg *types.MsgCreateNewTopic) (*types.MsgCreateNewTopicResponse, error) { @@ -17,74 +13,53 @@ func (ms msgServer) CreateNewTopic(ctx context.Context, msg *types.MsgCreateNewT return nil, err } - hasEnoughBal, fee, err := checkAddressHasBalanceForTopicCreationFee(ctx, ms, msg.Creator) - if err != nil { - return nil, err - } - if !hasEnoughBal { - return nil, errors.Wrapf(sdkerrors.ErrInsufficientFunds, "sender has insufficient balance to cover topic creation fee") - } - - id, err := ms.k.GetNextTopicId(ctx) + topicId, err := ms.k.GetNextTopicId(ctx) if err != nil { return nil, err } params, err := ms.k.GetParams(ctx) if err != nil { - return nil, err + return nil, errorsmod.Wrapf(err, "Error getting params for sender: %v", &msg.Creator) } if msg.EpochLength < params.MinEpochLength { return nil, types.ErrTopicCadenceBelowMinimum } + if msg.GroundTruthLag > int64(params.MaxUnfulfilledReputerRequests)*msg.EpochLength { + return nil, types.ErrGroundTruthLagTooBig + } // Before creating topic, transfer fee amount from creator to ecosystem bucket - err = ms.k.SendCoinsFromAccountToModule(ctx, msg.Creator, mintTypes.EcosystemModuleName, sdk.NewCoins(fee)) + err = checkBalanceAndSendFee(ctx, ms, msg.Creator, params.CreateTopicFee) if err != nil { return nil, err } topic := types.Topic{ - Id: id, - Creator: msg.Creator, - Metadata: msg.Metadata, - LossLogic: msg.LossLogic, - LossMethod: msg.LossMethod, - InferenceLogic: msg.InferenceLogic, - InferenceMethod: msg.InferenceMethod, - EpochLastEnded: 0, - EpochLength: msg.EpochLength, - GroundTruthLag: msg.GroundTruthLag, - DefaultArg: msg.DefaultArg, - PNorm: msg.PNorm, - AlphaRegret: msg.AlphaRegret, - AllowNegative: msg.AllowNegative, - Epsilon: msg.Epsilon, - InitialRegret: alloraMath.ZeroDec(), + Id: topicId, + Creator: msg.Creator, + Metadata: msg.Metadata, + LossMethod: msg.LossMethod, + EpochLastEnded: 0, + EpochLength: msg.EpochLength, + GroundTruthLag: msg.GroundTruthLag, + WorkerSubmissionWindow: msg.WorkerSubmissionWindow, + PNorm: msg.PNorm, + AlphaRegret: msg.AlphaRegret, + AllowNegative: msg.AllowNegative, + Epsilon: msg.Epsilon, + InitialRegret: alloraMath.ZeroDec(), } _, err = ms.k.IncrementTopicId(ctx) if err != nil { return nil, err } - if err := ms.k.SetTopic(ctx, id, topic); err != nil { + if err := ms.k.SetTopic(ctx, topicId, topic); err != nil { return nil, err } // Rather than set latest weight-adjustment timestamp of a topic to 0 // we do nothing, since no value in the map means zero - return &types.MsgCreateNewTopicResponse{TopicId: id}, nil -} - -func checkAddressHasBalanceForTopicCreationFee(ctx context.Context, ms msgServer, address string) (bool, sdk.Coin, error) { - moduleParams, err := ms.k.GetParams(ctx) - if err != nil { - return false, sdk.Coin{}, err - } - fee := sdk.NewCoin(params.DefaultBondDenom, moduleParams.CreateTopicFee) - accAddress, err := sdk.AccAddressFromBech32(address) - if err != nil { - return false, sdk.Coin{}, err - } - balance := ms.k.GetBankBalance(ctx, accAddress, fee.Denom) - return balance.IsGTE(fee), fee, nil + err = ms.k.AddTopicFeeRevenue(ctx, topicId, params.CreateTopicFee) + return &types.MsgCreateNewTopicResponse{TopicId: topicId}, err } diff --git a/x/emissions/keeper/msgserver/msg_server_topics_test.go b/x/emissions/keeper/msgserver/msg_server_topics_test.go index 9fe27dd31..fe70e97ad 100644 --- a/x/emissions/keeper/msgserver/msg_server_topics_test.go +++ b/x/emissions/keeper/msgserver/msg_server_topics_test.go @@ -19,18 +19,15 @@ func (s *MsgServerTestSuite) TestMsgCreateNewTopic() { // Create a MsgCreateNewTopic message newTopicMsg := &types.MsgCreateNewTopic{ - Creator: sender, - Metadata: "Some metadata for the new topic", - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: sender, + Metadata: "Some metadata for the new topic", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } s.MintTokensToAddress(senderAddr, types.DefaultParams().CreateTopicFee) @@ -64,18 +61,15 @@ func (s *MsgServerTestSuite) TestMsgCreateNewTopicWithEpsilonZeroFails() { // Create a MsgCreateNewTopic message newTopicMsg := &types.MsgCreateNewTopic{ - Creator: sender, - Metadata: "Some metadata for the new topic", - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0"), + Creator: sender, + Metadata: "Some metadata for the new topic", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0"), } s.MintTokensToAddress(senderAddr, types.DefaultParams().CreateTopicFee) diff --git a/x/emissions/keeper/msgserver/msg_server_util_payment.go b/x/emissions/keeper/msgserver/msg_server_util_payment.go new file mode 100644 index 000000000..8f9d22a12 --- /dev/null +++ b/x/emissions/keeper/msgserver/msg_server_util_payment.go @@ -0,0 +1,111 @@ +package msgserver + +import ( + "context" + + "cosmossdk.io/errors" + cosmosMath "cosmossdk.io/math" + appParams "github.com/allora-network/allora-chain/app/params" + minttypes "github.com/allora-network/allora-chain/x/mint/types" + sdk "github.com/cosmos/cosmos-sdk/types" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" +) + +type TopicId = uint64 +type Allo = cosmosMath.Int + +func activateTopicIfWeightAtLeastGlobalMin( + ctx context.Context, + ms msgServer, + topicId TopicId, +) error { + isActivated, err := ms.k.IsTopicActive(ctx, topicId) + if err != nil { + return errors.Wrapf(err, "error getting topic activation status") + } + if !isActivated { + params, err := ms.k.GetParams(ctx) + if err != nil { + return errors.Wrapf(err, "error getting params") + } + topic, err := ms.k.GetTopic(ctx, topicId) + if err != nil { + return errors.Wrapf(err, "error getting topic") + } + + newTopicWeight, _, err := ms.k.GetCurrentTopicWeight( + ctx, + topicId, + topic.EpochLength, + params.TopicRewardAlpha, + params.TopicRewardStakeImportance, + params.TopicRewardFeeRevenueImportance, + ) + if err != nil { + return errors.Wrapf(err, "error getting current topic weight") + } + + if newTopicWeight.Gte(params.MinTopicWeight) { + err = ms.k.ActivateTopic(ctx, topicId) + if err != nil { + return err + } + } + } + + return nil +} + +// Check if user has enough balance to send the fee, then send the fee to EcoSystem bucket +func checkBalanceAndSendFee( + ctx context.Context, + ms msgServer, + sender string, + amount Allo, +) error { + accAddress, err := sdk.AccAddressFromBech32(sender) + if err != nil { + return err + } + balance := ms.k.GetBankBalance(ctx, accAddress, appParams.DefaultBondDenom) + fee := sdk.NewCoin(balance.Denom, amount) + + if balance.IsLT(fee) { + return errors.Wrapf(sdkerrors.ErrInsufficientFunds, "sender has insufficient balance to cover fees") + } + + err = ms.k.SendCoinsFromAccountToModule(ctx, sender, minttypes.EcosystemModuleName, sdk.NewCoins(fee)) + if err != nil { + return err + } + + return nil +} + +// Does 4 things: +// 1. Checks if sender has enough balance to send the fee +// 2. Sends coins from sender to mint module Ecosystem bucket +// 3. Adds the amount to the topic's effective revenue +// 4. Activates the topic if the weight is at least the global minimum for active topics +// insufficientBalanceErrorMsg is appended to error message if sender has insufficient balance +// Assumes the topic already exists +func sendEffectiveRevenueActivateTopicIfWeightSufficient( + ctx context.Context, + ms msgServer, + sender string, + topicId TopicId, + amount Allo, +) error { + err := checkBalanceAndSendFee(ctx, ms, sender, amount) + if err != nil { + return err + } + + err = ms.k.AddTopicFeeRevenue(ctx, topicId, amount) + if err != nil { + return err + } + + err = activateTopicIfWeightAtLeastGlobalMin(ctx, ms, topicId) + return err +} diff --git a/x/emissions/keeper/msgserver/msg_server_util_topic_activation.go b/x/emissions/keeper/msgserver/msg_server_util_topic_activation.go deleted file mode 100644 index e338495f8..000000000 --- a/x/emissions/keeper/msgserver/msg_server_util_topic_activation.go +++ /dev/null @@ -1,50 +0,0 @@ -package msgserver - -import ( - "context" - - "cosmossdk.io/errors" - cosmosMath "cosmossdk.io/math" -) - -type TopicId = uint64 -type Allo = cosmosMath.Int - -func activateTopicIfWeightAtLeastGlobalMin(ctx context.Context, ms msgServer, topicId TopicId, amount Allo) error { - isActivated, err := ms.k.IsTopicActive(ctx, topicId) - if err != nil { - return errors.Wrapf(err, "error getting topic activation status") - } - if !isActivated { - params, err := ms.k.GetParams(ctx) - if err != nil { - return errors.Wrapf(err, "error getting params") - } - topic, err := ms.k.GetTopic(ctx, topicId) - if err != nil { - return errors.Wrapf(err, "error getting topic") - } - - newTopicWeight, _, err := ms.k.GetCurrentTopicWeight( - ctx, - topicId, - topic.EpochLength, - params.TopicRewardAlpha, - params.TopicRewardStakeImportance, - params.TopicRewardFeeRevenueImportance, - amount, - ) - if err != nil { - return errors.Wrapf(err, "error getting current topic weight") - } - - if newTopicWeight.Gte(params.MinTopicWeight) { - err = ms.k.ActivateTopic(ctx, topicId) - if err != nil { - return err - } - } - } - - return nil -} diff --git a/x/emissions/keeper/msgserver/msg_server_worker_payload.go b/x/emissions/keeper/msgserver/msg_server_worker_payload.go index 1b9e8d620..088076d69 100644 --- a/x/emissions/keeper/msgserver/msg_server_worker_payload.go +++ b/x/emissions/keeper/msgserver/msg_server_worker_payload.go @@ -2,305 +2,126 @@ package msgserver import ( "context" - "sort" + errorsmod "cosmossdk.io/errors" "github.com/allora-network/allora-chain/x/emissions/types" sdk "github.com/cosmos/cosmos-sdk/types" ) -// Output a new set of inferences where only 1 inference per registerd inferer is kept, -// ignore the rest. In particular, take the first inference from each registered inferer -// and none from any unregistered inferer. -// Signatures, anti-synil procedures, and "skimming of only the top few workers by score -// descending" should be done here. -func verifyAndInsertInferencesFromTopInferers( - ctx context.Context, - ms msgServer, - topicId uint64, - nonce types.Nonce, - // inferences []*types.Inference, - workerDataBundles []*types.WorkerDataBundle, - maxTopWorkersToReward uint64, -) (map[string]bool, error) { - inferencesByInferer := make(map[string]*types.Inference) - latestInfererScores := make(map[string]types.Score) - errors := make(map[string]string) - if len(workerDataBundles) == 0 { - return nil, types.ErrNoValidBundles - } - for _, workerDataBundle := range workerDataBundles { - /// Do filters first, then consider the inferenes for inclusion - /// Do filters on the per payload first, then on each inferer - /// All filters should be done in order of increasing computational complexity - - if err := workerDataBundle.Validate(); err != nil { - errors[workerDataBundle.Worker] = "Validate: Invalid worker data bundle" - continue // Ignore only invalid worker data bundles - } - /// If we do PoX-like anti-sybil procedure, would go here - - inference := workerDataBundle.InferenceForecastsBundle.Inference - - // Check if the topic and nonce are correct - if inference.TopicId != topicId || - inference.BlockHeight != nonce.BlockHeight { - errors[workerDataBundle.Worker] = "Worker data bundle does not match topic or nonce" - continue - } - - /// Now do filters on each inferer - // Ensure that we only have one inference per inferer. If not, we just take the first one - if _, ok := inferencesByInferer[inference.Inferer]; !ok { - // Check if the inferer is registered - isInfererRegistered, err := ms.k.IsWorkerRegisteredInTopic(ctx, topicId, inference.Inferer) - if err != nil { - errors[workerDataBundle.Worker] = "Err to check if worker is registered in topic" - continue - } - if !isInfererRegistered { - errors[workerDataBundle.Worker] = "Inferer is not registered" - continue - } - - // Get the latest score for each inferer => only take top few by score descending - latestScore, err := ms.k.GetLatestInfererScore(ctx, topicId, inference.Inferer) - if err != nil { - errors[workerDataBundle.Worker] = "Latest score not found" - continue - } - /// Filtering done now, now write what we must for inclusion - latestInfererScores[inference.Inferer] = latestScore - inferencesByInferer[inference.Inferer] = inference - } - } - - /// If we pseudo-random sample from the non-sybil set of reputers, we would do it here - topInferers := FindTopNByScoreDesc(maxTopWorkersToReward, latestInfererScores, nonce.BlockHeight) - - // Build list of inferences that pass all filters - // AND are from top performing inferers among those who have submitted inferences in this batch - inferencesFromTopInferers := make([]*types.Inference, 0) - acceptedInferers := make(map[string]bool, 0) - for _, worker := range topInferers { - acceptedInferers[worker] = true - inferencesFromTopInferers = append(inferencesFromTopInferers, inferencesByInferer[worker]) - } - - if len(inferencesFromTopInferers) == 0 { - return nil, types.ErrNoValidBundles - } - - // Ensure deterministic ordering of inferences - sort.Slice(inferencesFromTopInferers, func(i, j int) bool { - return inferencesFromTopInferers[i].Inferer < inferencesFromTopInferers[j].Inferer - }) - - // Store the final list of inferences - inferencesToInsert := types.Inferences{ - Inferences: inferencesFromTopInferers, - } - err := ms.k.InsertInferences(ctx, topicId, nonce, inferencesToInsert) - if err != nil { - return nil, err - } - - return acceptedInferers, nil -} - -// Output a new set of forecasts where only 1 forecast per registerd forecaster is kept, -// ignore the rest. In particular, take the first forecast from each registered forecaster -// and none from any unregistered forecaster. -// Signatures, anti-synil procedures, and "skimming of only the top few workers by score -// descending" should be done here. -func verifyAndInsertForecastsFromTopForecasters( - ctx context.Context, - ms msgServer, - topicId uint64, - nonce types.Nonce, - workerDataBundle []*types.WorkerDataBundle, - // Inferers in the current batch, assumed to have passed VerifyAndInsertInferencesFromTopInferers() filters - acceptedInferersOfBatch map[string]bool, - maxTopWorkersToReward uint64, -) error { - forecastsByForecaster := make(map[string]*types.Forecast) - latestForecasterScores := make(map[string]types.Score) - for _, workerDataBundle := range workerDataBundle { - /// Do filters first, then consider the inferenes for inclusion - /// Do filters on the per payload first, then on each forecaster - /// All filters should be done in order of increasing computational complexity - - if err := workerDataBundle.Validate(); err != nil { - continue // Ignore only invalid worker data bundles - } - - /// If we do PoX-like anti-sybil procedure, would go here - - forecast := workerDataBundle.InferenceForecastsBundle.Forecast - // Check that the forecast exist, is for the correct topic, and is for the correct nonce - if forecast == nil || - forecast.TopicId != topicId || - forecast.BlockHeight != nonce.BlockHeight { - continue - } - - /// Now do filters on each forecaster - // Ensure that we only have one forecast per forecaster. If not, we just take the first one - if _, ok := forecastsByForecaster[forecast.Forecaster]; !ok { - // Check if the forecaster is registered - isForecasterRegistered, err := ms.k.IsWorkerRegisteredInTopic(ctx, topicId, forecast.Forecaster) - if err != nil { - continue - } - if !isForecasterRegistered { - continue - } - - // Examine forecast elements to verify that they're for inferers in the current set. - // We assume that set of inferers has been verified above. - // We keep what we can, ignoring the forecaster and their contribution (forecast) entirely - // if they're left with no valid forecast elements. - acceptedForecastElements := make([]*types.ForecastElement, 0) - for _, el := range forecast.ForecastElements { - if _, ok := acceptedInferersOfBatch[el.Inferer]; ok { - acceptedForecastElements = append(acceptedForecastElements, el) - } - } - - // Discard if empty - if len(acceptedForecastElements) == 0 { - continue - } - - /// Filtering done now, now write what we must for inclusion - - // Get the latest score for each forecaster => only take top few by score descending - latestScore, err := ms.k.GetLatestForecasterScore(ctx, topicId, forecast.Forecaster) - if err != nil { - continue - } - latestForecasterScores[forecast.Forecaster] = latestScore - forecastsByForecaster[forecast.Forecaster] = forecast - } - } - - /// If we pseudo-random sample from the non-sybil set of reputers, we would do it here - topForecasters := FindTopNByScoreDesc(maxTopWorkersToReward, latestForecasterScores, nonce.BlockHeight) - - // Build list of forecasts that pass all filters - // AND are from top performing forecasters among those who have submitted forecasts in this batch - forecastsFromTopForecasters := make([]*types.Forecast, 0) - for _, worker := range topForecasters { - forecastsFromTopForecasters = append(forecastsFromTopForecasters, forecastsByForecaster[worker]) - } - - // Though less than ideal because it produces less-acurate network inferences, - // it is fine if no forecasts are accepted - // => no need to check len(forecastsFromTopForecasters) == 0 - - // Ensure deterministic ordering - sort.Slice(forecastsFromTopForecasters, func(i, j int) bool { - return forecastsFromTopForecasters[i].Forecaster < forecastsFromTopForecasters[j].Forecaster - }) - // Store the final list of forecasts - forecastsToInsert := types.Forecasts{ - Forecasts: forecastsFromTopForecasters, - } - err := ms.k.InsertForecasts(ctx, topicId, nonce, forecastsToInsert) - if err != nil { - return err - } - - return nil -} - -// A tx function that accepts a list of forecasts and possibly returns an error +// A tx function that accepts a individual inference and forecast and possibly returns an error // Need to call this once per forecaster per topic inference solicitation round because protobuf does not nested repeated fields -func (ms msgServer) InsertBulkWorkerPayload(ctx context.Context, msg *types.MsgInsertBulkWorkerPayload) (*types.MsgInsertBulkWorkerPayloadResponse, error) { +func (ms msgServer) InsertWorkerPayload(ctx context.Context, msg *types.MsgInsertWorkerPayload) (*types.MsgInsertWorkerPayloadResponse, error) { err := checkInputLength(ctx, ms, msg) if err != nil { return nil, err } - if err := msg.ValidateTopLevel(); err != nil { - return nil, err + blockHeight := sdk.UnwrapSDKContext(ctx).BlockHeight() + + if err := msg.WorkerDataBundle.Validate(); err != nil { + return nil, errorsmod.Wrapf(types.ErrInvalidWorkerData, + "Worker invalid data for block: %d", blockHeight) } + nonce := msg.WorkerDataBundle.Nonce + topicId := msg.WorkerDataBundle.TopicId + // Check if the topic exists - topicExists, err := ms.k.TopicExists(ctx, msg.TopicId) - if err != nil { - return nil, err - } - if !topicExists { + topicExists, err := ms.k.TopicExists(ctx, topicId) + if err != nil || !topicExists { return nil, types.ErrInvalidTopicId } - // Check if the nonce is unfulfilled - nonceUnfulfilled, err := ms.k.IsWorkerNonceUnfulfilled(ctx, msg.TopicId, msg.Nonce) + nonceUnfulfilled, err := ms.k.IsWorkerNonceUnfulfilled(ctx, topicId, nonce) if err != nil { return nil, err } // If the nonce is already fulfilled, return an error if !nonceUnfulfilled { - return nil, types.ErrNonceAlreadyFulfilled + return nil, types.ErrUnfulfilledNonceNotFound } - moduleParams, err := ms.k.GetParams(ctx) + topic, err := ms.k.GetTopic(ctx, topicId) if err != nil { - return nil, err + return nil, types.ErrInvalidTopicId } - acceptedInferers, err := verifyAndInsertInferencesFromTopInferers( - ctx, - ms, - msg.TopicId, - *msg.Nonce, - msg.WorkerDataBundles, - moduleParams.MaxTopInferersToReward, - ) - if err != nil { - return nil, err + // Check if the window time is open + if blockHeight < nonce.BlockHeight || + blockHeight > nonce.BlockHeight+topic.WorkerSubmissionWindow { + return nil, errorsmod.Wrapf( + types.ErrWorkerNonceWindowNotAvailable, + "Worker window not open for topic: %d, current block %d , nonce block height: %d , start window: %d, end window: %d", + topicId, blockHeight, nonce.BlockHeight, nonce.BlockHeight+topic.WorkerSubmissionWindow, nonce.BlockHeight+topic.GroundTruthLag, + ) } - err = verifyAndInsertForecastsFromTopForecasters( - ctx, - ms, - msg.TopicId, - *msg.Nonce, - msg.WorkerDataBundles, - acceptedInferers, - moduleParams.MaxTopForecastersToReward, - ) + // Before creating topic, transfer fee amount from creator to ecosystem bucket + params, err := ms.k.GetParams(ctx) if err != nil { - return nil, err + return nil, errorsmod.Wrapf(err, "Error getting params for sender: %v", &msg.Sender) } - // Update the unfulfilled worker nonce - _, err = ms.k.FulfillWorkerNonce(ctx, msg.TopicId, msg.Nonce) + err = sendEffectiveRevenueActivateTopicIfWeightSufficient(ctx, ms, msg.Sender, topicId, params.DataSendingFee) if err != nil { return nil, err } - topic, err := ms.k.GetTopic(ctx, msg.TopicId) - if err != nil { - return nil, types.ErrInvalidTopicId - } - - sdkCtx := sdk.UnwrapSDKContext(ctx) - err = ms.k.AddReputerNonce(ctx, topic.Id, msg.Nonce) - if err != nil { - return nil, err + if msg.WorkerDataBundle.InferenceForecastsBundle.Inference != nil { + inference := msg.WorkerDataBundle.InferenceForecastsBundle.Inference + if inference == nil { + return nil, errorsmod.Wrapf(err, "Inference not found") + } + if inference.TopicId != msg.WorkerDataBundle.TopicId { + return nil, errorsmod.Wrapf(err, + "Error inferer not use same topic") + } + isInfererRegistered, err := ms.k.IsWorkerRegisteredInTopic(ctx, topicId, inference.Inferer) + if err != nil { + return nil, errorsmod.Wrapf(err, + "Error inferer address is not registered in this topic") + } + if !isInfererRegistered { + return nil, errorsmod.Wrapf(err, + "Error inferer address is not registered in this topic") + } + err = ms.k.AppendInference(ctx, topicId, *nonce, inference) + if err != nil { + return nil, errorsmod.Wrapf(err, "Error appending inference") + } } - blockHeight := sdkCtx.BlockHeight() - err = ms.k.SetTopicLastCommit(ctx, topic.Id, blockHeight, msg.Nonce, msg.Sender, types.ActorType_INFERER) - if err != nil { - return nil, err - } + // Append this individual inference to all inferences + if msg.WorkerDataBundle.InferenceForecastsBundle.Forecast != nil { + forecast := msg.WorkerDataBundle.InferenceForecastsBundle.Forecast + if forecast.TopicId != msg.WorkerDataBundle.TopicId { + return nil, errorsmod.Wrapf(err, + "Error forecaster not use same topic") + } + isForecasterRegistered, err := ms.k.IsWorkerRegisteredInTopic(ctx, topicId, forecast.Forecaster) + if err != nil { + return nil, errorsmod.Wrapf(err, + "Error forecaster address is not registered in this topic") + } + if !isForecasterRegistered { + return nil, errorsmod.Wrapf(err, + "Error forecaster address is not registered in this topic") + } - err = ms.k.SetTopicLastWorkerPayload(ctx, topic.Id, blockHeight, msg.Nonce, msg.Sender) - if err != nil { - return nil, err + // Remove duplicate forecast element + acceptedForecastElements := make([]*types.ForecastElement, 0) + seenInferers := make(map[string]bool) + for _, el := range forecast.ForecastElements { + if !seenInferers[el.Inferer] { + acceptedForecastElements = append(acceptedForecastElements, el) + seenInferers[el.Inferer] = true + } + } + forecast.ForecastElements = acceptedForecastElements + err = ms.k.AppendForecast(ctx, topicId, *nonce, forecast) + if err != nil { + return nil, errorsmod.Wrapf(err, + "Error appending forecast") + } } - - // Return an empty response as the operation was successful - return &types.MsgInsertBulkWorkerPayloadResponse{}, nil + return &types.MsgInsertWorkerPayloadResponse{}, nil } diff --git a/x/emissions/keeper/msgserver/msg_server_worker_payload_test.go b/x/emissions/keeper/msgserver/msg_server_worker_payload_test.go index 168329c29..9bc4b1e53 100644 --- a/x/emissions/keeper/msgserver/msg_server_worker_payload_test.go +++ b/x/emissions/keeper/msgserver/msg_server_worker_payload_test.go @@ -14,22 +14,19 @@ func getNewAddress() string { return sdk.AccAddress(secp256k1.GenPrivKey().PubKey().Address()).String() } -func (s *MsgServerTestSuite) setUpMsgInsertBulkWorkerPayload( +func (s *MsgServerTestSuite) setUpMsgInsertWorkerPayload( workerPrivateKey secp256k1.PrivKey, -) (types.MsgInsertBulkWorkerPayload, uint64) { +) (types.MsgInsertWorkerPayload, uint64) { ctx := s.ctx keeper := s.emissionsKeeper nonce := types.Nonce{BlockHeight: 1} - topicId := uint64(0) + topicId := s.CreateOneTopic() // Define sample OffchainNode information for a worker workerInfo := types.OffchainNode{ - LibP2PKey: "worker-libp2p-key-sample", - MultiAddress: "worker-multi-address-sample", - Owner: "worker-owner-sample", - NodeAddress: "worker-node-address-sample", - NodeId: "worker-node-id-sample", + Owner: "worker-owner-sample", + NodeAddress: "worker-node-address-sample", } // Mock setup for addresses @@ -44,39 +41,40 @@ func (s *MsgServerTestSuite) setUpMsgInsertBulkWorkerPayload( // Create topic 0 and register reputer in it s.commonStakingSetup(ctx, reputerAddr, workerAddr, registrationInitialStake) - keeper.AddWorkerNonce(ctx, 0, &nonce) + keeper.AddWorkerNonce(ctx, topicId, &nonce) keeper.InsertWorker(ctx, topicId, InfererAddr, workerInfo) + keeper.InsertWorker(ctx, topicId, Inferer2Addr, workerInfo) keeper.InsertWorker(ctx, topicId, ForecasterAddr, workerInfo) - s.emissionsKeeper.SetTopic(ctx, topicId, types.Topic{Id: topicId}) - // Create a MsgInsertBulkWorkerPayload message - workerMsg := types.MsgInsertBulkWorkerPayload{ - Sender: workerAddr, - Nonce: &nonce, - TopicId: topicId, - WorkerDataBundles: []*types.WorkerDataBundle{ - { - Worker: InfererAddr, - InferenceForecastsBundle: &types.InferenceForecastBundle{ - Inference: &types.Inference{ - TopicId: topicId, - BlockHeight: nonce.BlockHeight, - Inferer: InfererAddr, - Value: alloraMath.NewDecFromInt64(100), - }, - Forecast: &types.Forecast{ - TopicId: 0, - BlockHeight: nonce.BlockHeight, - Forecaster: ForecasterAddr, - ForecastElements: []*types.ForecastElement{ - { - Inferer: InfererAddr, - Value: alloraMath.NewDecFromInt64(100), - }, - { - Inferer: Inferer2Addr, - Value: alloraMath.NewDecFromInt64(100), - }, + topic, _ := s.emissionsKeeper.GetTopic(ctx, topicId) + s.emissionsKeeper.SetTopic(ctx, topicId, topic) + + // Create a MsgInsertWorkerPayload message + workerMsg := types.MsgInsertWorkerPayload{ + Sender: workerAddr, + WorkerDataBundle: &types.WorkerDataBundle{ + Worker: InfererAddr, + Nonce: &nonce, + TopicId: topicId, + InferenceForecastsBundle: &types.InferenceForecastBundle{ + Inference: &types.Inference{ + TopicId: topicId, + BlockHeight: nonce.BlockHeight, + Inferer: Inferer2Addr, + Value: alloraMath.NewDecFromInt64(100), + }, + Forecast: &types.Forecast{ + TopicId: topicId, + BlockHeight: nonce.BlockHeight, + Forecaster: ForecasterAddr, + ForecastElements: []*types.ForecastElement{ + { + Inferer: InfererAddr, + Value: alloraMath.NewDecFromInt64(100), + }, + { + Inferer: Inferer2Addr, + Value: alloraMath.NewDecFromInt64(101), }, }, }, @@ -87,39 +85,40 @@ func (s *MsgServerTestSuite) setUpMsgInsertBulkWorkerPayload( return workerMsg, topicId } -func (s *MsgServerTestSuite) signMsgInsertBulkWorkerPayload(workerMsg types.MsgInsertBulkWorkerPayload, workerPrivateKey secp256k1.PrivKey) types.MsgInsertBulkWorkerPayload { +func (s *MsgServerTestSuite) signMsgInsertWorkerPayload(workerMsg types.MsgInsertWorkerPayload, workerPrivateKey secp256k1.PrivKey) types.MsgInsertWorkerPayload { require := s.Require() workerPublicKeyBytes := workerPrivateKey.PubKey().Bytes() src := make([]byte, 0) - src, err := workerMsg.WorkerDataBundles[0].InferenceForecastsBundle.XXX_Marshal(src, true) + src, err := workerMsg.WorkerDataBundle.InferenceForecastsBundle.XXX_Marshal(src, true) require.NoError(err, "Marshall reputer value bundle should not return an error") sig, err := workerPrivateKey.Sign(src) require.NoError(err, "Sign should not return an error") - workerMsg.WorkerDataBundles[0].InferencesForecastsBundleSignature = sig - workerMsg.WorkerDataBundles[0].Pubkey = hex.EncodeToString(workerPublicKeyBytes) + workerMsg.WorkerDataBundle.InferencesForecastsBundleSignature = sig + workerMsg.WorkerDataBundle.Pubkey = hex.EncodeToString(workerPublicKeyBytes) return workerMsg } -func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayload() { +func (s *MsgServerTestSuite) TestMsgInsertWorkerPayload() { ctx, msgServer := s.ctx, s.msgServer require := s.Require() workerPrivateKey := secp256k1.GenPrivKey() - workerMsg, topicId := s.setUpMsgInsertBulkWorkerPayload(workerPrivateKey) + workerMsg, topicId := s.setUpMsgInsertWorkerPayload(workerPrivateKey) - workerMsg = s.signMsgInsertBulkWorkerPayload(workerMsg, workerPrivateKey) + workerMsg = s.signMsgInsertWorkerPayload(workerMsg, workerPrivateKey) - blockHeight := workerMsg.WorkerDataBundles[0].InferenceForecastsBundle.Forecast.BlockHeight + blockHeight := workerMsg.WorkerDataBundle.InferenceForecastsBundle.Forecast.BlockHeight forecastsCount0 := s.getCountForecastsAtBlock(topicId, blockHeight) - _, err := msgServer.InsertBulkWorkerPayload(ctx, &workerMsg) - require.NoError(err, "InsertBulkWorkerPayload should not return an error") + ctx = ctx.WithBlockHeight(blockHeight) + _, err := msgServer.InsertWorkerPayload(ctx, &workerMsg) + require.NoError(err, "InsertWorkerPayload should not return an error") forecastsCount1 := s.getCountForecastsAtBlock(topicId, blockHeight) @@ -127,51 +126,66 @@ func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayload() { require.Equal(forecastsCount1, 1) } -func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayloadFailsWithoutWorkerDataBundle() { +func (s *MsgServerTestSuite) TestMsgInsertWorkerPayloadFailsWithNilInference() { + ctx, msgServer := s.ctx, s.msgServer + require := s.Require() + + workerPrivateKey := secp256k1.GenPrivKey() + + workerMsg, _ := s.setUpMsgInsertWorkerPayload(workerPrivateKey) + + workerMsg = s.signMsgInsertWorkerPayload(workerMsg, workerPrivateKey) + + workerMsg.WorkerDataBundle.InferenceForecastsBundle.Inference = nil + + _, err := msgServer.InsertWorkerPayload(ctx, &workerMsg) + require.Error(err) +} + +func (s *MsgServerTestSuite) TestMsgInsertWorkerPayloadFailsWithoutWorkerDataBundle() { ctx, msgServer := s.ctx, s.msgServer require := s.Require() workerPrivateKey := secp256k1.GenPrivKey() - workerMsg, _ := s.setUpMsgInsertBulkWorkerPayload(workerPrivateKey) + workerMsg, _ := s.setUpMsgInsertWorkerPayload(workerPrivateKey) // BEGIN MODIFICATION - workerMsg.WorkerDataBundles = make([]*types.WorkerDataBundle, 0) - // workerMsg = s.signMsgInsertBulkWorkerPayload(workerMsg, workerPrivateKey) + // workerMsg = s.signMsgInsertWorkerPayload(workerMsg, workerPrivateKey) // END MODIFICATION - _, err := msgServer.InsertBulkWorkerPayload(ctx, &workerMsg) + _, err := msgServer.InsertWorkerPayload(ctx, &workerMsg) require.Error(err) } -func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayloadFailsWithMismatchedTopicId() { +func (s *MsgServerTestSuite) TestMsgInsertWorkerPayloadFailsWithMismatchedTopicId() { ctx, msgServer := s.ctx, s.msgServer require := s.Require() workerPrivateKey := secp256k1.GenPrivKey() - workerMsg, _ := s.setUpMsgInsertBulkWorkerPayload(workerPrivateKey) + workerMsg, _ := s.setUpMsgInsertWorkerPayload(workerPrivateKey) // BEGIN MODIFICATION - workerMsg.WorkerDataBundles[0].InferenceForecastsBundle.Inference.TopicId = 1 + workerMsg.WorkerDataBundle.InferenceForecastsBundle.Inference.TopicId = 1 // END MODIFICATION - workerMsg = s.signMsgInsertBulkWorkerPayload(workerMsg, workerPrivateKey) + workerMsg = s.signMsgInsertWorkerPayload(workerMsg, workerPrivateKey) - _, err := msgServer.InsertBulkWorkerPayload(ctx, &workerMsg) + _, err := msgServer.InsertWorkerPayload(ctx, &workerMsg) require.Error(err, types.ErrNoValidBundles) } -func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayloadFailsWithUnregisteredInferer() { +func (s *MsgServerTestSuite) TestMsgInsertWorkerPayloadFailsWithUnregisteredInferer() { ctx, msgServer := s.ctx, s.msgServer require := s.Require() workerPrivateKey := secp256k1.GenPrivKey() - workerMsg, topicId := s.setUpMsgInsertBulkWorkerPayload(workerPrivateKey) + workerMsg, topicId := s.setUpMsgInsertWorkerPayload(workerPrivateKey) // BEGIN MODIFICATION - inferer := workerMsg.WorkerDataBundles[0].InferenceForecastsBundle.Inference.Inferer + inferer := workerMsg.WorkerDataBundle.InferenceForecastsBundle.Inference.Inferer unregisterMsg := &types.MsgRemoveRegistration{ Sender: inferer, @@ -184,9 +198,9 @@ func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayloadFailsWithUnregistered // END MODIFICATION - workerMsg = s.signMsgInsertBulkWorkerPayload(workerMsg, workerPrivateKey) + workerMsg = s.signMsgInsertWorkerPayload(workerMsg, workerPrivateKey) - _, err = msgServer.InsertBulkWorkerPayload(ctx, &workerMsg) + _, err = msgServer.InsertWorkerPayload(ctx, &workerMsg) require.Error(err, types.ErrNoValidBundles) } @@ -201,26 +215,27 @@ func (s *MsgServerTestSuite) getCountForecastsAtBlock(topicId uint64, blockHeigh } -func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayloadFailsWithMismatchedForecastTopicId() { +func (s *MsgServerTestSuite) TestMsgInsertWorkerPayloadFailsWithMismatchedForecastTopicId() { ctx, msgServer := s.ctx, s.msgServer require := s.Require() workerPrivateKey := secp256k1.GenPrivKey() - workerMsg, _ := s.setUpMsgInsertBulkWorkerPayload(workerPrivateKey) + workerMsg, _ := s.setUpMsgInsertWorkerPayload(workerPrivateKey) // BEGIN MODIFICATION - originalTopicId := workerMsg.WorkerDataBundles[0].InferenceForecastsBundle.Forecast.TopicId - workerMsg.WorkerDataBundles[0].InferenceForecastsBundle.Forecast.TopicId = 123 + originalTopicId := workerMsg.WorkerDataBundle.InferenceForecastsBundle.Forecast.TopicId + workerMsg.WorkerDataBundle.InferenceForecastsBundle.Forecast.TopicId = 123 // END MODIFICATION - workerMsg = s.signMsgInsertBulkWorkerPayload(workerMsg, workerPrivateKey) + workerMsg = s.signMsgInsertWorkerPayload(workerMsg, workerPrivateKey) - blockHeight := workerMsg.WorkerDataBundles[0].InferenceForecastsBundle.Forecast.BlockHeight + blockHeight := workerMsg.WorkerDataBundle.InferenceForecastsBundle.Forecast.BlockHeight forecastsCount0 := s.getCountForecastsAtBlock(originalTopicId, blockHeight) - _, err := msgServer.InsertBulkWorkerPayload(ctx, &workerMsg) + ctx = ctx.WithBlockHeight(blockHeight) + _, err := msgServer.InsertWorkerPayload(ctx, &workerMsg) require.NoError(err) forecastsCount1 := s.getCountForecastsAtBlock(originalTopicId, blockHeight) @@ -229,16 +244,16 @@ func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayloadFailsWithMismatchedFo require.Equal(forecastsCount1, 0) } -func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayloadFailsWithUnregisteredForecaster() { +func (s *MsgServerTestSuite) TestMsgInsertWorkerPayloadFailsWithUnregisteredForecaster() { ctx, msgServer := s.ctx, s.msgServer require := s.Require() workerPrivateKey := secp256k1.GenPrivKey() - workerMsg, topicId := s.setUpMsgInsertBulkWorkerPayload(workerPrivateKey) + workerMsg, topicId := s.setUpMsgInsertWorkerPayload(workerPrivateKey) // BEGIN MODIFICATION - forecaster := workerMsg.WorkerDataBundles[0].InferenceForecastsBundle.Forecast.Forecaster + forecaster := workerMsg.WorkerDataBundle.InferenceForecastsBundle.Forecast.Forecaster unregisterMsg := &types.MsgRemoveRegistration{ Sender: forecaster, @@ -251,11 +266,11 @@ func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayloadFailsWithUnregistered // END MODIFICATION - blockHeight := workerMsg.WorkerDataBundles[0].InferenceForecastsBundle.Forecast.BlockHeight + blockHeight := workerMsg.WorkerDataBundle.InferenceForecastsBundle.Forecast.BlockHeight forecastsCount0 := s.getCountForecastsAtBlock(topicId, blockHeight) - workerMsg = s.signMsgInsertBulkWorkerPayload(workerMsg, workerPrivateKey) + workerMsg = s.signMsgInsertWorkerPayload(workerMsg, workerPrivateKey) forecastsCount1 := s.getCountForecastsAtBlock(topicId, blockHeight) @@ -263,6 +278,49 @@ func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayloadFailsWithUnregistered require.Equal(forecastsCount1, 0) } +func (s *MsgServerTestSuite) TestMsgInsertWorkerPayloadFiltersDuplicateForecastElements() { + ctx, msgServer := s.ctx, s.msgServer + require := s.Require() + + workerPrivateKey := secp256k1.GenPrivKey() + workerMsg, topicId := s.setUpMsgInsertWorkerPayload(workerPrivateKey) + + // BEGIN MODIFICATION + forecast := workerMsg.WorkerDataBundle.InferenceForecastsBundle.Forecast + originalElement := forecast.ForecastElements[0] + duplicateElement := &types.ForecastElement{ + Inferer: originalElement.Inferer, + Value: originalElement.Value, + } + forecast.ForecastElements = append(forecast.ForecastElements, duplicateElement) + // END MODIFICATION + + workerMsg = s.signMsgInsertWorkerPayload(workerMsg, workerPrivateKey) + + blockHeight := forecast.BlockHeight + forecastsCount0 := s.getCountForecastsAtBlock(topicId, blockHeight) + + ctx = ctx.WithBlockHeight(blockHeight) + _, err := msgServer.InsertWorkerPayload(ctx, &workerMsg) + require.NoError(err, "InsertBulkWorkerPayload should not return an error") + + // Check the forecast count to ensure duplicates were filtered out + forecastsCount1 := s.getCountForecastsAtBlock(topicId, blockHeight) + require.Equal(forecastsCount0+1, forecastsCount1, "Forecast count should increase by one") + + storedForecasts, err := s.emissionsKeeper.GetForecastsAtBlock(ctx, topicId, blockHeight) + require.NoError(err, "GetForecastsAtBlock should not return an error") + + for _, forecast := range storedForecasts.Forecasts { + infererMap := make(map[string]bool) + for _, el := range forecast.ForecastElements { + _, exists := infererMap[el.Inferer] + require.False(exists, "Each inferer should appear only once in ForecastElements") + infererMap[el.Inferer] = true + } + } +} + func (s *MsgServerTestSuite) TestInsertingHugeBulkWorkerPayloadFails() { ctx, msgServer := s.ctx, s.msgServer require := s.Require() @@ -272,11 +330,9 @@ func (s *MsgServerTestSuite) TestInsertingHugeBulkWorkerPayloadFails() { // Define sample OffchainNode information for a worker workerInfo := types.OffchainNode{ - LibP2PKey: "worker-libp2p-key-sample", - MultiAddress: "worker-multi-address-sample", - Owner: "worker-owner-sample", - NodeAddress: "worker-node-address-sample", - NodeId: "worker-node-id-sample", + + Owner: "worker-owner-sample", + NodeAddress: "worker-node-address-sample", } // Mock setup for addresses @@ -310,45 +366,41 @@ func (s *MsgServerTestSuite) TestInsertingHugeBulkWorkerPayloadFails() { }) } - // Create a MsgInsertBulkWorkerPayload message - workerMsg := &types.MsgInsertBulkWorkerPayload{ - Sender: workerAddr, - Nonce: &nonce, - TopicId: topicId, - WorkerDataBundles: []*types.WorkerDataBundle{ - { - Worker: InfererAddr, - InferenceForecastsBundle: &types.InferenceForecastBundle{ - Inference: &types.Inference{ - TopicId: topicId, - BlockHeight: nonce.BlockHeight, - Inferer: InfererAddr, - Value: alloraMath.NewDecFromInt64(100), - }, - Forecast: &types.Forecast{ - TopicId: 0, - BlockHeight: nonce.BlockHeight, - Forecaster: ForecasterAddr, - ForecastElements: forecastElements, - }, + // Create a MsgInsertWorkerPayload message + workerMsg := &types.MsgInsertWorkerPayload{ + Sender: workerAddr, + WorkerDataBundle: &types.WorkerDataBundle{ + Worker: InfererAddr, + InferenceForecastsBundle: &types.InferenceForecastBundle{ + Inference: &types.Inference{ + TopicId: topicId, + BlockHeight: nonce.BlockHeight, + Inferer: InfererAddr, + Value: alloraMath.NewDecFromInt64(100), + }, + Forecast: &types.Forecast{ + TopicId: 0, + BlockHeight: nonce.BlockHeight, + Forecaster: ForecasterAddr, + ForecastElements: forecastElements, }, }, }, } src := make([]byte, 0) - src, err := workerMsg.WorkerDataBundles[0].InferenceForecastsBundle.XXX_Marshal(src, true) + src, err := workerMsg.WorkerDataBundle.InferenceForecastsBundle.XXX_Marshal(src, true) require.NoError(err, "Marshall reputer value bundle should not return an error") sig, err := workerPrivateKey.Sign(src) require.NoError(err, "Sign should not return an error") - workerMsg.WorkerDataBundles[0].InferencesForecastsBundleSignature = sig - workerMsg.WorkerDataBundles[0].Pubkey = hex.EncodeToString(workerPublicKeyBytes) - _, err = msgServer.InsertBulkWorkerPayload(ctx, workerMsg) + workerMsg.WorkerDataBundle.InferencesForecastsBundleSignature = sig + workerMsg.WorkerDataBundle.Pubkey = hex.EncodeToString(workerPublicKeyBytes) + _, err = msgServer.InsertWorkerPayload(ctx, workerMsg) require.Error(err, types.ErrQueryTooLarge) } -func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayloadVerifyFailed() { +func (s *MsgServerTestSuite) TestMsgInsertWorkerPayloadVerifyFailed() { ctx, msgServer := s.ctx, s.msgServer require := s.Require() keeper := s.emissionsKeeper @@ -357,93 +409,9 @@ func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayloadVerifyFailed() { // Define sample OffchainNode information for a worker workerInfo := types.OffchainNode{ - LibP2PKey: "worker-libp2p-key-sample", - MultiAddress: "worker-multi-address-sample", - Owner: "worker-owner-sample", - NodeAddress: "worker-node-address-sample", - NodeId: "worker-node-id-sample", - } - // Mock setup for addresses - reputerPrivateKey := secp256k1.GenPrivKey() - reputerAddr := sdk.AccAddress(reputerPrivateKey.PubKey().Address()).String() - - workerPrivateKey := secp256k1.GenPrivKey() - workerAddr := sdk.AccAddress(workerPrivateKey.PubKey().Address()).String() - - InfererPrivateKey := secp256k1.GenPrivKey() - InfererAddr := sdk.AccAddress(InfererPrivateKey.PubKey().Address()).String() - - Inferer2PrivateKey := secp256k1.GenPrivKey() - Inferer2Addr := sdk.AccAddress(Inferer2PrivateKey.PubKey().Address()).String() - - ForecasterPrivateKey := secp256k1.GenPrivKey() - ForecasterAddr := sdk.AccAddress(ForecasterPrivateKey.PubKey().Address()).String() - - registrationInitialStake := cosmosMath.NewInt(100) - - // Create topic 0 and register reputer in it - s.commonStakingSetup(ctx, reputerAddr, workerAddr, registrationInitialStake) - keeper.AddWorkerNonce(ctx, 0, &nonce) - keeper.InsertWorker(ctx, topicId, InfererAddr, workerInfo) - keeper.InsertWorker(ctx, topicId, ForecasterAddr, workerInfo) - s.emissionsKeeper.SetTopic(ctx, topicId, types.Topic{Id: topicId}) - - // Create a MsgInsertBulkWorkerPayload message - workerMsg := &types.MsgInsertBulkWorkerPayload{ - Sender: workerAddr, - Nonce: &nonce, - TopicId: topicId, - WorkerDataBundles: []*types.WorkerDataBundle{ - { - Worker: InfererAddr, - InferenceForecastsBundle: &types.InferenceForecastBundle{ - Inference: &types.Inference{ - TopicId: topicId, - BlockHeight: nonce.BlockHeight, - Inferer: InfererAddr, - Value: alloraMath.NewDecFromInt64(100), - }, - Forecast: &types.Forecast{ - TopicId: 0, - BlockHeight: nonce.BlockHeight, - Forecaster: ForecasterAddr, - ForecastElements: []*types.ForecastElement{ - { - Inferer: InfererAddr, - Value: alloraMath.NewDecFromInt64(100), - }, - { - Inferer: Inferer2Addr, - Value: alloraMath.NewDecFromInt64(100), - }, - }, - }, - }, - InferencesForecastsBundleSignature: []byte("Signature"), - Pubkey: "Failed Pubkey", - }, - }, - } - - _, err := msgServer.InsertBulkWorkerPayload(ctx, workerMsg) - require.ErrorIs(err, types.ErrNoValidBundles) -} - -func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerAlreadyFullfilledNonce() { - ctx, msgServer := s.ctx, s.msgServer - require := s.Require() - keeper := s.emissionsKeeper - topicId := uint64(0) - nonce := types.Nonce{BlockHeight: 1} - - // Define sample OffchainNode information for a worker - workerInfo := types.OffchainNode{ - LibP2PKey: "worker-libp2p-key-sample", - MultiAddress: "worker-multi-address-sample", - Owner: "worker-owner-sample", - NodeAddress: "worker-node-address-sample", - NodeId: "worker-node-id-sample", + Owner: "worker-owner-sample", + NodeAddress: "worker-node-address-sample", } // Mock setup for addresses @@ -451,7 +419,6 @@ func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerAlreadyFullfilledNonce() { reputerAddr := sdk.AccAddress(reputerPrivateKey.PubKey().Address()).String() workerPrivateKey := secp256k1.GenPrivKey() - workerPublicKeyBytes := workerPrivateKey.PubKey().Bytes() workerAddr := sdk.AccAddress(workerPrivateKey.PubKey().Address()).String() InfererPrivateKey := secp256k1.GenPrivKey() @@ -472,34 +439,32 @@ func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerAlreadyFullfilledNonce() { keeper.InsertWorker(ctx, topicId, ForecasterAddr, workerInfo) s.emissionsKeeper.SetTopic(ctx, topicId, types.Topic{Id: topicId}) - // Create a MsgInsertBulkWorkerPayload message - workerMsg := &types.MsgInsertBulkWorkerPayload{ - Sender: workerAddr, - Nonce: &nonce, - TopicId: topicId, - WorkerDataBundles: []*types.WorkerDataBundle{ - { - Worker: InfererAddr, - InferenceForecastsBundle: &types.InferenceForecastBundle{ - Inference: &types.Inference{ - TopicId: topicId, - BlockHeight: nonce.BlockHeight, - Inferer: InfererAddr, - Value: alloraMath.NewDecFromInt64(100), - }, - Forecast: &types.Forecast{ - TopicId: 0, - BlockHeight: nonce.BlockHeight, - Forecaster: ForecasterAddr, - ForecastElements: []*types.ForecastElement{ - { - Inferer: InfererAddr, - Value: alloraMath.NewDecFromInt64(100), - }, - { - Inferer: Inferer2Addr, - Value: alloraMath.NewDecFromInt64(100), - }, + // Create a MsgInsertWorkerPayload message + workerMsg := &types.MsgInsertWorkerPayload{ + Sender: workerAddr, + WorkerDataBundle: &types.WorkerDataBundle{ + Worker: InfererAddr, + TopicId: topicId, + Nonce: &nonce, + InferenceForecastsBundle: &types.InferenceForecastBundle{ + Inference: &types.Inference{ + TopicId: topicId, + BlockHeight: nonce.BlockHeight, + Inferer: InfererAddr, + Value: alloraMath.NewDecFromInt64(100), + }, + Forecast: &types.Forecast{ + TopicId: 0, + BlockHeight: nonce.BlockHeight, + Forecaster: ForecasterAddr, + ForecastElements: []*types.ForecastElement{ + { + Inferer: InfererAddr, + Value: alloraMath.NewDecFromInt64(100), + }, + { + Inferer: Inferer2Addr, + Value: alloraMath.NewDecFromInt64(100), }, }, }, @@ -507,44 +472,6 @@ func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerAlreadyFullfilledNonce() { }, } - src := make([]byte, 0) - src, err := workerMsg.WorkerDataBundles[0].InferenceForecastsBundle.XXX_Marshal(src, true) - require.NoError(err, "Marshall reputer value bundle should not return an error") - - sig, err := workerPrivateKey.Sign(src) - require.NoError(err, "Sign should not return an error") - workerMsg.WorkerDataBundles[0].InferencesForecastsBundleSignature = sig - workerMsg.WorkerDataBundles[0].Pubkey = hex.EncodeToString(workerPublicKeyBytes) - - _, err = msgServer.InsertBulkWorkerPayload(ctx, workerMsg) - require.NoError(err) - _, err = msgServer.InsertBulkWorkerPayload(ctx, workerMsg) - require.ErrorIs(err, types.ErrNonceAlreadyFulfilled) -} - -func (s *MsgServerTestSuite) TestMsgInsertBulkWorkerPayloadUpdateTopicCommit() { - ctx, msgServer := s.ctx, s.msgServer - require := s.Require() - - workerPrivateKey := secp256k1.GenPrivKey() - workerMsg, topicId := s.setUpMsgInsertBulkWorkerPayload(workerPrivateKey) - workerMsg = s.signMsgInsertBulkWorkerPayload(workerMsg, workerPrivateKey) - - blockHeight := sdk.UnwrapSDKContext(ctx).BlockHeight() - _, err := msgServer.InsertBulkWorkerPayload(ctx, &workerMsg) - require.NoError(err, "InsertBulkWorkerPayload should not return an error") - - lastCommit, err := s.emissionsKeeper.GetTopicLastCommit(ctx, topicId, types.ActorType_INFERER) - require.NoError(err, "GetTopicLastCommit should not return an error") - - require.Equal(blockHeight, lastCommit.BlockHeight, "BlockHeight should be same") - require.Equal(workerMsg.Sender, lastCommit.Actor, "Actor should be same") - require.Equal(workerMsg.Nonce, lastCommit.Nonce, "Nonce should be same") - - lastWorkerPayload, err := s.emissionsKeeper.GetTopicLastWorkerPayload(ctx, topicId) - require.NoError(err) - - require.Equal(blockHeight, lastWorkerPayload.BlockHeight, "BlockHeight should be same") - require.Equal(workerMsg.Sender, lastWorkerPayload.Actor, "Actor should be same") - require.Equal(workerMsg.Nonce, lastWorkerPayload.Nonce, "Nonce should be same") + _, err := msgServer.InsertWorkerPayload(ctx, workerMsg) + require.Error(err, types.ErrNoValidBundles) } diff --git a/x/emissions/keeper/queryserver/query_server_inferences.go b/x/emissions/keeper/queryserver/query_server_inferences.go index e70145e09..72d857bab 100644 --- a/x/emissions/keeper/queryserver/query_server_inferences.go +++ b/x/emissions/keeper/queryserver/query_server_inferences.go @@ -8,14 +8,13 @@ import ( alloraMath "github.com/allora-network/allora-chain/math" synth "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis" - "github.com/allora-network/allora-chain/x/emissions/types" - emissions "github.com/allora-network/allora-chain/x/emissions/types" + emissionstypes "github.com/allora-network/allora-chain/x/emissions/types" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" ) // GetWorkerLatestInferenceByTopicId handles the query for the latest inference by a specific worker for a given topic. -func (qs queryServer) GetWorkerLatestInferenceByTopicId(ctx context.Context, req *types.QueryWorkerLatestInferenceRequest) (*types.QueryWorkerLatestInferenceResponse, error) { +func (qs queryServer) GetWorkerLatestInferenceByTopicId(ctx context.Context, req *emissionstypes.QueryWorkerLatestInferenceRequest) (*emissionstypes.QueryWorkerLatestInferenceResponse, error) { if err := qs.k.ValidateStringIsBech32(req.WorkerAddress); err != nil { return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid address: %s", err) } @@ -32,10 +31,10 @@ func (qs queryServer) GetWorkerLatestInferenceByTopicId(ctx context.Context, req return nil, err } - return &types.QueryWorkerLatestInferenceResponse{LatestInference: &inference}, nil + return &emissionstypes.QueryWorkerLatestInferenceResponse{LatestInference: &inference}, nil } -func (qs queryServer) GetInferencesAtBlock(ctx context.Context, req *types.QueryInferencesAtBlockRequest) (*types.QueryInferencesAtBlockResponse, error) { +func (qs queryServer) GetInferencesAtBlock(ctx context.Context, req *emissionstypes.QueryInferencesAtBlockRequest) (*emissionstypes.QueryInferencesAtBlockResponse, error) { topicExists, err := qs.k.TopicExists(ctx, req.TopicId) if !topicExists { return nil, status.Errorf(codes.NotFound, "topic %v not found", req.TopicId) @@ -48,14 +47,14 @@ func (qs queryServer) GetInferencesAtBlock(ctx context.Context, req *types.Query return nil, err } - return &types.QueryInferencesAtBlockResponse{Inferences: inferences}, nil + return &emissionstypes.QueryInferencesAtBlockResponse{Inferences: inferences}, nil } // Return full set of inferences in I_i from the chain func (qs queryServer) GetNetworkInferencesAtBlock( ctx context.Context, - req *types.QueryNetworkInferencesAtBlockRequest, -) (*types.QueryNetworkInferencesAtBlockResponse, error) { + req *emissionstypes.QueryNetworkInferencesAtBlockRequest, +) (*emissionstypes.QueryNetworkInferencesAtBlockResponse, error) { topic, err := qs.k.GetTopic(ctx, req.TopicId) if err != nil { return nil, status.Errorf(codes.NotFound, "topic %v not found", req.TopicId) @@ -75,15 +74,15 @@ func (qs queryServer) GetNetworkInferencesAtBlock( return nil, err } - return &types.QueryNetworkInferencesAtBlockResponse{NetworkInferences: networkInferences}, nil + return &emissionstypes.QueryNetworkInferencesAtBlockResponse{NetworkInferences: networkInferences}, nil } // Return full set of inferences in I_i from the chain, as well as weights and forecast implied inferences func (qs queryServer) GetLatestNetworkInference( ctx context.Context, - req *types.QueryLatestNetworkInferencesRequest, + req *emissionstypes.QueryLatestNetworkInferencesRequest, ) ( - *types.QueryLatestNetworkInferencesResponse, + *emissionstypes.QueryLatestNetworkInferencesResponse, error, ) { topicExists, err := qs.k.TopicExists(ctx, req.TopicId) @@ -109,6 +108,9 @@ func (qs queryServer) GetLatestNetworkInference( infererWeights, forecasterWeights, ) + if err != nil { + return nil, err + } if ciRawPercentiles == nil { ciRawPercentiles = []alloraMath.Dec{} @@ -121,7 +123,7 @@ func (qs queryServer) GetLatestNetworkInference( inferers := alloraMath.GetSortedKeys(infererWeights) forecasters := alloraMath.GetSortedKeys(forecasterWeights) - return &types.QueryLatestNetworkInferencesResponse{ + return &emissionstypes.QueryLatestNetworkInferencesResponse{ NetworkInferences: networkInferences, InfererWeights: synth.ConvertWeightsToArrays(inferers, infererWeights), ForecasterWeights: synth.ConvertWeightsToArrays(forecasters, forecasterWeights), @@ -135,18 +137,18 @@ func (qs queryServer) GetLatestNetworkInference( func (qs queryServer) GetLatestAvailableNetworkInference( ctx context.Context, - req *types.QueryLatestNetworkInferencesRequest, + req *emissionstypes.QueryLatestNetworkInferencesRequest, ) ( - *types.QueryLatestNetworkInferencesResponse, + *emissionstypes.QueryLatestNetworkInferencesResponse, error, ) { - lastWorkerCommit, err := qs.k.GetTopicLastWorkerPayload(ctx, req.TopicId) + lastWorkerCommit, err := qs.k.GetWorkerTopicLastCommit(ctx, req.TopicId) if err != nil { return nil, err } - lastReputerCommit, err := qs.k.GetTopicLastReputerPayload(ctx, req.TopicId) + lastReputerCommit, err := qs.k.GetReputerTopicLastCommit(ctx, req.TopicId) if err != nil { return nil, err } @@ -170,6 +172,9 @@ func (qs queryServer) GetLatestAvailableNetworkInference( infererWeights, forecasterWeights, ) + if err != nil { + return nil, err + } if ciRawPercentiles == nil { ciRawPercentiles = []alloraMath.Dec{} @@ -182,7 +187,7 @@ func (qs queryServer) GetLatestAvailableNetworkInference( inferers := alloraMath.GetSortedKeys(infererWeights) forecasters := alloraMath.GetSortedKeys(forecasterWeights) - return &types.QueryLatestNetworkInferencesResponse{ + return &emissionstypes.QueryLatestNetworkInferencesResponse{ NetworkInferences: networkInferences, InfererWeights: synth.ConvertWeightsToArrays(inferers, infererWeights), ForecasterWeights: synth.ConvertWeightsToArrays(forecasters, forecasterWeights), @@ -195,8 +200,8 @@ func (qs queryServer) GetLatestAvailableNetworkInference( } func (qs queryServer) GetConfidenceIntervalsForInferenceData( - networkInferences *emissions.ValueBundle, - forecastImpliedInferenceByWorker map[string]*emissions.Inference, + networkInferences *emissionstypes.ValueBundle, + forecastImpliedInferenceByWorker map[string]*emissionstypes.Inference, infererWeights map[string]alloraMath.Dec, forecasterWeights map[string]alloraMath.Dec, ) ([]alloraMath.Dec, []alloraMath.Dec, error) { @@ -244,9 +249,9 @@ func (qs queryServer) GetConfidenceIntervalsForInferenceData( func (qs queryServer) GetLatestTopicInferences( ctx context.Context, - req *types.QueryLatestTopicInferencesRequest, + req *emissionstypes.QueryLatestTopicInferencesRequest, ) ( - *types.QueryLatestTopicInferencesResponse, + *emissionstypes.QueryLatestTopicInferencesResponse, error, ) { topicExists, err := qs.k.TopicExists(ctx, req.TopicId) @@ -261,27 +266,27 @@ func (qs queryServer) GetLatestTopicInferences( return nil, err } - return &types.QueryLatestTopicInferencesResponse{Inferences: inferences, BlockHeight: blockHeight}, nil + return &emissionstypes.QueryLatestTopicInferencesResponse{Inferences: inferences, BlockHeight: blockHeight}, nil } func (qs queryServer) IsWorkerNonceUnfulfilled( ctx context.Context, - req *types.QueryIsWorkerNonceUnfulfilledRequest, + req *emissionstypes.QueryIsWorkerNonceUnfulfilledRequest, ) ( - *types.QueryIsWorkerNonceUnfulfilledResponse, + *emissionstypes.QueryIsWorkerNonceUnfulfilledResponse, error, ) { isWorkerNonceUnfulfilled, err := - qs.k.IsWorkerNonceUnfulfilled(ctx, req.TopicId, &types.Nonce{BlockHeight: req.BlockHeight}) + qs.k.IsWorkerNonceUnfulfilled(ctx, req.TopicId, &emissionstypes.Nonce{BlockHeight: req.BlockHeight}) - return &types.QueryIsWorkerNonceUnfulfilledResponse{IsWorkerNonceUnfulfilled: isWorkerNonceUnfulfilled}, err + return &emissionstypes.QueryIsWorkerNonceUnfulfilledResponse{IsWorkerNonceUnfulfilled: isWorkerNonceUnfulfilled}, err } func (qs queryServer) GetUnfulfilledWorkerNonces( ctx context.Context, - req *types.QueryUnfulfilledWorkerNoncesRequest, + req *emissionstypes.QueryUnfulfilledWorkerNoncesRequest, ) ( - *types.QueryUnfulfilledWorkerNoncesResponse, + *emissionstypes.QueryUnfulfilledWorkerNoncesResponse, error, ) { unfulfilledNonces, err := qs.k.GetUnfulfilledWorkerNonces(ctx, req.TopicId) @@ -289,14 +294,14 @@ func (qs queryServer) GetUnfulfilledWorkerNonces( return nil, err } - return &types.QueryUnfulfilledWorkerNoncesResponse{Nonces: &unfulfilledNonces}, nil + return &emissionstypes.QueryUnfulfilledWorkerNoncesResponse{Nonces: &unfulfilledNonces}, nil } func (qs queryServer) GetInfererNetworkRegret( ctx context.Context, - req *types.QueryInfererNetworkRegretRequest, + req *emissionstypes.QueryInfererNetworkRegretRequest, ) ( - *types.QueryInfererNetworkRegretResponse, + *emissionstypes.QueryInfererNetworkRegretResponse, error, ) { infererNetworkRegret, _, err := qs.k.GetInfererNetworkRegret(ctx, req.TopicId, req.ActorId) @@ -304,14 +309,14 @@ func (qs queryServer) GetInfererNetworkRegret( return nil, err } - return &types.QueryInfererNetworkRegretResponse{Regret: &infererNetworkRegret}, nil + return &emissionstypes.QueryInfererNetworkRegretResponse{Regret: &infererNetworkRegret}, nil } func (qs queryServer) GetForecasterNetworkRegret( ctx context.Context, - req *types.QueryForecasterNetworkRegretRequest, + req *emissionstypes.QueryForecasterNetworkRegretRequest, ) ( - *types.QueryForecasterNetworkRegretResponse, + *emissionstypes.QueryForecasterNetworkRegretResponse, error, ) { forecasterNetworkRegret, _, err := qs.k.GetForecasterNetworkRegret(ctx, req.TopicId, req.Worker) @@ -319,14 +324,14 @@ func (qs queryServer) GetForecasterNetworkRegret( return nil, err } - return &types.QueryForecasterNetworkRegretResponse{Regret: &forecasterNetworkRegret}, nil + return &emissionstypes.QueryForecasterNetworkRegretResponse{Regret: &forecasterNetworkRegret}, nil } func (qs queryServer) GetOneInForecasterNetworkRegret( ctx context.Context, - req *types.QueryOneInForecasterNetworkRegretRequest, + req *emissionstypes.QueryOneInForecasterNetworkRegretRequest, ) ( - *types.QueryOneInForecasterNetworkRegretResponse, + *emissionstypes.QueryOneInForecasterNetworkRegretResponse, error, ) { oneInForecasterNetworkRegret, _, err := qs.k.GetOneInForecasterNetworkRegret(ctx, req.TopicId, req.Forecaster, req.Inferer) @@ -334,20 +339,80 @@ func (qs queryServer) GetOneInForecasterNetworkRegret( return nil, err } - return &types.QueryOneInForecasterNetworkRegretResponse{Regret: &oneInForecasterNetworkRegret}, nil + return &emissionstypes.QueryOneInForecasterNetworkRegretResponse{Regret: &oneInForecasterNetworkRegret}, nil +} + +func (qs queryServer) GetNaiveInfererNetworkRegret( + ctx context.Context, + req *emissionstypes.QueryNaiveInfererNetworkRegretRequest, +) ( + *emissionstypes.QueryNaiveInfererNetworkRegretResponse, + error, +) { + regret, _, err := qs.k.GetNaiveInfererNetworkRegret(ctx, req.TopicId, req.Inferer) + if err != nil { + return nil, err + } + + return &emissionstypes.QueryNaiveInfererNetworkRegretResponse{Regret: ®ret}, nil +} + +func (qs queryServer) GetOneOutInfererInfererNetworkRegret( + ctx context.Context, + req *emissionstypes.QueryOneOutInfererInfererNetworkRegretRequest, +) ( + *emissionstypes.QueryOneOutInfererInfererNetworkRegretResponse, + error, +) { + regret, _, err := qs.k.GetOneOutInfererInfererNetworkRegret(ctx, req.TopicId, req.OneOutInferer, req.Inferer) + if err != nil { + return nil, err + } + + return &emissionstypes.QueryOneOutInfererInfererNetworkRegretResponse{Regret: ®ret}, nil +} + +func (qs queryServer) GetOneOutInfererForecasterNetworkRegret( + ctx context.Context, + req *emissionstypes.QueryOneOutInfererForecasterNetworkRegretRequest, +) ( + *emissionstypes.QueryOneOutInfererForecasterNetworkRegretResponse, + error, +) { + regret, _, err := qs.k.GetOneOutInfererForecasterNetworkRegret(ctx, req.TopicId, req.OneOutInferer, req.Forecaster) + if err != nil { + return nil, err + } + + return &emissionstypes.QueryOneOutInfererForecasterNetworkRegretResponse{Regret: ®ret}, nil +} + +func (qs queryServer) GetOneOutForecasterInfererNetworkRegret( + ctx context.Context, + req *emissionstypes.QueryOneOutForecasterInfererNetworkRegretRequest, +) ( + *emissionstypes.QueryOneOutForecasterInfererNetworkRegretResponse, + error, +) { + regret, _, err := qs.k.GetOneOutForecasterInfererNetworkRegret(ctx, req.TopicId, req.OneOutForecaster, req.Inferer) + if err != nil { + return nil, err + } + + return &emissionstypes.QueryOneOutForecasterInfererNetworkRegretResponse{Regret: ®ret}, nil } -func (qs queryServer) GetOneInForecasterSelfNetworkRegret( +func (qs queryServer) GetOneOutForecasterForecasterNetworkRegret( ctx context.Context, - req *types.QueryOneInForecasterSelfNetworkRegretRequest, + req *emissionstypes.QueryOneOutForecasterForecasterNetworkRegretRequest, ) ( - *types.QueryOneInForecasterSelfNetworkRegretResponse, + *emissionstypes.QueryOneOutForecasterForecasterNetworkRegretResponse, error, ) { - oneInForecasterSelfNetworkRegret, _, err := qs.k.GetOneInForecasterSelfNetworkRegret(ctx, req.TopicId, req.Forecaster) + regret, _, err := qs.k.GetOneOutForecasterForecasterNetworkRegret(ctx, req.TopicId, req.OneOutForecaster, req.Forecaster) if err != nil { return nil, err } - return &types.QueryOneInForecasterSelfNetworkRegretResponse{Regret: &oneInForecasterSelfNetworkRegret}, nil + return &emissionstypes.QueryOneOutForecasterForecasterNetworkRegretResponse{Regret: ®ret}, nil } diff --git a/x/emissions/keeper/queryserver/query_server_inferences_test.go b/x/emissions/keeper/queryserver/query_server_inferences_test.go index e65dcf956..e749f89dc 100644 --- a/x/emissions/keeper/queryserver/query_server_inferences_test.go +++ b/x/emissions/keeper/queryserver/query_server_inferences_test.go @@ -563,35 +563,6 @@ func (s *KeeperTestSuite) TestGetOneInForecasterNetworkRegret() { s.Require().Equal(response.Regret, ®ret) } -func (s *KeeperTestSuite) TestGetOneInForecasterSelfNetworkRegret() { - ctx := s.ctx - keeper := s.emissionsKeeper - topicId := s.CreateOneTopic() - forecaster := "forecaster-address" - regret := types.TimestampedValue{BlockHeight: 100, Value: alloraMath.NewDecFromInt64(10)} - emptyRegret := types.TimestampedValue{ - BlockHeight: 0, - Value: alloraMath.NewDecFromInt64(0), - } - - req := &types.QueryOneInForecasterSelfNetworkRegretRequest{ - TopicId: topicId, - Forecaster: forecaster, - } - response, err := s.queryServer.GetOneInForecasterSelfNetworkRegret(s.ctx, req) - s.Require().NoError(err) - s.Require().Equal(response.Regret, &emptyRegret) - - // Set One In Forecaster Self Network Regret - err = keeper.SetOneInForecasterSelfNetworkRegret(ctx, topicId, forecaster, regret) - s.Require().NoError(err) - - // Get One In Forecaster Self Network Regret - response, err = s.queryServer.GetOneInForecasterSelfNetworkRegret(s.ctx, req) - s.Require().NoError(err) - s.Require().Equal(response.Regret, ®ret) -} - func (s *KeeperTestSuite) TestGetLatestTopicInferences() { ctx := s.ctx keeper := s.emissionsKeeper @@ -687,9 +658,7 @@ func (s *KeeperTestSuite) TestGetLatestAvailableNetworkInference() { }) require.NoError(err) - reputer0 := "allo1wms0uwwh9dgtnmfend82z82j9q6x62s656fn35" - - err = keeper.SetTopicLastReputerPayload(s.ctx, topicId, lossBlockHeight, &lossNonce, reputer0) + err = keeper.SetReputerTopicLastCommit(s.ctx, topicId, lossBlockHeight, &lossNonce) s.Require().NoError(err) // Set Inferences @@ -809,7 +778,7 @@ func (s *KeeperTestSuite) TestGetLatestAvailableNetworkInference() { err = keeper.InsertForecasts(s.ctx, topicId, inferenceNonce, getForecastsForBlockHeight(inferenceBlockHeight)) require.NoError(err) - err = keeper.SetTopicLastWorkerPayload(s.ctx, topicId, inferenceBlockHeight, &inferenceNonce, worker0) + err = keeper.SetWorkerTopicLastCommit(s.ctx, topicId, inferenceBlockHeight, &inferenceNonce) s.Require().NoError(err) // insert inferences and forecasts 2 @@ -819,7 +788,7 @@ func (s *KeeperTestSuite) TestGetLatestAvailableNetworkInference() { err = keeper.InsertForecasts(s.ctx, topicId, inferenceNonce2, getForecastsForBlockHeight(inferenceBlockHeight2)) require.NoError(err) - err = keeper.SetTopicLastWorkerPayload(s.ctx, topicId, inferenceBlockHeight2, &inferenceNonce2, worker0) + err = keeper.SetWorkerTopicLastCommit(s.ctx, topicId, inferenceBlockHeight2, &inferenceNonce2) s.Require().NoError(err) // Update epoch topic epoch last ended diff --git a/x/emissions/keeper/queryserver/query_server_losses_test.go b/x/emissions/keeper/queryserver/query_server_losses_test.go index 8e1276d02..5fd8ad023 100644 --- a/x/emissions/keeper/queryserver/query_server_losses_test.go +++ b/x/emissions/keeper/queryserver/query_server_losses_test.go @@ -105,8 +105,8 @@ func (s *KeeperTestSuite) TestGetReputerLossBundlesAtBlock() { BlockHeight: int64(block), } response, err := s.queryServer.GetReputerLossBundlesAtBlock(ctx, req) - require.Error(err) - require.Nil(response) + require.NoError(err) + require.Nil(response.LossBundles.ReputerValueBundles) // Test inserting data err = s.emissionsKeeper.InsertReputerLossBundlesAtBlock(ctx, topicId, block, reputerLossBundles) diff --git a/x/emissions/keeper/queryserver/query_server_registrations.go b/x/emissions/keeper/queryserver/query_server_registrations.go index 17b25f958..1d6aac10f 100644 --- a/x/emissions/keeper/queryserver/query_server_registrations.go +++ b/x/emissions/keeper/queryserver/query_server_registrations.go @@ -2,6 +2,7 @@ package queryserver import ( "context" + "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -11,7 +12,7 @@ import ( ) func (qs queryServer) GetWorkerNodeInfo(ctx context.Context, req *types.QueryWorkerNodeInfoRequest) (*types.QueryWorkerNodeInfoResponse, error) { - node, err := qs.k.GetWorkerByLibp2pKey(sdk.UnwrapSDKContext(ctx), req.Libp2PKey) + node, err := qs.k.GetWorkerInfo(sdk.UnwrapSDKContext(ctx), req.Address) if err != nil { return nil, err } @@ -20,7 +21,7 @@ func (qs queryServer) GetWorkerNodeInfo(ctx context.Context, req *types.QueryWor } func (qs queryServer) GetReputerNodeInfo(ctx context.Context, req *types.QueryReputerNodeInfoRequest) (*types.QueryReputerNodeInfoResponse, error) { - node, err := qs.k.GetReputerByLibp2pKey(sdk.UnwrapSDKContext(ctx), req.Libp2PKey) + node, err := qs.k.GetReputerInfo(sdk.UnwrapSDKContext(ctx), req.Address) if err != nil { return nil, err } @@ -28,24 +29,6 @@ func (qs queryServer) GetReputerNodeInfo(ctx context.Context, req *types.QueryRe return &types.QueryReputerNodeInfoResponse{NodeInfo: &node}, nil } -func (qs queryServer) GetWorkerAddressByP2PKey(ctx context.Context, req *types.QueryWorkerAddressByP2PKeyRequest) (*types.QueryWorkerAddressByP2PKeyResponse, error) { - workerAddr, err := qs.k.GetWorkerAddressByP2PKey(sdk.UnwrapSDKContext(ctx), req.Libp2PKey) - if err != nil { - return nil, err - } - - return &types.QueryWorkerAddressByP2PKeyResponse{Address: workerAddr.String()}, nil -} - -func (qs queryServer) GetReputerAddressByP2PKey(ctx context.Context, req *types.QueryReputerAddressByP2PKeyRequest) (*types.QueryReputerAddressByP2PKeyResponse, error) { - address, err := qs.k.GetReputerAddressByP2PKey(sdk.UnwrapSDKContext(ctx), req.Libp2PKey) - if err != nil { - return nil, err - } - - return &types.QueryReputerAddressByP2PKeyResponse{Address: address.String()}, nil -} - func (qs queryServer) IsWorkerRegisteredInTopicId(ctx context.Context, req *types.QueryIsWorkerRegisteredInTopicIdRequest) (*types.QueryIsWorkerRegisteredInTopicIdResponse, error) { if err := qs.k.ValidateStringIsBech32(req.Address); err != nil { return nil, sdkerrors.ErrInvalidAddress.Wrapf("invalid address: %s", err) diff --git a/x/emissions/keeper/queryserver/query_server_registrations_test.go b/x/emissions/keeper/queryserver/query_server_registrations_test.go index ffc8bef8b..8ac85093d 100644 --- a/x/emissions/keeper/queryserver/query_server_registrations_test.go +++ b/x/emissions/keeper/queryserver/query_server_registrations_test.go @@ -11,24 +11,19 @@ func (s *KeeperTestSuite) TestGetWorkerNodeInfo() { ctx := s.ctx keeper := s.emissionsKeeper queryServer := s.queryServer - - libP2PKey := "worker-libp2p-key-sample" + worker := "sampleWorkerAddress" expectedNode := types.OffchainNode{ - LibP2PKey: libP2PKey, - MultiAddress: "worker-multi-address-sample", - Owner: "worker-owner-sample", - NodeAddress: "worker-node-address-sample", - NodeId: "worker-node-id-sample", + Owner: "worker-owner-sample", + NodeAddress: worker, } - worker := "sampleWorkerAddress" topicId := uint64(401) err := keeper.InsertWorker(ctx, topicId, worker, expectedNode) s.Require().NoError(err, "InsertWorker should not produce an error") req := &types.QueryWorkerNodeInfoRequest{ - Libp2PKey: libP2PKey, + Address: worker, } response, err := queryServer.GetWorkerNodeInfo(ctx, req) @@ -39,33 +34,29 @@ func (s *KeeperTestSuite) TestGetWorkerNodeInfo() { s.Require().Equal(&expectedNode, response.NodeInfo, "The retrieved node information should match the expected node information") invalidReq := &types.QueryWorkerNodeInfoRequest{ - Libp2PKey: "nonexistent-libp2p-key", + Address: "nonexistent-key", } _, err = queryServer.GetWorkerNodeInfo(ctx, invalidReq) - s.Require().Error(err, "Expected an error for nonexistent LibP2PKey") + s.Require().Error(err, "Expected an error for nonexistent key") } func (s *KeeperTestSuite) TestGetReputerNodeInfo() { ctx := s.ctx keeper := s.emissionsKeeper queryServer := s.queryServer - reputerKey := "someLibP2PKey123" + reputer := "sampleReputerAddress" expectedReputer := types.OffchainNode{ - LibP2PKey: reputerKey, - MultiAddress: "/ip4/127.0.0.1/tcp/4001", - Owner: "cosmos1...", - NodeAddress: "cosmosNodeAddress", - NodeId: "nodeId123", + NodeAddress: "cosmosNodeAddress", + Owner: reputer, } - reputer := "sampleReputerAddress" topicId := uint64(501) err := keeper.InsertReputer(ctx, topicId, reputer, expectedReputer) s.Require().NoError(err, "InsertReputer should not produce an error") req := &types.QueryReputerNodeInfoRequest{ - Libp2PKey: reputerKey, + Address: reputer, } response, err := queryServer.GetReputerNodeInfo(ctx, req) @@ -76,90 +67,10 @@ func (s *KeeperTestSuite) TestGetReputerNodeInfo() { s.Require().Equal(&expectedReputer, response.NodeInfo, "The retrieved node information should match the expected node information") invalidReq := &types.QueryReputerNodeInfoRequest{ - Libp2PKey: "nonExistentKey123", + Address: "nonExistentKey123", } _, err = queryServer.GetReputerNodeInfo(ctx, invalidReq) - s.Require().Error(err, "Expected an error for nonexistent LibP2PKey") -} - -func (s *KeeperTestSuite) TestGetWorkerAddressByP2PKey() { - ctx := s.ctx - keeper := s.emissionsKeeper - queryServer := s.queryServer - workerP2pKey := "allo1de602uj38fg4s2rwq7xhh4cmkuvuxfdhkc6jjt" - nonexistentWorkerP2pKey := "allo19xyq5emxtnt9095t9cr6s556yax8ml6kf5fcdt" - - worker := "allo1chtzkeje04c6n82mgm59vvlgc23fv3knwewsvf" - workerAcc := worker - - topicId := uint64(401) - workerInfo := types.OffchainNode{ - LibP2PKey: workerP2pKey, - MultiAddress: "worker-multi-address-sample", - Owner: worker, - NodeAddress: "worker-node-address-sample", - NodeId: "worker-node-id-sample", - } - - err := keeper.InsertWorker(ctx, topicId, workerAcc, workerInfo) - s.Require().NoError(err, "InsertWorker should not produce an error") - - req := &types.QueryWorkerAddressByP2PKeyRequest{ - Libp2PKey: workerP2pKey, - } - - response, err := queryServer.GetWorkerAddressByP2PKey(ctx, req) - - s.Require().NoError(err, "GetWorkerAddressByP2PKey should not produce an error") - s.Require().NotNil(response, "The response should not be nil") - s.Require().Equal(worker, response.Address, "The retrieved worker address should match the expected worker address") - - invalidReq := &types.QueryWorkerAddressByP2PKeyRequest{ - Libp2PKey: nonexistentWorkerP2pKey, - } - _, err = queryServer.GetWorkerAddressByP2PKey(ctx, invalidReq) - s.Require().Error(err, "Expected an error for a nonexistent LibP2PKey") -} - -func (s *KeeperTestSuite) TestGetReputerAddressByP2PKey() { - ctx := s.ctx - keeper := s.emissionsKeeper - queryServer := s.queryServer - reputerP2pKey := "allo1h5tvp00fquwymued2hu7ugrvp2lfscm0f4atp3" - nonexistentReputerP2pKey := "allo1th6xy9d8gghcps8kyknrk0ry22av0ntjfj3kcc" - - reputer := "allo1cfaw83zzx4rmcq6es0qx9av240xv7hh6jczp4w" - reputerAcc := reputer - - topicId := uint64(501) // Assuming a different topic ID for reputers - reputerInfo := types.OffchainNode{ - LibP2PKey: reputerP2pKey, - MultiAddress: "reputer-multi-address-sample", - Owner: reputer, - NodeAddress: "reputer-node-address-sample", - NodeId: "reputer-node-id-sample", - } - - // Insert the reputer into the keeper - err := keeper.InsertReputer(ctx, topicId, reputerAcc, reputerInfo) - s.Require().NoError(err, "InsertReputer should not produce an error") - - // Test valid request - req := &types.QueryReputerAddressByP2PKeyRequest{ - Libp2PKey: reputerP2pKey, - } - response, err := queryServer.GetReputerAddressByP2PKey(ctx, req) - - s.Require().NoError(err, "GetReputerAddressByP2PKey should not produce an error") - s.Require().NotNil(response, "The response should not be nil") - s.Require().Equal(reputer, response.Address, "The retrieved reputer address should match the expected reputer address") - - // Test invalid request - invalidReq := &types.QueryReputerAddressByP2PKeyRequest{ - Libp2PKey: nonexistentReputerP2pKey, - } - _, err = queryServer.GetReputerAddressByP2PKey(ctx, invalidReq) - s.Require().Error(err, "Expected an error for a nonexistent LibP2PKey") + s.Require().Error(err, "Expected an error for nonexistent key") } func (s *KeeperTestSuite) TestUnregisteredWorkerIsUnregisteredInTopicId() { @@ -196,12 +107,10 @@ func (s *KeeperTestSuite) TestRegisteredWorkerIsRegisteredInTopicId() { s.emissionsKeeper.ActivateTopic(ctx, topicId) // Worker register registerMsg := &types.MsgRegister{ - Sender: workerAddrString, - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: workerAddrString, + Sender: workerAddrString, + TopicId: topicId, + IsReputer: false, + Owner: workerAddrString, } mintAmount := sdk.NewCoins(sdk.NewInt64Coin(params.DefaultBondDenom, 100)) @@ -246,12 +155,10 @@ func (s *KeeperTestSuite) TestRegisteredReputerIsRegisteredInTopicId() { s.emissionsKeeper.ActivateTopic(ctx, topicId) // Register reputer registerMsg := &types.MsgRegister{ - Sender: reputerAddr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: reputerAddr.String(), + Sender: reputerAddr.String(), + TopicId: topicId, + IsReputer: true, + Owner: reputerAddr.String(), } mintAmount := sdk.NewCoins(sdk.NewInt64Coin(params.DefaultBondDenom, 100)) diff --git a/x/emissions/keeper/queryserver/query_server_reward_test.go b/x/emissions/keeper/queryserver/query_server_reward_test.go index da49d9b8a..129d68549 100644 --- a/x/emissions/keeper/queryserver/query_server_reward_test.go +++ b/x/emissions/keeper/queryserver/query_server_reward_test.go @@ -64,14 +64,12 @@ func (s *KeeperTestSuite) TestGetPreviousInferenceRewardFraction() { _ = keeper.SetPreviousInferenceRewardFraction(ctx, topicId, worker, setReward) // Fetch and verify the reward fraction after setting - fetchedReward, noPrior, err := keeper.GetPreviousInferenceRewardFraction(ctx, topicId, worker) - response, err = s.queryServer.GetPreviousInferenceRewardFraction(ctx, req) + fetchedReward, _, err := keeper.GetPreviousInferenceRewardFraction(ctx, topicId, worker) s.Require().NoError(err) - defaultReward = response.RewardFraction - noPrior = response.NotFound + response, err = s.queryServer.GetPreviousInferenceRewardFraction(ctx, req) s.Require().NoError(err, "Fetching reward fraction should not fail after setting") s.Require().True(fetchedReward.Equal(setReward), "The fetched reward fraction should match the set value") - s.Require().False(noPrior, "Should not return no prior value after setting") + s.Require().True(response.RewardFraction.Equal(setReward), "The fetched reward fraction should match the set value") } func (s *KeeperTestSuite) TestGetPreviousForecastRewardFraction() { @@ -119,10 +117,22 @@ func (s *KeeperTestSuite) TestGetPreviousPercentageRewardToStakedReputers() { // Get the previous percentage reward to staked reputers fetchedPercentageReward, err := keeper.GetPreviousPercentageRewardToStakedReputers(ctx) + s.Require().NoError(err) + s.Require().True( + fetchedPercentageReward.Equal(previousPercentageReward), + "%s != %s", + fetchedPercentageReward.String(), + previousPercentageReward.String(), + ) req := &types.QueryPreviousPercentageRewardToStakedReputersRequest{} response, err := s.queryServer.GetPreviousPercentageRewardToStakedReputers(ctx, req) s.Require().NoError(err) fetchedPercentageReward = response.PercentageReward - s.Require().Equal(previousPercentageReward, fetchedPercentageReward, "The fetched percentage reward should match the set value") + s.Require().True( + fetchedPercentageReward.Equal(previousPercentageReward), + "%s != %s", + fetchedPercentageReward.String(), + previousPercentageReward.String(), + ) } diff --git a/x/emissions/keeper/queryserver/query_server_stake.go b/x/emissions/keeper/queryserver/query_server_stake.go index 72965b7f9..a566e98bf 100644 --- a/x/emissions/keeper/queryserver/query_server_stake.go +++ b/x/emissions/keeper/queryserver/query_server_stake.go @@ -194,54 +194,52 @@ func (qs queryServer) GetTopicStake(ctx context.Context, req *types.QueryTopicSt return &types.QueryTopicStakeResponse{Amount: stake}, nil } -func (qs queryServer) GetStakeRemovalsForBlock( +func (qs queryServer) GetStakeRemovalsUpUntilBlock( ctx context.Context, - req *types.QueryStakeRemovalsForBlockRequest, -) (*types.QueryStakeRemovalsForBlockResponse, error) { - removals, err := qs.k.GetStakeRemovalsForBlock(ctx, req.BlockHeight) + req *types.QueryStakeRemovalsUpUntilBlockRequest, +) (*types.QueryStakeRemovalsUpUntilBlockResponse, error) { + moduleParams, err := qs.k.GetParams(ctx) if err != nil { return nil, err } - moduleParams, err := qs.k.GetParams(ctx) + maxLimit := moduleParams.MaxPageLimit + removals, left, err := qs.k.GetStakeRemovalsUpUntilBlock(ctx, req.BlockHeight, maxLimit) if err != nil { return nil, err } - maxLimit := moduleParams.MaxPageLimit - removalPointers := make([]*types.StakeRemovalInfo, 0) - outputLen := uint64(len(removals)) - if uint64(len(removals)) > maxLimit { - err = status.Error(codes.InvalidArgument, fmt.Sprintf("cannot query more than %d removals at once", maxLimit)) - outputLen = maxLimit + if left { + err = status.Error(codes.InvalidArgument, + fmt.Sprintf("more stake removals available, cannot query more than %d removals at once", maxLimit)) } - for i := uint64(0); i < outputLen; i++ { + removalPointers := make([]*types.StakeRemovalInfo, 0) + for i := 0; i < len(removals); i++ { removalPointers = append(removalPointers, &removals[i]) } - return &types.QueryStakeRemovalsForBlockResponse{Removals: removalPointers}, err + return &types.QueryStakeRemovalsUpUntilBlockResponse{Removals: removalPointers}, err } -func (qs queryServer) GetDelegateStakeRemovalsForBlock( +func (qs queryServer) GetDelegateStakeRemovalsUpUntilBlock( ctx context.Context, - req *types.QueryDelegateStakeRemovalsForBlockRequest, -) (*types.QueryDelegateStakeRemovalsForBlockResponse, error) { - removals, err := qs.k.GetDelegateStakeRemovalsForBlock(ctx, req.BlockHeight) + req *types.QueryDelegateStakeRemovalsUpUntilBlockRequest, +) (*types.QueryDelegateStakeRemovalsUpUntilBlockResponse, error) { + moduleParams, err := qs.k.GetParams(ctx) if err != nil { return nil, err } - moduleParams, err := qs.k.GetParams(ctx) + maxLimit := moduleParams.MaxPageLimit + removals, limitHit, err := qs.k.GetDelegateStakeRemovalsUpUntilBlock(ctx, req.BlockHeight, maxLimit) if err != nil { return nil, err } - maxLimit := moduleParams.MaxPageLimit - removalPointers := make([]*types.DelegateStakeRemovalInfo, 0) - outputLen := uint64(len(removals)) - if uint64(len(removals)) > maxLimit { - err = status.Error(codes.InvalidArgument, fmt.Sprintf("cannot query more than %d removals at once", maxLimit)) - outputLen = maxLimit + if limitHit { + err = status.Error(codes.InvalidArgument, + fmt.Sprintf("more delegate stake removals available, cannot query more than %d removals at once", maxLimit)) } - for i := uint64(0); i < outputLen; i++ { + removalPointers := make([]*types.DelegateStakeRemovalInfo, 0) + for i := 0; i < len(removals); i++ { removalPointers = append(removalPointers, &removals[i]) } - return &types.QueryDelegateStakeRemovalsForBlockResponse{Removals: removalPointers}, err + return &types.QueryDelegateStakeRemovalsUpUntilBlockResponse{Removals: removalPointers}, err } func (qs queryServer) GetStakeRemovalInfo( diff --git a/x/emissions/keeper/queryserver/query_server_stake_test.go b/x/emissions/keeper/queryserver/query_server_stake_test.go index 50cd04d78..fd7738643 100644 --- a/x/emissions/keeper/queryserver/query_server_stake_test.go +++ b/x/emissions/keeper/queryserver/query_server_stake_test.go @@ -282,11 +282,11 @@ func (s *KeeperTestSuite) TestGetStakeRemovalsForBlock() { require.NoError(err, "SetStakeRemoval should not produce an error") } - req := &types.QueryStakeRemovalsForBlockRequest{ + req := &types.QueryStakeRemovalsUpUntilBlockRequest{ BlockHeight: blockHeight, } - response, err := qs.GetStakeRemovalsForBlock(ctx, req) + response, err := qs.GetStakeRemovalsUpUntilBlock(ctx, req) require.NoError(err, "GetStakeRemovalsForBlock should not return an error") require.NotNil(response, "The response should not be nil") require.Len(response.Removals, len(expecteds), "The number of stake removals should match the number of expected stake removals") @@ -323,11 +323,11 @@ func (s *KeeperTestSuite) TestGetDelegateStakeRemovalsForBlock() { require.NoError(err, "SetStakeRemoval should not produce an error") } - req := &types.QueryDelegateStakeRemovalsForBlockRequest{ + req := &types.QueryDelegateStakeRemovalsUpUntilBlockRequest{ BlockHeight: blockHeight, } - response, err := qs.GetDelegateStakeRemovalsForBlock(ctx, req) + response, err := qs.GetDelegateStakeRemovalsUpUntilBlock(ctx, req) require.NoError(err, "GetStakeRemovalsForBlock should not return an error") require.NotNil(response, "The response should not be nil") require.Len(response.Removals, len(expecteds), "The number of stake removals should match the number of expected stake removals") @@ -364,16 +364,13 @@ func (s *KeeperTestSuite) TestGetDelegateStakePlacement() { delegatorAddr := sdk.AccAddress(PKS[0].Address()) reputerAddr := sdk.AccAddress(PKS[1].Address()) - topicId := uint64(123) + topicId := s.CreateOneTopic() stakeAmount := cosmosMath.NewInt(50) s.MintTokensToAddress(delegatorAddr, cosmosMath.NewInt(1000)) reputerInfo := types.OffchainNode{ - LibP2PKey: "reputer-libp2p-key-sample", - MultiAddress: "reputer-multi-address-sample", - Owner: "reputer-owner-sample", - NodeAddress: "reputer-node-address-sample", - NodeId: "reputer-node-id-sample", + Owner: "reputer-owner-sample", + NodeAddress: "reputer-node-address-sample", } keeper.InsertReputer(ctx, topicId, reputerAddr.String(), reputerInfo) @@ -454,10 +451,13 @@ func (s *KeeperTestSuite) TestGetDelegateStakeUponReputer() { // Check remaining stake for delegator remainingStake, err := keeper.GetStakeFromDelegatorInTopic(ctx, topicId, delegatorAddr) s.Require().NoError(err) - s.Require().Equal(initialStakeAmount.Sub(removeStakeAmount), remainingStake, "Remaining delegator stake should be initial minus removed amount") + expected := initialStakeAmount.Sub(removeStakeAmount) + s.Require().Equal(expected, remainingStake, "Remaining delegator stake should be initial minus removed amount") // Check remaining stake for delegator stakeUponReputer, err := keeper.GetDelegateStakeUponReputer(ctx, topicId, reputerAddr) + s.Require().NoError(err) + s.Require().Equal(expected, stakeUponReputer, "Remaining reputer stake should be initial minus removed amount") req := &types.QueryDelegateStakeUponReputerRequest{ TopicId: topicId, Target: reputerAddr, @@ -465,7 +465,7 @@ func (s *KeeperTestSuite) TestGetDelegateStakeUponReputer() { queryResponse, err := s.queryServer.GetDelegateStakeUponReputer(ctx, req) stakeUponReputer = queryResponse.Stake s.Require().NoError(err) - s.Require().Equal(initialStakeAmount.Sub(removeStakeAmount), stakeUponReputer, "Remaining reputer stake should be initial minus removed amount") + s.Require().Equal(expected, stakeUponReputer, "Remaining reputer stake should be initial minus removed amount") } func (s *KeeperTestSuite) TestGetStakeRemovalForReputerAndTopicId() { diff --git a/x/emissions/keeper/queryserver/query_server_test.go b/x/emissions/keeper/queryserver/query_server_test.go index 6d2870962..c58b1354a 100644 --- a/x/emissions/keeper/queryserver/query_server_test.go +++ b/x/emissions/keeper/queryserver/query_server_test.go @@ -175,18 +175,15 @@ func (s *KeeperTestSuite) CreateOneTopic() uint64 { creator := sdk.AccAddress(PKS[0].Address()) newTopicMsg := &types.MsgCreateNewTopic{ - Creator: creator.String(), - Metadata: metadata, - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: creator.String(), + Metadata: metadata, + LossMethod: "method", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } s.MintTokensToAddress(creator, types.DefaultParams().CreateTopicFee) @@ -207,18 +204,15 @@ func (s *KeeperTestSuite) TestCreateSeveralTopics() { creator := sdk.AccAddress(PKS[0].Address()) newTopicMsg := &types.MsgCreateNewTopic{ - Creator: creator.String(), - Metadata: metadata, - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: creator.String(), + Metadata: metadata, + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } creatorInitialBalance := types.DefaultParams().CreateTopicFee.Mul(cosmosMath.NewInt(3)) diff --git a/x/emissions/keeper/queryserver/query_server_topics.go b/x/emissions/keeper/queryserver/query_server_topics.go index bb71d7316..68b8e8808 100644 --- a/x/emissions/keeper/queryserver/query_server_topics.go +++ b/x/emissions/keeper/queryserver/query_server_topics.go @@ -4,7 +4,6 @@ import ( "context" "cosmossdk.io/errors" - cosmosMath "cosmossdk.io/math" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -39,7 +38,6 @@ func (qs queryServer) GetTopic(ctx context.Context, req *types.QueryTopicRequest params.TopicRewardAlpha, params.TopicRewardStakeImportance, params.TopicRewardFeeRevenueImportance, - cosmosMath.ZeroInt(), ) if err != nil { return nil, errors.Wrapf(err, "error getting current topic weight") @@ -72,7 +70,7 @@ func (qs queryServer) GetActiveTopics(ctx context.Context, req *types.QueryActiv // Return last payload timestamp & nonce by worker/reputer func (qs queryServer) GetTopicLastWorkerCommitInfo(ctx context.Context, req *types.QueryTopicLastCommitRequest) (*types.QueryTopicLastCommitResponse, error) { - lastCommit, err := qs.k.GetTopicLastCommit(ctx, req.TopicId, types.ActorType_INFERER) + lastCommit, err := qs.k.GetWorkerTopicLastCommit(ctx, req.TopicId) if err != nil { return nil, status.Error(codes.Internal, err.Error()) } @@ -82,7 +80,7 @@ func (qs queryServer) GetTopicLastWorkerCommitInfo(ctx context.Context, req *typ // Return last payload timestamp & nonce by worker/reputer func (qs queryServer) GetTopicLastReputerCommitInfo(ctx context.Context, req *types.QueryTopicLastCommitRequest) (*types.QueryTopicLastCommitResponse, error) { - lastCommit, err := qs.k.GetTopicLastCommit(ctx, req.TopicId, types.ActorType_REPUTER) + lastCommit, err := qs.k.GetReputerTopicLastCommit(ctx, req.TopicId) if err != nil { return nil, status.Error(codes.Internal, err.Error()) } @@ -165,21 +163,6 @@ func (qs queryServer) GetTopicFeeRevenue( return &types.QueryTopicFeeRevenueResponse{FeeRevenue: feeRevenue}, nil } -func (qs queryServer) GetChurnableTopics( - ctx context.Context, - req *types.QueryChurnableTopicsRequest, -) ( - *types.QueryChurnableTopicsResponse, - error, -) { - churnableTopics, err := qs.k.GetChurnableTopics(ctx) - if err != nil { - return nil, err - } - - return &types.QueryChurnableTopicsResponse{ChurnableTopicIds: churnableTopics}, nil -} - func (qs queryServer) GetRewardableTopics( ctx context.Context, req *types.QueryRewardableTopicsRequest, @@ -194,33 +177,3 @@ func (qs queryServer) GetRewardableTopics( return &types.QueryRewardableTopicsResponse{RewardableTopicIds: rewardableTopics}, nil } - -func (qs queryServer) GetTopicLastWorkerPayload( - ctx context.Context, - req *types.QueryTopicLastWorkerPayloadRequest, -) ( - *types.QueryTopicLastWorkerPayloadResponse, - error, -) { - payload, err := qs.k.GetTopicLastWorkerPayload(ctx, req.TopicId) - if err != nil { - return nil, err - } - - return &types.QueryTopicLastWorkerPayloadResponse{Payload: &payload}, nil -} - -func (qs queryServer) GetTopicLastReputerPayload( - ctx context.Context, - req *types.QueryTopicLastReputerPayloadRequest, -) ( - *types.QueryTopicLastReputerPayloadResponse, - error, -) { - payload, err := qs.k.GetTopicLastReputerPayload(ctx, req.TopicId) - if err != nil { - return nil, err - } - - return &types.QueryTopicLastReputerPayloadResponse{Payload: &payload}, nil -} diff --git a/x/emissions/keeper/queryserver/query_server_topics_test.go b/x/emissions/keeper/queryserver/query_server_topics_test.go index 3d79f0580..03149f846 100644 --- a/x/emissions/keeper/queryserver/query_server_topics_test.go +++ b/x/emissions/keeper/queryserver/query_server_topics_test.go @@ -101,16 +101,13 @@ func (s *KeeperTestSuite) TestGetLatestCommit() { nonce := types.Nonce{ BlockHeight: 95, } - actor := "TestReputer" topic := types.Topic{Id: 1} - _ = keeper.SetTopicLastCommit( + _ = keeper.SetReputerTopicLastCommit( ctx, topic.Id, int64(blockHeight), &nonce, - actor, - types.ActorType_REPUTER, ) req := &types.QueryTopicLastCommitRequest{ @@ -122,22 +119,18 @@ func (s *KeeperTestSuite) TestGetLatestCommit() { s.Require().NotNil(response, "The response should not be nil") s.Require().Equal(int64(blockHeight), response.LastCommit.BlockHeight, "Retrieved blockheight should match") s.Require().Equal(&nonce, response.LastCommit.Nonce, "The metadata of the retrieved nonce should match") - s.Require().Equal(actor, response.LastCommit.Actor, "The metadata of the retrieved nonce should match") topic2 := types.Topic{Id: 2} blockHeight = 101 nonce = types.Nonce{ BlockHeight: 98, } - actor = "TestWorker" - _ = keeper.SetTopicLastCommit( + _ = keeper.SetWorkerTopicLastCommit( ctx, topic2.Id, int64(blockHeight), &nonce, - actor, - types.ActorType_INFERER, ) req2 := &types.QueryTopicLastCommitRequest{ @@ -149,7 +142,6 @@ func (s *KeeperTestSuite) TestGetLatestCommit() { s.Require().NotNil(response2, "The response should not be nil") s.Require().Equal(int64(blockHeight), response2.LastCommit.BlockHeight, "Retrieved blockheight should match") s.Require().Equal(&nonce, response2.LastCommit.Nonce, "The metadata of the retrieved nonce should match") - s.Require().Equal(actor, response2.LastCommit.Actor, "The metadata of the retrieved nonce should match") } func (s *KeeperTestSuite) TestGetSetDeleteTopicRewardNonce() { @@ -309,37 +301,6 @@ func (s *KeeperTestSuite) TestGetTopicFeeRevenue() { s.Require().Equal(feeRev.String(), initialRevenueInt.String(), "Revenue should match the initial setup") } -func (s *KeeperTestSuite) TestGetChurnableTopics() { - ctx := s.ctx - keeper := s.emissionsKeeper - topicId := uint64(123) - topicId2 := uint64(456) - - err := keeper.AddChurnableTopic(ctx, topicId) - s.Require().NoError(err) - - err = keeper.AddChurnableTopic(ctx, topicId2) - s.Require().NoError(err) - - // Ensure the first topic is retrieved - req := &types.QueryChurnableTopicsRequest{} - response, err := s.queryServer.GetChurnableTopics(ctx, req) - retrievedIds := response.ChurnableTopicIds - s.Require().NoError(err) - s.Require().Len(retrievedIds, 2, "Should retrieve all churn ready topics") - - // Reset the churn ready topics - err = keeper.ResetChurnableTopics(ctx) - s.Require().NoError(err) - - // Ensure no topics remain - req = &types.QueryChurnableTopicsRequest{} - response, err = s.queryServer.GetChurnableTopics(ctx, req) - remainingIds := response.ChurnableTopicIds - s.Require().NoError(err) - s.Require().Len(remainingIds, 0, "Should have no churn ready topics after reset") -} - func (s *KeeperTestSuite) TestGetRewardableTopics() { ctx := s.ctx keeper := s.emissionsKeeper @@ -371,51 +332,3 @@ func (s *KeeperTestSuite) TestGetRewardableTopics() { s.Require().NoError(err) s.Require().Len(remainingIds, 1) } - -func (s *KeeperTestSuite) TestGetTopicLastWorkerPayload() { - ctx := s.ctx - keeper := s.emissionsKeeper - topicId := uint64(123) - blockHeight := int64(1000) - nonce := &types.Nonce{BlockHeight: blockHeight} - actor := "allo1j62tlhf5empp365vy39kgvr92uzrmglm7krt6p" - - // Set the worker payload - err := keeper.SetTopicLastWorkerPayload(ctx, topicId, blockHeight, nonce, actor) - s.Require().NoError(err) - - // Get the worker payload - req := &types.QueryTopicLastWorkerPayloadRequest{TopicId: topicId} - response, err := s.queryServer.GetTopicLastWorkerPayload(ctx, req) - s.Require().NoError(err) - payload := response.Payload - - // Check the retrieved values - s.Require().Equal(blockHeight, payload.BlockHeight, "Block height should match") - s.Require().Equal(actor, payload.Actor, "Actor ID should match") - s.Require().Equal(nonce, payload.Nonce, "Nonce should match") -} - -func (s *KeeperTestSuite) TestGetTopicLastReputerPayload() { - ctx := s.ctx - keeper := s.emissionsKeeper - topicId := uint64(456) - blockHeight := int64(2000) - nonce := &types.Nonce{BlockHeight: blockHeight} - actor := "allo1j62tlhf5empp365vy39kgvr92uzrmglm7krt6p" - - // Set the reputer payload - err := keeper.SetTopicLastReputerPayload(ctx, topicId, blockHeight, nonce, actor) - s.Require().NoError(err) - - // Get the reputer payload - req := &types.QueryTopicLastReputerPayloadRequest{TopicId: topicId} - response, err := s.queryServer.GetTopicLastReputerPayload(ctx, req) - s.Require().NoError(err) - payload := response.Payload - - // Check the retrieved values - s.Require().Equal(blockHeight, payload.BlockHeight, "Block height should match") - s.Require().Equal(actor, payload.Actor, "Actor ID should match") - s.Require().Equal(nonce, payload.Nonce, "Nonce should match") -} diff --git a/x/emissions/keeper/score_utils.go b/x/emissions/keeper/score_utils.go new file mode 100644 index 000000000..9ab753619 --- /dev/null +++ b/x/emissions/keeper/score_utils.go @@ -0,0 +1,85 @@ +package keeper + +import ( + "context" + + "github.com/allora-network/allora-chain/x/emissions/types" +) + +// Return low score and index among all inferences +func GetLowScoreFromAllLossBundles( + ctx context.Context, + k *Keeper, + topicId TopicId, + lossBundles types.ReputerValueBundles, +) (types.Score, int, error) { + + lowScoreIndex := 0 + lowScore, err := k.GetLatestReputerScore(ctx, topicId, lossBundles.ReputerValueBundles[0].ValueBundle.Reputer) + if err != nil { + return types.Score{}, lowScoreIndex, err + } + for index, extLossBundle := range lossBundles.ReputerValueBundles { + extScore, err := k.GetLatestReputerScore(ctx, topicId, extLossBundle.ValueBundle.Reputer) + if err != nil { + continue + } + if lowScore.Score.Gt(extScore.Score) { + lowScore = extScore + lowScoreIndex = index + } + } + return lowScore, lowScoreIndex, nil +} + +// Return low score and index among all inferences +func GetLowScoreFromAllInferences( + ctx context.Context, + k *Keeper, + topicId TopicId, + inferences types.Inferences, +) (types.Score, int, error) { + + lowScoreIndex := 0 + lowScore, err := k.GetLatestInfererScore(ctx, topicId, inferences.Inferences[0].Inferer) + if err != nil { + return types.Score{}, lowScoreIndex, err + } + for index, extInference := range inferences.Inferences { + extScore, err := k.GetLatestInfererScore(ctx, topicId, extInference.Inferer) + if err != nil { + continue + } + if lowScore.Score.Gt(extScore.Score) { + lowScore = extScore + lowScoreIndex = index + } + } + return lowScore, lowScoreIndex, nil +} + +// Return low score and index among all forecasts +func GetLowScoreFromAllForecasts( + ctx context.Context, + k *Keeper, + topicId TopicId, + forecasts types.Forecasts, +) (types.Score, int, error) { + + lowScoreIndex := 0 + lowScore, err := k.GetLatestForecasterScore(ctx, topicId, forecasts.Forecasts[0].Forecaster) + if err != nil { + return types.Score{}, lowScoreIndex, err + } + for index, extForecast := range forecasts.Forecasts { + extScore, err := k.GetLatestForecasterScore(ctx, topicId, extForecast.Forecaster) + if err != nil { + continue + } + if lowScore.Score.Gt(extScore.Score) { + lowScore = extScore + lowScoreIndex = index + } + } + return lowScore, lowScoreIndex, nil +} diff --git a/x/emissions/keeper/score_utils_test.go b/x/emissions/keeper/score_utils_test.go new file mode 100644 index 000000000..2167f87be --- /dev/null +++ b/x/emissions/keeper/score_utils_test.go @@ -0,0 +1,163 @@ +package keeper_test + +import ( + alloraMath "github.com/allora-network/allora-chain/math" + keeper "github.com/allora-network/allora-chain/x/emissions/keeper" + "github.com/allora-network/allora-chain/x/emissions/types" +) + +func (s *KeeperTestSuite) TestGetLowScoreFromAllInferences() { + ctx := s.ctx + k := s.emissionsKeeper + topicId := uint64(1) + blockHeightInferences := int64(10) + + worker1 := "worker1" + worker2 := "worker2" + worker3 := "worker3" + + score1 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker1, Score: alloraMath.NewDecFromInt64(95)} + score2 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker2, Score: alloraMath.NewDecFromInt64(90)} + score3 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker3, Score: alloraMath.NewDecFromInt64(99)} + _ = k.SetLatestInfererScore(ctx, topicId, worker1, score1) + _ = k.SetLatestInfererScore(ctx, topicId, worker2, score2) + _ = k.SetLatestInfererScore(ctx, topicId, worker3, score3) + + allInferences := types.Inferences{ + Inferences: []*types.Inference{ + {TopicId: topicId, BlockHeight: blockHeightInferences, Inferer: worker1, Value: alloraMath.MustNewDecFromString("0.52")}, + {TopicId: topicId, BlockHeight: blockHeightInferences, Inferer: worker2, Value: alloraMath.MustNewDecFromString("0.71")}, + {TopicId: topicId, BlockHeight: blockHeightInferences, Inferer: worker3, Value: alloraMath.MustNewDecFromString("0.71")}, + }, + } + lowScore, lowScoreIndex, err := keeper.GetLowScoreFromAllInferences(ctx, &k, topicId, allInferences) + s.Require().NoError(err) + s.Require().Equal(lowScore, score2) + s.Require().Equal(lowScoreIndex, 1) +} + +func (s *KeeperTestSuite) TestGetLowScoreFromAllForecasts() { + ctx := s.ctx + k := s.emissionsKeeper + topicId := uint64(1) + blockHeightInferences := int64(10) + + worker1 := "worker1" + worker2 := "worker2" + worker3 := "worker3" + + score1 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker1, Score: alloraMath.NewDecFromInt64(95)} + score2 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker2, Score: alloraMath.NewDecFromInt64(90)} + score3 := types.Score{TopicId: topicId, BlockHeight: 2, Address: worker3, Score: alloraMath.NewDecFromInt64(99)} + _ = k.SetLatestForecasterScore(ctx, topicId, worker1, score1) + _ = k.SetLatestForecasterScore(ctx, topicId, worker2, score2) + _ = k.SetLatestForecasterScore(ctx, topicId, worker3, score3) + + allForecasts := types.Forecasts{ + Forecasts: []*types.Forecast{ + { + TopicId: topicId, + BlockHeight: blockHeightInferences, + Forecaster: worker1, + ForecastElements: []*types.ForecastElement{ + { + Inferer: worker1, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + { + Inferer: worker2, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + }, + }, + { + TopicId: topicId, + BlockHeight: blockHeightInferences, + Forecaster: worker2, + ForecastElements: []*types.ForecastElement{ + { + Inferer: worker1, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + { + Inferer: worker2, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + }, + }, + { + TopicId: topicId, + BlockHeight: blockHeightInferences, + Forecaster: worker3, + ForecastElements: []*types.ForecastElement{ + { + Inferer: worker1, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + { + Inferer: worker2, + Value: alloraMath.MustNewDecFromString("0.52"), + }, + }, + }, + }, + } + lowScore, lowScoreIndex, err := keeper.GetLowScoreFromAllForecasts(ctx, &k, topicId, allForecasts) + s.Require().NoError(err) + s.Require().Equal(lowScore, score2) + s.Require().Equal(lowScoreIndex, 1) +} + +func (s *KeeperTestSuite) TestGetLowScoreFromAllLossBundles() { + ctx := s.ctx + k := s.emissionsKeeper + topicId := uint64(1) + blockHeight := int64(10) + reputerRequestNonce := &types.ReputerRequestNonce{ + ReputerNonce: &types.Nonce{BlockHeight: blockHeight}, + } + + reputer1 := "reputer1" + reputer2 := "reputer2" + reputer3 := "reputer3" + + score1 := types.Score{TopicId: topicId, BlockHeight: 2, Address: reputer1, Score: alloraMath.NewDecFromInt64(95)} + score2 := types.Score{TopicId: topicId, BlockHeight: 2, Address: reputer2, Score: alloraMath.NewDecFromInt64(90)} + score3 := types.Score{TopicId: topicId, BlockHeight: 2, Address: reputer3, Score: alloraMath.NewDecFromInt64(99)} + _ = k.SetLatestReputerScore(ctx, topicId, reputer1, score1) + _ = k.SetLatestReputerScore(ctx, topicId, reputer2, score2) + _ = k.SetLatestReputerScore(ctx, topicId, reputer3, score3) + + allReputerLosses := types.ReputerValueBundles{ + ReputerValueBundles: []*types.ReputerValueBundle{ + { + ValueBundle: &types.ValueBundle{ + Reputer: reputer1, + CombinedValue: alloraMath.MustNewDecFromString(".0000117005278862668"), + ReputerRequestNonce: reputerRequestNonce, + TopicId: topicId, + }, + }, + { + ValueBundle: &types.ValueBundle{ + Reputer: reputer2, + CombinedValue: alloraMath.MustNewDecFromString(".00000962701954026944"), + ReputerRequestNonce: reputerRequestNonce, + TopicId: topicId, + }, + }, + { + ValueBundle: &types.ValueBundle{ + Reputer: reputer3, + CombinedValue: alloraMath.MustNewDecFromString(".0000256948644008351"), + ReputerRequestNonce: reputerRequestNonce, + TopicId: topicId, + }, + }, + }, + } + lowScore, lowScoreIndex, err := keeper.GetLowScoreFromAllLossBundles(ctx, &k, topicId, allReputerLosses) + s.Require().NoError(err) + s.Require().Equal(lowScore, score2) + s.Require().Equal(lowScoreIndex, 1) +} diff --git a/x/emissions/keeper/topic_weight.go b/x/emissions/keeper/topic_weight.go index e58107ed4..a703e0402 100644 --- a/x/emissions/keeper/topic_weight.go +++ b/x/emissions/keeper/topic_weight.go @@ -45,7 +45,6 @@ func (k *Keeper) GetCurrentTopicWeight( topicRewardAlpha alloraMath.Dec, stakeImportance alloraMath.Dec, feeImportance alloraMath.Dec, - additionalRevenue cosmosMath.Int, ) (weight alloraMath.Dec, topicRevenue cosmosMath.Int, err error) { topicStake, err := k.GetTopicStake(ctx, topicId) if err != nil { @@ -64,17 +63,16 @@ func (k *Keeper) GetCurrentTopicWeight( } // Calc target weight using fees, epoch length, stake, and params - newFeeRevenue := additionalRevenue.Add(topicFeeRevenue) - feeRevenue, err := alloraMath.NewDecFromSdkInt(newFeeRevenue) + topicFeeRevenueDec, err := alloraMath.NewDecFromSdkInt(topicFeeRevenue) if err != nil { return alloraMath.Dec{}, cosmosMath.Int{}, errors.Wrapf(err, "failed to convert topic fee revenue to dec") } - if !feeRevenue.Equal(alloraMath.ZeroDec()) { + if !topicFeeRevenueDec.Equal(alloraMath.ZeroDec()) { targetWeight, err := k.GetTargetWeight( topicStakeDec, topicEpochLength, - feeRevenue, + topicFeeRevenueDec, stakeImportance, feeImportance, ) diff --git a/x/emissions/migrations/v2/migrate.go b/x/emissions/migrations/v2/migrate.go new file mode 100644 index 000000000..fbb822641 --- /dev/null +++ b/x/emissions/migrations/v2/migrate.go @@ -0,0 +1,319 @@ +package v2 + +import ( + "cosmossdk.io/collections" + "cosmossdk.io/store/prefix" + storetypes "cosmossdk.io/store/types" + alloraMath "github.com/allora-network/allora-chain/math" + "github.com/allora-network/allora-chain/x/emissions/keeper" + oldtypes "github.com/allora-network/allora-chain/x/emissions/migrations/v2/types" + "github.com/allora-network/allora-chain/x/emissions/types" + "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/runtime" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/gogo/protobuf/proto" +) + +func MigrateStore(ctx sdk.Context, emissionsKeeper keeper.Keeper) error { + ctx.Logger().Info("MIGRATING STORE FROM VERSION 1 TO VERSION 2") + storageService := emissionsKeeper.GetStorageService() + store := runtime.KVStoreAdapter(storageService.OpenKVStore(ctx)) + cdc := emissionsKeeper.GetBinaryCodec() + + removeOldKVStores(store) + + err := MigrateTopics(store, cdc) + if err != nil { + return err + } + err = MigrateOffchainNode(store, cdc) + if err != nil { + return err + } + err = MigrateNetworkLossBundles(store, cdc) + if err != nil { + return err + } + err = MigrateAllLossBundles(store, cdc) + if err != nil { + return err + } + err = MigrateAllRecordCommits(store, cdc) + if err != nil { + return err + } + + err = MigrateParams(ctx, emissionsKeeper) + if err != nil { + return err + } + + return nil +} + +func MigrateParams(ctx sdk.Context, emissionsKeeper keeper.Keeper) error { + defaultParams := types.DefaultParams() + err := emissionsKeeper.SetParams(ctx, defaultParams) + if err != nil { + return err + } + return nil +} + +func MigrateTopics(store storetypes.KVStore, cdc codec.BinaryCodec) error { + topicStore := prefix.NewStore(store, types.TopicsKey) + iterator := topicStore.Iterator(nil, nil) + + valueToAdd := make(map[string]types.Topic, 0) + for ; iterator.Valid(); iterator.Next() { + var oldMsg oldtypes.Topic + err := proto.Unmarshal(iterator.Value(), &oldMsg) + if err != nil { + return err + } + + // Make newWorkerSubmissionWindow to be the 10% of the epoch length + newWorkerSubmissionWindow := oldMsg.EpochLength / 10 + // set min and max boundaries: max 60 blocks + if newWorkerSubmissionWindow > 60 { + newWorkerSubmissionWindow = 60 + } else if newWorkerSubmissionWindow == 0 { + newWorkerSubmissionWindow = max(1, oldMsg.EpochLength/2) + } + + newMsg := types.Topic{ + Id: oldMsg.Id, + Creator: oldMsg.Creator, + Metadata: oldMsg.Metadata, + LossMethod: "mse", + EpochLastEnded: oldMsg.EpochLastEnded, // Add default value + EpochLength: oldMsg.EpochLength, + GroundTruthLag: oldMsg.GroundTruthLag, + PNorm: oldMsg.PNorm, + AlphaRegret: oldMsg.AlphaRegret, + AllowNegative: oldMsg.AllowNegative, + Epsilon: alloraMath.MustNewDecFromString("0.01"), + InitialRegret: alloraMath.MustNewDecFromString("0"), + WorkerSubmissionWindow: newWorkerSubmissionWindow, + } + + valueToAdd[string(iterator.Key())] = newMsg + } + iterator.Close() + + for key, value := range valueToAdd { + topicStore.Set([]byte(key), cdc.MustMarshal(&value)) + } + + return nil +} + +func MigrateOffchainStore(workerStore storetypes.KVStore, cdc codec.BinaryCodec) error { + iterator := workerStore.Iterator(nil, nil) + keysToDelete := make([][]byte, 0) + for ; iterator.Valid(); iterator.Next() { + keysToDelete = append(keysToDelete, iterator.Key()) + } + iterator.Close() + + // delete the old keys + for _, key := range keysToDelete { + oldNode := workerStore.Get(key) + var oldMsg oldtypes.OffchainNode + err := proto.Unmarshal(oldNode, &oldMsg) + if err != nil { + return err + } + newMsg := types.OffchainNode{ + NodeAddress: oldMsg.NodeAddress, + Owner: oldMsg.Owner, + } + workerStore.Set([]byte(oldMsg.NodeAddress), cdc.MustMarshal(&newMsg)) + workerStore.Delete(key) + } + return nil +} + +func MigrateOffchainNode(store storetypes.KVStore, cdc codec.BinaryCodec) error { + workerStore := prefix.NewStore(store, types.WorkerNodesKey) + MigrateOffchainStore(workerStore, cdc) + reputerStore := prefix.NewStore(store, types.ReputerNodesKey) + MigrateOffchainStore(reputerStore, cdc) + return nil +} + +func MigrateNetworkLossBundles(store storetypes.KVStore, cdc codec.BinaryCodec) error { + networkLossBundlesStore := prefix.NewStore(store, types.NetworkLossBundlesKey) + iterator := networkLossBundlesStore.Iterator(nil, nil) + + valueToAdd := make(map[string]types.ValueBundle, 0) + for ; iterator.Valid(); iterator.Next() { + var oldMsg oldtypes.ValueBundle + err := proto.Unmarshal(iterator.Value(), &oldMsg) + if err != nil { + return err + } + + newMsg := types.ValueBundle{ + TopicId: oldMsg.TopicId, + ReputerRequestNonce: &types.ReputerRequestNonce{ + ReputerNonce: &types.Nonce{ + BlockHeight: oldMsg.ReputerRequestNonce.ReputerNonce.BlockHeight, + }, + }, + Reputer: oldMsg.Reputer, + ExtraData: oldMsg.ExtraData, + CombinedValue: oldMsg.CombinedValue, + NaiveValue: oldMsg.NaiveValue, + OneOutInfererForecasterValues: []*types.OneOutInfererForecasterValues{}, + } + + newInfererValues := make([]*types.WorkerAttributedValue, 0) + newForecastValues := make([]*types.WorkerAttributedValue, 0) + newOneOutInfererValues := make([]*types.WithheldWorkerAttributedValue, 0) + newOneOutForecasterValues := make([]*types.WithheldWorkerAttributedValue, 0) + newOneInForecastValues := make([]*types.WorkerAttributedValue, 0) + for _, inference := range oldMsg.InfererValues { + newInfererValues = append(newInfererValues, &types.WorkerAttributedValue{ + Worker: inference.Worker, + Value: inference.Value, + }) + } + for _, forecast := range oldMsg.ForecasterValues { + newForecastValues = append(newForecastValues, &types.WorkerAttributedValue{ + Worker: forecast.Worker, + Value: forecast.Value, + }) + } + for _, inference := range oldMsg.OneOutInfererValues { + newOneOutInfererValues = append(newOneOutInfererValues, &types.WithheldWorkerAttributedValue{ + Worker: inference.Worker, + Value: inference.Value, + }) + } + for _, forecast := range oldMsg.OneOutForecasterValues { + newOneOutForecasterValues = append(newOneOutForecasterValues, &types.WithheldWorkerAttributedValue{ + Worker: forecast.Worker, + Value: forecast.Value, + }) + } + for _, forecast := range oldMsg.OneInForecasterValues { + newOneInForecastValues = append(newOneInForecastValues, &types.WorkerAttributedValue{ + Worker: forecast.Worker, + Value: forecast.Value, + }) + } + + newMsg.InfererValues = newInfererValues + newMsg.ForecasterValues = newForecastValues + newMsg.OneOutInfererValues = newOneOutInfererValues + newMsg.OneOutForecasterValues = newOneOutForecasterValues + newMsg.OneInForecasterValues = newOneInForecastValues + + valueToAdd[string(iterator.Key())] = newMsg + } + iterator.Close() + + for key, value := range valueToAdd { + networkLossBundlesStore.Set([]byte(key), cdc.MustMarshal(&value)) + } + + return nil +} + +func MigrateAllLossBundles(store storetypes.KVStore, cdc codec.BinaryCodec) error { + allLossBundlesStore := prefix.NewStore(store, types.AllLossBundlesKey) + iterator := allLossBundlesStore.Iterator(nil, nil) + + valuesToAdd := make(map[string]types.ReputerValueBundles, 0) + for ; iterator.Valid(); iterator.Next() { + var oldMsg types.ReputerValueBundles + err := proto.Unmarshal(iterator.Value(), &oldMsg) + if err != nil { + return err + } + + newMsg := types.ReputerValueBundles{ + ReputerValueBundles: []*types.ReputerValueBundle{}, + } + + for _, valueBundle := range oldMsg.ReputerValueBundles { + newMsg.ReputerValueBundles = append(newMsg.ReputerValueBundles, + &types.ReputerValueBundle{ + ValueBundle: &types.ValueBundle{ + TopicId: valueBundle.ValueBundle.TopicId, + ReputerRequestNonce: valueBundle.ValueBundle.ReputerRequestNonce, + Reputer: valueBundle.ValueBundle.Reputer, + ExtraData: valueBundle.ValueBundle.ExtraData, + CombinedValue: valueBundle.ValueBundle.CombinedValue, + InfererValues: valueBundle.ValueBundle.InfererValues, + ForecasterValues: valueBundle.ValueBundle.ForecasterValues, + NaiveValue: valueBundle.ValueBundle.NaiveValue, + OneOutInfererForecasterValues: []*types.OneOutInfererForecasterValues{}, + OneOutInfererValues: valueBundle.ValueBundle.OneOutInfererValues, + OneOutForecasterValues: valueBundle.ValueBundle.OneOutForecasterValues, + OneInForecasterValues: valueBundle.ValueBundle.OneInForecasterValues, + }, + Pubkey: valueBundle.Pubkey, + Signature: valueBundle.Signature, + }, + ) + } + valuesToAdd[string(iterator.Key())] = newMsg + } + iterator.Close() + + for key, value := range valuesToAdd { + allLossBundlesStore.Set([]byte(key), cdc.MustMarshal(&value)) + } + + return nil +} + +func MigrateAllRecordCommits(store storetypes.KVStore, cdc codec.BinaryCodec) error { + err := restoreAllRecordCommits(store, cdc, types.TopicLastWorkerCommitKey) + if err != nil { + return err + } + err = restoreAllRecordCommits(store, cdc, types.TopicLastReputerCommitKey) + if err != nil { + return err + } + return nil +} + +func restoreAllRecordCommits(store storetypes.KVStore, cdc codec.BinaryCodec, commitKey collections.Prefix) error { + topicLastWorkerCommitStore := prefix.NewStore(store, commitKey) + iterator := topicLastWorkerCommitStore.Iterator(nil, nil) + + valuesToAdd := make(map[string]types.TimestampedActorNonce, 0) + for ; iterator.Valid(); iterator.Next() { + var oldMsg oldtypes.TimestampedActorNonce + err := proto.Unmarshal(iterator.Value(), &oldMsg) + if err != nil { + return err + } + + newMsg := types.TimestampedActorNonce{ + BlockHeight: oldMsg.BlockHeight, + Nonce: &types.Nonce{ + BlockHeight: oldMsg.Nonce.BlockHeight, + }, + } + + valuesToAdd[string(iterator.Key())] = newMsg + } + iterator.Close() + + for key, value := range valuesToAdd { + topicLastWorkerCommitStore.Set([]byte(key), cdc.MustMarshal(&value)) + } + + return nil +} + +func removeOldKVStores(store storetypes.KVStore) { + store.Delete(types.ChurnableTopicsKey) + store.Delete(types.TopicLastWorkerPayloadKey) + store.Delete(types.TopicLastReputerPayloadKey) +} diff --git a/x/emissions/migrations/v2/migrate_test.go b/x/emissions/migrations/v2/migrate_test.go new file mode 100644 index 000000000..b4da036d5 --- /dev/null +++ b/x/emissions/migrations/v2/migrate_test.go @@ -0,0 +1,497 @@ +package v2_test + +import ( + "testing" + "time" + + "cosmossdk.io/collections" + "cosmossdk.io/core/header" + "cosmossdk.io/core/store" + "cosmossdk.io/log" + "cosmossdk.io/store/prefix" + storetypes "cosmossdk.io/store/types" + "github.com/allora-network/allora-chain/app/params" + alloraMath "github.com/allora-network/allora-chain/math" + "github.com/allora-network/allora-chain/x/emissions/keeper" + v2 "github.com/allora-network/allora-chain/x/emissions/migrations/v2" + oldtypes "github.com/allora-network/allora-chain/x/emissions/migrations/v2/types" + "github.com/allora-network/allora-chain/x/emissions/module" + "github.com/allora-network/allora-chain/x/emissions/types" + "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/codec/address" + "github.com/cosmos/cosmos-sdk/runtime" + "github.com/cosmos/cosmos-sdk/testutil" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/x/auth" + "github.com/cosmos/cosmos-sdk/x/bank" + "github.com/gogo/protobuf/proto" + "github.com/stretchr/testify/suite" + + minttypes "github.com/allora-network/allora-chain/x/mint/types" + moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" + authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec" + authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" +) + +type MigrationsTestSuite struct { + suite.Suite + ctx sdk.Context + codec codec.Codec + storeService store.KVStoreService + emissionsKeeper keeper.Keeper +} + +func (s *MigrationsTestSuite) SetupTest() { + key := storetypes.NewKVStoreKey("emissions") + storeService := runtime.NewKVStoreService(key) + s.storeService = storeService + testCtx := testutil.DefaultContextWithDB(s.T(), key, storetypes.NewTransientStoreKey("transient_test")) + ctx := testCtx.Ctx.WithHeaderInfo(header.Info{Time: time.Now()}) + s.ctx = ctx + encCfg := moduletestutil.MakeTestEncodingConfig(auth.AppModuleBasic{}, bank.AppModuleBasic{}, module.AppModule{}) + s.codec = encCfg.Codec + addressCodec := address.NewBech32Codec(params.Bech32PrefixAccAddr) + maccPerms := map[string][]string{ + "fee_collector": {"minter"}, + "mint": {"minter"}, + types.AlloraStakingAccountName: {"burner", "minter", "staking"}, + types.AlloraRewardsAccountName: {"minter"}, + types.AlloraPendingRewardForDelegatorAccountName: {"minter"}, + minttypes.EcosystemModuleName: nil, + "bonded_tokens_pool": {"burner", "staking"}, + "not_bonded_tokens_pool": {"burner", "staking"}, + "multiple permissions account": {"burner", "minter", "staking"}, + "random permission": {"random"}, + } + accountKeeper := authkeeper.NewAccountKeeper( + encCfg.Codec, + storeService, + authtypes.ProtoBaseAccount, + maccPerms, + authcodec.NewBech32Codec(params.Bech32PrefixAccAddr), + params.Bech32PrefixAccAddr, + authtypes.NewModuleAddress("gov").String(), + ) + bankKeeper := bankkeeper.NewBaseKeeper( + encCfg.Codec, + storeService, + accountKeeper, + map[string]bool{}, + authtypes.NewModuleAddress(govtypes.ModuleName).String(), + log.NewNopLogger(), + ) + s.emissionsKeeper = keeper.NewKeeper( + encCfg.Codec, + addressCodec, + storeService, + accountKeeper, + bankKeeper, + authtypes.FeeCollectorName) +} + +func TestMigrationsTestSuite(t *testing.T) { + suite.Run(t, new(MigrationsTestSuite)) +} + +func (s *MigrationsTestSuite) TestMigrateStore() { + err := v2.MigrateStore(s.ctx, s.emissionsKeeper) + s.Require().NoError(err) +} + +func (s *MigrationsTestSuite) TestMigrateTopic() { + store := runtime.KVStoreAdapter(s.storeService.OpenKVStore(s.ctx)) + cdc := s.emissionsKeeper.GetBinaryCodec() + + oldTopic := oldtypes.Topic{ + Id: 1, + Creator: "creator", + Metadata: "metadata", + LossLogic: "losslogic", + LossMethod: "lossmethod", + InferenceLogic: "inferencelogic", + InferenceMethod: "inferencemethod", + EpochLastEnded: 0, + EpochLength: 100, + GroundTruthLag: 10, + DefaultArg: "defaultarg", + PNorm: alloraMath.NewDecFromInt64(3), + AlphaRegret: alloraMath.MustNewDecFromString("0.1"), + AllowNegative: false, + } + + bz, err := proto.Marshal(&oldTopic) + s.Require().NoError(err) + + topicStore := prefix.NewStore(store, types.TopicsKey) + topicStore.Set([]byte("testKey"), bz) + + err = v2.MigrateTopics(store, cdc) + s.Require().NoError(err) + + // Verify the store has been updated correctly + iterator := topicStore.Iterator(nil, nil) + s.Require().True(iterator.Valid()) + + var newMsg types.Topic + err = proto.Unmarshal(iterator.Value(), &newMsg) + s.Require().NoError(err) + + s.Require().Equal(oldTopic.Id, newMsg.Id) + s.Require().Equal(oldTopic.Creator, newMsg.Creator) + s.Require().Equal(oldTopic.Metadata, newMsg.Metadata) + s.Require().Equal("mse", newMsg.LossMethod) + s.Require().Equal(oldTopic.EpochLength, newMsg.EpochLength) + s.Require().Equal(oldTopic.GroundTruthLag, newMsg.GroundTruthLag) + s.Require().Equal(oldTopic.PNorm, newMsg.PNorm) + s.Require().Equal(oldTopic.AlphaRegret, newMsg.AlphaRegret) + s.Require().Equal(oldTopic.AllowNegative, newMsg.AllowNegative) + s.Require().Equal(oldTopic.EpochLastEnded, newMsg.EpochLastEnded) +} + +func (s *MigrationsTestSuite) MigrateOffchainNodeStore(store prefix.Store, cdc codec.BinaryCodec, prefixKey collections.Prefix) { + oldOffchainNode := oldtypes.OffchainNode{ + LibP2PKey: "testLibP2PKey", + MultiAddress: "testMultiAddress", + Owner: "testOwner", + NodeAddress: "testNodeAddress", + NodeId: "testNodeId", + } + oldOffchainNode2 := oldtypes.OffchainNode{ + LibP2PKey: "testLibP2PKey2", + MultiAddress: "testMultiAddress2", + Owner: "testOwner2", + NodeAddress: "testNodeAddress2", + NodeId: "testNodeId2", + } + + bz, err := proto.Marshal(&oldOffchainNode) + s.Require().NoError(err) + bz2, err := proto.Marshal(&oldOffchainNode2) + s.Require().NoError(err) + + offchainNodeStore := prefix.NewStore(store, prefixKey) + offchainNodeStore.Set([]byte("testLibP2PKey"), bz) + offchainNodeStore.Set([]byte("testLibP2PKey2"), bz2) + + err = v2.MigrateOffchainNode(store, cdc) + s.Require().NoError(err) + + // Verify the store has been updated correctly + + oldObj := offchainNodeStore.Get([]byte("testLibP2PKey")) + s.Require().Nil(oldObj) + oldObj2 := offchainNodeStore.Get([]byte("testLibP2PKey2")) + s.Require().Nil(oldObj2) + + newObj := offchainNodeStore.Get([]byte("testNodeAddress")) + s.Require().NotNil(newObj) + newObj2 := offchainNodeStore.Get([]byte("testNodeAddress2")) + s.Require().NotNil(newObj2) + + var newMsg types.OffchainNode + err = proto.Unmarshal(newObj, &newMsg) + s.Require().NoError(err) + s.Require().Equal(oldOffchainNode.Owner, newMsg.Owner) + s.Require().Equal(oldOffchainNode.NodeAddress, newMsg.NodeAddress) + // second object + err = proto.Unmarshal(newObj2, &newMsg) + s.Require().NoError(err) + s.Require().Equal(oldOffchainNode2.Owner, newMsg.Owner) + s.Require().Equal(oldOffchainNode2.NodeAddress, newMsg.NodeAddress) + +} + +func (s *MigrationsTestSuite) TestMigrateOffchainNodeWorkers() { + store := runtime.KVStoreAdapter(s.storeService.OpenKVStore(s.ctx)) + cdc := s.emissionsKeeper.GetBinaryCodec() + offchainNodeStoreWorker := prefix.NewStore(store, types.WorkerNodesKey) + s.MigrateOffchainNodeStore(offchainNodeStoreWorker, cdc, types.WorkerNodesKey) +} + +func (s *MigrationsTestSuite) TestMigrateOffchainNodeReputers() { + store := runtime.KVStoreAdapter(s.storeService.OpenKVStore(s.ctx)) + cdc := s.emissionsKeeper.GetBinaryCodec() + offchainNodeStoreReputer := prefix.NewStore(store, types.ReputerNodesKey) + s.MigrateOffchainNodeStore(offchainNodeStoreReputer, cdc, types.ReputerNodesKey) +} + +func areAttributedArraysEqual(oldValues []*oldtypes.WorkerAttributedValue, newValues []*types.WorkerAttributedValue) bool { + if len(oldValues) != len(newValues) { + return false + } + for i, oldVal := range oldValues { + if oldVal.Worker != newValues[i].Worker || oldVal.Value != newValues[i].Value { + return false + } + } + return true +} + +func areWithHeldArraysEqual(oldValues []*oldtypes.WithheldWorkerAttributedValue, newValues []*types.WithheldWorkerAttributedValue) bool { + if len(oldValues) != len(newValues) { + return false + } + for i, oldVal := range oldValues { + if oldVal.Worker != newValues[i].Worker || oldVal.Value != newValues[i].Value { + return false + } + } + return true +} + +func (s *MigrationsTestSuite) TestMigrateValueBundle() { + store := runtime.KVStoreAdapter(s.storeService.OpenKVStore(s.ctx)) + cdc := s.emissionsKeeper.GetBinaryCodec() + + reputerNonce := &oldtypes.Nonce{ + BlockHeight: 1, + } + oldValueBundle := oldtypes.ValueBundle{ + TopicId: 1, + ReputerRequestNonce: &oldtypes.ReputerRequestNonce{ + ReputerNonce: reputerNonce, + }, + ExtraData: []byte("testExtraData"), + CombinedValue: alloraMath.OneDec(), + InfererValues: []*oldtypes.WorkerAttributedValue{ + { + Worker: "testWorker", + Value: alloraMath.OneDec(), + }, + }, + ForecasterValues: []*oldtypes.WorkerAttributedValue{ + { + Worker: "testWorker", + Value: alloraMath.OneDec(), + }, + }, + NaiveValue: alloraMath.OneDec(), + OneOutInfererValues: []*oldtypes.WithheldWorkerAttributedValue{ + { + Worker: "testWorker", + Value: alloraMath.OneDec(), + }, + }, + OneOutForecasterValues: []*oldtypes.WithheldWorkerAttributedValue{ + { + Worker: "testWorker", + Value: alloraMath.OneDec(), + }, + }, + OneInForecasterValues: []*oldtypes.WorkerAttributedValue{ + { + Worker: "testWorker", + Value: alloraMath.OneDec(), + }, + }, + } + + bz, err := proto.Marshal(&oldValueBundle) + s.Require().NoError(err) + + valueBundleStore := prefix.NewStore(store, types.NetworkLossBundlesKey) + valueBundleStore.Set([]byte("testKey"), bz) + + err = v2.MigrateNetworkLossBundles(store, cdc) + s.Require().NoError(err) + + // Verify the store has been updated correctly + iterator := valueBundleStore.Iterator(nil, nil) + s.Require().True(iterator.Valid()) + + var newMsg types.ValueBundle + err = proto.Unmarshal(iterator.Value(), &newMsg) + s.Require().NoError(err) + + s.Require().Equal(oldValueBundle.TopicId, newMsg.TopicId) + s.Require().Equal(oldValueBundle.ReputerRequestNonce.ReputerNonce.BlockHeight, newMsg.ReputerRequestNonce.ReputerNonce.BlockHeight) + s.Require().Equal(oldValueBundle.Reputer, newMsg.Reputer) + s.Require().Equal(oldValueBundle.ExtraData, newMsg.ExtraData) + s.Require().Equal(oldValueBundle.CombinedValue, newMsg.CombinedValue) + // check that the infererValues have been migrated correctly in a loop + s.Require().True(areAttributedArraysEqual(oldValueBundle.InfererValues, newMsg.InfererValues)) + s.Require().True(areAttributedArraysEqual(oldValueBundle.ForecasterValues, newMsg.ForecasterValues)) + s.Require().Equal(oldValueBundle.NaiveValue, newMsg.NaiveValue) + + s.Require().True(areWithHeldArraysEqual(oldValueBundle.OneOutInfererValues, newMsg.OneOutInfererValues)) + s.Require().True(areWithHeldArraysEqual(oldValueBundle.OneOutForecasterValues, newMsg.OneOutForecasterValues)) + s.Require().True(areAttributedArraysEqual(oldValueBundle.OneInForecasterValues, newMsg.OneInForecasterValues)) + + s.Require().Equal(0, len(newMsg.OneOutInfererForecasterValues)) +} + +func (s *MigrationsTestSuite) TestMigrateAllLossBundles() { + store := runtime.KVStoreAdapter(s.storeService.OpenKVStore(s.ctx)) + cdc := s.emissionsKeeper.GetBinaryCodec() + + reputerNonce := &oldtypes.Nonce{ + BlockHeight: 1, + } + oldValueBundle := oldtypes.ValueBundle{ + TopicId: 1, + ReputerRequestNonce: &oldtypes.ReputerRequestNonce{ + ReputerNonce: reputerNonce, + }, + ExtraData: []byte("testExtraData"), + CombinedValue: alloraMath.OneDec(), + InfererValues: []*oldtypes.WorkerAttributedValue{ + { + Worker: "testWorker", + Value: alloraMath.OneDec(), + }, + }, + ForecasterValues: []*oldtypes.WorkerAttributedValue{ + { + Worker: "testWorker", + Value: alloraMath.OneDec(), + }, + }, + NaiveValue: alloraMath.OneDec(), + OneOutInfererValues: []*oldtypes.WithheldWorkerAttributedValue{ + { + Worker: "testWorker", + Value: alloraMath.OneDec(), + }, + }, + OneOutForecasterValues: []*oldtypes.WithheldWorkerAttributedValue{ + { + Worker: "testWorker", + Value: alloraMath.OneDec(), + }, + }, + OneInForecasterValues: []*oldtypes.WorkerAttributedValue{ + { + Worker: "testWorker", + Value: alloraMath.OneDec(), + }, + }, + } + + reputerValueBundle := oldtypes.ReputerValueBundle{ + ValueBundle: &oldValueBundle, + Signature: []byte("testSignature"), + Pubkey: "testPubkey", + } + + reputerValueBundles := oldtypes.ReputerValueBundles{ + ReputerValueBundles: []*oldtypes.ReputerValueBundle{ + &reputerValueBundle, + }, + } + + bz := cdc.MustMarshal(&reputerValueBundles) + + allLossBundlesStore := prefix.NewStore(store, types.AllLossBundlesKey) + allLossBundlesStore.Set([]byte("testKey"), bz) + + err := v2.MigrateNetworkLossBundles(store, cdc) + s.Require().NoError(err) + + // Verify the store has been updated correctly + iterator := allLossBundlesStore.Iterator(nil, nil) + s.Require().True(iterator.Valid()) + + var newMsg types.ReputerValueBundles + err = proto.Unmarshal(iterator.Value(), &newMsg) + s.Require().NoError(err) + + s.Require().Equal(reputerValueBundle.ValueBundle.TopicId, newMsg.ReputerValueBundles[0].ValueBundle.TopicId) + s.Require().Equal(reputerValueBundle.ValueBundle.ReputerRequestNonce.ReputerNonce.BlockHeight, newMsg.ReputerValueBundles[0].ValueBundle.ReputerRequestNonce.ReputerNonce.BlockHeight) + s.Require().Equal(reputerValueBundle.ValueBundle.Reputer, newMsg.ReputerValueBundles[0].ValueBundle.Reputer) + s.Require().Equal(reputerValueBundle.ValueBundle.ExtraData, newMsg.ReputerValueBundles[0].ValueBundle.ExtraData) + s.Require().Equal(reputerValueBundle.ValueBundle.CombinedValue, newMsg.ReputerValueBundles[0].ValueBundle.CombinedValue) + + s.Require().True(areAttributedArraysEqual(oldValueBundle.InfererValues, newMsg.ReputerValueBundles[0].ValueBundle.InfererValues)) + s.Require().True(areAttributedArraysEqual(oldValueBundle.ForecasterValues, newMsg.ReputerValueBundles[0].ValueBundle.ForecasterValues)) + + s.Require().Equal(reputerValueBundle.ValueBundle.NaiveValue, newMsg.ReputerValueBundles[0].ValueBundle.NaiveValue) + + s.Require().True(areWithHeldArraysEqual(oldValueBundle.OneOutInfererValues, newMsg.ReputerValueBundles[0].ValueBundle.OneOutInfererValues)) + s.Require().True(areWithHeldArraysEqual(oldValueBundle.OneOutForecasterValues, newMsg.ReputerValueBundles[0].ValueBundle.OneOutForecasterValues)) + + s.Require().True(areAttributedArraysEqual(oldValueBundle.OneInForecasterValues, newMsg.ReputerValueBundles[0].ValueBundle.OneInForecasterValues)) + + defaultOneOutInfererForecasterValues := []*types.OneOutInfererForecasterValues{} + s.Require().Equal(len(defaultOneOutInfererForecasterValues), len(newMsg.ReputerValueBundles[0].ValueBundle.OneOutInfererForecasterValues)) + + s.Require().Equal(reputerValueBundle.Signature, newMsg.ReputerValueBundles[0].Signature) + s.Require().Equal(reputerValueBundle.Pubkey, newMsg.ReputerValueBundles[0].Pubkey) +} + +func (s *MigrationsTestSuite) TestMigrateAllRecordCommits() { + store := runtime.KVStoreAdapter(s.storeService.OpenKVStore(s.ctx)) + cdc := s.emissionsKeeper.GetBinaryCodec() + + oldTimestampedActorNonce1 := oldtypes.TimestampedActorNonce{ + BlockHeight: 1, + Actor: "testActor1", + Nonce: &oldtypes.Nonce{ + BlockHeight: 1, + }, + } + + oldTimestampedActorNonce2 := oldtypes.TimestampedActorNonce{ + BlockHeight: 1, + Actor: "testActor2", + Nonce: &oldtypes.Nonce{ + BlockHeight: 1, + }, + } + + bz1, err := proto.Marshal(&oldTimestampedActorNonce1) + s.Require().NoError(err) + + timestampedActorNonceStore1 := prefix.NewStore(store, types.TopicLastWorkerCommitKey) + timestampedActorNonceStore1.Set([]byte("testKey"), bz1) + + bz2, err := proto.Marshal(&oldTimestampedActorNonce2) + s.Require().NoError(err) + + timestampedActorNonceStore2 := prefix.NewStore(store, types.TopicLastReputerCommitKey) + timestampedActorNonceStore2.Set([]byte("testKey"), bz2) + + err = v2.MigrateAllRecordCommits(store, cdc) + s.Require().NoError(err) + + // Verify the store has been updated correctly + iterator1 := timestampedActorNonceStore1.Iterator(nil, nil) + s.Require().True(iterator1.Valid()) + + iterator2 := timestampedActorNonceStore2.Iterator(nil, nil) + s.Require().True(iterator2.Valid()) + + var newMsg1 types.TimestampedActorNonce + err = proto.Unmarshal(iterator1.Value(), &newMsg1) + s.Require().NoError(err) + + var newMsg2 types.TimestampedActorNonce + err = proto.Unmarshal(iterator2.Value(), &newMsg2) + s.Require().NoError(err) + + s.Require().Equal(oldTimestampedActorNonce1.BlockHeight, newMsg1.BlockHeight) + s.Require().Equal(oldTimestampedActorNonce1.Nonce.BlockHeight, newMsg1.Nonce.BlockHeight) + + s.Require().Equal(oldTimestampedActorNonce2.BlockHeight, newMsg2.BlockHeight) + s.Require().Equal(oldTimestampedActorNonce2.Nonce.BlockHeight, newMsg2.Nonce.BlockHeight) +} + +func (s *MigrationsTestSuite) TestMigrateParams() { + // Create an empty Params + prevParams := types.Params{ + Version: "v1", + } + err := s.emissionsKeeper.SetParams(s.ctx, prevParams) + s.Require().NoError(err) + + // Run migration + v2.MigrateParams(s.ctx, s.emissionsKeeper) + newParams, err := s.emissionsKeeper.GetParams(s.ctx) + s.Require().NoError(err) + + defaultParams := types.DefaultParams() + // Check params after migration + s.Require().Equal(newParams, defaultParams) +} diff --git a/x/emissions/migrations/v2/migrations.go b/x/emissions/migrations/v2/migrations.go deleted file mode 100644 index 16a3c81c4..000000000 --- a/x/emissions/migrations/v2/migrations.go +++ /dev/null @@ -1,18 +0,0 @@ -package v2 - -import ( - "fmt" - - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// An example MigrateStore function that might be run in the migration -// handler. -func MigrateStore(ctx sdk.Context) error { - ctx.Logger().Error(fmt.Sprintf( - "###################################################" + - "### MIGRATING STORE FROM VERSION 1 TO VERSION 2 ###" + - "###################################################", - )) - return nil -} diff --git a/x/emissions/migrations/v2/types/node.pb.go b/x/emissions/migrations/v2/types/node.pb.go new file mode 100644 index 000000000..e13c0f16f --- /dev/null +++ b/x/emissions/migrations/v2/types/node.pb.go @@ -0,0 +1,525 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: emissions/v1/node.proto + +package types + +import ( + fmt "fmt" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type OffchainNode struct { + LibP2PKey string `protobuf:"bytes,1,opt,name=lib_p2p_key,json=libP2pKey,proto3" json:"lib_p2p_key,omitempty"` + MultiAddress string `protobuf:"bytes,2,opt,name=multi_address,json=multiAddress,proto3" json:"multi_address,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + NodeAddress string `protobuf:"bytes,4,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"` + NodeId string `protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` +} + +func (m *OffchainNode) Reset() { *m = OffchainNode{} } +func (m *OffchainNode) String() string { return proto.CompactTextString(m) } +func (*OffchainNode) ProtoMessage() {} +func (*OffchainNode) Descriptor() ([]byte, []int) { + return fileDescriptor_c46ef77a30f1ab81, []int{0} +} +func (m *OffchainNode) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OffchainNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OffchainNode.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OffchainNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_OffchainNode.Merge(m, src) +} +func (m *OffchainNode) XXX_Size() int { + return m.Size() +} +func (m *OffchainNode) XXX_DiscardUnknown() { + xxx_messageInfo_OffchainNode.DiscardUnknown(m) +} + +var xxx_messageInfo_OffchainNode proto.InternalMessageInfo + +func (m *OffchainNode) GetLibP2PKey() string { + if m != nil { + return m.LibP2PKey + } + return "" +} + +func (m *OffchainNode) GetMultiAddress() string { + if m != nil { + return m.MultiAddress + } + return "" +} + +func (m *OffchainNode) GetOwner() string { + if m != nil { + return m.Owner + } + return "" +} + +func (m *OffchainNode) GetNodeAddress() string { + if m != nil { + return m.NodeAddress + } + return "" +} + +func (m *OffchainNode) GetNodeId() string { + if m != nil { + return m.NodeId + } + return "" +} + +func init() { + proto.RegisterType((*OffchainNode)(nil), "emissions.v1.OffchainNode") +} + +func init() { proto.RegisterFile("emissions/v1/node.proto", fileDescriptor_c46ef77a30f1ab81) } + +var fileDescriptor_c46ef77a30f1ab81 = []byte{ + // 263 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4f, 0xcd, 0xcd, 0x2c, + 0x2e, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x33, 0xd4, 0xcf, 0xcb, 0x4f, 0x49, 0xd5, 0x2b, 0x28, + 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0x4b, 0xe8, 0x95, 0x19, 0x2a, 0x2d, 0x65, 0xe4, 0xe2, 0xf1, + 0x4f, 0x4b, 0x4b, 0xce, 0x48, 0xcc, 0xcc, 0xf3, 0xcb, 0x4f, 0x49, 0x15, 0x92, 0xe3, 0xe2, 0xce, + 0xc9, 0x4c, 0x8a, 0x2f, 0x30, 0x2a, 0x88, 0xcf, 0x4e, 0xad, 0x94, 0x60, 0x54, 0x60, 0xd4, 0xe0, + 0x0c, 0xe2, 0xcc, 0xc9, 0x4c, 0x0a, 0x30, 0x2a, 0xf0, 0x4e, 0xad, 0x14, 0x52, 0xe6, 0xe2, 0xcd, + 0x2d, 0xcd, 0x29, 0xc9, 0x8c, 0x4f, 0x4c, 0x49, 0x29, 0x4a, 0x2d, 0x2e, 0x96, 0x60, 0x02, 0xab, + 0xe0, 0x01, 0x0b, 0x3a, 0x42, 0xc4, 0x84, 0x44, 0xb8, 0x58, 0xf3, 0xcb, 0xf3, 0x52, 0x8b, 0x24, + 0x98, 0xc1, 0x92, 0x10, 0x8e, 0x90, 0x22, 0x17, 0x0f, 0xc8, 0x1d, 0x70, 0x9d, 0x2c, 0x60, 0x49, + 0x6e, 0x90, 0x18, 0x4c, 0xa3, 0x38, 0x17, 0x3b, 0x58, 0x49, 0x66, 0x8a, 0x04, 0x2b, 0x58, 0x96, + 0x0d, 0xc4, 0xf5, 0x4c, 0x71, 0x4a, 0x38, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, + 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, + 0x28, 0xb7, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xc4, 0x9c, 0x9c, + 0xfc, 0xa2, 0x44, 0xdd, 0xbc, 0xd4, 0x92, 0xf2, 0xfc, 0xa2, 0x6c, 0x18, 0x17, 0xec, 0x39, 0xfd, + 0x0a, 0x7d, 0x44, 0x88, 0xe4, 0x66, 0xa6, 0x17, 0x25, 0x96, 0x40, 0x02, 0xc7, 0x48, 0xbf, 0xa4, + 0xb2, 0x20, 0xb5, 0x38, 0x89, 0x0d, 0x1c, 0x3c, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5a, + 0xed, 0x80, 0x87, 0x39, 0x01, 0x00, 0x00, +} + +func (m *OffchainNode) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OffchainNode) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OffchainNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.NodeId) > 0 { + i -= len(m.NodeId) + copy(dAtA[i:], m.NodeId) + i = encodeVarintNode(dAtA, i, uint64(len(m.NodeId))) + i-- + dAtA[i] = 0x2a + } + if len(m.NodeAddress) > 0 { + i -= len(m.NodeAddress) + copy(dAtA[i:], m.NodeAddress) + i = encodeVarintNode(dAtA, i, uint64(len(m.NodeAddress))) + i-- + dAtA[i] = 0x22 + } + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintNode(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.MultiAddress) > 0 { + i -= len(m.MultiAddress) + copy(dAtA[i:], m.MultiAddress) + i = encodeVarintNode(dAtA, i, uint64(len(m.MultiAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.LibP2PKey) > 0 { + i -= len(m.LibP2PKey) + copy(dAtA[i:], m.LibP2PKey) + i = encodeVarintNode(dAtA, i, uint64(len(m.LibP2PKey))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintNode(dAtA []byte, offset int, v uint64) int { + offset -= sovNode(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OffchainNode) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.LibP2PKey) + if l > 0 { + n += 1 + l + sovNode(uint64(l)) + } + l = len(m.MultiAddress) + if l > 0 { + n += 1 + l + sovNode(uint64(l)) + } + l = len(m.Owner) + if l > 0 { + n += 1 + l + sovNode(uint64(l)) + } + l = len(m.NodeAddress) + if l > 0 { + n += 1 + l + sovNode(uint64(l)) + } + l = len(m.NodeId) + if l > 0 { + n += 1 + l + sovNode(uint64(l)) + } + return n +} + +func sovNode(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNode(x uint64) (n int) { + return sovNode(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *OffchainNode) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNode + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OffchainNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OffchainNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LibP2PKey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNode + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNode + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNode + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LibP2PKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MultiAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNode + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNode + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNode + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MultiAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNode + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNode + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNode + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Owner = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeAddress", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNode + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNode + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNode + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NodeAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNode + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthNode + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthNode + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NodeId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNode(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNode + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNode(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNode + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNode + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNode + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthNode + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNode + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNode + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNode = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNode = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNode = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/emissions/migrations/v2/types/nonce.pb.go b/x/emissions/migrations/v2/types/nonce.pb.go new file mode 100644 index 000000000..57f381f6e --- /dev/null +++ b/x/emissions/migrations/v2/types/nonce.pb.go @@ -0,0 +1,899 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: emissions/v1/nonce.proto + +package types + +import ( + fmt "fmt" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Nonce struct { + BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +} + +func (m *Nonce) Reset() { *m = Nonce{} } +func (m *Nonce) String() string { return proto.CompactTextString(m) } +func (*Nonce) ProtoMessage() {} +func (*Nonce) Descriptor() ([]byte, []int) { + return fileDescriptor_529b41e523578c99, []int{0} +} +func (m *Nonce) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Nonce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Nonce.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Nonce) XXX_Merge(src proto.Message) { + xxx_messageInfo_Nonce.Merge(m, src) +} +func (m *Nonce) XXX_Size() int { + return m.Size() +} +func (m *Nonce) XXX_DiscardUnknown() { + xxx_messageInfo_Nonce.DiscardUnknown(m) +} + +var xxx_messageInfo_Nonce proto.InternalMessageInfo + +func (m *Nonce) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +type Nonces struct { + Nonces []*Nonce `protobuf:"bytes,1,rep,name=nonces,proto3" json:"nonces,omitempty"` +} + +func (m *Nonces) Reset() { *m = Nonces{} } +func (m *Nonces) String() string { return proto.CompactTextString(m) } +func (*Nonces) ProtoMessage() {} +func (*Nonces) Descriptor() ([]byte, []int) { + return fileDescriptor_529b41e523578c99, []int{1} +} +func (m *Nonces) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Nonces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Nonces.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Nonces) XXX_Merge(src proto.Message) { + xxx_messageInfo_Nonces.Merge(m, src) +} +func (m *Nonces) XXX_Size() int { + return m.Size() +} +func (m *Nonces) XXX_DiscardUnknown() { + xxx_messageInfo_Nonces.DiscardUnknown(m) +} + +var xxx_messageInfo_Nonces proto.InternalMessageInfo + +func (m *Nonces) GetNonces() []*Nonce { + if m != nil { + return m.Nonces + } + return nil +} + +type ReputerRequestNonce struct { + // the reputers should respond to the reputer request with losses for work + // found at this worker nonce + ReputerNonce *Nonce `protobuf:"bytes,1,opt,name=reputer_nonce,json=reputerNonce,proto3" json:"reputer_nonce,omitempty"` +} + +func (m *ReputerRequestNonce) Reset() { *m = ReputerRequestNonce{} } +func (m *ReputerRequestNonce) String() string { return proto.CompactTextString(m) } +func (*ReputerRequestNonce) ProtoMessage() {} +func (*ReputerRequestNonce) Descriptor() ([]byte, []int) { + return fileDescriptor_529b41e523578c99, []int{2} +} +func (m *ReputerRequestNonce) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReputerRequestNonce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReputerRequestNonce.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ReputerRequestNonce) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReputerRequestNonce.Merge(m, src) +} +func (m *ReputerRequestNonce) XXX_Size() int { + return m.Size() +} +func (m *ReputerRequestNonce) XXX_DiscardUnknown() { + xxx_messageInfo_ReputerRequestNonce.DiscardUnknown(m) +} + +var xxx_messageInfo_ReputerRequestNonce proto.InternalMessageInfo + +func (m *ReputerRequestNonce) GetReputerNonce() *Nonce { + if m != nil { + return m.ReputerNonce + } + return nil +} + +type ReputerRequestNonces struct { + Nonces []*ReputerRequestNonce `protobuf:"bytes,1,rep,name=nonces,proto3" json:"nonces,omitempty"` +} + +func (m *ReputerRequestNonces) Reset() { *m = ReputerRequestNonces{} } +func (m *ReputerRequestNonces) String() string { return proto.CompactTextString(m) } +func (*ReputerRequestNonces) ProtoMessage() {} +func (*ReputerRequestNonces) Descriptor() ([]byte, []int) { + return fileDescriptor_529b41e523578c99, []int{3} +} +func (m *ReputerRequestNonces) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReputerRequestNonces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReputerRequestNonces.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ReputerRequestNonces) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReputerRequestNonces.Merge(m, src) +} +func (m *ReputerRequestNonces) XXX_Size() int { + return m.Size() +} +func (m *ReputerRequestNonces) XXX_DiscardUnknown() { + xxx_messageInfo_ReputerRequestNonces.DiscardUnknown(m) +} + +var xxx_messageInfo_ReputerRequestNonces proto.InternalMessageInfo + +func (m *ReputerRequestNonces) GetNonces() []*ReputerRequestNonce { + if m != nil { + return m.Nonces + } + return nil +} + +func init() { + proto.RegisterType((*Nonce)(nil), "emissions.v1.Nonce") + proto.RegisterType((*Nonces)(nil), "emissions.v1.Nonces") + proto.RegisterType((*ReputerRequestNonce)(nil), "emissions.v1.ReputerRequestNonce") + proto.RegisterType((*ReputerRequestNonces)(nil), "emissions.v1.ReputerRequestNonces") +} + +func init() { proto.RegisterFile("emissions/v1/nonce.proto", fileDescriptor_529b41e523578c99) } + +var fileDescriptor_529b41e523578c99 = []byte{ + // 289 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0xcd, 0xcd, 0x2c, + 0x2e, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x33, 0xd4, 0xcf, 0xcb, 0xcf, 0x4b, 0x4e, 0xd5, 0x2b, + 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0xcb, 0xe8, 0x95, 0x19, 0x4a, 0x89, 0xa4, 0xe7, 0xa7, + 0xe7, 0x83, 0x25, 0xf4, 0x41, 0x2c, 0x88, 0x1a, 0x25, 0x03, 0x2e, 0x56, 0x3f, 0x90, 0x16, 0x21, + 0x45, 0x2e, 0x9e, 0xa4, 0x9c, 0xfc, 0xe4, 0xec, 0xf8, 0x8c, 0xd4, 0xcc, 0xf4, 0x8c, 0x12, 0x09, + 0x46, 0x05, 0x46, 0x0d, 0xe6, 0x20, 0x6e, 0xb0, 0x98, 0x07, 0x58, 0xc8, 0x8a, 0xe5, 0xc5, 0x02, + 0x79, 0x46, 0x25, 0x53, 0x2e, 0x36, 0xb0, 0x8e, 0x62, 0x21, 0x6d, 0x2e, 0x36, 0xb0, 0x75, 0xc5, + 0x12, 0x8c, 0x0a, 0xcc, 0x1a, 0xdc, 0x46, 0xc2, 0x7a, 0xc8, 0x16, 0xea, 0x81, 0x55, 0x05, 0x41, + 0x95, 0x28, 0x85, 0x72, 0x09, 0x07, 0xa5, 0x16, 0x94, 0x96, 0xa4, 0x16, 0x05, 0xa5, 0x16, 0x96, + 0xa6, 0x16, 0x97, 0x40, 0xac, 0xb5, 0xe0, 0xe2, 0x2d, 0x82, 0x08, 0xc7, 0x83, 0x15, 0x82, 0xed, + 0xc5, 0x61, 0x14, 0x0f, 0x54, 0x25, 0x98, 0x07, 0x75, 0x4d, 0x20, 0x97, 0x08, 0x16, 0x63, 0x8b, + 0x85, 0x2c, 0xd1, 0xdc, 0xa6, 0x88, 0x6a, 0x20, 0x16, 0x3d, 0x30, 0x97, 0x3a, 0x25, 0x9c, 0x78, + 0x24, 0xc7, 0x78, 0xe1, 0x91, 0x1c, 0xe3, 0x83, 0x47, 0x72, 0x8c, 0x13, 0x1e, 0xcb, 0x31, 0x5c, + 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x5b, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, + 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x62, 0x4e, 0x4e, 0x7e, 0x51, 0xa2, 0x6e, 0x5e, 0x6a, 0x49, 0x79, + 0x7e, 0x51, 0x36, 0x8c, 0x9b, 0x9c, 0x91, 0x98, 0x99, 0xa7, 0x5f, 0xa1, 0x8f, 0x88, 0x93, 0xdc, + 0xcc, 0xf4, 0xa2, 0xc4, 0x12, 0x48, 0xf4, 0x18, 0xe9, 0x97, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, + 0x81, 0xc3, 0xde, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0xca, 0x9c, 0xc4, 0xdf, 0xbb, 0x01, 0x00, + 0x00, +} + +func (this *Nonce) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*Nonce) + if !ok { + that2, ok := that.(Nonce) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.BlockHeight != that1.BlockHeight { + return false + } + return true +} +func (this *ReputerRequestNonce) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ReputerRequestNonce) + if !ok { + that2, ok := that.(ReputerRequestNonce) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.ReputerNonce.Equal(that1.ReputerNonce) { + return false + } + return true +} +func (m *Nonce) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Nonce) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Nonce) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BlockHeight != 0 { + i = encodeVarintNonce(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *Nonces) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Nonces) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Nonces) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Nonces) > 0 { + for iNdEx := len(m.Nonces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Nonces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNonce(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ReputerRequestNonce) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReputerRequestNonce) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReputerRequestNonce) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ReputerNonce != nil { + { + size, err := m.ReputerNonce.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNonce(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ReputerRequestNonces) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReputerRequestNonces) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReputerRequestNonces) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Nonces) > 0 { + for iNdEx := len(m.Nonces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Nonces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintNonce(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintNonce(dAtA []byte, offset int, v uint64) int { + offset -= sovNonce(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Nonce) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BlockHeight != 0 { + n += 1 + sovNonce(uint64(m.BlockHeight)) + } + return n +} + +func (m *Nonces) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Nonces) > 0 { + for _, e := range m.Nonces { + l = e.Size() + n += 1 + l + sovNonce(uint64(l)) + } + } + return n +} + +func (m *ReputerRequestNonce) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ReputerNonce != nil { + l = m.ReputerNonce.Size() + n += 1 + l + sovNonce(uint64(l)) + } + return n +} + +func (m *ReputerRequestNonces) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Nonces) > 0 { + for _, e := range m.Nonces { + l = e.Size() + n += 1 + l + sovNonce(uint64(l)) + } + } + return n +} + +func sovNonce(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozNonce(x uint64) (n int) { + return sovNonce(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Nonce) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Nonce: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Nonce: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipNonce(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNonce + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Nonces) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Nonces: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Nonces: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNonce + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNonce + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Nonces = append(m.Nonces, &Nonce{}) + if err := m.Nonces[len(m.Nonces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNonce(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNonce + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReputerRequestNonce) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReputerRequestNonce: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReputerRequestNonce: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReputerNonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNonce + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNonce + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ReputerNonce == nil { + m.ReputerNonce = &Nonce{} + } + if err := m.ReputerNonce.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNonce(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNonce + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReputerRequestNonces) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReputerRequestNonces: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReputerRequestNonces: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNonce + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthNonce + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthNonce + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Nonces = append(m.Nonces, &ReputerRequestNonce{}) + if err := m.Nonces[len(m.Nonces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipNonce(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthNonce + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipNonce(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNonce + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNonce + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowNonce + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthNonce + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupNonce + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthNonce + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthNonce = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowNonce = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupNonce = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/emissions/migrations/v2/types/reputer.pb.go b/x/emissions/migrations/v2/types/reputer.pb.go new file mode 100644 index 000000000..f9b77200c --- /dev/null +++ b/x/emissions/migrations/v2/types/reputer.pb.go @@ -0,0 +1,1975 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: emissions/v1/reputer.proto + +package types + +import ( + bytes "bytes" + fmt "fmt" + github_com_allora_network_allora_chain_math "github.com/allora-network/allora-chain/math" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type WorkerAttributedValue struct { + Worker string `protobuf:"bytes,1,opt,name=worker,proto3" json:"worker,omitempty"` + Value github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,2,opt,name=value,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"value"` +} + +func (m *WorkerAttributedValue) Reset() { *m = WorkerAttributedValue{} } +func (m *WorkerAttributedValue) String() string { return proto.CompactTextString(m) } +func (*WorkerAttributedValue) ProtoMessage() {} +func (*WorkerAttributedValue) Descriptor() ([]byte, []int) { + return fileDescriptor_87b9bd856742251e, []int{0} +} +func (m *WorkerAttributedValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkerAttributedValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WorkerAttributedValue.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WorkerAttributedValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkerAttributedValue.Merge(m, src) +} +func (m *WorkerAttributedValue) XXX_Size() int { + return m.Size() +} +func (m *WorkerAttributedValue) XXX_DiscardUnknown() { + xxx_messageInfo_WorkerAttributedValue.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkerAttributedValue proto.InternalMessageInfo + +func (m *WorkerAttributedValue) GetWorker() string { + if m != nil { + return m.Worker + } + return "" +} + +type WithheldWorkerAttributedValue struct { + Worker string `protobuf:"bytes,1,opt,name=worker,proto3" json:"worker,omitempty"` + Value github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,2,opt,name=value,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"value"` +} + +func (m *WithheldWorkerAttributedValue) Reset() { *m = WithheldWorkerAttributedValue{} } +func (m *WithheldWorkerAttributedValue) String() string { return proto.CompactTextString(m) } +func (*WithheldWorkerAttributedValue) ProtoMessage() {} +func (*WithheldWorkerAttributedValue) Descriptor() ([]byte, []int) { + return fileDescriptor_87b9bd856742251e, []int{1} +} +func (m *WithheldWorkerAttributedValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WithheldWorkerAttributedValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_WithheldWorkerAttributedValue.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *WithheldWorkerAttributedValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_WithheldWorkerAttributedValue.Merge(m, src) +} +func (m *WithheldWorkerAttributedValue) XXX_Size() int { + return m.Size() +} +func (m *WithheldWorkerAttributedValue) XXX_DiscardUnknown() { + xxx_messageInfo_WithheldWorkerAttributedValue.DiscardUnknown(m) +} + +var xxx_messageInfo_WithheldWorkerAttributedValue proto.InternalMessageInfo + +func (m *WithheldWorkerAttributedValue) GetWorker() string { + if m != nil { + return m.Worker + } + return "" +} + +// These losses and inferences are calculated per reputer or by the network +// The `m`s in the comments below exist for when they're made by reputers, +// but they may be absent implying that they were made by the network +type ValueBundle struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + ReputerRequestNonce *ReputerRequestNonce `protobuf:"bytes,2,opt,name=reputer_request_nonce,json=reputerRequestNonce,proto3" json:"reputer_request_nonce,omitempty"` + Reputer string `protobuf:"bytes,3,opt,name=reputer,proto3" json:"reputer,omitempty"` + ExtraData []byte `protobuf:"bytes,4,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"` + // R_im || log10 L_im || I_i + CombinedValue github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,5,opt,name=combined_value,json=combinedValue,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"combined_value"` + // R_ijm || log10 L_ijm || I_ij + InfererValues []*WorkerAttributedValue `protobuf:"bytes,6,rep,name=inferer_values,json=infererValues,proto3" json:"inferer_values,omitempty"` + // R_ikm || log10 L_ikm || I_ik + ForecasterValues []*WorkerAttributedValue `protobuf:"bytes,7,rep,name=forecaster_values,json=forecasterValues,proto3" json:"forecaster_values,omitempty"` + // R^-_im || log10 L^-_im || I^-_i + NaiveValue github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,8,opt,name=naive_value,json=naiveValue,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"naive_value"` + // R^-_ilm || log10 L^-_ilm || I^-_il where l = any j + // Note: forecast-implied inferences are recomputed for each left-out + // inference + OneOutInfererValues []*WithheldWorkerAttributedValue `protobuf:"bytes,9,rep,name=one_out_inferer_values,json=oneOutInfererValues,proto3" json:"one_out_inferer_values,omitempty"` + // R^-_ilm || log10 L^-_ilm || I^-_il where l = any k + OneOutForecasterValues []*WithheldWorkerAttributedValue `protobuf:"bytes,10,rep,name=one_out_forecaster_values,json=oneOutForecasterValues,proto3" json:"one_out_forecaster_values,omitempty"` + // R^+_ikm || log10 L^+_ikm || I^+_ik + // aka one_in_forecaster_values because equivalent to using only one + // forecast-implied inference + OneInForecasterValues []*WorkerAttributedValue `protobuf:"bytes,11,rep,name=one_in_forecaster_values,json=oneInForecasterValues,proto3" json:"one_in_forecaster_values,omitempty"` +} + +func (m *ValueBundle) Reset() { *m = ValueBundle{} } +func (m *ValueBundle) String() string { return proto.CompactTextString(m) } +func (*ValueBundle) ProtoMessage() {} +func (*ValueBundle) Descriptor() ([]byte, []int) { + return fileDescriptor_87b9bd856742251e, []int{2} +} +func (m *ValueBundle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValueBundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ValueBundle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ValueBundle) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValueBundle.Merge(m, src) +} +func (m *ValueBundle) XXX_Size() int { + return m.Size() +} +func (m *ValueBundle) XXX_DiscardUnknown() { + xxx_messageInfo_ValueBundle.DiscardUnknown(m) +} + +var xxx_messageInfo_ValueBundle proto.InternalMessageInfo + +func (m *ValueBundle) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *ValueBundle) GetReputerRequestNonce() *ReputerRequestNonce { + if m != nil { + return m.ReputerRequestNonce + } + return nil +} + +func (m *ValueBundle) GetReputer() string { + if m != nil { + return m.Reputer + } + return "" +} + +func (m *ValueBundle) GetExtraData() []byte { + if m != nil { + return m.ExtraData + } + return nil +} + +func (m *ValueBundle) GetInfererValues() []*WorkerAttributedValue { + if m != nil { + return m.InfererValues + } + return nil +} + +func (m *ValueBundle) GetForecasterValues() []*WorkerAttributedValue { + if m != nil { + return m.ForecasterValues + } + return nil +} + +func (m *ValueBundle) GetOneOutInfererValues() []*WithheldWorkerAttributedValue { + if m != nil { + return m.OneOutInfererValues + } + return nil +} + +func (m *ValueBundle) GetOneOutForecasterValues() []*WithheldWorkerAttributedValue { + if m != nil { + return m.OneOutForecasterValues + } + return nil +} + +func (m *ValueBundle) GetOneInForecasterValues() []*WorkerAttributedValue { + if m != nil { + return m.OneInForecasterValues + } + return nil +} + +// For when the bundle is computed on a per-reputer basis (ie.. if there is an +// index `m` in the above) +type ReputerValueBundle struct { + ValueBundle *ValueBundle `protobuf:"bytes,1,opt,name=value_bundle,json=valueBundle,proto3" json:"value_bundle,omitempty"` + Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` + Pubkey string `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty"` +} + +func (m *ReputerValueBundle) Reset() { *m = ReputerValueBundle{} } +func (m *ReputerValueBundle) String() string { return proto.CompactTextString(m) } +func (*ReputerValueBundle) ProtoMessage() {} +func (*ReputerValueBundle) Descriptor() ([]byte, []int) { + return fileDescriptor_87b9bd856742251e, []int{3} +} +func (m *ReputerValueBundle) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReputerValueBundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReputerValueBundle.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ReputerValueBundle) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReputerValueBundle.Merge(m, src) +} +func (m *ReputerValueBundle) XXX_Size() int { + return m.Size() +} +func (m *ReputerValueBundle) XXX_DiscardUnknown() { + xxx_messageInfo_ReputerValueBundle.DiscardUnknown(m) +} + +var xxx_messageInfo_ReputerValueBundle proto.InternalMessageInfo + +func (m *ReputerValueBundle) GetValueBundle() *ValueBundle { + if m != nil { + return m.ValueBundle + } + return nil +} + +func (m *ReputerValueBundle) GetSignature() []byte { + if m != nil { + return m.Signature + } + return nil +} + +func (m *ReputerValueBundle) GetPubkey() string { + if m != nil { + return m.Pubkey + } + return "" +} + +type ReputerValueBundles struct { + ReputerValueBundles []*ReputerValueBundle `protobuf:"bytes,1,rep,name=reputer_value_bundles,json=reputerValueBundles,proto3" json:"reputer_value_bundles,omitempty"` +} + +func (m *ReputerValueBundles) Reset() { *m = ReputerValueBundles{} } +func (m *ReputerValueBundles) String() string { return proto.CompactTextString(m) } +func (*ReputerValueBundles) ProtoMessage() {} +func (*ReputerValueBundles) Descriptor() ([]byte, []int) { + return fileDescriptor_87b9bd856742251e, []int{4} +} +func (m *ReputerValueBundles) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReputerValueBundles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReputerValueBundles.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ReputerValueBundles) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReputerValueBundles.Merge(m, src) +} +func (m *ReputerValueBundles) XXX_Size() int { + return m.Size() +} +func (m *ReputerValueBundles) XXX_DiscardUnknown() { + xxx_messageInfo_ReputerValueBundles.DiscardUnknown(m) +} + +var xxx_messageInfo_ReputerValueBundles proto.InternalMessageInfo + +func (m *ReputerValueBundles) GetReputerValueBundles() []*ReputerValueBundle { + if m != nil { + return m.ReputerValueBundles + } + return nil +} + +func init() { + proto.RegisterType((*WorkerAttributedValue)(nil), "emissions.v1.WorkerAttributedValue") + proto.RegisterType((*WithheldWorkerAttributedValue)(nil), "emissions.v1.WithheldWorkerAttributedValue") + proto.RegisterType((*ValueBundle)(nil), "emissions.v1.ValueBundle") + proto.RegisterType((*ReputerValueBundle)(nil), "emissions.v1.ReputerValueBundle") + proto.RegisterType((*ReputerValueBundles)(nil), "emissions.v1.ReputerValueBundles") +} + +func init() { proto.RegisterFile("emissions/v1/reputer.proto", fileDescriptor_87b9bd856742251e) } + +var fileDescriptor_87b9bd856742251e = []byte{ + // 623 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x54, 0x4f, 0x6f, 0xd3, 0x4e, + 0x10, 0x8d, 0x7f, 0x6d, 0xd3, 0x66, 0x9c, 0x56, 0x3f, 0x5c, 0x5a, 0xb9, 0x15, 0x75, 0x43, 0xb9, + 0x54, 0x42, 0xd8, 0x6a, 0x38, 0x20, 0x21, 0x2e, 0x54, 0x55, 0xa5, 0x22, 0xf1, 0x47, 0x16, 0x50, + 0x84, 0x10, 0xee, 0xda, 0x9e, 0x26, 0xab, 0x26, 0xbb, 0x61, 0xbd, 0x0e, 0xed, 0x9d, 0x23, 0x42, + 0x7c, 0x04, 0x3e, 0x09, 0xe7, 0x1e, 0x7b, 0x44, 0x1c, 0x2a, 0xd4, 0x5e, 0xf8, 0x18, 0xc8, 0xbb, + 0x0e, 0x71, 0xfe, 0x08, 0x05, 0xf5, 0xc2, 0xcd, 0x33, 0x3b, 0xf3, 0xde, 0xcc, 0x5b, 0xbf, 0x85, + 0x55, 0x6c, 0xd3, 0x24, 0xa1, 0x9c, 0x25, 0x5e, 0x77, 0xcb, 0x13, 0xd8, 0x49, 0x25, 0x0a, 0xb7, + 0x23, 0xb8, 0xe4, 0x56, 0xf5, 0xf7, 0x99, 0xdb, 0xdd, 0x5a, 0xbd, 0xde, 0xe0, 0x0d, 0xae, 0x0e, + 0xbc, 0xec, 0x4b, 0xd7, 0xac, 0xda, 0x03, 0xfd, 0x8c, 0xb3, 0x08, 0xf5, 0xc9, 0xc6, 0x07, 0x03, + 0x96, 0xf6, 0xb9, 0x38, 0x42, 0xf1, 0x50, 0x4a, 0x41, 0xc3, 0x54, 0x62, 0xfc, 0x92, 0xb4, 0x52, + 0xb4, 0x96, 0xa1, 0xfc, 0x5e, 0x1d, 0xd8, 0x46, 0xcd, 0xd8, 0xac, 0xf8, 0x79, 0x64, 0x3d, 0x86, + 0x99, 0x6e, 0x56, 0x60, 0xff, 0x97, 0xa5, 0xb7, 0xef, 0x9d, 0x9e, 0xaf, 0x97, 0xbe, 0x9f, 0xaf, + 0x7b, 0x0d, 0x2a, 0x9b, 0x69, 0xe8, 0x46, 0xbc, 0xed, 0x91, 0x56, 0x8b, 0x0b, 0x72, 0x87, 0xa1, + 0xcc, 0x7a, 0x7a, 0x61, 0xd4, 0x24, 0x94, 0x79, 0x6d, 0x22, 0x9b, 0xee, 0x0e, 0x46, 0xbe, 0x46, + 0xb9, 0x3f, 0xfd, 0xf3, 0xcb, 0xba, 0xb1, 0xf1, 0xd1, 0x80, 0xb5, 0x7d, 0x2a, 0x9b, 0x4d, 0x6c, + 0xc5, 0xff, 0xc0, 0x38, 0x5f, 0xcb, 0x60, 0x2a, 0xda, 0xed, 0x94, 0xc5, 0x2d, 0xb4, 0x56, 0x60, + 0x4e, 0xf2, 0x0e, 0x8d, 0x02, 0x1a, 0x2b, 0xfa, 0x69, 0x7f, 0x56, 0xc5, 0x7b, 0xb1, 0xf5, 0x02, + 0x96, 0xf2, 0xfb, 0x08, 0x04, 0xbe, 0x4b, 0x31, 0x91, 0x81, 0xd2, 0x57, 0xcd, 0x63, 0xd6, 0x6f, + 0xba, 0xc5, 0xeb, 0x71, 0x7d, 0x5d, 0xea, 0xeb, 0xca, 0x27, 0x59, 0xa1, 0xbf, 0x28, 0x46, 0x93, + 0x96, 0x0d, 0xb3, 0x79, 0xda, 0x9e, 0x52, 0xfb, 0xf6, 0x42, 0x6b, 0x0d, 0x00, 0x8f, 0xa5, 0x20, + 0x41, 0x4c, 0x24, 0xb1, 0xa7, 0x6b, 0xc6, 0x66, 0xd5, 0xaf, 0xa8, 0xcc, 0x0e, 0x91, 0xc4, 0x7a, + 0x0b, 0x0b, 0x11, 0x6f, 0x87, 0x94, 0x61, 0x1c, 0x68, 0x61, 0x66, 0xae, 0x26, 0xcc, 0x7c, 0x0f, + 0x4e, 0xdf, 0xc3, 0x23, 0x58, 0xa0, 0xec, 0x10, 0x05, 0x0a, 0x0d, 0x9f, 0xd8, 0xe5, 0xda, 0xd4, + 0xa6, 0x59, 0xbf, 0x35, 0xb8, 0xe8, 0xd8, 0x4b, 0xf4, 0xe7, 0xf3, 0x56, 0x15, 0x25, 0xd6, 0x33, + 0xb8, 0x76, 0xc8, 0x05, 0x46, 0x24, 0x91, 0x7d, 0xb8, 0xd9, 0xc9, 0xe1, 0xfe, 0xef, 0x77, 0xe7, + 0x88, 0xaf, 0xc0, 0x64, 0x84, 0x76, 0x31, 0x5f, 0x7d, 0xee, 0x6a, 0xab, 0x83, 0xc2, 0xd2, 0x7b, + 0x1f, 0xc0, 0x32, 0x67, 0x18, 0xf0, 0x54, 0x06, 0x43, 0xfb, 0x57, 0xd4, 0xc0, 0xb7, 0x87, 0x06, + 0xfe, 0xd3, 0xcf, 0xec, 0x2f, 0x72, 0x86, 0x4f, 0x53, 0xb9, 0x37, 0xa0, 0xc6, 0x21, 0xac, 0xf4, + 0x18, 0x46, 0x55, 0x81, 0xbf, 0x27, 0x59, 0xd6, 0x24, 0xbb, 0xc3, 0x1a, 0xbd, 0x01, 0x3b, 0xe3, + 0xa1, 0x6c, 0x0c, 0x8d, 0x39, 0xb9, 0xf8, 0x4b, 0x9c, 0xe1, 0x1e, 0x1b, 0x46, 0xcf, 0x0d, 0xf4, + 0xc9, 0x00, 0x2b, 0xff, 0xd7, 0x8b, 0x3e, 0x7a, 0x00, 0x55, 0x45, 0x14, 0x84, 0x2a, 0x56, 0x5e, + 0x32, 0xeb, 0x2b, 0x83, 0x74, 0x85, 0x06, 0xdf, 0xec, 0x16, 0xba, 0x6f, 0x40, 0x25, 0xa1, 0x0d, + 0x46, 0x64, 0x2a, 0xb4, 0xbd, 0xaa, 0x7e, 0x3f, 0x91, 0x3d, 0x10, 0x9d, 0x34, 0x3c, 0xc2, 0x93, + 0xdc, 0x30, 0x79, 0x94, 0x0f, 0x74, 0x04, 0x8b, 0xa3, 0xf3, 0x24, 0xd6, 0xf3, 0xbe, 0x7b, 0x8b, + 0x83, 0x25, 0xb6, 0xa1, 0x84, 0xa8, 0x8d, 0x75, 0x6f, 0x71, 0xc0, 0x9e, 0x79, 0x8b, 0xa8, 0xdb, + 0x07, 0xa7, 0x17, 0x8e, 0x71, 0x76, 0xe1, 0x18, 0x3f, 0x2e, 0x1c, 0xe3, 0xf3, 0xa5, 0x53, 0x3a, + 0xbb, 0x74, 0x4a, 0xdf, 0x2e, 0x9d, 0xd2, 0xeb, 0xdd, 0x09, 0x7f, 0xc1, 0x63, 0xaf, 0xff, 0x62, + 0xb7, 0x69, 0x43, 0x10, 0xa9, 0x1f, 0xef, 0xba, 0x27, 0x4f, 0x3a, 0x98, 0x84, 0x65, 0xf5, 0x7a, + 0xdf, 0xfd, 0x15, 0x00, 0x00, 0xff, 0xff, 0x98, 0x1d, 0xed, 0xff, 0x19, 0x06, 0x00, 0x00, +} + +func (this *WorkerAttributedValue) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*WorkerAttributedValue) + if !ok { + that2, ok := that.(WorkerAttributedValue) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Worker != that1.Worker { + return false + } + if !this.Value.Equal(that1.Value) { + return false + } + return true +} +func (this *WithheldWorkerAttributedValue) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*WithheldWorkerAttributedValue) + if !ok { + that2, ok := that.(WithheldWorkerAttributedValue) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Worker != that1.Worker { + return false + } + if !this.Value.Equal(that1.Value) { + return false + } + return true +} +func (this *ValueBundle) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ValueBundle) + if !ok { + that2, ok := that.(ValueBundle) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.TopicId != that1.TopicId { + return false + } + if !this.ReputerRequestNonce.Equal(that1.ReputerRequestNonce) { + return false + } + if this.Reputer != that1.Reputer { + return false + } + if !bytes.Equal(this.ExtraData, that1.ExtraData) { + return false + } + if !this.CombinedValue.Equal(that1.CombinedValue) { + return false + } + if len(this.InfererValues) != len(that1.InfererValues) { + return false + } + for i := range this.InfererValues { + if !this.InfererValues[i].Equal(that1.InfererValues[i]) { + return false + } + } + if len(this.ForecasterValues) != len(that1.ForecasterValues) { + return false + } + for i := range this.ForecasterValues { + if !this.ForecasterValues[i].Equal(that1.ForecasterValues[i]) { + return false + } + } + if !this.NaiveValue.Equal(that1.NaiveValue) { + return false + } + if len(this.OneOutInfererValues) != len(that1.OneOutInfererValues) { + return false + } + for i := range this.OneOutInfererValues { + if !this.OneOutInfererValues[i].Equal(that1.OneOutInfererValues[i]) { + return false + } + } + if len(this.OneOutForecasterValues) != len(that1.OneOutForecasterValues) { + return false + } + for i := range this.OneOutForecasterValues { + if !this.OneOutForecasterValues[i].Equal(that1.OneOutForecasterValues[i]) { + return false + } + } + if len(this.OneInForecasterValues) != len(that1.OneInForecasterValues) { + return false + } + for i := range this.OneInForecasterValues { + if !this.OneInForecasterValues[i].Equal(that1.OneInForecasterValues[i]) { + return false + } + } + return true +} +func (this *ReputerValueBundle) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*ReputerValueBundle) + if !ok { + that2, ok := that.(ReputerValueBundle) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if !this.ValueBundle.Equal(that1.ValueBundle) { + return false + } + if !bytes.Equal(this.Signature, that1.Signature) { + return false + } + if this.Pubkey != that1.Pubkey { + return false + } + return true +} +func (m *WorkerAttributedValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkerAttributedValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkerAttributedValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Worker) > 0 { + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) + i = encodeVarintReputer(dAtA, i, uint64(len(m.Worker))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *WithheldWorkerAttributedValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WithheldWorkerAttributedValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WithheldWorkerAttributedValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Value.Size() + i -= size + if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Worker) > 0 { + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) + i = encodeVarintReputer(dAtA, i, uint64(len(m.Worker))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ValueBundle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ValueBundle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValueBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OneInForecasterValues) > 0 { + for iNdEx := len(m.OneInForecasterValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OneInForecasterValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + } + if len(m.OneOutForecasterValues) > 0 { + for iNdEx := len(m.OneOutForecasterValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OneOutForecasterValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.OneOutInfererValues) > 0 { + for iNdEx := len(m.OneOutInfererValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OneOutInfererValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + { + size := m.NaiveValue.Size() + i -= size + if _, err := m.NaiveValue.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + if len(m.ForecasterValues) > 0 { + for iNdEx := len(m.ForecasterValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ForecasterValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.InfererValues) > 0 { + for iNdEx := len(m.InfererValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InfererValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + { + size := m.CombinedValue.Size() + i -= size + if _, err := m.CombinedValue.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if len(m.ExtraData) > 0 { + i -= len(m.ExtraData) + copy(dAtA[i:], m.ExtraData) + i = encodeVarintReputer(dAtA, i, uint64(len(m.ExtraData))) + i-- + dAtA[i] = 0x22 + } + if len(m.Reputer) > 0 { + i -= len(m.Reputer) + copy(dAtA[i:], m.Reputer) + i = encodeVarintReputer(dAtA, i, uint64(len(m.Reputer))) + i-- + dAtA[i] = 0x1a + } + if m.ReputerRequestNonce != nil { + { + size, err := m.ReputerRequestNonce.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintReputer(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ReputerValueBundle) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReputerValueBundle) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReputerValueBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Pubkey) > 0 { + i -= len(m.Pubkey) + copy(dAtA[i:], m.Pubkey) + i = encodeVarintReputer(dAtA, i, uint64(len(m.Pubkey))) + i-- + dAtA[i] = 0x1a + } + if len(m.Signature) > 0 { + i -= len(m.Signature) + copy(dAtA[i:], m.Signature) + i = encodeVarintReputer(dAtA, i, uint64(len(m.Signature))) + i-- + dAtA[i] = 0x12 + } + if m.ValueBundle != nil { + { + size, err := m.ValueBundle.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ReputerValueBundles) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReputerValueBundles) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ReputerValueBundles) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ReputerValueBundles) > 0 { + for iNdEx := len(m.ReputerValueBundles) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ReputerValueBundles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintReputer(dAtA []byte, offset int, v uint64) int { + offset -= sovReputer(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *WorkerAttributedValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Worker) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + l = m.Value.Size() + n += 1 + l + sovReputer(uint64(l)) + return n +} + +func (m *WithheldWorkerAttributedValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Worker) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + l = m.Value.Size() + n += 1 + l + sovReputer(uint64(l)) + return n +} + +func (m *ValueBundle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovReputer(uint64(m.TopicId)) + } + if m.ReputerRequestNonce != nil { + l = m.ReputerRequestNonce.Size() + n += 1 + l + sovReputer(uint64(l)) + } + l = len(m.Reputer) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + l = len(m.ExtraData) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + l = m.CombinedValue.Size() + n += 1 + l + sovReputer(uint64(l)) + if len(m.InfererValues) > 0 { + for _, e := range m.InfererValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + if len(m.ForecasterValues) > 0 { + for _, e := range m.ForecasterValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + l = m.NaiveValue.Size() + n += 1 + l + sovReputer(uint64(l)) + if len(m.OneOutInfererValues) > 0 { + for _, e := range m.OneOutInfererValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + if len(m.OneOutForecasterValues) > 0 { + for _, e := range m.OneOutForecasterValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + if len(m.OneInForecasterValues) > 0 { + for _, e := range m.OneInForecasterValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + return n +} + +func (m *ReputerValueBundle) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ValueBundle != nil { + l = m.ValueBundle.Size() + n += 1 + l + sovReputer(uint64(l)) + } + l = len(m.Signature) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + l = len(m.Pubkey) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + return n +} + +func (m *ReputerValueBundles) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.ReputerValueBundles) > 0 { + for _, e := range m.ReputerValueBundles { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + return n +} + +func sovReputer(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozReputer(x uint64) (n int) { + return sovReputer(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *WorkerAttributedValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkerAttributedValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkerAttributedValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Worker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipReputer(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthReputer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WithheldWorkerAttributedValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WithheldWorkerAttributedValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WithheldWorkerAttributedValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Worker = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipReputer(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthReputer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValueBundle) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ValueBundle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValueBundle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReputerRequestNonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ReputerRequestNonce == nil { + m.ReputerRequestNonce = &ReputerRequestNonce{} + } + if err := m.ReputerRequestNonce.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExtraData", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExtraData = append(m.ExtraData[:0], dAtA[iNdEx:postIndex]...) + if m.ExtraData == nil { + m.ExtraData = []byte{} + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CombinedValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.CombinedValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InfererValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InfererValues = append(m.InfererValues, &WorkerAttributedValue{}) + if err := m.InfererValues[len(m.InfererValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ForecasterValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ForecasterValues = append(m.ForecasterValues, &WorkerAttributedValue{}) + if err := m.ForecasterValues[len(m.ForecasterValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NaiveValue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.NaiveValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneOutInfererValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneOutInfererValues = append(m.OneOutInfererValues, &WithheldWorkerAttributedValue{}) + if err := m.OneOutInfererValues[len(m.OneOutInfererValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneOutForecasterValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneOutForecasterValues = append(m.OneOutForecasterValues, &WithheldWorkerAttributedValue{}) + if err := m.OneOutForecasterValues[len(m.OneOutForecasterValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneInForecasterValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneInForecasterValues = append(m.OneInForecasterValues, &WorkerAttributedValue{}) + if err := m.OneInForecasterValues[len(m.OneInForecasterValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipReputer(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthReputer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReputerValueBundle) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReputerValueBundle: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReputerValueBundle: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValueBundle", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ValueBundle == nil { + m.ValueBundle = &ValueBundle{} + } + if err := m.ValueBundle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Signature", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Signature = append(m.Signature[:0], dAtA[iNdEx:postIndex]...) + if m.Signature == nil { + m.Signature = []byte{} + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Pubkey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipReputer(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthReputer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ReputerValueBundles) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReputerValueBundles: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReputerValueBundles: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReputerValueBundles", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReputerValueBundles = append(m.ReputerValueBundles, &ReputerValueBundle{}) + if err := m.ReputerValueBundles[len(m.ReputerValueBundles)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipReputer(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthReputer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipReputer(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowReputer + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowReputer + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowReputer + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthReputer + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupReputer + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthReputer + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthReputer = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowReputer = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupReputer = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/emissions/migrations/v2/types/topic.pb.go b/x/emissions/migrations/v2/types/topic.pb.go new file mode 100644 index 000000000..2e2dbd1ed --- /dev/null +++ b/x/emissions/migrations/v2/types/topic.pb.go @@ -0,0 +1,1403 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: emissions/v1/topic.proto + +package types + +import ( + fmt "fmt" + github_com_allora_network_allora_chain_math "github.com/allora-network/allora-chain/math" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" + io "io" + math "math" + math_bits "math/bits" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +type Topic struct { + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` + Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + LossLogic string `protobuf:"bytes,4,opt,name=loss_logic,json=lossLogic,proto3" json:"loss_logic,omitempty"` + LossMethod string `protobuf:"bytes,5,opt,name=loss_method,json=lossMethod,proto3" json:"loss_method,omitempty"` + InferenceLogic string `protobuf:"bytes,6,opt,name=inference_logic,json=inferenceLogic,proto3" json:"inference_logic,omitempty"` + InferenceMethod string `protobuf:"bytes,7,opt,name=inference_method,json=inferenceMethod,proto3" json:"inference_method,omitempty"` + EpochLastEnded int64 `protobuf:"varint,8,opt,name=epoch_last_ended,json=epochLastEnded,proto3" json:"epoch_last_ended,omitempty"` + EpochLength int64 `protobuf:"varint,9,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` + GroundTruthLag int64 `protobuf:"varint,10,opt,name=ground_truth_lag,json=groundTruthLag,proto3" json:"ground_truth_lag,omitempty"` + DefaultArg string `protobuf:"bytes,11,opt,name=default_arg,json=defaultArg,proto3" json:"default_arg,omitempty"` + PNorm github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,12,opt,name=p_norm,json=pNorm,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_norm"` + AlphaRegret github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,13,opt,name=alpha_regret,json=alphaRegret,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"alpha_regret"` + AllowNegative bool `protobuf:"varint,14,opt,name=allow_negative,json=allowNegative,proto3" json:"allow_negative,omitempty"` +} + +func (m *Topic) Reset() { *m = Topic{} } +func (m *Topic) String() string { return proto.CompactTextString(m) } +func (*Topic) ProtoMessage() {} +func (*Topic) Descriptor() ([]byte, []int) { + return fileDescriptor_ae5610c9d5deb158, []int{0} +} +func (m *Topic) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Topic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Topic.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *Topic) XXX_Merge(src proto.Message) { + xxx_messageInfo_Topic.Merge(m, src) +} +func (m *Topic) XXX_Size() int { + return m.Size() +} +func (m *Topic) XXX_DiscardUnknown() { + xxx_messageInfo_Topic.DiscardUnknown(m) +} + +var xxx_messageInfo_Topic proto.InternalMessageInfo + +func (m *Topic) GetId() uint64 { + if m != nil { + return m.Id + } + return 0 +} + +func (m *Topic) GetCreator() string { + if m != nil { + return m.Creator + } + return "" +} + +func (m *Topic) GetMetadata() string { + if m != nil { + return m.Metadata + } + return "" +} + +func (m *Topic) GetLossLogic() string { + if m != nil { + return m.LossLogic + } + return "" +} + +func (m *Topic) GetLossMethod() string { + if m != nil { + return m.LossMethod + } + return "" +} + +func (m *Topic) GetInferenceLogic() string { + if m != nil { + return m.InferenceLogic + } + return "" +} + +func (m *Topic) GetInferenceMethod() string { + if m != nil { + return m.InferenceMethod + } + return "" +} + +func (m *Topic) GetEpochLastEnded() int64 { + if m != nil { + return m.EpochLastEnded + } + return 0 +} + +func (m *Topic) GetEpochLength() int64 { + if m != nil { + return m.EpochLength + } + return 0 +} + +func (m *Topic) GetGroundTruthLag() int64 { + if m != nil { + return m.GroundTruthLag + } + return 0 +} + +func (m *Topic) GetDefaultArg() string { + if m != nil { + return m.DefaultArg + } + return "" +} + +func (m *Topic) GetAllowNegative() bool { + if m != nil { + return m.AllowNegative + } + return false +} + +type TopicList struct { + Topics []*Topic `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"` +} + +func (m *TopicList) Reset() { *m = TopicList{} } +func (m *TopicList) String() string { return proto.CompactTextString(m) } +func (*TopicList) ProtoMessage() {} +func (*TopicList) Descriptor() ([]byte, []int) { + return fileDescriptor_ae5610c9d5deb158, []int{1} +} +func (m *TopicList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicList.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicList) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicList.Merge(m, src) +} +func (m *TopicList) XXX_Size() int { + return m.Size() +} +func (m *TopicList) XXX_DiscardUnknown() { + xxx_messageInfo_TopicList.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicList proto.InternalMessageInfo + +func (m *TopicList) GetTopics() []*Topic { + if m != nil { + return m.Topics + } + return nil +} + +type TimestampedActorNonce struct { + BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` + Actor string `protobuf:"bytes,2,opt,name=actor,proto3" json:"actor,omitempty"` + Nonce *Nonce `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` +} + +func (m *TimestampedActorNonce) Reset() { *m = TimestampedActorNonce{} } +func (m *TimestampedActorNonce) String() string { return proto.CompactTextString(m) } +func (*TimestampedActorNonce) ProtoMessage() {} +func (*TimestampedActorNonce) Descriptor() ([]byte, []int) { + return fileDescriptor_ae5610c9d5deb158, []int{2} +} +func (m *TimestampedActorNonce) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TimestampedActorNonce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TimestampedActorNonce.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TimestampedActorNonce) XXX_Merge(src proto.Message) { + xxx_messageInfo_TimestampedActorNonce.Merge(m, src) +} +func (m *TimestampedActorNonce) XXX_Size() int { + return m.Size() +} +func (m *TimestampedActorNonce) XXX_DiscardUnknown() { + xxx_messageInfo_TimestampedActorNonce.DiscardUnknown(m) +} + +var xxx_messageInfo_TimestampedActorNonce proto.InternalMessageInfo + +func (m *TimestampedActorNonce) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *TimestampedActorNonce) GetActor() string { + if m != nil { + return m.Actor + } + return "" +} + +func (m *TimestampedActorNonce) GetNonce() *Nonce { + if m != nil { + return m.Nonce + } + return nil +} + +func init() { + proto.RegisterType((*Topic)(nil), "emissions.v1.Topic") + proto.RegisterType((*TopicList)(nil), "emissions.v1.TopicList") + proto.RegisterType((*TimestampedActorNonce)(nil), "emissions.v1.TimestampedActorNonce") +} + +func init() { proto.RegisterFile("emissions/v1/topic.proto", fileDescriptor_ae5610c9d5deb158) } + +var fileDescriptor_ae5610c9d5deb158 = []byte{ + // 594 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x93, 0xcf, 0x6e, 0x13, 0x3d, + 0x14, 0xc5, 0x33, 0xcd, 0x9f, 0x36, 0x4e, 0x9a, 0xaf, 0x9f, 0x29, 0x92, 0xa9, 0x44, 0x12, 0x2a, + 0x21, 0x52, 0x21, 0x66, 0xd4, 0xb2, 0x00, 0xb1, 0x6b, 0x05, 0x88, 0x45, 0xc8, 0x62, 0xd4, 0x55, + 0x37, 0x83, 0xeb, 0x71, 0x3d, 0x56, 0x67, 0xec, 0x91, 0xed, 0xb4, 0xb0, 0xe4, 0x0d, 0x78, 0x04, + 0x1e, 0xa7, 0x0b, 0x16, 0x5d, 0x22, 0x16, 0x15, 0x6a, 0x37, 0x3c, 0x06, 0xf2, 0x9d, 0x69, 0x02, + 0x62, 0x83, 0xc4, 0x26, 0xca, 0xfd, 0x9d, 0x33, 0xc7, 0xf2, 0xcc, 0xb9, 0x88, 0xf0, 0x42, 0x5a, + 0x2b, 0xb5, 0xb2, 0xd1, 0xd9, 0x6e, 0xe4, 0x74, 0x29, 0x59, 0x58, 0x1a, 0xed, 0x34, 0xee, 0x2f, + 0x94, 0xf0, 0x6c, 0x77, 0xeb, 0x1e, 0xd3, 0xb6, 0xd0, 0x36, 0x01, 0x2d, 0xaa, 0x86, 0xca, 0xb8, + 0xf5, 0x3f, 0x2d, 0xa4, 0xd2, 0x11, 0xfc, 0xd6, 0x68, 0x53, 0x68, 0xa1, 0x2b, 0xab, 0xff, 0x57, + 0xd3, 0xdf, 0xcf, 0x52, 0x5a, 0x31, 0x5e, 0x29, 0xdb, 0x5f, 0x5a, 0xa8, 0x7d, 0xe8, 0xcf, 0xc6, + 0x03, 0xb4, 0x22, 0x53, 0x12, 0x8c, 0x83, 0x49, 0x2b, 0x5e, 0x91, 0x29, 0x26, 0x68, 0x95, 0x19, + 0x4e, 0x9d, 0x36, 0x64, 0x65, 0x1c, 0x4c, 0xba, 0xf1, 0xed, 0x88, 0xb7, 0xd0, 0x5a, 0xc1, 0x1d, + 0x4d, 0xa9, 0xa3, 0xa4, 0x09, 0xd2, 0x62, 0xc6, 0xf7, 0x11, 0xca, 0xb5, 0xb5, 0x49, 0xae, 0x85, + 0x64, 0xa4, 0x05, 0x6a, 0xd7, 0x93, 0xa9, 0x07, 0x78, 0x84, 0x7a, 0x20, 0x17, 0xdc, 0x65, 0x3a, + 0x25, 0x6d, 0xd0, 0xe1, 0x89, 0xb7, 0x40, 0xf0, 0x23, 0xf4, 0x9f, 0x54, 0x27, 0xdc, 0x70, 0xc5, + 0x78, 0x1d, 0xd2, 0x01, 0xd3, 0x60, 0x81, 0xab, 0xa4, 0x1d, 0xb4, 0xb1, 0x34, 0xd6, 0x71, 0xab, + 0xe0, 0x5c, 0x06, 0xd4, 0x99, 0x13, 0xb4, 0xc1, 0x4b, 0xcd, 0xb2, 0x24, 0xa7, 0xd6, 0x25, 0x5c, + 0xa5, 0x3c, 0x25, 0x6b, 0xe3, 0x60, 0xd2, 0x8c, 0x07, 0xc0, 0xa7, 0xd4, 0xba, 0x57, 0x9e, 0xe2, + 0x07, 0xa8, 0x5f, 0x3b, 0xb9, 0x12, 0x2e, 0x23, 0x5d, 0x70, 0xf5, 0x2a, 0x17, 0x20, 0x1f, 0x26, + 0x8c, 0x9e, 0xab, 0x34, 0x71, 0x66, 0xee, 0x7c, 0xa6, 0x20, 0xa8, 0x0a, 0xab, 0xf8, 0xa1, 0xc7, + 0x53, 0x2a, 0xfc, 0x5d, 0x53, 0x7e, 0x42, 0xe7, 0xb9, 0x4b, 0xa8, 0x11, 0xa4, 0x57, 0xdd, 0xb5, + 0x46, 0xfb, 0x46, 0xe0, 0x19, 0xea, 0x94, 0x89, 0xd2, 0xa6, 0x20, 0x7d, 0xaf, 0x1d, 0x3c, 0xbb, + 0xb8, 0x1a, 0x35, 0xbe, 0x5d, 0x8d, 0x22, 0x21, 0x5d, 0x36, 0x3f, 0x0e, 0x99, 0x2e, 0x22, 0x9a, + 0xe7, 0xda, 0xd0, 0x27, 0x8a, 0xbb, 0x73, 0x6d, 0x4e, 0x6f, 0x47, 0x96, 0x51, 0xa9, 0xa2, 0x82, + 0xba, 0x2c, 0x7c, 0xc9, 0x59, 0xdc, 0x2e, 0x67, 0xda, 0x14, 0xf8, 0x08, 0xf5, 0x69, 0x5e, 0x66, + 0x34, 0x31, 0x5c, 0x18, 0xee, 0xc8, 0xfa, 0xbf, 0xa5, 0xf6, 0x20, 0x2c, 0x86, 0x2c, 0xfc, 0x10, + 0x0d, 0xbc, 0xeb, 0x3c, 0x51, 0x5c, 0x50, 0x27, 0xcf, 0x38, 0x19, 0x8c, 0x83, 0xc9, 0x5a, 0xbc, + 0x0e, 0x74, 0x56, 0xc3, 0xed, 0xe7, 0xa8, 0x0b, 0x6d, 0x9a, 0x4a, 0xeb, 0xf0, 0x63, 0xd4, 0x81, + 0x5a, 0x5b, 0x12, 0x8c, 0x9b, 0x93, 0xde, 0xde, 0x9d, 0xf0, 0xd7, 0x62, 0x87, 0x60, 0x8c, 0x6b, + 0xcb, 0xf6, 0xc7, 0x00, 0xdd, 0x3d, 0x94, 0x05, 0xb7, 0x8e, 0x16, 0x25, 0x4f, 0xf7, 0x99, 0xd3, + 0x66, 0xe6, 0x8b, 0xea, 0x3f, 0xca, 0x71, 0xae, 0xd9, 0x69, 0x92, 0x71, 0x29, 0x32, 0x07, 0x15, + 0x6d, 0xc6, 0x3d, 0x60, 0x6f, 0x00, 0xe1, 0x4d, 0xd4, 0xa6, 0x6c, 0xd9, 0xd4, 0x6a, 0xc0, 0x3b, + 0xa8, 0x0d, 0x55, 0x87, 0x92, 0xfe, 0x71, 0x3c, 0x84, 0xc7, 0x95, 0xe3, 0x45, 0xeb, 0xc7, 0xe7, + 0x51, 0x70, 0xf0, 0xee, 0xe2, 0x7a, 0x18, 0x5c, 0x5e, 0x0f, 0x83, 0xef, 0xd7, 0xc3, 0xe0, 0xd3, + 0xcd, 0xb0, 0x71, 0x79, 0x33, 0x6c, 0x7c, 0xbd, 0x19, 0x36, 0x8e, 0x5e, 0xff, 0xe5, 0xcb, 0x7b, + 0x1f, 0x2d, 0x37, 0xad, 0x90, 0xc2, 0x50, 0x57, 0x2d, 0xdd, 0x5e, 0xe4, 0x3e, 0x94, 0xdc, 0x1e, + 0x77, 0x60, 0xeb, 0x9e, 0xfe, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x43, 0xac, 0x16, 0x00, 0xfd, 0x03, + 0x00, 0x00, +} + +func (this *TimestampedActorNonce) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*TimestampedActorNonce) + if !ok { + that2, ok := that.(TimestampedActorNonce) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.BlockHeight != that1.BlockHeight { + return false + } + if this.Actor != that1.Actor { + return false + } + if !this.Nonce.Equal(that1.Nonce) { + return false + } + return true +} +func (m *Topic) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Topic) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Topic) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.AllowNegative { + i-- + if m.AllowNegative { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x70 + } + { + size := m.AlphaRegret.Size() + i -= size + if _, err := m.AlphaRegret.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTopic(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + { + size := m.PNorm.Size() + i -= size + if _, err := m.PNorm.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTopic(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + if len(m.DefaultArg) > 0 { + i -= len(m.DefaultArg) + copy(dAtA[i:], m.DefaultArg) + i = encodeVarintTopic(dAtA, i, uint64(len(m.DefaultArg))) + i-- + dAtA[i] = 0x5a + } + if m.GroundTruthLag != 0 { + i = encodeVarintTopic(dAtA, i, uint64(m.GroundTruthLag)) + i-- + dAtA[i] = 0x50 + } + if m.EpochLength != 0 { + i = encodeVarintTopic(dAtA, i, uint64(m.EpochLength)) + i-- + dAtA[i] = 0x48 + } + if m.EpochLastEnded != 0 { + i = encodeVarintTopic(dAtA, i, uint64(m.EpochLastEnded)) + i-- + dAtA[i] = 0x40 + } + if len(m.InferenceMethod) > 0 { + i -= len(m.InferenceMethod) + copy(dAtA[i:], m.InferenceMethod) + i = encodeVarintTopic(dAtA, i, uint64(len(m.InferenceMethod))) + i-- + dAtA[i] = 0x3a + } + if len(m.InferenceLogic) > 0 { + i -= len(m.InferenceLogic) + copy(dAtA[i:], m.InferenceLogic) + i = encodeVarintTopic(dAtA, i, uint64(len(m.InferenceLogic))) + i-- + dAtA[i] = 0x32 + } + if len(m.LossMethod) > 0 { + i -= len(m.LossMethod) + copy(dAtA[i:], m.LossMethod) + i = encodeVarintTopic(dAtA, i, uint64(len(m.LossMethod))) + i-- + dAtA[i] = 0x2a + } + if len(m.LossLogic) > 0 { + i -= len(m.LossLogic) + copy(dAtA[i:], m.LossLogic) + i = encodeVarintTopic(dAtA, i, uint64(len(m.LossLogic))) + i-- + dAtA[i] = 0x22 + } + if len(m.Metadata) > 0 { + i -= len(m.Metadata) + copy(dAtA[i:], m.Metadata) + i = encodeVarintTopic(dAtA, i, uint64(len(m.Metadata))) + i-- + dAtA[i] = 0x1a + } + if len(m.Creator) > 0 { + i -= len(m.Creator) + copy(dAtA[i:], m.Creator) + i = encodeVarintTopic(dAtA, i, uint64(len(m.Creator))) + i-- + dAtA[i] = 0x12 + } + if m.Id != 0 { + i = encodeVarintTopic(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Topics) > 0 { + for iNdEx := len(m.Topics) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Topics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTopic(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *TimestampedActorNonce) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TimestampedActorNonce) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TimestampedActorNonce) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Nonce != nil { + { + size, err := m.Nonce.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTopic(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.Actor) > 0 { + i -= len(m.Actor) + copy(dAtA[i:], m.Actor) + i = encodeVarintTopic(dAtA, i, uint64(len(m.Actor))) + i-- + dAtA[i] = 0x12 + } + if m.BlockHeight != 0 { + i = encodeVarintTopic(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintTopic(dAtA []byte, offset int, v uint64) int { + offset -= sovTopic(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *Topic) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Id != 0 { + n += 1 + sovTopic(uint64(m.Id)) + } + l = len(m.Creator) + if l > 0 { + n += 1 + l + sovTopic(uint64(l)) + } + l = len(m.Metadata) + if l > 0 { + n += 1 + l + sovTopic(uint64(l)) + } + l = len(m.LossLogic) + if l > 0 { + n += 1 + l + sovTopic(uint64(l)) + } + l = len(m.LossMethod) + if l > 0 { + n += 1 + l + sovTopic(uint64(l)) + } + l = len(m.InferenceLogic) + if l > 0 { + n += 1 + l + sovTopic(uint64(l)) + } + l = len(m.InferenceMethod) + if l > 0 { + n += 1 + l + sovTopic(uint64(l)) + } + if m.EpochLastEnded != 0 { + n += 1 + sovTopic(uint64(m.EpochLastEnded)) + } + if m.EpochLength != 0 { + n += 1 + sovTopic(uint64(m.EpochLength)) + } + if m.GroundTruthLag != 0 { + n += 1 + sovTopic(uint64(m.GroundTruthLag)) + } + l = len(m.DefaultArg) + if l > 0 { + n += 1 + l + sovTopic(uint64(l)) + } + l = m.PNorm.Size() + n += 1 + l + sovTopic(uint64(l)) + l = m.AlphaRegret.Size() + n += 1 + l + sovTopic(uint64(l)) + if m.AllowNegative { + n += 2 + } + return n +} + +func (m *TopicList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Topics) > 0 { + for _, e := range m.Topics { + l = e.Size() + n += 1 + l + sovTopic(uint64(l)) + } + } + return n +} + +func (m *TimestampedActorNonce) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BlockHeight != 0 { + n += 1 + sovTopic(uint64(m.BlockHeight)) + } + l = len(m.Actor) + if l > 0 { + n += 1 + l + sovTopic(uint64(l)) + } + if m.Nonce != nil { + l = m.Nonce.Size() + n += 1 + l + sovTopic(uint64(l)) + } + return n +} + +func sovTopic(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozTopic(x uint64) (n int) { + return sovTopic(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *Topic) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Topic: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Topic: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) + } + m.Id = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Id |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Creator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTopic + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTopic + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Creator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTopic + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTopic + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Metadata = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LossLogic", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTopic + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTopic + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LossLogic = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LossMethod", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTopic + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTopic + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LossMethod = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InferenceLogic", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTopic + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTopic + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InferenceLogic = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InferenceMethod", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTopic + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTopic + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InferenceMethod = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochLastEnded", wireType) + } + m.EpochLastEnded = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochLastEnded |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field EpochLength", wireType) + } + m.EpochLength = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.EpochLength |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field GroundTruthLag", wireType) + } + m.GroundTruthLag = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.GroundTruthLag |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultArg", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTopic + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTopic + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DefaultArg = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PNorm", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTopic + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTopic + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PNorm.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AlphaRegret", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTopic + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTopic + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AlphaRegret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AllowNegative", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.AllowNegative = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipTopic(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTopic + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTopic + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTopic + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Topics = append(m.Topics, &Topic{}) + if err := m.Topics[len(m.Topics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTopic(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTopic + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TimestampedActorNonce) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TimestampedActorNonce: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TimestampedActorNonce: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Actor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTopic + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTopic + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Actor = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTopic + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTopic + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Nonce == nil { + m.Nonce = &Nonce{} + } + if err := m.Nonce.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTopic(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTopic + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTopic(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTopic + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTopic + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTopic + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTopic + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTopic + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTopic + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTopic = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTopic = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTopic = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/emissions/module/abci.go b/x/emissions/module/abci.go index a1067c057..8f743b31e 100644 --- a/x/emissions/module/abci.go +++ b/x/emissions/module/abci.go @@ -3,11 +3,10 @@ package module import ( "context" "fmt" - "sync" "cosmossdk.io/errors" + allorautils "github.com/allora-network/allora-chain/x/emissions/keeper/actor_utils" "github.com/allora-network/allora-chain/x/emissions/module/rewards" - "github.com/allora-network/allora-chain/x/emissions/types" sdk "github.com/cosmos/cosmos-sdk/types" ) @@ -17,17 +16,21 @@ func EndBlocker(ctx context.Context, am AppModule) error { sdkCtx.Logger().Debug( fmt.Sprintf("\n ---------------- Emissions EndBlock %d ------------------- \n", blockHeight)) - + moduleParams, err := am.keeper.GetParams(sdkCtx) + if err != nil { + sdkCtx.Logger().Error("Error Getting module params", err) + return err + } // Remove Stakers that have been wanting to unstake this block. They no longer get paid rewards - RemoveStakes(sdkCtx, blockHeight, am.keeper) - RemoveDelegateStakes(sdkCtx, blockHeight, am.keeper) + RemoveStakes(sdkCtx, blockHeight, am.keeper, moduleParams.HalfMaxProcessStakeRemovalsEndBlock) + RemoveDelegateStakes(sdkCtx, blockHeight, am.keeper, moduleParams.HalfMaxProcessStakeRemovalsEndBlock) // Get unnormalized weights of active topics and the sum weight and revenue they have generated weights, sumWeight, totalRevenue, err := rewards.GetAndUpdateActiveTopicWeights(sdkCtx, am.keeper, blockHeight) if err != nil { return errors.Wrapf(err, "Weights error") } - sdkCtx.Logger().Debug(fmt.Sprintf("EndBlocker %d: Total Revenue: %v, Sum Weight: %v", blockHeight, totalRevenue, sumWeight)) + sdkCtx.Logger().Debug(fmt.Sprintf("ABCI EndBlocker %d: Total Revenue: %v, Sum Weight: %v", blockHeight, totalRevenue, sumWeight)) // REWARDS (will internally filter any non-RewardReady topics) err = rewards.EmitRewards(sdkCtx, am.keeper, blockHeight, weights, sumWeight, totalRevenue) @@ -36,86 +39,51 @@ func EndBlocker(ctx context.Context, am AppModule) error { return errors.Wrapf(err, "Rewards error") } - // Reset the churn ready topics - err = am.keeper.ResetChurnableTopics(ctx) - if err != nil { - sdkCtx.Logger().Error("Error resetting churn ready topics: ", err) - return errors.Wrapf(err, "Resetting churn ready topics error") - } - - // NONCE MGMT with Churnable weights - var wg sync.WaitGroup - // Loop over and run epochs on topics whose inferences are demanded enough to be served - fn := func(sdkCtx sdk.Context, topic *types.Topic) error { - // Parallelize nonce management and update of topic to be in a churn ready state - wg.Add(1) - go func(topic types.Topic) { - defer wg.Done() - // Check the cadence of inferences, and just in case also check multiples of epoch lengths - // to avoid potential situations where the block is missed - if am.keeper.CheckCadence(blockHeight, topic) { - sdkCtx.Logger().Debug(fmt.Sprintf("ABCI EndBlocker: Inference cadence met for topic: %v metadata: %s default arg: %s. \n", - topic.Id, - topic.Metadata, - topic.DefaultArg)) - - // Update the last inference ran - err = am.keeper.UpdateTopicEpochLastEnded(sdkCtx, topic.Id, blockHeight) - if err != nil { - sdkCtx.Logger().Warn(fmt.Sprintf("Error updating last inference ran: %s", err.Error())) - } - // Add Worker Nonces - nextNonce := types.Nonce{BlockHeight: blockHeight} - err = am.keeper.AddWorkerNonce(sdkCtx, topic.Id, &nextNonce) - if err != nil { - sdkCtx.Logger().Warn(fmt.Sprintf("Error adding worker nonce: %s", err.Error())) - return - } - sdkCtx.Logger().Debug(fmt.Sprintf("Added worker nonce for topic %d: %v \n", topic.Id, nextNonce.BlockHeight)) - // To notify topic handler that the topic is ready for churn i.e. requests to be sent to workers and reputers - err = am.keeper.AddChurnableTopic(ctx, topic.Id) - if err != nil { - sdkCtx.Logger().Warn(fmt.Sprintf("Error setting churn ready topic: %s", err.Error())) - return - } - - MaxUnfulfilledReputerRequests := types.DefaultParams().MaxUnfulfilledReputerRequests - moduleParams, err := am.keeper.GetParams(ctx) - if err != nil { - sdkCtx.Logger().Warn(fmt.Sprintf("Error getting max retries to fulfil nonces for worker requests (using default), err: %s", err.Error())) - } else { - MaxUnfulfilledReputerRequests = moduleParams.MaxUnfulfilledReputerRequests - } - // Adding one to cover for one extra epochLength - reputerPruningBlock := blockHeight - (int64(MaxUnfulfilledReputerRequests+1)*topic.EpochLength + topic.GroundTruthLag) - if reputerPruningBlock > 0 { - sdkCtx.Logger().Warn(fmt.Sprintf("Pruning reputer nonces before block: %v for topic: %d on block: %v", reputerPruningBlock, topic.Id, blockHeight)) - am.keeper.PruneReputerNonces(sdkCtx, topic.Id, reputerPruningBlock) - - // Reputer nonces need to check worker nonces from one epoch before - workerPruningBlock := reputerPruningBlock - topic.EpochLength - if workerPruningBlock > 0 { - sdkCtx.Logger().Debug("Pruning worker nonces before block: ", workerPruningBlock, " for topic: ", topic.Id) - // Prune old worker nonces previous to current blockHeight to avoid inserting inferences after its time has passed - am.keeper.PruneWorkerNonces(sdkCtx, topic.Id, workerPruningBlock) - } - } - } - }(*topic) - return nil - } - err = rewards.IdentifyChurnableAmongActiveTopicsAndApplyFn( + err = rewards.PickChurnableActiveTopics( sdkCtx, am.keeper, blockHeight, - fn, weights, ) if err != nil { sdkCtx.Logger().Error("Error applying function on all rewardable topics: ", err) return err } - wg.Wait() + // Close any open windows due this blockHeight + workerWindowsToClose := am.keeper.GetWorkerWindowTopicIds(sdkCtx, blockHeight) + if len(workerWindowsToClose.TopicIds) > 0 { + for _, topicId := range workerWindowsToClose.TopicIds { + sdkCtx.Logger().Info(fmt.Sprintf("ABCI EndBlocker: Worker close cadence met for topic: %d", topicId)) + // Check if there is an unfulfilled nonce + nonces, err := am.keeper.GetUnfulfilledWorkerNonces(sdkCtx, topicId) + if err != nil { + sdkCtx.Logger().Warn(fmt.Sprintf("Error getting unfulfilled worker nonces: %s", err.Error())) + continue + } else if len(nonces.Nonces) == 0 { + // No nonces to fulfill + continue + } else { + for _, nonce := range nonces.Nonces { + sdkCtx.Logger().Debug(fmt.Sprintf("ABCI EndBlocker %d: Closing Worker window for topic: %d, nonce: %v", blockHeight, topicId, nonce)) + err := allorautils.CloseWorkerNonce(&am.keeper, sdkCtx, topicId, *nonce) + if err != nil { + sdkCtx.Logger().Info(fmt.Sprintf("Error closing worker nonce, proactively fulfilling: %s", err.Error())) + // Proactively close the nonce + fulfilledNonce, err := am.keeper.FulfillWorkerNonce(sdkCtx, topicId, nonce) + if err != nil { + sdkCtx.Logger().Warn(fmt.Sprintf("Error fulfilling worker nonce: %s", err.Error())) + } else { + sdkCtx.Logger().Debug(fmt.Sprintf("Fulfilled: %t, worker nonce: %v", fulfilledNonce, nonce)) + } + } + } + } + } + err = am.keeper.DeleteWorkerWindowBlockheight(sdkCtx, blockHeight) + if err != nil { + sdkCtx.Logger().Warn(fmt.Sprintf("Error deleting worker window blockheight: %s", err.Error())) + } + } return nil } diff --git a/x/emissions/module/autocli.go b/x/emissions/module/autocli.go index 07f2e5e3a..52a79efa0 100644 --- a/x/emissions/module/autocli.go +++ b/x/emissions/module/autocli.go @@ -2,14 +2,14 @@ package module import ( autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" - statev1 "github.com/allora-network/allora-chain/x/emissions/api/v1" + statev2 "github.com/allora-network/allora-chain/x/emissions/api/v2" ) // AutoCLIOptions implements the autocli.HasAutoCLIConfig interface. func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { return &autocliv1.ModuleOptions{ Query: &autocliv1.ServiceCommandDescriptor{ - Service: statev1.Query_ServiceDesc.ServiceName, + Service: statev2.Query_ServiceDesc.ServiceName, RpcCommandOptions: []*autocliv1.RpcCommandOptions{ { RpcMethod: "Params", @@ -53,11 +53,6 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { {ProtoField: "pagination"}, }, }, - { - RpcMethod: "GetChurnableTopics", - Use: "churnable-topics", - Short: "Get Churnable Topics", - }, { RpcMethod: "GetRewardableTopics", Use: "rewardable-topics", @@ -246,11 +241,51 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, }, { - RpcMethod: "GetOneInForecasterSelfNetworkRegret", - Use: "one-in-forecaster-self-regret [topic_id] [forecaster]", - Short: "Returns regret born from including [forecaster]'s implied inference. Default to topic InitialRegret if does not exist", + RpcMethod: "GetNaiveInfererNetworkRegret", + Use: "naive-inferer-network-regret [topic_id] [inferer]", + Short: "Returns regret born from including [inferer]'s naive inference in a batch. Default to topic InitialRegret if does not exist", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "topic_id"}, + {ProtoField: "inferer"}, + }, + }, + { + RpcMethod: "GetOneOutInfererInfererNetworkRegret", + Use: "one-out-inferer-inferer-network-regret [topic_id] [one_out_inferer] [inferer]", + Short: "Returns regret born from including [one_out_inferer]'s implied inference in a batch with [inferer]. Default to topic InitialRegret if does not exist", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "topic_id"}, + {ProtoField: "one_out_inferer"}, + {ProtoField: "inferer"}, + }, + }, + { + RpcMethod: "GetOneOutInfererForecasterNetworkRegret", + Use: "one-out-inferer-forecaster-network-regret [topic_id] [one_out_inferer] [forecaster]", + Short: "Returns regret born from including [one_out_inferer]'s implied inference in a batch with [forecaster]. Default to topic InitialRegret if does not exist", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "topic_id"}, + {ProtoField: "one_out_inferer"}, + {ProtoField: "forecaster"}, + }, + }, + { + RpcMethod: "GetOneOutForecasterInfererNetworkRegret", + Use: "one-out-forecaster-inferer-network-regret [topic_id] [one_out_forecaster] [inferer]", + Short: "Returns regret born from including [one_out_forecaster]'s implied inference in a batch with [inferer]. Default to topic InitialRegret if does not exist", + PositionalArgs: []*autocliv1.PositionalArgDescriptor{ + {ProtoField: "topic_id"}, + {ProtoField: "one_out_forecaster"}, + {ProtoField: "inferer"}, + }, + }, + { + RpcMethod: "GetOneOutForecasterForecasterNetworkRegret", + Use: "one-out-forecaster-forecaster-network-regret [topic_id] [one_out_forecaster] [forecaster]", + Short: "Returns regret born from including [one_out_forecaster]'s implied inference in a batch with [forecaster]. Default to topic InitialRegret if does not exist", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ {ProtoField: "topic_id"}, + {ProtoField: "one_out_forecaster"}, {ProtoField: "forecaster"}, }, }, @@ -338,22 +373,6 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { {ProtoField: "topic_id"}, }, }, - { - RpcMethod: "GetTopicLastReputerPayload", - Use: "latest-reputer-payload [topic_id]", - Short: "Return latest reputer payload delivered for a topic", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{ - {ProtoField: "topic_id"}, - }, - }, - { - RpcMethod: "GetTopicLastWorkerPayload", - Use: "latest-worker-payload [topic_id]", - Short: "Return latest worker payload delivered for a topic", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{ - {ProtoField: "topic_id"}, - }, - }, { RpcMethod: "GetTopicRewardNonce", Use: "topic-reward-nonce [topic_id]", @@ -457,34 +476,18 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, { RpcMethod: "GetWorkerNodeInfo", - Use: "worker-info [libp2p_key]", - Short: "Get node info for worker node libp2p key", + Use: "worker-info [address]", + Short: "Get node info for worker node", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ - {ProtoField: "libp2p_key"}, + {ProtoField: "address"}, }, }, { RpcMethod: "GetReputerNodeInfo", - Use: "reputer-info [libp2p_key]", - Short: "Get node info for reputer node libp2p key", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{ - {ProtoField: "libp2p_key"}, - }, - }, - { - RpcMethod: "GetWorkerAddressByP2PKey", - Use: "worker-address [libp2p_key]", - Short: "Get Worker Address by libp2p key", + Use: "reputer-info [addresss]", + Short: "Get node info for reputer node", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ - {ProtoField: "libp2p_key"}, - }, - }, - { - RpcMethod: "GetReputerAddressByP2PKey", - Use: "reputer-address [libp2p_key]", - Short: "Get Reputer Address by libp2p key", - PositionalArgs: []*autocliv1.PositionalArgDescriptor{ - {ProtoField: "libp2p_key"}, + {ProtoField: "address"}, }, }, { @@ -555,16 +558,16 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, }, { - RpcMethod: "GetStakeRemovalsForBlock", - Use: "stake-removals-for-block [block_height]", + RpcMethod: "GetStakeRemovalsUpUntilBlock", + Use: "stake-removals-up-until-block [block_height]", Short: "Get all pending stake removal requests going to happen at a given block height", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ {ProtoField: "block_height"}, }, }, { - RpcMethod: "GetDelegateStakeRemovalsForBlock", - Use: "delegate-stake-removals-for-block [block_height]", + RpcMethod: "GetDelegateStakeRemovalsUpUntilBlock", + Use: "delegate-stake-removals-up-until-block [block_height]", Short: "Get all pending delegate stake removal requests going to happen at a given block height", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ {ProtoField: "block_height"}, @@ -608,7 +611,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, }, Tx: &autocliv1.ServiceCommandDescriptor{ - Service: statev1.Msg_ServiceDesc.ServiceName, + Service: statev2.Msg_ServiceDesc.ServiceName, RpcCommandOptions: []*autocliv1.RpcCommandOptions{ { RpcMethod: "UpdateParams", @@ -621,18 +624,15 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, { RpcMethod: "CreateNewTopic", - Use: "create-topic [creator] [metadata] [loss_logic] [loss_method] [inference_logic] [inference_method] [epoch_length] [ground_truth_lag] [default_arg] [p_norm] [alpha_regret] [allow_negative] [epsilon]", + Use: "create-topic [creator] [metadata] [loss_method] [epoch_length] [ground_truth_lag] [worker_submission_window] [p_norm] [alpha_regret] [allow_negative] [epsilon]", Short: "Add a new topic to the network", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ {ProtoField: "creator"}, {ProtoField: "metadata"}, - {ProtoField: "loss_logic"}, {ProtoField: "loss_method"}, - {ProtoField: "inference_logic"}, - {ProtoField: "inference_method"}, {ProtoField: "epoch_length"}, {ProtoField: "ground_truth_lag"}, - {ProtoField: "default_arg"}, + {ProtoField: "worker_submission_window"}, {ProtoField: "p_norm"}, {ProtoField: "alpha_regret"}, {ProtoField: "allow_negative"}, @@ -641,12 +641,10 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, { RpcMethod: "Register", - Use: "register [sender] [lib_p2p_key] [multi_address] [topic_ids] [initial_stake] [owner] [is_reputer]", + Use: "register [sender] [topic_ids] [owner] [is_reputer]", Short: "Register a new reputer or worker for a topic", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ {ProtoField: "sender"}, - {ProtoField: "lib_p2p_key"}, - {ProtoField: "multi_address"}, {ProtoField: "topic_id"}, {ProtoField: "owner"}, {ProtoField: "is_reputer"}, @@ -762,21 +760,21 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { }, }, { - RpcMethod: "InsertBulkWorkerPayload", - Use: "insert-bulk-worker-payload [worker_data_bundles]", - Short: "Insert bulk worker payload", + RpcMethod: "InsertWorkerPayload", + Use: "insert-worker-payload [sender] [worker_data]", + Short: "Insert worker payload", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ {ProtoField: "sender"}, - {ProtoField: "worker_data_bundles"}, + {ProtoField: "worker_data_bundle"}, }, }, { - RpcMethod: "InsertBulkReputerPayload", - Use: "insert-bulk-reputer-payload [reputer_value_bundles]", - Short: "Insert bulk reputer payload", + RpcMethod: "InsertReputerPayload", + Use: "insert-reputer-payload [sender] [reputer_data]", + Short: "Insert reputer payload", PositionalArgs: []*autocliv1.PositionalArgDescriptor{ {ProtoField: "sender"}, - {ProtoField: "reputer_value_bundles"}, + {ProtoField: "reputer_value_bundle"}, }, }, }, diff --git a/x/emissions/module/module.go b/x/emissions/module/module.go index 2cda57ab3..35906b645 100644 --- a/x/emissions/module/module.go +++ b/x/emissions/module/module.go @@ -9,6 +9,7 @@ import ( keeper "github.com/allora-network/allora-chain/x/emissions/keeper" "github.com/allora-network/allora-chain/x/emissions/keeper/msgserver" "github.com/allora-network/allora-chain/x/emissions/keeper/queryserver" + v2 "github.com/allora-network/allora-chain/x/emissions/migrations/v2" "github.com/allora-network/allora-chain/x/emissions/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -26,7 +27,7 @@ var ( ) // ConsensusVersion defines the current module consensus version. -const ConsensusVersion = 1 +const ConsensusVersion = 2 type AppModule struct { cdc codec.Codec @@ -68,9 +69,9 @@ func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterMsgServer(cfg.MsgServer(), msgserver.NewMsgServerImpl(am.keeper)) types.RegisterQueryServer(cfg.QueryServer(), queryserver.NewQueryServerImpl(am.keeper)) - // Register in place module state migration migrations - m := keeper.NewMigrator(am.keeper) - if err := cfg.RegisterMigration(types.ModuleName, 1, m.Migrate1to2); err != nil { + if err := cfg.RegisterMigration(types.ModuleName, 1, func(ctx sdk.Context) error { + return v2.MigrateStore(ctx, am.keeper) + }); err != nil { panic(fmt.Sprintf("failed to migrate x/%s from version 1 to 2: %v", types.ModuleName, err)) } } diff --git a/x/emissions/module/rewards/reputer_rewards.go b/x/emissions/module/rewards/reputer_rewards.go index 0bf67be3f..006f49d79 100644 --- a/x/emissions/module/rewards/reputer_rewards.go +++ b/x/emissions/module/rewards/reputer_rewards.go @@ -56,17 +56,17 @@ func GetReputerTaskEntropy( err error, ) { numReputers := len(reputers) - emaReputerRewards := make([]alloraMath.Dec, numReputers) + emaRewardFractions := make([]alloraMath.Dec, numReputers) for i, reputer := range reputers { - previousReputerRewardFraction, noPriorRegret, err := k.GetPreviousReputerRewardFraction(ctx, topicId, reputer) + previousReputerRewardFraction, noPriorFraction, err := k.GetPreviousReputerRewardFraction(ctx, topicId, reputer) if err != nil { return alloraMath.Dec{}, errors.Wrapf(err, "failed to get previous reputer reward fraction") } - emaReputerRewards[i], err = alloraMath.CalcEma( + emaRewardFractions[i], err = alloraMath.CalcEma( emaAlpha, reputerFractions[i], previousReputerRewardFraction, - noPriorRegret, + noPriorFraction, ) if err != nil { return alloraMath.Dec{}, errors.Wrapf(err, "failed to calculate EMA reputer rewards") @@ -74,11 +74,11 @@ func GetReputerTaskEntropy( } // Calculate modified reward fractions and persist for next round - reputerNumberRatio, err := NumberRatio(emaReputerRewards) + numberRatio, err := NumberRatio(emaRewardFractions) if err != nil { return alloraMath.Dec{}, errors.Wrapf(err, "failed to calculate reputer number ratio") } - modifiedRewardFractions, err := ModifiedRewardFractions(emaReputerRewards) + modifiedRewardFractions, err := ModifiedRewardFractions(emaRewardFractions) if err != nil { return alloraMath.Dec{}, errors.Wrapf(err, "failed to calculate modified reward fractions") } @@ -92,7 +92,7 @@ func GetReputerTaskEntropy( if numReputers > 1 { entropy, err = Entropy( modifiedRewardFractions, - reputerNumberRatio, + numberRatio, alloraMath.NewDecFromInt64(int64(numReputers)), betaEntropy, ) diff --git a/x/emissions/module/rewards/reputer_rewards_test.go b/x/emissions/module/rewards/reputer_rewards_test.go index 29a31e400..a2258c813 100644 --- a/x/emissions/module/rewards/reputer_rewards_test.go +++ b/x/emissions/module/rewards/reputer_rewards_test.go @@ -6,6 +6,8 @@ import ( cosmosMath "cosmossdk.io/math" "github.com/allora-network/allora-chain/app/params" alloraMath "github.com/allora-network/allora-chain/math" + "github.com/allora-network/allora-chain/test/testutil" + inferencesynthesis "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis" "github.com/allora-network/allora-chain/x/emissions/module/rewards" "github.com/allora-network/allora-chain/x/emissions/types" sdk "github.com/cosmos/cosmos-sdk/types" @@ -448,6 +450,156 @@ func (s *RewardsTestSuite) TestGetReputersRewardFractionsShouldOutputZeroForRepu ) } +func (s *RewardsTestSuite) TestGetReputersRewardFractionsFromCsv() { + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch3Get := epochGet[300] + + topicId := uint64(1) + block := int64(1003) + + reputer0 := s.addrs[0].String() + reputer1 := s.addrs[1].String() + reputer2 := s.addrs[2].String() + reputer3 := s.addrs[3].String() + reputer4 := s.addrs[4].String() + reputerAddresses := []string{reputer0, reputer1, reputer2, reputer3, reputer4} + + cosmosOneE18 := inferencesynthesis.CosmosIntOneE18() + cosmosOneE18Dec, err := alloraMath.NewDecFromSdkInt(cosmosOneE18) + s.Require().NoError(err) + + reputer0Stake, err := epoch3Get("reputer_stake_0").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer0StakeInt, err := reputer0Stake.BigInt() + s.Require().NoError(err) + reputer1Stake, err := epoch3Get("reputer_stake_1").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer1StakeInt, err := reputer1Stake.BigInt() + s.Require().NoError(err) + reputer2Stake, err := epoch3Get("reputer_stake_2").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer2StakeInt, err := reputer2Stake.BigInt() + s.Require().NoError(err) + reputer3Stake, err := epoch3Get("reputer_stake_3").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer3StakeInt, err := reputer3Stake.BigInt() + s.Require().NoError(err) + reputer4Stake, err := epoch3Get("reputer_stake_4").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer4StakeInt, err := reputer4Stake.BigInt() + s.Require().NoError(err) + + var stakes = []cosmosMath.Int{ + cosmosMath.NewIntFromBigInt(reputer0StakeInt), + cosmosMath.NewIntFromBigInt(reputer1StakeInt), + cosmosMath.NewIntFromBigInt(reputer2StakeInt), + cosmosMath.NewIntFromBigInt(reputer3StakeInt), + cosmosMath.NewIntFromBigInt(reputer4StakeInt), + } + var scores = []alloraMath.Dec{ + epoch3Get("reputer_score_0"), + epoch3Get("reputer_score_1"), + epoch3Get("reputer_score_2"), + epoch3Get("reputer_score_3"), + epoch3Get("reputer_score_4"), + } + scoreStructs := make([]types.Score, 0) + for i, reputerAddr := range reputerAddresses { + err := s.emissionsKeeper.AddReputerStake(s.ctx, topicId, reputerAddr, stakes[i]) + s.Require().NoError(err) + + scoreToAdd := types.Score{ + TopicId: topicId, + BlockHeight: block, + Address: reputerAddr, + Score: scores[i], + } + scoreStructs = append(scoreStructs, scoreToAdd) + } + + // Get reputer rewards + _, reputersRewardFractions, err := rewards.GetReputersRewardFractions( + s.ctx, + s.emissionsKeeper, + topicId, + alloraMath.OneDec(), + scoreStructs, + ) + s.Require().NoError(err) + + expectedFractions := []alloraMath.Dec{ + epoch3Get("reputer_reward_fraction_0"), + epoch3Get("reputer_reward_fraction_1"), + epoch3Get("reputer_reward_fraction_2"), + epoch3Get("reputer_reward_fraction_3"), + epoch3Get("reputer_reward_fraction_4"), + } + for i, reputerRewardFraction := range reputersRewardFractions { + testutil.InEpsilon5( + s.T(), + expectedFractions[i], + reputerRewardFraction.String(), + ) + } +} + +func (s *RewardsTestSuite) TestGetReputerTaskEntropyFromCsv() { + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch1Get := epochGet[301] + epoch2Get := epochGet[302] + topicId := uint64(1) + + taskRewardAlpha := alloraMath.MustNewDecFromString("0.1") + betaEntropy := alloraMath.MustNewDecFromString("0.25") + + reputer0 := s.addrs[0].String() + reputer1 := s.addrs[1].String() + reputer2 := s.addrs[2].String() + reputer3 := s.addrs[3].String() + reputer4 := s.addrs[4].String() + reputerAddresses := []string{reputer0, reputer1, reputer2, reputer3, reputer4} + + // Add previous epoch reward fractions + reputerFractionsEpoch1 := []alloraMath.Dec{ + epoch1Get("reputer_reward_fraction_smooth_0"), + epoch1Get("reputer_reward_fraction_smooth_1"), + epoch1Get("reputer_reward_fraction_smooth_2"), + epoch1Get("reputer_reward_fraction_smooth_3"), + epoch1Get("reputer_reward_fraction_smooth_4"), + } + for i, reputerAddr := range reputerAddresses { + err := s.emissionsKeeper.SetPreviousReputerRewardFraction(s.ctx, topicId, reputerAddr, reputerFractionsEpoch1[i]) + s.Require().NoError(err) + } + + reputerFractionsEpoch2 := []alloraMath.Dec{ + epoch2Get("reputer_reward_fraction_0"), + epoch2Get("reputer_reward_fraction_1"), + epoch2Get("reputer_reward_fraction_2"), + epoch2Get("reputer_reward_fraction_3"), + epoch2Get("reputer_reward_fraction_4"), + } + + // Get reputer task entropy + reputerEntropy, err := rewards.GetReputerTaskEntropy( + s.ctx, + s.emissionsKeeper, + topicId, + taskRewardAlpha, + betaEntropy, + reputerAddresses, + reputerFractionsEpoch2, + ) + s.Require().NoError(err) + + expectedEntropy := epoch2Get("reputers_entropy") + testutil.InEpsilon5( + s.T(), + expectedEntropy, + reputerEntropy.String(), + ) +} + // mockReputersData generates reputer scores, stakes and losses func mockReputersData(s *RewardsTestSuite, topicId uint64, block int64, reputerAddrs []string) (types.ReputerValueBundles, error) { var scores = []alloraMath.Dec{ @@ -505,18 +657,15 @@ func mockReputersData(s *RewardsTestSuite, topicId uint64, block int64, reputerA func CreateTopic(ctx context.Context, msgServer types.MsgServer, creator string) (uint64, error) { // Create topic newTopicMsg := &types.MsgCreateNewTopic{ - Creator: creator, - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: creator, + Metadata: "test", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err := msgServer.CreateNewTopic(ctx, newTopicMsg) if err != nil { diff --git a/x/emissions/module/rewards/rewards.go b/x/emissions/module/rewards/rewards.go index c20b25ffb..09720c2f3 100644 --- a/x/emissions/module/rewards/rewards.go +++ b/x/emissions/module/rewards/rewards.go @@ -40,23 +40,23 @@ func EmitRewards( if err != nil { return errors.Wrapf(err, "failed to get rewardable topics") } - // Sorted, active topics by weight descending. Still need skim top N to truly be the churnable topics - sortedChurnableTopics := alloraMath.GetSortedElementsByDecWeightDesc(rewardableTopics, weights) + // Sorted, active topics by weight descending. Still need skim top N to truly be the rewardable topics + sortedRewardableTopics := alloraMath.GetSortedElementsByDecWeightDesc(rewardableTopics, weights) - if len(sortedChurnableTopics) == 0 { - Logger(ctx).Warn("No churnable topics found") + if len(sortedRewardableTopics) == 0 { + Logger(ctx).Warn("No rewardable topics found") return nil } - // Top `N=MaxTopicsPerBlock` active topics of this block => the *actually* churnable topics - if uint64(len(sortedChurnableTopics)) > moduleParams.MaxTopicsPerBlock { - sortedChurnableTopics = sortedChurnableTopics[:moduleParams.MaxTopicsPerBlock] + // Top `N=MaxTopicsPerBlock` active topics of this block => the *actually* rewardable topics + if uint64(len(sortedRewardableTopics)) > moduleParams.MaxTopicsPerBlock { + sortedRewardableTopics = sortedRewardableTopics[:moduleParams.MaxTopicsPerBlock] } - // Get total weight of churnable topics - sumWeightOfChurnableTopics := alloraMath.ZeroDec() - for _, topicId := range sortedChurnableTopics { - sumWeightOfChurnableTopics, err = sumWeightOfChurnableTopics.Add(*weights[topicId]) + // Get total weight of rewardable topics + sumWeightOfRewardableTopics := alloraMath.ZeroDec() + for _, topicId := range sortedRewardableTopics { + sumWeightOfRewardableTopics, err = sumWeightOfRewardableTopics.Add(*weights[topicId]) if err != nil { return errors.Wrapf(err, "failed to add weight of top topics") } @@ -64,14 +64,14 @@ func EmitRewards( // Revenue (above) is what was earned by topics in this timestep. Rewards are what are actually paid to topics => participants // The reward and revenue calculations are coupled here to minimize excessive compute - topicRewards, err := CalcTopicRewards(ctx, k, weights, sortedChurnableTopics, sumWeightOfChurnableTopics, totalReward) + topicRewards, err := CalcTopicRewards(ctx, k, weights, sortedRewardableTopics, sumWeightOfRewardableTopics, totalReward) if err != nil { return errors.Wrapf(err, "failed to calculate topic rewards") } // Calculate then pay out topic rewards to topic participants totalRewardToStakedReputers := alloraMath.ZeroDec() // This is used to communicate with the mint module - for _, topicId := range sortedChurnableTopics { + for _, topicId := range sortedRewardableTopics { topicReward := topicRewards[topicId] if topicReward == nil { Logger(ctx).Warn(fmt.Sprintf("Topic %d has no reward, skipping", topicId)) @@ -304,7 +304,7 @@ func GenerateRewardsDistributionByTopicParticipant( var forecastingEntropy alloraMath.Dec if len(forecasters) > 0 && len(inferers) > 1 { // Get forecasting entropy - forecastingEntropy, err = GetForecastingTaskEntropy( + forecastingEntropy, err = GetForecastTaskEntropy( ctx, k, topicId, @@ -332,15 +332,34 @@ func GenerateRewardsDistributionByTopicParticipant( return []types.TaskReward{}, alloraMath.Dec{}, errors.Wrapf(err, "failed to get reward for reputer task in topic") } - // Get Total Rewards for Inference task - taskInferenceReward, err := GetRewardForInferenceTaskInTopic( + // Get previous forecaster score ratio for topic + previousForecasterScoreRatio, err := k.GetPreviousForecasterScoreRatio(ctx, topicId) + if err != nil { + return []types.TaskReward{}, alloraMath.Dec{}, errors.Wrapf(err, "failed to get previous forecast score ratio") + } + + // Get chi (Forecasting Utility) and gamma (Normalization Factor) + chi, gamma, err := GetChiAndGamma( lossBundles.NaiveValue, lossBundles.CombinedValue, + inferenceEntropy, + forecastingEntropy, + infererScores, + previousForecasterScoreRatio, + moduleParams.TaskRewardAlpha, + ) + if err != nil { + return []types.TaskReward{}, alloraMath.Dec{}, errors.Wrapf(err, "failed to get chi and gamma") + } + + // Get Total Rewards for Inference task + taskInferenceReward, err := GetRewardForInferenceTaskInTopic( inferenceEntropy, forecastingEntropy, reputerEntropy, topicReward, - infererScores, + chi, + gamma, ) if err != nil { return []types.TaskReward{}, alloraMath.Dec{}, errors.Wrapf(err, "failed to get reward for inference task in topic") @@ -348,13 +367,12 @@ func GenerateRewardsDistributionByTopicParticipant( // Get Total Rewards for Forecasting task taskForecastingReward, err := GetRewardForForecastingTaskInTopic( - lossBundles.NaiveValue, - lossBundles.CombinedValue, inferenceEntropy, forecastingEntropy, reputerEntropy, topicReward, - infererScores, + chi, + gamma, ) if err != nil { return []types.TaskReward{}, alloraMath.Dec{}, errors.Wrapf(err, "failed to get reward for forecasting task in topic") diff --git a/x/emissions/module/rewards/rewards_internal.go b/x/emissions/module/rewards/rewards_internal.go index e100c2ee2..c5e23b12d 100644 --- a/x/emissions/module/rewards/rewards_internal.go +++ b/x/emissions/module/rewards/rewards_internal.go @@ -48,7 +48,7 @@ func GetScoreFractions( } // Mapping function used by score fraction calculation -// M(T) = φ_p (abs[ T / σ(T) + ɛ]) +// M(T) = φ_p (T / (σ(T) + ɛ)) // phi is the phi function // sigma is NOT the sigma function but rather represents standard deviation func GetMappingFunctionValues( @@ -450,7 +450,7 @@ func GetAllReputersOutput( // finalScores := make([]alloraMath.Dec, numReputers) newScores := make([]alloraMath.Dec, numReputers) - for maxGradient.Gt(maxGradientThreshold) && i < gradientDescentMaxIters { + for maxGradient.Gte(maxGradientThreshold) && i < gradientDescentMaxIters { copy(oldCoefficients, coefficients) gradient := make([]alloraMath.Dec, numReputers) @@ -808,6 +808,17 @@ func ExtractValues(bundle *types.ValueBundle) []alloraMath.Dec { for _, v := range bundle.ForecasterValues { values = append(values, v.Value) } + sort.Slice(bundle.OneOutInfererForecasterValues, func(i, j int) bool { + return bundle.OneOutInfererForecasterValues[i].Forecaster < bundle.OneOutInfererForecasterValues[j].Forecaster + }) + for _, v := range bundle.OneOutInfererForecasterValues { + sort.Slice(v.OneOutInfererValues, func(i, j int) bool { + return v.OneOutInfererValues[i].Worker < v.OneOutInfererValues[j].Worker + }) + for _, v2 := range v.OneOutInfererValues { + values = append(values, v2.Value) + } + } sort.Slice(bundle.OneOutInfererValues, func(i, j int) bool { return bundle.OneOutInfererValues[i].Worker < bundle.OneOutInfererValues[j].Worker }) diff --git a/x/emissions/module/rewards/rewards_internal_test.go b/x/emissions/module/rewards/rewards_internal_test.go index 4c609b6c7..86660c8b0 100644 --- a/x/emissions/module/rewards/rewards_internal_test.go +++ b/x/emissions/module/rewards/rewards_internal_test.go @@ -6,6 +6,7 @@ import ( "testing" alloraMath "github.com/allora-network/allora-chain/math" + "github.com/allora-network/allora-chain/test/testutil" "github.com/allora-network/allora-chain/x/emissions/module/rewards" emissionstypes "github.com/allora-network/allora-chain/x/emissions/types" "github.com/stretchr/testify/require" @@ -136,15 +137,26 @@ func (s *MathTestSuite) TestInferenceRewardsSimple() { {Score: alloraMath.MustNewDecFromString("0.5")}, {Score: alloraMath.MustNewDecFromString("0.5")}, } + previousForecasterScoreRatio := alloraMath.ZeroDec() + alpha := alloraMath.OneDec() totalReward := alloraMath.MustNewDecFromString("2.0") + chi, gamma, err := rewards.GetChiAndGamma( + alloraMath.MustNewDecFromString("2"), // log10(L_i- (naive)) + alloraMath.MustNewDecFromString("1"), // log10(L_i (network)) + alloraMath.MustNewDecFromString("2.0"), + alloraMath.MustNewDecFromString("2.0"), + infererScores, + previousForecasterScoreRatio, + alpha, + ) + s.Require().NoError(err) infRewards, err := rewards.GetRewardForInferenceTaskInTopic( - alloraMath.MustNewDecFromString("2"), // log10(L_i- (naive)) - alloraMath.MustNewDecFromString("1"), // log10(L_i (network)) alloraMath.MustNewDecFromString("2.0"), // F_i alloraMath.MustNewDecFromString("2.0"), // G_i alloraMath.MustNewDecFromString("4.0"), // H_i &totalReward, // E_i - infererScores, + chi, + gamma, ) s.Require().NoError(err) expected := alloraMath.MustNewDecFromString("0.5") @@ -167,14 +179,25 @@ func (s *MathTestSuite) TestInferenceRewardsZero() { {Score: alloraMath.MustNewDecFromString("0.5")}, {Score: alloraMath.MustNewDecFromString("0.5")}, } + previousForecasterScoreRatio := alloraMath.ZeroDec() + alpha := alloraMath.OneDec() + chi, gamma, err := rewards.GetChiAndGamma( + alloraMath.MustNewDecFromString("2"), // log10(L_i- (naive)) + alloraMath.MustNewDecFromString("1"), // log10(L_i (network)) + alloraMath.MustNewDecFromString("2.0"), + alloraMath.MustNewDecFromString("2.0"), + infererScores, + previousForecasterScoreRatio, + alpha, + ) + s.Require().NoError(err) result, err := rewards.GetRewardForInferenceTaskInTopic( - alloraMath.MustNewDecFromString("2"), // log10(L_i- (naive)) - alloraMath.MustNewDecFromString("1"), // log10(L_i (network)) alloraMath.MustNewDecFromString("2.0"), // F_i alloraMath.MustNewDecFromString("2.0"), // G_i alloraMath.MustNewDecFromString("4.0"), // H_i &totalReward, // E_i - infererScores, + chi, + gamma, ) s.Require().NoError(err) s.Require().True(alloraMath.InDelta(alloraMath.ZeroDec(), result, alloraMath.MustNewDecFromString("0.0001"))) @@ -191,15 +214,26 @@ func (s *MathTestSuite) TestForecastRewardsSimple() { {Score: alloraMath.MustNewDecFromString("0.5")}, {Score: alloraMath.MustNewDecFromString("0.5")}, } + previousForecasterScoreRatio := alloraMath.ZeroDec() + alpha := alloraMath.OneDec() totalReward := alloraMath.MustNewDecFromString("2.0") - result, err := rewards.GetRewardForForecastingTaskInTopic( - alloraMath.MustNewDecFromString("2"), // log10(L_i- (naive)) - alloraMath.MustNewDecFromString("1"), // log10(L_i (network)) + chi, gamma, err := rewards.GetChiAndGamma( + alloraMath.MustNewDecFromString("2"), // log10(L_i- (naive)) + alloraMath.MustNewDecFromString("1"), // log10(L_i (network)) + alloraMath.MustNewDecFromString("2.0"), + alloraMath.MustNewDecFromString("2.0"), + infererScores, + previousForecasterScoreRatio, + alpha, + ) + s.Require().NoError(err) + result, err := rewards.GetRewardForInferenceTaskInTopic( alloraMath.MustNewDecFromString("2.0"), // F_i alloraMath.MustNewDecFromString("2.0"), // G_i alloraMath.MustNewDecFromString("4.0"), // H_i &totalReward, // E_i - infererScores, + chi, + gamma, ) expected := alloraMath.MustNewDecFromString("0.5") s.Require().NoError(err) @@ -226,26 +260,36 @@ func (s *MathTestSuite) TestU_iOverV_i() { {Score: alloraMath.MustNewDecFromString("0.5")}, {Score: alloraMath.MustNewDecFromString("0.5")}, } + previousForecasterScoreRatio := alloraMath.ZeroDec() + alpha := alloraMath.OneDec() totalReward := alloraMath.MustNewDecFromString("2.0") + chi, gamma, err := rewards.GetChiAndGamma( + alloraMath.MustNewDecFromString("2"), // log10(L_i- (naive)) + alloraMath.MustNewDecFromString("1"), // log10(L_i (network)) + alloraMath.MustNewDecFromString("2.0"), + alloraMath.MustNewDecFromString("2.0"), + infererScores, + previousForecasterScoreRatio, + alpha, + ) + s.Require().NoError(err) U_i, err := rewards.GetRewardForInferenceTaskInTopic( - alloraMath.MustNewDecFromString("2"), // log10(L_i- (naive)) - alloraMath.MustNewDecFromString("1"), // log10(L_i (network)) alloraMath.MustNewDecFromString("2.0"), // F_i alloraMath.MustNewDecFromString("2.0"), // G_i alloraMath.MustNewDecFromString("4.0"), // H_i &totalReward, // E_i - infererScores, + chi, + gamma, ) s.Require().NoError(err) V_i, err := rewards.GetRewardForForecastingTaskInTopic( - alloraMath.MustNewDecFromString("2"), // log10(L_i- (naive)) - alloraMath.MustNewDecFromString("1"), // log10(L_i (network)) alloraMath.MustNewDecFromString("2.0"), // F_i alloraMath.MustNewDecFromString("2.0"), // G_i alloraMath.MustNewDecFromString("4.0"), // H_i &totalReward, // E_i - infererScores, + chi, + gamma, ) s.Require().NoError(err) @@ -270,14 +314,25 @@ func (s *MathTestSuite) TestForecastRewardsZero() { {Score: alloraMath.MustNewDecFromString("0.5")}, {Score: alloraMath.MustNewDecFromString("0.5")}, } + previousForecasterScoreRatio := alloraMath.ZeroDec() + alpha := alloraMath.OneDec() + chi, gamma, err := rewards.GetChiAndGamma( + alloraMath.MustNewDecFromString("2"), // log10(L_i- (naive)) + alloraMath.MustNewDecFromString("1"), // log10(L_i (network)) + alloraMath.MustNewDecFromString("2.0"), + alloraMath.MustNewDecFromString("2.0"), + infererScores, + previousForecasterScoreRatio, + alpha, + ) + s.Require().NoError(err) result, err := rewards.GetRewardForForecastingTaskInTopic( - alloraMath.MustNewDecFromString("2"), // log10(L_i- (naive)) - alloraMath.MustNewDecFromString("1"), // log10(L_i (network)) alloraMath.MustNewDecFromString("2.0"), // F_i alloraMath.MustNewDecFromString("2.0"), // G_i alloraMath.MustNewDecFromString("4.0"), // H_i &totalReward, // E_i - infererScores, + chi, + gamma, ) s.Require().NoError(err) @@ -311,6 +366,23 @@ func (s *MathTestSuite) TestReputerRewardZero() { s.Require().True(alloraMath.InDelta(alloraMath.ZeroDec(), result, alloraMath.MustNewDecFromString("0.0001"))) } +func (s *MathTestSuite) TestReputerRewardFromCsv() { + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch3Get := epochGet[300] + totalReward, err := testutil.GetTotalRewardForTopicInEpoch(epoch3Get) + s.Require().NoError(err) + result, err := rewards.GetRewardForReputerTaskInTopic( + epoch3Get("inferers_entropy"), + epoch3Get("forecasters_entropy"), + epoch3Get("reputers_entropy"), + &totalReward, + ) + s.Require().NoError(err) + expectedTotalReputerReward, err := testutil.GetTotalReputerRewardForTopicInEpoch(epoch3Get) + s.Require().NoError(err) + testutil.InEpsilon5(s.T(), result, expectedTotalReputerReward.String()) +} + func (s *MathTestSuite) TestForecastingPerformanceScoreSimple() { networkInferenceLoss := alloraMath.MustNewDecFromString("100.0") naiveNetworkInferenceLoss := alloraMath.MustNewDecFromString("1000.0") @@ -327,28 +399,29 @@ func (s *MathTestSuite) TestSigmoidSimple() { } func (s *MathTestSuite) TestForecastingUtilitySimple() { + alpha := alloraMath.OneDec() + previousForecasterScoreRatio := alloraMath.ZeroDec() // Test case where score < 0 negativeScore := alloraMath.MustNewDecFromString("-0.1") infererScores := []emissionstypes.Score{ {Score: alloraMath.MustNewDecFromString("0.5")}, {Score: alloraMath.MustNewDecFromString("0.5")}, } - ret, err := rewards.ForecastingUtility(negativeScore, infererScores) + ret, err := rewards.ForecastingUtility(negativeScore, infererScores, previousForecasterScoreRatio, alpha) s.Require().NoError(err) s.Require().True(alloraMath.InDelta(alloraMath.MustNewDecFromString("0.1"), ret, alloraMath.MustNewDecFromString("0.0001"))) // Test case where score > 1 highScore := alloraMath.MustNewDecFromString("1.1") - ret, err = rewards.ForecastingUtility(highScore, infererScores) + ret, err = rewards.ForecastingUtility(highScore, infererScores, previousForecasterScoreRatio, alpha) s.Require().NoError(err) s.Require().True(alloraMath.InDelta(alloraMath.MustNewDecFromString("0.5"), ret, alloraMath.MustNewDecFromString("0.0001"))) // Test case where 0 <= score <= 1 forecastingPerformanceScore := alloraMath.MustNewDecFromString("0.125") - // 0.4 * 0.125 + 0.1 = 0.15 - expectedResult := alloraMath.MustNewDecFromString("0.15") + expectedResult := alloraMath.MustNewDecFromString("0.2") - ret, err = rewards.ForecastingUtility(forecastingPerformanceScore, infererScores) + ret, err = rewards.ForecastingUtility(forecastingPerformanceScore, infererScores, previousForecasterScoreRatio, alpha) s.Require().NoError(err) s.Require().True(alloraMath.InDelta(expectedResult, ret, alloraMath.MustNewDecFromString("0.0001"))) } @@ -369,44 +442,6 @@ func (s *MathTestSuite) TestNormalizationFactorSimple() { s.Require().True(alloraMath.InDelta(alloraMath.NewDecFromInt64(2), result, alloraMath.MustNewDecFromString("0.0001"))) } -func TestGetScoreFractions(t *testing.T) { - - latestWorkerScores := []alloraMath.Dec{ - alloraMath.MustNewDecFromString("-0.00388"), alloraMath.MustNewDecFromString("-0.01554"), alloraMath.MustNewDecFromString("0.00545"), alloraMath.MustNewDecFromString("0.03906"), alloraMath.MustNewDecFromString("0.09418"), - } - latestTimeStepsScores := []alloraMath.Dec{ - alloraMath.MustNewDecFromString("-0.00675"), alloraMath.MustNewDecFromString("-0.00622"), alloraMath.MustNewDecFromString("-0.00388"), - alloraMath.MustNewDecFromString("-0.01502"), alloraMath.MustNewDecFromString("-0.01214"), alloraMath.MustNewDecFromString("-0.01554"), - alloraMath.MustNewDecFromString("0.00392"), alloraMath.MustNewDecFromString("0.00559"), alloraMath.MustNewDecFromString("0.00545"), - alloraMath.MustNewDecFromString("0.0438"), alloraMath.MustNewDecFromString("0.04304"), alloraMath.MustNewDecFromString("0.03906"), - alloraMath.MustNewDecFromString("0.09719"), alloraMath.MustNewDecFromString("0.09675"), alloraMath.MustNewDecFromString("0.09418"), - } - pReward := alloraMath.MustNewDecFromString("1.5") - cReward := alloraMath.MustNewDecFromString("0.75") - epsilon := alloraMath.MustNewDecFromString("1e-4") - want := []alloraMath.Dec{ - alloraMath.MustNewDecFromString("0.06096603693506903"), - alloraMath.MustNewDecFromString("0.04128061303504279"), - alloraMath.MustNewDecFromString("0.08227288942572898"), - alloraMath.MustNewDecFromString("0.21299058305064521"), - alloraMath.MustNewDecFromString("0.60248987755351395"), - } - - got, err := rewards.GetScoreFractions(latestWorkerScores, latestTimeStepsScores, pReward, cReward, epsilon) - require.NoError(t, err) - - for i := range want { - if !(alloraMath.InDelta(want[i], got[i], alloraMath.MustNewDecFromString("0.001"))) { - t.Errorf( - "GetWorkerPortionOfRewards() got = %s, want %s", - got[i].String(), - want[i].String(), - ) - return - } - } -} - func TestCalculateReputerRewardFractions(t *testing.T) { tests := []struct { name string diff --git a/x/emissions/module/rewards/rewards_test.go b/x/emissions/module/rewards/rewards_test.go index e4a5d9656..6756c93cb 100644 --- a/x/emissions/module/rewards/rewards_test.go +++ b/x/emissions/module/rewards/rewards_test.go @@ -1,6 +1,7 @@ package rewards_test import ( + "github.com/allora-network/allora-chain/x/emissions/keeper/actor_utils" "testing" "time" @@ -205,18 +206,15 @@ func (s *RewardsTestSuite) TestStandardRewardEmission() { // Create topic newTopicMsg := &types.MsgCreateNewTopic{ - Creator: reputerAddrs[0].String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputerAddrs[0].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err := s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -227,12 +225,10 @@ func (s *RewardsTestSuite) TestStandardRewardEmission() { // Register 5 workers for _, addr := range workerAddrs { workerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: false, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, workerRegMsg) s.Require().NoError(err) @@ -241,12 +237,10 @@ func (s *RewardsTestSuite) TestStandardRewardEmission() { // Register 5 reputers for _, addr := range reputerAddrs { reputerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: true, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, reputerRegMsg) s.Require().NoError(err) @@ -284,27 +278,31 @@ func (s *RewardsTestSuite) TestStandardRewardEmission() { // Insert inference from workers inferenceBundles := GenerateWorkerDataBundles(s, block, topicId) - _, err = s.msgServer.InsertBulkWorkerPayload(s.ctx, &types.MsgInsertBulkWorkerPayload{ - Sender: workerAddrs[0].String(), - Nonce: &types.Nonce{BlockHeight: block}, - TopicId: topicId, - WorkerDataBundles: inferenceBundles, - }) + for _, payload := range inferenceBundles { + _, err = s.msgServer.InsertWorkerPayload(s.ctx, &types.MsgInsertWorkerPayload{ + Sender: payload.Worker, + WorkerDataBundle: payload, + }) + s.Require().NoError(err) + } + + topic, err := s.emissionsKeeper.GetTopic(s.ctx, topicId) s.Require().NoError(err) + newBlockheight := block + topic.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(newBlockheight) + // Insert loss bundle from reputers lossBundles := GenerateLossBundles(s, block, topicId, reputerAddrs) - _, err = s.msgServer.InsertBulkReputerPayload(s.ctx, &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddrs[0].String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &types.Nonce{ - BlockHeight: block, - }, - }, - ReputerValueBundles: lossBundles.ReputerValueBundles, - }) - s.Require().NoError(err) + for _, payload := range lossBundles.ReputerValueBundles { + _, _ = s.emissionsKeeper.FulfillWorkerNonce(s.ctx, topicId, payload.ValueBundle.ReputerRequestNonce.ReputerNonce) + _ = s.emissionsKeeper.AddReputerNonce(s.ctx, topicId, payload.ValueBundle.ReputerRequestNonce.ReputerNonce) + _, err = s.msgServer.InsertReputerPayload(s.ctx, &types.MsgInsertReputerPayload{ + Sender: payload.ValueBundle.Reputer, + ReputerValueBundle: payload, + }) + s.Require().NoError(err) + } block += 1 s.ctx = s.ctx.WithBlockHeight(block) @@ -338,18 +336,15 @@ func (s *RewardsTestSuite) TestStandardRewardEmissionShouldRewardTopicsWithFulfi // Create topic newTopicMsg := &types.MsgCreateNewTopic{ - Creator: reputerAddrs[0].String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputerAddrs[0].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err := s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -360,12 +355,10 @@ func (s *RewardsTestSuite) TestStandardRewardEmissionShouldRewardTopicsWithFulfi // Register 5 workers for _, addr := range workerAddrs { workerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: false, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, workerRegMsg) s.Require().NoError(err) @@ -374,12 +367,10 @@ func (s *RewardsTestSuite) TestStandardRewardEmissionShouldRewardTopicsWithFulfi // Register 5 reputers for _, addr := range reputerAddrs { reputerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: true, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, reputerRegMsg) s.Require().NoError(err) @@ -435,27 +426,30 @@ func (s *RewardsTestSuite) TestStandardRewardEmissionShouldRewardTopicsWithFulfi // Insert inference from workers inferenceBundles := GenerateWorkerDataBundles(s, block, topicId) - _, err = s.msgServer.InsertBulkWorkerPayload(s.ctx, &types.MsgInsertBulkWorkerPayload{ - Sender: workerAddrs[0].String(), - Nonce: &types.Nonce{BlockHeight: block}, - TopicId: topicId, - WorkerDataBundles: inferenceBundles, - }) + for _, payload := range inferenceBundles { + _, err = s.msgServer.InsertWorkerPayload(s.ctx, &types.MsgInsertWorkerPayload{ + Sender: payload.Worker, + WorkerDataBundle: payload, + }) + s.Require().NoError(err) + } + + topic, err := s.emissionsKeeper.GetTopic(s.ctx, topicId) s.Require().NoError(err) + newBlockheight := block + topic.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(newBlockheight) // Insert loss bundle from reputers lossBundles := GenerateLossBundles(s, block, topicId, reputerAddrs) - _, err = s.msgServer.InsertBulkReputerPayload(s.ctx, &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddrs[0].String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &types.Nonce{ - BlockHeight: block, - }, - }, - ReputerValueBundles: lossBundles.ReputerValueBundles, - }) - s.Require().NoError(err) + for _, payload := range lossBundles.ReputerValueBundles { + _, _ = s.emissionsKeeper.FulfillWorkerNonce(s.ctx, topicId, payload.ValueBundle.ReputerRequestNonce.ReputerNonce) + _ = s.emissionsKeeper.AddReputerNonce(s.ctx, topicId, payload.ValueBundle.ReputerRequestNonce.ReputerNonce) + _, err = s.msgServer.InsertReputerPayload(s.ctx, &types.MsgInsertReputerPayload{ + Sender: payload.ValueBundle.Reputer, + ReputerValueBundle: payload, + }) + s.Require().NoError(err) + } // Create topic 2 // Reputer Addresses @@ -478,18 +472,15 @@ func (s *RewardsTestSuite) TestStandardRewardEmissionShouldRewardTopicsWithFulfi // Create topic newTopicMsg = &types.MsgCreateNewTopic{ - Creator: reputerAddrs[0].String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputerAddrs[0].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err = s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -500,12 +491,10 @@ func (s *RewardsTestSuite) TestStandardRewardEmissionShouldRewardTopicsWithFulfi // Register 5 workers for _, addr := range workerAddrs { workerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId2, - IsReputer: false, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId2, + IsReputer: false, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, workerRegMsg) s.Require().NoError(err) @@ -514,12 +503,10 @@ func (s *RewardsTestSuite) TestStandardRewardEmissionShouldRewardTopicsWithFulfi // Register 5 reputers for _, addr := range reputerAddrs { reputerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId2, - IsReputer: true, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId2, + IsReputer: true, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, reputerRegMsg) s.Require().NoError(err) @@ -617,18 +604,15 @@ func (s *RewardsTestSuite) setUpTopicWithEpochLength( // Create topic newTopicMsg := &types.MsgCreateNewTopic{ - Creator: reputerAddrs[0].String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: epochLength, - GroundTruthLag: epochLength, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alphaRegret, - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputerAddrs[0].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: epochLength, + GroundTruthLag: epochLength, + WorkerSubmissionWindow: epochLength, + AlphaRegret: alphaRegret, + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err := s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) require.NoError(err) @@ -638,12 +622,10 @@ func (s *RewardsTestSuite) setUpTopicWithEpochLength( for _, workerAddr := range workerAddrs { workerRegMsg := &types.MsgRegister{ - Sender: workerAddr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: workerAddr.String(), + Sender: workerAddr.String(), + TopicId: topicId, + IsReputer: false, + Owner: workerAddr.String(), } _, err := s.msgServer.Register(s.ctx, workerRegMsg) require.NoError(err) @@ -651,12 +633,10 @@ func (s *RewardsTestSuite) setUpTopicWithEpochLength( for _, reputerAddr := range reputerAddrs { reputerRegMsg := &types.MsgRegister{ - Sender: reputerAddr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: reputerAddr.String(), + Sender: reputerAddr.String(), + TopicId: topicId, + IsReputer: true, + Owner: reputerAddr.String(), } _, err := s.msgServer.Register(s.ctx, reputerRegMsg) require.NoError(err) @@ -721,18 +701,23 @@ func (s *RewardsTestSuite) getRewardsDistribution( } workerAddrs := getAddrsFromValues(workerValues) - reputerAddrs := getAddrsFromValues(reputerValues) + topic, err := s.emissionsKeeper.GetTopic(s.ctx, topicId) + s.Require().NoError(err) + + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(blockHeight) // Insert inference from workers - inferenceBundles := GenerateSimpleWorkerDataBundles(s, topicId, blockHeight, workerValues, reputerAddrs) + inferenceBundles := GenerateSimpleWorkerDataBundles(s, topicId, blockHeight, workerValues, workerAddrs) + for _, payload := range inferenceBundles { + _, err = s.msgServer.InsertWorkerPayload(s.ctx, &types.MsgInsertWorkerPayload{ + Sender: payload.Worker, + WorkerDataBundle: payload, + }) + require.NoError(err) + } - _, err = s.msgServer.InsertBulkWorkerPayload(s.ctx, &types.MsgInsertBulkWorkerPayload{ - Sender: workerAddrs[0].String(), - Nonce: &types.Nonce{BlockHeight: blockHeight}, - TopicId: topicId, - WorkerDataBundles: inferenceBundles, - }) - require.NoError(err) + err = actor_utils.CloseWorkerNonce(&s.emissionsKeeper, s.ctx, topicId, *inferenceBundles[0].Nonce) + s.Require().NoError(err) // Insert loss bundle from reputers lossBundles := GenerateSimpleLossBundles( @@ -746,15 +731,17 @@ func (s *RewardsTestSuite) getRewardsDistribution( workerZeroInfererValue, ) - _, err = s.msgServer.InsertBulkReputerPayload(s.ctx, &types.MsgInsertBulkReputerPayload{ - Sender: reputerValues[0].Address.String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &types.Nonce{BlockHeight: blockHeight}, - }, - ReputerValueBundles: lossBundles.ReputerValueBundles, - }) - require.NoError(err) + newBlockheight := blockHeight + topic.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(newBlockheight) + for _, payload := range lossBundles.ReputerValueBundles { + _, err = s.msgServer.InsertReputerPayload(s.ctx, &types.MsgInsertReputerPayload{ + Sender: payload.ValueBundle.Reputer, + ReputerValueBundle: payload, + }) + require.NoError(err) + } + err = actor_utils.CloseReputerNonce(&s.emissionsKeeper, s.ctx, topicId, *lossBundles.ReputerValueBundles[0].ValueBundle.ReputerRequestNonce.ReputerNonce) + s.Require().NoError(err) topicTotalRewards := alloraMath.NewDecFromInt64(1000000) @@ -779,7 +766,7 @@ func areTaskRewardsEqualIgnoringTopicId(s *RewardsTestSuite, A []types.TaskRewar for _, taskRewardA := range A { found := false for _, taskRewardB := range B { - if taskRewardA.Address == taskRewardB.Address { + if taskRewardA.Address == taskRewardB.Address && taskRewardA.Type == taskRewardB.Type { if found { s.Fail("Worker %v found twice", taskRewardA.Address) } @@ -787,9 +774,6 @@ func areTaskRewardsEqualIgnoringTopicId(s *RewardsTestSuite, A []types.TaskRewar if !alloraMath.InDelta(taskRewardA.Reward, taskRewardB.Reward, alloraMath.MustNewDecFromString("0.00001")) { return false } - if taskRewardA.Type != taskRewardB.Type { - return false - } } } if !found { @@ -1032,7 +1016,7 @@ func (s *RewardsTestSuite) TestIncreasingTaskRewardAlphaIncreasesImportanceOfPre var workerReward_0_0_1_Reward alloraMath.Dec found := false for _, reward := range rewardsDistribution0_1 { - if reward.Address == workerAddrs[0].String() { + if reward.Address == workerAddrs[0].String() && reward.Type == types.WorkerInferenceRewardType { found = true workerReward_0_0_1_Reward = reward.Reward } @@ -1044,7 +1028,7 @@ func (s *RewardsTestSuite) TestIncreasingTaskRewardAlphaIncreasesImportanceOfPre var workerReward_0_1_1_Reward alloraMath.Dec found = false for _, reward := range rewardsDistribution1_1 { - if reward.Address == workerAddrs[0].String() { + if reward.Address == workerAddrs[0].String() && reward.Type == types.WorkerInferenceRewardType { found = true workerReward_0_1_1_Reward = reward.Reward } @@ -1251,18 +1235,15 @@ func (s *RewardsTestSuite) TestGenerateTasksRewardsShouldIncreaseRewardShareIfMo // Create topic newTopicMsg := &types.MsgCreateNewTopic{ - Creator: reputerAddrs[0].String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputerAddrs[0].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err := s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -1273,12 +1254,10 @@ func (s *RewardsTestSuite) TestGenerateTasksRewardsShouldIncreaseRewardShareIfMo // Register 5 workers for _, addr := range workerAddrs { workerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: false, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, workerRegMsg) s.Require().NoError(err) @@ -1287,12 +1266,10 @@ func (s *RewardsTestSuite) TestGenerateTasksRewardsShouldIncreaseRewardShareIfMo // Register 3 reputers for _, addr := range reputerAddrs { reputerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: true, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, reputerRegMsg) s.Require().NoError(err) @@ -1329,27 +1306,33 @@ func (s *RewardsTestSuite) TestGenerateTasksRewardsShouldIncreaseRewardShareIfMo // Insert inference from workers inferenceBundles := GenerateWorkerDataBundles(s, block, topicId) - _, err = s.msgServer.InsertBulkWorkerPayload(s.ctx, &types.MsgInsertBulkWorkerPayload{ - Sender: workerAddrs[0].String(), - Nonce: &types.Nonce{BlockHeight: block}, - TopicId: topicId, - WorkerDataBundles: inferenceBundles, - }) + for _, payload := range inferenceBundles { + _, err = s.msgServer.InsertWorkerPayload(s.ctx, &types.MsgInsertWorkerPayload{ + Sender: payload.Worker, + WorkerDataBundle: payload, + }) + s.Require().NoError(err) + } + + topic, err := s.emissionsKeeper.GetTopic(s.ctx, topicId) s.Require().NoError(err) + newBlockheight := block + topic.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(newBlockheight) + // Insert loss bundle from reputers lossBundles := GenerateLossBundles(s, block, topicId, reputerAddrs) - _, err = s.msgServer.InsertBulkReputerPayload(s.ctx, &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddrs[0].String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &types.Nonce{ - BlockHeight: block, - }, - }, - ReputerValueBundles: lossBundles.ReputerValueBundles, - }) - s.Require().NoError(err) + for _, payload := range lossBundles.ReputerValueBundles { + _, _ = s.emissionsKeeper.FulfillWorkerNonce(s.ctx, topicId, payload.ValueBundle.ReputerRequestNonce.ReputerNonce) + _ = s.emissionsKeeper.AddReputerNonce(s.ctx, topicId, payload.ValueBundle.ReputerRequestNonce.ReputerNonce) + _, err = s.msgServer.InsertReputerPayload(s.ctx, &types.MsgInsertReputerPayload{ + Sender: payload.ValueBundle.Reputer, + ReputerValueBundle: payload, + }) + s.Require().NoError(err) + err = s.emissionsKeeper.InsertNetworkLossBundleAtBlock(s.ctx, topicId, block, *payload.ValueBundle) + s.Require().NoError(err) + } topicTotalRewards := alloraMath.NewDecFromInt64(1000000) params, err := s.emissionsKeeper.GetParams(s.ctx) @@ -1395,18 +1378,15 @@ func (s *RewardsTestSuite) TestGenerateTasksRewardsShouldIncreaseRewardShareIfMo // Create new topic newTopicMsg = &types.MsgCreateNewTopic{ - Creator: reputerAddrs[0].String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputerAddrs[0].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err = s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -1417,12 +1397,10 @@ func (s *RewardsTestSuite) TestGenerateTasksRewardsShouldIncreaseRewardShareIfMo // Register 5 workers for _, addr := range workerAddrs { workerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: false, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, workerRegMsg) s.Require().NoError(err) @@ -1431,12 +1409,10 @@ func (s *RewardsTestSuite) TestGenerateTasksRewardsShouldIncreaseRewardShareIfMo // Register 5 reputers for _, addr := range reputerAddrs { reputerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: true, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, reputerRegMsg) s.Require().NoError(err) @@ -1473,27 +1449,30 @@ func (s *RewardsTestSuite) TestGenerateTasksRewardsShouldIncreaseRewardShareIfMo // Insert inference from workers inferenceBundles = GenerateWorkerDataBundles(s, block, topicId) - _, err = s.msgServer.InsertBulkWorkerPayload(s.ctx, &types.MsgInsertBulkWorkerPayload{ - Sender: workerAddrs[0].String(), - Nonce: &types.Nonce{BlockHeight: block}, - TopicId: topicId, - WorkerDataBundles: inferenceBundles, - }) - s.Require().NoError(err) + for _, payload := range inferenceBundles { + _, err = s.msgServer.InsertWorkerPayload(s.ctx, &types.MsgInsertWorkerPayload{ + Sender: payload.Worker, + WorkerDataBundle: payload, + }) + s.Require().NoError(err) + } + + newBlockheight = block + topic.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(newBlockheight) // Insert loss bundle from reputers lossBundles = GenerateLossBundles(s, block, topicId, reputerAddrs) - _, err = s.msgServer.InsertBulkReputerPayload(s.ctx, &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddrs[0].String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &types.Nonce{ - BlockHeight: block, - }, - }, - ReputerValueBundles: lossBundles.ReputerValueBundles, - }) - s.Require().NoError(err) + for _, payload := range lossBundles.ReputerValueBundles { + _, _ = s.emissionsKeeper.FulfillWorkerNonce(s.ctx, topicId, payload.ValueBundle.ReputerRequestNonce.ReputerNonce) + _ = s.emissionsKeeper.AddReputerNonce(s.ctx, topicId, payload.ValueBundle.ReputerRequestNonce.ReputerNonce) + _, err = s.msgServer.InsertReputerPayload(s.ctx, &types.MsgInsertReputerPayload{ + Sender: payload.ValueBundle.Reputer, + ReputerValueBundle: payload, + }) + s.Require().NoError(err) + err = s.emissionsKeeper.InsertNetworkLossBundleAtBlock(s.ctx, topicId, block, *payload.ValueBundle) + s.Require().NoError(err) + } secondRewardsDistribution, secondTotalReputerReward, err := rewards.GenerateRewardsDistributionByTopicParticipant(s.ctx, s.emissionsKeeper, topicId, &topicTotalRewards, block, params) s.Require().NoError(err) @@ -1546,18 +1525,15 @@ func (s *RewardsTestSuite) TestRewardsIncreasesBalance() { // Create topic newTopicMsg := &types.MsgCreateNewTopic{ - Creator: reputerAddrs[0].String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: epochLength, - GroundTruthLag: epochLength, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.MustNewDecFromString("0.1"), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputerAddrs[0].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: epochLength, + GroundTruthLag: epochLength, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.MustNewDecFromString("0.1"), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err := s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -1568,12 +1544,10 @@ func (s *RewardsTestSuite) TestRewardsIncreasesBalance() { // Register 5 workers for _, addr := range workerAddrs { workerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: false, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, workerRegMsg) s.Require().NoError(err) @@ -1582,12 +1556,10 @@ func (s *RewardsTestSuite) TestRewardsIncreasesBalance() { // Register 5 reputers for _, addr := range reputerAddrs { reputerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: true, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, reputerRegMsg) s.Require().NoError(err) @@ -1648,30 +1620,38 @@ func (s *RewardsTestSuite) TestRewardsIncreasesBalance() { // Insert inference from workers inferenceBundles := GenerateWorkerDataBundles(s, block, topicId) - _, err = s.msgServer.InsertBulkWorkerPayload(s.ctx, &types.MsgInsertBulkWorkerPayload{ - Sender: workerAddrs[0].String(), - Nonce: &types.Nonce{BlockHeight: block}, - TopicId: topicId, - WorkerDataBundles: inferenceBundles, - }) + for _, payload := range inferenceBundles { + _, err = s.msgServer.InsertWorkerPayload(s.ctx, &types.MsgInsertWorkerPayload{ + Sender: payload.Worker, + WorkerDataBundle: payload, + }) + s.Require().NoError(err) + } + + err = actor_utils.CloseWorkerNonce(&s.emissionsKeeper, s.ctx, topicId, *inferenceBundles[0].Nonce) s.Require().NoError(err) + topic, err := s.emissionsKeeper.GetTopic(s.ctx, topicId) + s.Require().NoError(err) + + newBlockheight := block + topic.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(newBlockheight) + // Insert loss bundle from reputers lossBundles := GenerateLossBundles(s, block, topicId, reputerAddrs) - _, err = s.msgServer.InsertBulkReputerPayload(s.ctx, &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddrs[0].String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &types.Nonce{ - BlockHeight: block, - }, - }, - ReputerValueBundles: lossBundles.ReputerValueBundles, - }) + for _, payload := range lossBundles.ReputerValueBundles { + _, err = s.msgServer.InsertReputerPayload(s.ctx, &types.MsgInsertReputerPayload{ + Sender: payload.ValueBundle.Reputer, + ReputerValueBundle: payload, + }) + s.Require().NoError(err) + } + + err = actor_utils.CloseReputerNonce(&s.emissionsKeeper, s.ctx, topicId, *lossBundles.ReputerValueBundles[0].ValueBundle.ReputerRequestNonce.ReputerNonce) s.Require().NoError(err) - block += epochLength * 3 - s.ctx = s.ctx.WithBlockHeight(block) + newBlockheight += epochLength * 3 + s.ctx = s.ctx.WithBlockHeight(newBlockheight) // mint some rewards to give out s.MintTokensToModule(types.AlloraRewardsAccountName, cosmosMath.NewInt(1000)) @@ -1690,9 +1670,6 @@ func (s *RewardsTestSuite) TestRewardsIncreasesBalance() { reputerStakeCurrent.String(), reputerStake[i].String(), ) - s.Require().True( - s.bankKeeper.GetBalance( - s.ctx, addr, params.DefaultBondDenom).Amount.Equal(reputerBalances[i].Amount)) } for i, addr := range workerAddrs { @@ -1725,18 +1702,15 @@ func (s *RewardsTestSuite) TestRewardsHandleStandardDeviationOfZero() { // Create first topic newTopicMsg := &types.MsgCreateNewTopic{ - Creator: reputerAddrs[0].String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: epochLength, - GroundTruthLag: epochLength, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputerAddrs[0].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: epochLength, + GroundTruthLag: epochLength, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err := s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -1749,12 +1723,10 @@ func (s *RewardsTestSuite) TestRewardsHandleStandardDeviationOfZero() { // Register 5 workers, first 3 for topic 1 and last 2 for topic 2 for i, addr := range workerAddrs { workerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId1, - IsReputer: false, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId1, + IsReputer: false, + Owner: addr.String(), } if i > 2 { workerRegMsg.TopicId = topicId2 @@ -1767,12 +1739,10 @@ func (s *RewardsTestSuite) TestRewardsHandleStandardDeviationOfZero() { // Register 5 reputers, first 3 for topic 1 and last 2 for topic 2 for i, addr := range reputerAddrs { reputerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - Owner: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId1, - IsReputer: true, + Sender: addr.String(), + Owner: addr.String(), + TopicId: topicId1, + IsReputer: true, } if i > 2 { reputerRegMsg.TopicId = topicId2 @@ -1863,47 +1833,57 @@ func (s *RewardsTestSuite) TestRewardsHandleStandardDeviationOfZero() { // Insert inference from workers inferenceBundles := GenerateWorkerDataBundles(s, block, topicId1) - _, err = s.msgServer.InsertBulkWorkerPayload(s.ctx, &types.MsgInsertBulkWorkerPayload{ - Sender: workerAddrs[0].String(), - Nonce: &types.Nonce{BlockHeight: block}, - TopicId: topicId1, - WorkerDataBundles: inferenceBundles, - }) - s.Require().NoError(err) + for _, payload := range inferenceBundles { + _, err = s.msgServer.InsertWorkerPayload(s.ctx, &types.MsgInsertWorkerPayload{ + Sender: payload.Worker, + WorkerDataBundle: payload, + }) + s.Require().NoError(err) + } + inferenceBundles2 := GenerateWorkerDataBundles(s, block, topicId2) - _, err = s.msgServer.InsertBulkWorkerPayload(s.ctx, &types.MsgInsertBulkWorkerPayload{ - Sender: workerAddrs[0].String(), - Nonce: &types.Nonce{BlockHeight: block}, - TopicId: topicId2, - WorkerDataBundles: inferenceBundles2, - }) + for _, payload := range inferenceBundles2 { + _, err = s.msgServer.InsertWorkerPayload(s.ctx, &types.MsgInsertWorkerPayload{ + Sender: payload.Worker, + WorkerDataBundle: payload, + }) + s.Require().NoError(err) + } + + topic, err := s.emissionsKeeper.GetTopic(s.ctx, topicId1) s.Require().NoError(err) + newBlockheight := block + topic.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(newBlockheight) + // Insert loss bundle from reputers lossBundles := GenerateLossBundles(s, block, topicId1, reputerAddrs) - _, err = s.msgServer.InsertBulkReputerPayload(s.ctx, &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddrs[0].String(), - TopicId: topicId1, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &types.Nonce{ - BlockHeight: block, - }, - }, - ReputerValueBundles: lossBundles.ReputerValueBundles, - }) + for _, payload := range lossBundles.ReputerValueBundles { + _, _ = s.emissionsKeeper.FulfillWorkerNonce(s.ctx, topicId1, payload.ValueBundle.ReputerRequestNonce.ReputerNonce) + _ = s.emissionsKeeper.AddReputerNonce(s.ctx, topicId1, payload.ValueBundle.ReputerRequestNonce.ReputerNonce) + _, err = s.msgServer.InsertReputerPayload(s.ctx, &types.MsgInsertReputerPayload{ + Sender: payload.ValueBundle.Reputer, + ReputerValueBundle: payload, + }) + s.Require().NoError(err) + } + + topic2, err := s.emissionsKeeper.GetTopic(s.ctx, topicId2) s.Require().NoError(err) + + newBlockheight = block + topic2.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(newBlockheight) + lossBundles2 := GenerateLossBundles(s, block, topicId2, reputerAddrs) - _, err = s.msgServer.InsertBulkReputerPayload(s.ctx, &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddrs[0].String(), - TopicId: topicId2, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &types.Nonce{ - BlockHeight: block, - }, - }, - ReputerValueBundles: lossBundles2.ReputerValueBundles, - }) - s.Require().NoError(err) + for _, payload := range lossBundles2.ReputerValueBundles { + _, _ = s.emissionsKeeper.FulfillWorkerNonce(s.ctx, topicId2, payload.ValueBundle.ReputerRequestNonce.ReputerNonce) + _ = s.emissionsKeeper.AddReputerNonce(s.ctx, topicId2, payload.ValueBundle.ReputerRequestNonce.ReputerNonce) + _, err = s.msgServer.InsertReputerPayload(s.ctx, &types.MsgInsertReputerPayload{ + Sender: payload.ValueBundle.Reputer, + ReputerValueBundle: payload, + }) + s.Require().NoError(err) + } block += epochLength * 3 s.ctx = s.ctx.WithBlockHeight(block) @@ -1928,18 +1908,15 @@ func (s *RewardsTestSuite) TestStandardRewardEmissionWithOneInfererAndOneReputer // Create topic newTopicMsg := &types.MsgCreateNewTopic{ - Creator: reputer.String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: epochLength, - GroundTruthLag: epochLength, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputer.String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: epochLength, + GroundTruthLag: epochLength, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err := s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -1948,24 +1925,20 @@ func (s *RewardsTestSuite) TestStandardRewardEmissionWithOneInfererAndOneReputer // Register 1 worker workerRegMsg := &types.MsgRegister{ - Sender: worker.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: worker.String(), + Sender: worker.String(), + TopicId: topicId, + IsReputer: false, + Owner: worker.String(), } _, err = s.msgServer.Register(s.ctx, workerRegMsg) s.Require().NoError(err) // Register 1 reputer reputerRegMsg := &types.MsgRegister{ - Sender: reputer.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: reputer.String(), + Sender: reputer.String(), + TopicId: topicId, + IsReputer: true, + Owner: reputer.String(), } _, err = s.msgServer.Register(s.ctx, reputerRegMsg) s.Require().NoError(err) @@ -2015,15 +1988,15 @@ func (s *RewardsTestSuite) TestStandardRewardEmissionWithOneInfererAndOneReputer s.Require().NoError(err) worker1Bundle := &types.WorkerDataBundle{ Worker: worker.String(), + TopicId: topicId, + Nonce: &types.Nonce{BlockHeight: blockHeight}, InferenceForecastsBundle: worker1InferenceForecastBundle, InferencesForecastsBundleSignature: worker1Sig, Pubkey: GetAccPubKey(s, worker), } - _, err = s.msgServer.InsertBulkWorkerPayload(s.ctx, &types.MsgInsertBulkWorkerPayload{ - Sender: worker.String(), - Nonce: &types.Nonce{BlockHeight: blockHeight}, - TopicId: topicId, - WorkerDataBundles: []*types.WorkerDataBundle{worker1Bundle}, + _, err = s.msgServer.InsertWorkerPayload(s.ctx, &types.MsgInsertWorkerPayload{ + Sender: worker.String(), + WorkerDataBundle: worker1Bundle, }) s.Require().NoError(err) @@ -2051,15 +2024,19 @@ func (s *RewardsTestSuite) TestStandardRewardEmissionWithOneInfererAndOneReputer Signature: sig, ValueBundle: valueBundle, } - _, err = s.msgServer.InsertBulkReputerPayload(s.ctx, &types.MsgInsertBulkReputerPayload{ - Sender: reputer.String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &types.Nonce{ - BlockHeight: blockHeight, - }, - }, - ReputerValueBundles: []*types.ReputerValueBundle{reputerBundle}, + + topic, err := s.emissionsKeeper.GetTopic(s.ctx, topicId) + s.Require().NoError(err) + + newBlockheight := blockHeight + topic.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(newBlockheight) + + _, _ = s.emissionsKeeper.FulfillWorkerNonce(s.ctx, topicId, reputerBundle.ValueBundle.ReputerRequestNonce.ReputerNonce) + _ = s.emissionsKeeper.AddReputerNonce(s.ctx, topicId, reputerBundle.ValueBundle.ReputerRequestNonce.ReputerNonce) + + _, err = s.msgServer.InsertReputerPayload(s.ctx, &types.MsgInsertReputerPayload{ + Sender: reputer.String(), + ReputerValueBundle: reputerBundle, }) s.Require().NoError(err) @@ -2117,18 +2094,15 @@ func (s *RewardsTestSuite) TestOnlyFewTopActorsGetReward() { // Create topic newTopicMsg := &types.MsgCreateNewTopic{ - Creator: reputerAddrs[0].String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: epochLength, - GroundTruthLag: epochLength, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputerAddrs[0].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: epochLength, + GroundTruthLag: epochLength, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err := s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -2139,12 +2113,10 @@ func (s *RewardsTestSuite) TestOnlyFewTopActorsGetReward() { // Register 25 workers for _, addr := range workerAddrs { workerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: false, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, workerRegMsg) s.Require().NoError(err) @@ -2153,12 +2125,10 @@ func (s *RewardsTestSuite) TestOnlyFewTopActorsGetReward() { // Register 25 reputers for _, addr := range reputerAddrs { reputerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: true, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, reputerRegMsg) s.Require().NoError(err) @@ -2197,26 +2167,33 @@ func (s *RewardsTestSuite) TestOnlyFewTopActorsGetReward() { // Insert inference from workers inferenceBundles := GenerateHugeWorkerDataBundles(s, block, topicId, workerAddrs) - _, err = s.msgServer.InsertBulkWorkerPayload(s.ctx, &types.MsgInsertBulkWorkerPayload{ - Sender: workerAddrs[0].String(), - Nonce: &types.Nonce{BlockHeight: block}, - TopicId: topicId, - WorkerDataBundles: inferenceBundles, - }) + for _, payload := range inferenceBundles { + _, err = s.msgServer.InsertWorkerPayload(s.ctx, &types.MsgInsertWorkerPayload{ + Sender: payload.Worker, + WorkerDataBundle: payload, + }) + s.Require().NoError(err) + } + + err = actor_utils.CloseWorkerNonce(&s.emissionsKeeper, s.ctx, topicId, *inferenceBundles[0].Nonce) + s.Require().NoError(err) + + topic, err := s.emissionsKeeper.GetTopic(s.ctx, topicId) s.Require().NoError(err) + newBlockheight := block + topic.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(newBlockheight) + // Insert loss bundle from reputers lossBundles := GenerateHugeLossBundles(s, block, topicId, reputerAddrs, workerAddrs) - _, err = s.msgServer.InsertBulkReputerPayload(s.ctx, &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddrs[0].String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &types.Nonce{ - BlockHeight: block, - }, - }, - ReputerValueBundles: lossBundles.ReputerValueBundles, - }) + for _, payload := range lossBundles.ReputerValueBundles { + _, err = s.msgServer.InsertReputerPayload(s.ctx, &types.MsgInsertReputerPayload{ + Sender: reputerAddrs[0].String(), + ReputerValueBundle: payload, + }) + s.Require().NoError(err) + } + err = actor_utils.CloseReputerNonce(&s.emissionsKeeper, s.ctx, topicId, *lossBundles.ReputerValueBundles[0].ValueBundle.ReputerRequestNonce.ReputerNonce) s.Require().NoError(err) params, err := s.emissionsKeeper.GetParams(s.ctx) @@ -2276,18 +2253,15 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( // Create topic newTopicMsg := &types.MsgCreateNewTopic{ - Creator: reputerAddrs[0].String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputerAddrs[0].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err := s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -2295,15 +2269,16 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( // Get Topic Id topicId := res.TopicId + err = s.emissionsAppModule.EndBlock(s.ctx) + s.Require().NoError(err) + // Register 5 workers for _, addr := range workerAddrs { workerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: false, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, workerRegMsg) s.Require().NoError(err) @@ -2312,12 +2287,10 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( // Register 3 reputers for _, addr := range reputerAddrs { reputerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: true, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, reputerRegMsg) s.Require().NoError(err) @@ -2354,26 +2327,36 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( // Insert inference from workers inferenceBundles := GenerateHugeWorkerDataBundles(s, block, topicId, workerAddrs) - _, err = s.msgServer.InsertBulkWorkerPayload(s.ctx, &types.MsgInsertBulkWorkerPayload{ - Sender: workerAddrs[0].String(), - Nonce: &types.Nonce{BlockHeight: block}, - TopicId: topicId, - WorkerDataBundles: inferenceBundles, - }) + for _, payload := range inferenceBundles { + _, err = s.msgServer.InsertWorkerPayload(s.ctx, &types.MsgInsertWorkerPayload{ + Sender: payload.Worker, + WorkerDataBundle: payload, + }) + s.Require().NoError(err) + + } + + err = actor_utils.CloseWorkerNonce(&s.emissionsKeeper, s.ctx, topicId, *inferenceBundles[0].Nonce) + s.Require().NoError(err) + + topic, err := s.emissionsKeeper.GetTopic(s.ctx, topicId) s.Require().NoError(err) // Insert loss bundle from reputers lossBundles := GenerateHugeLossBundles(s, block, topicId, reputerAddrs, workerAddrs) - _, err = s.msgServer.InsertBulkReputerPayload(s.ctx, &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddrs[0].String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &types.Nonce{ - BlockHeight: block, - }, - }, - ReputerValueBundles: lossBundles.ReputerValueBundles, - }) + + block = block + topic.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(block) + for _, payload := range lossBundles.ReputerValueBundles { + _, err = s.msgServer.InsertReputerPayload(s.ctx, &types.MsgInsertReputerPayload{ + Sender: payload.ValueBundle.Reputer, + ReputerValueBundle: payload, + }) + s.Require().NoError(err) + } + + err = actor_utils.CloseReputerNonce(&s.emissionsKeeper, s.ctx, topicId, + *lossBundles.ReputerValueBundles[0].ValueBundle.ReputerRequestNonce.ReputerNonce) s.Require().NoError(err) topicTotalRewards := alloraMath.NewDecFromInt64(1000000) @@ -2381,7 +2364,9 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( s.Require().NoError(err) firstRewardsDistribution, _, err := rewards.GenerateRewardsDistributionByTopicParticipant( - s.ctx, s.emissionsKeeper, topicId, &topicTotalRewards, block, params) + s.ctx, s.emissionsKeeper, topicId, &topicTotalRewards, + lossBundles.ReputerValueBundles[0].ValueBundle.ReputerRequestNonce.ReputerNonce.BlockHeight, + params) s.Require().NoError(err) totalInferersReward := alloraMath.ZeroDec() @@ -2418,18 +2403,15 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( // Create new topic newTopicMsg = &types.MsgCreateNewTopic{ - Creator: reputerAddrs[0].String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputerAddrs[0].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err = s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -2440,12 +2422,10 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( // Register 7 workers with 2 new inferers for _, addr := range newSecondWorkersAddrs { workerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: false, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, workerRegMsg) s.Require().NoError(err) @@ -2454,12 +2434,10 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( // Register 3 reputers for _, addr := range reputerAddrs { reputerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: true, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, reputerRegMsg) s.Require().NoError(err) @@ -2485,6 +2463,8 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( _, err = s.msgServer.FundTopic(s.ctx, &fundTopicMessage) s.Require().NoError(err) + err = s.emissionsAppModule.EndBlock(s.ctx) + s.Require().NoError(err) err = s.emissionsKeeper.AddWorkerNonce(s.ctx, topicId, &types.Nonce{ BlockHeight: block, }) @@ -2494,36 +2474,53 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( }) s.Require().NoError(err) + block += 1 + s.ctx = s.ctx.WithBlockHeight(block) + + err = s.emissionsKeeper.AddWorkerNonce( + s.ctx, + topicId, + &types.Nonce{BlockHeight: block}, + ) + s.Require().NoError(err) // Insert inference from workers inferenceBundles = GenerateHugeWorkerDataBundles(s, block, topicId, newSecondWorkersAddrs) // Add more inferer newInferenceBundles := GenerateMoreInferencesDataBundles(s, block, topicId) inferenceBundles = append(inferenceBundles, newInferenceBundles...) - _, err = s.msgServer.InsertBulkWorkerPayload(s.ctx, &types.MsgInsertBulkWorkerPayload{ - Sender: newSecondWorkersAddrs[0].String(), - Nonce: &types.Nonce{BlockHeight: block}, - TopicId: topicId, - WorkerDataBundles: inferenceBundles, - }) + + for _, payload := range inferenceBundles { + _, err = s.msgServer.InsertWorkerPayload(s.ctx, &types.MsgInsertWorkerPayload{ + Sender: payload.Worker, + WorkerDataBundle: payload, + }) + s.Require().NoError(err) + } + + err = actor_utils.CloseWorkerNonce(&s.emissionsKeeper, s.ctx, topicId, *inferenceBundles[0].Nonce) s.Require().NoError(err) - // Insert loss bundle from reputers lossBundles = GenerateHugeLossBundles(s, block, topicId, reputerAddrs, newSecondWorkersAddrs) - _, err = s.msgServer.InsertBulkReputerPayload(s.ctx, &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddrs[0].String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &types.Nonce{ - BlockHeight: block, - }, - }, - ReputerValueBundles: lossBundles.ReputerValueBundles, - }) + + block = block + topic.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(block) + // Insert loss bundle from reputers + for _, payload := range lossBundles.ReputerValueBundles { + _, err = s.msgServer.InsertReputerPayload(s.ctx, &types.MsgInsertReputerPayload{ + Sender: payload.ValueBundle.Reputer, + ReputerValueBundle: payload, + }) + s.Require().NoError(err) + } + err = actor_utils.CloseReputerNonce(&s.emissionsKeeper, s.ctx, topicId, + *lossBundles.ReputerValueBundles[0].ValueBundle.ReputerRequestNonce.ReputerNonce) s.Require().NoError(err) topicTotalRewards = alloraMath.NewDecFromInt64(1000000) secondRewardsDistribution, _, err := rewards.GenerateRewardsDistributionByTopicParticipant( - s.ctx, s.emissionsKeeper, topicId, &topicTotalRewards, block, params) + s.ctx, s.emissionsKeeper, topicId, &topicTotalRewards, + lossBundles.ReputerValueBundles[0].ValueBundle.ReputerRequestNonce.ReputerNonce.BlockHeight, + params) s.Require().NoError(err) totalInferersReward = alloraMath.ZeroDec() @@ -2552,18 +2549,15 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( // Create new topic newTopicMsg = &types.MsgCreateNewTopic{ - Creator: reputerAddrs[0].String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: reputerAddrs[0].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err = s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -2574,12 +2568,10 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( // Register 7 workers with 2 new forecasters for _, addr := range newThirdWorkersAddrs { workerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: false, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: false, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, workerRegMsg) s.Require().NoError(err) @@ -2588,12 +2580,10 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( // Register 3 reputers for _, addr := range reputerAddrs { reputerRegMsg := &types.MsgRegister{ - Sender: addr.String(), - LibP2PKey: "test", - MultiAddress: "test", - TopicId: topicId, - IsReputer: true, - Owner: addr.String(), + Sender: addr.String(), + TopicId: topicId, + IsReputer: true, + Owner: addr.String(), } _, err := s.msgServer.Register(s.ctx, reputerRegMsg) s.Require().NoError(err) @@ -2619,6 +2609,12 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( _, err = s.msgServer.FundTopic(s.ctx, &fundTopicMessage) s.Require().NoError(err) + err = s.emissionsAppModule.EndBlock(s.ctx) + s.Require().NoError(err) + + block++ + s.ctx = s.ctx.WithBlockHeight(block) + err = s.emissionsKeeper.AddWorkerNonce(s.ctx, topicId, &types.Nonce{ BlockHeight: block, }) @@ -2633,31 +2629,37 @@ func (s *RewardsTestSuite) TestTotalInferersRewardFractionGrowsWithMoreInferers( // Add more inferer newInferenceBundles = GenerateMoreForecastersDataBundles(s, block, topicId) inferenceBundles = append(inferenceBundles, newInferenceBundles...) - _, err = s.msgServer.InsertBulkWorkerPayload(s.ctx, &types.MsgInsertBulkWorkerPayload{ - Sender: newThirdWorkersAddrs[0].String(), - Nonce: &types.Nonce{BlockHeight: block}, - TopicId: topicId, - WorkerDataBundles: inferenceBundles, - }) + for _, payload := range inferenceBundles { + _, err = s.msgServer.InsertWorkerPayload(s.ctx, &types.MsgInsertWorkerPayload{ + Sender: payload.Worker, + WorkerDataBundle: payload, + }) + s.Require().NoError(err) + } + + err = actor_utils.CloseWorkerNonce(&s.emissionsKeeper, s.ctx, topicId, *inferenceBundles[0].Nonce) s.Require().NoError(err) - // Insert loss bundle from reputers lossBundles = GenerateHugeLossBundles(s, block, topicId, reputerAddrs, newThirdWorkersAddrs) - _, err = s.msgServer.InsertBulkReputerPayload(s.ctx, &types.MsgInsertBulkReputerPayload{ - Sender: reputerAddrs[0].String(), - TopicId: topicId, - ReputerRequestNonce: &types.ReputerRequestNonce{ - ReputerNonce: &types.Nonce{ - BlockHeight: block, - }, - }, - ReputerValueBundles: lossBundles.ReputerValueBundles, - }) + block = block + topic.GroundTruthLag + s.ctx = sdk.UnwrapSDKContext(s.ctx).WithBlockHeight(block) + // Insert loss bundle from reputers + for _, payload := range lossBundles.ReputerValueBundles { + _, err = s.msgServer.InsertReputerPayload(s.ctx, &types.MsgInsertReputerPayload{ + Sender: payload.ValueBundle.Reputer, + ReputerValueBundle: payload, + }) + s.Require().NoError(err) + } + err = actor_utils.CloseReputerNonce(&s.emissionsKeeper, s.ctx, topicId, + *lossBundles.ReputerValueBundles[0].ValueBundle.ReputerRequestNonce.ReputerNonce) s.Require().NoError(err) topicTotalRewards = alloraMath.NewDecFromInt64(1000000) thirdRewardsDistribution, _, err := rewards.GenerateRewardsDistributionByTopicParticipant( - s.ctx, s.emissionsKeeper, topicId, &topicTotalRewards, block, params) + s.ctx, s.emissionsKeeper, topicId, &topicTotalRewards, + lossBundles.ReputerValueBundles[0].ValueBundle.ReputerRequestNonce.ReputerNonce.BlockHeight, + params) s.Require().NoError(err) totalForecastersReward = alloraMath.ZeroDec() @@ -2679,7 +2681,7 @@ func (s *RewardsTestSuite) TestRewardForTopicGoesUpWhenRelativeStakeGoesUp() { alphaRegret := alloraMath.MustNewDecFromString("0.1") - block := int64(100) + block := int64(1) s.ctx = s.ctx.WithBlockHeight(block) s.SetParamsForTest(24) @@ -2812,6 +2814,11 @@ func (s *RewardsTestSuite) TestRewardForTopicGoesUpWhenRelativeStakeGoesUp() { reputer3_Stake1, err = s.emissionsKeeper.GetStakeReputerAuthority(s.ctx, topicId1, s.addrs[3].String()) require.NoError(err) + // force rewards to be distributed + block = s.ctx.BlockHeight() + block++ + s.ctx = s.ctx.WithBlockHeight(block) + // do work on the topics to earn rewards s.getRewardsDistribution( topicId0, @@ -2833,10 +2840,6 @@ func (s *RewardsTestSuite) TestRewardForTopicGoesUpWhenRelativeStakeGoesUp() { "0.1", ) - // force rewards to be distributed - block++ - s.ctx = s.ctx.WithBlockHeight(block) - s.MintTokensToModule(types.AlloraRewardsAccountName, cosmosMath.NewInt(1000)) err = s.emissionsAppModule.EndBlock(s.ctx) @@ -2883,7 +2886,7 @@ func (s *RewardsTestSuite) TestRewardForTopicGoesUpWhenRelativeStakeGoesUp() { func (s *RewardsTestSuite) TestReputerAboveConsensusGetsLessRewards() { require := s.Require() - block := int64(100) + block := int64(1) s.ctx = s.ctx.WithBlockHeight(block) alphaRegret := alloraMath.MustNewDecFromString("0.1") @@ -2982,7 +2985,7 @@ func (s *RewardsTestSuite) TestReputerAboveConsensusGetsLessRewards() { func (s *RewardsTestSuite) TestReputerBelowConsensusGetsLessRewards() { require := s.Require() - block := int64(100) + block := int64(1) s.ctx = s.ctx.WithBlockHeight(block) alphaRegret := alloraMath.MustNewDecFromString("0.1") @@ -3082,7 +3085,7 @@ func (s *RewardsTestSuite) TestRewardForRemainingParticipantsGoUpWhenParticipant // SETUP require := s.Require() - block := int64(100) + block := int64(1) s.ctx = s.ctx.WithBlockHeight(block) alphaRegret := alloraMath.MustNewDecFromString("0.1") @@ -3150,6 +3153,8 @@ func (s *RewardsTestSuite) TestRewardForRemainingParticipantsGoUpWhenParticipant err = s.emissionsAppModule.EndBlock(s.ctx) require.NoError(err) + topic, err := s.emissionsKeeper.GetTopic(s.ctx, topicId0) + s.Require().NoError(err) // record the updated stakes after rewards reputer0_Stake1, err := s.emissionsKeeper.GetStakeReputerAuthority(s.ctx, topicId0, s.addrs[0].String()) require.NoError(err) @@ -3179,9 +3184,13 @@ func (s *RewardsTestSuite) TestRewardForRemainingParticipantsGoUpWhenParticipant fundTopic(topicId0, s.addrs[0], topicFundAmount) + // increase the block height + block = s.ctx.BlockHeight() + block++ + s.ctx = s.ctx.WithBlockHeight(block) // do work on the current block, but with one less reputer s.getRewardsDistribution( - topicId0, + topic.Id, block, workerValues, reputer1Values, @@ -3190,10 +3199,6 @@ func (s *RewardsTestSuite) TestRewardForRemainingParticipantsGoUpWhenParticipant "0.1", ) - // increase the block height - block++ - s.ctx = s.ctx.WithBlockHeight(block) - // create tokens to reward with s.MintTokensToModule(types.AlloraRewardsAccountName, cosmosMath.NewInt(1000)) diff --git a/x/emissions/module/rewards/scores.go b/x/emissions/module/rewards/scores.go index eee6857ce..225a1f6fd 100644 --- a/x/emissions/module/rewards/scores.go +++ b/x/emissions/module/rewards/scores.go @@ -193,7 +193,7 @@ func GenerateForecastScores( Address: networkLosses.InfererValues[0].Worker, Score: alloraMath.ZeroDec(), } - err := keeper.InsertWorkerInferenceScore(ctx, topicId, block, newScore) + err := keeper.InsertWorkerForecastScore(ctx, topicId, block, newScore) if err != nil { return []types.Score{}, errors.Wrapf(err, "Error inserting worker inference score") } diff --git a/x/emissions/module/rewards/scores_test.go b/x/emissions/module/rewards/scores_test.go index 3c66a7f86..a38a17e6f 100644 --- a/x/emissions/module/rewards/scores_test.go +++ b/x/emissions/module/rewards/scores_test.go @@ -5,48 +5,143 @@ import ( "math/rand" "strconv" + cosmosMath "cosmossdk.io/math" alloraMath "github.com/allora-network/allora-chain/math" + "github.com/allora-network/allora-chain/test/testutil" + inferencesynthesis "github.com/allora-network/allora-chain/x/emissions/keeper/inference_synthesis" "github.com/allora-network/allora-chain/x/emissions/module/rewards" "github.com/allora-network/allora-chain/x/emissions/types" sdk "github.com/cosmos/cosmos-sdk/types" ) -// this test is timing out more than 30 seconds -// need to figure out why later -// func (s *RewardsTestSuite) TestGetReputersScores() { -// topidId := uint64(1) -// block := int64(1003) - -// // Generate reputers data for tests -// reportedLosses, err := mockReputersScoresTestData(s, topidId, block) -// s.Require().NoError(err) - -// // Generate new reputer scores -// scores, err := rewards.GenerateReputerScores( -// s.ctx, -// s.emissionsKeeper, -// topidId, -// block, -// reportedLosses, -// ) -// s.Require().NoError(err) - -// expectedScores := []alloraMath.Dec{ -// alloraMath.MustNewDecFromString("17.98648"), -// alloraMath.MustNewDecFromString("20.32339"), -// alloraMath.MustNewDecFromString("26.44637"), -// alloraMath.MustNewDecFromString("11.17804"), -// alloraMath.MustNewDecFromString("14.93222"), -// } -// for i, reputerScore := range scores { -// scoreDelta, err := reputerScore.Score.Sub(expectedScores[i]) -// s.Require().NoError(err) -// deltaTightness := scoreDelta.Abs().Cmp(alloraMath.MustNewDecFromString("0.001")) -// if !(deltaTightness == alloraMath.LessThan || deltaTightness == alloraMath.EqualTo) { -// s.Fail("Expected reward is not equal to the actual reward") -// } -// } -// } +func (s *RewardsTestSuite) TestGetReputersScoresFromCsv() { + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch300Get := epochGet[300] + epoch301Get := epochGet[301] + block := int64(1003) + + newTopicMsg := &types.MsgCreateNewTopic{ + Creator: s.addrs[0].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + PNorm: alloraMath.NewDecFromInt64(3), + AlphaRegret: alloraMath.MustNewDecFromString("0.1"), + AllowNegative: true, + Epsilon: alloraMath.MustNewDecFromString("0.01"), + } + res, err := s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) + s.Require().NoError(err) + topicId := res.TopicId + + reputer0 := s.addrs[0].String() + reputer1 := s.addrs[1].String() + reputer2 := s.addrs[2].String() + reputer3 := s.addrs[3].String() + reputer4 := s.addrs[4].String() + reputerAddresses := []string{reputer0, reputer1, reputer2, reputer3, reputer4} + + inferer0 := s.addrs[5].String() + inferer1 := s.addrs[6].String() + inferer2 := s.addrs[7].String() + inferer3 := s.addrs[8].String() + inferer4 := s.addrs[9].String() + infererAddresses := []string{inferer0, inferer1, inferer2, inferer3, inferer4} + + forecaster0 := s.addrs[10].String() + forecaster1 := s.addrs[11].String() + forecaster2 := s.addrs[12].String() + forecasterAddresses := []string{forecaster0, forecaster1, forecaster2} + + cosmosOneE18 := inferencesynthesis.CosmosIntOneE18() + cosmosOneE18Dec, err := alloraMath.NewDecFromSdkInt(cosmosOneE18) + s.Require().NoError(err) + + reputer0Stake, err := epoch301Get("reputer_stake_0").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer0StakeInt, err := reputer0Stake.BigInt() + s.Require().NoError(err) + reputer1Stake, err := epoch301Get("reputer_stake_1").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer1StakeInt, err := reputer1Stake.BigInt() + s.Require().NoError(err) + reputer2Stake, err := epoch301Get("reputer_stake_2").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer2StakeInt, err := reputer2Stake.BigInt() + s.Require().NoError(err) + reputer3Stake, err := epoch301Get("reputer_stake_3").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer3StakeInt, err := reputer3Stake.BigInt() + s.Require().NoError(err) + reputer4Stake, err := epoch301Get("reputer_stake_4").Mul(cosmosOneE18Dec) + s.Require().NoError(err) + reputer4StakeInt, err := reputer4Stake.BigInt() + s.Require().NoError(err) + + var stakes = []cosmosMath.Int{ + cosmosMath.NewIntFromBigInt(reputer0StakeInt), + cosmosMath.NewIntFromBigInt(reputer1StakeInt), + cosmosMath.NewIntFromBigInt(reputer2StakeInt), + cosmosMath.NewIntFromBigInt(reputer3StakeInt), + cosmosMath.NewIntFromBigInt(reputer4StakeInt), + } + var coefficients = []alloraMath.Dec{ + epoch300Get("reputer_listening_coefficient_0"), + epoch300Get("reputer_listening_coefficient_1"), + epoch300Get("reputer_listening_coefficient_2"), + epoch300Get("reputer_listening_coefficient_3"), + epoch300Get("reputer_listening_coefficient_4"), + } + for i, addr := range reputerAddresses { + addrBech, err := sdk.AccAddressFromBech32(addr) + s.Require().NoError(err) + + s.MintTokensToAddress(addrBech, stakes[i]) + + err = s.emissionsKeeper.AddReputerStake(s.ctx, topicId, addr, stakes[i]) + s.Require().NoError(err) + + err = s.emissionsKeeper.SetListeningCoefficient( + s.ctx, + topicId, + addr, + types.ListeningCoefficient{Coefficient: coefficients[i]}, + ) + s.Require().NoError(err) + } + + reportedLosses, err := testutil.GetReputersDataFromCsv( + topicId, + infererAddresses, + forecasterAddresses, + reputerAddresses, + epoch301Get, + ) + s.Require().NoError(err) + + // Generate new reputer scores + scores, err := rewards.GenerateReputerScores( + s.ctx, + s.emissionsKeeper, + topicId, + block, + reportedLosses, + ) + s.Require().NoError(err) + + expectedScores := []alloraMath.Dec{ + epoch301Get("reputer_score_0"), + epoch301Get("reputer_score_1"), + epoch301Get("reputer_score_2"), + epoch301Get("reputer_score_3"), + epoch301Get("reputer_score_4"), + } + for i, reputerScore := range scores { + testutil.InEpsilon5(s.T(), reputerScore.Score, expectedScores[i].String()) + } +} func (s *RewardsTestSuite) TestGetInferenceScores() { topicId := uint64(1) @@ -84,6 +179,48 @@ func (s *RewardsTestSuite) TestGetInferenceScores() { } } +func (s *RewardsTestSuite) TestGetInferenceScoresFromCsv() { + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch3Get := epochGet[300] + topicId := uint64(1) + block := int64(1003) + + inferer0 := s.addrs[5].String() + inferer1 := s.addrs[6].String() + inferer2 := s.addrs[7].String() + inferer3 := s.addrs[8].String() + inferer4 := s.addrs[9].String() + infererAddresses := []string{inferer0, inferer1, inferer2, inferer3, inferer4} + + forecaster0 := s.addrs[10].String() + forecaster1 := s.addrs[11].String() + forecaster2 := s.addrs[12].String() + forecasterAddresses := []string{forecaster0, forecaster1, forecaster2} + + reportedLosses, err := testutil.GetNetworkLossFromCsv(topicId, infererAddresses, forecasterAddresses, epoch3Get) + s.Require().NoError(err) + + scores, err := rewards.GenerateInferenceScores( + s.ctx, + s.emissionsKeeper, + topicId, + block, + reportedLosses, + ) + s.Require().NoError(err) + + expectedScores := []alloraMath.Dec{ + epoch3Get("inferer_score_0"), + epoch3Get("inferer_score_1"), + epoch3Get("inferer_score_2"), + epoch3Get("inferer_score_3"), + epoch3Get("inferer_score_4"), + } + for i, infererScore := range scores { + testutil.InEpsilon5(s.T(), infererScore.Score, expectedScores[i].String()) + } +} + // In this test we run two trials of generating inference scores, the first with lower one out losses // and the second with higher one out losses. // We then compare the resulting scores and check that the higher one out losses result in higher scores. @@ -129,7 +266,6 @@ func (s *RewardsTestSuite) TestGetForecastScores() { reportedLosses, err := mockNetworkLosses(s, topicId, block) s.Require().NoError(err) - // Get inference scores scores, err := rewards.GenerateForecastScores( s.ctx, s.emissionsKeeper, @@ -156,6 +292,46 @@ func (s *RewardsTestSuite) TestGetForecastScores() { } } +func (s *RewardsTestSuite) TestGetForecasterScoresFromCsv() { + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch3Get := epochGet[300] + topicId := uint64(1) + block := int64(1003) + + inferer0 := s.addrs[5].String() + inferer1 := s.addrs[6].String() + inferer2 := s.addrs[7].String() + inferer3 := s.addrs[8].String() + inferer4 := s.addrs[9].String() + infererAddresses := []string{inferer0, inferer1, inferer2, inferer3, inferer4} + + forecaster0 := s.addrs[10].String() + forecaster1 := s.addrs[11].String() + forecaster2 := s.addrs[12].String() + forecasterAddresses := []string{forecaster0, forecaster1, forecaster2} + + reportedLosses, err := testutil.GetNetworkLossFromCsv(topicId, infererAddresses, forecasterAddresses, epoch3Get) + s.Require().NoError(err) + + scores, err := rewards.GenerateForecastScores( + s.ctx, + s.emissionsKeeper, + topicId, + block, + reportedLosses, + ) + s.Require().NoError(err) + + expectedScores := []alloraMath.Dec{ + epoch3Get("forecaster_score_0"), + epoch3Get("forecaster_score_1"), + epoch3Get("forecaster_score_2"), + } + for i, forecasterScore := range scores { + testutil.InEpsilon5(s.T(), forecasterScore.Score, expectedScores[i].String()) + } +} + // In this test we run two trials of generating forecast scores, the first with lower one out losses // and the second with higher one out losses. // We then compare the resulting forecaster scores and check that the higher one out losses result @@ -680,6 +856,8 @@ func GenerateHugeWorkerDataBundles(s *RewardsTestSuite, blockHeight int64, topic s.Require().NoError(err) workerBundle := &types.WorkerDataBundle{ Worker: worker.String(), + TopicId: topicId, + Nonce: &types.Nonce{BlockHeight: blockHeight}, InferenceForecastsBundle: workerInferenceForecastBundle, InferencesForecastsBundleSignature: workerSig, Pubkey: GetAccPubKey(s, worker), @@ -761,6 +939,8 @@ func GenerateWorkerDataBundles(s *RewardsTestSuite, blockHeight int64, topicId u s.Require().NoError(err) worker1Bundle := &types.WorkerDataBundle{ Worker: worker1Addr.String(), + Nonce: &types.Nonce{BlockHeight: blockHeight}, + TopicId: topicId, InferenceForecastsBundle: worker1InferenceForecastBundle, InferencesForecastsBundleSignature: worker1Sig, Pubkey: GetAccPubKey(s, worker1Addr), @@ -794,6 +974,8 @@ func GenerateWorkerDataBundles(s *RewardsTestSuite, blockHeight int64, topicId u s.Require().NoError(err) worker2Bundle := &types.WorkerDataBundle{ Worker: worker2Addr.String(), + Nonce: &types.Nonce{BlockHeight: blockHeight}, + TopicId: topicId, InferenceForecastsBundle: worker2InferenceForecastBundle, InferencesForecastsBundleSignature: worker2Sig, Pubkey: GetAccPubKey(s, worker2Addr), @@ -827,6 +1009,8 @@ func GenerateWorkerDataBundles(s *RewardsTestSuite, blockHeight int64, topicId u s.Require().NoError(err) worker3Bundle := &types.WorkerDataBundle{ Worker: worker3Addr.String(), + Nonce: &types.Nonce{BlockHeight: blockHeight}, + TopicId: topicId, InferenceForecastsBundle: worker3InferenceForecastBundle, InferencesForecastsBundleSignature: worker3Sig, Pubkey: GetAccPubKey(s, worker3Addr), @@ -860,6 +1044,8 @@ func GenerateWorkerDataBundles(s *RewardsTestSuite, blockHeight int64, topicId u s.Require().NoError(err) worker4Bundle := &types.WorkerDataBundle{ Worker: worker4Addr.String(), + Nonce: &types.Nonce{BlockHeight: blockHeight}, + TopicId: topicId, InferenceForecastsBundle: worker4InferenceForecastBundle, InferencesForecastsBundleSignature: worker4Sig, Pubkey: GetAccPubKey(s, worker4Addr), @@ -893,6 +1079,8 @@ func GenerateWorkerDataBundles(s *RewardsTestSuite, blockHeight int64, topicId u s.Require().NoError(err) worker5Bundle := &types.WorkerDataBundle{ Worker: worker5Addr.String(), + Nonce: &types.Nonce{BlockHeight: blockHeight}, + TopicId: topicId, InferenceForecastsBundle: worker5InferenceForecastBundle, InferencesForecastsBundleSignature: worker5Sig, Pubkey: GetAccPubKey(s, worker5Addr), @@ -935,6 +1123,8 @@ func GenerateMoreInferencesDataBundles(s *RewardsTestSuite, blockHeight int64, t s.Require().NoError(err) worker1Bundle := &types.WorkerDataBundle{ Worker: worker1Addr.String(), + Nonce: &types.Nonce{BlockHeight: blockHeight}, + TopicId: topicId, InferenceForecastsBundle: worker1InferenceForecastBundle, InferencesForecastsBundleSignature: worker1Sig, Pubkey: GetAccPubKey(s, worker1Addr), @@ -968,6 +1158,8 @@ func GenerateMoreInferencesDataBundles(s *RewardsTestSuite, blockHeight int64, t s.Require().NoError(err) worker2Bundle := &types.WorkerDataBundle{ Worker: worker2Addr.String(), + Nonce: &types.Nonce{BlockHeight: blockHeight}, + TopicId: topicId, InferenceForecastsBundle: worker2InferenceForecastBundle, InferencesForecastsBundleSignature: worker2Sig, Pubkey: GetAccPubKey(s, worker2Addr), @@ -1011,6 +1203,8 @@ func GenerateMoreForecastersDataBundles(s *RewardsTestSuite, blockHeight int64, s.Require().NoError(err) worker1Bundle := &types.WorkerDataBundle{ Worker: oldInferencer1.String(), + Nonce: &types.Nonce{BlockHeight: blockHeight}, + TopicId: topicId, InferenceForecastsBundle: worker1InferenceForecastBundle, InferencesForecastsBundleSignature: worker1Sig, Pubkey: GetAccPubKey(s, oldInferencer1), @@ -1044,6 +1238,8 @@ func GenerateMoreForecastersDataBundles(s *RewardsTestSuite, blockHeight int64, s.Require().NoError(err) worker2Bundle := &types.WorkerDataBundle{ Worker: oldInferencer2.String(), + Nonce: &types.Nonce{BlockHeight: blockHeight}, + TopicId: topicId, InferenceForecastsBundle: worker2InferenceForecastBundle, InferencesForecastsBundleSignature: worker2Sig, Pubkey: GetAccPubKey(s, oldInferencer2), @@ -1114,6 +1310,8 @@ func GenerateSimpleWorkerDataBundles( s.Require().NoError(err) workerBundle := &types.WorkerDataBundle{ Worker: workerValue.Address.String(), + Nonce: &types.Nonce{BlockHeight: blockHeight}, + TopicId: topicId, InferenceForecastsBundle: newWorkerInferenceForecastBundle, InferencesForecastsBundleSignature: workerSig, Pubkey: GetAccPubKey(s, workerValue.Address), diff --git a/x/emissions/module/rewards/topic_rewards.go b/x/emissions/module/rewards/topic_rewards.go index fa67db0e3..823317db1 100644 --- a/x/emissions/module/rewards/topic_rewards.go +++ b/x/emissions/module/rewards/topic_rewards.go @@ -2,8 +2,10 @@ package rewards import ( "fmt" + "sort" "cosmossdk.io/errors" + allorautils "github.com/allora-network/allora-chain/x/emissions/keeper/actor_utils" sdk "github.com/cosmos/cosmos-sdk/types" cosmosMath "cosmossdk.io/math" @@ -47,27 +49,24 @@ func GetTopicRewardFraction( return (*topicWeight).Quo(totalWeight) } -// Apply a function on all active topics that also have an epoch ending at this block -// Active topics have more than a globally-set minimum weight, a function of revenue and stake -// "Safe" because bounded by max number of pages and apply running, online operations. -func SafeApplyFuncOnAllActiveEpochEndingTopics( +// Get all active topics that have ended their epoch +func GetAllActiveEpochEndingTopics( ctx sdk.Context, k keeper.Keeper, block BlockHeight, - fn func(sdkCtx sdk.Context, topic *types.Topic) error, topicPageLimit uint64, maxTopicPages uint64, -) error { +) []types.Topic { + var epochEndingTopics []types.Topic topicPageKey := make([]byte, 0) - i := uint64(0) + pageIterationCounter := uint64(0) for { topicPageRequest := &types.SimpleCursorPaginationRequest{Limit: topicPageLimit, Key: topicPageKey} topicsActive, topicPageResponse, err := k.GetIdsOfActiveTopics(ctx, topicPageRequest) if err != nil { Logger(ctx).Warn(fmt.Sprintf("Error getting ids of active topics: %s", err.Error())) - continue + break } - for _, topicId := range topicsActive { topic, err := k.GetTopic(ctx, topicId) if err != nil { @@ -75,34 +74,34 @@ func SafeApplyFuncOnAllActiveEpochEndingTopics( continue } - if k.CheckCadence(block, topic) { - // All checks passed => Apply function on the topic - err = fn(ctx, &topic) - if err != nil { - Logger(ctx).Warn(fmt.Sprintf("Error applying function on topic: %s", err.Error())) - continue - } + if k.CheckWorkerOpenCadence(block, topic) { + epochEndingTopics = append(epochEndingTopics, topic) } } // if pageResponse.NextKey is empty then we have reached the end of the list - if topicsActive == nil || i > maxTopicPages { + topicPageKey = topicPageResponse.NextKey + pageIterationCounter++ + if len(topicsActive) == 0 || pageIterationCounter >= maxTopicPages { break } - topicPageKey = topicPageResponse.NextKey - i++ } - return nil + + // Sort topics by ID + sort.Slice(epochEndingTopics, func(i, j int) bool { + return epochEndingTopics[i].Id < epochEndingTopics[j].Id + }) + + return epochEndingTopics } // "Churn-ready topic" is active, has an epoch that ended, and is in top N by weights, has non-zero weight. // We iterate through active topics, fetch their weight, skim the top N by weight (these are the churnable topics) // then finally apply a function on each of these churnable topics. -func IdentifyChurnableAmongActiveTopicsAndApplyFn( +func PickChurnableActiveTopics( ctx sdk.Context, k keeper.Keeper, block BlockHeight, - fn func(ctx sdk.Context, topic *types.Topic) error, weights map[TopicId]*alloraMath.Dec, ) error { moduleParams, err := k.GetParams(ctx) @@ -128,8 +127,87 @@ func IdentifyChurnableAmongActiveTopicsAndApplyFn( Logger(ctx).Debug("Error getting topic: ", err) continue } - // Execute the function - err = fn(ctx, &topic) + // Loop over and run epochs on topics whose inferences are demanded enough to be served + // Check the cadence of inferences, and just in case also check multiples of epoch lengths + // to avoid potential situations where the block is missed + if k.CheckWorkerOpenCadence(block, topic) { + ctx.Logger().Debug(fmt.Sprintf("ABCI EndBlocker: Worker open cadence met for topic: %v metadata: %s . \n", + topic.Id, + topic.Metadata)) + + // Update the last inference ran + err = k.UpdateTopicEpochLastEnded(ctx, topic.Id, block) + if err != nil { + ctx.Logger().Warn(fmt.Sprintf("Error updating last inference ran: %s", err.Error())) + continue + } + // Add Worker Nonces + nextNonce := types.Nonce{BlockHeight: block} + err = k.AddWorkerNonce(ctx, topic.Id, &nextNonce) + if err != nil { + ctx.Logger().Warn(fmt.Sprintf("Error adding worker nonce: %s", err.Error())) + continue + } + ctx.Logger().Debug(fmt.Sprintf("Added worker nonce for topic %d: %v \n", topic.Id, nextNonce.BlockHeight)) + + err = k.AddWorkerWindowTopicId(ctx, block+topic.WorkerSubmissionWindow, topic.Id) + if err != nil { + ctx.Logger().Warn(fmt.Sprintf("Error adding worker window topic id: %s", err.Error())) + continue + } + + MaxUnfulfilledReputerRequests := types.DefaultParams().MaxUnfulfilledReputerRequests + moduleParams, err := k.GetParams(ctx) + if err != nil { + ctx.Logger().Warn(fmt.Sprintf("Error getting max retries to fulfil nonces for worker requests (using default), err: %s", err.Error())) + } else { + MaxUnfulfilledReputerRequests = moduleParams.MaxUnfulfilledReputerRequests + } + // Adding one to cover for one extra epochLength + reputerPruningBlock := block - (int64(MaxUnfulfilledReputerRequests+1)*topic.EpochLength + topic.GroundTruthLag) + if reputerPruningBlock > 0 { + ctx.Logger().Debug(fmt.Sprintf("Pruning reputer nonces before block: %v for topic: %d on block: %v", reputerPruningBlock, topic.Id, block)) + err = k.PruneReputerNonces(ctx, topic.Id, reputerPruningBlock) + if err != nil { + ctx.Logger().Warn(fmt.Sprintf("Error pruning reputer nonces: %s", err.Error())) + } + + // Reputer nonces need to check worker nonces from one epoch before + workerPruningBlock := reputerPruningBlock - topic.EpochLength + if workerPruningBlock > 0 { + ctx.Logger().Debug("Pruning worker nonces before block: ", workerPruningBlock, " for topic: ", topic.Id) + // Prune old worker nonces previous to current block to avoid inserting inferences after its time has passed + err = k.PruneWorkerNonces(ctx, topic.Id, workerPruningBlock) + if err != nil { + ctx.Logger().Warn(fmt.Sprintf("Error pruning worker nonces: %s", err.Error())) + } + } + } + } + // Check Reputer Close Cadence + if k.CheckReputerCloseCadence(block, topic) { + // Check if there is an unfulfilled nonce + nonces, err := k.GetUnfulfilledReputerNonces(ctx, topic.Id) + if err != nil { + ctx.Logger().Warn(fmt.Sprintf("Error getting unfulfilled worker nonces: %s", err.Error())) + continue + } + for _, nonce := range nonces.Nonces { + // Check if current blockheight has reached the blockheight of the nonce + groundTruthLag + epochLength + // This means one epochLength is allowed for reputation responses to be sent since ground truth is revealed. + closingReputerNonceMinBlockHeight := nonce.ReputerNonce.BlockHeight + topic.GroundTruthLag + topic.EpochLength + if block >= closingReputerNonceMinBlockHeight { + ctx.Logger().Debug(fmt.Sprintf("ABCI EndBlocker: Closing reputer nonce for topic: %v nonce: %v, min: %d. \n", + topic.Id, nonce, closingReputerNonceMinBlockHeight)) + err = allorautils.CloseReputerNonce(&k, ctx, topic.Id, *nonce.ReputerNonce) + if err != nil { + ctx.Logger().Warn(fmt.Sprintf("Error closing reputer nonce: %s", err.Error())) + // Proactively close the nonce to avoid + k.FulfillReputerNonce(ctx, topic.Id, nonce.ReputerNonce) + } + } + } + } if err != nil { Logger(ctx).Debug("Error applying function on topic: ", err) continue @@ -156,11 +234,17 @@ func GetAndUpdateActiveTopicWeights( return nil, alloraMath.Dec{}, cosmosMath.Int{}, errors.Wrapf(err, "failed to get alpha") } + // Retrieve and sort all active topics with epoch ending at this block + // default page limit for the max because default is 100 and max is 1000 + // 1000 is excessive for the topic query + sortedEpochEndingTopics := GetAllActiveEpochEndingTopics(ctx, k, block, moduleParams.DefaultPageLimit, moduleParams.DefaultPageLimit) + totalRevenue = cosmosMath.ZeroInt() sumWeight = alloraMath.ZeroDec() weights = make(map[TopicId]*alloraMath.Dec) - nowInactiveTopics := make([]uint64, 0) - fn := func(ctx sdk.Context, topic *types.Topic) error { + + // Apply the function on all sorted topics + for _, topic := range sortedEpochEndingTopics { // Calc weight and related data per topic weight, topicFeeRevenue, err := k.GetCurrentTopicWeight( ctx, @@ -169,15 +253,14 @@ func GetAndUpdateActiveTopicWeights( moduleParams.TopicRewardAlpha, moduleParams.TopicRewardStakeImportance, moduleParams.TopicRewardFeeRevenueImportance, - cosmosMath.ZeroInt(), ) if err != nil { - return errors.Wrapf(err, "failed to get current topic weight") + return nil, alloraMath.Dec{}, cosmosMath.Int{}, errors.Wrapf(err, "failed to get current topic weight") } err = k.SetPreviousTopicWeight(ctx, topic.Id, weight) if err != nil { - return errors.Wrapf(err, "failed to set previous topic weight") + return nil, alloraMath.Dec{}, cosmosMath.Int{}, errors.Wrapf(err, "failed to set previous topic weight") } // This revenue will be paid to top active topics of this block (the churnable topics). @@ -185,36 +268,20 @@ func GetAndUpdateActiveTopicWeights( // => the influence of this topic's revenue needs to be appropriately diminished. err = k.DripTopicFeeRevenue(ctx, topic.Id, block) if err != nil { - return errors.Wrapf(err, "failed to reset topic fee revenue") + return nil, alloraMath.Dec{}, cosmosMath.Int{}, errors.Wrapf(err, "failed to reset topic fee revenue") } - // If the topic is inactive, add it to the list of inactive topics + // If the topic is inactive, inactivate it if weight.Lt(moduleParams.MinTopicWeight) { - nowInactiveTopics = append(nowInactiveTopics, topic.Id) - return nil + err := k.InactivateTopic(ctx, topic.Id) + return nil, alloraMath.Dec{}, cosmosMath.Int{}, errors.Wrapf(err, "failed to inactivate topic") } totalRevenue = totalRevenue.Add(topicFeeRevenue) weights[topic.Id] = &weight sumWeight, err = sumWeight.Add(weight) if err != nil { - return errors.Wrapf(err, "failed to add weight to sum") - } - return nil - } - - // default page limit for the max because default is 100 and max is 1000 - // 1000 is excessive for the topic query - err = SafeApplyFuncOnAllActiveEpochEndingTopics(ctx, k, block, fn, moduleParams.DefaultPageLimit, moduleParams.DefaultPageLimit) - if err != nil { - return nil, alloraMath.Dec{}, cosmosMath.Int{}, errors.Wrapf(err, "failed to apply function on all rewardable topics to get weights") - } - - // Inactivate now-inactive topics and reset their revenue - for _, topicId := range nowInactiveTopics { - err = k.InactivateTopic(ctx, topicId) - if err != nil { - return nil, alloraMath.Dec{}, cosmosMath.Int{}, errors.Wrapf(err, "failed to inactivate topic") + return nil, alloraMath.Dec{}, cosmosMath.Int{}, errors.Wrapf(err, "failed to add weight to sum") } } diff --git a/x/emissions/module/rewards/topic_rewards_test.go b/x/emissions/module/rewards/topic_rewards_test.go new file mode 100644 index 000000000..ae528679a --- /dev/null +++ b/x/emissions/module/rewards/topic_rewards_test.go @@ -0,0 +1,131 @@ +package rewards_test + +import ( + alloraMath "github.com/allora-network/allora-chain/math" + "github.com/allora-network/allora-chain/x/emissions/module/rewards" + emissionstypes "github.com/allora-network/allora-chain/x/emissions/types" +) + +func (s *RewardsTestSuite) TestGetAllActiveEpochEndingTopics() { + // Test case 1: No active topics + block := int64(100) + topicPageLimit := uint64(10) + maxTopicPages := uint64(5) + + createNewTopic(s) + createNewTopic(s) + result := rewards.GetAllActiveEpochEndingTopics(s.ctx, s.emissionsKeeper, block, topicPageLimit, maxTopicPages) + s.Require().Len(result, 0) +} + +func (s *RewardsTestSuite) TestGetAllActiveEpochEndingTopicsActiveTopicsExistButNotEpochEnding() { + // Test case 2: Active topics exist but no epoch ending topics + block := int64(100) + topicPageLimit := uint64(10) + maxTopicPages := uint64(5) + id1 := uint64(1) + id3 := uint64(3) + + err := s.emissionsKeeper.SetTopic(s.ctx, id1, emissionstypes.Topic{ + Id: id1, + Creator: "creator", + Metadata: "metadata", + LossMethod: "mse", + EpochLastEnded: 10, + EpochLength: 100, + GroundTruthLag: 10, + WorkerSubmissionWindow: 10, + PNorm: alloraMath.NewDecFromInt64(3), + AlphaRegret: alloraMath.MustNewDecFromString("0.1"), + AllowNegative: false, + InitialRegret: alloraMath.MustNewDecFromString("0.0001"), + }) + s.Require().NoError(err) + err = s.emissionsKeeper.SetTopic(s.ctx, id3, emissionstypes.Topic{ + Id: id3, + Creator: "creator", + Metadata: "metadata", + LossMethod: "mse", + EpochLastEnded: 10, + EpochLength: 100, + GroundTruthLag: 10, + WorkerSubmissionWindow: 10, + PNorm: alloraMath.NewDecFromInt64(3), + AlphaRegret: alloraMath.MustNewDecFromString("0.1"), + AllowNegative: false, + InitialRegret: alloraMath.MustNewDecFromString("0.0001"), + }) + s.Require().NoError(err) + + s.emissionsKeeper.ActivateTopic(s.ctx, id1) + s.emissionsKeeper.ActivateTopic(s.ctx, id3) + + result := rewards.GetAllActiveEpochEndingTopics(s.ctx, s.emissionsKeeper, block, topicPageLimit, maxTopicPages) + s.Require().Len(result, 0) +} + +func (s *RewardsTestSuite) TestGetAllActiveEpochEndingTopicsActiveTopicsExistAndSomeEpochEnding() { + // Test case 3: Active topics exist and some epoch ending topics + block := int64(300) + topicPageLimit := uint64(10) + maxTopicPages := uint64(5) + id1 := uint64(1) + id3 := uint64(3) + + err := s.emissionsKeeper.SetTopic(s.ctx, id1, emissionstypes.Topic{ + Id: id1, + Creator: "creator", + Metadata: "metadata", + LossMethod: "mse", + EpochLastEnded: 200, + EpochLength: 100, + GroundTruthLag: 10, + WorkerSubmissionWindow: 10, + PNorm: alloraMath.NewDecFromInt64(3), + AlphaRegret: alloraMath.MustNewDecFromString("0.1"), + AllowNegative: false, + InitialRegret: alloraMath.MustNewDecFromString("0.0001"), + }) + s.Require().NoError(err) + err = s.emissionsKeeper.SetTopic(s.ctx, id3, emissionstypes.Topic{ + Id: id3, + Creator: "creator", + Metadata: "metadata", + LossMethod: "mse", + EpochLastEnded: 250, + EpochLength: 50, + GroundTruthLag: 10, + WorkerSubmissionWindow: 10, + PNorm: alloraMath.NewDecFromInt64(3), + AlphaRegret: alloraMath.MustNewDecFromString("0.1"), + AllowNegative: false, + InitialRegret: alloraMath.MustNewDecFromString("0.0001"), + }) + s.Require().NoError(err) + + s.emissionsKeeper.ActivateTopic(s.ctx, id1) + s.emissionsKeeper.ActivateTopic(s.ctx, id3) + + result := rewards.GetAllActiveEpochEndingTopics(s.ctx, s.emissionsKeeper, block, topicPageLimit, maxTopicPages) + s.Require().Len(result, 2) + // Topics in result should be in ascending order of id + s.Require().Equal(result[0].Id, id1, "topics in result should be in ascending order of id, and id1 should be of active topic") + s.Require().Equal(result[1].Id, id3, "topics in result should be in ascending order of id, and id3 should be of active topic") +} + +func (s *RewardsTestSuite) TestGetAllActiveEpochEndingTopicsActiveTopicsExistAndAbideByPageLimits() { + // Test case 4: Respecting page limits + block := int64(100) + topicPageLimit := uint64(1) + maxTopicPages := uint64(1) + + id1 := createNewTopic(s) + id3 := createNewTopic(s) + + s.emissionsKeeper.ActivateTopic(s.ctx, id1) + s.emissionsKeeper.ActivateTopic(s.ctx, id3) + + result := rewards.GetAllActiveEpochEndingTopics(s.ctx, s.emissionsKeeper, block, topicPageLimit, maxTopicPages) + s.Require().Len(result, 1) + s.Require().Equal(result[0].Id, id1, "topics in result should be in ascending order of id") +} diff --git a/x/emissions/module/rewards/worker_rewards.go b/x/emissions/module/rewards/worker_rewards.go index 526a16272..03284dc28 100644 --- a/x/emissions/module/rewards/worker_rewards.go +++ b/x/emissions/module/rewards/worker_rewards.go @@ -114,7 +114,7 @@ func GetInferenceTaskEntropy( return getInferenceOrForecastTaskEntropy(ctx, k, topicId, emaAlpha, betaEntropy, TASK_INFERENCE, workers, workersFractions) } -func GetForecastingTaskEntropy( +func GetForecastTaskEntropy( ctx sdk.Context, k keeper.Keeper, topicId uint64, @@ -146,14 +146,14 @@ func getInferenceOrForecastTaskEntropy( emaRewardFractions := make([]alloraMath.Dec, numWorkers) var previousRewardFraction alloraMath.Dec for i, worker := range workers { - noPriorScore := false + noPriorFraction := false if which == TASK_INFERENCE { - previousRewardFraction, noPriorScore, err = k.GetPreviousInferenceRewardFraction(ctx, topicId, worker) + previousRewardFraction, noPriorFraction, err = k.GetPreviousInferenceRewardFraction(ctx, topicId, worker) if err != nil { return alloraMath.Dec{}, errors.Wrapf(err, "failed to get previous inference reward fraction") } } else { // TASK_FORECAST - previousRewardFraction, noPriorScore, err = k.GetPreviousForecastRewardFraction(ctx, topicId, worker) + previousRewardFraction, noPriorFraction, err = k.GetPreviousForecastRewardFraction(ctx, topicId, worker) if err != nil { return alloraMath.Dec{}, errors.Wrapf(err, "failed to get previous forecast reward fraction") } @@ -162,7 +162,7 @@ func getInferenceOrForecastTaskEntropy( emaAlpha, workersFractions[i], previousRewardFraction, - noPriorScore, + noPriorFraction, ) if err != nil { return alloraMath.Dec{}, errors.Wrapf(err, "failed to calculate EMA") @@ -170,7 +170,7 @@ func getInferenceOrForecastTaskEntropy( } // Calculate modified reward fractions and persist for next round - numberRatio, err := NumberRatio(workersFractions) + numberRatio, err := NumberRatio(emaRewardFractions) if err != nil { return alloraMath.Dec{}, errors.Wrapf(err, "failed to calculate number ratio") } @@ -239,22 +239,22 @@ func ForecastingPerformanceScore( func ForecastingUtility( forecastingTaskUtilityScore alloraMath.Dec, infererScores []types.Score, + previousForecasterScoreRatio alloraMath.Dec, + alpha alloraMath.Dec, ) (alloraMath.Dec, error) { zeroPointOne := alloraMath.MustNewDecFromString("0.1") zeroPointFour := alloraMath.MustNewDecFromString("0.4") zeroPointFive := alloraMath.MustNewDecFromString("0.5") - // Calculate the sum of predictorsScores - var sumInfererScores alloraMath.Dec - var err error + // Calculate the maximum of infererScores + var maxInfererScore alloraMath.Dec for _, score := range infererScores { - sumInfererScores, err = sumInfererScores.Add(score.Score) - if err != nil { - return alloraMath.Dec{}, err + if score.Score.Gt(maxInfererScore) { + maxInfererScore = score.Score } } - scoreDenominator := sumInfererScores.Abs() - if sumInfererScores.IsZero() { + scoreDenominator := maxInfererScore.Abs() + if maxInfererScore.IsZero() { if forecastingTaskUtilityScore.IsZero() { return zeroPointFive, nil } else { @@ -262,7 +262,7 @@ func ForecastingUtility( } } - scoreNumerator, err := forecastingTaskUtilityScore.Sub(alloraMath.Min(alloraMath.ZeroDec(), sumInfererScores)) + scoreNumerator, err := forecastingTaskUtilityScore.Sub(alloraMath.Min(alloraMath.ZeroDec(), maxInfererScore)) if err != nil { return alloraMath.Dec{}, err } @@ -271,23 +271,44 @@ func ForecastingUtility( return alloraMath.Dec{}, err } - // If score < 0, return 0.1 - if scoreRatio.Lt(alloraMath.ZeroDec()) { + // Calculate alpha * (scoreRatio) + alphaTimesScoreRatio, err := alpha.Mul(scoreRatio) + if err != nil { + return alloraMath.Dec{}, err + } + + // Calculate (1 - alpha) * previousForecasterScoreRatio + oneMinusAlpha, err := alloraMath.OneDec().Sub(alpha) + if err != nil { + return alloraMath.Dec{}, err + } + oneMinusAlphaTimesPreviousForecasterScoreRatio, err := oneMinusAlpha.Mul(previousForecasterScoreRatio) + if err != nil { + return alloraMath.Dec{}, err + } + + // Calculate the final tau value + forecasterScoreRatio, err := alphaTimesScoreRatio.Add(oneMinusAlphaTimesPreviousForecasterScoreRatio) + if err != nil { + return alloraMath.Dec{}, err + } + + // Apply the final tau value based on conditions + if forecasterScoreRatio.Lt(alloraMath.ZeroDec()) { return zeroPointOne, nil } - // If 1 <= score, return 0.5 - if scoreRatio.Gte(alloraMath.OneDec()) { + if forecasterScoreRatio.Gte(alloraMath.OneDec()) { return zeroPointFive, nil } - // For 0 <= score < 1, return 0.4 * score + 0.1 - scoreRatioTimesZeroPointFour, err := scoreRatio.Mul(zeroPointFour) + // For 0 <= finalTau < 1, return 0.4 * finalTau + 0.1 + finalTauTimesZeroPointFour, err := forecasterScoreRatio.Mul(zeroPointFour) if err != nil { return alloraMath.Dec{}, err } - chiReturnValue, err := scoreRatioTimesZeroPointFour.Add(zeroPointOne) + chiReturnValue, err := finalTauTimesZeroPointFour.Add(zeroPointOne) if err != nil { return alloraMath.Dec{}, err } @@ -332,12 +353,14 @@ func NormalizationFactor( } // helper function to get chi and gamma -func getChiAndGamma( +func GetChiAndGamma( naiveNetworkInferenceLoss, networkInferenceLoss, entropyInference, entropyForecasting alloraMath.Dec, infererScores []types.Score, + previousForecasterScoreRatio alloraMath.Dec, + alpha alloraMath.Dec, ) (chi alloraMath.Dec, gamma alloraMath.Dec, err error) { forecastingTaskUtilityScore, err := ForecastingPerformanceScore( naiveNetworkInferenceLoss, @@ -349,6 +372,8 @@ func getChiAndGamma( chi, err = ForecastingUtility( forecastingTaskUtilityScore, infererScores, + previousForecasterScoreRatio, + alpha, ) if err != nil { return alloraMath.Dec{}, alloraMath.Dec{}, errors.Wrapf(err, "failed to calculate forecasting utility") @@ -367,24 +392,13 @@ func getChiAndGamma( // inference rewards calculation // U_i = ((1 - χ) * γ * F_i * E_i ) / (F_i + G_i + H_i) func GetRewardForInferenceTaskInTopic( - naiveNetworkInferenceLoss alloraMath.Dec, - networkInferenceLoss alloraMath.Dec, entropyInference alloraMath.Dec, // F_i entropyForecasting alloraMath.Dec, // G_i entropyReputer alloraMath.Dec, // H_i totalReward *alloraMath.Dec, // E_i - infererScores []types.Score, + chi alloraMath.Dec, // χ + gamma alloraMath.Dec, // γ ) (alloraMath.Dec, error) { - chi, gamma, err := getChiAndGamma( - naiveNetworkInferenceLoss, - networkInferenceLoss, - entropyInference, - entropyForecasting, - infererScores, - ) - if err != nil { - return alloraMath.Dec{}, errors.Wrapf(err, "failed to get chi and gamma") - } oneMinusChi, err := alloraMath.OneDec().Sub(chi) if err != nil { return alloraMath.Dec{}, err @@ -419,24 +433,13 @@ func GetRewardForInferenceTaskInTopic( // forecaster rewards calculation // V_i = (χ * γ * G_i * E_i) / (F_i + G_i + H_i) func GetRewardForForecastingTaskInTopic( - naiveNetworkInferenceLoss alloraMath.Dec, - networkInferenceLoss alloraMath.Dec, entropyInference alloraMath.Dec, // F_i entropyForecasting alloraMath.Dec, // G_i entropyReputer alloraMath.Dec, // H_i totalReward *alloraMath.Dec, // E_i - infererScores []types.Score, + chi alloraMath.Dec, // χ + gamma alloraMath.Dec, // γ ) (alloraMath.Dec, error) { - chi, gamma, err := getChiAndGamma( - naiveNetworkInferenceLoss, - networkInferenceLoss, - entropyInference, - entropyForecasting, - infererScores, - ) - if err != nil { - return alloraMath.Dec{}, errors.Wrapf(err, "failed to get chi and gamma") - } chiGamma, err := chi.Mul(gamma) if err != nil { return alloraMath.Dec{}, err diff --git a/x/emissions/module/rewards/worker_rewards_test.go b/x/emissions/module/rewards/worker_rewards_test.go index 39aadeab6..351718bb2 100644 --- a/x/emissions/module/rewards/worker_rewards_test.go +++ b/x/emissions/module/rewards/worker_rewards_test.go @@ -4,24 +4,22 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" alloraMath "github.com/allora-network/allora-chain/math" + "github.com/allora-network/allora-chain/test/testutil" "github.com/allora-network/allora-chain/x/emissions/module/rewards" "github.com/allora-network/allora-chain/x/emissions/types" ) func createNewTopic(s *RewardsTestSuite) uint64 { newTopicMsg := &types.MsgCreateNewTopic{ - Creator: s.addrs[5].String(), - Metadata: "test", - LossLogic: "logic", - LossMethod: "method", - EpochLength: 10800, - GroundTruthLag: 10800, - InferenceLogic: "Ilogic", - InferenceMethod: "Imethod", - DefaultArg: "ETH", - AlphaRegret: alloraMath.NewDecFromInt64(1), - PNorm: alloraMath.NewDecFromInt64(3), - Epsilon: alloraMath.MustNewDecFromString("0.01"), + Creator: s.addrs[5].String(), + Metadata: "test", + LossMethod: "mse", + EpochLength: 10800, + GroundTruthLag: 10800, + WorkerSubmissionWindow: 10, + AlphaRegret: alloraMath.NewDecFromInt64(1), + PNorm: alloraMath.NewDecFromInt64(3), + Epsilon: alloraMath.MustNewDecFromString("0.01"), } res, err := s.msgServer.CreateNewTopic(s.ctx, newTopicMsg) s.Require().NoError(err) @@ -201,6 +199,225 @@ func (s *RewardsTestSuite) TestGetWorkersRewardFractionsShouldOutputSameFraction } } +func (s *RewardsTestSuite) TestGetWorkersRewardFractionsFromCsv() { + topicId := createNewTopic(s) + blockHeight := int64(4) + + finalEpoch := 304 + initialEpoch := 301 + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch4Get := epochGet[finalEpoch] + + inferer0 := "inferer0" + inferer1 := "inferer1" + inferer2 := "inferer2" + inferer3 := "inferer3" + inferer4 := "inferer4" + infererAddresses := []string{inferer0, inferer1, inferer2, inferer3, inferer4} + + forecaster0 := "forecaster0" + forecaster1 := "forecaster1" + forecaster2 := "forecaster2" + forecasterAddresses := []string{forecaster0, forecaster1, forecaster2} + + // Add scores from previous epochs + infererLastScores := make([]types.Score, 0) + forecasterLastScores := make([]types.Score, 0) + for j := 0; j < 4; j++ { + epochGet := epochGet[initialEpoch+j] + inferersScores := []alloraMath.Dec{ + epochGet("inferer_score_0"), + epochGet("inferer_score_1"), + epochGet("inferer_score_2"), + epochGet("inferer_score_3"), + epochGet("inferer_score_4"), + } + forecastersScores := []alloraMath.Dec{ + epochGet("forecaster_score_0"), + epochGet("forecaster_score_1"), + epochGet("forecaster_score_2"), + } + + for i, infererAddr := range infererAddresses { + blockHeight := int64(j) + scoreToAdd := types.Score{ + TopicId: topicId, + BlockHeight: int64(initialEpoch + j), + Address: infererAddr, + Score: inferersScores[i], + } + + // Persist worker inference score + err := s.emissionsKeeper.InsertWorkerInferenceScore(s.ctx, topicId, blockHeight, scoreToAdd) + s.Require().NoError(err) + + if j == 3 { + infererLastScores = append(infererLastScores, scoreToAdd) + } + } + for i, forecasterAddr := range forecasterAddresses { + blockHeight := int64(j) + scoreToAdd := types.Score{ + TopicId: topicId, + BlockHeight: int64(initialEpoch + j), + Address: forecasterAddr, + Score: forecastersScores[i], + } + + // Persist worker forecast score + err := s.emissionsKeeper.InsertWorkerForecastScore(s.ctx, topicId, blockHeight, scoreToAdd) + s.Require().NoError(err) + + if j == 3 { + forecasterLastScores = append(forecasterLastScores, scoreToAdd) + } + } + } + + // Get worker rewards + inferers, inferersRewardFractions, err := rewards.GetInferenceTaskRewardFractions( + s.ctx, + s.emissionsKeeper, + topicId, + blockHeight, + alloraMath.MustNewDecFromString("3"), + alloraMath.MustNewDecFromString("0.75"), + infererLastScores, + ) + s.Require().NoError(err) + s.Require().Equal(5, len(inferersRewardFractions)) + expectedValues := map[string]alloraMath.Dec{ + inferer0: epoch4Get("inferer_reward_fraction_0"), + inferer1: epoch4Get("inferer_reward_fraction_1"), + inferer2: epoch4Get("inferer_reward_fraction_2"), + inferer3: epoch4Get("inferer_reward_fraction_3"), + inferer4: epoch4Get("inferer_reward_fraction_4"), + } + for i, inferer := range inferers { + testutil.InEpsilon5(s.T(), inferersRewardFractions[i], expectedValues[inferer].String()) + } + + forecasters, forecastersRewardFractions, err := rewards.GetForecastingTaskRewardFractions( + s.ctx, + s.emissionsKeeper, + topicId, + blockHeight, + alloraMath.MustNewDecFromString("3"), + alloraMath.MustNewDecFromString("0.75"), + forecasterLastScores, + ) + s.Require().NoError(err) + s.Require().Equal(3, len(forecastersRewardFractions)) + expectedValues = map[string]alloraMath.Dec{ + forecaster0: epoch4Get("forecaster_reward_fraction_0"), + forecaster1: epoch4Get("forecaster_reward_fraction_1"), + forecaster2: epoch4Get("forecaster_reward_fraction_2"), + } + for i, forecaster := range forecasters { + testutil.InEpsilon5(s.T(), forecastersRewardFractions[i], expectedValues[forecaster].String()) + } +} + +func (s *RewardsTestSuite) TestGetInferenceTaskEntropyFromCsv() { + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch1Get := epochGet[301] + epoch2Get := epochGet[302] + topicId := uint64(1) + + taskRewardAlpha := alloraMath.MustNewDecFromString("0.1") + betaEntropy := alloraMath.MustNewDecFromString("0.25") + + inferer0 := s.addrs[5].String() + inferer1 := s.addrs[6].String() + inferer2 := s.addrs[7].String() + inferer3 := s.addrs[8].String() + inferer4 := s.addrs[9].String() + infererAddresses := []string{inferer0, inferer1, inferer2, inferer3, inferer4} + + infererPreviousFractions := []alloraMath.Dec{ + epoch1Get("inferer_reward_fraction_smooth_0"), + epoch1Get("inferer_reward_fraction_smooth_1"), + epoch1Get("inferer_reward_fraction_smooth_2"), + epoch1Get("inferer_reward_fraction_smooth_3"), + epoch1Get("inferer_reward_fraction_smooth_4"), + } + + // Add previous reward fractions + for i, infererAddr := range infererAddresses { + err := s.emissionsKeeper.SetPreviousInferenceRewardFraction(s.ctx, topicId, infererAddr, infererPreviousFractions[i]) + s.Require().NoError(err) + } + + infererFractions := []alloraMath.Dec{ + epoch2Get("inferer_reward_fraction_0"), + epoch2Get("inferer_reward_fraction_1"), + epoch2Get("inferer_reward_fraction_2"), + epoch2Get("inferer_reward_fraction_3"), + epoch2Get("inferer_reward_fraction_4"), + } + + inferenceEntropy, err := rewards.GetInferenceTaskEntropy( + s.ctx, + s.emissionsKeeper, + topicId, + taskRewardAlpha, + betaEntropy, + infererAddresses, + infererFractions, + ) + s.Require().NoError(err) + + expectedEntropy := epoch2Get("inferers_entropy") + testutil.InEpsilon5(s.T(), inferenceEntropy, expectedEntropy.String()) +} + +func (s *RewardsTestSuite) TestGetForecastTaskEntropyFromCsv() { + topicId := createNewTopic(s) + taskRewardAlpha := alloraMath.MustNewDecFromString("0.1") + betaEntropy := alloraMath.MustNewDecFromString("0.25") + + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch1Get := epochGet[301] + epoch2Get := epochGet[302] + + forecaster0 := s.addrs[10].String() + forecaster1 := s.addrs[11].String() + forecaster2 := s.addrs[12].String() + forecasterAddresses := []string{forecaster0, forecaster1, forecaster2} + + forecasterPreviousFractions := []alloraMath.Dec{ + epoch1Get("forecaster_reward_fraction_smooth_0"), + epoch1Get("forecaster_reward_fraction_smooth_1"), + epoch1Get("forecaster_reward_fraction_smooth_2"), + } + + // Add previous reward fractions + for i, forecasterAddr := range forecasterAddresses { + err := s.emissionsKeeper.SetPreviousForecastRewardFraction(s.ctx, topicId, forecasterAddr, forecasterPreviousFractions[i]) + s.Require().NoError(err) + } + + forecasterFractions := []alloraMath.Dec{ + epoch2Get("forecaster_reward_fraction_0"), + epoch2Get("forecaster_reward_fraction_1"), + epoch2Get("forecaster_reward_fraction_2"), + } + + forecastEntropy, err := rewards.GetForecastTaskEntropy( + s.ctx, + s.emissionsKeeper, + topicId, + taskRewardAlpha, + betaEntropy, + forecasterAddresses, + forecasterFractions, + ) + s.Require().NoError(err) + + expectedEntropy := epoch2Get("forecasters_entropy") + testutil.InEpsilon5(s.T(), forecastEntropy, expectedEntropy.String()) +} + func (s *RewardsTestSuite) TestGetWorkersRewardsInferenceTask() { topicId := createNewTopic(s) blockHeight := int64(1003) @@ -261,6 +478,82 @@ func (s *RewardsTestSuite) TestGetWorkersRewardsForecastTask() { s.Require().Equal(5, len(forecastRewards)) } +func (s *RewardsTestSuite) TestInferenceRewardsFromCsv() { + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch3Get := epochGet[300] + alpha := alloraMath.MustNewDecFromString("0.1") + totalReward, err := testutil.GetTotalRewardForTopicInEpoch(epoch3Get) + s.Require().NoError(err) + infererScores := []types.Score{ + {Score: epoch3Get("inferer_score_0")}, + {Score: epoch3Get("inferer_score_1")}, + {Score: epoch3Get("inferer_score_2")}, + {Score: epoch3Get("inferer_score_3")}, + {Score: epoch3Get("inferer_score_4")}, + } + chi, gamma, err := rewards.GetChiAndGamma( + epoch3Get("network_naive_loss"), + epoch3Get("network_loss"), + epoch3Get("inferers_entropy"), + epoch3Get("forecasters_entropy"), + infererScores, + epoch3Get("forecaster_score_ratio"), + alpha, + ) + s.Require().NoError(err) + + result, err := rewards.GetRewardForInferenceTaskInTopic( + epoch3Get("inferers_entropy"), + epoch3Get("forecasters_entropy"), + epoch3Get("reputers_entropy"), + &totalReward, + chi, + gamma, + ) + s.Require().NoError(err) + expectedTotalInfererReward, err := testutil.GetTotalInfererRewardForTopicInEpoch(epoch3Get) + s.Require().NoError(err) + testutil.InEpsilon5(s.T(), result, expectedTotalInfererReward.String()) +} + +func (s *RewardsTestSuite) TestForecastRewardsFromCsv() { + epochGet := testutil.GetSimulatedValuesGetterForEpochs() + epoch3Get := epochGet[300] + alpha := alloraMath.MustNewDecFromString("0.1") + totalReward, err := testutil.GetTotalRewardForTopicInEpoch(epoch3Get) + s.Require().NoError(err) + infererScores := []types.Score{ + {Score: epoch3Get("inferer_score_0")}, + {Score: epoch3Get("inferer_score_1")}, + {Score: epoch3Get("inferer_score_2")}, + {Score: epoch3Get("inferer_score_3")}, + {Score: epoch3Get("inferer_score_4")}, + } + chi, gamma, err := rewards.GetChiAndGamma( + epoch3Get("network_naive_loss"), + epoch3Get("network_loss"), + epoch3Get("inferers_entropy"), + epoch3Get("forecasters_entropy"), + infererScores, + epoch3Get("forecaster_score_ratio"), + alpha, + ) + s.Require().NoError(err) + + result, err := rewards.GetRewardForForecastingTaskInTopic( + epoch3Get("inferers_entropy"), + epoch3Get("forecasters_entropy"), + epoch3Get("reputers_entropy"), + &totalReward, + chi, + gamma, + ) + s.Require().NoError(err) + expectedTotalForecasterReward, err := testutil.GetTotalForecasterRewardForTopicInEpoch(epoch3Get) + s.Require().NoError(err) + testutil.InEpsilon5(s.T(), result, expectedTotalForecasterReward.String()) +} + func mockNetworkLosses(s *RewardsTestSuite, topicId uint64, block int64) (types.ValueBundle, error) { oneOutInfererLosses := []*types.WithheldWorkerAttributedValue{ { diff --git a/x/emissions/module/stake_removals.go b/x/emissions/module/stake_removals.go index 14d45c699..ad65647b1 100644 --- a/x/emissions/module/stake_removals.go +++ b/x/emissions/module/stake_removals.go @@ -14,8 +14,9 @@ func RemoveStakes( sdkCtx sdk.Context, currentBlock int64, k emissionskeeper.Keeper, + limitToProcess uint64, ) { - removals, err := k.GetStakeRemovalsForBlock(sdkCtx, currentBlock) + removals, limitHit, err := k.GetStakeRemovalsUpUntilBlock(sdkCtx, currentBlock, limitToProcess) if err != nil { sdkCtx.Logger().Error(fmt.Sprintf( "Unable to get stake removals for block %d, skipping removing stakes: %v", @@ -24,41 +25,60 @@ func RemoveStakes( )) return } + if limitHit { + sdkCtx.Logger().Info(fmt.Sprintf( + "Hit limit of number of stake removals we can process up until block %d, only removing %d", + currentBlock, + limitToProcess, + )) + } for _, stakeRemoval := range removals { - // do no checking that the stake removal struct is valid. In order to have a stake removal - // it would have had to be created in msgServer.RemoveStake which would have done - // validation of validity up front before scheduling the delay + // attempt writes in a cache context, only write finally if there are no errors + cacheSdkCtx, write := sdkCtx.CacheContext() - // Check the module has enough funds to send back to the sender - // Bank module does this for us in module SendCoins / subUnlockedCoins so we don't need to check - // Send the funds - coins := sdk.NewCoins(sdk.NewCoin(chainParams.DefaultBondDenom, stakeRemoval.Amount)) - err = k.SendCoinsFromModuleToAccount(sdkCtx, emissionstypes.AlloraStakingAccountName, stakeRemoval.Reputer, coins) + // Update the stake data structures + err = k.RemoveReputerStake( + cacheSdkCtx, + currentBlock, + stakeRemoval.TopicId, + stakeRemoval.Reputer, + stakeRemoval.Amount, + ) if err != nil { sdkCtx.Logger().Error(fmt.Sprintf( - "Error removing stake: %v | %v", + "Error removing stake data structures: %v | %v", stakeRemoval, err, )) continue } - // Update the stake data structures - err = k.RemoveReputerStake( - sdkCtx, - currentBlock, - stakeRemoval.TopicId, + // do no checking that the stake removal struct is valid. In order to have a stake removal + // it would have had to be created in msgServer.RemoveStake which would have done + // validation of validity up front before scheduling the delay + + // Check the module has enough funds to send back to the sender + // Bank module does this for us in module SendCoins / subUnlockedCoins so we don't need to check + // Send the funds + coins := sdk.NewCoins(sdk.NewCoin(chainParams.DefaultBondDenom, stakeRemoval.Amount)) + err = k.SendCoinsFromModuleToAccount( + cacheSdkCtx, + emissionstypes.AlloraStakingAccountName, stakeRemoval.Reputer, - stakeRemoval.Amount, + coins, ) if err != nil { sdkCtx.Logger().Error(fmt.Sprintf( - "Error removing stake: %v | %v", + "Error removing stake funds: %v | %v", stakeRemoval, err, )) continue } + + // if there were no errors up to this point, then the removal should be safe to do, + // and therefore we can write the cache to the main state + write() } } @@ -67,8 +87,9 @@ func RemoveDelegateStakes( sdkCtx sdk.Context, currentBlock int64, k emissionskeeper.Keeper, + limitToProcess uint64, ) { - removals, err := k.GetDelegateStakeRemovalsForBlock(sdkCtx, currentBlock) + removals, limitHit, err := k.GetDelegateStakeRemovalsUpUntilBlock(sdkCtx, currentBlock, limitToProcess) if err != nil { sdkCtx.Logger().Error( fmt.Sprintf( @@ -78,7 +99,36 @@ func RemoveDelegateStakes( )) return } + if limitHit { + sdkCtx.Logger().Info(fmt.Sprintf( + "Hit limit of number of stake removals we can process up until block %d, only removing %d", + currentBlock, + limitToProcess, + )) + } for _, stakeRemoval := range removals { + // attempt writes in a cache context, only write finally if there are no errors + cacheSdkCtx, write := sdkCtx.CacheContext() + + // Update the stake data structures + err = k.RemoveDelegateStake( + cacheSdkCtx, + stakeRemoval.BlockRemovalCompleted, + stakeRemoval.TopicId, + stakeRemoval.Delegator, + stakeRemoval.Reputer, + stakeRemoval.Amount, + ) + if err != nil { + msg := fmt.Sprintf( + "Error removing delegate stake state: %v | %v", + stakeRemoval, + err, + ) + sdkCtx.Logger().Error(msg) + continue + } + // do no checking that the stake removal struct is valid. In order to have a stake removal // it would have had to be created in msgServer.RemoveDelegateStake which would have done // validation of validity up front before scheduling the delay @@ -87,32 +137,19 @@ func RemoveDelegateStakes( // Bank module does this for us in module SendCoins / subUnlockedCoins so we don't need to check // Send the funds coins := sdk.NewCoins(sdk.NewCoin(chainParams.DefaultBondDenom, stakeRemoval.Amount)) - err = k.SendCoinsFromModuleToAccount(sdkCtx, emissionstypes.AlloraStakingAccountName, stakeRemoval.Delegator, coins) + err = k.SendCoinsFromModuleToAccount( + cacheSdkCtx, + emissionstypes.AlloraStakingAccountName, + stakeRemoval.Delegator, coins) if err != nil { sdkCtx.Logger().Error(fmt.Sprintf( - "Error removing stake: %v | %v", + "Error removing delegate stake send funds: %v | %v", stakeRemoval, err, )) continue } - // Update the stake data structures - err = k.RemoveDelegateStake( - sdkCtx, - currentBlock, - stakeRemoval.TopicId, - stakeRemoval.Delegator, - stakeRemoval.Reputer, - stakeRemoval.Amount, - ) - if err != nil { - sdkCtx.Logger().Error(fmt.Sprintf( - "Error removing stake: %v | %v", - stakeRemoval, - err, - )) - continue - } + write() } } diff --git a/x/emissions/proto/emissions/v1/genesis.proto b/x/emissions/proto/emissions/v1/genesis.proto deleted file mode 100644 index bd55d78ba..000000000 --- a/x/emissions/proto/emissions/v1/genesis.proto +++ /dev/null @@ -1,15 +0,0 @@ -syntax = "proto3"; -package emissions.v1; - -import "gogoproto/gogo.proto"; -import "emissions/v1/params.proto"; -import "amino/amino.proto"; - -option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; - -// GenesisState is the state that must be provided at genesis. -message GenesisState { - // params defines all the parameters of the module. - Params params = 1 [(gogoproto.nullable) = false]; - repeated string core_team_addresses = 2; -} diff --git a/x/emissions/proto/emissions/v1/node.proto b/x/emissions/proto/emissions/v1/node.proto index 6c9e539e1..0594ca65d 100644 --- a/x/emissions/proto/emissions/v1/node.proto +++ b/x/emissions/proto/emissions/v1/node.proto @@ -1,11 +1,11 @@ syntax = "proto3"; package emissions.v1; -option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; +option go_package = "github.com/allora-network/allora-chain/x/emissions/migrations/v2/types"; message OffchainNode { - string lib_p2p_key = 1; // LibP2P key of the node - string multi_address = 2; // Network address for accessing the node + string lib_p2p_key = 1; + string multi_address = 2; string owner = 3; string node_address = 4; string node_id = 5; diff --git a/x/emissions/proto/emissions/v1/nonce.proto b/x/emissions/proto/emissions/v1/nonce.proto index 12d943991..51a6ecbd9 100644 --- a/x/emissions/proto/emissions/v1/nonce.proto +++ b/x/emissions/proto/emissions/v1/nonce.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package emissions.v1; -option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; +option go_package = "github.com/allora-network/allora-chain/x/emissions/migrations/v2/types"; import "gogoproto/gogo.proto"; diff --git a/x/emissions/proto/emissions/v1/reputer.proto b/x/emissions/proto/emissions/v1/reputer.proto index b6b2ffb67..6f18c1b98 100644 --- a/x/emissions/proto/emissions/v1/reputer.proto +++ b/x/emissions/proto/emissions/v1/reputer.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package emissions.v1; -option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; +option go_package = "github.com/allora-network/allora-chain/x/emissions/migrations/v2/types"; import "gogoproto/gogo.proto"; import "emissions/v1/nonce.proto"; diff --git a/x/emissions/proto/emissions/v1/topic.proto b/x/emissions/proto/emissions/v1/topic.proto index a6fca06e7..92ec29617 100644 --- a/x/emissions/proto/emissions/v1/topic.proto +++ b/x/emissions/proto/emissions/v1/topic.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package emissions.v1; -option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; +option go_package = "github.com/allora-network/allora-chain/x/emissions/migrations/v2/types"; import "cosmos_proto/cosmos.proto"; import "amino/amino.proto"; @@ -25,10 +25,6 @@ message Topic { string alpha_regret = 13 [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; bool allow_negative = 14; - string epsilon = 15 - [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; - string initial_regret = 16 - [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; } message TopicList { diff --git a/x/emissions/proto/emissions/v1/events.proto b/x/emissions/proto/emissions/v2/events.proto similarity index 96% rename from x/emissions/proto/emissions/v1/events.proto rename to x/emissions/proto/emissions/v2/events.proto index ce2535712..e2457606f 100644 --- a/x/emissions/proto/emissions/v1/events.proto +++ b/x/emissions/proto/emissions/v2/events.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package emissions.v1; +package emissions.v2; option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; import "gogoproto/gogo.proto"; -import "emissions/v1/reputer.proto"; +import "emissions/v2/reputer.proto"; // We choose a denormalized schema for events to balance the size and number of // events, as well as the complexity of likely downstream write and read diff --git a/x/emissions/proto/emissions/v2/genesis.proto b/x/emissions/proto/emissions/v2/genesis.proto new file mode 100644 index 000000000..148cc4b53 --- /dev/null +++ b/x/emissions/proto/emissions/v2/genesis.proto @@ -0,0 +1,321 @@ +syntax = "proto3"; +package emissions.v2; + +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; +import "gogoproto/gogo.proto"; +import "emissions/v2/params.proto"; +import "emissions/v2/score.proto"; +import "emissions/v2/stake.proto"; +import "emissions/v2/types.proto"; +import "emissions/v2/topic.proto"; +import "emissions/v2/worker.proto"; +import "emissions/v2/node.proto"; +import "emissions/v2/reputer.proto"; +import "emissions/v2/nonce.proto"; + +option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; + +// GenesisState is the state that must be provided at genesis. +message GenesisState { + // params defines all the parameters of the module. + Params params = 1 [(gogoproto.nullable) = false]; + + /// TOPIC + // the next topic id to be used, equal to the number of topics that have been created + uint64 nextTopicId = 3; + // every topic that has been created indexed by their topicId starting from 1 (0 is reserved for the root network) + repeated TopicIdAndTopic topics = 4; + repeated uint64 activeTopics = 5; + // every topic that has been churned and ready to be rewarded i.e. reputer losses have been committed + repeated uint64 rewardableTopics = 6; + // for a topic, what is every worker node that has registered to it? + repeated TopicAndActorId topicWorkers = 7; + // for a topic, what is every reputer node that has registered to it? + repeated TopicAndActorId topicReputers = 8; + // map of (topic) -> nonce/block height + repeated TopicIdAndBlockHeight topicRewardNonce = 9; + + /// SCORES + // map of (topic, block_height, worker) -> score + repeated TopicIdBlockHeightScores infererScoresByBlock = 10; + // map of (topic, block_height, worker) -> score + repeated TopicIdBlockHeightScores forecasterScoresByBlock = 11; + // map of (topic, block_height, reputer) -> score + repeated TopicIdBlockHeightScores reputerScoresByBlock = 12; + // map of (topic, block_height, worker) -> score + repeated TopicIdActorIdScore latestInfererScoresByWorker = 13; + // map of (topic, block_height, worker) -> score + repeated TopicIdActorIdScore latestForecasterScoresByWorker = 14; + // map of (topic, block_height, reputer) -> score + repeated TopicIdActorIdScore latestReputerScoresByReputer = 15; + // map of (topic, reputer) -> listening coefficient + repeated TopicIdActorIdListeningCoefficient reputerListeningCoefficient = 16; + // map of (topic, reputer) -> previous reward (used for EMA) + repeated TopicIdActorIdDec previousReputerRewardFraction = 17; + // map of (topic, worker) -> previous reward for inference (used for EMA) + repeated TopicIdActorIdDec previousInferenceRewardFraction = 18; + // map of (topic, worker) -> previous reward for forecast (used for EMA) + repeated TopicIdActorIdDec previousForecastRewardFraction = 19; + // map of (topic, forecaster) -> ratio of forecaster score + repeated TopicIdActorIdDec previousForecasterScoreRatio = 20; + + /// STAKING + + // total sum stake of all stakers on the network + string totalStake = 21 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + // for every topic, how much total stake does that topic have accumulated? + repeated TopicIdAndInt topicStake = 22; + // stake reputer placed in topic + delegate stake placed in them, + // signalling their total authority on the topic + // (topic Id, reputer) -> stake from reputer on self + stakeFromDelegatorsUponReputer + repeated TopicIdActorIdInt stakeReputerAuthority = 23; + // map of (topic id, delegator) -> total amount of stake in that topic placed by that delegator + repeated TopicIdActorIdInt stakeSumFromDelegator = 24; + // map of (topic id, delegator, reputer) -> amount of stake that has been placed by that delegator on that target + repeated TopicIdDelegatorReputerDelegatorInfo delegatedStakes = 25; + // map of (topic id, reputer) -> total amount of stake that has been placed on that reputer by delegators + repeated TopicIdActorIdInt stakeFromDelegatorsUponReputer = 26; + // map of (topicId, reputer) -> share of delegate reward + repeated TopicIdActorIdDec delegateRewardPerShare = 27; + // stake removals are double indexed to avoid O(n) lookups when removing stake + // map of (blockHeight, topic, reputer) -> removal information for that reputer + repeated BlockHeightTopicIdReputerStakeRemovalInfo stakeRemovalsByBlock = 28; + // key set of (reputer, topic, blockHeight) to existence of a removal in the forwards map + repeated ActorIdTopicIdBlockHeight stakeRemovalsByActor = 29; + // delegate stake removals are double indexed to avoid O(n) lookups when removing stake + // map of (blockHeight, topic, delegator, reputer staked upon) -> (list of reputers delegated upon and info) to have + // stake removed at that block + repeated BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo delegateStakeRemovalsByBlock = 30; + // key set of (delegator, reputer, topicId, blockHeight) to existence of a removal in the forwards map + repeated DelegatorReputerTopicIdBlockHeight delegateStakeRemovalsByActor = 31; + + /// MISC GLOBAL STATE + // map of (topic, worker) -> inference + repeated TopicIdActorIdInference inferences = 32; + // map of (topic, worker) -> forecast[] + repeated TopicIdActorIdForecast forecasts = 33; + // map of worker id to node data about that worker + repeated LibP2pKeyAndOffchainNode workers = 34; + // map of reputer id to node data about that reputer + repeated LibP2pKeyAndOffchainNode reputers = 35; + // fee revenue collected by a topic over the course of the last reward cadence + repeated TopicIdAndInt topicFeeRevenue = 36; + // store previous weights for exponential moving average in rewards calc + repeated TopicIdAndDec previousTopicWeight = 37; + // map of (topic, block_height) -> Inference + repeated TopicIdBlockHeightInferences allInferences = 38; + // map of (topic, block_height) -> Forecast + repeated TopicIdBlockHeightForecasts allForecasts = 39; + // map of (topic, block_height) -> ReputerValueBundles (1 per reputer active at that time) + repeated TopicIdBlockHeightReputerValueBundles allLossBundles = 40; + // map of (topic, block_height) -> ValueBundle (1 network wide bundle per timestep) + repeated TopicIdBlockHeightValueBundles networkLossBundles = 41; + // Percentage of all rewards, paid out to staked reputers, during the previous reward cadence. Used by mint module + string previousPercentageRewardToStakedReputers = 42 + [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; + + /// NONCES + // map of (topic) -> unfulfilled nonces + repeated TopicIdAndNonces unfulfilledWorkerNonces = 43; + // map of (topic) -> unfulfilled nonces + repeated TopicIdAndReputerRequestNonces unfulfilledReputerNonces = 44; + + /// REGRETS + // map of (topic, worker) -> regret of worker from comparing loss of worker relative to loss of other inferers + repeated TopicIdActorIdTimeStampedValue latestInfererNetworkRegrets = 45; + // map of (topic, worker) -> regret of worker from comparing loss of worker relative to loss of other forecasters + repeated TopicIdActorIdTimeStampedValue latestForecasterNetworkRegrets = 46; + // map of (topic, forecaster, inferer) -> R^+_{ij_kk} regret of forecaster loss from comparing one-in loss with + // all network inferer (3rd index) regrets L_ij made under the regime of the one-in forecaster (2nd index) + repeated TopicIdActorIdActorIdTimeStampedValue latestOneInForecasterNetworkRegrets = 47; + // the forecaster (2nd index) regrets made under the regime of the same forecaster as a one-in forecaster + repeated TopicIdActorIdTimeStampedValue latestNaiveInfererNetworkRegrets = 48; + repeated TopicIdActorIdActorIdTimeStampedValue latestOneOutInfererInfererNetworkRegrets = 49; + repeated TopicIdActorIdActorIdTimeStampedValue latestOneOutInfererForecasterNetworkRegrets = 50; + repeated TopicIdActorIdActorIdTimeStampedValue latestOneOutForecasterInfererNetworkRegrets = 51; + repeated TopicIdActorIdActorIdTimeStampedValue latestOneOutForecasterForecasterNetworkRegrets = 52; + + /// WHITELISTS + repeated string core_team_addresses = 2; + + /// RECORD COMMITS + repeated TopicIdTimestampedActorNonce topicLastWorkerCommit = 53; + repeated TopicIdTimestampedActorNonce topicLastReputerCommit = 54; +} + +message TopicIdAndTopic { + uint64 TopicId = 1; + Topic Topic = 2; +} + +message TopicAndActorId { + uint64 TopicId = 1; + string ActorId = 2; +} + +message TopicIdAndBlockHeight { + uint64 TopicId = 1; + int64 BlockHeight = 2; +} + +message TopicIdBlockHeightScores { + uint64 TopicId = 1; + int64 BlockHeight = 2; + Scores Scores = 3; +} + +message TopicIdActorIdScore { + uint64 TopicId = 1; + string ActorId = 2; + Score Score = 3; +} + +message TopicIdActorIdListeningCoefficient { + uint64 TopicId = 1; + string ActorId = 2; + ListeningCoefficient ListeningCoefficient = 3; +} + +message TopicIdActorIdDec { + uint64 TopicId = 1; + string ActorId = 2; + string Dec = 3 + [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; +} + +message TopicIdAndInt { + uint64 TopicId = 1; + string Int = 2 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; +} + +message TopicIdActorIdInt { + uint64 TopicId = 1; + string ActorId = 2; + string Int = 3 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; +} + +message TopicIdDelegatorReputerDelegatorInfo { + uint64 TopicId = 1; + string Delegator = 2; + string Reputer = 3; + DelegatorInfo DelegatorInfo = 4; +} + +message BlockHeightTopicIdReputerStakeRemovalInfo { + int64 BlockHeight = 1; + uint64 TopicId = 2; + string Reputer = 3; + StakeRemovalInfo StakeRemovalInfo = 4; +} + +message ActorIdTopicIdBlockHeight { + string ActorId = 1; + uint64 TopicId = 2; + int64 BlockHeight = 3; +} + +message BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo { + int64 BlockHeight = 1; + uint64 TopicId = 2; + string Delegator = 3; + string Reputer = 4; + DelegateStakeRemovalInfo DelegateStakeRemovalInfo = 5; +} + +message DelegatorReputerTopicIdBlockHeight { + string Delegator = 1; + string Reputer = 2; + uint64 TopicId = 3; + int64 BlockHeight = 4; +} + +message TopicIdActorIdInference { + uint64 TopicId = 1; + string ActorId = 2; + Inference Inference = 3; +} + +message TopicIdActorIdForecast { + uint64 TopicId = 1; + string ActorId = 2; + Forecast Forecast = 3; +} + +message LibP2pKeyAndOffchainNode { + string LibP2pKey = 1; + OffchainNode OffchainNode = 2; +} + +message TopicIdAndDec { + uint64 TopicId = 1; + string Dec = 2 + [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; +} + +message TopicIdBlockHeightInferences { + uint64 TopicId = 1; + int64 BlockHeight = 2; + Inferences Inferences = 3; +} + +message TopicIdBlockHeightForecasts { + uint64 TopicId = 1; + int64 BlockHeight = 2; + Forecasts Forecasts = 3; +} + +message TopicIdBlockHeightReputerValueBundles { + uint64 TopicId = 1; + int64 BlockHeight = 2; + ReputerValueBundles ReputerValueBundles = 3; +} + +message TopicIdBlockHeightValueBundles { + uint64 TopicId = 1; + int64 BlockHeight = 2; + ValueBundle ValueBundle = 3; +} + +message TopicIdAndNonces { + uint64 TopicId = 1; + Nonces Nonces = 2; +} + +message TopicIdAndReputerRequestNonces { + uint64 TopicId = 1; + ReputerRequestNonces ReputerRequestNonces = 2; +} + +message TopicIdActorIdTimeStampedValue { + uint64 TopicId = 1; + string ActorId = 2; + TimestampedValue TimestampedValue = 3; +} + +message TopicIdActorIdActorIdTimeStampedValue { + uint64 TopicId = 1; + string ActorId1 = 2; + string ActorId2 = 3; + TimestampedValue TimestampedValue = 4; +} + +message TopicIdTimestampedActorNonce { + uint64 TopicId = 1; + TimestampedActorNonce TimestampedActorNonce = 2; +} \ No newline at end of file diff --git a/x/emissions/proto/emissions/v1/inference.proto b/x/emissions/proto/emissions/v2/inference.proto similarity index 87% rename from x/emissions/proto/emissions/v1/inference.proto rename to x/emissions/proto/emissions/v2/inference.proto index c4557665a..5ef30148e 100644 --- a/x/emissions/proto/emissions/v1/inference.proto +++ b/x/emissions/proto/emissions/v2/inference.proto @@ -1,10 +1,10 @@ syntax = "proto3"; -package emissions.v1; +package emissions.v2; option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; import "gogoproto/gogo.proto"; -import "emissions/v1/nonce.proto"; +import "emissions/v2/nonce.proto"; message RegretInformedWeight { option (gogoproto.equal) = true; diff --git a/x/emissions/proto/emissions/v2/node.proto b/x/emissions/proto/emissions/v2/node.proto new file mode 100644 index 000000000..23eed92df --- /dev/null +++ b/x/emissions/proto/emissions/v2/node.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +package emissions.v2; + +option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; + +message OffchainNode { + reserved 1, 2, 5; + reserved "lib_p2p_key", "multi_address", "node_id"; + + string owner = 3; + string node_address = 4; +} \ No newline at end of file diff --git a/x/emissions/proto/emissions/v2/nonce.proto b/x/emissions/proto/emissions/v2/nonce.proto new file mode 100644 index 000000000..9342ed766 --- /dev/null +++ b/x/emissions/proto/emissions/v2/nonce.proto @@ -0,0 +1,26 @@ +syntax = "proto3"; +package emissions.v2; + +option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; + +import "gogoproto/gogo.proto"; + +message Nonce { + option (gogoproto.equal) = true; + int64 block_height = 1; // block height of the request +} + +message Nonces { + repeated Nonce nonces = 1; +} + +message ReputerRequestNonce { + option (gogoproto.equal) = true; + // the reputers should respond to the reputer request with losses for work + // found at this worker nonce + Nonce reputer_nonce = 1; +} + +message ReputerRequestNonces { + repeated ReputerRequestNonce nonces = 1; +} diff --git a/x/emissions/proto/emissions/v1/params.proto b/x/emissions/proto/emissions/v2/params.proto similarity index 90% rename from x/emissions/proto/emissions/v1/params.proto rename to x/emissions/proto/emissions/v2/params.proto index a2c6effae..60fa56b59 100644 --- a/x/emissions/proto/emissions/v1/params.proto +++ b/x/emissions/proto/emissions/v2/params.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package emissions.v1; +package emissions.v2; option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; @@ -123,4 +123,16 @@ message Params { (gogoproto.nullable) = false ]; // we no stop dripping from the topic's effective revenue when the topic's // effective revenue is below this + uint64 half_max_process_stake_removals_end_block = + 42; // max amount of stake removals to process in an ABCI end block. Applied twice once for stakeRemovals and + // once for DelegateStakeRemovals, so actual max is this number times two + string epsilon_safe_div = 43 + [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; + /// a small tolerance quantity used to cap division by zero + string data_sending_fee = 44 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; // payload sending fee for reputer or worker } diff --git a/x/emissions/proto/emissions/v1/query.proto b/x/emissions/proto/emissions/v2/query.proto similarity index 78% rename from x/emissions/proto/emissions/v1/query.proto rename to x/emissions/proto/emissions/v2/query.proto index f0e3db3c8..557ab9a46 100644 --- a/x/emissions/proto/emissions/v1/query.proto +++ b/x/emissions/proto/emissions/v2/query.proto @@ -1,412 +1,465 @@ syntax = "proto3"; -package emissions.v1; +package emissions.v2; option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; import "cosmos/base/query/v1beta1/pagination.proto"; -import "emissions/v1/types.proto"; +import "emissions/v2/types.proto"; import "google/api/annotations.proto"; import "cosmos/query/v1/query.proto"; import "amino/amino.proto"; import "gogoproto/gogo.proto"; import "cosmos_proto/cosmos.proto"; -import "emissions/v1/params.proto"; -import "emissions/v1/node.proto"; -import "emissions/v1/worker.proto"; -import "emissions/v1/reputer.proto"; -import "emissions/v1/nonce.proto"; -import "emissions/v1/topic.proto"; -import "emissions/v1/stake.proto"; -import "emissions/v1/inference.proto"; -import "emissions/v1/score.proto"; +import "emissions/v2/params.proto"; +import "emissions/v2/node.proto"; +import "emissions/v2/worker.proto"; +import "emissions/v2/reputer.proto"; +import "emissions/v2/nonce.proto"; +import "emissions/v2/topic.proto"; +import "emissions/v2/stake.proto"; +import "emissions/v2/inference.proto"; +import "emissions/v2/score.proto"; // Msg defines the module Msg service. service Query { // Params returns the module parameters. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/emissions/v1/params"; + option (google.api.http).get = "/emissions/v2/params"; } rpc GetNextTopicId(QueryNextTopicIdRequest) returns (QueryNextTopicIdResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/next_topic_id"; + option (google.api.http).get = "/emissions/v2/next_topic_id"; } rpc GetTopic(QueryTopicRequest) returns (QueryTopicResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/topics/{topic_id}"; + option (google.api.http).get = "/emissions/v2/topics/{topic_id}"; } rpc GetActiveTopics(QueryActiveTopicsRequest) returns (QueryActiveTopicsResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/active_topics"; + option (google.api.http).get = "/emissions/v2/active_topics"; } rpc GetWorkerLatestInferenceByTopicId(QueryWorkerLatestInferenceRequest) returns (QueryWorkerLatestInferenceResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/topics/{topic_id}/" + option (google.api.http).get = "/emissions/v2/topics/{topic_id}/" "workers/{worker_address}/latest_inference"; } rpc GetInferencesAtBlock(QueryInferencesAtBlockRequest) returns (QueryInferencesAtBlockResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/inferences/{topic_id}/{block_height}"; + option (google.api.http).get = "/emissions/v2/inferences/{topic_id}/{block_height}"; } rpc GetLatestTopicInferences(QueryLatestTopicInferencesRequest) returns (QueryLatestTopicInferencesResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/latest_inferences/{topic_id}"; + option (google.api.http).get = "/emissions/v2/latest_inferences/{topic_id}"; } rpc GetForecastsAtBlock(QueryForecastsAtBlockRequest) returns (QueryForecastsAtBlockResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/forecasts/{topic_id}/{block_height}"; + option (google.api.http).get = "/emissions/v2/forecasts/{topic_id}/{block_height}"; } rpc GetNetworkLossBundleAtBlock(QueryNetworkLossBundleAtBlockRequest) returns (QueryNetworkLossBundleAtBlockResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/network_loss/{topic_id}/{block_height}"; + option (google.api.http).get = "/emissions/v2/network_loss/{topic_id}/{block_height}"; } rpc GetTotalStake(QueryTotalStakeRequest) returns (QueryTotalStakeResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/total_stake"; + option (google.api.http).get = "/emissions/v2/total_stake"; } rpc GetReputerStakeInTopic(QueryReputerStakeInTopicRequest) returns (QueryReputerStakeInTopicResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/reputer_stake/{address}/{topic_id}"; + option (google.api.http).get = "/emissions/v2/reputer_stake/{address}/{topic_id}"; } rpc GetMultiReputerStakeInTopic(QueryMultiReputerStakeInTopicRequest) returns (QueryMultiReputerStakeInTopicResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/reputers_stakes/{topic_id}"; + option (google.api.http).get = "/emissions/v2/reputers_stakes/{topic_id}"; } rpc GetStakeFromReputerInTopicInSelf(QueryStakeFromReputerInTopicInSelfRequest) returns (QueryStakeFromReputerInTopicInSelfResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/reputer_stake_self/{reputer_address}/{topic_id}"; + option (google.api.http).get = "/emissions/v2/reputer_stake_self/{reputer_address}/{topic_id}"; } rpc GetDelegateStakeInTopicInReputer(QueryDelegateStakeInTopicInReputerRequest) returns (QueryDelegateStakeInTopicInReputerResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/reputer_delegate_stake/{reputer_address}/{topic_id}"; + option (google.api.http).get = "/emissions/v2/reputer_delegate_stake/{reputer_address}/{topic_id}"; } rpc GetStakeFromDelegatorInTopicInReputer(QueryStakeFromDelegatorInTopicInReputerRequest) returns (QueryStakeFromDelegatorInTopicInReputerResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/delegate_stake/{delegator_address}/{reputer_address}/" + option (google.api.http).get = "/emissions/v2/delegate_stake/{delegator_address}/{reputer_address}/" "{topic_id}"; } rpc GetStakeFromDelegatorInTopic(QueryStakeFromDelegatorInTopicRequest) returns (QueryStakeFromDelegatorInTopicResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/delegate_stake/{delegator_address}/{topic_id}"; + option (google.api.http).get = "/emissions/v2/delegate_stake/{delegator_address}/{topic_id}"; } rpc GetTopicStake(QueryTopicStakeRequest) returns (QueryTopicStakeResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/stake/{topic_id}"; + option (google.api.http).get = "/emissions/v2/stake/{topic_id}"; } - rpc GetStakeRemovalsForBlock(QueryStakeRemovalsForBlockRequest) returns (QueryStakeRemovalsForBlockResponse) { + rpc GetStakeRemovalsUpUntilBlock(QueryStakeRemovalsUpUntilBlockRequest) + returns (QueryStakeRemovalsUpUntilBlockResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/stake_removals/{block_height}"; + option (google.api.http).get = "/emissions/v2/stake_removals/{block_height}"; } - rpc GetDelegateStakeRemovalsForBlock(QueryDelegateStakeRemovalsForBlockRequest) - returns (QueryDelegateStakeRemovalsForBlockResponse) { + rpc GetDelegateStakeRemovalsUpUntilBlock(QueryDelegateStakeRemovalsUpUntilBlockRequest) + returns (QueryDelegateStakeRemovalsUpUntilBlockResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/delegate_stake_removals/{block_height}"; + option (google.api.http).get = "/emissions/v2/delegate_stake_removals/{block_height}"; } rpc GetStakeRemovalInfo(QueryStakeRemovalInfoRequest) returns (QueryStakeRemovalInfoResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/stake_removal/{topic_id}/{reputer}"; + option (google.api.http).get = "/emissions/v2/stake_removal/{topic_id}/{reputer}"; } rpc GetDelegateStakeRemovalInfo(QueryDelegateStakeRemovalInfoRequest) returns (QueryDelegateStakeRemovalInfoResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/delegate_stake_removal/{topic_id}/{delegator}/{reputer}"; + option (google.api.http).get = "/emissions/v2/delegate_stake_removal/{topic_id}/{delegator}/{reputer}"; } rpc GetWorkerNodeInfo(QueryWorkerNodeInfoRequest) returns (QueryWorkerNodeInfoResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/worker/{libp2p_key}"; + option (google.api.http).get = "/emissions/v2/worker/{address}"; } rpc GetReputerNodeInfo(QueryReputerNodeInfoRequest) returns (QueryReputerNodeInfoResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/reputer/{libp2p_key}"; - } - - rpc GetWorkerAddressByP2PKey(QueryWorkerAddressByP2PKeyRequest) returns (QueryWorkerAddressByP2PKeyResponse) { - option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/worker_address/{libp2p_key}"; - } - - rpc GetReputerAddressByP2PKey(QueryReputerAddressByP2PKeyRequest) returns (QueryReputerAddressByP2PKeyResponse) { - option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/reputer_address/{libp2p_key}"; + option (google.api.http).get = "/emissions/v2/reputer/{address}"; } rpc IsWorkerRegisteredInTopicId(QueryIsWorkerRegisteredInTopicIdRequest) returns (QueryIsWorkerRegisteredInTopicIdResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/worker_registered/{topic_id}/{address}"; + option (google.api.http).get = "/emissions/v2/worker_registered/{topic_id}/{address}"; } rpc IsReputerRegisteredInTopicId(QueryIsReputerRegisteredInTopicIdRequest) returns (QueryIsReputerRegisteredInTopicIdResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/reputer_registered/{topic_id}/{address}"; + option (google.api.http).get = "/emissions/v2/reputer_registered/{topic_id}/{address}"; } rpc GetNetworkInferencesAtBlock(QueryNetworkInferencesAtBlockRequest) returns (QueryNetworkInferencesAtBlockResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/network_inferences/{topic_id}/last_inference/" + option (google.api.http).get = "/emissions/v2/network_inferences/{topic_id}/last_inference/" "{block_height_last_inference}/last_reward/{block_height_last_reward}"; } rpc GetLatestNetworkInference(QueryLatestNetworkInferencesRequest) returns (QueryLatestNetworkInferencesResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/network_inferences/{topic_id}"; + option (google.api.http).get = "/emissions/v2/network_inferences/{topic_id}"; } rpc GetLatestAvailableNetworkInference(QueryLatestNetworkInferencesRequest) returns (QueryLatestNetworkInferencesResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/network_inferences/{topic_id}"; + option (google.api.http).get = "/emissions/v2/network_inferences/{topic_id}"; } rpc IsWorkerNonceUnfulfilled(QueryIsWorkerNonceUnfulfilledRequest) returns (QueryIsWorkerNonceUnfulfilledResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/is_worker_nonce_unfulfilled/{topic_id}/{block_height}"; + option (google.api.http).get = "/emissions/v2/is_worker_nonce_unfulfilled/{topic_id}/{block_height}"; } rpc IsReputerNonceUnfulfilled(QueryIsReputerNonceUnfulfilledRequest) returns (QueryIsReputerNonceUnfulfilledResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/is_reputer_nonce_unfulfilled/{topic_id}/{block_height}"; + option (google.api.http).get = "/emissions/v2/is_reputer_nonce_unfulfilled/{topic_id}/{block_height}"; } rpc GetUnfulfilledWorkerNonces(QueryUnfulfilledWorkerNoncesRequest) returns (QueryUnfulfilledWorkerNoncesResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/unfulfilled_worker_nonces/{topic_id}"; + option (google.api.http).get = "/emissions/v2/unfulfilled_worker_nonces/{topic_id}"; } rpc GetUnfulfilledReputerNonces(QueryUnfulfilledReputerNoncesRequest) returns (QueryUnfulfilledReputerNoncesResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/unfulfilled_reputer_nonces/{topic_id}"; + option (google.api.http).get = "/emissions/v2/unfulfilled_reputer_nonces/{topic_id}"; } rpc GetInfererNetworkRegret(QueryInfererNetworkRegretRequest) returns (QueryInfererNetworkRegretResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/inferer_network_regret/{topic_id}/{actor_id}"; + option (google.api.http).get = "/emissions/v2/inferer_network_regret/{topic_id}/{actor_id}"; } rpc GetForecasterNetworkRegret(QueryForecasterNetworkRegretRequest) returns (QueryForecasterNetworkRegretResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/forecaster_network_regret/{topic_id}/{worker}"; + option (google.api.http).get = "/emissions/v2/forecaster_network_regret/{topic_id}/{worker}"; } rpc GetOneInForecasterNetworkRegret(QueryOneInForecasterNetworkRegretRequest) returns (QueryOneInForecasterNetworkRegretResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/one_in_forecaster_network_regret/{topic_id}/{forecaster}/{inferer}"; - } - - rpc GetOneInForecasterSelfNetworkRegret(QueryOneInForecasterSelfNetworkRegretRequest) - returns (QueryOneInForecasterSelfNetworkRegretResponse) { - option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/one_in_forecaster_self_network_regret/{topic_id}/{forecaster}"; + option (google.api.http).get = "/emissions/v2/one_in_forecaster_network_regret/{topic_id}/" + "{forecaster}/{inferer}"; } rpc IsWhitelistAdmin(QueryIsWhitelistAdminRequest) returns (QueryIsWhitelistAdminResponse) { - option (google.api.http).get = "/emissions/v1/whitelist_admin/{address}"; + option (google.api.http).get = "/emissions/v2/whitelist_admin/{address}"; } rpc GetTopicLastWorkerCommitInfo(QueryTopicLastCommitRequest) returns (QueryTopicLastCommitResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/topic_last_commit/{topic_id}"; + option (google.api.http).get = "/emissions/v2/topic_last_commit/{topic_id}"; } rpc GetTopicLastReputerCommitInfo(QueryTopicLastCommitRequest) returns (QueryTopicLastCommitResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/topic_last_commit/{topic_id}"; + option (google.api.http).get = "/emissions/v2/topic_last_commit/{topic_id}"; } rpc GetTopicRewardNonce(QueryTopicRewardNonceRequest) returns (QueryTopicRewardNonceResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/topic_reward_nonce/{topic_id}"; + option (google.api.http).get = "/emissions/v2/topic_reward_nonce/{topic_id}"; } rpc GetReputerLossBundlesAtBlock(QueryReputerLossBundlesAtBlockRequest) returns (QueryReputerLossBundlesAtBlockResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/reputer_loss_bundles/{topic_id}/{block_height}"; + option (google.api.http).get = "/emissions/v2/reputer_loss_bundles/{topic_id}/{block_height}"; } rpc GetStakeReputerAuthority(QueryStakeReputerAuthorityRequest) returns (QueryStakeReputerAuthorityResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/stake_reputer_authority/{topic_id}/{reputer}"; + option (google.api.http).get = "/emissions/v2/stake_reputer_authority/{topic_id}/{reputer}"; } rpc GetDelegateStakePlacement(QueryDelegateStakePlacementRequest) returns (QueryDelegateStakePlacementResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/delegate_stake_placement/{topic_id}/{delegator}/{target}"; + option (google.api.http).get = "/emissions/v2/delegate_stake_placement/" + "{topic_id}/{delegator}/{target}"; } rpc GetDelegateStakeUponReputer(QueryDelegateStakeUponReputerRequest) returns (QueryDelegateStakeUponReputerResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/delegate_stake_upon_reputer/{topic_id}/{target}"; + option (google.api.http).get = "/emissions/v2/delegate_stake_upon_reputer/{topic_id}/{target}"; } rpc GetDelegateRewardPerShare(QueryDelegateRewardPerShareRequest) returns (QueryDelegateRewardPerShareResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/delegate_reward_per_share/{topic_id}/{reputer}"; + option (google.api.http).get = "/emissions/v2/delegate_reward_per_share/{topic_id}/{reputer}"; } rpc GetStakeRemovalForReputerAndTopicId(QueryStakeRemovalForReputerAndTopicIdRequest) returns (QueryStakeRemovalForReputerAndTopicIdResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/stake_removal/{reputer}/{topic_id}"; + option (google.api.http).get = "/emissions/v2/stake_removal/{reputer}/{topic_id}"; } rpc GetDelegateStakeRemoval(QueryDelegateStakeRemovalRequest) returns (QueryDelegateStakeRemovalResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = - "/emissions/v1/delegate_stake_removal/{block_height}/{topic_id}/{delegator}/{reputer}"; + option (google.api.http).get = "/emissions/v2/delegate_stake_removal/{block_height}/{topic_id}/" + "{delegator}/{reputer}"; } rpc GetPreviousTopicWeight(QueryPreviousTopicWeightRequest) returns (QueryPreviousTopicWeightResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/previous_topic_weight/{topic_id}"; + option (google.api.http).get = "/emissions/v2/previous_topic_weight/{topic_id}"; } rpc TopicExists(QueryTopicExistsRequest) returns (QueryTopicExistsResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/topic_exists/{topic_id}"; + option (google.api.http).get = "/emissions/v2/topic_exists/{topic_id}"; } rpc IsTopicActive(QueryIsTopicActiveRequest) returns (QueryIsTopicActiveResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/is_topic_active/{topic_id}"; + option (google.api.http).get = "/emissions/v2/is_topic_active/{topic_id}"; } rpc GetTopicFeeRevenue(QueryTopicFeeRevenueRequest) returns (QueryTopicFeeRevenueResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/topic_fee_revenue/{topic_id}"; - } - - rpc GetChurnableTopics(QueryChurnableTopicsRequest) returns (QueryChurnableTopicsResponse) { - option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/churnable_topics"; + option (google.api.http).get = "/emissions/v2/topic_fee_revenue/{topic_id}"; } rpc GetRewardableTopics(QueryRewardableTopicsRequest) returns (QueryRewardableTopicsResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/rewardable_topics"; + option (google.api.http).get = "/emissions/v2/rewardable_topics"; } rpc GetLatestInfererScore(QueryLatestInfererScoreRequest) returns (QueryLatestInfererScoreResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/latest_inferer_score/{topic_id}/{inferer}"; + option (google.api.http).get = "/emissions/v2/latest_inferer_score/{topic_id}/{inferer}"; } rpc GetLatestForecasterScore(QueryLatestForecasterScoreRequest) returns (QueryLatestForecasterScoreResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/latest_forecaster_score/{topic_id}/{forecaster}"; + option (google.api.http).get = "/emissions/v2/latest_forecaster_score/{topic_id}/{forecaster}"; } rpc GetLatestReputerScore(QueryLatestReputerScoreRequest) returns (QueryLatestReputerScoreResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/latest_reputer_score/{topic_id}/{reputer}"; + option (google.api.http).get = "/emissions/v2/latest_reputer_score/{topic_id}/{reputer}"; } rpc GetInferenceScoresUntilBlock(QueryInferenceScoresUntilBlockRequest) returns (QueryInferenceScoresUntilBlockResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/inference_scores_until_block/{topic_id}/{block_height}"; + option (google.api.http).get = "/emissions/v2/inference_scores_until_block/{topic_id}/{block_height}"; } rpc GetWorkerInferenceScoresAtBlock(QueryWorkerInferenceScoresAtBlockRequest) returns (QueryWorkerInferenceScoresAtBlockResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/worker_inference_scores_at_block/{topic_id}/{block_height}"; + option (google.api.http).get = "/emissions/v2/worker_inference_scores_at_block/{topic_id}/" + "{block_height}"; } rpc GetForecastScoresUntilBlock(QueryForecastScoresUntilBlockRequest) returns (QueryForecastScoresUntilBlockResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/forecast_scores_until_block/{topic_id}/{block_height}"; + option (google.api.http).get = "/emissions/v2/forecast_scores_until_block/{topic_id}/{block_height}"; } rpc GetWorkerForecastScoresAtBlock(QueryWorkerForecastScoresAtBlockRequest) returns (QueryWorkerForecastScoresAtBlockResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/worker_forecast_scores_at_block/{topic_id}/{block_height}"; + option (google.api.http).get = "/emissions/v2/worker_forecast_scores_at_block/{topic_id}/" + "{block_height}"; } rpc GetReputersScoresAtBlock(QueryReputersScoresAtBlockRequest) returns (QueryReputersScoresAtBlockResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/reputers_scores_at_block/{topic_id}/{block_height}"; + option (google.api.http).get = "/emissions/v2/reputers_scores_at_block/{topic_id}/{block_height}"; } rpc GetListeningCoefficient(QueryListeningCoefficientRequest) returns (QueryListeningCoefficientResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/listening_coefficient/{topic_id}/{reputer}"; + option (google.api.http).get = "/emissions/v2/listening_coefficient/{topic_id}/{reputer}"; } rpc GetPreviousReputerRewardFraction(QueryPreviousReputerRewardFractionRequest) returns (QueryPreviousReputerRewardFractionResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/previous_reputer_reward_fraction/{topic_id}/{reputer}"; + option (google.api.http).get = "/emissions/v2/previous_reputer_reward_fraction/{topic_id}/{reputer}"; } rpc GetPreviousInferenceRewardFraction(QueryPreviousInferenceRewardFractionRequest) returns (QueryPreviousInferenceRewardFractionResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/previous_inference_reward_fraction/{topic_id}/{worker}"; + option (google.api.http).get = "/emissions/v2/previous_inference_reward_fraction/{topic_id}/{worker}"; } rpc GetPreviousForecastRewardFraction(QueryPreviousForecastRewardFractionRequest) returns (QueryPreviousForecastRewardFractionResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/previous_forecast_reward_fraction/{topic_id}/{worker}"; + option (google.api.http).get = "/emissions/v2/previous_forecast_reward_fraction/{topic_id}/{worker}"; } rpc GetPreviousPercentageRewardToStakedReputers(QueryPreviousPercentageRewardToStakedReputersRequest) returns (QueryPreviousPercentageRewardToStakedReputersResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/previous_percentage_reward_to_staked_reputers"; + option (google.api.http).get = "/emissions/v2/previous_percentage_reward_to_staked_reputers"; } rpc GetTotalRewardToDistribute(QueryTotalRewardToDistributeRequest) returns (QueryTotalRewardToDistributeResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/total_reward_to_distribute"; + option (google.api.http).get = "/emissions/v2/total_reward_to_distribute"; + } + + rpc GetNaiveInfererNetworkRegret(QueryNaiveInfererNetworkRegretRequest) + returns (QueryNaiveInfererNetworkRegretResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/emissions/v2/native_inferer_network_regret"; } - rpc GetTopicLastWorkerPayload(QueryTopicLastWorkerPayloadRequest) returns (QueryTopicLastWorkerPayloadResponse) { + rpc GetOneOutInfererInfererNetworkRegret(QueryOneOutInfererInfererNetworkRegretRequest) + returns (QueryOneOutInfererInfererNetworkRegretResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/topic_last_worker_payload/{topic_id}"; + option (google.api.http).get = "/emissions/v2/one_out_inferer_inferer_network_regret"; } - rpc GetTopicLastReputerPayload(QueryTopicLastReputerPayloadRequest) returns (QueryTopicLastReputerPayloadResponse) { + rpc GetOneOutInfererForecasterNetworkRegret(QueryOneOutInfererForecasterNetworkRegretRequest) + returns (QueryOneOutInfererForecasterNetworkRegretResponse) { option (cosmos.query.v1.module_query_safe) = true; - option (google.api.http).get = "/emissions/v1/topic_last_reputer_payload/{topic_id}"; + option (google.api.http).get = "/emissions/v2/one_out_inferer_forecaster_network_regret"; } + + rpc GetOneOutForecasterInfererNetworkRegret(QueryOneOutForecasterInfererNetworkRegretRequest) + returns (QueryOneOutForecasterInfererNetworkRegretResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/emissions/v2/one_out_forecaster_inferer_network_regret"; + } + + rpc GetOneOutForecasterForecasterNetworkRegret(QueryOneOutForecasterForecasterNetworkRegretRequest) + returns (QueryOneOutForecasterForecasterNetworkRegretResponse) { + option (cosmos.query.v1.module_query_safe) = true; + option (google.api.http).get = "/emissions/v2/one_out_forecaster_forecaster_network_regret"; + } +} + +message QueryNaiveInfererNetworkRegretRequest { + uint64 topic_id = 1; + string inferer = 2; +} + +message QueryNaiveInfererNetworkRegretResponse { + TimestampedValue regret = 1; +} + +message QueryOneOutInfererInfererNetworkRegretRequest { + uint64 topic_id = 1; + string one_out_inferer = 2; + string inferer = 3; +} + +message QueryOneOutInfererInfererNetworkRegretResponse { + TimestampedValue regret = 1; +} + +message QueryOneOutInfererForecasterNetworkRegretRequest { + uint64 topic_id = 1; + string one_out_inferer = 2; + string forecaster = 3; +} + +message QueryOneOutInfererForecasterNetworkRegretResponse { + TimestampedValue regret = 1; +} + +message QueryOneOutForecasterInfererNetworkRegretRequest { + uint64 topic_id = 1; + string one_out_forecaster = 2; + string inferer = 3; +} + +message QueryOneOutForecasterInfererNetworkRegretResponse { + TimestampedValue regret = 1; +} + +message QueryOneOutForecasterForecasterNetworkRegretRequest { + uint64 topic_id = 1; + string one_out_forecaster = 2; + string forecaster = 3; +} + +message QueryOneOutForecasterForecasterNetworkRegretResponse { + TimestampedValue regret = 1; } // QueryParamsRequest is the request type for the Query/Params RPC method. @@ -615,7 +668,10 @@ message QueryWorkerLatestInferenceResponse { } message QueryWorkerNodeInfoRequest { - string libp2p_key = 1; + reserved 1; + reserved "libp2p_key"; + + string address = 2; } message QueryWorkerNodeInfoResponse { @@ -623,29 +679,16 @@ message QueryWorkerNodeInfoResponse { } message QueryReputerNodeInfoRequest { - string libp2p_key = 1; + reserved 1; + reserved "libp2p_key"; + + string address = 2; } message QueryReputerNodeInfoResponse { OffchainNode node_info = 1; } -message QueryWorkerAddressByP2PKeyRequest { - string libp2p_key = 1; -} - -message QueryWorkerAddressByP2PKeyResponse { - string address = 1; -} - -message QueryReputerAddressByP2PKeyRequest { - string libp2p_key = 1; -} - -message QueryReputerAddressByP2PKeyResponse { - string address = 1; -} - message QueryNetworkInferencesAtBlockRequest { uint64 topic_id = 1; int64 block_height_last_inference = 2; @@ -709,15 +752,6 @@ message QueryOneInForecasterNetworkRegretResponse { TimestampedValue regret = 1; } -message QueryOneInForecasterSelfNetworkRegretRequest { - uint64 topic_id = 1; - string forecaster = 2; -} - -message QueryOneInForecasterSelfNetworkRegretResponse { - TimestampedValue regret = 1; -} - message QueryIsReputerNonceUnfulfilledRequest { uint64 topic_id = 1; int64 block_height = 2; @@ -770,19 +804,19 @@ message QueryIsWhitelistAdminResponse { bool is_admin = 1; } -message QueryStakeRemovalsForBlockRequest { +message QueryStakeRemovalsUpUntilBlockRequest { int64 block_height = 1; } -message QueryStakeRemovalsForBlockResponse { +message QueryStakeRemovalsUpUntilBlockResponse { repeated StakeRemovalInfo removals = 1; } -message QueryDelegateStakeRemovalsForBlockRequest { +message QueryDelegateStakeRemovalsUpUntilBlockRequest { int64 block_height = 1; } -message QueryDelegateStakeRemovalsForBlockResponse { +message QueryDelegateStakeRemovalsUpUntilBlockResponse { repeated DelegateStakeRemovalInfo removals = 1; } @@ -937,12 +971,6 @@ message QueryTopicFeeRevenueResponse { ]; } -message QueryChurnableTopicsRequest {} - -message QueryChurnableTopicsResponse { - repeated uint64 churnable_topic_ids = 1; -} - message QueryRewardableTopicsRequest {} message QueryRewardableTopicsResponse { @@ -1075,19 +1103,3 @@ message QueryTotalRewardToDistributeResponse { string total_reward = 1 [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; } - -message QueryTopicLastWorkerPayloadRequest { - uint64 topic_id = 1; -} - -message QueryTopicLastWorkerPayloadResponse { - TimestampedActorNonce payload = 1; -} - -message QueryTopicLastReputerPayloadRequest { - uint64 topic_id = 1; -} - -message QueryTopicLastReputerPayloadResponse { - TimestampedActorNonce payload = 1; -} diff --git a/x/emissions/proto/emissions/v2/reputer.proto b/x/emissions/proto/emissions/v2/reputer.proto new file mode 100644 index 000000000..e91393d5c --- /dev/null +++ b/x/emissions/proto/emissions/v2/reputer.proto @@ -0,0 +1,77 @@ +syntax = "proto3"; +package emissions.v2; + +option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; + +import "gogoproto/gogo.proto"; +import "emissions/v2/nonce.proto"; + +message WorkerAttributedValue { + option (gogoproto.equal) = true; + + string worker = 1; // worker who created the value + string value = 2 + [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; +} + +message WithheldWorkerAttributedValue { + option (gogoproto.equal) = true; + + string worker = 1; + string value = 2 + [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; +} + +message OneOutInfererForecasterValues { + option (gogoproto.equal) = true; + string forecaster = 3; + repeated WithheldWorkerAttributedValue one_out_inferer_values = 4; +} + +// These losses and inferences are calculated per reputer or by the network +// The `m`s in the comments below exist for when they're made by reputers, +// but they may be absent implying that they were made by the network +message ValueBundle { + option (gogoproto.equal) = true; + + uint64 topic_id = 1; + ReputerRequestNonce reputer_request_nonce = 2; + string reputer = 3; + bytes extra_data = 4; + // R_im || log10 L_im || I_i + string combined_value = 5 + [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; + // R_ijm || log10 L_ijm || I_ij + repeated WorkerAttributedValue inferer_values = 6; + // R_ikm || log10 L_ikm || I_ik + repeated WorkerAttributedValue forecaster_values = 7; + // R^-_im || log10 L^-_im || I^-_i + string naive_value = 8 + [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; + // Note: forecast-implied inferences are recomputed for each left-out + // inference + repeated WithheldWorkerAttributedValue one_out_inferer_values = 9; + // R^-_ilm || log10 L^-_ilm || I^-_il where l = any k + repeated WithheldWorkerAttributedValue one_out_forecaster_values = 10; + // R^+_ikm || log10 L^+_ikm || I^+_ik + // aka one_in_forecaster_values because equivalent to using only one + // forecast-implied inference + repeated WorkerAttributedValue one_in_forecaster_values = 11; + // R^-_ilm || log10 L^-_ilm || I^-_il where l = any j + // log10 L^-_j'ikm || I^-_j'ik + repeated OneOutInfererForecasterValues one_out_inferer_forecaster_values = 12; +} + +// For when the bundle is computed on a per-reputer basis (ie.. if there is an +// index `m` in the above) +message ReputerValueBundle { + option (gogoproto.equal) = true; + + ValueBundle value_bundle = 1; + bytes signature = 2; + string pubkey = 3; +} + +message ReputerValueBundles { + repeated ReputerValueBundle reputer_value_bundles = 1; +} diff --git a/x/emissions/proto/emissions/v1/score.proto b/x/emissions/proto/emissions/v2/score.proto similarity index 95% rename from x/emissions/proto/emissions/v1/score.proto rename to x/emissions/proto/emissions/v2/score.proto index 4d1aa4f4e..7d6996ffa 100644 --- a/x/emissions/proto/emissions/v1/score.proto +++ b/x/emissions/proto/emissions/v2/score.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package emissions.v1; +package emissions.v2; option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; diff --git a/x/emissions/proto/emissions/v1/stake.proto b/x/emissions/proto/emissions/v2/stake.proto similarity index 99% rename from x/emissions/proto/emissions/v1/stake.proto rename to x/emissions/proto/emissions/v2/stake.proto index 513ad64a2..35e9c219e 100644 --- a/x/emissions/proto/emissions/v1/stake.proto +++ b/x/emissions/proto/emissions/v2/stake.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package emissions.v1; +package emissions.v2; option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; diff --git a/x/emissions/proto/emissions/v2/topic.proto b/x/emissions/proto/emissions/v2/topic.proto new file mode 100644 index 000000000..86e8a1111 --- /dev/null +++ b/x/emissions/proto/emissions/v2/topic.proto @@ -0,0 +1,51 @@ +syntax = "proto3"; +package emissions.v2; + +option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; + +import "cosmos_proto/cosmos.proto"; +import "amino/amino.proto"; +import "gogoproto/gogo.proto"; +import "emissions/v2/nonce.proto"; + +message Topic { + reserved 4, 6, 7, 11; + reserved "loss_logic", "inference_logic", "inference_method", "default_arg"; + + uint64 id = 1; + string creator = 2; + string metadata = 3; + string loss_method = 5; + int64 epoch_last_ended = 8; + int64 epoch_length = 9; + int64 ground_truth_lag = 10; + string p_norm = 12 + [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; + string alpha_regret = 13 + [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; + bool allow_negative = 14; + string epsilon = 15 + [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; + string initial_regret = 16 + [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; + int64 worker_submission_window = 17; +} + +message TopicList { + repeated Topic topics = 1; +} + +message TimestampedActorNonce { + reserved 2; + reserved "actor"; + + option (gogoproto.equal) = true; + + int64 block_height = 1; // height at which value calculated or received + Nonce nonce = 3; +} + +message TopicIds { + option (gogoproto.equal) = true; + repeated uint64 topic_ids = 1; +} diff --git a/x/emissions/proto/emissions/v1/tx.proto b/x/emissions/proto/emissions/v2/tx.proto similarity index 89% rename from x/emissions/proto/emissions/v1/tx.proto rename to x/emissions/proto/emissions/v2/tx.proto index 3fe37bb88..d04acacc6 100644 --- a/x/emissions/proto/emissions/v1/tx.proto +++ b/x/emissions/proto/emissions/v2/tx.proto @@ -1,16 +1,16 @@ syntax = "proto3"; -package emissions.v1; +package emissions.v2; option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; import "cosmos/msg/v1/msg.proto"; import "gogoproto/gogo.proto"; import "amino/amino.proto"; -import "emissions/v1/types.proto"; +import "emissions/v2/types.proto"; import "cosmos_proto/cosmos.proto"; -import "emissions/v1/nonce.proto"; -import "emissions/v1/reputer.proto"; -import "emissions/v1/worker.proto"; +import "emissions/v2/nonce.proto"; +import "emissions/v2/reputer.proto"; +import "emissions/v2/worker.proto"; // Msg defines the module Msg service. service Msg { @@ -18,16 +18,12 @@ service Msg { rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse); - rpc InsertBulkWorkerPayload(MsgInsertBulkWorkerPayload) returns (MsgInsertBulkWorkerPayloadResponse); - rpc CreateNewTopic(MsgCreateNewTopic) returns (MsgCreateNewTopicResponse); rpc Register(MsgRegister) returns (MsgRegisterResponse); rpc RemoveRegistration(MsgRemoveRegistration) returns (MsgRemoveRegistrationResponse); - rpc InsertBulkReputerPayload(MsgInsertBulkReputerPayload) returns (MsgInsertBulkReputerPayloadResponse); - rpc AddStake(MsgAddStake) returns (MsgAddStakeResponse); rpc RemoveStake(MsgRemoveStake) returns (MsgRemoveStakeResponse); @@ -47,6 +43,10 @@ service Msg { rpc AddToWhitelistAdmin(MsgAddToWhitelistAdmin) returns (MsgAddToWhitelistAdminResponse); rpc RemoveFromWhitelistAdmin(MsgRemoveFromWhitelistAdmin) returns (MsgRemoveFromWhitelistAdminResponse); + + rpc InsertWorkerPayload(MsgInsertWorkerPayload) returns (MsgInsertWorkerPayloadResponse); + + rpc InsertReputerPayload(MsgInsertReputerPayload) returns (MsgInsertReputerPayloadResponse); } /// PARAMS @@ -132,6 +132,15 @@ message OptionalParams { [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; repeated string min_effective_topic_revenue = 41 [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; + repeated uint64 half_max_process_stake_removals_end_block = 42; + repeated string data_sending_fee = 43 [ + (cosmos_proto.scalar) = "cosmos.Int", + (gogoproto.customtype) = "cosmossdk.io/math.Int", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; + repeated string epsilon_safe_div = 44 + [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; } message MsgUpdateParams { @@ -145,19 +154,17 @@ message MsgUpdateParamsResponse {} /// TOPICS message MsgCreateNewTopic { + reserved 3, 5, 6, 9; + reserved "loss_logic", "inference_logic", "inference_method", "default_arg"; + option (cosmos.msg.v1.signer) = "creator"; // creator is the message sender. string creator = 1; - string metadata = 2; - string loss_logic = 3; string loss_method = 4; - string inference_logic = 5; - string inference_method = 6; int64 epoch_length = 7; int64 ground_truth_lag = 8; - string default_arg = 9; string p_norm = 10 [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; string alpha_regret = 11 @@ -165,6 +172,7 @@ message MsgCreateNewTopic { bool allow_negative = 12; string epsilon = 13 [(gogoproto.customtype) = "github.com/allora-network/allora-chain/math.Dec", (gogoproto.nullable) = false]; + int64 worker_submission_window = 14; } message MsgCreateNewTopicResponse { @@ -173,36 +181,32 @@ message MsgCreateNewTopicResponse { /// Worker and Reputer Interface -message MsgInsertBulkReputerPayload { +message MsgInsertReputerPayload { option (cosmos.msg.v1.signer) = "sender"; string sender = 1; - ReputerRequestNonce reputer_request_nonce = 2; - uint64 topic_id = 3; - repeated ReputerValueBundle reputer_value_bundles = 4; + ReputerValueBundle reputer_value_bundle = 2; } -message MsgInsertBulkReputerPayloadResponse {} +message MsgInsertReputerPayloadResponse {} -message MsgInsertBulkWorkerPayload { +message MsgInsertWorkerPayload { option (cosmos.msg.v1.signer) = "sender"; string sender = 1; - Nonce nonce = 2; - uint64 topic_id = 3; - repeated WorkerDataBundle worker_data_bundles = 4; + WorkerDataBundle worker_data_bundle = 2; } -message MsgInsertBulkWorkerPayloadResponse {} - +message MsgInsertWorkerPayloadResponse {} /// Inference Node Registration message MsgRegister { + reserved 2, 3; + reserved "lib_p2p_key", "multi_address"; + option (cosmos.msg.v1.signer) = "sender"; string sender = 1; - string lib_p2p_key = 2; - string multi_address = 3; uint64 topic_id = 4; string owner = 5; bool is_reputer = 6; diff --git a/x/emissions/proto/emissions/v1/types.proto b/x/emissions/proto/emissions/v2/types.proto similarity index 95% rename from x/emissions/proto/emissions/v1/types.proto rename to x/emissions/proto/emissions/v2/types.proto index 0dc9c5b7f..301a7787e 100644 --- a/x/emissions/proto/emissions/v1/types.proto +++ b/x/emissions/proto/emissions/v2/types.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package emissions.v1; +package emissions.v2; option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; diff --git a/x/emissions/proto/emissions/v1/worker.proto b/x/emissions/proto/emissions/v2/worker.proto similarity index 87% rename from x/emissions/proto/emissions/v1/worker.proto rename to x/emissions/proto/emissions/v2/worker.proto index 1b2a4015c..efac30779 100644 --- a/x/emissions/proto/emissions/v1/worker.proto +++ b/x/emissions/proto/emissions/v2/worker.proto @@ -1,9 +1,10 @@ syntax = "proto3"; -package emissions.v1; +package emissions.v2; option go_package = "github.com/allora-network/allora-chain/x/emissions/types"; import "gogoproto/gogo.proto"; +import "emissions/v2/nonce.proto"; message TimestampedValue { option (gogoproto.equal) = true; @@ -59,9 +60,11 @@ message InferenceForecastBundle { message WorkerDataBundle { option (gogoproto.equal) = true; string worker = 1; - InferenceForecastBundle inference_forecasts_bundle = 2; - bytes inferences_forecasts_bundle_signature = 3; - string pubkey = 4; + Nonce nonce = 2; + uint64 topic_id = 3; + InferenceForecastBundle inference_forecasts_bundle = 4; + bytes inferences_forecasts_bundle_signature = 5; + string pubkey = 6; } message WorkerDataBundles { // This will be in the incoming message, sent by leader diff --git a/x/emissions/types/codec.go b/x/emissions/types/codec.go index 0f5aa9837..7990eaa23 100644 --- a/x/emissions/types/codec.go +++ b/x/emissions/types/codec.go @@ -2,15 +2,10 @@ package types import ( types "github.com/cosmos/cosmos-sdk/codec/types" - sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/msgservice" ) // RegisterInterfaces registers the interfaces types with the interface registry. func RegisterInterfaces(registry types.InterfaceRegistry) { - registry.RegisterImplementations((*sdk.Msg)(nil), - &MsgInsertBulkReputerPayload{}, - &MsgInsertBulkWorkerPayload{}, - ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) } diff --git a/x/emissions/types/errors.go b/x/emissions/types/errors.go index 4c63f1ab8..87563acca 100644 --- a/x/emissions/types/errors.go +++ b/x/emissions/types/errors.go @@ -3,18 +3,20 @@ package types import "cosmossdk.io/errors" var ( - ErrTopicReputerStakeDoesNotExist = errors.Register(ModuleName, 1, "topic reputer stake does not exist") - ErrIntegerUnderflowTopicReputerStake = errors.Register(ModuleName, 2, "integer underflow for topic reputer stake") - ErrIntegerUnderflowTopicStake = errors.Register(ModuleName, 3, "integer underflow for topic stake") - ErrIntegerUnderflowTotalStake = errors.Register(ModuleName, 4, "integer underflow for total stake") - ErrIterationLengthDoesNotMatch = errors.Register(ModuleName, 5, "iteration length does not match") - ErrInvalidTopicId = errors.Register(ModuleName, 6, "invalid topic ID") - ErrReputerAlreadyRegisteredInTopic = errors.Register(ModuleName, 7, "reputer already registered in topic") - ErrAddressAlreadyRegisteredInATopic = errors.Register(ModuleName, 8, "address already registered in a topic") - ErrAddressIsNotRegisteredInAnyTopic = errors.Register(ModuleName, 9, "address is not registered in any topic") - ErrAddressIsNotRegisteredInThisTopic = errors.Register(ModuleName, 10, "address is not registered in this topic") - ErrInsufficientStakeToRegister = errors.Register(ModuleName, 11, "insufficient stake to register") - ErrLibP2PKeyRequired = errors.Register(ModuleName, 12, "libp2p key required") + // ERROR 1 IS RESERVED BY COSMOS-SDK PACKAGE + // also we don't use ErrTopicReputerStakeDoesNotExist + // ErrTopicReputerStakeDoesNotExist = errors.Register(ModuleName, 1, "topic reputer stake does not exist") + ErrIntegerUnderflowTopicReputerStake = errors.Register(ModuleName, 2, "integer underflow for topic reputer stake") + ErrIntegerUnderflowTopicStake = errors.Register(ModuleName, 3, "integer underflow for topic stake") + ErrIntegerUnderflowTotalStake = errors.Register(ModuleName, 4, "integer underflow for total stake") + ErrIterationLengthDoesNotMatch = errors.Register(ModuleName, 5, "iteration length does not match") + ErrInvalidTopicId = errors.Register(ModuleName, 6, "invalid topic ID") + ErrReputerAlreadyRegisteredInTopic = errors.Register(ModuleName, 7, "reputer already registered in topic") + ErrAddressAlreadyRegisteredInATopic = errors.Register(ModuleName, 8, "address already registered in a topic") + ErrAddressIsNotRegisteredInAnyTopic = errors.Register(ModuleName, 9, "address is not registered in any topic") + ErrAddressIsNotRegisteredInThisTopic = errors.Register(ModuleName, 10, "address is not registered in this topic") + ErrInsufficientStakeToRegister = errors.Register(ModuleName, 11, "insufficient stake to register") + // ErrLibP2PKeyRequired = errors.Register(ModuleName, 12, "libp2p key required") ErrAddressNotRegistered = errors.Register(ModuleName, 13, "address not registered") ErrInsufficientStakeToRemove = errors.Register(ModuleName, 14, "insufficient stake to remove") ErrBlockHeightNegative = errors.Register(ModuleName, 15, "block height negative") @@ -45,26 +47,35 @@ var ( ErrPhiCannotBeZero = errors.Register(ModuleName, 41, "phi: cannot be zero") ErrSumWeightsLessThanEta = errors.Register(ModuleName, 42, "sum weights less than eta") ErrSliceLengthMismatch = errors.Register(ModuleName, 43, "slice length mismatch") - ErrNonceAlreadyFulfilled = errors.Register(ModuleName, 44, "nonce already fulfilled") - ErrNonceStillUnfulfilled = errors.Register(ModuleName, 45, "nonce still unfulfilled") - ErrTopicCreatorNotEnoughDenom = errors.Register(ModuleName, 46, "topic creator does not have enough denom") - ErrSignatureVerificationFailed = errors.Register(ModuleName, 47, "signature verification was failed") - ErrTopicRegistrantNotEnoughDenom = errors.Register(ModuleName, 48, "topic registrant does not have enough denom") - ErrInsufficientDelegateStakeToRemove = errors.Register(ModuleName, 49, "insufficient delegate stake to remove") - ErrTopicMempoolAtCapacity = errors.Register(ModuleName, 50, "topic mempool at capacity") - ErrReceivedZeroAmount = errors.Register(ModuleName, 51, "received zero amount") - ErrInvalidValue = errors.Register(ModuleName, 52, "invalid value") - ErrQueryTooLarge = errors.Register(ModuleName, 53, "query is too large") - ErrFailedToSerializePayload = errors.Register(ModuleName, 54, "failed to serialize payload") - ErrNoValidBundles = errors.Register(ModuleName, 55, "no valid bundles found") - ErrInvalidReward = errors.Register(ModuleName, 56, "invalid reward") - ErrCantSelfDelegate = errors.Register(ModuleName, 57, "cant self delegate") - ErrValidationVersionEmpty = errors.Register(ModuleName, 58, "version cannot be empty") - ErrValidationVersionTooLong = errors.Register(ModuleName, 59, "version length cannot exceed 32 characters") - ErrValidationMustBeBetweenZeroAndOne = errors.Register(ModuleName, 61, "value must be between 0 and 1") - ErrValidationMustBeGreaterthanZero = errors.Register(ModuleName, 62, "value must be greater than 0") - ErrEmptyArray = errors.Register(ModuleName, 63, "empty array") - ErrStakeRemovalNotFound = errors.Register(ModuleName, 64, "No stake removal found") - ErrInvariantFailure = errors.Register(ModuleName, 65, "invariant failure") - ErrIntegerUnderflowReputerStakeAuthority = errors.Register(ModuleName, 66, "integer underflow for reputer stake authority") + // ErrNonceAlreadyFulfilled = errors.Register(ModuleName, 44, "nonce already fulfilled") + ErrNonceStillUnfulfilled = errors.Register(ModuleName, 45, "nonce still unfulfilled") + ErrTopicCreatorNotEnoughDenom = errors.Register(ModuleName, 46, "topic creator does not have enough denom") + ErrSignatureVerificationFailed = errors.Register(ModuleName, 47, "signature verification was failed") + ErrTopicRegistrantNotEnoughDenom = errors.Register(ModuleName, 48, "topic registrant does not have enough denom") + ErrInsufficientDelegateStakeToRemove = errors.Register(ModuleName, 49, "insufficient delegate stake to remove") + ErrTopicMempoolAtCapacity = errors.Register(ModuleName, 50, "topic mempool at capacity") + ErrReceivedZeroAmount = errors.Register(ModuleName, 51, "received zero amount") + ErrInvalidValue = errors.Register(ModuleName, 52, "invalid value") + ErrQueryTooLarge = errors.Register(ModuleName, 53, "query is too large") + ErrFailedToSerializePayload = errors.Register(ModuleName, 54, "failed to serialize payload") + ErrNoValidBundles = errors.Register(ModuleName, 55, "no valid bundles found") + ErrInvalidReward = errors.Register(ModuleName, 56, "invalid reward") + ErrCantSelfDelegate = errors.Register(ModuleName, 57, "cant self delegate") + ErrValidationVersionEmpty = errors.Register(ModuleName, 58, "version cannot be empty") + ErrValidationVersionTooLong = errors.Register(ModuleName, 59, "version length cannot exceed 32 characters") + ErrValidationMustBeBetweenZeroAndOne = errors.Register(ModuleName, 61, "value must be between 0 and 1") + ErrValidationMustBeGreaterthanZero = errors.Register(ModuleName, 62, "value must be greater than 0") + ErrEmptyArray = errors.Register(ModuleName, 63, "empty array") + ErrStakeRemovalNotFound = errors.Register(ModuleName, 64, "No stake removal found") + ErrInvariantFailure = errors.Register(ModuleName, 65, "invariant failure") + ErrIntegerUnderflowReputerStakeAuthority = errors.Register(ModuleName, 66, "integer underflow for reputer stake authority") + ErrWorkerNonceWindowNotAvailable = errors.Register(ModuleName, 67, "worker nonce window not available") + ErrReputerNonceWindowNotAvailable = errors.Register(ModuleName, 68, "reputer nonce window not available") + ErrNoValidInferences = errors.Register(ModuleName, 69, "no valid inferences found") + ErrNoValidReputations = errors.Register(ModuleName, 70, "no valid reputations found") + ErrInvalidWorkerData = errors.Register(ModuleName, 71, "worker data validation is failed") + ErrInvalidReputerData = errors.Register(ModuleName, 72, "reputer data validation is failed") + ErrDataSenderNotEnoughDenom = errors.Register(ModuleName, 73, "data sender does not have enough denom") + ErrGroundTruthLagTooBig = errors.Register(ModuleName, 74, "ground truth lag too big for epoch length") + ErrUnfulfilledNonceNotFound = errors.Register(ModuleName, 75, "unfulfilled nonce not found") ) diff --git a/x/emissions/types/events.pb.go b/x/emissions/types/events.pb.go index 255f0e6d4..ab2cb4e9f 100644 --- a/x/emissions/types/events.pb.go +++ b/x/emissions/types/events.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/events.proto +// source: emissions/v2/events.proto package types @@ -49,11 +49,11 @@ func (x ActorType) String() string { } func (ActorType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_5cc3b6a19d61d65b, []int{0} + return fileDescriptor_109abe3f296fbd2f, []int{0} } type EventScoresSet struct { - ActorType ActorType `protobuf:"varint,1,opt,name=actor_type,json=actorType,proto3,enum=emissions.v1.ActorType" json:"actor_type,omitempty"` + ActorType ActorType `protobuf:"varint,1,opt,name=actor_type,json=actorType,proto3,enum=emissions.v2.ActorType" json:"actor_type,omitempty"` TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` BlockHeight int64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` Addresses []string `protobuf:"bytes,4,rep,name=addresses,proto3" json:"addresses,omitempty"` @@ -64,7 +64,7 @@ func (m *EventScoresSet) Reset() { *m = EventScoresSet{} } func (m *EventScoresSet) String() string { return proto.CompactTextString(m) } func (*EventScoresSet) ProtoMessage() {} func (*EventScoresSet) Descriptor() ([]byte, []int) { - return fileDescriptor_5cc3b6a19d61d65b, []int{0} + return fileDescriptor_109abe3f296fbd2f, []int{0} } func (m *EventScoresSet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -122,7 +122,7 @@ func (m *EventScoresSet) GetAddresses() []string { } type EventRewardsSettled struct { - ActorType ActorType `protobuf:"varint,1,opt,name=actor_type,json=actorType,proto3,enum=emissions.v1.ActorType" json:"actor_type,omitempty"` + ActorType ActorType `protobuf:"varint,1,opt,name=actor_type,json=actorType,proto3,enum=emissions.v2.ActorType" json:"actor_type,omitempty"` TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` BlockHeight int64 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` Addresses []string `protobuf:"bytes,4,rep,name=addresses,proto3" json:"addresses,omitempty"` @@ -133,7 +133,7 @@ func (m *EventRewardsSettled) Reset() { *m = EventRewardsSettled{} } func (m *EventRewardsSettled) String() string { return proto.CompactTextString(m) } func (*EventRewardsSettled) ProtoMessage() {} func (*EventRewardsSettled) Descriptor() ([]byte, []int) { - return fileDescriptor_5cc3b6a19d61d65b, []int{1} + return fileDescriptor_109abe3f296fbd2f, []int{1} } func (m *EventRewardsSettled) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -200,7 +200,7 @@ func (m *EventNetworkLossSet) Reset() { *m = EventNetworkLossSet{} } func (m *EventNetworkLossSet) String() string { return proto.CompactTextString(m) } func (*EventNetworkLossSet) ProtoMessage() {} func (*EventNetworkLossSet) Descriptor() ([]byte, []int) { - return fileDescriptor_5cc3b6a19d61d65b, []int{2} + return fileDescriptor_109abe3f296fbd2f, []int{2} } func (m *EventNetworkLossSet) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -251,44 +251,44 @@ func (m *EventNetworkLossSet) GetValueBundle() *ValueBundle { } func init() { - proto.RegisterEnum("emissions.v1.ActorType", ActorType_name, ActorType_value) - proto.RegisterType((*EventScoresSet)(nil), "emissions.v1.EventScoresSet") - proto.RegisterType((*EventRewardsSettled)(nil), "emissions.v1.EventRewardsSettled") - proto.RegisterType((*EventNetworkLossSet)(nil), "emissions.v1.EventNetworkLossSet") + proto.RegisterEnum("emissions.v2.ActorType", ActorType_name, ActorType_value) + proto.RegisterType((*EventScoresSet)(nil), "emissions.v2.EventScoresSet") + proto.RegisterType((*EventRewardsSettled)(nil), "emissions.v2.EventRewardsSettled") + proto.RegisterType((*EventNetworkLossSet)(nil), "emissions.v2.EventNetworkLossSet") } -func init() { proto.RegisterFile("emissions/v1/events.proto", fileDescriptor_5cc3b6a19d61d65b) } +func init() { proto.RegisterFile("emissions/v2/events.proto", fileDescriptor_109abe3f296fbd2f) } -var fileDescriptor_5cc3b6a19d61d65b = []byte{ +var fileDescriptor_109abe3f296fbd2f = []byte{ // 450 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x93, 0x4f, 0x6f, 0xd3, 0x30, 0x18, 0xc6, 0xe3, 0x76, 0xac, 0xd4, 0xad, 0xaa, 0xc9, 0x20, 0x91, 0x56, 0x28, 0x2b, 0x3d, 0x55, - 0x48, 0x24, 0xda, 0x10, 0x7f, 0x0e, 0x5c, 0x56, 0xc8, 0xc4, 0x24, 0xb4, 0x81, 0x3b, 0x38, 0x70, + 0x48, 0x24, 0x52, 0x11, 0x7f, 0x0e, 0x5c, 0x56, 0xc8, 0xc4, 0x24, 0xb4, 0x81, 0x3b, 0x38, 0x70, 0xa9, 0xdc, 0xe4, 0x55, 0x13, 0x2d, 0x8d, 0x23, 0xdb, 0xc9, 0xd8, 0xb7, 0x80, 0x6f, 0xb5, 0xe3, 0x8e, 0x88, 0xc3, 0x84, 0xda, 0xcf, 0xc0, 0x8d, 0x03, 0xb2, 0x43, 0xd6, 0x55, 0x48, 0x08, 0x89, - 0xcb, 0x6e, 0x7e, 0xde, 0xe7, 0xc9, 0x1b, 0xff, 0x5e, 0xeb, 0xc5, 0x5d, 0x98, 0xc7, 0x52, 0xc6, - 0x3c, 0x95, 0x5e, 0xb1, 0xe3, 0x41, 0x01, 0xa9, 0x92, 0x6e, 0x26, 0xb8, 0xe2, 0xa4, 0x7d, 0x65, - 0xb9, 0xc5, 0x4e, 0xef, 0xee, 0x8c, 0xcf, 0xb8, 0x31, 0x3c, 0x7d, 0x2a, 0x33, 0xbd, 0xde, 0xda, - 0xe7, 0x02, 0xb2, 0x5c, 0x81, 0x28, 0xbd, 0xc1, 0x0f, 0x84, 0x3b, 0xbe, 0x6e, 0x38, 0x0e, 0xb8, - 0x00, 0x39, 0x06, 0x45, 0x9e, 0x62, 0xcc, 0x02, 0xc5, 0xc5, 0x44, 0x9d, 0x65, 0x60, 0xa3, 0x3e, - 0x1a, 0x76, 0x76, 0xef, 0xb9, 0xd7, 0xff, 0xe3, 0xee, 0x69, 0xff, 0xf8, 0x2c, 0x03, 0xda, 0x64, - 0xd5, 0x91, 0x74, 0xf1, 0x6d, 0xc5, 0xb3, 0x38, 0x98, 0xc4, 0xa1, 0x5d, 0xeb, 0xa3, 0xe1, 0x06, - 0x6d, 0x18, 0x7d, 0x10, 0x92, 0x07, 0xb8, 0x3d, 0x4d, 0x78, 0x70, 0x32, 0x89, 0x20, 0x9e, 0x45, - 0xca, 0xae, 0xf7, 0xd1, 0xb0, 0x4e, 0x5b, 0xa6, 0xf6, 0xda, 0x94, 0xc8, 0x7d, 0xdc, 0x64, 0x61, - 0x28, 0x40, 0x4a, 0x90, 0xf6, 0x46, 0xbf, 0x3e, 0x6c, 0xd2, 0x55, 0x81, 0x1c, 0xe1, 0x4d, 0x69, - 0x2e, 0x68, 0xdf, 0xd2, 0xd6, 0xe8, 0xd9, 0xf9, 0xe5, 0xb6, 0xf5, 0xed, 0x72, 0xdb, 0x9b, 0xc5, - 0x2a, 0xca, 0xa7, 0x6e, 0xc0, 0xe7, 0x1e, 0x4b, 0x12, 0x2e, 0xd8, 0xa3, 0x14, 0xd4, 0x29, 0x17, - 0x27, 0x95, 0x0c, 0x22, 0x16, 0xa7, 0xde, 0x9c, 0xa9, 0xc8, 0x7d, 0x05, 0x01, 0xfd, 0xdd, 0x66, - 0xf0, 0x13, 0xe1, 0x3b, 0x86, 0x9b, 0xc2, 0x29, 0x13, 0xa1, 0x06, 0x57, 0x09, 0x84, 0x37, 0x12, - 0xfe, 0x1d, 0x6e, 0x88, 0xf2, 0x96, 0xff, 0x4b, 0x5f, 0xf5, 0x19, 0x7c, 0xa9, 0xf0, 0x0f, 0xcb, - 0xfc, 0x1b, 0x2e, 0xcd, 0xdb, 0x5f, 0xc7, 0x40, 0x7f, 0xc7, 0xa8, 0xfd, 0x89, 0xf1, 0x02, 0xb7, - 0x0b, 0x96, 0xe4, 0x30, 0x99, 0xe6, 0x69, 0x98, 0x80, 0x21, 0x6d, 0xed, 0x76, 0xd7, 0xc7, 0xf7, - 0x41, 0x27, 0x46, 0x26, 0x40, 0x5b, 0xc5, 0x4a, 0x3c, 0x7c, 0x82, 0x9b, 0x57, 0xa3, 0x25, 0x2d, - 0xdc, 0x38, 0x38, 0xdc, 0xf7, 0xa9, 0x4f, 0xb7, 0x2c, 0xd2, 0xc1, 0x78, 0xff, 0x88, 0xfa, 0x2f, - 0xf7, 0xc6, 0xc7, 0x3e, 0xdd, 0x42, 0xda, 0xa4, 0xfe, 0xdb, 0xf7, 0x5a, 0xd4, 0x46, 0xf4, 0x7c, - 0xe1, 0xa0, 0x8b, 0x85, 0x83, 0xbe, 0x2f, 0x1c, 0xf4, 0x79, 0xe9, 0x58, 0x17, 0x4b, 0xc7, 0xfa, - 0xba, 0x74, 0xac, 0x8f, 0xcf, 0xff, 0x71, 0x3c, 0x9f, 0xbc, 0xd5, 0x82, 0xe8, 0x67, 0x97, 0xd3, - 0x4d, 0xb3, 0x1c, 0x8f, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0x15, 0xf0, 0x0d, 0xd2, 0x79, 0x03, + 0xcb, 0x6e, 0x7e, 0xde, 0xe7, 0xc9, 0x1b, 0xff, 0x5e, 0xeb, 0xc5, 0x5d, 0x58, 0xc4, 0x52, 0xc6, + 0x3c, 0x95, 0x5e, 0x31, 0xf2, 0xa0, 0x80, 0x54, 0x49, 0x37, 0x13, 0x5c, 0x71, 0xd2, 0xbe, 0xb2, + 0xdc, 0x62, 0xd4, 0xbb, 0x3b, 0xe7, 0x73, 0x6e, 0x0c, 0x4f, 0x9f, 0xca, 0x4c, 0xaf, 0xb7, 0xf1, + 0xb9, 0x80, 0x2c, 0x57, 0x20, 0x4a, 0x6f, 0xf0, 0x03, 0xe1, 0x8e, 0xaf, 0x1b, 0x4e, 0x02, 0x2e, + 0x40, 0x4e, 0x40, 0x91, 0xa7, 0x18, 0xb3, 0x40, 0x71, 0x31, 0x55, 0x67, 0x19, 0xd8, 0xa8, 0x8f, + 0x86, 0x9d, 0xd1, 0x3d, 0xf7, 0xfa, 0x7f, 0xdc, 0x3d, 0xed, 0x1f, 0x9f, 0x65, 0x40, 0x9b, 0xac, + 0x3a, 0x92, 0x2e, 0xbe, 0xad, 0x78, 0x16, 0x07, 0xd3, 0x38, 0xb4, 0x6b, 0x7d, 0x34, 0xdc, 0xa2, + 0x0d, 0xa3, 0x0f, 0x42, 0xf2, 0x00, 0xb7, 0x67, 0x09, 0x0f, 0x4e, 0xa6, 0x11, 0xc4, 0xf3, 0x48, + 0xd9, 0xf5, 0x3e, 0x1a, 0xd6, 0x69, 0xcb, 0xd4, 0x5e, 0x9b, 0x12, 0xb9, 0x8f, 0x9b, 0x2c, 0x0c, + 0x05, 0x48, 0x09, 0xd2, 0xde, 0xea, 0xd7, 0x87, 0x4d, 0xba, 0x2e, 0x90, 0x23, 0xbc, 0x2d, 0xcd, + 0x05, 0xed, 0x5b, 0xda, 0x1a, 0x3f, 0x3b, 0xbf, 0xdc, 0xb5, 0xbe, 0x5d, 0xee, 0x7a, 0xf3, 0x58, + 0x45, 0xf9, 0xcc, 0x0d, 0xf8, 0xc2, 0x63, 0x49, 0xc2, 0x05, 0x7b, 0x94, 0x82, 0x3a, 0xe5, 0xe2, + 0xa4, 0x92, 0x41, 0xc4, 0xe2, 0xd4, 0x5b, 0x30, 0x15, 0xb9, 0xaf, 0x20, 0xa0, 0xbf, 0xdb, 0x0c, + 0x7e, 0x22, 0x7c, 0xc7, 0x70, 0x53, 0x38, 0x65, 0x22, 0xd4, 0xe0, 0x2a, 0x81, 0xf0, 0x46, 0xc2, + 0xbf, 0xc3, 0x0d, 0x51, 0xde, 0xf2, 0x7f, 0xe9, 0xab, 0x3e, 0x83, 0x2f, 0x15, 0xfe, 0x61, 0x99, + 0x7f, 0xc3, 0xa5, 0x79, 0xfb, 0xeb, 0x18, 0xe8, 0xef, 0x18, 0xb5, 0x3f, 0x31, 0x5e, 0xe0, 0x76, + 0xc1, 0x92, 0x1c, 0xa6, 0xb3, 0x3c, 0x0d, 0x13, 0x30, 0xa4, 0xad, 0x51, 0x77, 0x73, 0x7c, 0x1f, + 0x74, 0x62, 0x6c, 0x02, 0xb4, 0x55, 0xac, 0xc5, 0xc3, 0x27, 0xb8, 0x79, 0x35, 0x5a, 0xd2, 0xc2, + 0x8d, 0x83, 0xc3, 0x7d, 0x9f, 0xfa, 0x74, 0xc7, 0x22, 0x1d, 0x8c, 0xf7, 0x8f, 0xa8, 0xff, 0x72, + 0x6f, 0x72, 0xec, 0xd3, 0x1d, 0xa4, 0x4d, 0xea, 0xbf, 0x7d, 0xaf, 0x45, 0x6d, 0x4c, 0xcf, 0x97, + 0x0e, 0xba, 0x58, 0x3a, 0xe8, 0xfb, 0xd2, 0x41, 0x9f, 0x57, 0x8e, 0x75, 0xb1, 0x72, 0xac, 0xaf, + 0x2b, 0xc7, 0xfa, 0xf8, 0xfc, 0x1f, 0xc7, 0xf3, 0xc9, 0x5b, 0x2f, 0x88, 0x7e, 0x76, 0x39, 0xdb, + 0x36, 0xcb, 0xf1, 0xf8, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x96, 0x72, 0xd2, 0x8a, 0x79, 0x03, 0x00, 0x00, } diff --git a/x/emissions/types/events_test.go b/x/emissions/types/events_test.go index 6dd11ed4c..7bfa29ecb 100644 --- a/x/emissions/types/events_test.go +++ b/x/emissions/types/events_test.go @@ -44,7 +44,7 @@ func TestEmitNewInfererScoresSetEventWithScores(t *testing.T) { require.Len(t, events, 1) event := events[0] - require.Equal(t, "emissions.v1.EventScoresSet", event.Type) + require.Equal(t, "emissions.v2.EventScoresSet", event.Type) attributes := event.Attributes require.Len(t, attributes, 5) @@ -103,7 +103,7 @@ func TestEmitNewForecasterScoresSetEventWithScores(t *testing.T) { require.Len(t, events, 1) event := events[0] - require.Equal(t, "emissions.v1.EventScoresSet", event.Type) + require.Equal(t, "emissions.v2.EventScoresSet", event.Type) attributes := event.Attributes require.Len(t, attributes, 5) @@ -162,7 +162,7 @@ func TestEmitNewReputerScoresSetEventWithScores(t *testing.T) { require.Len(t, events, 1) event := events[0] - require.Equal(t, "emissions.v1.EventScoresSet", event.Type) + require.Equal(t, "emissions.v2.EventScoresSet", event.Type) attributes := event.Attributes require.Len(t, attributes, 5) @@ -219,7 +219,7 @@ func TestEmitNewInfererRewardsSettledEventWithRewards(t *testing.T) { require.Len(t, events, 1) event := events[0] - require.Equal(t, "emissions.v1.EventRewardsSettled", event.Type) + require.Equal(t, "emissions.v2.EventRewardsSettled", event.Type) attributes := event.Attributes require.Len(t, attributes, 5) @@ -276,7 +276,7 @@ func TestEmitNewForecasterRewardsSettledEventWithRewards(t *testing.T) { require.Len(t, events, 1) event := events[0] - require.Equal(t, "emissions.v1.EventRewardsSettled", event.Type) + require.Equal(t, "emissions.v2.EventRewardsSettled", event.Type) attributes := event.Attributes require.Len(t, attributes, 5) @@ -333,7 +333,7 @@ func TestEmitNewReputerAndDelegatorRewardsSettledEventWithRewards(t *testing.T) require.Len(t, events, 1) event := events[0] - require.Equal(t, "emissions.v1.EventRewardsSettled", event.Type) + require.Equal(t, "emissions.v2.EventRewardsSettled", event.Type) attributes := event.Attributes require.Len(t, attributes, 5) @@ -389,7 +389,7 @@ func TestEmitNewNetworkLossSetEvent(t *testing.T) { require.Len(t, events, 1) event := events[0] - require.Equal(t, "emissions.v1.EventNetworkLossSet", event.Type) + require.Equal(t, "emissions.v2.EventNetworkLossSet", event.Type) attributes := event.Attributes require.Len(t, attributes, 3) diff --git a/x/emissions/types/genesis.pb.go b/x/emissions/types/genesis.pb.go index 1dc13e480..9f0178885 100644 --- a/x/emissions/types/genesis.pb.go +++ b/x/emissions/types/genesis.pb.go @@ -1,10 +1,13 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/genesis.proto +// source: emissions/v2/genesis.proto package types import ( + cosmossdk_io_math "cosmossdk.io/math" fmt "fmt" + github_com_allora_network_allora_chain_math "github.com/allora-network/allora-chain/math" + _ "github.com/cosmos/cosmos-proto" _ "github.com/cosmos/cosmos-sdk/types/tx/amino" _ "github.com/cosmos/gogoproto/gogoproto" proto "github.com/cosmos/gogoproto/proto" @@ -27,15 +30,125 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // GenesisState is the state that must be provided at genesis. type GenesisState struct { // params defines all the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` + /// TOPIC + // the next topic id to be used, equal to the number of topics that have been created + NextTopicId uint64 `protobuf:"varint,3,opt,name=nextTopicId,proto3" json:"nextTopicId,omitempty"` + // every topic that has been created indexed by their topicId starting from 1 (0 is reserved for the root network) + Topics []*TopicIdAndTopic `protobuf:"bytes,4,rep,name=topics,proto3" json:"topics,omitempty"` + ActiveTopics []uint64 `protobuf:"varint,5,rep,packed,name=activeTopics,proto3" json:"activeTopics,omitempty"` + // every topic that has been churned and ready to be rewarded i.e. reputer losses have been committed + RewardableTopics []uint64 `protobuf:"varint,6,rep,packed,name=rewardableTopics,proto3" json:"rewardableTopics,omitempty"` + // for a topic, what is every worker node that has registered to it? + TopicWorkers []*TopicAndActorId `protobuf:"bytes,7,rep,name=topicWorkers,proto3" json:"topicWorkers,omitempty"` + // for a topic, what is every reputer node that has registered to it? + TopicReputers []*TopicAndActorId `protobuf:"bytes,8,rep,name=topicReputers,proto3" json:"topicReputers,omitempty"` + // map of (topic) -> nonce/block height + TopicRewardNonce []*TopicIdAndBlockHeight `protobuf:"bytes,9,rep,name=topicRewardNonce,proto3" json:"topicRewardNonce,omitempty"` + /// SCORES + // map of (topic, block_height, worker) -> score + InfererScoresByBlock []*TopicIdBlockHeightScores `protobuf:"bytes,10,rep,name=infererScoresByBlock,proto3" json:"infererScoresByBlock,omitempty"` + // map of (topic, block_height, worker) -> score + ForecasterScoresByBlock []*TopicIdBlockHeightScores `protobuf:"bytes,11,rep,name=forecasterScoresByBlock,proto3" json:"forecasterScoresByBlock,omitempty"` + // map of (topic, block_height, reputer) -> score + ReputerScoresByBlock []*TopicIdBlockHeightScores `protobuf:"bytes,12,rep,name=reputerScoresByBlock,proto3" json:"reputerScoresByBlock,omitempty"` + // map of (topic, block_height, worker) -> score + LatestInfererScoresByWorker []*TopicIdActorIdScore `protobuf:"bytes,13,rep,name=latestInfererScoresByWorker,proto3" json:"latestInfererScoresByWorker,omitempty"` + // map of (topic, block_height, worker) -> score + LatestForecasterScoresByWorker []*TopicIdActorIdScore `protobuf:"bytes,14,rep,name=latestForecasterScoresByWorker,proto3" json:"latestForecasterScoresByWorker,omitempty"` + // map of (topic, block_height, reputer) -> score + LatestReputerScoresByReputer []*TopicIdActorIdScore `protobuf:"bytes,15,rep,name=latestReputerScoresByReputer,proto3" json:"latestReputerScoresByReputer,omitempty"` + // map of (topic, reputer) -> listening coefficient + ReputerListeningCoefficient []*TopicIdActorIdListeningCoefficient `protobuf:"bytes,16,rep,name=reputerListeningCoefficient,proto3" json:"reputerListeningCoefficient,omitempty"` + // map of (topic, reputer) -> previous reward (used for EMA) + PreviousReputerRewardFraction []*TopicIdActorIdDec `protobuf:"bytes,17,rep,name=previousReputerRewardFraction,proto3" json:"previousReputerRewardFraction,omitempty"` + // map of (topic, worker) -> previous reward for inference (used for EMA) + PreviousInferenceRewardFraction []*TopicIdActorIdDec `protobuf:"bytes,18,rep,name=previousInferenceRewardFraction,proto3" json:"previousInferenceRewardFraction,omitempty"` + // map of (topic, worker) -> previous reward for forecast (used for EMA) + PreviousForecastRewardFraction []*TopicIdActorIdDec `protobuf:"bytes,19,rep,name=previousForecastRewardFraction,proto3" json:"previousForecastRewardFraction,omitempty"` + // map of (topic, forecaster) -> ratio of forecaster score + PreviousForecasterScoreRatio []*TopicIdActorIdDec `protobuf:"bytes,20,rep,name=previousForecasterScoreRatio,proto3" json:"previousForecasterScoreRatio,omitempty"` + // total sum stake of all stakers on the network + TotalStake cosmossdk_io_math.Int `protobuf:"bytes,21,opt,name=totalStake,proto3,customtype=cosmossdk.io/math.Int" json:"totalStake"` + // for every topic, how much total stake does that topic have accumulated? + TopicStake []*TopicIdAndInt `protobuf:"bytes,22,rep,name=topicStake,proto3" json:"topicStake,omitempty"` + // stake reputer placed in topic + delegate stake placed in them, + // signalling their total authority on the topic + // (topic Id, reputer) -> stake from reputer on self + stakeFromDelegatorsUponReputer + StakeReputerAuthority []*TopicIdActorIdInt `protobuf:"bytes,23,rep,name=stakeReputerAuthority,proto3" json:"stakeReputerAuthority,omitempty"` + // map of (topic id, delegator) -> total amount of stake in that topic placed by that delegator + StakeSumFromDelegator []*TopicIdActorIdInt `protobuf:"bytes,24,rep,name=stakeSumFromDelegator,proto3" json:"stakeSumFromDelegator,omitempty"` + // map of (topic id, delegator, reputer) -> amount of stake that has been placed by that delegator on that target + DelegatedStakes []*TopicIdDelegatorReputerDelegatorInfo `protobuf:"bytes,25,rep,name=delegatedStakes,proto3" json:"delegatedStakes,omitempty"` + // map of (topic id, reputer) -> total amount of stake that has been placed on that reputer by delegators + StakeFromDelegatorsUponReputer []*TopicIdActorIdInt `protobuf:"bytes,26,rep,name=stakeFromDelegatorsUponReputer,proto3" json:"stakeFromDelegatorsUponReputer,omitempty"` + // map of (topicId, reputer) -> share of delegate reward + DelegateRewardPerShare []*TopicIdActorIdDec `protobuf:"bytes,27,rep,name=delegateRewardPerShare,proto3" json:"delegateRewardPerShare,omitempty"` + // stake removals are double indexed to avoid O(n) lookups when removing stake + // map of (blockHeight, topic, reputer) -> removal information for that reputer + StakeRemovalsByBlock []*BlockHeightTopicIdReputerStakeRemovalInfo `protobuf:"bytes,28,rep,name=stakeRemovalsByBlock,proto3" json:"stakeRemovalsByBlock,omitempty"` + // key set of (reputer, topic, blockHeight) to existence of a removal in the forwards map + StakeRemovalsByActor []*ActorIdTopicIdBlockHeight `protobuf:"bytes,29,rep,name=stakeRemovalsByActor,proto3" json:"stakeRemovalsByActor,omitempty"` + // delegate stake removals are double indexed to avoid O(n) lookups when removing stake + // map of (blockHeight, topic, delegator, reputer staked upon) -> (list of reputers delegated upon and info) to have + // stake removed at that block + DelegateStakeRemovalsByBlock []*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo `protobuf:"bytes,30,rep,name=delegateStakeRemovalsByBlock,proto3" json:"delegateStakeRemovalsByBlock,omitempty"` + // key set of (delegator, reputer, topicId, blockHeight) to existence of a removal in the forwards map + DelegateStakeRemovalsByActor []*DelegatorReputerTopicIdBlockHeight `protobuf:"bytes,31,rep,name=delegateStakeRemovalsByActor,proto3" json:"delegateStakeRemovalsByActor,omitempty"` + /// MISC GLOBAL STATE + // map of (topic, worker) -> inference + Inferences []*TopicIdActorIdInference `protobuf:"bytes,32,rep,name=inferences,proto3" json:"inferences,omitempty"` + // map of (topic, worker) -> forecast[] + Forecasts []*TopicIdActorIdForecast `protobuf:"bytes,33,rep,name=forecasts,proto3" json:"forecasts,omitempty"` + // map of worker id to node data about that worker + Workers []*LibP2PKeyAndOffchainNode `protobuf:"bytes,34,rep,name=workers,proto3" json:"workers,omitempty"` + // map of reputer id to node data about that reputer + Reputers []*LibP2PKeyAndOffchainNode `protobuf:"bytes,35,rep,name=reputers,proto3" json:"reputers,omitempty"` + // fee revenue collected by a topic over the course of the last reward cadence + TopicFeeRevenue []*TopicIdAndInt `protobuf:"bytes,36,rep,name=topicFeeRevenue,proto3" json:"topicFeeRevenue,omitempty"` + // store previous weights for exponential moving average in rewards calc + PreviousTopicWeight []*TopicIdAndDec `protobuf:"bytes,37,rep,name=previousTopicWeight,proto3" json:"previousTopicWeight,omitempty"` + // map of (topic, block_height) -> Inference + AllInferences []*TopicIdBlockHeightInferences `protobuf:"bytes,38,rep,name=allInferences,proto3" json:"allInferences,omitempty"` + // map of (topic, block_height) -> Forecast + AllForecasts []*TopicIdBlockHeightForecasts `protobuf:"bytes,39,rep,name=allForecasts,proto3" json:"allForecasts,omitempty"` + // map of (topic, block_height) -> ReputerValueBundles (1 per reputer active at that time) + AllLossBundles []*TopicIdBlockHeightReputerValueBundles `protobuf:"bytes,40,rep,name=allLossBundles,proto3" json:"allLossBundles,omitempty"` + // map of (topic, block_height) -> ValueBundle (1 network wide bundle per timestep) + NetworkLossBundles []*TopicIdBlockHeightValueBundles `protobuf:"bytes,41,rep,name=networkLossBundles,proto3" json:"networkLossBundles,omitempty"` + // Percentage of all rewards, paid out to staked reputers, during the previous reward cadence. Used by mint module + PreviousPercentageRewardToStakedReputers github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,42,opt,name=previousPercentageRewardToStakedReputers,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"previousPercentageRewardToStakedReputers"` + /// NONCES + // map of (topic) -> unfulfilled nonces + UnfulfilledWorkerNonces []*TopicIdAndNonces `protobuf:"bytes,43,rep,name=unfulfilledWorkerNonces,proto3" json:"unfulfilledWorkerNonces,omitempty"` + // map of (topic) -> unfulfilled nonces + UnfulfilledReputerNonces []*TopicIdAndReputerRequestNonces `protobuf:"bytes,44,rep,name=unfulfilledReputerNonces,proto3" json:"unfulfilledReputerNonces,omitempty"` + /// REGRETS + // map of (topic, worker) -> regret of worker from comparing loss of worker relative to loss of other inferers + LatestInfererNetworkRegrets []*TopicIdActorIdTimeStampedValue `protobuf:"bytes,45,rep,name=latestInfererNetworkRegrets,proto3" json:"latestInfererNetworkRegrets,omitempty"` + // map of (topic, worker) -> regret of worker from comparing loss of worker relative to loss of other forecasters + LatestForecasterNetworkRegrets []*TopicIdActorIdTimeStampedValue `protobuf:"bytes,46,rep,name=latestForecasterNetworkRegrets,proto3" json:"latestForecasterNetworkRegrets,omitempty"` + // map of (topic, forecaster, inferer) -> R^+_{ij_kk} regret of forecaster loss from comparing one-in loss with + // all network inferer (3rd index) regrets L_ij made under the regime of the one-in forecaster (2nd index) + LatestOneInForecasterNetworkRegrets []*TopicIdActorIdActorIdTimeStampedValue `protobuf:"bytes,47,rep,name=latestOneInForecasterNetworkRegrets,proto3" json:"latestOneInForecasterNetworkRegrets,omitempty"` + // the forecaster (2nd index) regrets made under the regime of the same forecaster as a one-in forecaster + LatestNaiveInfererNetworkRegrets []*TopicIdActorIdTimeStampedValue `protobuf:"bytes,48,rep,name=latestNaiveInfererNetworkRegrets,proto3" json:"latestNaiveInfererNetworkRegrets,omitempty"` + LatestOneOutInfererInfererNetworkRegrets []*TopicIdActorIdActorIdTimeStampedValue `protobuf:"bytes,49,rep,name=latestOneOutInfererInfererNetworkRegrets,proto3" json:"latestOneOutInfererInfererNetworkRegrets,omitempty"` + LatestOneOutInfererForecasterNetworkRegrets []*TopicIdActorIdActorIdTimeStampedValue `protobuf:"bytes,50,rep,name=latestOneOutInfererForecasterNetworkRegrets,proto3" json:"latestOneOutInfererForecasterNetworkRegrets,omitempty"` + LatestOneOutForecasterInfererNetworkRegrets []*TopicIdActorIdActorIdTimeStampedValue `protobuf:"bytes,51,rep,name=latestOneOutForecasterInfererNetworkRegrets,proto3" json:"latestOneOutForecasterInfererNetworkRegrets,omitempty"` + LatestOneOutForecasterForecasterNetworkRegrets []*TopicIdActorIdActorIdTimeStampedValue `protobuf:"bytes,52,rep,name=latestOneOutForecasterForecasterNetworkRegrets,proto3" json:"latestOneOutForecasterForecasterNetworkRegrets,omitempty"` + /// WHITELISTS CoreTeamAddresses []string `protobuf:"bytes,2,rep,name=core_team_addresses,json=coreTeamAddresses,proto3" json:"core_team_addresses,omitempty"` + /// RECORD COMMITS + TopicLastWorkerCommit []*TopicIdTimestampedActorNonce `protobuf:"bytes,53,rep,name=topicLastWorkerCommit,proto3" json:"topicLastWorkerCommit,omitempty"` + TopicLastReputerCommit []*TopicIdTimestampedActorNonce `protobuf:"bytes,54,rep,name=topicLastReputerCommit,proto3" json:"topicLastReputerCommit,omitempty"` } func (m *GenesisState) Reset() { *m = GenesisState{} } func (m *GenesisState) String() string { return proto.CompactTextString(m) } func (*GenesisState) ProtoMessage() {} func (*GenesisState) Descriptor() ([]byte, []int) { - return fileDescriptor_8702cc38ff1a7f6a, []int{0} + return fileDescriptor_a7d3dc6bd191e64b, []int{0} } func (m *GenesisState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -71,6 +184,342 @@ func (m *GenesisState) GetParams() Params { return Params{} } +func (m *GenesisState) GetNextTopicId() uint64 { + if m != nil { + return m.NextTopicId + } + return 0 +} + +func (m *GenesisState) GetTopics() []*TopicIdAndTopic { + if m != nil { + return m.Topics + } + return nil +} + +func (m *GenesisState) GetActiveTopics() []uint64 { + if m != nil { + return m.ActiveTopics + } + return nil +} + +func (m *GenesisState) GetRewardableTopics() []uint64 { + if m != nil { + return m.RewardableTopics + } + return nil +} + +func (m *GenesisState) GetTopicWorkers() []*TopicAndActorId { + if m != nil { + return m.TopicWorkers + } + return nil +} + +func (m *GenesisState) GetTopicReputers() []*TopicAndActorId { + if m != nil { + return m.TopicReputers + } + return nil +} + +func (m *GenesisState) GetTopicRewardNonce() []*TopicIdAndBlockHeight { + if m != nil { + return m.TopicRewardNonce + } + return nil +} + +func (m *GenesisState) GetInfererScoresByBlock() []*TopicIdBlockHeightScores { + if m != nil { + return m.InfererScoresByBlock + } + return nil +} + +func (m *GenesisState) GetForecasterScoresByBlock() []*TopicIdBlockHeightScores { + if m != nil { + return m.ForecasterScoresByBlock + } + return nil +} + +func (m *GenesisState) GetReputerScoresByBlock() []*TopicIdBlockHeightScores { + if m != nil { + return m.ReputerScoresByBlock + } + return nil +} + +func (m *GenesisState) GetLatestInfererScoresByWorker() []*TopicIdActorIdScore { + if m != nil { + return m.LatestInfererScoresByWorker + } + return nil +} + +func (m *GenesisState) GetLatestForecasterScoresByWorker() []*TopicIdActorIdScore { + if m != nil { + return m.LatestForecasterScoresByWorker + } + return nil +} + +func (m *GenesisState) GetLatestReputerScoresByReputer() []*TopicIdActorIdScore { + if m != nil { + return m.LatestReputerScoresByReputer + } + return nil +} + +func (m *GenesisState) GetReputerListeningCoefficient() []*TopicIdActorIdListeningCoefficient { + if m != nil { + return m.ReputerListeningCoefficient + } + return nil +} + +func (m *GenesisState) GetPreviousReputerRewardFraction() []*TopicIdActorIdDec { + if m != nil { + return m.PreviousReputerRewardFraction + } + return nil +} + +func (m *GenesisState) GetPreviousInferenceRewardFraction() []*TopicIdActorIdDec { + if m != nil { + return m.PreviousInferenceRewardFraction + } + return nil +} + +func (m *GenesisState) GetPreviousForecastRewardFraction() []*TopicIdActorIdDec { + if m != nil { + return m.PreviousForecastRewardFraction + } + return nil +} + +func (m *GenesisState) GetPreviousForecasterScoreRatio() []*TopicIdActorIdDec { + if m != nil { + return m.PreviousForecasterScoreRatio + } + return nil +} + +func (m *GenesisState) GetTopicStake() []*TopicIdAndInt { + if m != nil { + return m.TopicStake + } + return nil +} + +func (m *GenesisState) GetStakeReputerAuthority() []*TopicIdActorIdInt { + if m != nil { + return m.StakeReputerAuthority + } + return nil +} + +func (m *GenesisState) GetStakeSumFromDelegator() []*TopicIdActorIdInt { + if m != nil { + return m.StakeSumFromDelegator + } + return nil +} + +func (m *GenesisState) GetDelegatedStakes() []*TopicIdDelegatorReputerDelegatorInfo { + if m != nil { + return m.DelegatedStakes + } + return nil +} + +func (m *GenesisState) GetStakeFromDelegatorsUponReputer() []*TopicIdActorIdInt { + if m != nil { + return m.StakeFromDelegatorsUponReputer + } + return nil +} + +func (m *GenesisState) GetDelegateRewardPerShare() []*TopicIdActorIdDec { + if m != nil { + return m.DelegateRewardPerShare + } + return nil +} + +func (m *GenesisState) GetStakeRemovalsByBlock() []*BlockHeightTopicIdReputerStakeRemovalInfo { + if m != nil { + return m.StakeRemovalsByBlock + } + return nil +} + +func (m *GenesisState) GetStakeRemovalsByActor() []*ActorIdTopicIdBlockHeight { + if m != nil { + return m.StakeRemovalsByActor + } + return nil +} + +func (m *GenesisState) GetDelegateStakeRemovalsByBlock() []*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo { + if m != nil { + return m.DelegateStakeRemovalsByBlock + } + return nil +} + +func (m *GenesisState) GetDelegateStakeRemovalsByActor() []*DelegatorReputerTopicIdBlockHeight { + if m != nil { + return m.DelegateStakeRemovalsByActor + } + return nil +} + +func (m *GenesisState) GetInferences() []*TopicIdActorIdInference { + if m != nil { + return m.Inferences + } + return nil +} + +func (m *GenesisState) GetForecasts() []*TopicIdActorIdForecast { + if m != nil { + return m.Forecasts + } + return nil +} + +func (m *GenesisState) GetWorkers() []*LibP2PKeyAndOffchainNode { + if m != nil { + return m.Workers + } + return nil +} + +func (m *GenesisState) GetReputers() []*LibP2PKeyAndOffchainNode { + if m != nil { + return m.Reputers + } + return nil +} + +func (m *GenesisState) GetTopicFeeRevenue() []*TopicIdAndInt { + if m != nil { + return m.TopicFeeRevenue + } + return nil +} + +func (m *GenesisState) GetPreviousTopicWeight() []*TopicIdAndDec { + if m != nil { + return m.PreviousTopicWeight + } + return nil +} + +func (m *GenesisState) GetAllInferences() []*TopicIdBlockHeightInferences { + if m != nil { + return m.AllInferences + } + return nil +} + +func (m *GenesisState) GetAllForecasts() []*TopicIdBlockHeightForecasts { + if m != nil { + return m.AllForecasts + } + return nil +} + +func (m *GenesisState) GetAllLossBundles() []*TopicIdBlockHeightReputerValueBundles { + if m != nil { + return m.AllLossBundles + } + return nil +} + +func (m *GenesisState) GetNetworkLossBundles() []*TopicIdBlockHeightValueBundles { + if m != nil { + return m.NetworkLossBundles + } + return nil +} + +func (m *GenesisState) GetUnfulfilledWorkerNonces() []*TopicIdAndNonces { + if m != nil { + return m.UnfulfilledWorkerNonces + } + return nil +} + +func (m *GenesisState) GetUnfulfilledReputerNonces() []*TopicIdAndReputerRequestNonces { + if m != nil { + return m.UnfulfilledReputerNonces + } + return nil +} + +func (m *GenesisState) GetLatestInfererNetworkRegrets() []*TopicIdActorIdTimeStampedValue { + if m != nil { + return m.LatestInfererNetworkRegrets + } + return nil +} + +func (m *GenesisState) GetLatestForecasterNetworkRegrets() []*TopicIdActorIdTimeStampedValue { + if m != nil { + return m.LatestForecasterNetworkRegrets + } + return nil +} + +func (m *GenesisState) GetLatestOneInForecasterNetworkRegrets() []*TopicIdActorIdActorIdTimeStampedValue { + if m != nil { + return m.LatestOneInForecasterNetworkRegrets + } + return nil +} + +func (m *GenesisState) GetLatestNaiveInfererNetworkRegrets() []*TopicIdActorIdTimeStampedValue { + if m != nil { + return m.LatestNaiveInfererNetworkRegrets + } + return nil +} + +func (m *GenesisState) GetLatestOneOutInfererInfererNetworkRegrets() []*TopicIdActorIdActorIdTimeStampedValue { + if m != nil { + return m.LatestOneOutInfererInfererNetworkRegrets + } + return nil +} + +func (m *GenesisState) GetLatestOneOutInfererForecasterNetworkRegrets() []*TopicIdActorIdActorIdTimeStampedValue { + if m != nil { + return m.LatestOneOutInfererForecasterNetworkRegrets + } + return nil +} + +func (m *GenesisState) GetLatestOneOutForecasterInfererNetworkRegrets() []*TopicIdActorIdActorIdTimeStampedValue { + if m != nil { + return m.LatestOneOutForecasterInfererNetworkRegrets + } + return nil +} + +func (m *GenesisState) GetLatestOneOutForecasterForecasterNetworkRegrets() []*TopicIdActorIdActorIdTimeStampedValue { + if m != nil { + return m.LatestOneOutForecasterForecasterNetworkRegrets + } + return nil +} + func (m *GenesisState) GetCoreTeamAddresses() []string { if m != nil { return m.CoreTeamAddresses @@ -78,109 +527,9798 @@ func (m *GenesisState) GetCoreTeamAddresses() []string { return nil } -func init() { - proto.RegisterType((*GenesisState)(nil), "emissions.v1.GenesisState") -} - -func init() { proto.RegisterFile("emissions/v1/genesis.proto", fileDescriptor_8702cc38ff1a7f6a) } - -var fileDescriptor_8702cc38ff1a7f6a = []byte{ - // 253 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4a, 0xcd, 0xcd, 0x2c, - 0x2e, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x33, 0xd4, 0x4f, 0x4f, 0xcd, 0x4b, 0x2d, 0xce, 0x2c, - 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0xcb, 0xe9, 0x95, 0x19, 0x4a, 0x89, 0xa4, - 0xe7, 0xa7, 0xe7, 0x83, 0x25, 0xf4, 0x41, 0x2c, 0x88, 0x1a, 0x29, 0x49, 0x14, 0xfd, 0x05, 0x89, - 0x45, 0x89, 0xb9, 0x50, 0xed, 0x52, 0x82, 0x89, 0xb9, 0x99, 0x79, 0xf9, 0xfa, 0x60, 0x12, 0x22, - 0xa4, 0x54, 0xc4, 0xc5, 0xe3, 0x0e, 0xb1, 0x22, 0xb8, 0x24, 0xb1, 0x24, 0x55, 0xc8, 0x88, 0x8b, - 0x0d, 0xa2, 0x45, 0x82, 0x51, 0x81, 0x51, 0x83, 0xdb, 0x48, 0x44, 0x0f, 0xd9, 0x4a, 0xbd, 0x00, - 0xb0, 0x9c, 0x13, 0xcb, 0x89, 0x7b, 0xf2, 0x0c, 0x41, 0x50, 0x95, 0x42, 0x7a, 0x5c, 0xc2, 0xc9, - 0xf9, 0x45, 0xa9, 0xf1, 0x25, 0xa9, 0x89, 0xb9, 0xf1, 0x89, 0x29, 0x29, 0x45, 0xa9, 0xc5, 0xc5, - 0xa9, 0xc5, 0x12, 0x4c, 0x0a, 0xcc, 0x1a, 0x9c, 0x41, 0x82, 0x20, 0xa9, 0x90, 0xd4, 0xc4, 0x5c, - 0x47, 0x98, 0x84, 0x53, 0xd0, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 0xc9, 0x31, 0x3e, 0x78, 0x24, - 0xc7, 0x38, 0xe1, 0xb1, 0x1c, 0xc3, 0x85, 0xc7, 0x72, 0x0c, 0x37, 0x1e, 0xcb, 0x31, 0x44, 0x59, - 0xa4, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x27, 0xe6, 0xe4, 0xe4, 0x17, - 0x25, 0xea, 0xe6, 0xa5, 0x96, 0x94, 0xe7, 0x17, 0x65, 0xc3, 0xb8, 0xc9, 0x19, 0x89, 0x99, 0x79, - 0xfa, 0x15, 0xfa, 0x08, 0x4f, 0x96, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0xbd, 0x63, 0x0c, - 0x08, 0x00, 0x00, 0xff, 0xff, 0x58, 0x7e, 0xee, 0x10, 0x3e, 0x01, 0x00, 0x00, +func (m *GenesisState) GetTopicLastWorkerCommit() []*TopicIdTimestampedActorNonce { + if m != nil { + return m.TopicLastWorkerCommit + } + return nil } -func (m *GenesisState) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *GenesisState) GetTopicLastReputerCommit() []*TopicIdTimestampedActorNonce { + if m != nil { + return m.TopicLastReputerCommit } - return dAtA[:n], nil + return nil } -func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +type TopicIdAndTopic struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Topic *Topic `protobuf:"bytes,2,opt,name=Topic,proto3" json:"Topic,omitempty"` } -func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.CoreTeamAddresses) > 0 { - for iNdEx := len(m.CoreTeamAddresses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.CoreTeamAddresses[iNdEx]) - copy(dAtA[i:], m.CoreTeamAddresses[iNdEx]) - i = encodeVarintGenesis(dAtA, i, uint64(len(m.CoreTeamAddresses[iNdEx]))) - i-- - dAtA[i] = 0x12 +func (m *TopicIdAndTopic) Reset() { *m = TopicIdAndTopic{} } +func (m *TopicIdAndTopic) String() string { return proto.CompactTextString(m) } +func (*TopicIdAndTopic) ProtoMessage() {} +func (*TopicIdAndTopic) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{1} +} +func (m *TopicIdAndTopic) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdAndTopic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdAndTopic.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err } + return b[:n], nil } - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) +} +func (m *TopicIdAndTopic) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdAndTopic.Merge(m, src) +} +func (m *TopicIdAndTopic) XXX_Size() int { + return m.Size() +} +func (m *TopicIdAndTopic) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdAndTopic.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdAndTopic proto.InternalMessageInfo + +func (m *TopicIdAndTopic) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdAndTopic) GetTopic() *Topic { + if m != nil { + return m.Topic + } + return nil +} + +type TopicAndActorId struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` +} + +func (m *TopicAndActorId) Reset() { *m = TopicAndActorId{} } +func (m *TopicAndActorId) String() string { return proto.CompactTextString(m) } +func (*TopicAndActorId) ProtoMessage() {} +func (*TopicAndActorId) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{2} +} +func (m *TopicAndActorId) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicAndActorId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicAndActorId.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) if err != nil { - return 0, err + return nil, err + } + return b[:n], nil + } +} +func (m *TopicAndActorId) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicAndActorId.Merge(m, src) +} +func (m *TopicAndActorId) XXX_Size() int { + return m.Size() +} +func (m *TopicAndActorId) XXX_DiscardUnknown() { + xxx_messageInfo_TopicAndActorId.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicAndActorId proto.InternalMessageInfo + +func (m *TopicAndActorId) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicAndActorId) GetActorId() string { + if m != nil { + return m.ActorId + } + return "" +} + +type TopicIdAndBlockHeight struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` +} + +func (m *TopicIdAndBlockHeight) Reset() { *m = TopicIdAndBlockHeight{} } +func (m *TopicIdAndBlockHeight) String() string { return proto.CompactTextString(m) } +func (*TopicIdAndBlockHeight) ProtoMessage() {} +func (*TopicIdAndBlockHeight) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{3} +} +func (m *TopicIdAndBlockHeight) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdAndBlockHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdAndBlockHeight.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdAndBlockHeight) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdAndBlockHeight.Merge(m, src) +} +func (m *TopicIdAndBlockHeight) XXX_Size() int { + return m.Size() +} +func (m *TopicIdAndBlockHeight) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdAndBlockHeight.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdAndBlockHeight proto.InternalMessageInfo + +func (m *TopicIdAndBlockHeight) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdAndBlockHeight) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +type TopicIdBlockHeightScores struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + Scores *Scores `protobuf:"bytes,3,opt,name=Scores,proto3" json:"Scores,omitempty"` +} + +func (m *TopicIdBlockHeightScores) Reset() { *m = TopicIdBlockHeightScores{} } +func (m *TopicIdBlockHeightScores) String() string { return proto.CompactTextString(m) } +func (*TopicIdBlockHeightScores) ProtoMessage() {} +func (*TopicIdBlockHeightScores) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{4} +} +func (m *TopicIdBlockHeightScores) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdBlockHeightScores) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdBlockHeightScores.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdBlockHeightScores) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdBlockHeightScores.Merge(m, src) +} +func (m *TopicIdBlockHeightScores) XXX_Size() int { + return m.Size() +} +func (m *TopicIdBlockHeightScores) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdBlockHeightScores.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdBlockHeightScores proto.InternalMessageInfo + +func (m *TopicIdBlockHeightScores) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdBlockHeightScores) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *TopicIdBlockHeightScores) GetScores() *Scores { + if m != nil { + return m.Scores + } + return nil +} + +type TopicIdActorIdScore struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + Score *Score `protobuf:"bytes,3,opt,name=Score,proto3" json:"Score,omitempty"` +} + +func (m *TopicIdActorIdScore) Reset() { *m = TopicIdActorIdScore{} } +func (m *TopicIdActorIdScore) String() string { return proto.CompactTextString(m) } +func (*TopicIdActorIdScore) ProtoMessage() {} +func (*TopicIdActorIdScore) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{5} +} +func (m *TopicIdActorIdScore) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdActorIdScore) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdActorIdScore.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdActorIdScore) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdActorIdScore.Merge(m, src) +} +func (m *TopicIdActorIdScore) XXX_Size() int { + return m.Size() +} +func (m *TopicIdActorIdScore) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdActorIdScore.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdActorIdScore proto.InternalMessageInfo + +func (m *TopicIdActorIdScore) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdActorIdScore) GetActorId() string { + if m != nil { + return m.ActorId + } + return "" +} + +func (m *TopicIdActorIdScore) GetScore() *Score { + if m != nil { + return m.Score + } + return nil +} + +type TopicIdActorIdListeningCoefficient struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + ListeningCoefficient *ListeningCoefficient `protobuf:"bytes,3,opt,name=ListeningCoefficient,proto3" json:"ListeningCoefficient,omitempty"` +} + +func (m *TopicIdActorIdListeningCoefficient) Reset() { *m = TopicIdActorIdListeningCoefficient{} } +func (m *TopicIdActorIdListeningCoefficient) String() string { return proto.CompactTextString(m) } +func (*TopicIdActorIdListeningCoefficient) ProtoMessage() {} +func (*TopicIdActorIdListeningCoefficient) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{6} +} +func (m *TopicIdActorIdListeningCoefficient) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdActorIdListeningCoefficient) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdActorIdListeningCoefficient.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdActorIdListeningCoefficient) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdActorIdListeningCoefficient.Merge(m, src) +} +func (m *TopicIdActorIdListeningCoefficient) XXX_Size() int { + return m.Size() +} +func (m *TopicIdActorIdListeningCoefficient) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdActorIdListeningCoefficient.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdActorIdListeningCoefficient proto.InternalMessageInfo + +func (m *TopicIdActorIdListeningCoefficient) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdActorIdListeningCoefficient) GetActorId() string { + if m != nil { + return m.ActorId + } + return "" +} + +func (m *TopicIdActorIdListeningCoefficient) GetListeningCoefficient() *ListeningCoefficient { + if m != nil { + return m.ListeningCoefficient + } + return nil +} + +type TopicIdActorIdDec struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + Dec github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,3,opt,name=Dec,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"Dec"` +} + +func (m *TopicIdActorIdDec) Reset() { *m = TopicIdActorIdDec{} } +func (m *TopicIdActorIdDec) String() string { return proto.CompactTextString(m) } +func (*TopicIdActorIdDec) ProtoMessage() {} +func (*TopicIdActorIdDec) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{7} +} +func (m *TopicIdActorIdDec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdActorIdDec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdActorIdDec.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdActorIdDec) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdActorIdDec.Merge(m, src) +} +func (m *TopicIdActorIdDec) XXX_Size() int { + return m.Size() +} +func (m *TopicIdActorIdDec) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdActorIdDec.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdActorIdDec proto.InternalMessageInfo + +func (m *TopicIdActorIdDec) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdActorIdDec) GetActorId() string { + if m != nil { + return m.ActorId + } + return "" +} + +type TopicIdAndInt struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Int cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=Int,proto3,customtype=cosmossdk.io/math.Int" json:"Int"` +} + +func (m *TopicIdAndInt) Reset() { *m = TopicIdAndInt{} } +func (m *TopicIdAndInt) String() string { return proto.CompactTextString(m) } +func (*TopicIdAndInt) ProtoMessage() {} +func (*TopicIdAndInt) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{8} +} +func (m *TopicIdAndInt) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdAndInt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdAndInt.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdAndInt) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdAndInt.Merge(m, src) +} +func (m *TopicIdAndInt) XXX_Size() int { + return m.Size() +} +func (m *TopicIdAndInt) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdAndInt.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdAndInt proto.InternalMessageInfo + +func (m *TopicIdAndInt) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +type TopicIdActorIdInt struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + Int cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=Int,proto3,customtype=cosmossdk.io/math.Int" json:"Int"` +} + +func (m *TopicIdActorIdInt) Reset() { *m = TopicIdActorIdInt{} } +func (m *TopicIdActorIdInt) String() string { return proto.CompactTextString(m) } +func (*TopicIdActorIdInt) ProtoMessage() {} +func (*TopicIdActorIdInt) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{9} +} +func (m *TopicIdActorIdInt) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdActorIdInt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdActorIdInt.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdActorIdInt) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdActorIdInt.Merge(m, src) +} +func (m *TopicIdActorIdInt) XXX_Size() int { + return m.Size() +} +func (m *TopicIdActorIdInt) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdActorIdInt.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdActorIdInt proto.InternalMessageInfo + +func (m *TopicIdActorIdInt) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdActorIdInt) GetActorId() string { + if m != nil { + return m.ActorId + } + return "" +} + +type TopicIdDelegatorReputerDelegatorInfo struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Delegator string `protobuf:"bytes,2,opt,name=Delegator,proto3" json:"Delegator,omitempty"` + Reputer string `protobuf:"bytes,3,opt,name=Reputer,proto3" json:"Reputer,omitempty"` + DelegatorInfo *DelegatorInfo `protobuf:"bytes,4,opt,name=DelegatorInfo,proto3" json:"DelegatorInfo,omitempty"` +} + +func (m *TopicIdDelegatorReputerDelegatorInfo) Reset() { *m = TopicIdDelegatorReputerDelegatorInfo{} } +func (m *TopicIdDelegatorReputerDelegatorInfo) String() string { return proto.CompactTextString(m) } +func (*TopicIdDelegatorReputerDelegatorInfo) ProtoMessage() {} +func (*TopicIdDelegatorReputerDelegatorInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{10} +} +func (m *TopicIdDelegatorReputerDelegatorInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdDelegatorReputerDelegatorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdDelegatorReputerDelegatorInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdDelegatorReputerDelegatorInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdDelegatorReputerDelegatorInfo.Merge(m, src) +} +func (m *TopicIdDelegatorReputerDelegatorInfo) XXX_Size() int { + return m.Size() +} +func (m *TopicIdDelegatorReputerDelegatorInfo) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdDelegatorReputerDelegatorInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdDelegatorReputerDelegatorInfo proto.InternalMessageInfo + +func (m *TopicIdDelegatorReputerDelegatorInfo) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdDelegatorReputerDelegatorInfo) GetDelegator() string { + if m != nil { + return m.Delegator + } + return "" +} + +func (m *TopicIdDelegatorReputerDelegatorInfo) GetReputer() string { + if m != nil { + return m.Reputer + } + return "" +} + +func (m *TopicIdDelegatorReputerDelegatorInfo) GetDelegatorInfo() *DelegatorInfo { + if m != nil { + return m.DelegatorInfo + } + return nil +} + +type BlockHeightTopicIdReputerStakeRemovalInfo struct { + BlockHeight int64 `protobuf:"varint,1,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Reputer string `protobuf:"bytes,3,opt,name=Reputer,proto3" json:"Reputer,omitempty"` + StakeRemovalInfo *StakeRemovalInfo `protobuf:"bytes,4,opt,name=StakeRemovalInfo,proto3" json:"StakeRemovalInfo,omitempty"` +} + +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) Reset() { + *m = BlockHeightTopicIdReputerStakeRemovalInfo{} +} +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) String() string { + return proto.CompactTextString(m) +} +func (*BlockHeightTopicIdReputerStakeRemovalInfo) ProtoMessage() {} +func (*BlockHeightTopicIdReputerStakeRemovalInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{11} +} +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockHeightTopicIdReputerStakeRemovalInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockHeightTopicIdReputerStakeRemovalInfo.Merge(m, src) +} +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) XXX_Size() int { + return m.Size() +} +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) XXX_DiscardUnknown() { + xxx_messageInfo_BlockHeightTopicIdReputerStakeRemovalInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockHeightTopicIdReputerStakeRemovalInfo proto.InternalMessageInfo + +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) GetReputer() string { + if m != nil { + return m.Reputer + } + return "" +} + +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) GetStakeRemovalInfo() *StakeRemovalInfo { + if m != nil { + return m.StakeRemovalInfo + } + return nil +} + +type ActorIdTopicIdBlockHeight struct { + ActorId string `protobuf:"bytes,1,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,3,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` +} + +func (m *ActorIdTopicIdBlockHeight) Reset() { *m = ActorIdTopicIdBlockHeight{} } +func (m *ActorIdTopicIdBlockHeight) String() string { return proto.CompactTextString(m) } +func (*ActorIdTopicIdBlockHeight) ProtoMessage() {} +func (*ActorIdTopicIdBlockHeight) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{12} +} +func (m *ActorIdTopicIdBlockHeight) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ActorIdTopicIdBlockHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ActorIdTopicIdBlockHeight.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *ActorIdTopicIdBlockHeight) XXX_Merge(src proto.Message) { + xxx_messageInfo_ActorIdTopicIdBlockHeight.Merge(m, src) +} +func (m *ActorIdTopicIdBlockHeight) XXX_Size() int { + return m.Size() +} +func (m *ActorIdTopicIdBlockHeight) XXX_DiscardUnknown() { + xxx_messageInfo_ActorIdTopicIdBlockHeight.DiscardUnknown(m) +} + +var xxx_messageInfo_ActorIdTopicIdBlockHeight proto.InternalMessageInfo + +func (m *ActorIdTopicIdBlockHeight) GetActorId() string { + if m != nil { + return m.ActorId + } + return "" +} + +func (m *ActorIdTopicIdBlockHeight) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *ActorIdTopicIdBlockHeight) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +type BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo struct { + BlockHeight int64 `protobuf:"varint,1,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Delegator string `protobuf:"bytes,3,opt,name=Delegator,proto3" json:"Delegator,omitempty"` + Reputer string `protobuf:"bytes,4,opt,name=Reputer,proto3" json:"Reputer,omitempty"` + DelegateStakeRemovalInfo *DelegateStakeRemovalInfo `protobuf:"bytes,5,opt,name=DelegateStakeRemovalInfo,proto3" json:"DelegateStakeRemovalInfo,omitempty"` +} + +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Reset() { + *m = BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo{} +} +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) String() string { + return proto.CompactTextString(m) +} +func (*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) ProtoMessage() {} +func (*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{13} +} +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.Merge(m, src) +} +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) XXX_Size() int { + return m.Size() +} +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) XXX_DiscardUnknown() { + xxx_messageInfo_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo proto.InternalMessageInfo + +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) GetDelegator() string { + if m != nil { + return m.Delegator + } + return "" +} + +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) GetReputer() string { + if m != nil { + return m.Reputer + } + return "" +} + +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) GetDelegateStakeRemovalInfo() *DelegateStakeRemovalInfo { + if m != nil { + return m.DelegateStakeRemovalInfo + } + return nil +} + +type DelegatorReputerTopicIdBlockHeight struct { + Delegator string `protobuf:"bytes,1,opt,name=Delegator,proto3" json:"Delegator,omitempty"` + Reputer string `protobuf:"bytes,2,opt,name=Reputer,proto3" json:"Reputer,omitempty"` + TopicId uint64 `protobuf:"varint,3,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,4,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` +} + +func (m *DelegatorReputerTopicIdBlockHeight) Reset() { *m = DelegatorReputerTopicIdBlockHeight{} } +func (m *DelegatorReputerTopicIdBlockHeight) String() string { return proto.CompactTextString(m) } +func (*DelegatorReputerTopicIdBlockHeight) ProtoMessage() {} +func (*DelegatorReputerTopicIdBlockHeight) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{14} +} +func (m *DelegatorReputerTopicIdBlockHeight) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DelegatorReputerTopicIdBlockHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DelegatorReputerTopicIdBlockHeight.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *DelegatorReputerTopicIdBlockHeight) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelegatorReputerTopicIdBlockHeight.Merge(m, src) +} +func (m *DelegatorReputerTopicIdBlockHeight) XXX_Size() int { + return m.Size() +} +func (m *DelegatorReputerTopicIdBlockHeight) XXX_DiscardUnknown() { + xxx_messageInfo_DelegatorReputerTopicIdBlockHeight.DiscardUnknown(m) +} + +var xxx_messageInfo_DelegatorReputerTopicIdBlockHeight proto.InternalMessageInfo + +func (m *DelegatorReputerTopicIdBlockHeight) GetDelegator() string { + if m != nil { + return m.Delegator + } + return "" +} + +func (m *DelegatorReputerTopicIdBlockHeight) GetReputer() string { + if m != nil { + return m.Reputer + } + return "" +} + +func (m *DelegatorReputerTopicIdBlockHeight) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *DelegatorReputerTopicIdBlockHeight) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +type TopicIdActorIdInference struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + Inference *Inference `protobuf:"bytes,3,opt,name=Inference,proto3" json:"Inference,omitempty"` +} + +func (m *TopicIdActorIdInference) Reset() { *m = TopicIdActorIdInference{} } +func (m *TopicIdActorIdInference) String() string { return proto.CompactTextString(m) } +func (*TopicIdActorIdInference) ProtoMessage() {} +func (*TopicIdActorIdInference) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{15} +} +func (m *TopicIdActorIdInference) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdActorIdInference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdActorIdInference.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdActorIdInference) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdActorIdInference.Merge(m, src) +} +func (m *TopicIdActorIdInference) XXX_Size() int { + return m.Size() +} +func (m *TopicIdActorIdInference) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdActorIdInference.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdActorIdInference proto.InternalMessageInfo + +func (m *TopicIdActorIdInference) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdActorIdInference) GetActorId() string { + if m != nil { + return m.ActorId + } + return "" +} + +func (m *TopicIdActorIdInference) GetInference() *Inference { + if m != nil { + return m.Inference + } + return nil +} + +type TopicIdActorIdForecast struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + Forecast *Forecast `protobuf:"bytes,3,opt,name=Forecast,proto3" json:"Forecast,omitempty"` +} + +func (m *TopicIdActorIdForecast) Reset() { *m = TopicIdActorIdForecast{} } +func (m *TopicIdActorIdForecast) String() string { return proto.CompactTextString(m) } +func (*TopicIdActorIdForecast) ProtoMessage() {} +func (*TopicIdActorIdForecast) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{16} +} +func (m *TopicIdActorIdForecast) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdActorIdForecast) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdActorIdForecast.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdActorIdForecast) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdActorIdForecast.Merge(m, src) +} +func (m *TopicIdActorIdForecast) XXX_Size() int { + return m.Size() +} +func (m *TopicIdActorIdForecast) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdActorIdForecast.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdActorIdForecast proto.InternalMessageInfo + +func (m *TopicIdActorIdForecast) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdActorIdForecast) GetActorId() string { + if m != nil { + return m.ActorId + } + return "" +} + +func (m *TopicIdActorIdForecast) GetForecast() *Forecast { + if m != nil { + return m.Forecast + } + return nil +} + +type LibP2PKeyAndOffchainNode struct { + LibP2PKey string `protobuf:"bytes,1,opt,name=LibP2pKey,proto3" json:"LibP2pKey,omitempty"` + OffchainNode *OffchainNode `protobuf:"bytes,2,opt,name=OffchainNode,proto3" json:"OffchainNode,omitempty"` +} + +func (m *LibP2PKeyAndOffchainNode) Reset() { *m = LibP2PKeyAndOffchainNode{} } +func (m *LibP2PKeyAndOffchainNode) String() string { return proto.CompactTextString(m) } +func (*LibP2PKeyAndOffchainNode) ProtoMessage() {} +func (*LibP2PKeyAndOffchainNode) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{17} +} +func (m *LibP2PKeyAndOffchainNode) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LibP2PKeyAndOffchainNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_LibP2PKeyAndOffchainNode.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *LibP2PKeyAndOffchainNode) XXX_Merge(src proto.Message) { + xxx_messageInfo_LibP2PKeyAndOffchainNode.Merge(m, src) +} +func (m *LibP2PKeyAndOffchainNode) XXX_Size() int { + return m.Size() +} +func (m *LibP2PKeyAndOffchainNode) XXX_DiscardUnknown() { + xxx_messageInfo_LibP2PKeyAndOffchainNode.DiscardUnknown(m) +} + +var xxx_messageInfo_LibP2PKeyAndOffchainNode proto.InternalMessageInfo + +func (m *LibP2PKeyAndOffchainNode) GetLibP2PKey() string { + if m != nil { + return m.LibP2PKey + } + return "" +} + +func (m *LibP2PKeyAndOffchainNode) GetOffchainNode() *OffchainNode { + if m != nil { + return m.OffchainNode + } + return nil +} + +type TopicIdAndDec struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Dec github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,2,opt,name=Dec,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"Dec"` +} + +func (m *TopicIdAndDec) Reset() { *m = TopicIdAndDec{} } +func (m *TopicIdAndDec) String() string { return proto.CompactTextString(m) } +func (*TopicIdAndDec) ProtoMessage() {} +func (*TopicIdAndDec) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{18} +} +func (m *TopicIdAndDec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdAndDec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdAndDec.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdAndDec) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdAndDec.Merge(m, src) +} +func (m *TopicIdAndDec) XXX_Size() int { + return m.Size() +} +func (m *TopicIdAndDec) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdAndDec.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdAndDec proto.InternalMessageInfo + +func (m *TopicIdAndDec) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +type TopicIdBlockHeightInferences struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + Inferences *Inferences `protobuf:"bytes,3,opt,name=Inferences,proto3" json:"Inferences,omitempty"` +} + +func (m *TopicIdBlockHeightInferences) Reset() { *m = TopicIdBlockHeightInferences{} } +func (m *TopicIdBlockHeightInferences) String() string { return proto.CompactTextString(m) } +func (*TopicIdBlockHeightInferences) ProtoMessage() {} +func (*TopicIdBlockHeightInferences) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{19} +} +func (m *TopicIdBlockHeightInferences) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdBlockHeightInferences) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdBlockHeightInferences.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdBlockHeightInferences) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdBlockHeightInferences.Merge(m, src) +} +func (m *TopicIdBlockHeightInferences) XXX_Size() int { + return m.Size() +} +func (m *TopicIdBlockHeightInferences) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdBlockHeightInferences.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdBlockHeightInferences proto.InternalMessageInfo + +func (m *TopicIdBlockHeightInferences) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdBlockHeightInferences) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *TopicIdBlockHeightInferences) GetInferences() *Inferences { + if m != nil { + return m.Inferences + } + return nil +} + +type TopicIdBlockHeightForecasts struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + Forecasts *Forecasts `protobuf:"bytes,3,opt,name=Forecasts,proto3" json:"Forecasts,omitempty"` +} + +func (m *TopicIdBlockHeightForecasts) Reset() { *m = TopicIdBlockHeightForecasts{} } +func (m *TopicIdBlockHeightForecasts) String() string { return proto.CompactTextString(m) } +func (*TopicIdBlockHeightForecasts) ProtoMessage() {} +func (*TopicIdBlockHeightForecasts) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{20} +} +func (m *TopicIdBlockHeightForecasts) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdBlockHeightForecasts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdBlockHeightForecasts.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdBlockHeightForecasts) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdBlockHeightForecasts.Merge(m, src) +} +func (m *TopicIdBlockHeightForecasts) XXX_Size() int { + return m.Size() +} +func (m *TopicIdBlockHeightForecasts) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdBlockHeightForecasts.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdBlockHeightForecasts proto.InternalMessageInfo + +func (m *TopicIdBlockHeightForecasts) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdBlockHeightForecasts) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *TopicIdBlockHeightForecasts) GetForecasts() *Forecasts { + if m != nil { + return m.Forecasts + } + return nil +} + +type TopicIdBlockHeightReputerValueBundles struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + ReputerValueBundles *ReputerValueBundles `protobuf:"bytes,3,opt,name=ReputerValueBundles,proto3" json:"ReputerValueBundles,omitempty"` +} + +func (m *TopicIdBlockHeightReputerValueBundles) Reset() { *m = TopicIdBlockHeightReputerValueBundles{} } +func (m *TopicIdBlockHeightReputerValueBundles) String() string { return proto.CompactTextString(m) } +func (*TopicIdBlockHeightReputerValueBundles) ProtoMessage() {} +func (*TopicIdBlockHeightReputerValueBundles) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{21} +} +func (m *TopicIdBlockHeightReputerValueBundles) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdBlockHeightReputerValueBundles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdBlockHeightReputerValueBundles.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdBlockHeightReputerValueBundles) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdBlockHeightReputerValueBundles.Merge(m, src) +} +func (m *TopicIdBlockHeightReputerValueBundles) XXX_Size() int { + return m.Size() +} +func (m *TopicIdBlockHeightReputerValueBundles) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdBlockHeightReputerValueBundles.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdBlockHeightReputerValueBundles proto.InternalMessageInfo + +func (m *TopicIdBlockHeightReputerValueBundles) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdBlockHeightReputerValueBundles) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *TopicIdBlockHeightReputerValueBundles) GetReputerValueBundles() *ReputerValueBundles { + if m != nil { + return m.ReputerValueBundles + } + return nil +} + +type TopicIdBlockHeightValueBundles struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=BlockHeight,proto3" json:"BlockHeight,omitempty"` + ValueBundle *ValueBundle `protobuf:"bytes,3,opt,name=ValueBundle,proto3" json:"ValueBundle,omitempty"` +} + +func (m *TopicIdBlockHeightValueBundles) Reset() { *m = TopicIdBlockHeightValueBundles{} } +func (m *TopicIdBlockHeightValueBundles) String() string { return proto.CompactTextString(m) } +func (*TopicIdBlockHeightValueBundles) ProtoMessage() {} +func (*TopicIdBlockHeightValueBundles) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{22} +} +func (m *TopicIdBlockHeightValueBundles) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdBlockHeightValueBundles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdBlockHeightValueBundles.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdBlockHeightValueBundles) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdBlockHeightValueBundles.Merge(m, src) +} +func (m *TopicIdBlockHeightValueBundles) XXX_Size() int { + return m.Size() +} +func (m *TopicIdBlockHeightValueBundles) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdBlockHeightValueBundles.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdBlockHeightValueBundles proto.InternalMessageInfo + +func (m *TopicIdBlockHeightValueBundles) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdBlockHeightValueBundles) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +func (m *TopicIdBlockHeightValueBundles) GetValueBundle() *ValueBundle { + if m != nil { + return m.ValueBundle + } + return nil +} + +type TopicIdAndNonces struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + Nonces *Nonces `protobuf:"bytes,2,opt,name=Nonces,proto3" json:"Nonces,omitempty"` +} + +func (m *TopicIdAndNonces) Reset() { *m = TopicIdAndNonces{} } +func (m *TopicIdAndNonces) String() string { return proto.CompactTextString(m) } +func (*TopicIdAndNonces) ProtoMessage() {} +func (*TopicIdAndNonces) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{23} +} +func (m *TopicIdAndNonces) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdAndNonces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdAndNonces.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdAndNonces) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdAndNonces.Merge(m, src) +} +func (m *TopicIdAndNonces) XXX_Size() int { + return m.Size() +} +func (m *TopicIdAndNonces) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdAndNonces.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdAndNonces proto.InternalMessageInfo + +func (m *TopicIdAndNonces) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdAndNonces) GetNonces() *Nonces { + if m != nil { + return m.Nonces + } + return nil +} + +type TopicIdAndReputerRequestNonces struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ReputerRequestNonces *ReputerRequestNonces `protobuf:"bytes,2,opt,name=ReputerRequestNonces,proto3" json:"ReputerRequestNonces,omitempty"` +} + +func (m *TopicIdAndReputerRequestNonces) Reset() { *m = TopicIdAndReputerRequestNonces{} } +func (m *TopicIdAndReputerRequestNonces) String() string { return proto.CompactTextString(m) } +func (*TopicIdAndReputerRequestNonces) ProtoMessage() {} +func (*TopicIdAndReputerRequestNonces) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{24} +} +func (m *TopicIdAndReputerRequestNonces) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdAndReputerRequestNonces) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdAndReputerRequestNonces.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdAndReputerRequestNonces) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdAndReputerRequestNonces.Merge(m, src) +} +func (m *TopicIdAndReputerRequestNonces) XXX_Size() int { + return m.Size() +} +func (m *TopicIdAndReputerRequestNonces) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdAndReputerRequestNonces.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdAndReputerRequestNonces proto.InternalMessageInfo + +func (m *TopicIdAndReputerRequestNonces) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdAndReputerRequestNonces) GetReputerRequestNonces() *ReputerRequestNonces { + if m != nil { + return m.ReputerRequestNonces + } + return nil +} + +type TopicIdActorIdTimeStampedValue struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=ActorId,proto3" json:"ActorId,omitempty"` + TimestampedValue *TimestampedValue `protobuf:"bytes,3,opt,name=TimestampedValue,proto3" json:"TimestampedValue,omitempty"` +} + +func (m *TopicIdActorIdTimeStampedValue) Reset() { *m = TopicIdActorIdTimeStampedValue{} } +func (m *TopicIdActorIdTimeStampedValue) String() string { return proto.CompactTextString(m) } +func (*TopicIdActorIdTimeStampedValue) ProtoMessage() {} +func (*TopicIdActorIdTimeStampedValue) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{25} +} +func (m *TopicIdActorIdTimeStampedValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdActorIdTimeStampedValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdActorIdTimeStampedValue.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdActorIdTimeStampedValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdActorIdTimeStampedValue.Merge(m, src) +} +func (m *TopicIdActorIdTimeStampedValue) XXX_Size() int { + return m.Size() +} +func (m *TopicIdActorIdTimeStampedValue) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdActorIdTimeStampedValue.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdActorIdTimeStampedValue proto.InternalMessageInfo + +func (m *TopicIdActorIdTimeStampedValue) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdActorIdTimeStampedValue) GetActorId() string { + if m != nil { + return m.ActorId + } + return "" +} + +func (m *TopicIdActorIdTimeStampedValue) GetTimestampedValue() *TimestampedValue { + if m != nil { + return m.TimestampedValue + } + return nil +} + +type TopicIdActorIdActorIdTimeStampedValue struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + ActorId1 string `protobuf:"bytes,2,opt,name=ActorId1,proto3" json:"ActorId1,omitempty"` + ActorId2 string `protobuf:"bytes,3,opt,name=ActorId2,proto3" json:"ActorId2,omitempty"` + TimestampedValue *TimestampedValue `protobuf:"bytes,4,opt,name=TimestampedValue,proto3" json:"TimestampedValue,omitempty"` +} + +func (m *TopicIdActorIdActorIdTimeStampedValue) Reset() { *m = TopicIdActorIdActorIdTimeStampedValue{} } +func (m *TopicIdActorIdActorIdTimeStampedValue) String() string { return proto.CompactTextString(m) } +func (*TopicIdActorIdActorIdTimeStampedValue) ProtoMessage() {} +func (*TopicIdActorIdActorIdTimeStampedValue) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{26} +} +func (m *TopicIdActorIdActorIdTimeStampedValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdActorIdActorIdTimeStampedValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdActorIdActorIdTimeStampedValue.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdActorIdActorIdTimeStampedValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdActorIdActorIdTimeStampedValue.Merge(m, src) +} +func (m *TopicIdActorIdActorIdTimeStampedValue) XXX_Size() int { + return m.Size() +} +func (m *TopicIdActorIdActorIdTimeStampedValue) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdActorIdActorIdTimeStampedValue.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdActorIdActorIdTimeStampedValue proto.InternalMessageInfo + +func (m *TopicIdActorIdActorIdTimeStampedValue) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdActorIdActorIdTimeStampedValue) GetActorId1() string { + if m != nil { + return m.ActorId1 + } + return "" +} + +func (m *TopicIdActorIdActorIdTimeStampedValue) GetActorId2() string { + if m != nil { + return m.ActorId2 + } + return "" +} + +func (m *TopicIdActorIdActorIdTimeStampedValue) GetTimestampedValue() *TimestampedValue { + if m != nil { + return m.TimestampedValue + } + return nil +} + +type TopicIdTimestampedActorNonce struct { + TopicId uint64 `protobuf:"varint,1,opt,name=TopicId,proto3" json:"TopicId,omitempty"` + TimestampedActorNonce *TimestampedActorNonce `protobuf:"bytes,2,opt,name=TimestampedActorNonce,proto3" json:"TimestampedActorNonce,omitempty"` +} + +func (m *TopicIdTimestampedActorNonce) Reset() { *m = TopicIdTimestampedActorNonce{} } +func (m *TopicIdTimestampedActorNonce) String() string { return proto.CompactTextString(m) } +func (*TopicIdTimestampedActorNonce) ProtoMessage() {} +func (*TopicIdTimestampedActorNonce) Descriptor() ([]byte, []int) { + return fileDescriptor_a7d3dc6bd191e64b, []int{27} +} +func (m *TopicIdTimestampedActorNonce) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIdTimestampedActorNonce) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIdTimestampedActorNonce.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIdTimestampedActorNonce) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIdTimestampedActorNonce.Merge(m, src) +} +func (m *TopicIdTimestampedActorNonce) XXX_Size() int { + return m.Size() +} +func (m *TopicIdTimestampedActorNonce) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIdTimestampedActorNonce.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIdTimestampedActorNonce proto.InternalMessageInfo + +func (m *TopicIdTimestampedActorNonce) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *TopicIdTimestampedActorNonce) GetTimestampedActorNonce() *TimestampedActorNonce { + if m != nil { + return m.TimestampedActorNonce + } + return nil +} + +func init() { + proto.RegisterType((*GenesisState)(nil), "emissions.v2.GenesisState") + proto.RegisterType((*TopicIdAndTopic)(nil), "emissions.v2.TopicIdAndTopic") + proto.RegisterType((*TopicAndActorId)(nil), "emissions.v2.TopicAndActorId") + proto.RegisterType((*TopicIdAndBlockHeight)(nil), "emissions.v2.TopicIdAndBlockHeight") + proto.RegisterType((*TopicIdBlockHeightScores)(nil), "emissions.v2.TopicIdBlockHeightScores") + proto.RegisterType((*TopicIdActorIdScore)(nil), "emissions.v2.TopicIdActorIdScore") + proto.RegisterType((*TopicIdActorIdListeningCoefficient)(nil), "emissions.v2.TopicIdActorIdListeningCoefficient") + proto.RegisterType((*TopicIdActorIdDec)(nil), "emissions.v2.TopicIdActorIdDec") + proto.RegisterType((*TopicIdAndInt)(nil), "emissions.v2.TopicIdAndInt") + proto.RegisterType((*TopicIdActorIdInt)(nil), "emissions.v2.TopicIdActorIdInt") + proto.RegisterType((*TopicIdDelegatorReputerDelegatorInfo)(nil), "emissions.v2.TopicIdDelegatorReputerDelegatorInfo") + proto.RegisterType((*BlockHeightTopicIdReputerStakeRemovalInfo)(nil), "emissions.v2.BlockHeightTopicIdReputerStakeRemovalInfo") + proto.RegisterType((*ActorIdTopicIdBlockHeight)(nil), "emissions.v2.ActorIdTopicIdBlockHeight") + proto.RegisterType((*BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo)(nil), "emissions.v2.BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo") + proto.RegisterType((*DelegatorReputerTopicIdBlockHeight)(nil), "emissions.v2.DelegatorReputerTopicIdBlockHeight") + proto.RegisterType((*TopicIdActorIdInference)(nil), "emissions.v2.TopicIdActorIdInference") + proto.RegisterType((*TopicIdActorIdForecast)(nil), "emissions.v2.TopicIdActorIdForecast") + proto.RegisterType((*LibP2PKeyAndOffchainNode)(nil), "emissions.v2.LibP2pKeyAndOffchainNode") + proto.RegisterType((*TopicIdAndDec)(nil), "emissions.v2.TopicIdAndDec") + proto.RegisterType((*TopicIdBlockHeightInferences)(nil), "emissions.v2.TopicIdBlockHeightInferences") + proto.RegisterType((*TopicIdBlockHeightForecasts)(nil), "emissions.v2.TopicIdBlockHeightForecasts") + proto.RegisterType((*TopicIdBlockHeightReputerValueBundles)(nil), "emissions.v2.TopicIdBlockHeightReputerValueBundles") + proto.RegisterType((*TopicIdBlockHeightValueBundles)(nil), "emissions.v2.TopicIdBlockHeightValueBundles") + proto.RegisterType((*TopicIdAndNonces)(nil), "emissions.v2.TopicIdAndNonces") + proto.RegisterType((*TopicIdAndReputerRequestNonces)(nil), "emissions.v2.TopicIdAndReputerRequestNonces") + proto.RegisterType((*TopicIdActorIdTimeStampedValue)(nil), "emissions.v2.TopicIdActorIdTimeStampedValue") + proto.RegisterType((*TopicIdActorIdActorIdTimeStampedValue)(nil), "emissions.v2.TopicIdActorIdActorIdTimeStampedValue") + proto.RegisterType((*TopicIdTimestampedActorNonce)(nil), "emissions.v2.TopicIdTimestampedActorNonce") +} + +func init() { proto.RegisterFile("emissions/v2/genesis.proto", fileDescriptor_a7d3dc6bd191e64b) } + +var fileDescriptor_a7d3dc6bd191e64b = []byte{ + // 2160 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x5a, 0xcd, 0x6f, 0xdc, 0xc6, + 0x15, 0x37, 0xb5, 0xb2, 0x6c, 0x3d, 0xc9, 0xb1, 0x3c, 0xfa, 0x1a, 0x7d, 0x78, 0xb5, 0xa1, 0xbf, + 0xd6, 0x8e, 0xbd, 0xeb, 0xac, 0xeb, 0x26, 0x68, 0x80, 0xa2, 0xbb, 0xb6, 0xd5, 0x6c, 0xea, 0xd8, + 0x02, 0xe5, 0xd8, 0xad, 0x13, 0xc0, 0xa1, 0xc8, 0xd9, 0x15, 0x21, 0x2e, 0xb9, 0x21, 0x67, 0x65, + 0xfb, 0xd6, 0x43, 0x7b, 0x6a, 0x81, 0x06, 0x4d, 0x0a, 0xb4, 0xe8, 0xa5, 0xc7, 0x1e, 0x73, 0xe8, + 0xa1, 0x40, 0xcf, 0x05, 0x72, 0x29, 0x10, 0xf4, 0x54, 0xf4, 0x10, 0x14, 0xf6, 0xa1, 0xd7, 0xfe, + 0x09, 0x05, 0x67, 0x86, 0x5c, 0x7e, 0x0c, 0xb9, 0xab, 0x55, 0x2e, 0x86, 0xc8, 0x79, 0xef, 0xf7, + 0xfb, 0xbd, 0x79, 0xc3, 0x37, 0x33, 0xcf, 0x0b, 0xeb, 0xa4, 0x67, 0xf9, 0xbe, 0xe5, 0x3a, 0x7e, + 0xfd, 0xb0, 0x51, 0xef, 0x12, 0x87, 0xf8, 0x96, 0x5f, 0xeb, 0x7b, 0x2e, 0x75, 0xd1, 0x7c, 0x34, + 0x56, 0x3b, 0x6c, 0xac, 0xaf, 0x19, 0xae, 0xdf, 0x73, 0xfd, 0x67, 0x6c, 0xac, 0xce, 0x1f, 0xb8, + 0xe1, 0xfa, 0x39, 0xbd, 0x67, 0x39, 0x6e, 0x9d, 0xfd, 0x2b, 0x5e, 0x2d, 0x75, 0xdd, 0xae, 0xcb, + 0x4d, 0x83, 0xbf, 0xc4, 0xdb, 0xb5, 0x04, 0x5b, 0x5f, 0xf7, 0xf4, 0x5e, 0x88, 0x81, 0x13, 0x43, + 0xbe, 0xe1, 0x7a, 0x44, 0x3e, 0x42, 0xf5, 0x03, 0xf9, 0x08, 0x7d, 0xd9, 0x27, 0x72, 0x34, 0xea, + 0xf6, 0x2d, 0x43, 0x2a, 0xe1, 0xb9, 0xeb, 0x1d, 0x10, 0x4f, 0x0c, 0xad, 0x26, 0x86, 0x1c, 0xd7, + 0x0c, 0x79, 0x92, 0x93, 0xe4, 0x91, 0xfe, 0x80, 0x46, 0x4e, 0x38, 0xe5, 0xe4, 0x18, 0xc2, 0x4b, + 0xfd, 0xdf, 0x15, 0x98, 0xff, 0x31, 0x9f, 0xd0, 0x5d, 0xaa, 0x53, 0x82, 0x1a, 0x30, 0xc3, 0x43, + 0xc6, 0x4a, 0x45, 0xa9, 0xce, 0x35, 0x96, 0x6a, 0xf1, 0x09, 0xae, 0xed, 0xb0, 0xb1, 0xd6, 0xf4, + 0xd7, 0xdf, 0x6e, 0x9d, 0xd0, 0x84, 0x25, 0xaa, 0xc0, 0x9c, 0x43, 0x5e, 0xd0, 0x47, 0x41, 0x04, + 0x6d, 0x13, 0x97, 0x2a, 0x4a, 0x75, 0x5a, 0x8b, 0xbf, 0x42, 0xb7, 0x61, 0x86, 0xc5, 0xe7, 0xe3, + 0xe9, 0x4a, 0xa9, 0x3a, 0xd7, 0x38, 0x9f, 0x44, 0x15, 0x66, 0x4d, 0xc7, 0x64, 0x7f, 0x69, 0xc2, + 0x18, 0xa9, 0x30, 0xaf, 0x1b, 0xd4, 0x3a, 0x24, 0x8f, 0xb8, 0xf3, 0xc9, 0x4a, 0xa9, 0x3a, 0xad, + 0x25, 0xde, 0xa1, 0x6b, 0xb0, 0xe0, 0x91, 0xe7, 0xba, 0x67, 0xea, 0x7b, 0x76, 0x68, 0x37, 0xc3, + 0xec, 0x32, 0xef, 0x51, 0x13, 0xe6, 0x19, 0xf2, 0x13, 0x36, 0xa3, 0x3e, 0x3e, 0x95, 0x2b, 0xa6, + 0xe9, 0x98, 0x4d, 0x83, 0xba, 0x5e, 0xdb, 0xd4, 0x12, 0x2e, 0xe8, 0x0e, 0x9c, 0x61, 0xcf, 0x1a, + 0x9f, 0x60, 0x1f, 0x9f, 0x1e, 0x07, 0x23, 0xe9, 0x83, 0x1e, 0xc2, 0x82, 0x78, 0x11, 0x08, 0x7c, + 0x10, 0xe4, 0x03, 0xcf, 0x32, 0x9c, 0x0b, 0x79, 0x13, 0xd3, 0xb2, 0x5d, 0xe3, 0xe0, 0x7d, 0x62, + 0x75, 0xf7, 0xa9, 0x96, 0x71, 0x46, 0x4f, 0x61, 0xc9, 0x72, 0x3a, 0xc4, 0x23, 0xde, 0x6e, 0xb0, + 0x28, 0xfd, 0xd6, 0x4b, 0x66, 0x8f, 0x81, 0x81, 0x5e, 0x96, 0x82, 0xc6, 0x10, 0xb9, 0x93, 0x26, + 0xc5, 0x40, 0x9f, 0xc2, 0x6a, 0xc7, 0xf5, 0x88, 0xa1, 0xfb, 0x34, 0x0d, 0x3f, 0x77, 0x24, 0xf8, + 0x3c, 0x98, 0x40, 0xbd, 0x58, 0xaf, 0x49, 0xf8, 0xf9, 0xa3, 0xa9, 0x97, 0x61, 0x20, 0x03, 0x36, + 0x6c, 0x9d, 0x12, 0x9f, 0xb6, 0x93, 0xb1, 0xf1, 0x7c, 0xe2, 0x33, 0x8c, 0xe2, 0x4d, 0xf9, 0xac, + 0xf3, 0xe4, 0x31, 0x0f, 0xad, 0x08, 0x05, 0x59, 0x50, 0xe6, 0xc3, 0xdb, 0x99, 0x08, 0x05, 0xcf, + 0x1b, 0xe3, 0xf2, 0x8c, 0x00, 0x42, 0x04, 0x36, 0xb9, 0x85, 0x96, 0x8c, 0x56, 0x3c, 0xe2, 0xb3, + 0xe3, 0x12, 0x15, 0xc2, 0x20, 0x0f, 0x36, 0xc4, 0x74, 0xde, 0xb7, 0x7c, 0x4a, 0x1c, 0xcb, 0xe9, + 0xde, 0x71, 0x49, 0xa7, 0x63, 0x19, 0x16, 0x71, 0x28, 0x5e, 0x60, 0x2c, 0x37, 0x8b, 0x58, 0x64, + 0x7e, 0x5a, 0x11, 0x28, 0x22, 0x70, 0xbe, 0xef, 0x91, 0x43, 0xcb, 0x1d, 0xf8, 0x42, 0x06, 0x5f, + 0xe2, 0xdb, 0x5e, 0xf0, 0xc1, 0xbb, 0x0e, 0x3e, 0xc7, 0x58, 0xb7, 0x8a, 0x58, 0xef, 0x12, 0x43, + 0x2b, 0x46, 0x41, 0x16, 0x6c, 0x85, 0x06, 0x3c, 0x9b, 0x8e, 0x41, 0x52, 0x44, 0x68, 0x3c, 0xa2, + 0x51, 0x38, 0xa8, 0x0b, 0xe5, 0xd0, 0x24, 0x4c, 0x68, 0x8a, 0x69, 0x71, 0x3c, 0xa6, 0x11, 0x30, + 0xc8, 0x80, 0xcd, 0xb4, 0x85, 0xc8, 0xa9, 0xa6, 0x53, 0xcb, 0xc5, 0x4b, 0xe3, 0xd1, 0x14, 0x82, + 0xa0, 0x1d, 0x00, 0xea, 0x52, 0xdd, 0xde, 0x0d, 0x76, 0x37, 0xbc, 0x5c, 0x51, 0xaa, 0xb3, 0xad, + 0x9b, 0xc1, 0x46, 0xf0, 0xef, 0x6f, 0xb7, 0x96, 0xf9, 0x5e, 0xeb, 0x9b, 0x07, 0x35, 0xcb, 0xad, + 0xf7, 0x74, 0xba, 0x5f, 0x6b, 0x3b, 0xf4, 0x9f, 0x7f, 0xb9, 0x01, 0x62, 0x13, 0x6e, 0x3b, 0xf4, + 0xcf, 0xff, 0xfd, 0xea, 0x9a, 0xa2, 0xc5, 0x30, 0xd0, 0x7b, 0x01, 0x62, 0xdf, 0x32, 0x38, 0xe2, + 0x0a, 0x13, 0xb9, 0x91, 0x57, 0x01, 0xdb, 0x0e, 0xd5, 0x62, 0xe6, 0xe8, 0x23, 0x58, 0x66, 0xfb, + 0xac, 0xc8, 0x72, 0x73, 0x40, 0xf7, 0x5d, 0xcf, 0xa2, 0x2f, 0xf1, 0xea, 0xe8, 0x60, 0x03, 0x2c, + 0xb9, 0x77, 0x04, 0xbb, 0x3b, 0xe8, 0x6d, 0x7b, 0x6e, 0xef, 0x2e, 0xb1, 0x49, 0x57, 0xa7, 0xae, + 0x87, 0xf1, 0x51, 0x60, 0xd3, 0xde, 0xe8, 0x13, 0x38, 0x6b, 0xf2, 0x07, 0x62, 0x32, 0xfd, 0x3e, + 0x5e, 0x63, 0x80, 0x0d, 0x29, 0x60, 0xe4, 0x28, 0xf4, 0x45, 0xcf, 0x6d, 0xa7, 0xe3, 0x6a, 0x69, + 0xa8, 0x60, 0xa1, 0x31, 0xda, 0x04, 0xa7, 0xff, 0x51, 0xdf, 0x75, 0xc2, 0xba, 0xb0, 0x3e, 0x9e, + 0xfa, 0x11, 0x30, 0xe8, 0x09, 0xac, 0x84, 0xdc, 0x7c, 0x09, 0xee, 0x10, 0x6f, 0x77, 0x5f, 0xf7, + 0x08, 0xde, 0x18, 0x6f, 0x89, 0xe5, 0xb8, 0xa3, 0x03, 0x58, 0x12, 0xf9, 0xe8, 0xb9, 0x87, 0xba, + 0x1d, 0xed, 0x01, 0x9b, 0x0c, 0xf6, 0x9d, 0x24, 0x6c, 0xac, 0xf8, 0x0b, 0x86, 0xb0, 0x8c, 0xc5, + 0x20, 0xd8, 0x4c, 0x49, 0x41, 0xd1, 0xc7, 0x19, 0x32, 0xa6, 0x10, 0x9f, 0x67, 0x64, 0x57, 0x92, + 0x64, 0x42, 0x7c, 0x76, 0xdf, 0xd1, 0xa4, 0x20, 0xe8, 0xd7, 0x0a, 0x6c, 0x86, 0x41, 0xee, 0xca, + 0x42, 0x2a, 0x33, 0x96, 0xf7, 0x47, 0x85, 0x94, 0xb3, 0x04, 0x48, 0x26, 0xc6, 0x42, 0x36, 0x44, + 0x73, 0xd5, 0xf0, 0x98, 0xb7, 0x64, 0xa5, 0x3c, 0xcd, 0x2d, 0x09, 0xbe, 0x10, 0x15, 0xdd, 0x03, + 0xb0, 0xc2, 0xa2, 0xe8, 0xe3, 0x0a, 0xe3, 0xb8, 0x54, 0xbc, 0xf8, 0xc2, 0x12, 0x1a, 0x73, 0x44, + 0x2d, 0x98, 0x0d, 0x0f, 0x0d, 0x3e, 0x7e, 0x93, 0xa1, 0x5c, 0x2c, 0x42, 0x89, 0xca, 0xe3, 0xd0, + 0x0d, 0xfd, 0x08, 0x4e, 0x3d, 0x17, 0xe7, 0x3d, 0x55, 0x76, 0xa0, 0xb8, 0x6f, 0xed, 0xed, 0x34, + 0xfa, 0x3f, 0x21, 0x2f, 0x9b, 0x8e, 0xf9, 0xb0, 0xd3, 0x31, 0xf6, 0x75, 0xcb, 0x79, 0xe0, 0x9a, + 0x44, 0x0b, 0xdd, 0x50, 0x0b, 0x4e, 0x7b, 0xe1, 0x71, 0xef, 0xc2, 0x91, 0x20, 0x22, 0x3f, 0x74, + 0x0f, 0xce, 0xb2, 0xda, 0xb5, 0x4d, 0x88, 0x46, 0x0e, 0x89, 0x33, 0x20, 0xf8, 0xe2, 0xe8, 0x7a, + 0x97, 0xf6, 0x41, 0x1f, 0xc2, 0x62, 0x58, 0xa3, 0x99, 0xe5, 0x13, 0x96, 0x0c, 0x7c, 0xa9, 0x18, + 0x2a, 0xf8, 0xf0, 0x64, 0x7e, 0x68, 0x07, 0xce, 0xe8, 0xb6, 0xdd, 0x1e, 0x66, 0xea, 0x32, 0x03, + 0xba, 0x36, 0xea, 0xc8, 0x35, 0xf4, 0xd0, 0x92, 0x00, 0xe8, 0x43, 0x98, 0xd7, 0x6d, 0x7b, 0x3b, + 0x4a, 0xda, 0x15, 0x06, 0x78, 0x75, 0x14, 0x60, 0xe4, 0xa0, 0x25, 0xdc, 0xd1, 0xc7, 0xf0, 0x86, + 0x6e, 0xdb, 0xf7, 0x5d, 0xdf, 0x6f, 0x0d, 0x1c, 0xd3, 0x26, 0x3e, 0xae, 0x32, 0xc0, 0x5b, 0xa3, + 0x00, 0xc5, 0xc2, 0x7d, 0xac, 0xdb, 0x03, 0x22, 0x5c, 0xb5, 0x14, 0x14, 0xfa, 0x04, 0x90, 0x43, + 0x68, 0x90, 0xe5, 0x38, 0xc1, 0x55, 0x46, 0x70, 0x7d, 0x14, 0x41, 0x02, 0x59, 0x82, 0x83, 0xbe, + 0x50, 0xa0, 0x1a, 0xce, 0xf9, 0x0e, 0xf1, 0x0c, 0xe2, 0x50, 0xbd, 0x2b, 0xca, 0xde, 0x23, 0x97, + 0x7d, 0x35, 0x66, 0x74, 0x8b, 0xb8, 0xc6, 0x76, 0xd3, 0x77, 0xc4, 0x6e, 0x5a, 0xef, 0x5a, 0x74, + 0x7f, 0xb0, 0x57, 0x33, 0xdc, 0x5e, 0x5d, 0xb7, 0x6d, 0xd7, 0xd3, 0x6f, 0x08, 0x82, 0xf0, 0x91, + 0x2d, 0x31, 0xbe, 0xcf, 0x06, 0xc9, 0x1d, 0x9b, 0x08, 0xfd, 0x14, 0x56, 0x07, 0x4e, 0x67, 0x60, + 0x77, 0x2c, 0xdb, 0x26, 0x26, 0x3f, 0x54, 0xb2, 0x3b, 0x84, 0x8f, 0xdf, 0x62, 0x81, 0x97, 0xf3, + 0x16, 0x11, 0xb7, 0xd2, 0xf2, 0xdc, 0xd1, 0x3e, 0xe0, 0xd8, 0x90, 0x20, 0x14, 0xd0, 0xd7, 0x0b, + 0xe6, 0xb4, 0xe9, 0x98, 0xd1, 0x41, 0xed, 0xb3, 0x01, 0xf1, 0xa9, 0x20, 0xca, 0x45, 0x43, 0x4e, + 0xea, 0x4c, 0xff, 0x80, 0xcf, 0x8d, 0x46, 0xba, 0x1e, 0xa1, 0x3e, 0xbe, 0x51, 0x44, 0x26, 0x8a, + 0xb9, 0xd5, 0x0b, 0xea, 0x56, 0xaf, 0x4f, 0x4c, 0x96, 0x47, 0xad, 0x08, 0x10, 0xd1, 0xec, 0xf1, + 0x3e, 0x45, 0x59, 0x9b, 0x80, 0x72, 0x04, 0x26, 0xfa, 0xa5, 0x02, 0x17, 0xb8, 0xc9, 0x43, 0x87, + 0xb4, 0x9d, 0x5c, 0xee, 0x7a, 0xc1, 0x07, 0x21, 0xb8, 0xf3, 0x24, 0x8c, 0x83, 0x8f, 0x5e, 0x40, + 0x85, 0x9b, 0x3d, 0xd0, 0xad, 0x43, 0x22, 0x9f, 0xf2, 0x9b, 0x13, 0xc4, 0x3f, 0x12, 0x15, 0xfd, + 0x46, 0x81, 0x6a, 0xa4, 0xf0, 0xe1, 0x20, 0xcc, 0x8e, 0x5c, 0xc2, 0xdb, 0x93, 0x4f, 0xc3, 0xd8, + 0x24, 0xe8, 0x77, 0x0a, 0xbc, 0x25, 0x31, 0xce, 0xcd, 0x4d, 0x63, 0x72, 0x51, 0x47, 0xe1, 0xc9, + 0xe8, 0x1a, 0x1a, 0xca, 0x27, 0xeb, 0xd6, 0x77, 0xa4, 0x6b, 0x04, 0x0f, 0xfa, 0xa3, 0x02, 0x35, + 0xb9, 0x7d, 0xee, 0x94, 0x7d, 0x6f, 0x72, 0x69, 0x47, 0xa4, 0x42, 0x35, 0x58, 0x0c, 0x6e, 0x37, + 0xcf, 0x28, 0xd1, 0x7b, 0xcf, 0x74, 0xd3, 0xf4, 0x88, 0xef, 0x13, 0x1f, 0x4f, 0x55, 0x4a, 0xd5, + 0x59, 0xed, 0x5c, 0x30, 0xf4, 0x88, 0xe8, 0xbd, 0x66, 0x38, 0x80, 0x3e, 0x85, 0x65, 0xb6, 0x1f, + 0xdf, 0xd7, 0x7d, 0xca, 0x4b, 0xdf, 0x1d, 0xb7, 0xd7, 0xb3, 0x28, 0xbe, 0x5d, 0xb0, 0x6b, 0x06, + 0x2a, 0x7d, 0xae, 0x92, 0xe9, 0x66, 0x35, 0x4c, 0x93, 0x03, 0xa1, 0x3d, 0x58, 0x89, 0x06, 0x44, + 0xcd, 0x13, 0x14, 0xdf, 0x3f, 0x32, 0x45, 0x0e, 0x92, 0xfa, 0x18, 0xce, 0xa6, 0xfa, 0x6d, 0x08, + 0xc3, 0xa9, 0xb0, 0x79, 0xa7, 0xb0, 0xe6, 0x5d, 0xf8, 0x88, 0xae, 0xc2, 0x49, 0xf6, 0x27, 0x9e, + 0x62, 0xdd, 0xc0, 0x45, 0x09, 0xbf, 0xc6, 0x2d, 0xd4, 0x7b, 0x02, 0x77, 0xd8, 0xf6, 0x2a, 0xc0, + 0xc5, 0x70, 0x4a, 0x18, 0x31, 0xe4, 0x59, 0x2d, 0x7c, 0x54, 0x77, 0x61, 0x59, 0xda, 0xf5, 0x2a, + 0x00, 0xab, 0xc0, 0x5c, 0xcc, 0x90, 0x01, 0x96, 0xb4, 0xf8, 0x2b, 0xf5, 0x17, 0x0a, 0xe0, 0xbc, + 0xc6, 0xd1, 0x71, 0x80, 0xd1, 0x75, 0x98, 0xe1, 0x28, 0xac, 0xeb, 0x99, 0x69, 0x97, 0x8a, 0xd6, + 0x94, 0xb0, 0x51, 0x29, 0x2c, 0x4a, 0x5a, 0x31, 0x93, 0x4c, 0x53, 0x90, 0x18, 0xe6, 0x2c, 0x78, + 0x17, 0x25, 0xbc, 0x1a, 0xb7, 0x50, 0xbf, 0x52, 0x40, 0x1d, 0xdd, 0x9b, 0x99, 0x48, 0xc5, 0x63, + 0x58, 0x92, 0xf6, 0x87, 0xb8, 0x28, 0x35, 0x7d, 0x4a, 0x96, 0x74, 0x84, 0xa4, 0xfe, 0xea, 0x6f, + 0x15, 0x38, 0x97, 0xb9, 0x3b, 0x4e, 0xa4, 0xb0, 0x0d, 0xa5, 0xbb, 0xc4, 0x60, 0x82, 0x8e, 0x71, + 0xbe, 0x0a, 0x30, 0xd4, 0x1e, 0x9c, 0x49, 0x9c, 0xce, 0x0b, 0xf4, 0xb4, 0xa0, 0xd4, 0x76, 0xf8, + 0x82, 0x99, 0xa4, 0x47, 0x12, 0x38, 0xab, 0xbf, 0xca, 0xcc, 0x41, 0x7b, 0xc2, 0x2c, 0x09, 0x35, + 0xa5, 0xe3, 0xa8, 0xf9, 0x9b, 0x02, 0x17, 0xc7, 0xe9, 0x4d, 0x14, 0x08, 0xdc, 0x84, 0xd9, 0x61, + 0x37, 0x85, 0x4b, 0x1c, 0xbe, 0x08, 0xfc, 0xc2, 0x5e, 0x45, 0x89, 0xcb, 0x0f, 0x7b, 0x0e, 0x4d, + 0x38, 0x93, 0xa0, 0xc0, 0xd3, 0x6c, 0x75, 0x6d, 0xe4, 0x5c, 0x59, 0xd9, 0x9d, 0x38, 0xe9, 0xa1, + 0xfe, 0x43, 0x81, 0xab, 0x63, 0x37, 0x0d, 0xd2, 0x9f, 0xbd, 0x92, 0xfd, 0xec, 0x63, 0x41, 0x4e, + 0x65, 0xb2, 0x90, 0x13, 0xc6, 0x07, 0xb0, 0x90, 0x66, 0x12, 0x91, 0xa4, 0x8e, 0xdc, 0x99, 0x0b, + 0x7e, 0xc6, 0x4f, 0xfd, 0x0c, 0xd6, 0x72, 0xdb, 0x12, 0xf1, 0x85, 0xa0, 0x24, 0x17, 0x42, 0xbe, + 0xec, 0x54, 0xc8, 0xa5, 0x6c, 0x09, 0xfd, 0x72, 0x0a, 0x7e, 0x30, 0x79, 0x93, 0xe2, 0x58, 0x73, + 0x9a, 0x58, 0x38, 0xa5, 0x82, 0x85, 0x33, 0x9d, 0x9c, 0xf1, 0x3d, 0xc0, 0x79, 0x7a, 0xf0, 0x49, + 0x36, 0xf3, 0x97, 0xa5, 0x6b, 0x28, 0xdb, 0x62, 0xc9, 0xc5, 0x51, 0x7f, 0xaf, 0x80, 0x3a, 0xba, + 0x5b, 0x92, 0x0c, 0x41, 0x29, 0x08, 0x61, 0x2a, 0x19, 0x42, 0x6c, 0x52, 0x4a, 0x85, 0x19, 0x9b, + 0x96, 0x6e, 0x7a, 0xab, 0x39, 0x4d, 0x96, 0x89, 0xca, 0xc8, 0x6d, 0x98, 0x8d, 0x00, 0x44, 0x85, + 0x5f, 0x4d, 0xce, 0xdf, 0xb0, 0x89, 0x33, 0xb4, 0x54, 0x7f, 0xae, 0xc0, 0x8a, 0xbc, 0x4b, 0x33, + 0x91, 0x8a, 0x06, 0x9c, 0x0e, 0xfd, 0x85, 0x88, 0x95, 0xa4, 0x88, 0xa8, 0x07, 0x14, 0xd9, 0xa9, + 0x2f, 0x00, 0xe7, 0xb5, 0x68, 0x82, 0xcc, 0x44, 0x63, 0x61, 0x66, 0xa2, 0x17, 0xe8, 0x87, 0x30, + 0x1f, 0xb7, 0x16, 0xc7, 0xa0, 0xf5, 0x24, 0x63, 0xa2, 0xe5, 0x93, 0xb0, 0x57, 0x69, 0x7c, 0xcf, + 0x28, 0xde, 0xc3, 0xc4, 0x4e, 0x35, 0xf5, 0x1d, 0xec, 0x54, 0x5f, 0x2a, 0xb0, 0x59, 0xd4, 0xb4, + 0x39, 0xd6, 0x91, 0xe7, 0x5d, 0x80, 0x58, 0xc3, 0x88, 0xa7, 0x00, 0xe7, 0xac, 0x03, 0x5f, 0x8b, + 0xd9, 0xaa, 0x9f, 0x2b, 0xb0, 0x51, 0xd0, 0xfa, 0x39, 0x96, 0xaa, 0xdb, 0x30, 0x3b, 0x6c, 0x3a, + 0x49, 0x17, 0xe7, 0xb0, 0xc5, 0x34, 0xb4, 0x54, 0xff, 0xaa, 0xc0, 0xa5, 0xb1, 0x9a, 0x47, 0xc7, + 0x12, 0xb7, 0x0b, 0x8b, 0x12, 0x48, 0x21, 0x33, 0xf5, 0x7f, 0x75, 0xb2, 0xc6, 0x95, 0xcc, 0x5b, + 0xfd, 0x83, 0x02, 0xe5, 0xe2, 0xb6, 0xd4, 0xb1, 0x34, 0xbf, 0x07, 0x73, 0x31, 0x2c, 0xa1, 0x75, + 0x2d, 0xa9, 0x35, 0x66, 0xa0, 0xc5, 0xad, 0xd5, 0xa7, 0xb0, 0x90, 0x6e, 0x1c, 0x15, 0x88, 0xb9, + 0x0e, 0x33, 0xa2, 0x4f, 0x34, 0x25, 0x3b, 0x44, 0x8b, 0x7e, 0x90, 0xb0, 0x09, 0xce, 0x86, 0xe5, + 0xe2, 0xd6, 0x51, 0x01, 0xd5, 0x63, 0x58, 0x92, 0x79, 0x08, 0x62, 0x55, 0x9a, 0x8a, 0x64, 0x5b, + 0x4a, 0xea, 0xaf, 0xfe, 0x29, 0x26, 0x4a, 0x7e, 0x3b, 0x9d, 0xa8, 0xd8, 0x7d, 0x00, 0x0b, 0xb1, + 0xcb, 0x1d, 0xc3, 0x11, 0x99, 0x48, 0xb7, 0xe9, 0x52, 0x56, 0x5a, 0xc6, 0x4f, 0xfd, 0xfb, 0x70, + 0xa9, 0x17, 0xdf, 0xa3, 0x0b, 0x94, 0xae, 0xc3, 0x69, 0xe1, 0xf4, 0xb6, 0x90, 0x1a, 0x3d, 0xc7, + 0xc6, 0x1a, 0x62, 0x93, 0x8e, 0x9e, 0xa5, 0x71, 0x4c, 0x4f, 0x18, 0xc7, 0x17, 0xc3, 0xe2, 0x26, + 0xbd, 0xf8, 0x16, 0xc8, 0xff, 0x19, 0x2c, 0x4b, 0x5d, 0x44, 0xfa, 0x2f, 0xe4, 0x6a, 0x89, 0xdf, + 0xdc, 0xa5, 0xaf, 0x5b, 0xda, 0xd7, 0xaf, 0xca, 0xca, 0x37, 0xaf, 0xca, 0xca, 0x7f, 0x5e, 0x95, + 0x95, 0xcf, 0x5f, 0x97, 0x4f, 0x7c, 0xf3, 0xba, 0x7c, 0xe2, 0x5f, 0xaf, 0xcb, 0x27, 0x9e, 0xbe, + 0x3b, 0x66, 0x09, 0x7f, 0x51, 0x1f, 0xfe, 0x4a, 0x87, 0xfd, 0x4c, 0x68, 0x6f, 0x86, 0xfd, 0x46, + 0xe7, 0xd6, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0xef, 0xac, 0x75, 0xc9, 0x00, 0x25, 0x00, 0x00, +} + +func (m *GenesisState) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TopicLastReputerCommit) > 0 { + for iNdEx := len(m.TopicLastReputerCommit) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TopicLastReputerCommit[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xb2 + } + } + if len(m.TopicLastWorkerCommit) > 0 { + for iNdEx := len(m.TopicLastWorkerCommit) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TopicLastWorkerCommit[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xaa + } + } + if len(m.LatestOneOutForecasterForecasterNetworkRegrets) > 0 { + for iNdEx := len(m.LatestOneOutForecasterForecasterNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LatestOneOutForecasterForecasterNetworkRegrets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0xa2 + } + } + if len(m.LatestOneOutForecasterInfererNetworkRegrets) > 0 { + for iNdEx := len(m.LatestOneOutForecasterInfererNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LatestOneOutForecasterInfererNetworkRegrets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x9a + } + } + if len(m.LatestOneOutInfererForecasterNetworkRegrets) > 0 { + for iNdEx := len(m.LatestOneOutInfererForecasterNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LatestOneOutInfererForecasterNetworkRegrets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x92 + } + } + if len(m.LatestOneOutInfererInfererNetworkRegrets) > 0 { + for iNdEx := len(m.LatestOneOutInfererInfererNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LatestOneOutInfererInfererNetworkRegrets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x8a + } + } + if len(m.LatestNaiveInfererNetworkRegrets) > 0 { + for iNdEx := len(m.LatestNaiveInfererNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LatestNaiveInfererNetworkRegrets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3 + i-- + dAtA[i] = 0x82 + } + } + if len(m.LatestOneInForecasterNetworkRegrets) > 0 { + for iNdEx := len(m.LatestOneInForecasterNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LatestOneInForecasterNetworkRegrets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xfa + } + } + if len(m.LatestForecasterNetworkRegrets) > 0 { + for iNdEx := len(m.LatestForecasterNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LatestForecasterNetworkRegrets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xf2 + } + } + if len(m.LatestInfererNetworkRegrets) > 0 { + for iNdEx := len(m.LatestInfererNetworkRegrets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LatestInfererNetworkRegrets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xea + } + } + if len(m.UnfulfilledReputerNonces) > 0 { + for iNdEx := len(m.UnfulfilledReputerNonces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnfulfilledReputerNonces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xe2 + } + } + if len(m.UnfulfilledWorkerNonces) > 0 { + for iNdEx := len(m.UnfulfilledWorkerNonces) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnfulfilledWorkerNonces[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xda + } + } + { + size := m.PreviousPercentageRewardToStakedReputers.Size() + i -= size + if _, err := m.PreviousPercentageRewardToStakedReputers.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xd2 + if len(m.NetworkLossBundles) > 0 { + for iNdEx := len(m.NetworkLossBundles) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.NetworkLossBundles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xca + } + } + if len(m.AllLossBundles) > 0 { + for iNdEx := len(m.AllLossBundles) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AllLossBundles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xc2 + } + } + if len(m.AllForecasts) > 0 { + for iNdEx := len(m.AllForecasts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AllForecasts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xba + } + } + if len(m.AllInferences) > 0 { + for iNdEx := len(m.AllInferences) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.AllInferences[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xb2 + } + } + if len(m.PreviousTopicWeight) > 0 { + for iNdEx := len(m.PreviousTopicWeight) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreviousTopicWeight[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xaa + } + } + if len(m.TopicFeeRevenue) > 0 { + for iNdEx := len(m.TopicFeeRevenue) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TopicFeeRevenue[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xa2 + } + } + if len(m.Reputers) > 0 { + for iNdEx := len(m.Reputers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Reputers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x9a + } + } + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x92 + } + } + if len(m.Forecasts) > 0 { + for iNdEx := len(m.Forecasts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Forecasts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x8a + } + } + if len(m.Inferences) > 0 { + for iNdEx := len(m.Inferences) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Inferences[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x82 + } + } + if len(m.DelegateStakeRemovalsByActor) > 0 { + for iNdEx := len(m.DelegateStakeRemovalsByActor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DelegateStakeRemovalsByActor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xfa + } + } + if len(m.DelegateStakeRemovalsByBlock) > 0 { + for iNdEx := len(m.DelegateStakeRemovalsByBlock) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DelegateStakeRemovalsByBlock[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf2 + } + } + if len(m.StakeRemovalsByActor) > 0 { + for iNdEx := len(m.StakeRemovalsByActor) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.StakeRemovalsByActor[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xea + } + } + if len(m.StakeRemovalsByBlock) > 0 { + for iNdEx := len(m.StakeRemovalsByBlock) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.StakeRemovalsByBlock[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe2 + } + } + if len(m.DelegateRewardPerShare) > 0 { + for iNdEx := len(m.DelegateRewardPerShare) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DelegateRewardPerShare[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xda + } + } + if len(m.StakeFromDelegatorsUponReputer) > 0 { + for iNdEx := len(m.StakeFromDelegatorsUponReputer) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.StakeFromDelegatorsUponReputer[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd2 + } + } + if len(m.DelegatedStakes) > 0 { + for iNdEx := len(m.DelegatedStakes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.DelegatedStakes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca + } + } + if len(m.StakeSumFromDelegator) > 0 { + for iNdEx := len(m.StakeSumFromDelegator) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.StakeSumFromDelegator[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 + } + } + if len(m.StakeReputerAuthority) > 0 { + for iNdEx := len(m.StakeReputerAuthority) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.StakeReputerAuthority[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba + } + } + if len(m.TopicStake) > 0 { + for iNdEx := len(m.TopicStake) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TopicStake[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 + } + } + { + size := m.TotalStake.Size() + i -= size + if _, err := m.TotalStake.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa + if len(m.PreviousForecasterScoreRatio) > 0 { + for iNdEx := len(m.PreviousForecasterScoreRatio) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreviousForecasterScoreRatio[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + } + if len(m.PreviousForecastRewardFraction) > 0 { + for iNdEx := len(m.PreviousForecastRewardFraction) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreviousForecastRewardFraction[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + } + if len(m.PreviousInferenceRewardFraction) > 0 { + for iNdEx := len(m.PreviousInferenceRewardFraction) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreviousInferenceRewardFraction[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + } + if len(m.PreviousReputerRewardFraction) > 0 { + for iNdEx := len(m.PreviousReputerRewardFraction) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PreviousReputerRewardFraction[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + } + if len(m.ReputerListeningCoefficient) > 0 { + for iNdEx := len(m.ReputerListeningCoefficient) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ReputerListeningCoefficient[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + } + if len(m.LatestReputerScoresByReputer) > 0 { + for iNdEx := len(m.LatestReputerScoresByReputer) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LatestReputerScoresByReputer[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } + } + if len(m.LatestForecasterScoresByWorker) > 0 { + for iNdEx := len(m.LatestForecasterScoresByWorker) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LatestForecasterScoresByWorker[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + } + if len(m.LatestInfererScoresByWorker) > 0 { + for iNdEx := len(m.LatestInfererScoresByWorker) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.LatestInfererScoresByWorker[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + } + if len(m.ReputerScoresByBlock) > 0 { + for iNdEx := len(m.ReputerScoresByBlock) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ReputerScoresByBlock[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + } + if len(m.ForecasterScoresByBlock) > 0 { + for iNdEx := len(m.ForecasterScoresByBlock) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ForecasterScoresByBlock[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + } + if len(m.InfererScoresByBlock) > 0 { + for iNdEx := len(m.InfererScoresByBlock) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InfererScoresByBlock[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + } + if len(m.TopicRewardNonce) > 0 { + for iNdEx := len(m.TopicRewardNonce) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TopicRewardNonce[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + } + if len(m.TopicReputers) > 0 { + for iNdEx := len(m.TopicReputers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TopicReputers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + } + if len(m.TopicWorkers) > 0 { + for iNdEx := len(m.TopicWorkers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.TopicWorkers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.RewardableTopics) > 0 { + dAtA2 := make([]byte, len(m.RewardableTopics)*10) + var j1 int + for _, num := range m.RewardableTopics { + for num >= 1<<7 { + dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA2[j1] = uint8(num) + j1++ + } + i -= j1 + copy(dAtA[i:], dAtA2[:j1]) + i = encodeVarintGenesis(dAtA, i, uint64(j1)) + i-- + dAtA[i] = 0x32 + } + if len(m.ActiveTopics) > 0 { + dAtA4 := make([]byte, len(m.ActiveTopics)*10) + var j3 int + for _, num := range m.ActiveTopics { + for num >= 1<<7 { + dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j3++ + } + dAtA4[j3] = uint8(num) + j3++ + } + i -= j3 + copy(dAtA[i:], dAtA4[:j3]) + i = encodeVarintGenesis(dAtA, i, uint64(j3)) + i-- + dAtA[i] = 0x2a + } + if len(m.Topics) > 0 { + for iNdEx := len(m.Topics) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Topics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if m.NextTopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.NextTopicId)) + i-- + dAtA[i] = 0x18 + } + if len(m.CoreTeamAddresses) > 0 { + for iNdEx := len(m.CoreTeamAddresses) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.CoreTeamAddresses[iNdEx]) + copy(dAtA[i:], m.CoreTeamAddresses[iNdEx]) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.CoreTeamAddresses[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *TopicIdAndTopic) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdAndTopic) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdAndTopic) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Topic != nil { + { + size, err := m.Topic.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicAndActorId) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicAndActorId) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicAndActorId) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ActorId) > 0 { + i -= len(m.ActorId) + copy(dAtA[i:], m.ActorId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ActorId))) + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdAndBlockHeight) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdAndBlockHeight) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdAndBlockHeight) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BlockHeight != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdBlockHeightScores) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdBlockHeightScores) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdBlockHeightScores) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Scores != nil { + { + size, err := m.Scores.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.BlockHeight != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdActorIdScore) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdActorIdScore) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdActorIdScore) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Score != nil { + { + size, err := m.Score.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.ActorId) > 0 { + i -= len(m.ActorId) + copy(dAtA[i:], m.ActorId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ActorId))) + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdActorIdListeningCoefficient) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdActorIdListeningCoefficient) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdActorIdListeningCoefficient) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ListeningCoefficient != nil { + { + size, err := m.ListeningCoefficient.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.ActorId) > 0 { + i -= len(m.ActorId) + copy(dAtA[i:], m.ActorId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ActorId))) + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdActorIdDec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdActorIdDec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdActorIdDec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Dec.Size() + i -= size + if _, err := m.Dec.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.ActorId) > 0 { + i -= len(m.ActorId) + copy(dAtA[i:], m.ActorId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ActorId))) + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdAndInt) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdAndInt) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdAndInt) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Int.Size() + i -= size + if _, err := m.Int.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdActorIdInt) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdActorIdInt) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdActorIdInt) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Int.Size() + i -= size + if _, err := m.Int.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + if len(m.ActorId) > 0 { + i -= len(m.ActorId) + copy(dAtA[i:], m.ActorId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ActorId))) + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdDelegatorReputerDelegatorInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdDelegatorReputerDelegatorInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdDelegatorReputerDelegatorInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DelegatorInfo != nil { + { + size, err := m.DelegatorInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.Reputer) > 0 { + i -= len(m.Reputer) + copy(dAtA[i:], m.Reputer) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Reputer))) + i-- + dAtA[i] = 0x1a + } + if len(m.Delegator) > 0 { + i -= len(m.Delegator) + copy(dAtA[i:], m.Delegator) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Delegator))) + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.StakeRemovalInfo != nil { + { + size, err := m.StakeRemovalInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.Reputer) > 0 { + i -= len(m.Reputer) + copy(dAtA[i:], m.Reputer) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Reputer))) + i-- + dAtA[i] = 0x1a + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x10 + } + if m.BlockHeight != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ActorIdTopicIdBlockHeight) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ActorIdTopicIdBlockHeight) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ActorIdTopicIdBlockHeight) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BlockHeight != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x18 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(m.ActorId) > 0 { + i -= len(m.ActorId) + copy(dAtA[i:], m.ActorId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ActorId))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.DelegateStakeRemovalInfo != nil { + { + size, err := m.DelegateStakeRemovalInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.Reputer) > 0 { + i -= len(m.Reputer) + copy(dAtA[i:], m.Reputer) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Reputer))) + i-- + dAtA[i] = 0x22 + } + if len(m.Delegator) > 0 { + i -= len(m.Delegator) + copy(dAtA[i:], m.Delegator) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Delegator))) + i-- + dAtA[i] = 0x1a + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x10 + } + if m.BlockHeight != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *DelegatorReputerTopicIdBlockHeight) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DelegatorReputerTopicIdBlockHeight) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DelegatorReputerTopicIdBlockHeight) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.BlockHeight != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x20 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x18 + } + if len(m.Reputer) > 0 { + i -= len(m.Reputer) + copy(dAtA[i:], m.Reputer) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Reputer))) + i-- + dAtA[i] = 0x12 + } + if len(m.Delegator) > 0 { + i -= len(m.Delegator) + copy(dAtA[i:], m.Delegator) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.Delegator))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TopicIdActorIdInference) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdActorIdInference) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdActorIdInference) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Inference != nil { + { + size, err := m.Inference.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.ActorId) > 0 { + i -= len(m.ActorId) + copy(dAtA[i:], m.ActorId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ActorId))) + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdActorIdForecast) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdActorIdForecast) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdActorIdForecast) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Forecast != nil { + { + size, err := m.Forecast.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.ActorId) > 0 { + i -= len(m.ActorId) + copy(dAtA[i:], m.ActorId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ActorId))) + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *LibP2PKeyAndOffchainNode) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LibP2PKeyAndOffchainNode) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LibP2PKeyAndOffchainNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.OffchainNode != nil { + { + size, err := m.OffchainNode.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if len(m.LibP2PKey) > 0 { + i -= len(m.LibP2PKey) + copy(dAtA[i:], m.LibP2PKey) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.LibP2PKey))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *TopicIdAndDec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdAndDec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdAndDec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.Dec.Size() + i -= size + if _, err := m.Dec.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdBlockHeightInferences) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdBlockHeightInferences) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdBlockHeightInferences) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Inferences != nil { + { + size, err := m.Inferences.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.BlockHeight != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdBlockHeightForecasts) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdBlockHeightForecasts) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdBlockHeightForecasts) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Forecasts != nil { + { + size, err := m.Forecasts.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.BlockHeight != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdBlockHeightReputerValueBundles) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdBlockHeightReputerValueBundles) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdBlockHeightReputerValueBundles) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ReputerValueBundles != nil { + { + size, err := m.ReputerValueBundles.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.BlockHeight != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdBlockHeightValueBundles) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdBlockHeightValueBundles) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdBlockHeightValueBundles) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ValueBundle != nil { + { + size, err := m.ValueBundle.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.BlockHeight != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdAndNonces) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdAndNonces) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdAndNonces) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Nonces != nil { + { + size, err := m.Nonces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdAndReputerRequestNonces) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdAndReputerRequestNonces) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdAndReputerRequestNonces) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ReputerRequestNonces != nil { + { + size, err := m.ReputerRequestNonces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdActorIdTimeStampedValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdActorIdTimeStampedValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdActorIdTimeStampedValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TimestampedValue != nil { + { + size, err := m.TimestampedValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if len(m.ActorId) > 0 { + i -= len(m.ActorId) + copy(dAtA[i:], m.ActorId) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ActorId))) + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdActorIdActorIdTimeStampedValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdActorIdActorIdTimeStampedValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdActorIdActorIdTimeStampedValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TimestampedValue != nil { + { + size, err := m.TimestampedValue.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if len(m.ActorId2) > 0 { + i -= len(m.ActorId2) + copy(dAtA[i:], m.ActorId2) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ActorId2))) + i-- + dAtA[i] = 0x1a + } + if len(m.ActorId1) > 0 { + i -= len(m.ActorId1) + copy(dAtA[i:], m.ActorId1) + i = encodeVarintGenesis(dAtA, i, uint64(len(m.ActorId1))) + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *TopicIdTimestampedActorNonce) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIdTimestampedActorNonce) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIdTimestampedActorNonce) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TimestampedActorNonce != nil { + { + size, err := m.TimestampedActorNonce.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenesis(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintGenesis(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { + offset -= sovGenesis(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *GenesisState) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Params.Size() + n += 1 + l + sovGenesis(uint64(l)) + if len(m.CoreTeamAddresses) > 0 { + for _, s := range m.CoreTeamAddresses { + l = len(s) + n += 1 + l + sovGenesis(uint64(l)) + } + } + if m.NextTopicId != 0 { + n += 1 + sovGenesis(uint64(m.NextTopicId)) + } + if len(m.Topics) > 0 { + for _, e := range m.Topics { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.ActiveTopics) > 0 { + l = 0 + for _, e := range m.ActiveTopics { + l += sovGenesis(uint64(e)) + } + n += 1 + sovGenesis(uint64(l)) + l + } + if len(m.RewardableTopics) > 0 { + l = 0 + for _, e := range m.RewardableTopics { + l += sovGenesis(uint64(e)) + } + n += 1 + sovGenesis(uint64(l)) + l + } + if len(m.TopicWorkers) > 0 { + for _, e := range m.TopicWorkers { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.TopicReputers) > 0 { + for _, e := range m.TopicReputers { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.TopicRewardNonce) > 0 { + for _, e := range m.TopicRewardNonce { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.InfererScoresByBlock) > 0 { + for _, e := range m.InfererScoresByBlock { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.ForecasterScoresByBlock) > 0 { + for _, e := range m.ForecasterScoresByBlock { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.ReputerScoresByBlock) > 0 { + for _, e := range m.ReputerScoresByBlock { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.LatestInfererScoresByWorker) > 0 { + for _, e := range m.LatestInfererScoresByWorker { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.LatestForecasterScoresByWorker) > 0 { + for _, e := range m.LatestForecasterScoresByWorker { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.LatestReputerScoresByReputer) > 0 { + for _, e := range m.LatestReputerScoresByReputer { + l = e.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + } + if len(m.ReputerListeningCoefficient) > 0 { + for _, e := range m.ReputerListeningCoefficient { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.PreviousReputerRewardFraction) > 0 { + for _, e := range m.PreviousReputerRewardFraction { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.PreviousInferenceRewardFraction) > 0 { + for _, e := range m.PreviousInferenceRewardFraction { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.PreviousForecastRewardFraction) > 0 { + for _, e := range m.PreviousForecastRewardFraction { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.PreviousForecasterScoreRatio) > 0 { + for _, e := range m.PreviousForecasterScoreRatio { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + l = m.TotalStake.Size() + n += 2 + l + sovGenesis(uint64(l)) + if len(m.TopicStake) > 0 { + for _, e := range m.TopicStake { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.StakeReputerAuthority) > 0 { + for _, e := range m.StakeReputerAuthority { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.StakeSumFromDelegator) > 0 { + for _, e := range m.StakeSumFromDelegator { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.DelegatedStakes) > 0 { + for _, e := range m.DelegatedStakes { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.StakeFromDelegatorsUponReputer) > 0 { + for _, e := range m.StakeFromDelegatorsUponReputer { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.DelegateRewardPerShare) > 0 { + for _, e := range m.DelegateRewardPerShare { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.StakeRemovalsByBlock) > 0 { + for _, e := range m.StakeRemovalsByBlock { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.StakeRemovalsByActor) > 0 { + for _, e := range m.StakeRemovalsByActor { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.DelegateStakeRemovalsByBlock) > 0 { + for _, e := range m.DelegateStakeRemovalsByBlock { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.DelegateStakeRemovalsByActor) > 0 { + for _, e := range m.DelegateStakeRemovalsByActor { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.Inferences) > 0 { + for _, e := range m.Inferences { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.Forecasts) > 0 { + for _, e := range m.Forecasts { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.Workers) > 0 { + for _, e := range m.Workers { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.Reputers) > 0 { + for _, e := range m.Reputers { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.TopicFeeRevenue) > 0 { + for _, e := range m.TopicFeeRevenue { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.PreviousTopicWeight) > 0 { + for _, e := range m.PreviousTopicWeight { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.AllInferences) > 0 { + for _, e := range m.AllInferences { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.AllForecasts) > 0 { + for _, e := range m.AllForecasts { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.AllLossBundles) > 0 { + for _, e := range m.AllLossBundles { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.NetworkLossBundles) > 0 { + for _, e := range m.NetworkLossBundles { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + l = m.PreviousPercentageRewardToStakedReputers.Size() + n += 2 + l + sovGenesis(uint64(l)) + if len(m.UnfulfilledWorkerNonces) > 0 { + for _, e := range m.UnfulfilledWorkerNonces { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.UnfulfilledReputerNonces) > 0 { + for _, e := range m.UnfulfilledReputerNonces { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.LatestInfererNetworkRegrets) > 0 { + for _, e := range m.LatestInfererNetworkRegrets { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.LatestForecasterNetworkRegrets) > 0 { + for _, e := range m.LatestForecasterNetworkRegrets { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.LatestOneInForecasterNetworkRegrets) > 0 { + for _, e := range m.LatestOneInForecasterNetworkRegrets { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.LatestNaiveInfererNetworkRegrets) > 0 { + for _, e := range m.LatestNaiveInfererNetworkRegrets { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.LatestOneOutInfererInfererNetworkRegrets) > 0 { + for _, e := range m.LatestOneOutInfererInfererNetworkRegrets { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.LatestOneOutInfererForecasterNetworkRegrets) > 0 { + for _, e := range m.LatestOneOutInfererForecasterNetworkRegrets { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.LatestOneOutForecasterInfererNetworkRegrets) > 0 { + for _, e := range m.LatestOneOutForecasterInfererNetworkRegrets { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.LatestOneOutForecasterForecasterNetworkRegrets) > 0 { + for _, e := range m.LatestOneOutForecasterForecasterNetworkRegrets { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.TopicLastWorkerCommit) > 0 { + for _, e := range m.TopicLastWorkerCommit { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + if len(m.TopicLastReputerCommit) > 0 { + for _, e := range m.TopicLastReputerCommit { + l = e.Size() + n += 2 + l + sovGenesis(uint64(l)) + } + } + return n +} + +func (m *TopicIdAndTopic) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + if m.Topic != nil { + l = m.Topic.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicAndActorId) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = len(m.ActorId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdAndBlockHeight) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + if m.BlockHeight != 0 { + n += 1 + sovGenesis(uint64(m.BlockHeight)) + } + return n +} + +func (m *TopicIdBlockHeightScores) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + if m.BlockHeight != 0 { + n += 1 + sovGenesis(uint64(m.BlockHeight)) + } + if m.Scores != nil { + l = m.Scores.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdActorIdScore) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = len(m.ActorId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.Score != nil { + l = m.Score.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdActorIdListeningCoefficient) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = len(m.ActorId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.ListeningCoefficient != nil { + l = m.ListeningCoefficient.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdActorIdDec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = len(m.ActorId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = m.Dec.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *TopicIdAndInt) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = m.Int.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *TopicIdActorIdInt) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = len(m.ActorId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = m.Int.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *TopicIdDelegatorReputerDelegatorInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = len(m.Delegator) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.Reputer) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.DelegatorInfo != nil { + l = m.DelegatorInfo.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BlockHeight != 0 { + n += 1 + sovGenesis(uint64(m.BlockHeight)) + } + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = len(m.Reputer) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.StakeRemovalInfo != nil { + l = m.StakeRemovalInfo.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *ActorIdTopicIdBlockHeight) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ActorId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + if m.BlockHeight != 0 { + n += 1 + sovGenesis(uint64(m.BlockHeight)) + } + return n +} + +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.BlockHeight != 0 { + n += 1 + sovGenesis(uint64(m.BlockHeight)) + } + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = len(m.Delegator) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.Reputer) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.DelegateStakeRemovalInfo != nil { + l = m.DelegateStakeRemovalInfo.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *DelegatorReputerTopicIdBlockHeight) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Delegator) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.Reputer) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + if m.BlockHeight != 0 { + n += 1 + sovGenesis(uint64(m.BlockHeight)) + } + return n +} + +func (m *TopicIdActorIdInference) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = len(m.ActorId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.Inference != nil { + l = m.Inference.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdActorIdForecast) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = len(m.ActorId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.Forecast != nil { + l = m.Forecast.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *LibP2PKeyAndOffchainNode) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.LibP2PKey) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.OffchainNode != nil { + l = m.OffchainNode.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdAndDec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = m.Dec.Size() + n += 1 + l + sovGenesis(uint64(l)) + return n +} + +func (m *TopicIdBlockHeightInferences) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + if m.BlockHeight != 0 { + n += 1 + sovGenesis(uint64(m.BlockHeight)) + } + if m.Inferences != nil { + l = m.Inferences.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdBlockHeightForecasts) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + if m.BlockHeight != 0 { + n += 1 + sovGenesis(uint64(m.BlockHeight)) + } + if m.Forecasts != nil { + l = m.Forecasts.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdBlockHeightReputerValueBundles) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + if m.BlockHeight != 0 { + n += 1 + sovGenesis(uint64(m.BlockHeight)) + } + if m.ReputerValueBundles != nil { + l = m.ReputerValueBundles.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdBlockHeightValueBundles) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + if m.BlockHeight != 0 { + n += 1 + sovGenesis(uint64(m.BlockHeight)) + } + if m.ValueBundle != nil { + l = m.ValueBundle.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdAndNonces) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + if m.Nonces != nil { + l = m.Nonces.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdAndReputerRequestNonces) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + if m.ReputerRequestNonces != nil { + l = m.ReputerRequestNonces.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdActorIdTimeStampedValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = len(m.ActorId) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.TimestampedValue != nil { + l = m.TimestampedValue.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdActorIdActorIdTimeStampedValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + l = len(m.ActorId1) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + l = len(m.ActorId2) + if l > 0 { + n += 1 + l + sovGenesis(uint64(l)) + } + if m.TimestampedValue != nil { + l = m.TimestampedValue.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func (m *TopicIdTimestampedActorNonce) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovGenesis(uint64(m.TopicId)) + } + if m.TimestampedActorNonce != nil { + l = m.TimestampedActorNonce.Size() + n += 1 + l + sovGenesis(uint64(l)) + } + return n +} + +func sovGenesis(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenesis(x uint64) (n int) { + return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *GenesisState) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CoreTeamAddresses", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CoreTeamAddresses = append(m.CoreTeamAddresses, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NextTopicId", wireType) + } + m.NextTopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.NextTopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Topics = append(m.Topics, &TopicIdAndTopic{}) + if err := m.Topics[len(m.Topics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActiveTopics = append(m.ActiveTopics, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.ActiveTopics) == 0 { + m.ActiveTopics = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActiveTopics = append(m.ActiveTopics, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveTopics", wireType) + } + case 6: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RewardableTopics = append(m.RewardableTopics, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.RewardableTopics) == 0 { + m.RewardableTopics = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RewardableTopics = append(m.RewardableTopics, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field RewardableTopics", wireType) + } + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicWorkers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TopicWorkers = append(m.TopicWorkers, &TopicAndActorId{}) + if err := m.TopicWorkers[len(m.TopicWorkers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicReputers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TopicReputers = append(m.TopicReputers, &TopicAndActorId{}) + if err := m.TopicReputers[len(m.TopicReputers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicRewardNonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TopicRewardNonce = append(m.TopicRewardNonce, &TopicIdAndBlockHeight{}) + if err := m.TopicRewardNonce[len(m.TopicRewardNonce)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InfererScoresByBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InfererScoresByBlock = append(m.InfererScoresByBlock, &TopicIdBlockHeightScores{}) + if err := m.InfererScoresByBlock[len(m.InfererScoresByBlock)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ForecasterScoresByBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ForecasterScoresByBlock = append(m.ForecasterScoresByBlock, &TopicIdBlockHeightScores{}) + if err := m.ForecasterScoresByBlock[len(m.ForecasterScoresByBlock)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReputerScoresByBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReputerScoresByBlock = append(m.ReputerScoresByBlock, &TopicIdBlockHeightScores{}) + if err := m.ReputerScoresByBlock[len(m.ReputerScoresByBlock)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestInfererScoresByWorker", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LatestInfererScoresByWorker = append(m.LatestInfererScoresByWorker, &TopicIdActorIdScore{}) + if err := m.LatestInfererScoresByWorker[len(m.LatestInfererScoresByWorker)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestForecasterScoresByWorker", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LatestForecasterScoresByWorker = append(m.LatestForecasterScoresByWorker, &TopicIdActorIdScore{}) + if err := m.LatestForecasterScoresByWorker[len(m.LatestForecasterScoresByWorker)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestReputerScoresByReputer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LatestReputerScoresByReputer = append(m.LatestReputerScoresByReputer, &TopicIdActorIdScore{}) + if err := m.LatestReputerScoresByReputer[len(m.LatestReputerScoresByReputer)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReputerListeningCoefficient", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ReputerListeningCoefficient = append(m.ReputerListeningCoefficient, &TopicIdActorIdListeningCoefficient{}) + if err := m.ReputerListeningCoefficient[len(m.ReputerListeningCoefficient)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousReputerRewardFraction", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousReputerRewardFraction = append(m.PreviousReputerRewardFraction, &TopicIdActorIdDec{}) + if err := m.PreviousReputerRewardFraction[len(m.PreviousReputerRewardFraction)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousInferenceRewardFraction", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousInferenceRewardFraction = append(m.PreviousInferenceRewardFraction, &TopicIdActorIdDec{}) + if err := m.PreviousInferenceRewardFraction[len(m.PreviousInferenceRewardFraction)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousForecastRewardFraction", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousForecastRewardFraction = append(m.PreviousForecastRewardFraction, &TopicIdActorIdDec{}) + if err := m.PreviousForecastRewardFraction[len(m.PreviousForecastRewardFraction)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousForecasterScoreRatio", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousForecasterScoreRatio = append(m.PreviousForecasterScoreRatio, &TopicIdActorIdDec{}) + if err := m.PreviousForecasterScoreRatio[len(m.PreviousForecasterScoreRatio)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TotalStake", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TotalStake.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicStake", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TopicStake = append(m.TopicStake, &TopicIdAndInt{}) + if err := m.TopicStake[len(m.TopicStake)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 23: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StakeReputerAuthority", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StakeReputerAuthority = append(m.StakeReputerAuthority, &TopicIdActorIdInt{}) + if err := m.StakeReputerAuthority[len(m.StakeReputerAuthority)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 24: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StakeSumFromDelegator", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StakeSumFromDelegator = append(m.StakeSumFromDelegator, &TopicIdActorIdInt{}) + if err := m.StakeSumFromDelegator[len(m.StakeSumFromDelegator)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 25: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegatedStakes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DelegatedStakes = append(m.DelegatedStakes, &TopicIdDelegatorReputerDelegatorInfo{}) + if err := m.DelegatedStakes[len(m.DelegatedStakes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 26: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StakeFromDelegatorsUponReputer", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StakeFromDelegatorsUponReputer = append(m.StakeFromDelegatorsUponReputer, &TopicIdActorIdInt{}) + if err := m.StakeFromDelegatorsUponReputer[len(m.StakeFromDelegatorsUponReputer)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 27: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegateRewardPerShare", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DelegateRewardPerShare = append(m.DelegateRewardPerShare, &TopicIdActorIdDec{}) + if err := m.DelegateRewardPerShare[len(m.DelegateRewardPerShare)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 28: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StakeRemovalsByBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StakeRemovalsByBlock = append(m.StakeRemovalsByBlock, &BlockHeightTopicIdReputerStakeRemovalInfo{}) + if err := m.StakeRemovalsByBlock[len(m.StakeRemovalsByBlock)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 29: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StakeRemovalsByActor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StakeRemovalsByActor = append(m.StakeRemovalsByActor, &ActorIdTopicIdBlockHeight{}) + if err := m.StakeRemovalsByActor[len(m.StakeRemovalsByActor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 30: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegateStakeRemovalsByBlock", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DelegateStakeRemovalsByBlock = append(m.DelegateStakeRemovalsByBlock, &BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo{}) + if err := m.DelegateStakeRemovalsByBlock[len(m.DelegateStakeRemovalsByBlock)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 31: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegateStakeRemovalsByActor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DelegateStakeRemovalsByActor = append(m.DelegateStakeRemovalsByActor, &DelegatorReputerTopicIdBlockHeight{}) + if err := m.DelegateStakeRemovalsByActor[len(m.DelegateStakeRemovalsByActor)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 32: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inferences", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Inferences = append(m.Inferences, &TopicIdActorIdInference{}) + if err := m.Inferences[len(m.Inferences)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 33: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Forecasts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Forecasts = append(m.Forecasts, &TopicIdActorIdForecast{}) + if err := m.Forecasts[len(m.Forecasts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 34: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Workers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Workers = append(m.Workers, &LibP2PKeyAndOffchainNode{}) + if err := m.Workers[len(m.Workers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 35: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reputers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reputers = append(m.Reputers, &LibP2PKeyAndOffchainNode{}) + if err := m.Reputers[len(m.Reputers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 36: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicFeeRevenue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TopicFeeRevenue = append(m.TopicFeeRevenue, &TopicIdAndInt{}) + if err := m.TopicFeeRevenue[len(m.TopicFeeRevenue)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 37: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousTopicWeight", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PreviousTopicWeight = append(m.PreviousTopicWeight, &TopicIdAndDec{}) + if err := m.PreviousTopicWeight[len(m.PreviousTopicWeight)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 38: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AllInferences", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AllInferences = append(m.AllInferences, &TopicIdBlockHeightInferences{}) + if err := m.AllInferences[len(m.AllInferences)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 39: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AllForecasts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AllForecasts = append(m.AllForecasts, &TopicIdBlockHeightForecasts{}) + if err := m.AllForecasts[len(m.AllForecasts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 40: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AllLossBundles", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.AllLossBundles = append(m.AllLossBundles, &TopicIdBlockHeightReputerValueBundles{}) + if err := m.AllLossBundles[len(m.AllLossBundles)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 41: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NetworkLossBundles", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NetworkLossBundles = append(m.NetworkLossBundles, &TopicIdBlockHeightValueBundles{}) + if err := m.NetworkLossBundles[len(m.NetworkLossBundles)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 42: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PreviousPercentageRewardToStakedReputers", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.PreviousPercentageRewardToStakedReputers.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 43: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnfulfilledWorkerNonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UnfulfilledWorkerNonces = append(m.UnfulfilledWorkerNonces, &TopicIdAndNonces{}) + if err := m.UnfulfilledWorkerNonces[len(m.UnfulfilledWorkerNonces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 44: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UnfulfilledReputerNonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.UnfulfilledReputerNonces = append(m.UnfulfilledReputerNonces, &TopicIdAndReputerRequestNonces{}) + if err := m.UnfulfilledReputerNonces[len(m.UnfulfilledReputerNonces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 45: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestInfererNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LatestInfererNetworkRegrets = append(m.LatestInfererNetworkRegrets, &TopicIdActorIdTimeStampedValue{}) + if err := m.LatestInfererNetworkRegrets[len(m.LatestInfererNetworkRegrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 46: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestForecasterNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LatestForecasterNetworkRegrets = append(m.LatestForecasterNetworkRegrets, &TopicIdActorIdTimeStampedValue{}) + if err := m.LatestForecasterNetworkRegrets[len(m.LatestForecasterNetworkRegrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 47: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestOneInForecasterNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LatestOneInForecasterNetworkRegrets = append(m.LatestOneInForecasterNetworkRegrets, &TopicIdActorIdActorIdTimeStampedValue{}) + if err := m.LatestOneInForecasterNetworkRegrets[len(m.LatestOneInForecasterNetworkRegrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 48: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestNaiveInfererNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LatestNaiveInfererNetworkRegrets = append(m.LatestNaiveInfererNetworkRegrets, &TopicIdActorIdTimeStampedValue{}) + if err := m.LatestNaiveInfererNetworkRegrets[len(m.LatestNaiveInfererNetworkRegrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 49: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestOneOutInfererInfererNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LatestOneOutInfererInfererNetworkRegrets = append(m.LatestOneOutInfererInfererNetworkRegrets, &TopicIdActorIdActorIdTimeStampedValue{}) + if err := m.LatestOneOutInfererInfererNetworkRegrets[len(m.LatestOneOutInfererInfererNetworkRegrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 50: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestOneOutInfererForecasterNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LatestOneOutInfererForecasterNetworkRegrets = append(m.LatestOneOutInfererForecasterNetworkRegrets, &TopicIdActorIdActorIdTimeStampedValue{}) + if err := m.LatestOneOutInfererForecasterNetworkRegrets[len(m.LatestOneOutInfererForecasterNetworkRegrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 51: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestOneOutForecasterInfererNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LatestOneOutForecasterInfererNetworkRegrets = append(m.LatestOneOutForecasterInfererNetworkRegrets, &TopicIdActorIdActorIdTimeStampedValue{}) + if err := m.LatestOneOutForecasterInfererNetworkRegrets[len(m.LatestOneOutForecasterInfererNetworkRegrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 52: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LatestOneOutForecasterForecasterNetworkRegrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LatestOneOutForecasterForecasterNetworkRegrets = append(m.LatestOneOutForecasterForecasterNetworkRegrets, &TopicIdActorIdActorIdTimeStampedValue{}) + if err := m.LatestOneOutForecasterForecasterNetworkRegrets[len(m.LatestOneOutForecasterForecasterNetworkRegrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 53: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicLastWorkerCommit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TopicLastWorkerCommit = append(m.TopicLastWorkerCommit, &TopicIdTimestampedActorNonce{}) + if err := m.TopicLastWorkerCommit[len(m.TopicLastWorkerCommit)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 54: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicLastReputerCommit", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TopicLastReputerCommit = append(m.TopicLastReputerCommit, &TopicIdTimestampedActorNonce{}) + if err := m.TopicLastReputerCommit[len(m.TopicLastReputerCommit)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdAndTopic) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdAndTopic: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdAndTopic: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Topic == nil { + m.Topic = &Topic{} + } + if err := m.Topic.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicAndActorId) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicAndActorId: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicAndActorId: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdAndBlockHeight) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdAndBlockHeight: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdAndBlockHeight: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdBlockHeightScores) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdBlockHeightScores: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdBlockHeightScores: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Scores", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Scores == nil { + m.Scores = &Scores{} + } + if err := m.Scores.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdActorIdScore) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdActorIdScore: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdActorIdScore: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Score", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Score == nil { + m.Score = &Score{} + } + if err := m.Score.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdActorIdListeningCoefficient) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdActorIdListeningCoefficient: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdActorIdListeningCoefficient: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListeningCoefficient", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ListeningCoefficient == nil { + m.ListeningCoefficient = &ListeningCoefficient{} + } + if err := m.ListeningCoefficient.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdActorIdDec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdActorIdDec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdActorIdDec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dec", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Dec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdAndInt) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdAndInt: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdAndInt: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Int", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Int.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdActorIdInt) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdActorIdInt: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdActorIdInt: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Int", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Int.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdDelegatorReputerDelegatorInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdDelegatorReputerDelegatorInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdDelegatorReputerDelegatorInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delegator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Delegator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegatorInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DelegatorInfo == nil { + m.DelegatorInfo = &DelegatorInfo{} + } + if err := m.DelegatorInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockHeightTopicIdReputerStakeRemovalInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockHeightTopicIdReputerStakeRemovalInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockHeightTopicIdReputerStakeRemovalInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StakeRemovalInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StakeRemovalInfo == nil { + m.StakeRemovalInfo = &StakeRemovalInfo{} + } + if err := m.StakeRemovalInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ActorIdTopicIdBlockHeight) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ActorIdTopicIdBlockHeight: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ActorIdTopicIdBlockHeight: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockHeightTopicIdDelegatorReputerDelegateStakeRemovalInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delegator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Delegator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegateStakeRemovalInfo", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DelegateStakeRemovalInfo == nil { + m.DelegateStakeRemovalInfo = &DelegateStakeRemovalInfo{} + } + if err := m.DelegateStakeRemovalInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DelegatorReputerTopicIdBlockHeight) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DelegatorReputerTopicIdBlockHeight: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DelegatorReputerTopicIdBlockHeight: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Delegator", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Delegator = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reputer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdActorIdInference) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdActorIdInference: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdActorIdInference: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inference", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Inference == nil { + m.Inference = &Inference{} + } + if err := m.Inference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdActorIdForecast) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdActorIdForecast: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdActorIdForecast: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Forecast", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Forecast == nil { + m.Forecast = &Forecast{} + } + if err := m.Forecast.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *LibP2PKeyAndOffchainNode) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LibP2pKeyAndOffchainNode: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LibP2pKeyAndOffchainNode: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LibP2PKey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LibP2PKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OffchainNode", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.OffchainNode == nil { + m.OffchainNode = &OffchainNode{} + } + if err := m.OffchainNode.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdAndDec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdAndDec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdAndDec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dec", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Dec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdBlockHeightInferences) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdBlockHeightInferences: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdBlockHeightInferences: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inferences", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Inferences == nil { + m.Inferences = &Inferences{} + } + if err := m.Inferences.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdBlockHeightForecasts) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdBlockHeightForecasts: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdBlockHeightForecasts: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Forecasts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Forecasts == nil { + m.Forecasts = &Forecasts{} + } + if err := m.Forecasts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdBlockHeightReputerValueBundles) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdBlockHeightReputerValueBundles: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdBlockHeightReputerValueBundles: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReputerValueBundles", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ReputerValueBundles == nil { + m.ReputerValueBundles = &ReputerValueBundles{} + } + if err := m.ReputerValueBundles.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdBlockHeightValueBundles) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdBlockHeightValueBundles: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdBlockHeightValueBundles: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValueBundle", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ValueBundle == nil { + m.ValueBundle = &ValueBundle{} + } + if err := m.ValueBundle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdAndNonces) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdAndNonces: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdAndNonces: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Nonces == nil { + m.Nonces = &Nonces{} + } + if err := m.Nonces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdAndReputerRequestNonces) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdAndReputerRequestNonces: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdAndReputerRequestNonces: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ReputerRequestNonces", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ReputerRequestNonces == nil { + m.ReputerRequestNonces = &ReputerRequestNonces{} + } + if err := m.ReputerRequestNonces.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdActorIdTimeStampedValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdActorIdTimeStampedValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdActorIdTimeStampedValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActorId = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimestampedValue", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TimestampedValue == nil { + m.TimestampedValue = &TimestampedValue{} + } + if err := m.TimestampedValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy } - i -= size - i = encodeVarintGenesis(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} -func encodeVarintGenesis(dAtA []byte, offset int, v uint64) int { - offset -= sovGenesis(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *GenesisState) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Params.Size() - n += 1 + l + sovGenesis(uint64(l)) - if len(m.CoreTeamAddresses) > 0 { - for _, s := range m.CoreTeamAddresses { - l = len(s) - n += 1 + l + sovGenesis(uint64(l)) - } + if iNdEx > l { + return io.ErrUnexpectedEOF } - return n -} - -func sovGenesis(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozGenesis(x uint64) (n int) { - return sovGenesis(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return nil } -func (m *GenesisState) Unmarshal(dAtA []byte) error { +func (m *TopicIdActorIdActorIdTimeStampedValue) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -203,15 +10341,98 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: GenesisState: wiretype end group for non-group") + return fmt.Errorf("proto: TopicIdActorIdActorIdTimeStampedValue: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: GenesisState: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: TopicIdActorIdActorIdTimeStampedValue: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ActorId1", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActorId1 = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ActorId2", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenesis + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenesis + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ActorId2 = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimestampedValue", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -238,15 +10459,87 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.TimestampedValue == nil { + m.TimestampedValue = &TimestampedValue{} + } + if err := m.TimestampedValue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenesis(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenesis + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TopicIdTimestampedActorNonce) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIdTimestampedActorNonce: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIdTimestampedActorNonce: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenesis + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field CoreTeamAddresses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TimestampedActorNonce", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowGenesis @@ -256,23 +10549,27 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthGenesis } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthGenesis } if postIndex > l { return io.ErrUnexpectedEOF } - m.CoreTeamAddresses = append(m.CoreTeamAddresses, string(dAtA[iNdEx:postIndex])) + if m.TimestampedActorNonce == nil { + m.TimestampedActorNonce = &TimestampedActorNonce{} + } + if err := m.TimestampedActorNonce.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex diff --git a/x/emissions/types/inference.pb.go b/x/emissions/types/inference.pb.go index 44e4ef7aa..0d7ea5820 100644 --- a/x/emissions/types/inference.pb.go +++ b/x/emissions/types/inference.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/inference.proto +// source: emissions/v2/inference.proto package types @@ -33,7 +33,7 @@ func (m *RegretInformedWeight) Reset() { *m = RegretInformedWeight{} } func (m *RegretInformedWeight) String() string { return proto.CompactTextString(m) } func (*RegretInformedWeight) ProtoMessage() {} func (*RegretInformedWeight) Descriptor() ([]byte, []int) { - return fileDescriptor_2c7dbaa0382cbd33, []int{0} + return fileDescriptor_032a33515827eed9, []int{0} } func (m *RegretInformedWeight) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -70,16 +70,16 @@ func (m *RegretInformedWeight) GetWorker() string { } func init() { - proto.RegisterType((*RegretInformedWeight)(nil), "emissions.v1.RegretInformedWeight") + proto.RegisterType((*RegretInformedWeight)(nil), "emissions.v2.RegretInformedWeight") } -func init() { proto.RegisterFile("emissions/v1/inference.proto", fileDescriptor_2c7dbaa0382cbd33) } +func init() { proto.RegisterFile("emissions/v2/inference.proto", fileDescriptor_032a33515827eed9) } -var fileDescriptor_2c7dbaa0382cbd33 = []byte{ +var fileDescriptor_032a33515827eed9 = []byte{ // 242 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x49, 0xcd, 0xcd, 0x2c, - 0x2e, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x33, 0xd4, 0xcf, 0xcc, 0x4b, 0x4b, 0x2d, 0x4a, 0xcd, - 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0xcb, 0xea, 0x95, 0x19, 0x4a, + 0x2e, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x33, 0xd2, 0xcf, 0xcc, 0x4b, 0x4b, 0x2d, 0x4a, 0xcd, + 0x4b, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0xcb, 0xea, 0x95, 0x19, 0x49, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x25, 0xf4, 0x41, 0x2c, 0x88, 0x1a, 0x29, 0x09, 0x14, 0x13, 0xf2, 0xf2, 0xe1, 0xba, 0x95, 0x5a, 0x19, 0xb9, 0x44, 0x82, 0x52, 0xd3, 0x8b, 0x52, 0x4b, 0x3c, 0xf3, 0xd2, 0xf2, 0x8b, 0x72, 0x53, 0x53, 0xc2, 0x53, 0x33, 0xd3, 0x33, 0x4a, 0x84, 0xc4, 0xb8, @@ -91,7 +91,7 @@ var fileDescriptor_2c7dbaa0382cbd33 = []byte{ 0x58, 0x5e, 0x2c, 0x90, 0x67, 0x74, 0x0a, 0x3a, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0x0b, 0x22, 0x0d, 0xae, 0xd0, 0x47, 0x78, 0xb2, 0xa4, 0xb2, 0x20, 0xb5, 0x38, 0x89, - 0x0d, 0xec, 0x45, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xf8, 0xc5, 0xee, 0xb9, 0x40, 0x01, + 0x0d, 0xec, 0x45, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x04, 0xcb, 0xfa, 0xe7, 0x40, 0x01, 0x00, 0x00, } diff --git a/x/emissions/types/keys.go b/x/emissions/types/keys.go index 9113cf58b..2e7291863 100644 --- a/x/emissions/types/keys.go +++ b/x/emissions/types/keys.go @@ -11,65 +11,72 @@ const ( ) var ( - ParamsKey = collections.NewPrefix(0) - TotalStakeKey = collections.NewPrefix(1) - TopicStakeKey = collections.NewPrefix(2) - RewardsKey = collections.NewPrefix(3) - NextTopicIdKey = collections.NewPrefix(4) - TopicsKey = collections.NewPrefix(5) - TopicWorkersKey = collections.NewPrefix(6) - TopicReputersKey = collections.NewPrefix(7) - DelegatorStakeKey = collections.NewPrefix(8) - DelegateStakePlacementKey = collections.NewPrefix(9) - TargetStakeKey = collections.NewPrefix(10) - InferencesKey = collections.NewPrefix(11) - ForecastsKey = collections.NewPrefix(12) - WorkerNodesKey = collections.NewPrefix(13) - ReputerNodesKey = collections.NewPrefix(14) - LatestInferencesTsKey = collections.NewPrefix(15) - ActiveTopicsKey = collections.NewPrefix(16) - AllInferencesKey = collections.NewPrefix(17) - AllForecastsKey = collections.NewPrefix(18) - AllLossBundlesKey = collections.NewPrefix(19) - StakeRemovalKey = collections.NewPrefix(20) - StakeByReputerAndTopicId = collections.NewPrefix(21) - DelegateStakeRemovalKey = collections.NewPrefix(22) - AllTopicStakeSumKey = collections.NewPrefix(23) - AddressTopicsKey = collections.NewPrefix(24) - WhitelistAdminsKey = collections.NewPrefix(24) - ChurnableTopicsKey = collections.NewPrefix(25) - RewardableTopicsKey = collections.NewPrefix(26) - NetworkLossBundlesKey = collections.NewPrefix(27) - NetworkRegretsKey = collections.NewPrefix(28) - StakeByReputerAndTopicIdKey = collections.NewPrefix(29) - ReputerScoresKey = collections.NewPrefix(30) - InferenceScoresKey = collections.NewPrefix(31) - ForecastScoresKey = collections.NewPrefix(32) - ReputerListeningCoefficientKey = collections.NewPrefix(33) - InfererNetworkRegretsKey = collections.NewPrefix(34) - ForecasterNetworkRegretsKey = collections.NewPrefix(35) - OneInForecasterNetworkRegretsKey = collections.NewPrefix(36) - OneInForecasterSelfNetworkRegretsKey = collections.NewPrefix(37) - UnfulfilledWorkerNoncesKey = collections.NewPrefix(38) - UnfulfilledReputerNoncesKey = collections.NewPrefix(39) - FeeRevenueEpochKey = collections.NewPrefix(40) - TopicFeeRevenueKey = collections.NewPrefix(41) - PreviousTopicWeightKey = collections.NewPrefix(42) - PreviousReputerRewardFractionKey = collections.NewPrefix(43) - PreviousInferenceRewardFractionKey = collections.NewPrefix(44) - PreviousForecastRewardFractionKey = collections.NewPrefix(45) - LatestInfererScoresByWorkerKey = collections.NewPrefix(46) - LatestForecasterScoresByWorkerKey = collections.NewPrefix(47) - LatestReputerScoresByReputerKey = collections.NewPrefix(48) - TopicRewardNonceKey = collections.NewPrefix(49) - DelegateRewardPerShare = collections.NewPrefix(50) - PreviousPercentageRewardToStakedReputersKey = collections.NewPrefix(51) - StakeRemovalsByBlockKey = collections.NewPrefix(52) - DelegateStakeRemovalsByBlockKey = collections.NewPrefix(53) - StakeRemovalsByActorKey = collections.NewPrefix(54) - DelegateStakeRemovalsByActorKey = collections.NewPrefix(55) - TopicLastWorkerCommitKey = collections.NewPrefix(56) - TopicLastReputerCommitKey = collections.NewPrefix(57) - TopicLastWorkerPayloadKey = collections.NewPrefix(58) - TopicLastReputerPayloadKey = collections.NewPrefix(59) + ParamsKey = collections.NewPrefix(0) + TotalStakeKey = collections.NewPrefix(1) + TopicStakeKey = collections.NewPrefix(2) + RewardsKey = collections.NewPrefix(3) + NextTopicIdKey = collections.NewPrefix(4) + TopicsKey = collections.NewPrefix(5) + TopicWorkersKey = collections.NewPrefix(6) + TopicReputersKey = collections.NewPrefix(7) + DelegatorStakeKey = collections.NewPrefix(8) + DelegateStakePlacementKey = collections.NewPrefix(9) + TargetStakeKey = collections.NewPrefix(10) + InferencesKey = collections.NewPrefix(11) + ForecastsKey = collections.NewPrefix(12) + WorkerNodesKey = collections.NewPrefix(13) + ReputerNodesKey = collections.NewPrefix(14) + LatestInferencesTsKey = collections.NewPrefix(15) + ActiveTopicsKey = collections.NewPrefix(16) + AllInferencesKey = collections.NewPrefix(17) + AllForecastsKey = collections.NewPrefix(18) + AllLossBundlesKey = collections.NewPrefix(19) + StakeRemovalKey = collections.NewPrefix(20) + StakeByReputerAndTopicId = collections.NewPrefix(21) + DelegateStakeRemovalKey = collections.NewPrefix(22) + AllTopicStakeSumKey = collections.NewPrefix(23) + // AddressTopicsKey = collections.NewPrefix(24) + WhitelistAdminsKey = collections.NewPrefix(24) + ChurnableTopicsKey = collections.NewPrefix(25) + RewardableTopicsKey = collections.NewPrefix(26) + NetworkLossBundlesKey = collections.NewPrefix(27) + NetworkRegretsKey = collections.NewPrefix(28) + StakeByReputerAndTopicIdKey = collections.NewPrefix(29) + ReputerScoresKey = collections.NewPrefix(30) + InferenceScoresKey = collections.NewPrefix(31) + ForecastScoresKey = collections.NewPrefix(32) + ReputerListeningCoefficientKey = collections.NewPrefix(33) + InfererNetworkRegretsKey = collections.NewPrefix(34) + ForecasterNetworkRegretsKey = collections.NewPrefix(35) + OneInForecasterNetworkRegretsKey = collections.NewPrefix(36) + // OneInForecasterSelfNetworkRegretsKey = collections.NewPrefix(37) + UnfulfilledWorkerNoncesKey = collections.NewPrefix(38) + UnfulfilledReputerNoncesKey = collections.NewPrefix(39) + FeeRevenueEpochKey = collections.NewPrefix(40) + TopicFeeRevenueKey = collections.NewPrefix(41) + PreviousTopicWeightKey = collections.NewPrefix(42) + PreviousReputerRewardFractionKey = collections.NewPrefix(43) + PreviousInferenceRewardFractionKey = collections.NewPrefix(44) + PreviousForecastRewardFractionKey = collections.NewPrefix(45) + LatestInfererScoresByWorkerKey = collections.NewPrefix(46) + LatestForecasterScoresByWorkerKey = collections.NewPrefix(47) + LatestReputerScoresByReputerKey = collections.NewPrefix(48) + TopicRewardNonceKey = collections.NewPrefix(49) + DelegateRewardPerShare = collections.NewPrefix(50) + PreviousPercentageRewardToStakedReputersKey = collections.NewPrefix(51) + StakeRemovalsByBlockKey = collections.NewPrefix(52) + DelegateStakeRemovalsByBlockKey = collections.NewPrefix(53) + StakeRemovalsByActorKey = collections.NewPrefix(54) + DelegateStakeRemovalsByActorKey = collections.NewPrefix(55) + TopicLastWorkerCommitKey = collections.NewPrefix(56) + TopicLastReputerCommitKey = collections.NewPrefix(57) + TopicLastWorkerPayloadKey = collections.NewPrefix(58) + TopicLastReputerPayloadKey = collections.NewPrefix(59) + OpenWorkerWindowsKey = collections.NewPrefix(60) + LatestNaiveInfererNetworkRegretsKey = collections.NewPrefix(61) + LatestOneOutInfererInfererNetworkRegretsKey = collections.NewPrefix(62) + LatestOneOutInfererForecasterNetworkRegretsKey = collections.NewPrefix(63) + LatestOneOutForecasterInfererNetworkRegretsKey = collections.NewPrefix(64) + LatestOneOutForecasterForecasterNetworkRegretsKey = collections.NewPrefix(65) + PreviousForecasterScoreRatioKey = collections.NewPrefix(66) ) diff --git a/x/emissions/types/msg_create_topic.go b/x/emissions/types/msg_create_topic.go index c839f91d0..4ffc3e2c7 100644 --- a/x/emissions/types/msg_create_topic.go +++ b/x/emissions/types/msg_create_topic.go @@ -13,27 +13,21 @@ func (msg *MsgCreateNewTopic) Validate() error { return errors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) } - if len(msg.LossLogic) == 0 { - return errors.Wrap(sdkerrors.ErrInvalidRequest, "loss logic cannot be empty") - } if len(msg.LossMethod) == 0 { return errors.Wrap(sdkerrors.ErrInvalidRequest, "loss method cannot be empty") } - if len(msg.InferenceLogic) == 0 { - return errors.Wrap(sdkerrors.ErrInvalidRequest, "inference logic cannot be empty") - } - if len(msg.InferenceMethod) == 0 { - return errors.Wrap(sdkerrors.ErrInvalidRequest, "inference method cannot be empty") - } - if len(msg.DefaultArg) == 0 { - return errors.Wrap(sdkerrors.ErrInvalidRequest, "default argument cannot be empty") - } if msg.EpochLength <= 0 { return errors.Wrap(sdkerrors.ErrInvalidRequest, "epoch length must be greater than zero") } + if msg.WorkerSubmissionWindow == 0 { + return errors.Wrap(sdkerrors.ErrInvalidRequest, "worker submission window must be greater than zero") + } if msg.GroundTruthLag < msg.EpochLength { return errors.Wrap(sdkerrors.ErrInvalidRequest, "ground truth lag cannot be lower than epoch length") } + if msg.WorkerSubmissionWindow > msg.EpochLength { + return errors.Wrap(sdkerrors.ErrInvalidRequest, "worker submission window cannot be higher than epoch length") + } if msg.AlphaRegret.Lte(alloraMath.ZeroDec()) || msg.AlphaRegret.Gt(alloraMath.OneDec()) { return errors.Wrap(sdkerrors.ErrInvalidRequest, "alpha regret must be greater than 0 and less than or equal to 1") } diff --git a/x/emissions/types/msg_insert_bulk_reputer_payload.go b/x/emissions/types/msg_insert_bulk_reputer_payload.go deleted file mode 100644 index d821d8e44..000000000 --- a/x/emissions/types/msg_insert_bulk_reputer_payload.go +++ /dev/null @@ -1,26 +0,0 @@ -package types - -import ( - "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -func (msg *MsgInsertBulkReputerPayload) ValidateTopLevel() error { - _, err := sdk.AccAddressFromBech32(msg.Sender) - if err != nil { - return errors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid sender address (%s)", err) - } - - if msg.ReputerRequestNonce == nil { - return errors.Wrapf(sdkerrors.ErrInvalidRequest, "reputer request nonce cannot be nil") - } - if msg.ReputerRequestNonce.ReputerNonce == nil { - return errors.Wrapf(sdkerrors.ErrInvalidRequest, "reputer nonce cannot be nil") - } - if len(msg.ReputerValueBundles) == 0 { - return errors.Wrapf(sdkerrors.ErrInvalidRequest, "at least one reputer value bundle needs to be provided") - } - - return nil -} diff --git a/x/emissions/types/msg_insert_bulk_worker_payload.go b/x/emissions/types/msg_insert_bulk_worker_payload.go deleted file mode 100644 index aaea2e50f..000000000 --- a/x/emissions/types/msg_insert_bulk_worker_payload.go +++ /dev/null @@ -1,24 +0,0 @@ -package types - -import ( - "cosmossdk.io/errors" - sdk "github.com/cosmos/cosmos-sdk/types" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" -) - -func (msg *MsgInsertBulkWorkerPayload) ValidateTopLevel() error { - _, err := sdk.AccAddressFromBech32(msg.Sender) - if err != nil { - return errors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid sender address (%s)", err) - } - - if msg.Nonce == nil { - return errors.Wrap(sdkerrors.ErrInvalidRequest, "nonce cannot be nil") - } - - if len(msg.WorkerDataBundles) == 0 { - return errors.Wrap(sdkerrors.ErrInvalidRequest, "at least one worker data bundle must be provided") - } - - return nil -} diff --git a/x/emissions/types/msg_register.go b/x/emissions/types/msg_register.go index 7752e3ed4..4dac3521a 100644 --- a/x/emissions/types/msg_register.go +++ b/x/emissions/types/msg_register.go @@ -16,12 +16,5 @@ func (msg *MsgRegister) Validate() error { return errors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid owner address (%s)", err) } - if len(msg.LibP2PKey) == 0 { - return errors.Wrap(ErrLibP2PKeyRequired, "libP2PKey cannot be empty") - } - if len(msg.MultiAddress) == 0 { - return errors.Wrap(sdkerrors.ErrInvalidRequest, "multiAddress cannot be empty") - } - return nil } diff --git a/x/emissions/types/node.pb.go b/x/emissions/types/node.pb.go index 2bfa3a5a6..1b2d0c51e 100644 --- a/x/emissions/types/node.pb.go +++ b/x/emissions/types/node.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/node.proto +// source: emissions/v2/node.proto package types @@ -23,18 +23,15 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type OffchainNode struct { - LibP2PKey string `protobuf:"bytes,1,opt,name=lib_p2p_key,json=libP2pKey,proto3" json:"lib_p2p_key,omitempty"` - MultiAddress string `protobuf:"bytes,2,opt,name=multi_address,json=multiAddress,proto3" json:"multi_address,omitempty"` - Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` - NodeAddress string `protobuf:"bytes,4,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"` - NodeId string `protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + NodeAddress string `protobuf:"bytes,4,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"` } func (m *OffchainNode) Reset() { *m = OffchainNode{} } func (m *OffchainNode) String() string { return proto.CompactTextString(m) } func (*OffchainNode) ProtoMessage() {} func (*OffchainNode) Descriptor() ([]byte, []int) { - return fileDescriptor_c46ef77a30f1ab81, []int{0} + return fileDescriptor_46dca00deec549a9, []int{0} } func (m *OffchainNode) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -63,20 +60,6 @@ func (m *OffchainNode) XXX_DiscardUnknown() { var xxx_messageInfo_OffchainNode proto.InternalMessageInfo -func (m *OffchainNode) GetLibP2PKey() string { - if m != nil { - return m.LibP2PKey - } - return "" -} - -func (m *OffchainNode) GetMultiAddress() string { - if m != nil { - return m.MultiAddress - } - return "" -} - func (m *OffchainNode) GetOwner() string { if m != nil { return m.Owner @@ -91,37 +74,29 @@ func (m *OffchainNode) GetNodeAddress() string { return "" } -func (m *OffchainNode) GetNodeId() string { - if m != nil { - return m.NodeId - } - return "" -} - func init() { - proto.RegisterType((*OffchainNode)(nil), "emissions.v1.OffchainNode") + proto.RegisterType((*OffchainNode)(nil), "emissions.v2.OffchainNode") } -func init() { proto.RegisterFile("emissions/v1/node.proto", fileDescriptor_c46ef77a30f1ab81) } +func init() { proto.RegisterFile("emissions/v2/node.proto", fileDescriptor_46dca00deec549a9) } -var fileDescriptor_c46ef77a30f1ab81 = []byte{ - // 252 bytes of a gzipped FileDescriptorProto +var fileDescriptor_46dca00deec549a9 = []byte{ + // 234 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x4f, 0xcd, 0xcd, 0x2c, - 0x2e, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x33, 0xd4, 0xcf, 0xcb, 0x4f, 0x49, 0xd5, 0x2b, 0x28, - 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0x4b, 0xe8, 0x95, 0x19, 0x2a, 0x2d, 0x65, 0xe4, 0xe2, 0xf1, - 0x4f, 0x4b, 0x4b, 0xce, 0x48, 0xcc, 0xcc, 0xf3, 0xcb, 0x4f, 0x49, 0x15, 0x92, 0xe3, 0xe2, 0xce, - 0xc9, 0x4c, 0x8a, 0x2f, 0x30, 0x2a, 0x88, 0xcf, 0x4e, 0xad, 0x94, 0x60, 0x54, 0x60, 0xd4, 0xe0, - 0x0c, 0xe2, 0xcc, 0xc9, 0x4c, 0x0a, 0x30, 0x2a, 0xf0, 0x4e, 0xad, 0x14, 0x52, 0xe6, 0xe2, 0xcd, - 0x2d, 0xcd, 0x29, 0xc9, 0x8c, 0x4f, 0x4c, 0x49, 0x29, 0x4a, 0x2d, 0x2e, 0x96, 0x60, 0x02, 0xab, - 0xe0, 0x01, 0x0b, 0x3a, 0x42, 0xc4, 0x84, 0x44, 0xb8, 0x58, 0xf3, 0xcb, 0xf3, 0x52, 0x8b, 0x24, - 0x98, 0xc1, 0x92, 0x10, 0x8e, 0x90, 0x22, 0x17, 0x0f, 0xc8, 0x1d, 0x70, 0x9d, 0x2c, 0x60, 0x49, - 0x6e, 0x90, 0x18, 0x4c, 0xa3, 0x38, 0x17, 0x3b, 0x58, 0x49, 0x66, 0x8a, 0x04, 0x2b, 0x58, 0x96, - 0x0d, 0xc4, 0xf5, 0x4c, 0x71, 0x0a, 0x3a, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, - 0x8f, 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, - 0x28, 0x8b, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0xfd, 0xc4, 0x9c, 0x9c, - 0xfc, 0xa2, 0x44, 0xdd, 0xbc, 0xd4, 0x92, 0xf2, 0xfc, 0xa2, 0x6c, 0x18, 0x17, 0xec, 0x39, 0xfd, - 0x0a, 0x7d, 0x44, 0x88, 0x94, 0x54, 0x16, 0xa4, 0x16, 0x27, 0xb1, 0x81, 0x03, 0xc4, 0x18, 0x10, - 0x00, 0x00, 0xff, 0xff, 0xd7, 0xad, 0x46, 0xcd, 0x2b, 0x01, 0x00, 0x00, + 0x2e, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x33, 0xd2, 0xcf, 0xcb, 0x4f, 0x49, 0xd5, 0x2b, 0x28, + 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0x4b, 0xe8, 0x95, 0x19, 0x29, 0xd5, 0x71, 0xf1, 0xf8, 0xa7, + 0xa5, 0x25, 0x67, 0x24, 0x66, 0xe6, 0xf9, 0xe5, 0xa7, 0xa4, 0x0a, 0x89, 0x70, 0xb1, 0xe6, 0x97, + 0xe7, 0xa5, 0x16, 0x49, 0x30, 0x2b, 0x30, 0x6a, 0x70, 0x06, 0x41, 0x38, 0x42, 0x8a, 0x5c, 0x3c, + 0x20, 0x13, 0xe2, 0x13, 0x53, 0x52, 0x8a, 0x52, 0x8b, 0x8b, 0x25, 0x58, 0xc0, 0x92, 0xdc, 0x20, + 0x31, 0x47, 0x88, 0x90, 0x17, 0x0b, 0x07, 0xa3, 0x00, 0x93, 0x17, 0x0b, 0x07, 0x93, 0x00, 0xb3, + 0x17, 0x0b, 0x07, 0xab, 0x00, 0x5b, 0x10, 0x77, 0x4e, 0x66, 0x52, 0x7c, 0x81, 0x51, 0x41, 0x7c, + 0x76, 0x6a, 0x65, 0x10, 0x6f, 0x6e, 0x69, 0x4e, 0x49, 0x26, 0xcc, 0x80, 0x20, 0x76, 0xb0, 0x71, + 0x99, 0x29, 0x4e, 0x41, 0x27, 0x1e, 0xc9, 0x31, 0x5e, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, + 0xe3, 0x84, 0xc7, 0x72, 0x0c, 0x17, 0x1e, 0xcb, 0x31, 0xdc, 0x78, 0x2c, 0xc7, 0x10, 0x65, 0x91, + 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x9f, 0x98, 0x93, 0x93, 0x5f, 0x94, + 0xa8, 0x9b, 0x97, 0x5a, 0x52, 0x9e, 0x5f, 0x94, 0x0d, 0xe3, 0x82, 0x5d, 0xad, 0x5f, 0xa1, 0x8f, + 0xf0, 0x69, 0x49, 0x65, 0x41, 0x6a, 0x71, 0x12, 0x1b, 0xd8, 0xa3, 0xc6, 0x80, 0x00, 0x00, 0x00, + 0xff, 0xff, 0x10, 0x04, 0x1d, 0xa1, 0x03, 0x01, 0x00, 0x00, } func (m *OffchainNode) Marshal() (dAtA []byte, err error) { @@ -144,13 +119,6 @@ func (m *OffchainNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.NodeId) > 0 { - i -= len(m.NodeId) - copy(dAtA[i:], m.NodeId) - i = encodeVarintNode(dAtA, i, uint64(len(m.NodeId))) - i-- - dAtA[i] = 0x2a - } if len(m.NodeAddress) > 0 { i -= len(m.NodeAddress) copy(dAtA[i:], m.NodeAddress) @@ -165,20 +133,6 @@ func (m *OffchainNode) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if len(m.MultiAddress) > 0 { - i -= len(m.MultiAddress) - copy(dAtA[i:], m.MultiAddress) - i = encodeVarintNode(dAtA, i, uint64(len(m.MultiAddress))) - i-- - dAtA[i] = 0x12 - } - if len(m.LibP2PKey) > 0 { - i -= len(m.LibP2PKey) - copy(dAtA[i:], m.LibP2PKey) - i = encodeVarintNode(dAtA, i, uint64(len(m.LibP2PKey))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } @@ -199,14 +153,6 @@ func (m *OffchainNode) Size() (n int) { } var l int _ = l - l = len(m.LibP2PKey) - if l > 0 { - n += 1 + l + sovNode(uint64(l)) - } - l = len(m.MultiAddress) - if l > 0 { - n += 1 + l + sovNode(uint64(l)) - } l = len(m.Owner) if l > 0 { n += 1 + l + sovNode(uint64(l)) @@ -215,10 +161,6 @@ func (m *OffchainNode) Size() (n int) { if l > 0 { n += 1 + l + sovNode(uint64(l)) } - l = len(m.NodeId) - if l > 0 { - n += 1 + l + sovNode(uint64(l)) - } return n } @@ -257,70 +199,6 @@ func (m *OffchainNode) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: OffchainNode: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LibP2PKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthNode - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNode - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LibP2PKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MultiAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthNode - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNode - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MultiAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Owner", wireType) @@ -385,38 +263,6 @@ func (m *OffchainNode) Unmarshal(dAtA []byte) error { } m.NodeAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowNode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthNode - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthNode - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.NodeId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipNode(dAtA[iNdEx:]) diff --git a/x/emissions/types/nonce.pb.go b/x/emissions/types/nonce.pb.go index 8a611ff88..8522d1bde 100644 --- a/x/emissions/types/nonce.pb.go +++ b/x/emissions/types/nonce.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/nonce.proto +// source: emissions/v2/nonce.proto package types @@ -31,7 +31,7 @@ func (m *Nonce) Reset() { *m = Nonce{} } func (m *Nonce) String() string { return proto.CompactTextString(m) } func (*Nonce) ProtoMessage() {} func (*Nonce) Descriptor() ([]byte, []int) { - return fileDescriptor_529b41e523578c99, []int{0} + return fileDescriptor_21e419afb5e06039, []int{0} } func (m *Nonce) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -75,7 +75,7 @@ func (m *Nonces) Reset() { *m = Nonces{} } func (m *Nonces) String() string { return proto.CompactTextString(m) } func (*Nonces) ProtoMessage() {} func (*Nonces) Descriptor() ([]byte, []int) { - return fileDescriptor_529b41e523578c99, []int{1} + return fileDescriptor_21e419afb5e06039, []int{1} } func (m *Nonces) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -121,7 +121,7 @@ func (m *ReputerRequestNonce) Reset() { *m = ReputerRequestNonce{} } func (m *ReputerRequestNonce) String() string { return proto.CompactTextString(m) } func (*ReputerRequestNonce) ProtoMessage() {} func (*ReputerRequestNonce) Descriptor() ([]byte, []int) { - return fileDescriptor_529b41e523578c99, []int{2} + return fileDescriptor_21e419afb5e06039, []int{2} } func (m *ReputerRequestNonce) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -165,7 +165,7 @@ func (m *ReputerRequestNonces) Reset() { *m = ReputerRequestNonces{} } func (m *ReputerRequestNonces) String() string { return proto.CompactTextString(m) } func (*ReputerRequestNonces) ProtoMessage() {} func (*ReputerRequestNonces) Descriptor() ([]byte, []int) { - return fileDescriptor_529b41e523578c99, []int{3} + return fileDescriptor_21e419afb5e06039, []int{3} } func (m *ReputerRequestNonces) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -202,19 +202,19 @@ func (m *ReputerRequestNonces) GetNonces() []*ReputerRequestNonce { } func init() { - proto.RegisterType((*Nonce)(nil), "emissions.v1.Nonce") - proto.RegisterType((*Nonces)(nil), "emissions.v1.Nonces") - proto.RegisterType((*ReputerRequestNonce)(nil), "emissions.v1.ReputerRequestNonce") - proto.RegisterType((*ReputerRequestNonces)(nil), "emissions.v1.ReputerRequestNonces") + proto.RegisterType((*Nonce)(nil), "emissions.v2.Nonce") + proto.RegisterType((*Nonces)(nil), "emissions.v2.Nonces") + proto.RegisterType((*ReputerRequestNonce)(nil), "emissions.v2.ReputerRequestNonce") + proto.RegisterType((*ReputerRequestNonces)(nil), "emissions.v2.ReputerRequestNonces") } -func init() { proto.RegisterFile("emissions/v1/nonce.proto", fileDescriptor_529b41e523578c99) } +func init() { proto.RegisterFile("emissions/v2/nonce.proto", fileDescriptor_21e419afb5e06039) } -var fileDescriptor_529b41e523578c99 = []byte{ +var fileDescriptor_21e419afb5e06039 = []byte{ // 279 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x48, 0xcd, 0xcd, 0x2c, - 0x2e, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x33, 0xd4, 0xcf, 0xcb, 0xcf, 0x4b, 0x4e, 0xd5, 0x2b, - 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0xcb, 0xe8, 0x95, 0x19, 0x4a, 0x89, 0xa4, 0xe7, 0xa7, + 0x2e, 0xce, 0xcc, 0xcf, 0x2b, 0xd6, 0x2f, 0x33, 0xd2, 0xcf, 0xcb, 0xcf, 0x4b, 0x4e, 0xd5, 0x2b, + 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x81, 0xcb, 0xe8, 0x95, 0x19, 0x49, 0x89, 0xa4, 0xe7, 0xa7, 0xe7, 0x83, 0x25, 0xf4, 0x41, 0x2c, 0x88, 0x1a, 0x25, 0x03, 0x2e, 0x56, 0x3f, 0x90, 0x16, 0x21, 0x45, 0x2e, 0x9e, 0xa4, 0x9c, 0xfc, 0xe4, 0xec, 0xf8, 0x8c, 0xd4, 0xcc, 0xf4, 0x8c, 0x12, 0x09, 0x46, 0x05, 0x46, 0x0d, 0xe6, 0x20, 0x6e, 0xb0, 0x98, 0x07, 0x58, 0xc8, 0x8a, 0xe5, 0xc5, 0x02, @@ -228,8 +228,8 @@ var fileDescriptor_529b41e523578c99 = []byte{ 0x78, 0x2c, 0xc7, 0x70, 0xe3, 0xb1, 0x1c, 0x43, 0x94, 0x45, 0x7a, 0x66, 0x49, 0x46, 0x69, 0x92, 0x5e, 0x72, 0x7e, 0xae, 0x7e, 0x62, 0x4e, 0x4e, 0x7e, 0x51, 0xa2, 0x6e, 0x5e, 0x6a, 0x49, 0x79, 0x7e, 0x51, 0x36, 0x8c, 0x9b, 0x9c, 0x91, 0x98, 0x99, 0xa7, 0x5f, 0xa1, 0x8f, 0x88, 0x93, 0x92, - 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0x70, 0x68, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x1e, - 0x0e, 0xef, 0x2f, 0xad, 0x01, 0x00, 0x00, + 0xca, 0x82, 0xd4, 0xe2, 0x24, 0x36, 0x70, 0x68, 0x1b, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0x09, + 0x30, 0x8a, 0x46, 0xad, 0x01, 0x00, 0x00, } func (this *Nonce) Equal(that interface{}) bool { diff --git a/x/emissions/types/params.go b/x/emissions/types/params.go index 4197f05fb..d22a7654c 100644 --- a/x/emissions/types/params.go +++ b/x/emissions/types/params.go @@ -10,46 +10,49 @@ import ( // DefaultParams returns default module parameters. func DefaultParams() Params { return Params{ - Version: "0.0.3", // version of the protocol should be in lockstep with github release tag version - MinTopicWeight: alloraMath.MustNewDecFromString("100"), // total weight for a topic < this => don't run inference solicatation or loss update - MaxTopicsPerBlock: uint64(128), // max number of topics to run cadence for per block - RequiredMinimumStake: cosmosMath.NewInt(100), // minimum stake required to be a worker or reputer - RemoveStakeDelayWindow: int64((60 * 60 * 24 * 7 * 3) / 5), // ~approx 3 weeks assuming 5 second block time, number of blocks to wait before finalizing a stake withdrawal - MinEpochLength: 12, // shortest number of blocks per epoch topics are allowed to set as their cadence - BetaEntropy: alloraMath.MustNewDecFromString("0.25"), // controls resilience of reward payouts against copycat workers - LearningRate: alloraMath.MustNewDecFromString("0.05"), // speed of gradient descent - GradientDescentMaxIters: uint64(10), // max iterations on gradient descent - MaxGradientThreshold: alloraMath.MustNewDecFromString("0.001"), // gradient descent stops when gradient falls below this - MinStakeFraction: alloraMath.MustNewDecFromString("0.5"), // minimum fraction of stake that should be listened to when setting consensus listening coefficients - EpsilonReputer: alloraMath.MustNewDecFromString("0.01"), // a small tolerance quantity used to cap reputer scores at infinitesimally close proximities - MaxUnfulfilledWorkerRequests: uint64(100), // maximum number of outstanding nonces for worker requests per topic from the chain; needs to be bigger to account for varying topic ground truth lag - MaxUnfulfilledReputerRequests: uint64(100), // maximum number of outstanding nonces for reputer requests per topic from the chain; needs to be bigger to account for varying topic ground truth lag - TopicRewardStakeImportance: alloraMath.MustNewDecFromString("0.5"), // importance of stake in determining rewards for a topic - TopicRewardFeeRevenueImportance: alloraMath.MustNewDecFromString("0.5"), // importance of fee revenue in determining rewards for a topic - TopicRewardAlpha: alloraMath.MustNewDecFromString("0.5"), // alpha for topic reward calculation; coupled with blocktime, or how often rewards are calculated - TaskRewardAlpha: alloraMath.MustNewDecFromString("0.1"), // alpha for task reward calculation used to calculate ~U_ij, ~V_ik, ~W_im - ValidatorsVsAlloraPercentReward: alloraMath.MustNewDecFromString("0.25"), // 25% rewards go to cosmos network validators - MaxSamplesToScaleScores: uint64(10), // maximum number of previous scores to store and use for standard deviation calculation - MaxTopInferersToReward: uint64(48), // max this many top inferers by score are rewarded for a topic - MaxTopForecastersToReward: uint64(6), // max this many top forecasters by score are rewarded for a topic - MaxTopReputersToReward: uint64(12), // max this many top reputers by score are rewarded for a topic - CreateTopicFee: cosmosMath.NewInt(10), // topic registration fee - MaxRetriesToFulfilNoncesWorker: int64(1), // max throttle of simultaneous unfulfilled worker requests - MaxRetriesToFulfilNoncesReputer: int64(3), // max throttle of simultaneous unfulfilled reputer requests - RegistrationFee: cosmosMath.NewInt(10), // how much workers and reputers must pay to register per topic - DefaultPageLimit: uint64(100), // how many topics to return per page during churn of requests - MaxPageLimit: uint64(1000), // max limit for pagination - MinEpochLengthRecordLimit: int64(3), // minimum number of epochs to keep records for a topic - MaxSerializedMsgLength: int64(1000 * 1000), // maximum size of data to msg and query server in bytes - BlocksPerMonth: uint64(525960), // ~5 seconds block time, 6311520 per year, 525960 per month - PRewardInference: alloraMath.NewDecFromInt64(1), // fiducial value for rewards calculation - PRewardForecast: alloraMath.NewDecFromInt64(3), // fiducial value for rewards calculation - PRewardReputer: alloraMath.NewDecFromInt64(3), // fiducial value for rewards calculation - CRewardInference: alloraMath.MustNewDecFromString("0.75"), // fiducial value for rewards calculation - CRewardForecast: alloraMath.MustNewDecFromString("0.75"), // fiducial value for rewards calculation - CNorm: alloraMath.MustNewDecFromString("0.75"), // fiducial value for inference synthesis - TopicFeeRevenueDecayRate: alloraMath.MustNewDecFromString("0.0025"), // rate at which topic fee revenue decays over time - MinEffectiveTopicRevenue: alloraMath.MustNewDecFromString("0.00000001"), // we no stop dripping from the topic's effective revenue when the topic's effective revenue is below this + Version: "v2", // version of the protocol should be in lockstep with github release tag version + MinTopicWeight: alloraMath.MustNewDecFromString("100"), // total weight for a topic < this => don't run inference solicatation or loss update + MaxTopicsPerBlock: uint64(128), // max number of topics to run cadence for per block + RequiredMinimumStake: cosmosMath.NewInt(100), // minimum stake required to be a worker or reputer + RemoveStakeDelayWindow: int64((60 * 60 * 24 * 7 * 3) / 5), // ~approx 3 weeks assuming 5 second block time, number of blocks to wait before finalizing a stake withdrawal + MinEpochLength: 12, // shortest number of blocks per epoch topics are allowed to set as their cadence + BetaEntropy: alloraMath.MustNewDecFromString("0.25"), // controls resilience of reward payouts against copycat workers + LearningRate: alloraMath.MustNewDecFromString("0.05"), // speed of gradient descent + GradientDescentMaxIters: uint64(10), // max iterations on gradient descent + MaxGradientThreshold: alloraMath.MustNewDecFromString("0.001"), // gradient descent stops when gradient falls below this + MinStakeFraction: alloraMath.MustNewDecFromString("0.5"), // minimum fraction of stake that should be listened to when setting consensus listening coefficients + EpsilonReputer: alloraMath.MustNewDecFromString("0.01"), // a small tolerance quantity used to cap reputer scores at infinitesimally close proximities + EpsilonSafeDiv: alloraMath.MustNewDecFromString("0.0000001"), // a small tolerance quantity used to cap division by zero + MaxUnfulfilledWorkerRequests: uint64(100), // maximum number of outstanding nonces for worker requests per topic from the chain; needs to be bigger to account for varying topic ground truth lag + MaxUnfulfilledReputerRequests: uint64(100), // maximum number of outstanding nonces for reputer requests per topic from the chain; needs to be bigger to account for varying topic ground truth lag + TopicRewardStakeImportance: alloraMath.MustNewDecFromString("0.5"), // importance of stake in determining rewards for a topic + TopicRewardFeeRevenueImportance: alloraMath.MustNewDecFromString("0.5"), // importance of fee revenue in determining rewards for a topic + TopicRewardAlpha: alloraMath.MustNewDecFromString("0.5"), // alpha for topic reward calculation; coupled with blocktime, or how often rewards are calculated + TaskRewardAlpha: alloraMath.MustNewDecFromString("0.1"), // alpha for task reward calculation used to calculate ~U_ij, ~V_ik, ~W_im + ValidatorsVsAlloraPercentReward: alloraMath.MustNewDecFromString("0.25"), // 25% rewards go to cosmos network validators + MaxSamplesToScaleScores: uint64(10), // maximum number of previous scores to store and use for standard deviation calculation + MaxTopInferersToReward: uint64(48), // max this many top inferers by score are rewarded for a topic + MaxTopForecastersToReward: uint64(6), // max this many top forecasters by score are rewarded for a topic + MaxTopReputersToReward: uint64(12), // max this many top reputers by score are rewarded for a topic + CreateTopicFee: cosmosMath.NewInt(10), // topic registration fee + MaxRetriesToFulfilNoncesWorker: int64(1), // max throttle of simultaneous unfulfilled worker requests + MaxRetriesToFulfilNoncesReputer: int64(3), // max throttle of simultaneous unfulfilled reputer requests + RegistrationFee: cosmosMath.NewInt(10), // how much workers and reputers must pay to register per topic + DefaultPageLimit: uint64(100), // how many topics to return per page during churn of requests + MaxPageLimit: uint64(1000), // max limit for pagination + MinEpochLengthRecordLimit: int64(3), // minimum number of epochs to keep records for a topic + MaxSerializedMsgLength: int64(1000 * 1000), // maximum size of data to msg and query server in bytes + BlocksPerMonth: uint64(525960), // ~5 seconds block time, 6311520 per year, 525960 per month + PRewardInference: alloraMath.NewDecFromInt64(1), // fiducial value for rewards calculation + PRewardForecast: alloraMath.NewDecFromInt64(3), // fiducial value for rewards calculation + PRewardReputer: alloraMath.NewDecFromInt64(3), // fiducial value for rewards calculation + CRewardInference: alloraMath.MustNewDecFromString("0.75"), // fiducial value for rewards calculation + CRewardForecast: alloraMath.MustNewDecFromString("0.75"), // fiducial value for rewards calculation + CNorm: alloraMath.MustNewDecFromString("0.75"), // fiducial value for inference synthesis + TopicFeeRevenueDecayRate: alloraMath.MustNewDecFromString("0.0025"), // rate at which topic fee revenue decays over time + MinEffectiveTopicRevenue: alloraMath.MustNewDecFromString("0.00000001"), // we no stop dripping from the topic's effective revenue when the topic's effective revenue is below this + HalfMaxProcessStakeRemovalsEndBlock: uint64(40), // half of the max number of stake removals to process at the end of the block, set this too big and blocks require too much time to process, slowing down consensus + DataSendingFee: cosmosMath.NewInt(10), // how much workers and reputers must pay to send payload } } @@ -91,6 +94,9 @@ func (p Params) Validate() error { if err := validateEpsilonReputer(p.EpsilonReputer); err != nil { return err } + if err := validateEpsilonSafeDiv(p.EpsilonSafeDiv); err != nil { + return err + } if err := validateMaxUnfulfilledWorkerRequests(p.MaxUnfulfilledWorkerRequests); err != nil { return err } @@ -175,6 +181,15 @@ func (p Params) Validate() error { if err := validateMinEffectiveTopicRevenue(p.MinEffectiveTopicRevenue); err != nil { return err } + if err := validateHalfMaxProcessStakeRemovalsEndBlock(p.HalfMaxProcessStakeRemovalsEndBlock); err != nil { + return err + } + if err := validateMinEffectiveTopicRevenue(p.MinEffectiveTopicRevenue); err != nil { + return err + } + if err := validateDataSendingFee(p.DataSendingFee); err != nil { + return err + } return nil } @@ -288,6 +303,14 @@ func validateEpsilonReputer(i alloraMath.Dec) error { return nil } +// Small tolerance quantity used to cap division by zero. +func validateEpsilonSafeDiv(i alloraMath.Dec) error { + if i.Lte(alloraMath.ZeroDec()) { + return ErrValidationMustBeGreaterthanZero + } + return nil +} + // fiducial value for rewards calculation // should be x > 0 func validatePRewardInference(i alloraMath.Dec) error { @@ -519,6 +542,14 @@ func validateMinEffectiveTopicRevenue(i alloraMath.Dec) error { return nil } +// this value should be greater than or equal to 1 +func validateHalfMaxProcessStakeRemovalsEndBlock(i uint64) error { + if i == 0 { + return ErrValidationMustBeGreaterthanZero + } + return nil +} + // Whether an alloraDec is between the value of [0, 1] inclusive func isAlloraDecBetweenZeroAndOneInclusive(a alloraMath.Dec) bool { return a.Gte(alloraMath.ZeroDec()) && a.Lte(alloraMath.OneDec()) @@ -528,3 +559,12 @@ func isAlloraDecBetweenZeroAndOneInclusive(a alloraMath.Dec) bool { func isAlloraDecBetweenZeroAndOneExclusive(a alloraMath.Dec) bool { return a.Gt(alloraMath.ZeroDec()) && a.Lt(alloraMath.OneDec()) } + +// How much workers and reputers must pay to send data. +// Should be non-negative. +func validateDataSendingFee(i cosmosMath.Int) error { + if i.IsNegative() { + return ErrValidationMustBeGreaterthanZero + } + return nil +} diff --git a/x/emissions/types/params.pb.go b/x/emissions/types/params.pb.go index fddf01169..313ccfe92 100644 --- a/x/emissions/types/params.pb.go +++ b/x/emissions/types/params.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/params.proto +// source: emissions/v2/params.proto package types @@ -82,13 +82,19 @@ type Params struct { EpsilonReputer github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,40,opt,name=epsilon_reputer,json=epsilonReputer,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon_reputer"` // close proximities MinEffectiveTopicRevenue github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,41,opt,name=min_effective_topic_revenue,json=minEffectiveTopicRevenue,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"min_effective_topic_revenue"` + // effective revenue is below this + HalfMaxProcessStakeRemovalsEndBlock uint64 `protobuf:"varint,42,opt,name=half_max_process_stake_removals_end_block,json=halfMaxProcessStakeRemovalsEndBlock,proto3" json:"half_max_process_stake_removals_end_block,omitempty"` + // once for DelegateStakeRemovals, so actual max is this number times two + EpsilonSafeDiv github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,43,opt,name=epsilon_safe_div,json=epsilonSafeDiv,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon_safe_div"` + /// a small tolerance quantity used to cap division by zero + DataSendingFee cosmossdk_io_math.Int `protobuf:"bytes,44,opt,name=data_sending_fee,json=dataSendingFee,proto3,customtype=cosmossdk.io/math.Int" json:"data_sending_fee"` } func (m *Params) Reset() { *m = Params{} } func (m *Params) String() string { return proto.CompactTextString(m) } func (*Params) ProtoMessage() {} func (*Params) Descriptor() ([]byte, []int) { - return fileDescriptor_f535e53c00d44458, []int{0} + return fileDescriptor_43b93581c26c7643, []int{0} } func (m *Params) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -243,91 +249,103 @@ func (m *Params) GetBlocksPerMonth() uint64 { return 0 } +func (m *Params) GetHalfMaxProcessStakeRemovalsEndBlock() uint64 { + if m != nil { + return m.HalfMaxProcessStakeRemovalsEndBlock + } + return 0 +} + func init() { - proto.RegisterType((*Params)(nil), "emissions.v1.Params") + proto.RegisterType((*Params)(nil), "emissions.v2.Params") } -func init() { proto.RegisterFile("emissions/v1/params.proto", fileDescriptor_f535e53c00d44458) } +func init() { proto.RegisterFile("emissions/v2/params.proto", fileDescriptor_43b93581c26c7643) } -var fileDescriptor_f535e53c00d44458 = []byte{ - // 1221 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x57, 0x4d, 0x6f, 0x5c, 0x35, - 0x14, 0xcd, 0xd0, 0x36, 0xa5, 0x6e, 0x9a, 0x0f, 0x93, 0xa6, 0xce, 0xb4, 0x99, 0x84, 0xb6, 0x40, - 0x40, 0x34, 0x43, 0xc5, 0x82, 0xcf, 0x05, 0xad, 0xd2, 0x54, 0x11, 0x4d, 0x15, 0xbd, 0x04, 0x2a, - 0x15, 0x24, 0xe3, 0xf8, 0xdd, 0x99, 0xb1, 0xf2, 0x6c, 0x3f, 0x6c, 0xcf, 0x64, 0xd2, 0x3d, 0x7b, - 0x7e, 0x01, 0x6b, 0x96, 0x2c, 0xf8, 0x11, 0x5d, 0x56, 0xac, 0x10, 0x8b, 0x0a, 0xb5, 0x0b, 0xfe, - 0x06, 0xf2, 0xc7, 0x9b, 0xcc, 0xb4, 0x80, 0x50, 0xdf, 0x26, 0xca, 0xf3, 0x3d, 0x3e, 0xe7, 0xfa, - 0xd8, 0xbe, 0xd7, 0x83, 0x96, 0x41, 0x0a, 0x6b, 0x85, 0x56, 0xb6, 0x3d, 0xb8, 0xd9, 0x2e, 0x99, - 0x61, 0xd2, 0x6e, 0x94, 0x46, 0x3b, 0x8d, 0x67, 0x46, 0xa1, 0x8d, 0xc1, 0xcd, 0xe6, 0x32, 0xd7, - 0x56, 0x6a, 0x4b, 0x43, 0xac, 0x1d, 0x3f, 0x22, 0xb0, 0xb9, 0xc0, 0xa4, 0x50, 0xba, 0x1d, 0xfe, - 0xa6, 0xa1, 0xc5, 0xae, 0xee, 0xea, 0x08, 0xf5, 0xff, 0xc5, 0xd1, 0xab, 0x3f, 0x35, 0xd1, 0xf4, - 0x6e, 0x90, 0xc0, 0x04, 0x9d, 0x1d, 0x80, 0xf1, 0xec, 0xa4, 0xb1, 0xd6, 0x58, 0x3f, 0x97, 0x55, - 0x9f, 0xf8, 0x13, 0xb4, 0x2c, 0xd9, 0x90, 0x5a, 0x30, 0x82, 0x15, 0xe2, 0x11, 0xe4, 0x54, 0xda, - 0x2e, 0x2d, 0x40, 0x75, 0x5d, 0x8f, 0xbc, 0xb6, 0xd6, 0x58, 0x3f, 0x95, 0x2d, 0x49, 0x36, 0xdc, - 0x1b, 0xc5, 0x77, 0x6c, 0xf7, 0x5e, 0x88, 0x62, 0x86, 0xe6, 0xa5, 0x50, 0xd4, 0xe9, 0x52, 0x70, - 0x7a, 0x04, 0xa2, 0xdb, 0x73, 0xe4, 0x94, 0x67, 0xbf, 0xfd, 0xd1, 0xe3, 0xa7, 0xab, 0x53, 0x7f, - 0x3c, 0x5d, 0x6d, 0x77, 0x85, 0xeb, 0xf5, 0x0f, 0x36, 0xb8, 0x96, 0x6d, 0x56, 0x14, 0xda, 0xb0, - 0x1b, 0x0a, 0xdc, 0x91, 0x36, 0x87, 0xd5, 0x27, 0xef, 0x31, 0xa1, 0xda, 0x92, 0xb9, 0xde, 0xc6, - 0x26, 0xf0, 0x6c, 0x56, 0x0a, 0xb5, 0xef, 0xf9, 0x1e, 0x04, 0x3a, 0xdc, 0x46, 0x8b, 0x3e, 0xbb, - 0x20, 0x61, 0x69, 0x09, 0x86, 0x1e, 0x14, 0x9a, 0x1f, 0x92, 0xd3, 0x6b, 0x8d, 0xf5, 0xd3, 0xd9, - 0x82, 0x64, 0xc3, 0x80, 0xb6, 0xbb, 0x60, 0x6e, 0xfb, 0x00, 0xee, 0xa0, 0x25, 0x03, 0xdf, 0xf7, - 0x85, 0xf1, 0x0b, 0x11, 0x4a, 0xc8, 0xbe, 0xa4, 0xd6, 0xb1, 0x43, 0x20, 0x67, 0x42, 0x66, 0x1f, - 0xa4, 0xcc, 0x2e, 0x46, 0x4b, 0x6d, 0x7e, 0xb8, 0x21, 0x74, 0xd4, 0xdf, 0x56, 0xee, 0xb7, 0x5f, - 0x6f, 0xa0, 0xe4, 0xf5, 0xb6, 0x72, 0x3f, 0xff, 0xf5, 0xcb, 0x7b, 0x8d, 0x6c, 0xb1, 0xe2, 0xdb, - 0x89, 0x74, 0x7b, 0x9e, 0xcd, 0xdb, 0x66, 0x40, 0xea, 0x01, 0x44, 0x76, 0x9a, 0x43, 0xc1, 0x8e, - 0xe9, 0x91, 0x50, 0xb9, 0x3e, 0x22, 0xd3, 0xd1, 0xb6, 0x08, 0x08, 0xf8, 0x4d, 0x1f, 0x7e, 0x10, - 0xa2, 0x78, 0x3d, 0xda, 0x06, 0xa5, 0xe6, 0xbd, 0xca, 0xe8, 0xb3, 0x61, 0x86, 0x5f, 0xfd, 0x1d, - 0x3f, 0x9c, 0x0c, 0x7e, 0x88, 0x66, 0x0e, 0xc0, 0x31, 0x0a, 0xca, 0x19, 0x5d, 0x1e, 0x93, 0xd7, - 0xeb, 0x99, 0x7b, 0xde, 0x93, 0xdd, 0x89, 0x5c, 0xf8, 0x5b, 0x74, 0xa1, 0x00, 0x66, 0x94, 0x50, - 0x5d, 0x6a, 0x98, 0x03, 0x72, 0xae, 0x1e, 0xf9, 0x4c, 0xc5, 0x96, 0x31, 0x07, 0x58, 0x22, 0x7f, - 0x68, 0x68, 0xd7, 0xb0, 0x5c, 0x80, 0x72, 0xd4, 0xf5, 0x0c, 0xd8, 0x9e, 0x2e, 0x72, 0x82, 0xea, - 0xc9, 0xf8, 0xe3, 0x70, 0x37, 0xb1, 0xee, 0x57, 0xa4, 0x18, 0x10, 0xf6, 0x96, 0xc6, 0xad, 0xe8, - 0x18, 0xc6, 0x9d, 0x3f, 0xe9, 0xe7, 0xeb, 0x49, 0xf9, 0x5d, 0x0a, 0x9b, 0xb7, 0x95, 0x08, 0xf1, - 0x1d, 0xb4, 0xea, 0x57, 0xd5, 0x57, 0x9d, 0x7e, 0xd1, 0x11, 0x45, 0x01, 0x39, 0xf5, 0xf3, 0xc1, - 0x50, 0x7f, 0x46, 0xc0, 0x3a, 0x4b, 0x2e, 0x84, 0x83, 0x79, 0x45, 0xb2, 0xe1, 0x57, 0x27, 0xa8, - 0x07, 0x01, 0x94, 0x25, 0x0c, 0xbe, 0x8b, 0xd6, 0x5e, 0xa4, 0x31, 0x50, 0xf6, 0xdd, 0x38, 0xcf, - 0x6c, 0xe0, 0x59, 0x99, 0xe4, 0xc9, 0x22, 0x6a, 0x44, 0xf4, 0x08, 0xad, 0xc4, 0xcb, 0x67, 0xe0, - 0x88, 0x99, 0x3c, 0xad, 0x5f, 0xc8, 0x52, 0x1b, 0xc7, 0x14, 0x07, 0x32, 0x57, 0xcf, 0x81, 0x66, - 0x60, 0xcf, 0x02, 0x79, 0x70, 0x62, 0x7b, 0x44, 0x8d, 0x7f, 0x68, 0xa0, 0x6b, 0x13, 0xe2, 0x1d, - 0x00, 0x6a, 0x60, 0x00, 0xaa, 0x3f, 0x91, 0xc2, 0x7c, 0xbd, 0x14, 0x56, 0xc7, 0x52, 0xd8, 0x02, - 0xc8, 0xa2, 0xc0, 0x58, 0x1e, 0x80, 0xf0, 0x44, 0x1a, 0xac, 0x28, 0x7b, 0x8c, 0x2c, 0xd4, 0xdc, - 0xfa, 0x31, 0xd5, 0x5b, 0x9e, 0x10, 0x73, 0xb4, 0xe0, 0x98, 0x3d, 0x9c, 0x54, 0xc1, 0xf5, 0x54, - 0xe6, 0x3c, 0xe3, 0xb8, 0x88, 0xf7, 0x74, 0xc0, 0x0a, 0x91, 0x33, 0xa7, 0x8d, 0xa5, 0x03, 0x4b, - 0xe3, 0x44, 0x5f, 0xf8, 0xb8, 0xbf, 0x46, 0x51, 0x9d, 0xbc, 0x51, 0xd3, 0xd3, 0x13, 0x8d, 0xaf, - 0xed, 0xad, 0x00, 0xd9, 0x8d, 0x02, 0x31, 0x19, 0xfc, 0x39, 0xba, 0x1c, 0x7a, 0x02, 0x93, 0x65, - 0x01, 0x96, 0x3a, 0x4d, 0x2d, 0x67, 0x05, 0x50, 0xcb, 0xb5, 0x01, 0x4b, 0x16, 0xc3, 0xd9, 0xbc, - 0xe4, 0xbb, 0x42, 0x44, 0xec, 0xeb, 0x3d, 0x1f, 0xdf, 0x0b, 0x61, 0xfc, 0x29, 0x6a, 0xa6, 0x9a, - 0x4d, 0x85, 0xea, 0x80, 0x01, 0x13, 0x28, 0x52, 0xee, 0x17, 0xc3, 0xe4, 0xa5, 0x58, 0xb9, 0xb7, - 0x53, 0x7c, 0x5f, 0x27, 0xe5, 0x2f, 0xd0, 0x4a, 0x35, 0xb7, 0xa3, 0x0d, 0x70, 0x66, 0xdd, 0xe4, - 0xf4, 0xa5, 0x30, 0x7d, 0x39, 0x4e, 0xdf, 0x3a, 0x81, 0x8c, 0x18, 0xc6, 0xd4, 0xd3, 0xa5, 0x1a, - 0x9f, 0x7e, 0x69, 0x5c, 0x3d, 0x5d, 0xa7, 0x93, 0xb9, 0x0f, 0xd1, 0x3c, 0x37, 0xc0, 0x1c, 0xa4, - 0x9e, 0xd6, 0x01, 0x20, 0xe4, 0x15, 0xdb, 0xc6, 0x6c, 0x64, 0x0a, 0xed, 0x69, 0x0b, 0x00, 0x7f, - 0x86, 0x9a, 0xa3, 0x6a, 0x98, 0x83, 0x0d, 0xdb, 0xe9, 0x13, 0x15, 0x3e, 0x03, 0xb2, 0x1c, 0x2d, - 0xad, 0x10, 0x9b, 0x11, 0xb0, 0xc3, 0x86, 0xdb, 0x3e, 0x8c, 0xbf, 0x44, 0xd7, 0x3c, 0xd6, 0x80, - 0x33, 0x22, 0x6e, 0x48, 0xac, 0x09, 0x54, 0x69, 0xc5, 0xc1, 0xa6, 0x2a, 0x44, 0x9a, 0xa1, 0x8b, - 0xb4, 0x24, 0x1b, 0x66, 0x11, 0xb9, 0xaf, 0xb7, 0x02, 0xee, 0x7e, 0x80, 0xc5, 0x32, 0x84, 0x77, - 0xd0, 0xf5, 0xff, 0x24, 0x4b, 0xb6, 0x91, 0xcb, 0x81, 0x6d, 0xf5, 0xdf, 0xd8, 0x92, 0x7b, 0xf8, - 0x1b, 0x34, 0x6f, 0xa0, 0x2b, 0xac, 0x33, 0xcc, 0x17, 0xc9, 0x60, 0xda, 0x95, 0x57, 0x34, 0x6d, - 0x6e, 0x9c, 0xc9, 0xbb, 0xf6, 0x3e, 0xc2, 0x39, 0x74, 0x58, 0xbf, 0x70, 0xb4, 0x64, 0x5d, 0xa0, - 0x85, 0x90, 0xc2, 0x91, 0x95, 0xe0, 0xd6, 0x7c, 0x8a, 0xec, 0xb2, 0x2e, 0xdc, 0xf3, 0xe3, 0xf8, - 0x3a, 0x9a, 0xf5, 0x2b, 0x1b, 0x43, 0xb6, 0x02, 0x72, 0x46, 0xb2, 0xe1, 0x09, 0xca, 0x9f, 0xb1, - 0x17, 0xfa, 0x2f, 0x35, 0xc0, 0xb5, 0xc9, 0xd3, 0xa4, 0xd5, 0xb0, 0xf0, 0xe5, 0xc9, 0x66, 0x9c, - 0x05, 0x44, 0x64, 0x58, 0x47, 0xf3, 0xe1, 0x19, 0x12, 0x5f, 0x24, 0x52, 0x2b, 0xd7, 0x23, 0x6b, - 0x41, 0x69, 0x36, 0x8e, 0xef, 0x82, 0xd9, 0xf1, 0xa3, 0xbe, 0x3a, 0x95, 0x55, 0xcd, 0x88, 0x97, - 0xc1, 0xd7, 0xc4, 0x37, 0x6b, 0x56, 0xa7, 0x32, 0x9e, 0xd7, 0xed, 0x8a, 0xd0, 0x57, 0xa7, 0x91, - 0x4c, 0x75, 0x6f, 0xc8, 0xd5, 0x9a, 0xd5, 0x29, 0xa9, 0x54, 0x97, 0xcc, 0x3f, 0xf7, 0x46, 0x22, - 0xd5, 0x19, 0xb9, 0x56, 0xf3, 0xb9, 0x97, 0x34, 0xaa, 0xb3, 0x04, 0x08, 0xf3, 0x97, 0xed, 0xba, - 0x5e, 0xd3, 0x2e, 0xfe, 0x0f, 0x76, 0xf1, 0x97, 0xec, 0x7a, 0xab, 0xa6, 0x5d, 0xfc, 0x05, 0xbb, - 0xee, 0xa3, 0x69, 0x4e, 0x95, 0x36, 0x92, 0xbc, 0x5d, 0x8f, 0xf9, 0x0c, 0xbf, 0xaf, 0x8d, 0xc4, - 0x47, 0xe8, 0xca, 0xa8, 0x2a, 0x8d, 0x1a, 0x6d, 0x0e, 0x9c, 0x1d, 0xc7, 0xf7, 0xdb, 0x3b, 0xf5, - 0x54, 0x88, 0x4b, 0x95, 0x2a, 0xb5, 0xd8, 0x4d, 0xcf, 0x1c, 0xde, 0x72, 0xdf, 0xa1, 0x39, 0x28, - 0xad, 0x28, 0xb4, 0x1a, 0x6d, 0xfb, 0x7a, 0xcd, 0x6d, 0x4f, 0x7c, 0xd5, 0xb6, 0x0f, 0xd0, 0xe5, - 0x70, 0x23, 0x3b, 0x1d, 0xe0, 0x4e, 0x0c, 0xaa, 0xf2, 0x9b, 0x16, 0x49, 0xde, 0xad, 0xb9, 0x32, - 0x7f, 0x91, 0x2b, 0xea, 0xfd, 0xd8, 0xd8, 0x03, 0xf1, 0xed, 0xec, 0xf1, 0xb3, 0x56, 0xe3, 0xc9, - 0xb3, 0x56, 0xe3, 0xcf, 0x67, 0xad, 0xc6, 0x8f, 0xcf, 0x5b, 0x53, 0x4f, 0x9e, 0xb7, 0xa6, 0x7e, - 0x7f, 0xde, 0x9a, 0x7a, 0xf8, 0xf1, 0xff, 0x14, 0x19, 0xb6, 0x4f, 0x7e, 0xd0, 0xb9, 0xe3, 0x12, - 0xec, 0xc1, 0x74, 0xf8, 0xed, 0xf5, 0xe1, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x37, 0xa3, 0x34, - 0xa5, 0xea, 0x0d, 0x00, 0x00, +var fileDescriptor_43b93581c26c7643 = []byte{ + // 1311 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4d, 0x6f, 0x1c, 0x35, + 0x18, 0xce, 0xd2, 0x36, 0xa5, 0x6e, 0x9a, 0x0f, 0x93, 0xa6, 0x4e, 0x9a, 0x6c, 0x42, 0x53, 0x20, + 0x2d, 0x6d, 0x16, 0x95, 0x03, 0x9f, 0x07, 0x5a, 0x25, 0xa9, 0x22, 0x9a, 0x2a, 0x9a, 0x84, 0x56, + 0x2a, 0x48, 0xc6, 0xf1, 0xbc, 0xb3, 0x6b, 0x65, 0xc6, 0x1e, 0x6c, 0xef, 0x66, 0xd3, 0x3b, 0x77, + 0x7e, 0x06, 0x47, 0x0e, 0xf0, 0x1f, 0x7a, 0xac, 0x38, 0x21, 0x0e, 0x15, 0x6a, 0x0f, 0xfc, 0x0d, + 0xe4, 0x8f, 0xd9, 0xec, 0xb6, 0x80, 0x50, 0x87, 0x4b, 0x94, 0xb5, 0x9f, 0xf7, 0x79, 0x5e, 0x3f, + 0xb6, 0xdf, 0xd7, 0x83, 0xe6, 0xa1, 0x10, 0xc6, 0x08, 0x25, 0x4d, 0xab, 0x77, 0xab, 0x55, 0x32, + 0xcd, 0x0a, 0xb3, 0x5e, 0x6a, 0x65, 0x15, 0x9e, 0x18, 0x4c, 0xad, 0xf7, 0x6e, 0x2d, 0xcc, 0x73, + 0x65, 0x0a, 0x65, 0xa8, 0x9f, 0x6b, 0x85, 0x1f, 0x01, 0xb8, 0x30, 0xc3, 0x0a, 0x21, 0x55, 0xcb, + 0xff, 0x8d, 0x43, 0xb3, 0x6d, 0xd5, 0x56, 0x01, 0xea, 0xfe, 0x0b, 0xa3, 0x57, 0x7e, 0x59, 0x44, + 0xe3, 0xbb, 0x5e, 0x02, 0x13, 0x74, 0xb6, 0x07, 0xda, 0xb1, 0x93, 0xc6, 0x4a, 0x63, 0xed, 0x5c, + 0x52, 0xfd, 0xc4, 0x9f, 0xa0, 0xf9, 0x82, 0xf5, 0xa9, 0x01, 0x2d, 0x58, 0x2e, 0x1e, 0x43, 0x4a, + 0x0b, 0xd3, 0xa6, 0x39, 0xc8, 0xb6, 0xed, 0x90, 0x37, 0x56, 0x1a, 0x6b, 0xa7, 0x92, 0xb9, 0x82, + 0xf5, 0xf7, 0x06, 0xf3, 0x3b, 0xa6, 0x7d, 0xcf, 0xcf, 0x62, 0x86, 0xa6, 0x0b, 0x21, 0xa9, 0x55, + 0xa5, 0xe0, 0xf4, 0x08, 0x44, 0xbb, 0x63, 0xc9, 0x29, 0xc7, 0x7e, 0xe7, 0xa3, 0x27, 0xcf, 0x96, + 0xc7, 0x7e, 0x7f, 0xb6, 0xdc, 0x6a, 0x0b, 0xdb, 0xe9, 0x1e, 0xac, 0x73, 0x55, 0xb4, 0x58, 0x9e, + 0x2b, 0xcd, 0x6e, 0x4a, 0xb0, 0x47, 0x4a, 0x1f, 0x56, 0x3f, 0x79, 0x87, 0x09, 0xd9, 0x2a, 0x98, + 0xed, 0xac, 0x6f, 0x00, 0x4f, 0x26, 0x0b, 0x21, 0xf7, 0x1d, 0xdf, 0x43, 0x4f, 0x87, 0x5b, 0x68, + 0xd6, 0x65, 0xe7, 0x25, 0x0c, 0x2d, 0x41, 0xd3, 0x83, 0x5c, 0xf1, 0x43, 0x72, 0x7a, 0xa5, 0xb1, + 0x76, 0x3a, 0x99, 0x29, 0x58, 0xdf, 0xa3, 0xcd, 0x2e, 0xe8, 0x3b, 0x6e, 0x02, 0x67, 0x68, 0x4e, + 0xc3, 0x77, 0x5d, 0xa1, 0xdd, 0x42, 0x84, 0x14, 0x45, 0xb7, 0xa0, 0xc6, 0xb2, 0x43, 0x20, 0x67, + 0x7c, 0x66, 0x1f, 0xc4, 0xcc, 0x2e, 0x06, 0x4b, 0x4d, 0x7a, 0xb8, 0x2e, 0x54, 0xd0, 0xdf, 0x96, + 0xf6, 0xd7, 0x9f, 0x6f, 0xa2, 0xe8, 0xf5, 0xb6, 0xb4, 0x3f, 0xfe, 0xf9, 0xd3, 0xf5, 0x46, 0x32, + 0x5b, 0xf1, 0xed, 0x04, 0xba, 0x3d, 0xc7, 0xe6, 0x6c, 0xd3, 0x50, 0xa8, 0x1e, 0x04, 0x76, 0x9a, + 0x42, 0xce, 0x8e, 0xe9, 0x91, 0x90, 0xa9, 0x3a, 0x22, 0xe3, 0xc1, 0xb6, 0x00, 0xf0, 0xf8, 0x0d, + 0x37, 0xfd, 0xd0, 0xcf, 0xe2, 0xb5, 0x60, 0x1b, 0x94, 0x8a, 0x77, 0x2a, 0xa3, 0xcf, 0xfa, 0x08, + 0xb7, 0xfa, 0x4d, 0x37, 0x1c, 0x0d, 0x7e, 0x84, 0x26, 0x0e, 0xc0, 0x32, 0x0a, 0xd2, 0x6a, 0x55, + 0x1e, 0x93, 0x37, 0xeb, 0x99, 0x7b, 0xde, 0x91, 0x6d, 0x06, 0x2e, 0xfc, 0x0d, 0xba, 0x90, 0x03, + 0xd3, 0x52, 0xc8, 0x36, 0xd5, 0xcc, 0x02, 0x39, 0x57, 0x8f, 0x7c, 0xa2, 0x62, 0x4b, 0x98, 0x05, + 0x5c, 0x20, 0x77, 0x68, 0x68, 0x5b, 0xb3, 0x54, 0x80, 0xb4, 0xd4, 0x76, 0x34, 0x98, 0x8e, 0xca, + 0x53, 0x82, 0xea, 0xc9, 0xb8, 0xe3, 0x70, 0x37, 0xb2, 0xee, 0x57, 0xa4, 0x18, 0x10, 0x76, 0x96, + 0x86, 0xad, 0xc8, 0x34, 0xe3, 0xd6, 0x9d, 0xf4, 0xf3, 0xf5, 0xa4, 0xdc, 0x2e, 0xf9, 0xcd, 0xdb, + 0x8a, 0x84, 0x78, 0x13, 0x2d, 0xbb, 0x55, 0x75, 0x65, 0xd6, 0xcd, 0x33, 0x91, 0xe7, 0x90, 0x52, + 0x17, 0x0f, 0x9a, 0xba, 0x33, 0x02, 0xc6, 0x1a, 0x72, 0xc1, 0x1f, 0xcc, 0xc5, 0x82, 0xf5, 0xbf, + 0x3a, 0x41, 0x3d, 0xf4, 0xa0, 0x24, 0x62, 0xf0, 0x5d, 0xb4, 0xf2, 0x32, 0x8d, 0x86, 0xb2, 0x6b, + 0x87, 0x79, 0x26, 0x3d, 0xcf, 0xd2, 0x28, 0x4f, 0x12, 0x50, 0x03, 0xa2, 0xc7, 0x68, 0x29, 0x5c, + 0x3e, 0x0d, 0x47, 0x4c, 0xa7, 0x71, 0xfd, 0xa2, 0x28, 0x95, 0xb6, 0x4c, 0x72, 0x20, 0x53, 0xf5, + 0x1c, 0x58, 0xf0, 0xec, 0x89, 0x27, 0xf7, 0x4e, 0x6c, 0x0f, 0xa8, 0xf1, 0xf7, 0x0d, 0xb4, 0x3a, + 0x22, 0x9e, 0x01, 0x50, 0x0d, 0x3d, 0x90, 0xdd, 0x91, 0x14, 0xa6, 0xeb, 0xa5, 0xb0, 0x3c, 0x94, + 0xc2, 0x16, 0x40, 0x12, 0x04, 0x86, 0xf2, 0x00, 0x84, 0x47, 0xd2, 0x60, 0x79, 0xd9, 0x61, 0x64, + 0xa6, 0xe6, 0xd6, 0x0f, 0xa9, 0xde, 0x76, 0x84, 0x98, 0xa3, 0x19, 0xcb, 0xcc, 0xe1, 0xa8, 0x0a, + 0xae, 0xa7, 0x32, 0xe5, 0x18, 0x87, 0x45, 0x9c, 0xa7, 0x3d, 0x96, 0x8b, 0x94, 0x59, 0xa5, 0x0d, + 0xed, 0x19, 0x1a, 0x02, 0x5d, 0xe1, 0xe3, 0xee, 0x1a, 0x05, 0x75, 0xf2, 0x56, 0x4d, 0x4f, 0x4f, + 0x34, 0x1e, 0x98, 0xdb, 0x1e, 0xb2, 0x1b, 0x04, 0x42, 0x32, 0xf8, 0x73, 0x74, 0xd9, 0xf7, 0x04, + 0x56, 0x94, 0x39, 0x18, 0x6a, 0x15, 0x35, 0x9c, 0xe5, 0x40, 0x0d, 0x57, 0x1a, 0x0c, 0x99, 0xf5, + 0x67, 0xf3, 0x92, 0xeb, 0x0a, 0x01, 0xb1, 0xaf, 0xf6, 0xdc, 0xfc, 0x9e, 0x9f, 0xc6, 0x9f, 0xa2, + 0x85, 0x58, 0xb3, 0xa9, 0x90, 0x19, 0x68, 0xd0, 0x9e, 0x22, 0xe6, 0x7e, 0xd1, 0x07, 0xcf, 0x85, + 0xca, 0xbd, 0x1d, 0xe7, 0xf7, 0x55, 0x54, 0xfe, 0x02, 0x2d, 0x55, 0xb1, 0x99, 0xd2, 0xc0, 0x99, + 0xb1, 0xa3, 0xe1, 0x73, 0x3e, 0x7c, 0x3e, 0x84, 0x6f, 0x9d, 0x40, 0x06, 0x0c, 0x43, 0xea, 0xf1, + 0x52, 0x0d, 0x87, 0x5f, 0x1a, 0x56, 0x8f, 0xd7, 0xe9, 0x24, 0xf6, 0x11, 0x9a, 0xe6, 0x1a, 0x98, + 0x85, 0xd8, 0xd3, 0x32, 0x00, 0x42, 0x5e, 0xb3, 0x6d, 0x4c, 0x06, 0x26, 0xdf, 0x9e, 0xb6, 0x00, + 0xf0, 0x67, 0x68, 0x61, 0x50, 0x0d, 0x53, 0x30, 0x7e, 0x3b, 0x5d, 0xa2, 0xc2, 0x65, 0x40, 0xe6, + 0x83, 0xa5, 0x15, 0x62, 0x23, 0x00, 0x76, 0x58, 0x7f, 0xdb, 0x4d, 0xe3, 0x2f, 0xd1, 0xaa, 0xc3, + 0x6a, 0xb0, 0x5a, 0x84, 0x0d, 0x09, 0x35, 0x81, 0x4a, 0x25, 0x39, 0x98, 0x58, 0x85, 0xc8, 0x82, + 0xef, 0x22, 0xcd, 0x82, 0xf5, 0x93, 0x80, 0xdc, 0x57, 0x5b, 0x1e, 0x77, 0xdf, 0xc3, 0x42, 0x19, + 0xc2, 0x3b, 0xe8, 0xea, 0xbf, 0x92, 0x45, 0xdb, 0xc8, 0x65, 0xcf, 0xb6, 0xfc, 0x4f, 0x6c, 0xd1, + 0x3d, 0xfc, 0x35, 0x9a, 0xd6, 0xd0, 0x16, 0xc6, 0x6a, 0xe6, 0x8a, 0xa4, 0x37, 0x6d, 0xf1, 0x35, + 0x4d, 0x9b, 0x1a, 0x66, 0x72, 0xae, 0xdd, 0x40, 0x38, 0x85, 0x8c, 0x75, 0x73, 0x4b, 0x4b, 0xd6, + 0x06, 0x9a, 0x8b, 0x42, 0x58, 0xb2, 0xe4, 0xdd, 0x9a, 0x8e, 0x33, 0xbb, 0xac, 0x0d, 0xf7, 0xdc, + 0x38, 0xbe, 0x8a, 0x26, 0xdd, 0xca, 0x86, 0x90, 0x4d, 0x8f, 0x9c, 0x28, 0x58, 0xff, 0x04, 0xe5, + 0xce, 0xd8, 0x4b, 0xfd, 0x97, 0x6a, 0xe0, 0x4a, 0xa7, 0x31, 0x68, 0xd9, 0x2f, 0x7c, 0x7e, 0xb4, + 0x19, 0x27, 0x1e, 0x11, 0x18, 0xd6, 0xd0, 0xb4, 0x7f, 0x86, 0x84, 0x17, 0x49, 0xa1, 0xa4, 0xed, + 0x90, 0x15, 0xaf, 0x34, 0x19, 0xc6, 0x77, 0x41, 0xef, 0xb8, 0x51, 0x57, 0x9d, 0xca, 0xaa, 0x66, + 0x84, 0xcb, 0xe0, 0x6a, 0xe2, 0xdb, 0x35, 0xab, 0x53, 0x19, 0xce, 0xeb, 0x76, 0x45, 0xe8, 0xaa, + 0xd3, 0x40, 0xa6, 0xba, 0x37, 0xe4, 0x4a, 0xcd, 0xea, 0x14, 0x55, 0xaa, 0x4b, 0xe6, 0x9e, 0x7b, + 0x03, 0x91, 0xea, 0x8c, 0xac, 0xd6, 0x7c, 0xee, 0x45, 0x8d, 0xea, 0x2c, 0x01, 0xc2, 0xfc, 0x55, + 0xbb, 0xae, 0xd6, 0xb4, 0x8b, 0xff, 0x8d, 0x5d, 0xfc, 0x15, 0xbb, 0xde, 0xa9, 0x69, 0x17, 0x7f, + 0xc9, 0xae, 0xfb, 0x68, 0x9c, 0x53, 0xa9, 0x74, 0x41, 0xde, 0xad, 0xc7, 0x7c, 0x86, 0xdf, 0x57, + 0xba, 0xc0, 0x47, 0x68, 0x71, 0x50, 0x95, 0x06, 0x8d, 0x36, 0x05, 0xce, 0x8e, 0xc3, 0xfb, 0xed, + 0xbd, 0x7a, 0x2a, 0xc4, 0xc6, 0x4a, 0x15, 0x5b, 0xec, 0x86, 0x63, 0xf6, 0x6f, 0xb9, 0x6f, 0xd1, + 0x14, 0x94, 0x46, 0xe4, 0x4a, 0x0e, 0xb6, 0x7d, 0xad, 0xe6, 0xb6, 0x47, 0xbe, 0x6a, 0xdb, 0x7b, + 0xe8, 0xb2, 0xbf, 0x91, 0x59, 0x06, 0xdc, 0x8a, 0x5e, 0x55, 0x7e, 0xe3, 0x22, 0xc9, 0xb5, 0x9a, + 0x2b, 0x73, 0x17, 0xb9, 0xa2, 0xde, 0x0f, 0x8d, 0xdd, 0x13, 0xe3, 0x07, 0xe8, 0x5a, 0x87, 0xe5, + 0x99, 0xaf, 0xc3, 0xa5, 0x56, 0x1c, 0x8c, 0x89, 0x6f, 0x28, 0xff, 0x74, 0x67, 0xb9, 0xa1, 0x20, + 0xd3, 0xf8, 0xc9, 0x71, 0xdd, 0x5f, 0xf0, 0x55, 0x17, 0xb0, 0xc3, 0xfa, 0xbb, 0x01, 0xee, 0x5f, + 0x45, 0x49, 0x04, 0x6f, 0xca, 0x34, 0x7c, 0x84, 0x30, 0x34, 0x5d, 0x39, 0x66, 0x58, 0x06, 0x34, + 0x15, 0x3d, 0xf2, 0xfe, 0xff, 0x63, 0xd9, 0x1e, 0xcb, 0x60, 0x43, 0xf4, 0x5c, 0xab, 0x4a, 0x99, + 0x65, 0xd4, 0x80, 0x4c, 0xdd, 0x13, 0xde, 0x55, 0xdd, 0x1b, 0xaf, 0xdb, 0xaa, 0x1c, 0xd3, 0x5e, + 0x20, 0xda, 0x02, 0xb8, 0x93, 0x3c, 0x79, 0xde, 0x6c, 0x3c, 0x7d, 0xde, 0x6c, 0xfc, 0xf1, 0xbc, + 0xd9, 0xf8, 0xe1, 0x45, 0x73, 0xec, 0xe9, 0x8b, 0xe6, 0xd8, 0x6f, 0x2f, 0x9a, 0x63, 0x8f, 0x3e, + 0xfe, 0x8f, 0x69, 0xf7, 0x5b, 0x27, 0xdf, 0xb9, 0xf6, 0xb8, 0x04, 0x73, 0x30, 0xee, 0x3f, 0x49, + 0x3f, 0xfc, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xdf, 0xfb, 0x02, 0x01, 0x0f, 0x00, 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -350,6 +368,37 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + { + size := m.DataSendingFee.Size() + i -= size + if _, err := m.DataSendingFee.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xe2 + { + size := m.EpsilonSafeDiv.Size() + i -= size + if _, err := m.EpsilonSafeDiv.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintParams(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xda + if m.HalfMaxProcessStakeRemovalsEndBlock != 0 { + i = encodeVarintParams(dAtA, i, uint64(m.HalfMaxProcessStakeRemovalsEndBlock)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xd0 + } { size := m.MinEffectiveTopicRevenue.Size() i -= size @@ -833,6 +882,13 @@ func (m *Params) Size() (n int) { n += 2 + l + sovParams(uint64(l)) l = m.MinEffectiveTopicRevenue.Size() n += 2 + l + sovParams(uint64(l)) + if m.HalfMaxProcessStakeRemovalsEndBlock != 0 { + n += 2 + sovParams(uint64(m.HalfMaxProcessStakeRemovalsEndBlock)) + } + l = m.EpsilonSafeDiv.Size() + n += 2 + l + sovParams(uint64(l)) + l = m.DataSendingFee.Size() + n += 2 + l + sovParams(uint64(l)) return n } @@ -1974,6 +2030,93 @@ func (m *Params) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 42: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HalfMaxProcessStakeRemovalsEndBlock", wireType) + } + m.HalfMaxProcessStakeRemovalsEndBlock = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.HalfMaxProcessStakeRemovalsEndBlock |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 43: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpsilonSafeDiv", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.EpsilonSafeDiv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 44: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataSendingFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowParams + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthParams + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthParams + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.DataSendingFee.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipParams(dAtA[iNdEx:]) diff --git a/x/emissions/types/query.pb.go b/x/emissions/types/query.pb.go index d18252135..420ce1d6d 100644 --- a/x/emissions/types/query.pb.go +++ b/x/emissions/types/query.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/query.proto +// source: emissions/v2/query.proto package types @@ -34,22 +34,23 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package -// QueryParamsRequest is the request type for the Query/Params RPC method. -type QueryParamsRequest struct { +type QueryNaiveInfererNetworkRegretRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Inferer string `protobuf:"bytes,2,opt,name=inferer,proto3" json:"inferer,omitempty"` } -func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } -func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryParamsRequest) ProtoMessage() {} -func (*QueryParamsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{0} +func (m *QueryNaiveInfererNetworkRegretRequest) Reset() { *m = QueryNaiveInfererNetworkRegretRequest{} } +func (m *QueryNaiveInfererNetworkRegretRequest) String() string { return proto.CompactTextString(m) } +func (*QueryNaiveInfererNetworkRegretRequest) ProtoMessage() {} +func (*QueryNaiveInfererNetworkRegretRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{0} } -func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryNaiveInfererNetworkRegretRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryNaiveInfererNetworkRegretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryNaiveInfererNetworkRegretRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -59,36 +60,50 @@ func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsRequest.Merge(m, src) +func (m *QueryNaiveInfererNetworkRegretRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNaiveInfererNetworkRegretRequest.Merge(m, src) } -func (m *QueryParamsRequest) XXX_Size() int { +func (m *QueryNaiveInfererNetworkRegretRequest) XXX_Size() int { return m.Size() } -func (m *QueryParamsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) +func (m *QueryNaiveInfererNetworkRegretRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNaiveInfererNetworkRegretRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryNaiveInfererNetworkRegretRequest proto.InternalMessageInfo -// QueryParamsResponse is the response type for the Query/Params RPC method. -type QueryParamsResponse struct { - // params defines the parameters of the module. - Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` +func (m *QueryNaiveInfererNetworkRegretRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 } -func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } -func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryParamsResponse) ProtoMessage() {} -func (*QueryParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{1} +func (m *QueryNaiveInfererNetworkRegretRequest) GetInferer() string { + if m != nil { + return m.Inferer + } + return "" } -func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { + +type QueryNaiveInfererNetworkRegretResponse struct { + Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` +} + +func (m *QueryNaiveInfererNetworkRegretResponse) Reset() { + *m = QueryNaiveInfererNetworkRegretResponse{} +} +func (m *QueryNaiveInfererNetworkRegretResponse) String() string { return proto.CompactTextString(m) } +func (*QueryNaiveInfererNetworkRegretResponse) ProtoMessage() {} +func (*QueryNaiveInfererNetworkRegretResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{1} +} +func (m *QueryNaiveInfererNetworkRegretResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryNaiveInfererNetworkRegretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryNaiveInfererNetworkRegretResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -98,41 +113,47 @@ func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryParamsResponse.Merge(m, src) +func (m *QueryNaiveInfererNetworkRegretResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNaiveInfererNetworkRegretResponse.Merge(m, src) } -func (m *QueryParamsResponse) XXX_Size() int { +func (m *QueryNaiveInfererNetworkRegretResponse) XXX_Size() int { return m.Size() } -func (m *QueryParamsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) +func (m *QueryNaiveInfererNetworkRegretResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNaiveInfererNetworkRegretResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryNaiveInfererNetworkRegretResponse proto.InternalMessageInfo -func (m *QueryParamsResponse) GetParams() Params { +func (m *QueryNaiveInfererNetworkRegretResponse) GetRegret() *TimestampedValue { if m != nil { - return m.Params + return m.Regret } - return Params{} + return nil } -// Total Stake returns the total amount of stake in the system -type QueryTotalStakeRequest struct { +type QueryOneOutInfererInfererNetworkRegretRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + OneOutInferer string `protobuf:"bytes,2,opt,name=one_out_inferer,json=oneOutInferer,proto3" json:"one_out_inferer,omitempty"` + Inferer string `protobuf:"bytes,3,opt,name=inferer,proto3" json:"inferer,omitempty"` } -func (m *QueryTotalStakeRequest) Reset() { *m = QueryTotalStakeRequest{} } -func (m *QueryTotalStakeRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTotalStakeRequest) ProtoMessage() {} -func (*QueryTotalStakeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{2} +func (m *QueryOneOutInfererInfererNetworkRegretRequest) Reset() { + *m = QueryOneOutInfererInfererNetworkRegretRequest{} } -func (m *QueryTotalStakeRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryOneOutInfererInfererNetworkRegretRequest) String() string { + return proto.CompactTextString(m) +} +func (*QueryOneOutInfererInfererNetworkRegretRequest) ProtoMessage() {} +func (*QueryOneOutInfererInfererNetworkRegretRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{2} +} +func (m *QueryOneOutInfererInfererNetworkRegretRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTotalStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryOneOutInfererInfererNetworkRegretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTotalStakeRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryOneOutInfererInfererNetworkRegretRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -142,38 +163,59 @@ func (m *QueryTotalStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *QueryTotalStakeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTotalStakeRequest.Merge(m, src) +func (m *QueryOneOutInfererInfererNetworkRegretRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOneOutInfererInfererNetworkRegretRequest.Merge(m, src) } -func (m *QueryTotalStakeRequest) XXX_Size() int { +func (m *QueryOneOutInfererInfererNetworkRegretRequest) XXX_Size() int { return m.Size() } -func (m *QueryTotalStakeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTotalStakeRequest.DiscardUnknown(m) +func (m *QueryOneOutInfererInfererNetworkRegretRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOneOutInfererInfererNetworkRegretRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryTotalStakeRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryOneOutInfererInfererNetworkRegretRequest proto.InternalMessageInfo -// Total Stake returns the total amount of stake in the system -// -// NOTE: The amount field is an Int which implements the custom method -// signatures required by gogoproto. -type QueryTotalStakeResponse struct { - Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +func (m *QueryOneOutInfererInfererNetworkRegretRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 } -func (m *QueryTotalStakeResponse) Reset() { *m = QueryTotalStakeResponse{} } -func (m *QueryTotalStakeResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTotalStakeResponse) ProtoMessage() {} -func (*QueryTotalStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{3} +func (m *QueryOneOutInfererInfererNetworkRegretRequest) GetOneOutInferer() string { + if m != nil { + return m.OneOutInferer + } + return "" } -func (m *QueryTotalStakeResponse) XXX_Unmarshal(b []byte) error { + +func (m *QueryOneOutInfererInfererNetworkRegretRequest) GetInferer() string { + if m != nil { + return m.Inferer + } + return "" +} + +type QueryOneOutInfererInfererNetworkRegretResponse struct { + Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` +} + +func (m *QueryOneOutInfererInfererNetworkRegretResponse) Reset() { + *m = QueryOneOutInfererInfererNetworkRegretResponse{} +} +func (m *QueryOneOutInfererInfererNetworkRegretResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryOneOutInfererInfererNetworkRegretResponse) ProtoMessage() {} +func (*QueryOneOutInfererInfererNetworkRegretResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{3} +} +func (m *QueryOneOutInfererInfererNetworkRegretResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTotalStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryOneOutInfererInfererNetworkRegretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTotalStakeResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryOneOutInfererInfererNetworkRegretResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -183,35 +225,47 @@ func (m *QueryTotalStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *QueryTotalStakeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTotalStakeResponse.Merge(m, src) +func (m *QueryOneOutInfererInfererNetworkRegretResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOneOutInfererInfererNetworkRegretResponse.Merge(m, src) } -func (m *QueryTotalStakeResponse) XXX_Size() int { +func (m *QueryOneOutInfererInfererNetworkRegretResponse) XXX_Size() int { return m.Size() } -func (m *QueryTotalStakeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTotalStakeResponse.DiscardUnknown(m) +func (m *QueryOneOutInfererInfererNetworkRegretResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOneOutInfererInfererNetworkRegretResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryTotalStakeResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryOneOutInfererInfererNetworkRegretResponse proto.InternalMessageInfo -type QueryReputerStakeInTopicRequest struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` - TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +func (m *QueryOneOutInfererInfererNetworkRegretResponse) GetRegret() *TimestampedValue { + if m != nil { + return m.Regret + } + return nil } -func (m *QueryReputerStakeInTopicRequest) Reset() { *m = QueryReputerStakeInTopicRequest{} } -func (m *QueryReputerStakeInTopicRequest) String() string { return proto.CompactTextString(m) } -func (*QueryReputerStakeInTopicRequest) ProtoMessage() {} -func (*QueryReputerStakeInTopicRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{4} +type QueryOneOutInfererForecasterNetworkRegretRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + OneOutInferer string `protobuf:"bytes,2,opt,name=one_out_inferer,json=oneOutInferer,proto3" json:"one_out_inferer,omitempty"` + Forecaster string `protobuf:"bytes,3,opt,name=forecaster,proto3" json:"forecaster,omitempty"` } -func (m *QueryReputerStakeInTopicRequest) XXX_Unmarshal(b []byte) error { + +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) Reset() { + *m = QueryOneOutInfererForecasterNetworkRegretRequest{} +} +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) String() string { + return proto.CompactTextString(m) +} +func (*QueryOneOutInfererForecasterNetworkRegretRequest) ProtoMessage() {} +func (*QueryOneOutInfererForecasterNetworkRegretRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{4} +} +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryReputerStakeInTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryReputerStakeInTopicRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryOneOutInfererForecasterNetworkRegretRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -221,48 +275,59 @@ func (m *QueryReputerStakeInTopicRequest) XXX_Marshal(b []byte, deterministic bo return b[:n], nil } } -func (m *QueryReputerStakeInTopicRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryReputerStakeInTopicRequest.Merge(m, src) +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOneOutInfererForecasterNetworkRegretRequest.Merge(m, src) } -func (m *QueryReputerStakeInTopicRequest) XXX_Size() int { +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) XXX_Size() int { return m.Size() } -func (m *QueryReputerStakeInTopicRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryReputerStakeInTopicRequest.DiscardUnknown(m) +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOneOutInfererForecasterNetworkRegretRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryReputerStakeInTopicRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryOneOutInfererForecasterNetworkRegretRequest proto.InternalMessageInfo -func (m *QueryReputerStakeInTopicRequest) GetAddress() string { +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) GetTopicId() uint64 { if m != nil { - return m.Address + return m.TopicId + } + return 0 +} + +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) GetOneOutInferer() string { + if m != nil { + return m.OneOutInferer } return "" } -func (m *QueryReputerStakeInTopicRequest) GetTopicId() uint64 { +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) GetForecaster() string { if m != nil { - return m.TopicId + return m.Forecaster } - return 0 + return "" } -type QueryReputerStakeInTopicResponse struct { - Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +type QueryOneOutInfererForecasterNetworkRegretResponse struct { + Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` } -func (m *QueryReputerStakeInTopicResponse) Reset() { *m = QueryReputerStakeInTopicResponse{} } -func (m *QueryReputerStakeInTopicResponse) String() string { return proto.CompactTextString(m) } -func (*QueryReputerStakeInTopicResponse) ProtoMessage() {} -func (*QueryReputerStakeInTopicResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{5} +func (m *QueryOneOutInfererForecasterNetworkRegretResponse) Reset() { + *m = QueryOneOutInfererForecasterNetworkRegretResponse{} } -func (m *QueryReputerStakeInTopicResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryOneOutInfererForecasterNetworkRegretResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryOneOutInfererForecasterNetworkRegretResponse) ProtoMessage() {} +func (*QueryOneOutInfererForecasterNetworkRegretResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{5} +} +func (m *QueryOneOutInfererForecasterNetworkRegretResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryReputerStakeInTopicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryOneOutInfererForecasterNetworkRegretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryReputerStakeInTopicResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryOneOutInfererForecasterNetworkRegretResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -272,35 +337,47 @@ func (m *QueryReputerStakeInTopicResponse) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *QueryReputerStakeInTopicResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryReputerStakeInTopicResponse.Merge(m, src) +func (m *QueryOneOutInfererForecasterNetworkRegretResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOneOutInfererForecasterNetworkRegretResponse.Merge(m, src) } -func (m *QueryReputerStakeInTopicResponse) XXX_Size() int { +func (m *QueryOneOutInfererForecasterNetworkRegretResponse) XXX_Size() int { return m.Size() } -func (m *QueryReputerStakeInTopicResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryReputerStakeInTopicResponse.DiscardUnknown(m) +func (m *QueryOneOutInfererForecasterNetworkRegretResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOneOutInfererForecasterNetworkRegretResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryReputerStakeInTopicResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryOneOutInfererForecasterNetworkRegretResponse proto.InternalMessageInfo -type QueryMultiReputerStakeInTopicRequest struct { - Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` - TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +func (m *QueryOneOutInfererForecasterNetworkRegretResponse) GetRegret() *TimestampedValue { + if m != nil { + return m.Regret + } + return nil } -func (m *QueryMultiReputerStakeInTopicRequest) Reset() { *m = QueryMultiReputerStakeInTopicRequest{} } -func (m *QueryMultiReputerStakeInTopicRequest) String() string { return proto.CompactTextString(m) } -func (*QueryMultiReputerStakeInTopicRequest) ProtoMessage() {} -func (*QueryMultiReputerStakeInTopicRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{6} +type QueryOneOutForecasterInfererNetworkRegretRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + OneOutForecaster string `protobuf:"bytes,2,opt,name=one_out_forecaster,json=oneOutForecaster,proto3" json:"one_out_forecaster,omitempty"` + Inferer string `protobuf:"bytes,3,opt,name=inferer,proto3" json:"inferer,omitempty"` } -func (m *QueryMultiReputerStakeInTopicRequest) XXX_Unmarshal(b []byte) error { + +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) Reset() { + *m = QueryOneOutForecasterInfererNetworkRegretRequest{} +} +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) String() string { + return proto.CompactTextString(m) +} +func (*QueryOneOutForecasterInfererNetworkRegretRequest) ProtoMessage() {} +func (*QueryOneOutForecasterInfererNetworkRegretRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{6} +} +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryMultiReputerStakeInTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryMultiReputerStakeInTopicRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryOneOutForecasterInfererNetworkRegretRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -310,48 +387,59 @@ func (m *QueryMultiReputerStakeInTopicRequest) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *QueryMultiReputerStakeInTopicRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryMultiReputerStakeInTopicRequest.Merge(m, src) +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOneOutForecasterInfererNetworkRegretRequest.Merge(m, src) } -func (m *QueryMultiReputerStakeInTopicRequest) XXX_Size() int { +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) XXX_Size() int { return m.Size() } -func (m *QueryMultiReputerStakeInTopicRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryMultiReputerStakeInTopicRequest.DiscardUnknown(m) +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOneOutForecasterInfererNetworkRegretRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryMultiReputerStakeInTopicRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryOneOutForecasterInfererNetworkRegretRequest proto.InternalMessageInfo -func (m *QueryMultiReputerStakeInTopicRequest) GetAddresses() []string { +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) GetTopicId() uint64 { if m != nil { - return m.Addresses + return m.TopicId } - return nil + return 0 } -func (m *QueryMultiReputerStakeInTopicRequest) GetTopicId() uint64 { +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) GetOneOutForecaster() string { if m != nil { - return m.TopicId + return m.OneOutForecaster } - return 0 + return "" } -type QueryMultiReputerStakeInTopicResponse struct { - Amounts []*StakeInfo `protobuf:"bytes,1,rep,name=amounts,proto3" json:"amounts,omitempty"` +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) GetInferer() string { + if m != nil { + return m.Inferer + } + return "" } -func (m *QueryMultiReputerStakeInTopicResponse) Reset() { *m = QueryMultiReputerStakeInTopicResponse{} } -func (m *QueryMultiReputerStakeInTopicResponse) String() string { return proto.CompactTextString(m) } -func (*QueryMultiReputerStakeInTopicResponse) ProtoMessage() {} -func (*QueryMultiReputerStakeInTopicResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{7} +type QueryOneOutForecasterInfererNetworkRegretResponse struct { + Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` } -func (m *QueryMultiReputerStakeInTopicResponse) XXX_Unmarshal(b []byte) error { + +func (m *QueryOneOutForecasterInfererNetworkRegretResponse) Reset() { + *m = QueryOneOutForecasterInfererNetworkRegretResponse{} +} +func (m *QueryOneOutForecasterInfererNetworkRegretResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryOneOutForecasterInfererNetworkRegretResponse) ProtoMessage() {} +func (*QueryOneOutForecasterInfererNetworkRegretResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{7} +} +func (m *QueryOneOutForecasterInfererNetworkRegretResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryMultiReputerStakeInTopicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryOneOutForecasterInfererNetworkRegretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryMultiReputerStakeInTopicResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryOneOutForecasterInfererNetworkRegretResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -361,46 +449,47 @@ func (m *QueryMultiReputerStakeInTopicResponse) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *QueryMultiReputerStakeInTopicResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryMultiReputerStakeInTopicResponse.Merge(m, src) +func (m *QueryOneOutForecasterInfererNetworkRegretResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOneOutForecasterInfererNetworkRegretResponse.Merge(m, src) } -func (m *QueryMultiReputerStakeInTopicResponse) XXX_Size() int { +func (m *QueryOneOutForecasterInfererNetworkRegretResponse) XXX_Size() int { return m.Size() } -func (m *QueryMultiReputerStakeInTopicResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryMultiReputerStakeInTopicResponse.DiscardUnknown(m) +func (m *QueryOneOutForecasterInfererNetworkRegretResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOneOutForecasterInfererNetworkRegretResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryMultiReputerStakeInTopicResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryOneOutForecasterInfererNetworkRegretResponse proto.InternalMessageInfo -func (m *QueryMultiReputerStakeInTopicResponse) GetAmounts() []*StakeInfo { +func (m *QueryOneOutForecasterInfererNetworkRegretResponse) GetRegret() *TimestampedValue { if m != nil { - return m.Amounts + return m.Regret } return nil } -type QueryStakeFromReputerInTopicInSelfRequest struct { - ReputerAddress string `protobuf:"bytes,1,opt,name=reputer_address,json=reputerAddress,proto3" json:"reputer_address,omitempty"` - TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +type QueryOneOutForecasterForecasterNetworkRegretRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + OneOutForecaster string `protobuf:"bytes,2,opt,name=one_out_forecaster,json=oneOutForecaster,proto3" json:"one_out_forecaster,omitempty"` + Forecaster string `protobuf:"bytes,3,opt,name=forecaster,proto3" json:"forecaster,omitempty"` } -func (m *QueryStakeFromReputerInTopicInSelfRequest) Reset() { - *m = QueryStakeFromReputerInTopicInSelfRequest{} +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) Reset() { + *m = QueryOneOutForecasterForecasterNetworkRegretRequest{} } -func (m *QueryStakeFromReputerInTopicInSelfRequest) String() string { +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) String() string { return proto.CompactTextString(m) } -func (*QueryStakeFromReputerInTopicInSelfRequest) ProtoMessage() {} -func (*QueryStakeFromReputerInTopicInSelfRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{8} +func (*QueryOneOutForecasterForecasterNetworkRegretRequest) ProtoMessage() {} +func (*QueryOneOutForecasterForecasterNetworkRegretRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{8} } -func (m *QueryStakeFromReputerInTopicInSelfRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStakeFromReputerInTopicInSelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStakeFromReputerInTopicInSelfRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryOneOutForecasterForecasterNetworkRegretRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -410,52 +499,59 @@ func (m *QueryStakeFromReputerInTopicInSelfRequest) XXX_Marshal(b []byte, determ return b[:n], nil } } -func (m *QueryStakeFromReputerInTopicInSelfRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStakeFromReputerInTopicInSelfRequest.Merge(m, src) +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOneOutForecasterForecasterNetworkRegretRequest.Merge(m, src) } -func (m *QueryStakeFromReputerInTopicInSelfRequest) XXX_Size() int { +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) XXX_Size() int { return m.Size() } -func (m *QueryStakeFromReputerInTopicInSelfRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStakeFromReputerInTopicInSelfRequest.DiscardUnknown(m) +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOneOutForecasterForecasterNetworkRegretRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryStakeFromReputerInTopicInSelfRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryOneOutForecasterForecasterNetworkRegretRequest proto.InternalMessageInfo -func (m *QueryStakeFromReputerInTopicInSelfRequest) GetReputerAddress() string { +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) GetTopicId() uint64 { if m != nil { - return m.ReputerAddress + return m.TopicId } - return "" + return 0 } -func (m *QueryStakeFromReputerInTopicInSelfRequest) GetTopicId() uint64 { +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) GetOneOutForecaster() string { if m != nil { - return m.TopicId + return m.OneOutForecaster } - return 0 + return "" } -type QueryStakeFromReputerInTopicInSelfResponse struct { - Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) GetForecaster() string { + if m != nil { + return m.Forecaster + } + return "" } -func (m *QueryStakeFromReputerInTopicInSelfResponse) Reset() { - *m = QueryStakeFromReputerInTopicInSelfResponse{} +type QueryOneOutForecasterForecasterNetworkRegretResponse struct { + Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` } -func (m *QueryStakeFromReputerInTopicInSelfResponse) String() string { + +func (m *QueryOneOutForecasterForecasterNetworkRegretResponse) Reset() { + *m = QueryOneOutForecasterForecasterNetworkRegretResponse{} +} +func (m *QueryOneOutForecasterForecasterNetworkRegretResponse) String() string { return proto.CompactTextString(m) } -func (*QueryStakeFromReputerInTopicInSelfResponse) ProtoMessage() {} -func (*QueryStakeFromReputerInTopicInSelfResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{9} +func (*QueryOneOutForecasterForecasterNetworkRegretResponse) ProtoMessage() {} +func (*QueryOneOutForecasterForecasterNetworkRegretResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{9} } -func (m *QueryStakeFromReputerInTopicInSelfResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryOneOutForecasterForecasterNetworkRegretResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStakeFromReputerInTopicInSelfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryOneOutForecasterForecasterNetworkRegretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStakeFromReputerInTopicInSelfResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryOneOutForecasterForecasterNetworkRegretResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -465,39 +561,41 @@ func (m *QueryStakeFromReputerInTopicInSelfResponse) XXX_Marshal(b []byte, deter return b[:n], nil } } -func (m *QueryStakeFromReputerInTopicInSelfResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStakeFromReputerInTopicInSelfResponse.Merge(m, src) +func (m *QueryOneOutForecasterForecasterNetworkRegretResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOneOutForecasterForecasterNetworkRegretResponse.Merge(m, src) } -func (m *QueryStakeFromReputerInTopicInSelfResponse) XXX_Size() int { +func (m *QueryOneOutForecasterForecasterNetworkRegretResponse) XXX_Size() int { return m.Size() } -func (m *QueryStakeFromReputerInTopicInSelfResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStakeFromReputerInTopicInSelfResponse.DiscardUnknown(m) +func (m *QueryOneOutForecasterForecasterNetworkRegretResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOneOutForecasterForecasterNetworkRegretResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryStakeFromReputerInTopicInSelfResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryOneOutForecasterForecasterNetworkRegretResponse proto.InternalMessageInfo -type QueryDelegateStakeInTopicInReputerRequest struct { - ReputerAddress string `protobuf:"bytes,1,opt,name=reputer_address,json=reputerAddress,proto3" json:"reputer_address,omitempty"` - TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +func (m *QueryOneOutForecasterForecasterNetworkRegretResponse) GetRegret() *TimestampedValue { + if m != nil { + return m.Regret + } + return nil } -func (m *QueryDelegateStakeInTopicInReputerRequest) Reset() { - *m = QueryDelegateStakeInTopicInReputerRequest{} -} -func (m *QueryDelegateStakeInTopicInReputerRequest) String() string { - return proto.CompactTextString(m) +// QueryParamsRequest is the request type for the Query/Params RPC method. +type QueryParamsRequest struct { } -func (*QueryDelegateStakeInTopicInReputerRequest) ProtoMessage() {} -func (*QueryDelegateStakeInTopicInReputerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{10} + +func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } +func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryParamsRequest) ProtoMessage() {} +func (*QueryParamsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{10} } -func (m *QueryDelegateStakeInTopicInReputerRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryDelegateStakeInTopicInReputerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryDelegateStakeInTopicInReputerRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -507,52 +605,36 @@ func (m *QueryDelegateStakeInTopicInReputerRequest) XXX_Marshal(b []byte, determ return b[:n], nil } } -func (m *QueryDelegateStakeInTopicInReputerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDelegateStakeInTopicInReputerRequest.Merge(m, src) +func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsRequest.Merge(m, src) } -func (m *QueryDelegateStakeInTopicInReputerRequest) XXX_Size() int { +func (m *QueryParamsRequest) XXX_Size() int { return m.Size() } -func (m *QueryDelegateStakeInTopicInReputerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDelegateStakeInTopicInReputerRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryDelegateStakeInTopicInReputerRequest proto.InternalMessageInfo - -func (m *QueryDelegateStakeInTopicInReputerRequest) GetReputerAddress() string { - if m != nil { - return m.ReputerAddress - } - return "" +func (m *QueryParamsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) } -func (m *QueryDelegateStakeInTopicInReputerRequest) GetTopicId() uint64 { - if m != nil { - return m.TopicId - } - return 0 -} +var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo -type QueryDelegateStakeInTopicInReputerResponse struct { - Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +// QueryParamsResponse is the response type for the Query/Params RPC method. +type QueryParamsResponse struct { + // params defines the parameters of the module. + Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` } -func (m *QueryDelegateStakeInTopicInReputerResponse) Reset() { - *m = QueryDelegateStakeInTopicInReputerResponse{} -} -func (m *QueryDelegateStakeInTopicInReputerResponse) String() string { - return proto.CompactTextString(m) -} -func (*QueryDelegateStakeInTopicInReputerResponse) ProtoMessage() {} -func (*QueryDelegateStakeInTopicInReputerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{11} +func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } +func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryParamsResponse) ProtoMessage() {} +func (*QueryParamsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{11} } -func (m *QueryDelegateStakeInTopicInReputerResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryDelegateStakeInTopicInReputerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryDelegateStakeInTopicInReputerResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -562,40 +644,41 @@ func (m *QueryDelegateStakeInTopicInReputerResponse) XXX_Marshal(b []byte, deter return b[:n], nil } } -func (m *QueryDelegateStakeInTopicInReputerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDelegateStakeInTopicInReputerResponse.Merge(m, src) +func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryParamsResponse.Merge(m, src) } -func (m *QueryDelegateStakeInTopicInReputerResponse) XXX_Size() int { +func (m *QueryParamsResponse) XXX_Size() int { return m.Size() } -func (m *QueryDelegateStakeInTopicInReputerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDelegateStakeInTopicInReputerResponse.DiscardUnknown(m) +func (m *QueryParamsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryDelegateStakeInTopicInReputerResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo -type QueryStakeFromDelegatorInTopicInReputerRequest struct { - DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` - ReputerAddress string `protobuf:"bytes,2,opt,name=reputer_address,json=reputerAddress,proto3" json:"reputer_address,omitempty"` - TopicId uint64 `protobuf:"varint,3,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +func (m *QueryParamsResponse) GetParams() Params { + if m != nil { + return m.Params + } + return Params{} } -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) Reset() { - *m = QueryStakeFromDelegatorInTopicInReputerRequest{} -} -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) String() string { - return proto.CompactTextString(m) +// Total Stake returns the total amount of stake in the system +type QueryTotalStakeRequest struct { } -func (*QueryStakeFromDelegatorInTopicInReputerRequest) ProtoMessage() {} -func (*QueryStakeFromDelegatorInTopicInReputerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{12} + +func (m *QueryTotalStakeRequest) Reset() { *m = QueryTotalStakeRequest{} } +func (m *QueryTotalStakeRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTotalStakeRequest) ProtoMessage() {} +func (*QueryTotalStakeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{12} } -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryTotalStakeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTotalStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTotalStakeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -605,59 +688,38 @@ func (m *QueryStakeFromDelegatorInTopicInReputerRequest) XXX_Marshal(b []byte, d return b[:n], nil } } -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerRequest.Merge(m, src) +func (m *QueryTotalStakeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTotalStakeRequest.Merge(m, src) } -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) XXX_Size() int { +func (m *QueryTotalStakeRequest) XXX_Size() int { return m.Size() } -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerRequest proto.InternalMessageInfo - -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) GetDelegatorAddress() string { - if m != nil { - return m.DelegatorAddress - } - return "" -} - -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) GetReputerAddress() string { - if m != nil { - return m.ReputerAddress - } - return "" +func (m *QueryTotalStakeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTotalStakeRequest.DiscardUnknown(m) } -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) GetTopicId() uint64 { - if m != nil { - return m.TopicId - } - return 0 -} +var xxx_messageInfo_QueryTotalStakeRequest proto.InternalMessageInfo -type QueryStakeFromDelegatorInTopicInReputerResponse struct { +// Total Stake returns the total amount of stake in the system +// +// NOTE: The amount field is an Int which implements the custom method +// signatures required by gogoproto. +type QueryTotalStakeResponse struct { Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` } -func (m *QueryStakeFromDelegatorInTopicInReputerResponse) Reset() { - *m = QueryStakeFromDelegatorInTopicInReputerResponse{} -} -func (m *QueryStakeFromDelegatorInTopicInReputerResponse) String() string { - return proto.CompactTextString(m) -} -func (*QueryStakeFromDelegatorInTopicInReputerResponse) ProtoMessage() {} -func (*QueryStakeFromDelegatorInTopicInReputerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{13} +func (m *QueryTotalStakeResponse) Reset() { *m = QueryTotalStakeResponse{} } +func (m *QueryTotalStakeResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTotalStakeResponse) ProtoMessage() {} +func (*QueryTotalStakeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{13} } -func (m *QueryStakeFromDelegatorInTopicInReputerResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryTotalStakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStakeFromDelegatorInTopicInReputerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTotalStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTotalStakeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -667,35 +729,35 @@ func (m *QueryStakeFromDelegatorInTopicInReputerResponse) XXX_Marshal(b []byte, return b[:n], nil } } -func (m *QueryStakeFromDelegatorInTopicInReputerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerResponse.Merge(m, src) +func (m *QueryTotalStakeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTotalStakeResponse.Merge(m, src) } -func (m *QueryStakeFromDelegatorInTopicInReputerResponse) XXX_Size() int { +func (m *QueryTotalStakeResponse) XXX_Size() int { return m.Size() } -func (m *QueryStakeFromDelegatorInTopicInReputerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerResponse.DiscardUnknown(m) +func (m *QueryTotalStakeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTotalStakeResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryTotalStakeResponse proto.InternalMessageInfo -type QueryStakeFromDelegatorInTopicRequest struct { - DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` - TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +type QueryReputerStakeInTopicRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` } -func (m *QueryStakeFromDelegatorInTopicRequest) Reset() { *m = QueryStakeFromDelegatorInTopicRequest{} } -func (m *QueryStakeFromDelegatorInTopicRequest) String() string { return proto.CompactTextString(m) } -func (*QueryStakeFromDelegatorInTopicRequest) ProtoMessage() {} -func (*QueryStakeFromDelegatorInTopicRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{14} +func (m *QueryReputerStakeInTopicRequest) Reset() { *m = QueryReputerStakeInTopicRequest{} } +func (m *QueryReputerStakeInTopicRequest) String() string { return proto.CompactTextString(m) } +func (*QueryReputerStakeInTopicRequest) ProtoMessage() {} +func (*QueryReputerStakeInTopicRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{14} } -func (m *QueryStakeFromDelegatorInTopicRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryReputerStakeInTopicRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStakeFromDelegatorInTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryReputerStakeInTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStakeFromDelegatorInTopicRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryReputerStakeInTopicRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -705,50 +767,48 @@ func (m *QueryStakeFromDelegatorInTopicRequest) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *QueryStakeFromDelegatorInTopicRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStakeFromDelegatorInTopicRequest.Merge(m, src) +func (m *QueryReputerStakeInTopicRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryReputerStakeInTopicRequest.Merge(m, src) } -func (m *QueryStakeFromDelegatorInTopicRequest) XXX_Size() int { +func (m *QueryReputerStakeInTopicRequest) XXX_Size() int { return m.Size() } -func (m *QueryStakeFromDelegatorInTopicRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStakeFromDelegatorInTopicRequest.DiscardUnknown(m) +func (m *QueryReputerStakeInTopicRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryReputerStakeInTopicRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryStakeFromDelegatorInTopicRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryReputerStakeInTopicRequest proto.InternalMessageInfo -func (m *QueryStakeFromDelegatorInTopicRequest) GetDelegatorAddress() string { +func (m *QueryReputerStakeInTopicRequest) GetAddress() string { if m != nil { - return m.DelegatorAddress + return m.Address } return "" } -func (m *QueryStakeFromDelegatorInTopicRequest) GetTopicId() uint64 { +func (m *QueryReputerStakeInTopicRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -type QueryStakeFromDelegatorInTopicResponse struct { +type QueryReputerStakeInTopicResponse struct { Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` } -func (m *QueryStakeFromDelegatorInTopicResponse) Reset() { - *m = QueryStakeFromDelegatorInTopicResponse{} -} -func (m *QueryStakeFromDelegatorInTopicResponse) String() string { return proto.CompactTextString(m) } -func (*QueryStakeFromDelegatorInTopicResponse) ProtoMessage() {} -func (*QueryStakeFromDelegatorInTopicResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{15} +func (m *QueryReputerStakeInTopicResponse) Reset() { *m = QueryReputerStakeInTopicResponse{} } +func (m *QueryReputerStakeInTopicResponse) String() string { return proto.CompactTextString(m) } +func (*QueryReputerStakeInTopicResponse) ProtoMessage() {} +func (*QueryReputerStakeInTopicResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{15} } -func (m *QueryStakeFromDelegatorInTopicResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryReputerStakeInTopicResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStakeFromDelegatorInTopicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryReputerStakeInTopicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStakeFromDelegatorInTopicResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryReputerStakeInTopicResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -758,34 +818,35 @@ func (m *QueryStakeFromDelegatorInTopicResponse) XXX_Marshal(b []byte, determini return b[:n], nil } } -func (m *QueryStakeFromDelegatorInTopicResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStakeFromDelegatorInTopicResponse.Merge(m, src) +func (m *QueryReputerStakeInTopicResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryReputerStakeInTopicResponse.Merge(m, src) } -func (m *QueryStakeFromDelegatorInTopicResponse) XXX_Size() int { +func (m *QueryReputerStakeInTopicResponse) XXX_Size() int { return m.Size() } -func (m *QueryStakeFromDelegatorInTopicResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStakeFromDelegatorInTopicResponse.DiscardUnknown(m) +func (m *QueryReputerStakeInTopicResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryReputerStakeInTopicResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryStakeFromDelegatorInTopicResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryReputerStakeInTopicResponse proto.InternalMessageInfo -type QueryTopicStakeRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +type QueryMultiReputerStakeInTopicRequest struct { + Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` } -func (m *QueryTopicStakeRequest) Reset() { *m = QueryTopicStakeRequest{} } -func (m *QueryTopicStakeRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTopicStakeRequest) ProtoMessage() {} -func (*QueryTopicStakeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{16} +func (m *QueryMultiReputerStakeInTopicRequest) Reset() { *m = QueryMultiReputerStakeInTopicRequest{} } +func (m *QueryMultiReputerStakeInTopicRequest) String() string { return proto.CompactTextString(m) } +func (*QueryMultiReputerStakeInTopicRequest) ProtoMessage() {} +func (*QueryMultiReputerStakeInTopicRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{16} } -func (m *QueryTopicStakeRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryMultiReputerStakeInTopicRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTopicStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryMultiReputerStakeInTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTopicStakeRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryMultiReputerStakeInTopicRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -795,41 +856,48 @@ func (m *QueryTopicStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return b[:n], nil } } -func (m *QueryTopicStakeRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTopicStakeRequest.Merge(m, src) +func (m *QueryMultiReputerStakeInTopicRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryMultiReputerStakeInTopicRequest.Merge(m, src) } -func (m *QueryTopicStakeRequest) XXX_Size() int { +func (m *QueryMultiReputerStakeInTopicRequest) XXX_Size() int { return m.Size() } -func (m *QueryTopicStakeRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTopicStakeRequest.DiscardUnknown(m) +func (m *QueryMultiReputerStakeInTopicRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryMultiReputerStakeInTopicRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryTopicStakeRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryMultiReputerStakeInTopicRequest proto.InternalMessageInfo -func (m *QueryTopicStakeRequest) GetTopicId() uint64 { +func (m *QueryMultiReputerStakeInTopicRequest) GetAddresses() []string { + if m != nil { + return m.Addresses + } + return nil +} + +func (m *QueryMultiReputerStakeInTopicRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -type QueryTopicStakeResponse struct { - Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +type QueryMultiReputerStakeInTopicResponse struct { + Amounts []*StakeInfo `protobuf:"bytes,1,rep,name=amounts,proto3" json:"amounts,omitempty"` } -func (m *QueryTopicStakeResponse) Reset() { *m = QueryTopicStakeResponse{} } -func (m *QueryTopicStakeResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTopicStakeResponse) ProtoMessage() {} -func (*QueryTopicStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{17} +func (m *QueryMultiReputerStakeInTopicResponse) Reset() { *m = QueryMultiReputerStakeInTopicResponse{} } +func (m *QueryMultiReputerStakeInTopicResponse) String() string { return proto.CompactTextString(m) } +func (*QueryMultiReputerStakeInTopicResponse) ProtoMessage() {} +func (*QueryMultiReputerStakeInTopicResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{17} } -func (m *QueryTopicStakeResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryMultiReputerStakeInTopicResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTopicStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryMultiReputerStakeInTopicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTopicStakeResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryMultiReputerStakeInTopicResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -839,35 +907,46 @@ func (m *QueryTopicStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *QueryTopicStakeResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTopicStakeResponse.Merge(m, src) +func (m *QueryMultiReputerStakeInTopicResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryMultiReputerStakeInTopicResponse.Merge(m, src) } -func (m *QueryTopicStakeResponse) XXX_Size() int { +func (m *QueryMultiReputerStakeInTopicResponse) XXX_Size() int { return m.Size() } -func (m *QueryTopicStakeResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTopicStakeResponse.DiscardUnknown(m) +func (m *QueryMultiReputerStakeInTopicResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryMultiReputerStakeInTopicResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryTopicStakeResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryMultiReputerStakeInTopicResponse proto.InternalMessageInfo -type QueryNetworkLossBundleAtBlockRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +func (m *QueryMultiReputerStakeInTopicResponse) GetAmounts() []*StakeInfo { + if m != nil { + return m.Amounts + } + return nil } -func (m *QueryNetworkLossBundleAtBlockRequest) Reset() { *m = QueryNetworkLossBundleAtBlockRequest{} } -func (m *QueryNetworkLossBundleAtBlockRequest) String() string { return proto.CompactTextString(m) } -func (*QueryNetworkLossBundleAtBlockRequest) ProtoMessage() {} -func (*QueryNetworkLossBundleAtBlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{18} +type QueryStakeFromReputerInTopicInSelfRequest struct { + ReputerAddress string `protobuf:"bytes,1,opt,name=reputer_address,json=reputerAddress,proto3" json:"reputer_address,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` } -func (m *QueryNetworkLossBundleAtBlockRequest) XXX_Unmarshal(b []byte) error { + +func (m *QueryStakeFromReputerInTopicInSelfRequest) Reset() { + *m = QueryStakeFromReputerInTopicInSelfRequest{} +} +func (m *QueryStakeFromReputerInTopicInSelfRequest) String() string { + return proto.CompactTextString(m) +} +func (*QueryStakeFromReputerInTopicInSelfRequest) ProtoMessage() {} +func (*QueryStakeFromReputerInTopicInSelfRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{18} +} +func (m *QueryStakeFromReputerInTopicInSelfRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryNetworkLossBundleAtBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStakeFromReputerInTopicInSelfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryNetworkLossBundleAtBlockRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStakeFromReputerInTopicInSelfRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -877,48 +956,52 @@ func (m *QueryNetworkLossBundleAtBlockRequest) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *QueryNetworkLossBundleAtBlockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryNetworkLossBundleAtBlockRequest.Merge(m, src) +func (m *QueryStakeFromReputerInTopicInSelfRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStakeFromReputerInTopicInSelfRequest.Merge(m, src) } -func (m *QueryNetworkLossBundleAtBlockRequest) XXX_Size() int { +func (m *QueryStakeFromReputerInTopicInSelfRequest) XXX_Size() int { return m.Size() } -func (m *QueryNetworkLossBundleAtBlockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryNetworkLossBundleAtBlockRequest.DiscardUnknown(m) +func (m *QueryStakeFromReputerInTopicInSelfRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStakeFromReputerInTopicInSelfRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryNetworkLossBundleAtBlockRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryStakeFromReputerInTopicInSelfRequest proto.InternalMessageInfo -func (m *QueryNetworkLossBundleAtBlockRequest) GetTopicId() uint64 { +func (m *QueryStakeFromReputerInTopicInSelfRequest) GetReputerAddress() string { if m != nil { - return m.TopicId + return m.ReputerAddress } - return 0 + return "" } -func (m *QueryNetworkLossBundleAtBlockRequest) GetBlockHeight() int64 { +func (m *QueryStakeFromReputerInTopicInSelfRequest) GetTopicId() uint64 { if m != nil { - return m.BlockHeight + return m.TopicId } return 0 } -type QueryNetworkLossBundleAtBlockResponse struct { - LossBundle *ValueBundle `protobuf:"bytes,1,opt,name=loss_bundle,json=lossBundle,proto3" json:"loss_bundle,omitempty"` +type QueryStakeFromReputerInTopicInSelfResponse struct { + Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` } -func (m *QueryNetworkLossBundleAtBlockResponse) Reset() { *m = QueryNetworkLossBundleAtBlockResponse{} } -func (m *QueryNetworkLossBundleAtBlockResponse) String() string { return proto.CompactTextString(m) } -func (*QueryNetworkLossBundleAtBlockResponse) ProtoMessage() {} -func (*QueryNetworkLossBundleAtBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{19} +func (m *QueryStakeFromReputerInTopicInSelfResponse) Reset() { + *m = QueryStakeFromReputerInTopicInSelfResponse{} } -func (m *QueryNetworkLossBundleAtBlockResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryStakeFromReputerInTopicInSelfResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryStakeFromReputerInTopicInSelfResponse) ProtoMessage() {} +func (*QueryStakeFromReputerInTopicInSelfResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{19} +} +func (m *QueryStakeFromReputerInTopicInSelfResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryNetworkLossBundleAtBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStakeFromReputerInTopicInSelfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryNetworkLossBundleAtBlockResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStakeFromReputerInTopicInSelfResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -928,40 +1011,39 @@ func (m *QueryNetworkLossBundleAtBlockResponse) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *QueryNetworkLossBundleAtBlockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryNetworkLossBundleAtBlockResponse.Merge(m, src) +func (m *QueryStakeFromReputerInTopicInSelfResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStakeFromReputerInTopicInSelfResponse.Merge(m, src) } -func (m *QueryNetworkLossBundleAtBlockResponse) XXX_Size() int { +func (m *QueryStakeFromReputerInTopicInSelfResponse) XXX_Size() int { return m.Size() } -func (m *QueryNetworkLossBundleAtBlockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryNetworkLossBundleAtBlockResponse.DiscardUnknown(m) +func (m *QueryStakeFromReputerInTopicInSelfResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStakeFromReputerInTopicInSelfResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryNetworkLossBundleAtBlockResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryStakeFromReputerInTopicInSelfResponse proto.InternalMessageInfo -func (m *QueryNetworkLossBundleAtBlockResponse) GetLossBundle() *ValueBundle { - if m != nil { - return m.LossBundle - } - return nil +type QueryDelegateStakeInTopicInReputerRequest struct { + ReputerAddress string `protobuf:"bytes,1,opt,name=reputer_address,json=reputerAddress,proto3" json:"reputer_address,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` } -type QueryNextTopicIdRequest struct { +func (m *QueryDelegateStakeInTopicInReputerRequest) Reset() { + *m = QueryDelegateStakeInTopicInReputerRequest{} } - -func (m *QueryNextTopicIdRequest) Reset() { *m = QueryNextTopicIdRequest{} } -func (m *QueryNextTopicIdRequest) String() string { return proto.CompactTextString(m) } -func (*QueryNextTopicIdRequest) ProtoMessage() {} -func (*QueryNextTopicIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{20} +func (m *QueryDelegateStakeInTopicInReputerRequest) String() string { + return proto.CompactTextString(m) } -func (m *QueryNextTopicIdRequest) XXX_Unmarshal(b []byte) error { +func (*QueryDelegateStakeInTopicInReputerRequest) ProtoMessage() {} +func (*QueryDelegateStakeInTopicInReputerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{20} +} +func (m *QueryDelegateStakeInTopicInReputerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryNextTopicIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryDelegateStakeInTopicInReputerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryNextTopicIdRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryDelegateStakeInTopicInReputerRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -971,34 +1053,52 @@ func (m *QueryNextTopicIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return b[:n], nil } } -func (m *QueryNextTopicIdRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryNextTopicIdRequest.Merge(m, src) +func (m *QueryDelegateStakeInTopicInReputerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDelegateStakeInTopicInReputerRequest.Merge(m, src) } -func (m *QueryNextTopicIdRequest) XXX_Size() int { +func (m *QueryDelegateStakeInTopicInReputerRequest) XXX_Size() int { return m.Size() } -func (m *QueryNextTopicIdRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryNextTopicIdRequest.DiscardUnknown(m) +func (m *QueryDelegateStakeInTopicInReputerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDelegateStakeInTopicInReputerRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryNextTopicIdRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryDelegateStakeInTopicInReputerRequest proto.InternalMessageInfo -type QueryNextTopicIdResponse struct { - NextTopicId uint64 `protobuf:"varint,1,opt,name=next_topic_id,json=nextTopicId,proto3" json:"next_topic_id,omitempty"` +func (m *QueryDelegateStakeInTopicInReputerRequest) GetReputerAddress() string { + if m != nil { + return m.ReputerAddress + } + return "" } -func (m *QueryNextTopicIdResponse) Reset() { *m = QueryNextTopicIdResponse{} } -func (m *QueryNextTopicIdResponse) String() string { return proto.CompactTextString(m) } -func (*QueryNextTopicIdResponse) ProtoMessage() {} -func (*QueryNextTopicIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{21} +func (m *QueryDelegateStakeInTopicInReputerRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 } -func (m *QueryNextTopicIdResponse) XXX_Unmarshal(b []byte) error { + +type QueryDelegateStakeInTopicInReputerResponse struct { + Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` +} + +func (m *QueryDelegateStakeInTopicInReputerResponse) Reset() { + *m = QueryDelegateStakeInTopicInReputerResponse{} +} +func (m *QueryDelegateStakeInTopicInReputerResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryDelegateStakeInTopicInReputerResponse) ProtoMessage() {} +func (*QueryDelegateStakeInTopicInReputerResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{21} +} +func (m *QueryDelegateStakeInTopicInReputerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryNextTopicIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryDelegateStakeInTopicInReputerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryNextTopicIdResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryDelegateStakeInTopicInReputerResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1008,41 +1108,40 @@ func (m *QueryNextTopicIdResponse) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *QueryNextTopicIdResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryNextTopicIdResponse.Merge(m, src) +func (m *QueryDelegateStakeInTopicInReputerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDelegateStakeInTopicInReputerResponse.Merge(m, src) } -func (m *QueryNextTopicIdResponse) XXX_Size() int { +func (m *QueryDelegateStakeInTopicInReputerResponse) XXX_Size() int { return m.Size() } -func (m *QueryNextTopicIdResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryNextTopicIdResponse.DiscardUnknown(m) +func (m *QueryDelegateStakeInTopicInReputerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDelegateStakeInTopicInReputerResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryNextTopicIdResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryDelegateStakeInTopicInReputerResponse proto.InternalMessageInfo -func (m *QueryNextTopicIdResponse) GetNextTopicId() uint64 { - if m != nil { - return m.NextTopicId - } - return 0 +type QueryStakeFromDelegatorInTopicInReputerRequest struct { + DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` + ReputerAddress string `protobuf:"bytes,2,opt,name=reputer_address,json=reputerAddress,proto3" json:"reputer_address,omitempty"` + TopicId uint64 `protobuf:"varint,3,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` } -type QueryTopicRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) Reset() { + *m = QueryStakeFromDelegatorInTopicInReputerRequest{} } - -func (m *QueryTopicRequest) Reset() { *m = QueryTopicRequest{} } -func (m *QueryTopicRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTopicRequest) ProtoMessage() {} -func (*QueryTopicRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{22} +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) String() string { + return proto.CompactTextString(m) } -func (m *QueryTopicRequest) XXX_Unmarshal(b []byte) error { +func (*QueryStakeFromDelegatorInTopicInReputerRequest) ProtoMessage() {} +func (*QueryStakeFromDelegatorInTopicInReputerRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{22} +} +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTopicRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1052,43 +1151,59 @@ func (m *QueryTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return b[:n], nil } } -func (m *QueryTopicRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTopicRequest.Merge(m, src) +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerRequest.Merge(m, src) } -func (m *QueryTopicRequest) XXX_Size() int { +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) XXX_Size() int { return m.Size() } -func (m *QueryTopicRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTopicRequest.DiscardUnknown(m) +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryTopicRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerRequest proto.InternalMessageInfo -func (m *QueryTopicRequest) GetTopicId() uint64 { +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) GetDelegatorAddress() string { + if m != nil { + return m.DelegatorAddress + } + return "" +} + +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) GetReputerAddress() string { + if m != nil { + return m.ReputerAddress + } + return "" +} + +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -type QueryTopicResponse struct { - Topic *Topic `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` - Weight string `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"` - EffectiveRevenue string `protobuf:"bytes,3,opt,name=effective_revenue,json=effectiveRevenue,proto3" json:"effective_revenue,omitempty"` +type QueryStakeFromDelegatorInTopicInReputerResponse struct { + Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` } -func (m *QueryTopicResponse) Reset() { *m = QueryTopicResponse{} } -func (m *QueryTopicResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTopicResponse) ProtoMessage() {} -func (*QueryTopicResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{23} +func (m *QueryStakeFromDelegatorInTopicInReputerResponse) Reset() { + *m = QueryStakeFromDelegatorInTopicInReputerResponse{} } -func (m *QueryTopicResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryStakeFromDelegatorInTopicInReputerResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryStakeFromDelegatorInTopicInReputerResponse) ProtoMessage() {} +func (*QueryStakeFromDelegatorInTopicInReputerResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{23} +} +func (m *QueryStakeFromDelegatorInTopicInReputerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryTopicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStakeFromDelegatorInTopicInReputerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryTopicResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1098,55 +1213,35 @@ func (m *QueryTopicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *QueryTopicResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTopicResponse.Merge(m, src) +func (m *QueryStakeFromDelegatorInTopicInReputerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerResponse.Merge(m, src) } -func (m *QueryTopicResponse) XXX_Size() int { +func (m *QueryStakeFromDelegatorInTopicInReputerResponse) XXX_Size() int { return m.Size() } -func (m *QueryTopicResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTopicResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTopicResponse proto.InternalMessageInfo - -func (m *QueryTopicResponse) GetTopic() *Topic { - if m != nil { - return m.Topic - } - return nil -} - -func (m *QueryTopicResponse) GetWeight() string { - if m != nil { - return m.Weight - } - return "" +func (m *QueryStakeFromDelegatorInTopicInReputerResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerResponse.DiscardUnknown(m) } -func (m *QueryTopicResponse) GetEffectiveRevenue() string { - if m != nil { - return m.EffectiveRevenue - } - return "" -} +var xxx_messageInfo_QueryStakeFromDelegatorInTopicInReputerResponse proto.InternalMessageInfo -type QueryActiveTopicsRequest struct { - Pagination *SimpleCursorPaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` +type QueryStakeFromDelegatorInTopicRequest struct { + DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"` + TopicId uint64 `protobuf:"varint,2,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` } -func (m *QueryActiveTopicsRequest) Reset() { *m = QueryActiveTopicsRequest{} } -func (m *QueryActiveTopicsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryActiveTopicsRequest) ProtoMessage() {} -func (*QueryActiveTopicsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{24} +func (m *QueryStakeFromDelegatorInTopicRequest) Reset() { *m = QueryStakeFromDelegatorInTopicRequest{} } +func (m *QueryStakeFromDelegatorInTopicRequest) String() string { return proto.CompactTextString(m) } +func (*QueryStakeFromDelegatorInTopicRequest) ProtoMessage() {} +func (*QueryStakeFromDelegatorInTopicRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{24} } -func (m *QueryActiveTopicsRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryStakeFromDelegatorInTopicRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryActiveTopicsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStakeFromDelegatorInTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryActiveTopicsRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStakeFromDelegatorInTopicRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1156,42 +1251,50 @@ func (m *QueryActiveTopicsRequest) XXX_Marshal(b []byte, deterministic bool) ([] return b[:n], nil } } -func (m *QueryActiveTopicsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryActiveTopicsRequest.Merge(m, src) +func (m *QueryStakeFromDelegatorInTopicRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStakeFromDelegatorInTopicRequest.Merge(m, src) } -func (m *QueryActiveTopicsRequest) XXX_Size() int { +func (m *QueryStakeFromDelegatorInTopicRequest) XXX_Size() int { return m.Size() } -func (m *QueryActiveTopicsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryActiveTopicsRequest.DiscardUnknown(m) +func (m *QueryStakeFromDelegatorInTopicRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStakeFromDelegatorInTopicRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryActiveTopicsRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryStakeFromDelegatorInTopicRequest proto.InternalMessageInfo -func (m *QueryActiveTopicsRequest) GetPagination() *SimpleCursorPaginationRequest { +func (m *QueryStakeFromDelegatorInTopicRequest) GetDelegatorAddress() string { if m != nil { - return m.Pagination + return m.DelegatorAddress } - return nil + return "" } -type QueryActiveTopicsResponse struct { - Topics []*Topic `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"` - Pagination *SimpleCursorPaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` +func (m *QueryStakeFromDelegatorInTopicRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 } -func (m *QueryActiveTopicsResponse) Reset() { *m = QueryActiveTopicsResponse{} } -func (m *QueryActiveTopicsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryActiveTopicsResponse) ProtoMessage() {} -func (*QueryActiveTopicsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{25} +type QueryStakeFromDelegatorInTopicResponse struct { + Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` } -func (m *QueryActiveTopicsResponse) XXX_Unmarshal(b []byte) error { + +func (m *QueryStakeFromDelegatorInTopicResponse) Reset() { + *m = QueryStakeFromDelegatorInTopicResponse{} +} +func (m *QueryStakeFromDelegatorInTopicResponse) String() string { return proto.CompactTextString(m) } +func (*QueryStakeFromDelegatorInTopicResponse) ProtoMessage() {} +func (*QueryStakeFromDelegatorInTopicResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{25} +} +func (m *QueryStakeFromDelegatorInTopicResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryActiveTopicsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryStakeFromDelegatorInTopicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryActiveTopicsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryStakeFromDelegatorInTopicResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1201,50 +1304,34 @@ func (m *QueryActiveTopicsResponse) XXX_Marshal(b []byte, deterministic bool) ([ return b[:n], nil } } -func (m *QueryActiveTopicsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryActiveTopicsResponse.Merge(m, src) +func (m *QueryStakeFromDelegatorInTopicResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStakeFromDelegatorInTopicResponse.Merge(m, src) } -func (m *QueryActiveTopicsResponse) XXX_Size() int { +func (m *QueryStakeFromDelegatorInTopicResponse) XXX_Size() int { return m.Size() } -func (m *QueryActiveTopicsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryActiveTopicsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryActiveTopicsResponse proto.InternalMessageInfo - -func (m *QueryActiveTopicsResponse) GetTopics() []*Topic { - if m != nil { - return m.Topics - } - return nil +func (m *QueryStakeFromDelegatorInTopicResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStakeFromDelegatorInTopicResponse.DiscardUnknown(m) } -func (m *QueryActiveTopicsResponse) GetPagination() *SimpleCursorPaginationResponse { - if m != nil { - return m.Pagination - } - return nil -} +var xxx_messageInfo_QueryStakeFromDelegatorInTopicResponse proto.InternalMessageInfo -// Returns the inferences on a topic posted at a block height -type QueryInferencesAtBlockRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +type QueryTopicStakeRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` } -func (m *QueryInferencesAtBlockRequest) Reset() { *m = QueryInferencesAtBlockRequest{} } -func (m *QueryInferencesAtBlockRequest) String() string { return proto.CompactTextString(m) } -func (*QueryInferencesAtBlockRequest) ProtoMessage() {} -func (*QueryInferencesAtBlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{26} +func (m *QueryTopicStakeRequest) Reset() { *m = QueryTopicStakeRequest{} } +func (m *QueryTopicStakeRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTopicStakeRequest) ProtoMessage() {} +func (*QueryTopicStakeRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{26} } -func (m *QueryInferencesAtBlockRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryTopicStakeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryInferencesAtBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTopicStakeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryInferencesAtBlockRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTopicStakeRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1254,52 +1341,41 @@ func (m *QueryInferencesAtBlockRequest) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *QueryInferencesAtBlockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryInferencesAtBlockRequest.Merge(m, src) +func (m *QueryTopicStakeRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTopicStakeRequest.Merge(m, src) } -func (m *QueryInferencesAtBlockRequest) XXX_Size() int { +func (m *QueryTopicStakeRequest) XXX_Size() int { return m.Size() } -func (m *QueryInferencesAtBlockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryInferencesAtBlockRequest.DiscardUnknown(m) +func (m *QueryTopicStakeRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTopicStakeRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryInferencesAtBlockRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryTopicStakeRequest proto.InternalMessageInfo -func (m *QueryInferencesAtBlockRequest) GetTopicId() uint64 { +func (m *QueryTopicStakeRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -func (m *QueryInferencesAtBlockRequest) GetBlockHeight() int64 { - if m != nil { - return m.BlockHeight - } - return 0 -} - -// Returns the inferences on a topic posted at a block height -// -// NOTE: The amount field is a Uint which implements the custom method -// signatures required by gogoproto. -type QueryInferencesAtBlockResponse struct { - Inferences *Inferences `protobuf:"bytes,1,opt,name=inferences,proto3" json:"inferences,omitempty"` +type QueryTopicStakeResponse struct { + Amount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` } -func (m *QueryInferencesAtBlockResponse) Reset() { *m = QueryInferencesAtBlockResponse{} } -func (m *QueryInferencesAtBlockResponse) String() string { return proto.CompactTextString(m) } -func (*QueryInferencesAtBlockResponse) ProtoMessage() {} -func (*QueryInferencesAtBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{27} +func (m *QueryTopicStakeResponse) Reset() { *m = QueryTopicStakeResponse{} } +func (m *QueryTopicStakeResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTopicStakeResponse) ProtoMessage() {} +func (*QueryTopicStakeResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{27} } -func (m *QueryInferencesAtBlockResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryTopicStakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryInferencesAtBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTopicStakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryInferencesAtBlockResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTopicStakeResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1309,41 +1385,35 @@ func (m *QueryInferencesAtBlockResponse) XXX_Marshal(b []byte, deterministic boo return b[:n], nil } } -func (m *QueryInferencesAtBlockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryInferencesAtBlockResponse.Merge(m, src) +func (m *QueryTopicStakeResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTopicStakeResponse.Merge(m, src) } -func (m *QueryInferencesAtBlockResponse) XXX_Size() int { +func (m *QueryTopicStakeResponse) XXX_Size() int { return m.Size() } -func (m *QueryInferencesAtBlockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryInferencesAtBlockResponse.DiscardUnknown(m) +func (m *QueryTopicStakeResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTopicStakeResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryInferencesAtBlockResponse proto.InternalMessageInfo - -func (m *QueryInferencesAtBlockResponse) GetInferences() *Inferences { - if m != nil { - return m.Inferences - } - return nil -} +var xxx_messageInfo_QueryTopicStakeResponse proto.InternalMessageInfo -type QueryLatestTopicInferencesRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +type QueryNetworkLossBundleAtBlockRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } -func (m *QueryLatestTopicInferencesRequest) Reset() { *m = QueryLatestTopicInferencesRequest{} } -func (m *QueryLatestTopicInferencesRequest) String() string { return proto.CompactTextString(m) } -func (*QueryLatestTopicInferencesRequest) ProtoMessage() {} -func (*QueryLatestTopicInferencesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{28} +func (m *QueryNetworkLossBundleAtBlockRequest) Reset() { *m = QueryNetworkLossBundleAtBlockRequest{} } +func (m *QueryNetworkLossBundleAtBlockRequest) String() string { return proto.CompactTextString(m) } +func (*QueryNetworkLossBundleAtBlockRequest) ProtoMessage() {} +func (*QueryNetworkLossBundleAtBlockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{28} } -func (m *QueryLatestTopicInferencesRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryNetworkLossBundleAtBlockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryLatestTopicInferencesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryNetworkLossBundleAtBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryLatestTopicInferencesRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryNetworkLossBundleAtBlockRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1353,42 +1423,48 @@ func (m *QueryLatestTopicInferencesRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryLatestTopicInferencesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryLatestTopicInferencesRequest.Merge(m, src) +func (m *QueryNetworkLossBundleAtBlockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNetworkLossBundleAtBlockRequest.Merge(m, src) } -func (m *QueryLatestTopicInferencesRequest) XXX_Size() int { +func (m *QueryNetworkLossBundleAtBlockRequest) XXX_Size() int { return m.Size() } -func (m *QueryLatestTopicInferencesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryLatestTopicInferencesRequest.DiscardUnknown(m) +func (m *QueryNetworkLossBundleAtBlockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNetworkLossBundleAtBlockRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryLatestTopicInferencesRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryNetworkLossBundleAtBlockRequest proto.InternalMessageInfo -func (m *QueryLatestTopicInferencesRequest) GetTopicId() uint64 { +func (m *QueryNetworkLossBundleAtBlockRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -type QueryLatestTopicInferencesResponse struct { - Inferences *Inferences `protobuf:"bytes,1,opt,name=inferences,proto3" json:"inferences,omitempty"` - BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +func (m *QueryNetworkLossBundleAtBlockRequest) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 } -func (m *QueryLatestTopicInferencesResponse) Reset() { *m = QueryLatestTopicInferencesResponse{} } -func (m *QueryLatestTopicInferencesResponse) String() string { return proto.CompactTextString(m) } -func (*QueryLatestTopicInferencesResponse) ProtoMessage() {} -func (*QueryLatestTopicInferencesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{29} +type QueryNetworkLossBundleAtBlockResponse struct { + LossBundle *ValueBundle `protobuf:"bytes,1,opt,name=loss_bundle,json=lossBundle,proto3" json:"loss_bundle,omitempty"` } -func (m *QueryLatestTopicInferencesResponse) XXX_Unmarshal(b []byte) error { + +func (m *QueryNetworkLossBundleAtBlockResponse) Reset() { *m = QueryNetworkLossBundleAtBlockResponse{} } +func (m *QueryNetworkLossBundleAtBlockResponse) String() string { return proto.CompactTextString(m) } +func (*QueryNetworkLossBundleAtBlockResponse) ProtoMessage() {} +func (*QueryNetworkLossBundleAtBlockResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{29} +} +func (m *QueryNetworkLossBundleAtBlockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryLatestTopicInferencesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryNetworkLossBundleAtBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryLatestTopicInferencesResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryNetworkLossBundleAtBlockResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1398,50 +1474,40 @@ func (m *QueryLatestTopicInferencesResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryLatestTopicInferencesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryLatestTopicInferencesResponse.Merge(m, src) +func (m *QueryNetworkLossBundleAtBlockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNetworkLossBundleAtBlockResponse.Merge(m, src) } -func (m *QueryLatestTopicInferencesResponse) XXX_Size() int { +func (m *QueryNetworkLossBundleAtBlockResponse) XXX_Size() int { return m.Size() } -func (m *QueryLatestTopicInferencesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryLatestTopicInferencesResponse.DiscardUnknown(m) +func (m *QueryNetworkLossBundleAtBlockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNetworkLossBundleAtBlockResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryLatestTopicInferencesResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryNetworkLossBundleAtBlockResponse proto.InternalMessageInfo -func (m *QueryLatestTopicInferencesResponse) GetInferences() *Inferences { +func (m *QueryNetworkLossBundleAtBlockResponse) GetLossBundle() *ValueBundle { if m != nil { - return m.Inferences + return m.LossBundle } return nil } -func (m *QueryLatestTopicInferencesResponse) GetBlockHeight() int64 { - if m != nil { - return m.BlockHeight - } - return 0 -} - -// Returns the forecasts on a topic posted at a block height -type QueryForecastsAtBlockRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +type QueryNextTopicIdRequest struct { } -func (m *QueryForecastsAtBlockRequest) Reset() { *m = QueryForecastsAtBlockRequest{} } -func (m *QueryForecastsAtBlockRequest) String() string { return proto.CompactTextString(m) } -func (*QueryForecastsAtBlockRequest) ProtoMessage() {} -func (*QueryForecastsAtBlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{30} +func (m *QueryNextTopicIdRequest) Reset() { *m = QueryNextTopicIdRequest{} } +func (m *QueryNextTopicIdRequest) String() string { return proto.CompactTextString(m) } +func (*QueryNextTopicIdRequest) ProtoMessage() {} +func (*QueryNextTopicIdRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{30} } -func (m *QueryForecastsAtBlockRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryNextTopicIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryForecastsAtBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryNextTopicIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryForecastsAtBlockRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryNextTopicIdRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1451,52 +1517,34 @@ func (m *QueryForecastsAtBlockRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryForecastsAtBlockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryForecastsAtBlockRequest.Merge(m, src) +func (m *QueryNextTopicIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNextTopicIdRequest.Merge(m, src) } -func (m *QueryForecastsAtBlockRequest) XXX_Size() int { +func (m *QueryNextTopicIdRequest) XXX_Size() int { return m.Size() } -func (m *QueryForecastsAtBlockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryForecastsAtBlockRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryForecastsAtBlockRequest proto.InternalMessageInfo - -func (m *QueryForecastsAtBlockRequest) GetTopicId() uint64 { - if m != nil { - return m.TopicId - } - return 0 +func (m *QueryNextTopicIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNextTopicIdRequest.DiscardUnknown(m) } -func (m *QueryForecastsAtBlockRequest) GetBlockHeight() int64 { - if m != nil { - return m.BlockHeight - } - return 0 -} +var xxx_messageInfo_QueryNextTopicIdRequest proto.InternalMessageInfo -// Returns the forecasts on a topic posted at a block height -// -// NOTE: The amount field is a Uint which implements the custom method -// signatures required by gogoproto. -type QueryForecastsAtBlockResponse struct { - Forecasts *Forecasts `protobuf:"bytes,1,opt,name=forecasts,proto3" json:"forecasts,omitempty"` +type QueryNextTopicIdResponse struct { + NextTopicId uint64 `protobuf:"varint,1,opt,name=next_topic_id,json=nextTopicId,proto3" json:"next_topic_id,omitempty"` } -func (m *QueryForecastsAtBlockResponse) Reset() { *m = QueryForecastsAtBlockResponse{} } -func (m *QueryForecastsAtBlockResponse) String() string { return proto.CompactTextString(m) } -func (*QueryForecastsAtBlockResponse) ProtoMessage() {} -func (*QueryForecastsAtBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{31} +func (m *QueryNextTopicIdResponse) Reset() { *m = QueryNextTopicIdResponse{} } +func (m *QueryNextTopicIdResponse) String() string { return proto.CompactTextString(m) } +func (*QueryNextTopicIdResponse) ProtoMessage() {} +func (*QueryNextTopicIdResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{31} } -func (m *QueryForecastsAtBlockResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryNextTopicIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryForecastsAtBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryNextTopicIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryForecastsAtBlockResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryNextTopicIdResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1506,42 +1554,41 @@ func (m *QueryForecastsAtBlockResponse) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *QueryForecastsAtBlockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryForecastsAtBlockResponse.Merge(m, src) +func (m *QueryNextTopicIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNextTopicIdResponse.Merge(m, src) } -func (m *QueryForecastsAtBlockResponse) XXX_Size() int { +func (m *QueryNextTopicIdResponse) XXX_Size() int { return m.Size() } -func (m *QueryForecastsAtBlockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryForecastsAtBlockResponse.DiscardUnknown(m) +func (m *QueryNextTopicIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNextTopicIdResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryForecastsAtBlockResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryNextTopicIdResponse proto.InternalMessageInfo -func (m *QueryForecastsAtBlockResponse) GetForecasts() *Forecasts { +func (m *QueryNextTopicIdResponse) GetNextTopicId() uint64 { if m != nil { - return m.Forecasts + return m.NextTopicId } - return nil + return 0 } -type QueryWorkerLatestInferenceRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - WorkerAddress string `protobuf:"bytes,2,opt,name=worker_address,json=workerAddress,proto3" json:"worker_address,omitempty"` +type QueryTopicRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` } -func (m *QueryWorkerLatestInferenceRequest) Reset() { *m = QueryWorkerLatestInferenceRequest{} } -func (m *QueryWorkerLatestInferenceRequest) String() string { return proto.CompactTextString(m) } -func (*QueryWorkerLatestInferenceRequest) ProtoMessage() {} -func (*QueryWorkerLatestInferenceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{32} +func (m *QueryTopicRequest) Reset() { *m = QueryTopicRequest{} } +func (m *QueryTopicRequest) String() string { return proto.CompactTextString(m) } +func (*QueryTopicRequest) ProtoMessage() {} +func (*QueryTopicRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{32} } -func (m *QueryWorkerLatestInferenceRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryTopicRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryWorkerLatestInferenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTopicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryWorkerLatestInferenceRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTopicRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1551,48 +1598,43 @@ func (m *QueryWorkerLatestInferenceRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryWorkerLatestInferenceRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkerLatestInferenceRequest.Merge(m, src) +func (m *QueryTopicRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTopicRequest.Merge(m, src) } -func (m *QueryWorkerLatestInferenceRequest) XXX_Size() int { +func (m *QueryTopicRequest) XXX_Size() int { return m.Size() } -func (m *QueryWorkerLatestInferenceRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWorkerLatestInferenceRequest.DiscardUnknown(m) +func (m *QueryTopicRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTopicRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryWorkerLatestInferenceRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryTopicRequest proto.InternalMessageInfo -func (m *QueryWorkerLatestInferenceRequest) GetTopicId() uint64 { +func (m *QueryTopicRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -func (m *QueryWorkerLatestInferenceRequest) GetWorkerAddress() string { - if m != nil { - return m.WorkerAddress - } - return "" -} - -type QueryWorkerLatestInferenceResponse struct { - LatestInference *Inference `protobuf:"bytes,1,opt,name=latest_inference,json=latestInference,proto3" json:"latest_inference,omitempty"` +type QueryTopicResponse struct { + Topic *Topic `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` + Weight string `protobuf:"bytes,2,opt,name=weight,proto3" json:"weight,omitempty"` + EffectiveRevenue string `protobuf:"bytes,3,opt,name=effective_revenue,json=effectiveRevenue,proto3" json:"effective_revenue,omitempty"` } -func (m *QueryWorkerLatestInferenceResponse) Reset() { *m = QueryWorkerLatestInferenceResponse{} } -func (m *QueryWorkerLatestInferenceResponse) String() string { return proto.CompactTextString(m) } -func (*QueryWorkerLatestInferenceResponse) ProtoMessage() {} -func (*QueryWorkerLatestInferenceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{33} +func (m *QueryTopicResponse) Reset() { *m = QueryTopicResponse{} } +func (m *QueryTopicResponse) String() string { return proto.CompactTextString(m) } +func (*QueryTopicResponse) ProtoMessage() {} +func (*QueryTopicResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{33} } -func (m *QueryWorkerLatestInferenceResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryTopicResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryWorkerLatestInferenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryTopicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryWorkerLatestInferenceResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryTopicResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1602,85 +1644,55 @@ func (m *QueryWorkerLatestInferenceResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryWorkerLatestInferenceResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkerLatestInferenceResponse.Merge(m, src) +func (m *QueryTopicResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTopicResponse.Merge(m, src) } -func (m *QueryWorkerLatestInferenceResponse) XXX_Size() int { +func (m *QueryTopicResponse) XXX_Size() int { return m.Size() } -func (m *QueryWorkerLatestInferenceResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWorkerLatestInferenceResponse.DiscardUnknown(m) +func (m *QueryTopicResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryTopicResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryWorkerLatestInferenceResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryTopicResponse proto.InternalMessageInfo -func (m *QueryWorkerLatestInferenceResponse) GetLatestInference() *Inference { +func (m *QueryTopicResponse) GetTopic() *Topic { if m != nil { - return m.LatestInference + return m.Topic } return nil } -type QueryWorkerNodeInfoRequest struct { - Libp2PKey string `protobuf:"bytes,1,opt,name=libp2p_key,json=libp2pKey,proto3" json:"libp2p_key,omitempty"` -} - -func (m *QueryWorkerNodeInfoRequest) Reset() { *m = QueryWorkerNodeInfoRequest{} } -func (m *QueryWorkerNodeInfoRequest) String() string { return proto.CompactTextString(m) } -func (*QueryWorkerNodeInfoRequest) ProtoMessage() {} -func (*QueryWorkerNodeInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{34} -} -func (m *QueryWorkerNodeInfoRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryWorkerNodeInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryWorkerNodeInfoRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil +func (m *QueryTopicResponse) GetWeight() string { + if m != nil { + return m.Weight } -} -func (m *QueryWorkerNodeInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkerNodeInfoRequest.Merge(m, src) -} -func (m *QueryWorkerNodeInfoRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryWorkerNodeInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWorkerNodeInfoRequest.DiscardUnknown(m) + return "" } -var xxx_messageInfo_QueryWorkerNodeInfoRequest proto.InternalMessageInfo - -func (m *QueryWorkerNodeInfoRequest) GetLibp2PKey() string { +func (m *QueryTopicResponse) GetEffectiveRevenue() string { if m != nil { - return m.Libp2PKey + return m.EffectiveRevenue } return "" } -type QueryWorkerNodeInfoResponse struct { - NodeInfo *OffchainNode `protobuf:"bytes,1,opt,name=node_info,json=nodeInfo,proto3" json:"node_info,omitempty"` +type QueryActiveTopicsRequest struct { + Pagination *SimpleCursorPaginationRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryWorkerNodeInfoResponse) Reset() { *m = QueryWorkerNodeInfoResponse{} } -func (m *QueryWorkerNodeInfoResponse) String() string { return proto.CompactTextString(m) } -func (*QueryWorkerNodeInfoResponse) ProtoMessage() {} -func (*QueryWorkerNodeInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{35} +func (m *QueryActiveTopicsRequest) Reset() { *m = QueryActiveTopicsRequest{} } +func (m *QueryActiveTopicsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryActiveTopicsRequest) ProtoMessage() {} +func (*QueryActiveTopicsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{34} } -func (m *QueryWorkerNodeInfoResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryActiveTopicsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryWorkerNodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryActiveTopicsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryWorkerNodeInfoResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryActiveTopicsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1690,41 +1702,42 @@ func (m *QueryWorkerNodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryWorkerNodeInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkerNodeInfoResponse.Merge(m, src) +func (m *QueryActiveTopicsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryActiveTopicsRequest.Merge(m, src) } -func (m *QueryWorkerNodeInfoResponse) XXX_Size() int { +func (m *QueryActiveTopicsRequest) XXX_Size() int { return m.Size() } -func (m *QueryWorkerNodeInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWorkerNodeInfoResponse.DiscardUnknown(m) +func (m *QueryActiveTopicsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryActiveTopicsRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryWorkerNodeInfoResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryActiveTopicsRequest proto.InternalMessageInfo -func (m *QueryWorkerNodeInfoResponse) GetNodeInfo() *OffchainNode { +func (m *QueryActiveTopicsRequest) GetPagination() *SimpleCursorPaginationRequest { if m != nil { - return m.NodeInfo + return m.Pagination } return nil } -type QueryReputerNodeInfoRequest struct { - Libp2PKey string `protobuf:"bytes,1,opt,name=libp2p_key,json=libp2pKey,proto3" json:"libp2p_key,omitempty"` +type QueryActiveTopicsResponse struct { + Topics []*Topic `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"` + Pagination *SimpleCursorPaginationResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } -func (m *QueryReputerNodeInfoRequest) Reset() { *m = QueryReputerNodeInfoRequest{} } -func (m *QueryReputerNodeInfoRequest) String() string { return proto.CompactTextString(m) } -func (*QueryReputerNodeInfoRequest) ProtoMessage() {} -func (*QueryReputerNodeInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{36} +func (m *QueryActiveTopicsResponse) Reset() { *m = QueryActiveTopicsResponse{} } +func (m *QueryActiveTopicsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryActiveTopicsResponse) ProtoMessage() {} +func (*QueryActiveTopicsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{35} } -func (m *QueryReputerNodeInfoRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryActiveTopicsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryReputerNodeInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryActiveTopicsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryReputerNodeInfoRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryActiveTopicsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1734,41 +1747,50 @@ func (m *QueryReputerNodeInfoRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryReputerNodeInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryReputerNodeInfoRequest.Merge(m, src) +func (m *QueryActiveTopicsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryActiveTopicsResponse.Merge(m, src) } -func (m *QueryReputerNodeInfoRequest) XXX_Size() int { +func (m *QueryActiveTopicsResponse) XXX_Size() int { return m.Size() } -func (m *QueryReputerNodeInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryReputerNodeInfoRequest.DiscardUnknown(m) +func (m *QueryActiveTopicsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryActiveTopicsResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryReputerNodeInfoRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryActiveTopicsResponse proto.InternalMessageInfo -func (m *QueryReputerNodeInfoRequest) GetLibp2PKey() string { +func (m *QueryActiveTopicsResponse) GetTopics() []*Topic { if m != nil { - return m.Libp2PKey + return m.Topics } - return "" + return nil } -type QueryReputerNodeInfoResponse struct { - NodeInfo *OffchainNode `protobuf:"bytes,1,opt,name=node_info,json=nodeInfo,proto3" json:"node_info,omitempty"` +func (m *QueryActiveTopicsResponse) GetPagination() *SimpleCursorPaginationResponse { + if m != nil { + return m.Pagination + } + return nil } -func (m *QueryReputerNodeInfoResponse) Reset() { *m = QueryReputerNodeInfoResponse{} } -func (m *QueryReputerNodeInfoResponse) String() string { return proto.CompactTextString(m) } -func (*QueryReputerNodeInfoResponse) ProtoMessage() {} -func (*QueryReputerNodeInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{37} +// Returns the inferences on a topic posted at a block height +type QueryInferencesAtBlockRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } -func (m *QueryReputerNodeInfoResponse) XXX_Unmarshal(b []byte) error { + +func (m *QueryInferencesAtBlockRequest) Reset() { *m = QueryInferencesAtBlockRequest{} } +func (m *QueryInferencesAtBlockRequest) String() string { return proto.CompactTextString(m) } +func (*QueryInferencesAtBlockRequest) ProtoMessage() {} +func (*QueryInferencesAtBlockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{36} +} +func (m *QueryInferencesAtBlockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryReputerNodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryInferencesAtBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryReputerNodeInfoResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryInferencesAtBlockRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1778,41 +1800,52 @@ func (m *QueryReputerNodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryReputerNodeInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryReputerNodeInfoResponse.Merge(m, src) +func (m *QueryInferencesAtBlockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInferencesAtBlockRequest.Merge(m, src) } -func (m *QueryReputerNodeInfoResponse) XXX_Size() int { +func (m *QueryInferencesAtBlockRequest) XXX_Size() int { return m.Size() } -func (m *QueryReputerNodeInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryReputerNodeInfoResponse.DiscardUnknown(m) +func (m *QueryInferencesAtBlockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInferencesAtBlockRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryReputerNodeInfoResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryInferencesAtBlockRequest proto.InternalMessageInfo -func (m *QueryReputerNodeInfoResponse) GetNodeInfo() *OffchainNode { +func (m *QueryInferencesAtBlockRequest) GetTopicId() uint64 { if m != nil { - return m.NodeInfo + return m.TopicId } - return nil + return 0 +} + +func (m *QueryInferencesAtBlockRequest) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 } -type QueryWorkerAddressByP2PKeyRequest struct { - Libp2PKey string `protobuf:"bytes,1,opt,name=libp2p_key,json=libp2pKey,proto3" json:"libp2p_key,omitempty"` +// Returns the inferences on a topic posted at a block height +// +// NOTE: The amount field is a Uint which implements the custom method +// signatures required by gogoproto. +type QueryInferencesAtBlockResponse struct { + Inferences *Inferences `protobuf:"bytes,1,opt,name=inferences,proto3" json:"inferences,omitempty"` } -func (m *QueryWorkerAddressByP2PKeyRequest) Reset() { *m = QueryWorkerAddressByP2PKeyRequest{} } -func (m *QueryWorkerAddressByP2PKeyRequest) String() string { return proto.CompactTextString(m) } -func (*QueryWorkerAddressByP2PKeyRequest) ProtoMessage() {} -func (*QueryWorkerAddressByP2PKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{38} +func (m *QueryInferencesAtBlockResponse) Reset() { *m = QueryInferencesAtBlockResponse{} } +func (m *QueryInferencesAtBlockResponse) String() string { return proto.CompactTextString(m) } +func (*QueryInferencesAtBlockResponse) ProtoMessage() {} +func (*QueryInferencesAtBlockResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{37} } -func (m *QueryWorkerAddressByP2PKeyRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryInferencesAtBlockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryWorkerAddressByP2PKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryInferencesAtBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryWorkerAddressByP2PKeyRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryInferencesAtBlockResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1822,41 +1855,41 @@ func (m *QueryWorkerAddressByP2PKeyRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryWorkerAddressByP2PKeyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkerAddressByP2PKeyRequest.Merge(m, src) +func (m *QueryInferencesAtBlockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInferencesAtBlockResponse.Merge(m, src) } -func (m *QueryWorkerAddressByP2PKeyRequest) XXX_Size() int { +func (m *QueryInferencesAtBlockResponse) XXX_Size() int { return m.Size() } -func (m *QueryWorkerAddressByP2PKeyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWorkerAddressByP2PKeyRequest.DiscardUnknown(m) +func (m *QueryInferencesAtBlockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInferencesAtBlockResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryWorkerAddressByP2PKeyRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryInferencesAtBlockResponse proto.InternalMessageInfo -func (m *QueryWorkerAddressByP2PKeyRequest) GetLibp2PKey() string { +func (m *QueryInferencesAtBlockResponse) GetInferences() *Inferences { if m != nil { - return m.Libp2PKey + return m.Inferences } - return "" + return nil } -type QueryWorkerAddressByP2PKeyResponse struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +type QueryLatestTopicInferencesRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` } -func (m *QueryWorkerAddressByP2PKeyResponse) Reset() { *m = QueryWorkerAddressByP2PKeyResponse{} } -func (m *QueryWorkerAddressByP2PKeyResponse) String() string { return proto.CompactTextString(m) } -func (*QueryWorkerAddressByP2PKeyResponse) ProtoMessage() {} -func (*QueryWorkerAddressByP2PKeyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{39} +func (m *QueryLatestTopicInferencesRequest) Reset() { *m = QueryLatestTopicInferencesRequest{} } +func (m *QueryLatestTopicInferencesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryLatestTopicInferencesRequest) ProtoMessage() {} +func (*QueryLatestTopicInferencesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{38} } -func (m *QueryWorkerAddressByP2PKeyResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryLatestTopicInferencesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryWorkerAddressByP2PKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryLatestTopicInferencesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryWorkerAddressByP2PKeyResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryLatestTopicInferencesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1866,41 +1899,42 @@ func (m *QueryWorkerAddressByP2PKeyResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryWorkerAddressByP2PKeyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkerAddressByP2PKeyResponse.Merge(m, src) +func (m *QueryLatestTopicInferencesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryLatestTopicInferencesRequest.Merge(m, src) } -func (m *QueryWorkerAddressByP2PKeyResponse) XXX_Size() int { +func (m *QueryLatestTopicInferencesRequest) XXX_Size() int { return m.Size() } -func (m *QueryWorkerAddressByP2PKeyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryWorkerAddressByP2PKeyResponse.DiscardUnknown(m) +func (m *QueryLatestTopicInferencesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryLatestTopicInferencesRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryWorkerAddressByP2PKeyResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryLatestTopicInferencesRequest proto.InternalMessageInfo -func (m *QueryWorkerAddressByP2PKeyResponse) GetAddress() string { +func (m *QueryLatestTopicInferencesRequest) GetTopicId() uint64 { if m != nil { - return m.Address + return m.TopicId } - return "" + return 0 } -type QueryReputerAddressByP2PKeyRequest struct { - Libp2PKey string `protobuf:"bytes,1,opt,name=libp2p_key,json=libp2pKey,proto3" json:"libp2p_key,omitempty"` +type QueryLatestTopicInferencesResponse struct { + Inferences *Inferences `protobuf:"bytes,1,opt,name=inferences,proto3" json:"inferences,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } -func (m *QueryReputerAddressByP2PKeyRequest) Reset() { *m = QueryReputerAddressByP2PKeyRequest{} } -func (m *QueryReputerAddressByP2PKeyRequest) String() string { return proto.CompactTextString(m) } -func (*QueryReputerAddressByP2PKeyRequest) ProtoMessage() {} -func (*QueryReputerAddressByP2PKeyRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{40} +func (m *QueryLatestTopicInferencesResponse) Reset() { *m = QueryLatestTopicInferencesResponse{} } +func (m *QueryLatestTopicInferencesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryLatestTopicInferencesResponse) ProtoMessage() {} +func (*QueryLatestTopicInferencesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{39} } -func (m *QueryReputerAddressByP2PKeyRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryLatestTopicInferencesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryReputerAddressByP2PKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryLatestTopicInferencesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryReputerAddressByP2PKeyRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryLatestTopicInferencesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -1910,87 +1944,50 @@ func (m *QueryReputerAddressByP2PKeyRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryReputerAddressByP2PKeyRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryReputerAddressByP2PKeyRequest.Merge(m, src) +func (m *QueryLatestTopicInferencesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryLatestTopicInferencesResponse.Merge(m, src) } -func (m *QueryReputerAddressByP2PKeyRequest) XXX_Size() int { +func (m *QueryLatestTopicInferencesResponse) XXX_Size() int { return m.Size() } -func (m *QueryReputerAddressByP2PKeyRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryReputerAddressByP2PKeyRequest.DiscardUnknown(m) +func (m *QueryLatestTopicInferencesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryLatestTopicInferencesResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryReputerAddressByP2PKeyRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryLatestTopicInferencesResponse proto.InternalMessageInfo -func (m *QueryReputerAddressByP2PKeyRequest) GetLibp2PKey() string { +func (m *QueryLatestTopicInferencesResponse) GetInferences() *Inferences { if m != nil { - return m.Libp2PKey + return m.Inferences } - return "" -} - -type QueryReputerAddressByP2PKeyResponse struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + return nil } -func (m *QueryReputerAddressByP2PKeyResponse) Reset() { *m = QueryReputerAddressByP2PKeyResponse{} } -func (m *QueryReputerAddressByP2PKeyResponse) String() string { return proto.CompactTextString(m) } -func (*QueryReputerAddressByP2PKeyResponse) ProtoMessage() {} -func (*QueryReputerAddressByP2PKeyResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{41} -} -func (m *QueryReputerAddressByP2PKeyResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryReputerAddressByP2PKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryReputerAddressByP2PKeyResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryReputerAddressByP2PKeyResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryReputerAddressByP2PKeyResponse.Merge(m, src) -} -func (m *QueryReputerAddressByP2PKeyResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryReputerAddressByP2PKeyResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryReputerAddressByP2PKeyResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryReputerAddressByP2PKeyResponse proto.InternalMessageInfo - -func (m *QueryReputerAddressByP2PKeyResponse) GetAddress() string { +func (m *QueryLatestTopicInferencesResponse) GetBlockHeight() int64 { if m != nil { - return m.Address + return m.BlockHeight } - return "" + return 0 } -type QueryNetworkInferencesAtBlockRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - BlockHeightLastInference int64 `protobuf:"varint,2,opt,name=block_height_last_inference,json=blockHeightLastInference,proto3" json:"block_height_last_inference,omitempty"` - BlockHeightLastReward int64 `protobuf:"varint,3,opt,name=block_height_last_reward,json=blockHeightLastReward,proto3" json:"block_height_last_reward,omitempty"` +// Returns the forecasts on a topic posted at a block height +type QueryForecastsAtBlockRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } -func (m *QueryNetworkInferencesAtBlockRequest) Reset() { *m = QueryNetworkInferencesAtBlockRequest{} } -func (m *QueryNetworkInferencesAtBlockRequest) String() string { return proto.CompactTextString(m) } -func (*QueryNetworkInferencesAtBlockRequest) ProtoMessage() {} -func (*QueryNetworkInferencesAtBlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{42} +func (m *QueryForecastsAtBlockRequest) Reset() { *m = QueryForecastsAtBlockRequest{} } +func (m *QueryForecastsAtBlockRequest) String() string { return proto.CompactTextString(m) } +func (*QueryForecastsAtBlockRequest) ProtoMessage() {} +func (*QueryForecastsAtBlockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{40} } -func (m *QueryNetworkInferencesAtBlockRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryForecastsAtBlockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryNetworkInferencesAtBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryForecastsAtBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryNetworkInferencesAtBlockRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryForecastsAtBlockRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2000,55 +1997,52 @@ func (m *QueryNetworkInferencesAtBlockRequest) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *QueryNetworkInferencesAtBlockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryNetworkInferencesAtBlockRequest.Merge(m, src) +func (m *QueryForecastsAtBlockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryForecastsAtBlockRequest.Merge(m, src) } -func (m *QueryNetworkInferencesAtBlockRequest) XXX_Size() int { +func (m *QueryForecastsAtBlockRequest) XXX_Size() int { return m.Size() } -func (m *QueryNetworkInferencesAtBlockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryNetworkInferencesAtBlockRequest.DiscardUnknown(m) +func (m *QueryForecastsAtBlockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryForecastsAtBlockRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryNetworkInferencesAtBlockRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryForecastsAtBlockRequest proto.InternalMessageInfo -func (m *QueryNetworkInferencesAtBlockRequest) GetTopicId() uint64 { +func (m *QueryForecastsAtBlockRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -func (m *QueryNetworkInferencesAtBlockRequest) GetBlockHeightLastInference() int64 { - if m != nil { - return m.BlockHeightLastInference - } - return 0 -} - -func (m *QueryNetworkInferencesAtBlockRequest) GetBlockHeightLastReward() int64 { +func (m *QueryForecastsAtBlockRequest) GetBlockHeight() int64 { if m != nil { - return m.BlockHeightLastReward + return m.BlockHeight } return 0 } -type QueryLatestNetworkInferencesRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +// Returns the forecasts on a topic posted at a block height +// +// NOTE: The amount field is a Uint which implements the custom method +// signatures required by gogoproto. +type QueryForecastsAtBlockResponse struct { + Forecasts *Forecasts `protobuf:"bytes,1,opt,name=forecasts,proto3" json:"forecasts,omitempty"` } -func (m *QueryLatestNetworkInferencesRequest) Reset() { *m = QueryLatestNetworkInferencesRequest{} } -func (m *QueryLatestNetworkInferencesRequest) String() string { return proto.CompactTextString(m) } -func (*QueryLatestNetworkInferencesRequest) ProtoMessage() {} -func (*QueryLatestNetworkInferencesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{43} +func (m *QueryForecastsAtBlockResponse) Reset() { *m = QueryForecastsAtBlockResponse{} } +func (m *QueryForecastsAtBlockResponse) String() string { return proto.CompactTextString(m) } +func (*QueryForecastsAtBlockResponse) ProtoMessage() {} +func (*QueryForecastsAtBlockResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{41} } -func (m *QueryLatestNetworkInferencesRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryForecastsAtBlockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryLatestNetworkInferencesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryForecastsAtBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryLatestNetworkInferencesRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryForecastsAtBlockResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2058,42 +2052,42 @@ func (m *QueryLatestNetworkInferencesRequest) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *QueryLatestNetworkInferencesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryLatestNetworkInferencesRequest.Merge(m, src) +func (m *QueryForecastsAtBlockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryForecastsAtBlockResponse.Merge(m, src) } -func (m *QueryLatestNetworkInferencesRequest) XXX_Size() int { +func (m *QueryForecastsAtBlockResponse) XXX_Size() int { return m.Size() } -func (m *QueryLatestNetworkInferencesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryLatestNetworkInferencesRequest.DiscardUnknown(m) +func (m *QueryForecastsAtBlockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryForecastsAtBlockResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryLatestNetworkInferencesRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryForecastsAtBlockResponse proto.InternalMessageInfo -func (m *QueryLatestNetworkInferencesRequest) GetTopicId() uint64 { +func (m *QueryForecastsAtBlockResponse) GetForecasts() *Forecasts { if m != nil { - return m.TopicId + return m.Forecasts } - return 0 + return nil } -type QueryIsWorkerNonceUnfulfilledRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +type QueryWorkerLatestInferenceRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + WorkerAddress string `protobuf:"bytes,2,opt,name=worker_address,json=workerAddress,proto3" json:"worker_address,omitempty"` } -func (m *QueryIsWorkerNonceUnfulfilledRequest) Reset() { *m = QueryIsWorkerNonceUnfulfilledRequest{} } -func (m *QueryIsWorkerNonceUnfulfilledRequest) String() string { return proto.CompactTextString(m) } -func (*QueryIsWorkerNonceUnfulfilledRequest) ProtoMessage() {} -func (*QueryIsWorkerNonceUnfulfilledRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{44} +func (m *QueryWorkerLatestInferenceRequest) Reset() { *m = QueryWorkerLatestInferenceRequest{} } +func (m *QueryWorkerLatestInferenceRequest) String() string { return proto.CompactTextString(m) } +func (*QueryWorkerLatestInferenceRequest) ProtoMessage() {} +func (*QueryWorkerLatestInferenceRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{42} } -func (m *QueryIsWorkerNonceUnfulfilledRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryWorkerLatestInferenceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryIsWorkerNonceUnfulfilledRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryWorkerLatestInferenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryIsWorkerNonceUnfulfilledRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryWorkerLatestInferenceRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2103,48 +2097,48 @@ func (m *QueryIsWorkerNonceUnfulfilledRequest) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *QueryIsWorkerNonceUnfulfilledRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIsWorkerNonceUnfulfilledRequest.Merge(m, src) +func (m *QueryWorkerLatestInferenceRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryWorkerLatestInferenceRequest.Merge(m, src) } -func (m *QueryIsWorkerNonceUnfulfilledRequest) XXX_Size() int { +func (m *QueryWorkerLatestInferenceRequest) XXX_Size() int { return m.Size() } -func (m *QueryIsWorkerNonceUnfulfilledRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIsWorkerNonceUnfulfilledRequest.DiscardUnknown(m) +func (m *QueryWorkerLatestInferenceRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryWorkerLatestInferenceRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryIsWorkerNonceUnfulfilledRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryWorkerLatestInferenceRequest proto.InternalMessageInfo -func (m *QueryIsWorkerNonceUnfulfilledRequest) GetTopicId() uint64 { +func (m *QueryWorkerLatestInferenceRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -func (m *QueryIsWorkerNonceUnfulfilledRequest) GetBlockHeight() int64 { +func (m *QueryWorkerLatestInferenceRequest) GetWorkerAddress() string { if m != nil { - return m.BlockHeight + return m.WorkerAddress } - return 0 + return "" } -type QueryIsWorkerNonceUnfulfilledResponse struct { - IsWorkerNonceUnfulfilled bool `protobuf:"varint,1,opt,name=is_worker_nonce_unfulfilled,json=isWorkerNonceUnfulfilled,proto3" json:"is_worker_nonce_unfulfilled,omitempty"` +type QueryWorkerLatestInferenceResponse struct { + LatestInference *Inference `protobuf:"bytes,1,opt,name=latest_inference,json=latestInference,proto3" json:"latest_inference,omitempty"` } -func (m *QueryIsWorkerNonceUnfulfilledResponse) Reset() { *m = QueryIsWorkerNonceUnfulfilledResponse{} } -func (m *QueryIsWorkerNonceUnfulfilledResponse) String() string { return proto.CompactTextString(m) } -func (*QueryIsWorkerNonceUnfulfilledResponse) ProtoMessage() {} -func (*QueryIsWorkerNonceUnfulfilledResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{45} +func (m *QueryWorkerLatestInferenceResponse) Reset() { *m = QueryWorkerLatestInferenceResponse{} } +func (m *QueryWorkerLatestInferenceResponse) String() string { return proto.CompactTextString(m) } +func (*QueryWorkerLatestInferenceResponse) ProtoMessage() {} +func (*QueryWorkerLatestInferenceResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{43} } -func (m *QueryIsWorkerNonceUnfulfilledResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryWorkerLatestInferenceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryIsWorkerNonceUnfulfilledResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryWorkerLatestInferenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryIsWorkerNonceUnfulfilledResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryWorkerLatestInferenceResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2154,41 +2148,41 @@ func (m *QueryIsWorkerNonceUnfulfilledResponse) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *QueryIsWorkerNonceUnfulfilledResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIsWorkerNonceUnfulfilledResponse.Merge(m, src) +func (m *QueryWorkerLatestInferenceResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryWorkerLatestInferenceResponse.Merge(m, src) } -func (m *QueryIsWorkerNonceUnfulfilledResponse) XXX_Size() int { +func (m *QueryWorkerLatestInferenceResponse) XXX_Size() int { return m.Size() } -func (m *QueryIsWorkerNonceUnfulfilledResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIsWorkerNonceUnfulfilledResponse.DiscardUnknown(m) +func (m *QueryWorkerLatestInferenceResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryWorkerLatestInferenceResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryIsWorkerNonceUnfulfilledResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryWorkerLatestInferenceResponse proto.InternalMessageInfo -func (m *QueryIsWorkerNonceUnfulfilledResponse) GetIsWorkerNonceUnfulfilled() bool { +func (m *QueryWorkerLatestInferenceResponse) GetLatestInference() *Inference { if m != nil { - return m.IsWorkerNonceUnfulfilled + return m.LatestInference } - return false + return nil } -type QueryUnfulfilledReputerNoncesRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +type QueryWorkerNodeInfoRequest struct { + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } -func (m *QueryUnfulfilledReputerNoncesRequest) Reset() { *m = QueryUnfulfilledReputerNoncesRequest{} } -func (m *QueryUnfulfilledReputerNoncesRequest) String() string { return proto.CompactTextString(m) } -func (*QueryUnfulfilledReputerNoncesRequest) ProtoMessage() {} -func (*QueryUnfulfilledReputerNoncesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{46} +func (m *QueryWorkerNodeInfoRequest) Reset() { *m = QueryWorkerNodeInfoRequest{} } +func (m *QueryWorkerNodeInfoRequest) String() string { return proto.CompactTextString(m) } +func (*QueryWorkerNodeInfoRequest) ProtoMessage() {} +func (*QueryWorkerNodeInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{44} } -func (m *QueryUnfulfilledReputerNoncesRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryWorkerNodeInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryUnfulfilledReputerNoncesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryWorkerNodeInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryUnfulfilledReputerNoncesRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryWorkerNodeInfoRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2198,41 +2192,41 @@ func (m *QueryUnfulfilledReputerNoncesRequest) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *QueryUnfulfilledReputerNoncesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryUnfulfilledReputerNoncesRequest.Merge(m, src) +func (m *QueryWorkerNodeInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryWorkerNodeInfoRequest.Merge(m, src) } -func (m *QueryUnfulfilledReputerNoncesRequest) XXX_Size() int { +func (m *QueryWorkerNodeInfoRequest) XXX_Size() int { return m.Size() } -func (m *QueryUnfulfilledReputerNoncesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryUnfulfilledReputerNoncesRequest.DiscardUnknown(m) +func (m *QueryWorkerNodeInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryWorkerNodeInfoRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryUnfulfilledReputerNoncesRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryWorkerNodeInfoRequest proto.InternalMessageInfo -func (m *QueryUnfulfilledReputerNoncesRequest) GetTopicId() uint64 { +func (m *QueryWorkerNodeInfoRequest) GetAddress() string { if m != nil { - return m.TopicId + return m.Address } - return 0 + return "" } -type QueryUnfulfilledReputerNoncesResponse struct { - Nonces *ReputerRequestNonces `protobuf:"bytes,1,opt,name=nonces,proto3" json:"nonces,omitempty"` +type QueryWorkerNodeInfoResponse struct { + NodeInfo *OffchainNode `protobuf:"bytes,1,opt,name=node_info,json=nodeInfo,proto3" json:"node_info,omitempty"` } -func (m *QueryUnfulfilledReputerNoncesResponse) Reset() { *m = QueryUnfulfilledReputerNoncesResponse{} } -func (m *QueryUnfulfilledReputerNoncesResponse) String() string { return proto.CompactTextString(m) } -func (*QueryUnfulfilledReputerNoncesResponse) ProtoMessage() {} -func (*QueryUnfulfilledReputerNoncesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{47} +func (m *QueryWorkerNodeInfoResponse) Reset() { *m = QueryWorkerNodeInfoResponse{} } +func (m *QueryWorkerNodeInfoResponse) String() string { return proto.CompactTextString(m) } +func (*QueryWorkerNodeInfoResponse) ProtoMessage() {} +func (*QueryWorkerNodeInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{45} } -func (m *QueryUnfulfilledReputerNoncesResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryWorkerNodeInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryUnfulfilledReputerNoncesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryWorkerNodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryUnfulfilledReputerNoncesResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryWorkerNodeInfoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2242,41 +2236,41 @@ func (m *QueryUnfulfilledReputerNoncesResponse) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *QueryUnfulfilledReputerNoncesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryUnfulfilledReputerNoncesResponse.Merge(m, src) +func (m *QueryWorkerNodeInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryWorkerNodeInfoResponse.Merge(m, src) } -func (m *QueryUnfulfilledReputerNoncesResponse) XXX_Size() int { +func (m *QueryWorkerNodeInfoResponse) XXX_Size() int { return m.Size() } -func (m *QueryUnfulfilledReputerNoncesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryUnfulfilledReputerNoncesResponse.DiscardUnknown(m) +func (m *QueryWorkerNodeInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryWorkerNodeInfoResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryUnfulfilledReputerNoncesResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryWorkerNodeInfoResponse proto.InternalMessageInfo -func (m *QueryUnfulfilledReputerNoncesResponse) GetNonces() *ReputerRequestNonces { +func (m *QueryWorkerNodeInfoResponse) GetNodeInfo() *OffchainNode { if m != nil { - return m.Nonces + return m.NodeInfo } return nil } -type QueryUnfulfilledWorkerNoncesRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` +type QueryReputerNodeInfoRequest struct { + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } -func (m *QueryUnfulfilledWorkerNoncesRequest) Reset() { *m = QueryUnfulfilledWorkerNoncesRequest{} } -func (m *QueryUnfulfilledWorkerNoncesRequest) String() string { return proto.CompactTextString(m) } -func (*QueryUnfulfilledWorkerNoncesRequest) ProtoMessage() {} -func (*QueryUnfulfilledWorkerNoncesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{48} +func (m *QueryReputerNodeInfoRequest) Reset() { *m = QueryReputerNodeInfoRequest{} } +func (m *QueryReputerNodeInfoRequest) String() string { return proto.CompactTextString(m) } +func (*QueryReputerNodeInfoRequest) ProtoMessage() {} +func (*QueryReputerNodeInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{46} } -func (m *QueryUnfulfilledWorkerNoncesRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryReputerNodeInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryUnfulfilledWorkerNoncesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryReputerNodeInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryUnfulfilledWorkerNoncesRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryReputerNodeInfoRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2286,41 +2280,41 @@ func (m *QueryUnfulfilledWorkerNoncesRequest) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *QueryUnfulfilledWorkerNoncesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryUnfulfilledWorkerNoncesRequest.Merge(m, src) +func (m *QueryReputerNodeInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryReputerNodeInfoRequest.Merge(m, src) } -func (m *QueryUnfulfilledWorkerNoncesRequest) XXX_Size() int { +func (m *QueryReputerNodeInfoRequest) XXX_Size() int { return m.Size() } -func (m *QueryUnfulfilledWorkerNoncesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryUnfulfilledWorkerNoncesRequest.DiscardUnknown(m) +func (m *QueryReputerNodeInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryReputerNodeInfoRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryUnfulfilledWorkerNoncesRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryReputerNodeInfoRequest proto.InternalMessageInfo -func (m *QueryUnfulfilledWorkerNoncesRequest) GetTopicId() uint64 { +func (m *QueryReputerNodeInfoRequest) GetAddress() string { if m != nil { - return m.TopicId + return m.Address } - return 0 + return "" } -type QueryUnfulfilledWorkerNoncesResponse struct { - Nonces *Nonces `protobuf:"bytes,1,opt,name=nonces,proto3" json:"nonces,omitempty"` +type QueryReputerNodeInfoResponse struct { + NodeInfo *OffchainNode `protobuf:"bytes,1,opt,name=node_info,json=nodeInfo,proto3" json:"node_info,omitempty"` } -func (m *QueryUnfulfilledWorkerNoncesResponse) Reset() { *m = QueryUnfulfilledWorkerNoncesResponse{} } -func (m *QueryUnfulfilledWorkerNoncesResponse) String() string { return proto.CompactTextString(m) } -func (*QueryUnfulfilledWorkerNoncesResponse) ProtoMessage() {} -func (*QueryUnfulfilledWorkerNoncesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{49} +func (m *QueryReputerNodeInfoResponse) Reset() { *m = QueryReputerNodeInfoResponse{} } +func (m *QueryReputerNodeInfoResponse) String() string { return proto.CompactTextString(m) } +func (*QueryReputerNodeInfoResponse) ProtoMessage() {} +func (*QueryReputerNodeInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{47} } -func (m *QueryUnfulfilledWorkerNoncesResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryReputerNodeInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryUnfulfilledWorkerNoncesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryReputerNodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryUnfulfilledWorkerNoncesResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryReputerNodeInfoResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2330,42 +2324,43 @@ func (m *QueryUnfulfilledWorkerNoncesResponse) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *QueryUnfulfilledWorkerNoncesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryUnfulfilledWorkerNoncesResponse.Merge(m, src) +func (m *QueryReputerNodeInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryReputerNodeInfoResponse.Merge(m, src) } -func (m *QueryUnfulfilledWorkerNoncesResponse) XXX_Size() int { +func (m *QueryReputerNodeInfoResponse) XXX_Size() int { return m.Size() } -func (m *QueryUnfulfilledWorkerNoncesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryUnfulfilledWorkerNoncesResponse.DiscardUnknown(m) +func (m *QueryReputerNodeInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryReputerNodeInfoResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryUnfulfilledWorkerNoncesResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryReputerNodeInfoResponse proto.InternalMessageInfo -func (m *QueryUnfulfilledWorkerNoncesResponse) GetNonces() *Nonces { +func (m *QueryReputerNodeInfoResponse) GetNodeInfo() *OffchainNode { if m != nil { - return m.Nonces + return m.NodeInfo } return nil } -type QueryInfererNetworkRegretRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - ActorId string `protobuf:"bytes,2,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"` +type QueryNetworkInferencesAtBlockRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + BlockHeightLastInference int64 `protobuf:"varint,2,opt,name=block_height_last_inference,json=blockHeightLastInference,proto3" json:"block_height_last_inference,omitempty"` + BlockHeightLastReward int64 `protobuf:"varint,3,opt,name=block_height_last_reward,json=blockHeightLastReward,proto3" json:"block_height_last_reward,omitempty"` } -func (m *QueryInfererNetworkRegretRequest) Reset() { *m = QueryInfererNetworkRegretRequest{} } -func (m *QueryInfererNetworkRegretRequest) String() string { return proto.CompactTextString(m) } -func (*QueryInfererNetworkRegretRequest) ProtoMessage() {} -func (*QueryInfererNetworkRegretRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{50} +func (m *QueryNetworkInferencesAtBlockRequest) Reset() { *m = QueryNetworkInferencesAtBlockRequest{} } +func (m *QueryNetworkInferencesAtBlockRequest) String() string { return proto.CompactTextString(m) } +func (*QueryNetworkInferencesAtBlockRequest) ProtoMessage() {} +func (*QueryNetworkInferencesAtBlockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{48} } -func (m *QueryInfererNetworkRegretRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryNetworkInferencesAtBlockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryInfererNetworkRegretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryNetworkInferencesAtBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryInfererNetworkRegretRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryNetworkInferencesAtBlockRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2375,48 +2370,55 @@ func (m *QueryInfererNetworkRegretRequest) XXX_Marshal(b []byte, deterministic b return b[:n], nil } } -func (m *QueryInfererNetworkRegretRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryInfererNetworkRegretRequest.Merge(m, src) +func (m *QueryNetworkInferencesAtBlockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNetworkInferencesAtBlockRequest.Merge(m, src) } -func (m *QueryInfererNetworkRegretRequest) XXX_Size() int { +func (m *QueryNetworkInferencesAtBlockRequest) XXX_Size() int { return m.Size() } -func (m *QueryInfererNetworkRegretRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryInfererNetworkRegretRequest.DiscardUnknown(m) +func (m *QueryNetworkInferencesAtBlockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNetworkInferencesAtBlockRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryInfererNetworkRegretRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryNetworkInferencesAtBlockRequest proto.InternalMessageInfo -func (m *QueryInfererNetworkRegretRequest) GetTopicId() uint64 { +func (m *QueryNetworkInferencesAtBlockRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -func (m *QueryInfererNetworkRegretRequest) GetActorId() string { +func (m *QueryNetworkInferencesAtBlockRequest) GetBlockHeightLastInference() int64 { if m != nil { - return m.ActorId + return m.BlockHeightLastInference } - return "" + return 0 } -type QueryInfererNetworkRegretResponse struct { - Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` +func (m *QueryNetworkInferencesAtBlockRequest) GetBlockHeightLastReward() int64 { + if m != nil { + return m.BlockHeightLastReward + } + return 0 } -func (m *QueryInfererNetworkRegretResponse) Reset() { *m = QueryInfererNetworkRegretResponse{} } -func (m *QueryInfererNetworkRegretResponse) String() string { return proto.CompactTextString(m) } -func (*QueryInfererNetworkRegretResponse) ProtoMessage() {} -func (*QueryInfererNetworkRegretResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{51} +type QueryLatestNetworkInferencesRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` } -func (m *QueryInfererNetworkRegretResponse) XXX_Unmarshal(b []byte) error { + +func (m *QueryLatestNetworkInferencesRequest) Reset() { *m = QueryLatestNetworkInferencesRequest{} } +func (m *QueryLatestNetworkInferencesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryLatestNetworkInferencesRequest) ProtoMessage() {} +func (*QueryLatestNetworkInferencesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{49} +} +func (m *QueryLatestNetworkInferencesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryInfererNetworkRegretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryLatestNetworkInferencesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryInfererNetworkRegretResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryLatestNetworkInferencesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2426,42 +2428,42 @@ func (m *QueryInfererNetworkRegretResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryInfererNetworkRegretResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryInfererNetworkRegretResponse.Merge(m, src) +func (m *QueryLatestNetworkInferencesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryLatestNetworkInferencesRequest.Merge(m, src) } -func (m *QueryInfererNetworkRegretResponse) XXX_Size() int { +func (m *QueryLatestNetworkInferencesRequest) XXX_Size() int { return m.Size() } -func (m *QueryInfererNetworkRegretResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryInfererNetworkRegretResponse.DiscardUnknown(m) +func (m *QueryLatestNetworkInferencesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryLatestNetworkInferencesRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryInfererNetworkRegretResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryLatestNetworkInferencesRequest proto.InternalMessageInfo -func (m *QueryInfererNetworkRegretResponse) GetRegret() *TimestampedValue { +func (m *QueryLatestNetworkInferencesRequest) GetTopicId() uint64 { if m != nil { - return m.Regret + return m.TopicId } - return nil + return 0 } -type QueryForecasterNetworkRegretRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - Worker string `protobuf:"bytes,2,opt,name=worker,proto3" json:"worker,omitempty"` +type QueryIsWorkerNonceUnfulfilledRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } -func (m *QueryForecasterNetworkRegretRequest) Reset() { *m = QueryForecasterNetworkRegretRequest{} } -func (m *QueryForecasterNetworkRegretRequest) String() string { return proto.CompactTextString(m) } -func (*QueryForecasterNetworkRegretRequest) ProtoMessage() {} -func (*QueryForecasterNetworkRegretRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{52} +func (m *QueryIsWorkerNonceUnfulfilledRequest) Reset() { *m = QueryIsWorkerNonceUnfulfilledRequest{} } +func (m *QueryIsWorkerNonceUnfulfilledRequest) String() string { return proto.CompactTextString(m) } +func (*QueryIsWorkerNonceUnfulfilledRequest) ProtoMessage() {} +func (*QueryIsWorkerNonceUnfulfilledRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{50} } -func (m *QueryForecasterNetworkRegretRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryIsWorkerNonceUnfulfilledRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryForecasterNetworkRegretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryIsWorkerNonceUnfulfilledRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryForecasterNetworkRegretRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryIsWorkerNonceUnfulfilledRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2471,48 +2473,48 @@ func (m *QueryForecasterNetworkRegretRequest) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *QueryForecasterNetworkRegretRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryForecasterNetworkRegretRequest.Merge(m, src) +func (m *QueryIsWorkerNonceUnfulfilledRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsWorkerNonceUnfulfilledRequest.Merge(m, src) } -func (m *QueryForecasterNetworkRegretRequest) XXX_Size() int { +func (m *QueryIsWorkerNonceUnfulfilledRequest) XXX_Size() int { return m.Size() } -func (m *QueryForecasterNetworkRegretRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryForecasterNetworkRegretRequest.DiscardUnknown(m) +func (m *QueryIsWorkerNonceUnfulfilledRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsWorkerNonceUnfulfilledRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryForecasterNetworkRegretRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryIsWorkerNonceUnfulfilledRequest proto.InternalMessageInfo -func (m *QueryForecasterNetworkRegretRequest) GetTopicId() uint64 { +func (m *QueryIsWorkerNonceUnfulfilledRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -func (m *QueryForecasterNetworkRegretRequest) GetWorker() string { +func (m *QueryIsWorkerNonceUnfulfilledRequest) GetBlockHeight() int64 { if m != nil { - return m.Worker + return m.BlockHeight } - return "" + return 0 } -type QueryForecasterNetworkRegretResponse struct { - Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` +type QueryIsWorkerNonceUnfulfilledResponse struct { + IsWorkerNonceUnfulfilled bool `protobuf:"varint,1,opt,name=is_worker_nonce_unfulfilled,json=isWorkerNonceUnfulfilled,proto3" json:"is_worker_nonce_unfulfilled,omitempty"` } -func (m *QueryForecasterNetworkRegretResponse) Reset() { *m = QueryForecasterNetworkRegretResponse{} } -func (m *QueryForecasterNetworkRegretResponse) String() string { return proto.CompactTextString(m) } -func (*QueryForecasterNetworkRegretResponse) ProtoMessage() {} -func (*QueryForecasterNetworkRegretResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{53} +func (m *QueryIsWorkerNonceUnfulfilledResponse) Reset() { *m = QueryIsWorkerNonceUnfulfilledResponse{} } +func (m *QueryIsWorkerNonceUnfulfilledResponse) String() string { return proto.CompactTextString(m) } +func (*QueryIsWorkerNonceUnfulfilledResponse) ProtoMessage() {} +func (*QueryIsWorkerNonceUnfulfilledResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{51} } -func (m *QueryForecasterNetworkRegretResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryIsWorkerNonceUnfulfilledResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryForecasterNetworkRegretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryIsWorkerNonceUnfulfilledResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryForecasterNetworkRegretResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryIsWorkerNonceUnfulfilledResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2522,45 +2524,41 @@ func (m *QueryForecasterNetworkRegretResponse) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *QueryForecasterNetworkRegretResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryForecasterNetworkRegretResponse.Merge(m, src) +func (m *QueryIsWorkerNonceUnfulfilledResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsWorkerNonceUnfulfilledResponse.Merge(m, src) } -func (m *QueryForecasterNetworkRegretResponse) XXX_Size() int { +func (m *QueryIsWorkerNonceUnfulfilledResponse) XXX_Size() int { return m.Size() } -func (m *QueryForecasterNetworkRegretResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryForecasterNetworkRegretResponse.DiscardUnknown(m) +func (m *QueryIsWorkerNonceUnfulfilledResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsWorkerNonceUnfulfilledResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryForecasterNetworkRegretResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryIsWorkerNonceUnfulfilledResponse proto.InternalMessageInfo -func (m *QueryForecasterNetworkRegretResponse) GetRegret() *TimestampedValue { +func (m *QueryIsWorkerNonceUnfulfilledResponse) GetIsWorkerNonceUnfulfilled() bool { if m != nil { - return m.Regret + return m.IsWorkerNonceUnfulfilled } - return nil + return false } -type QueryOneInForecasterNetworkRegretRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - Forecaster string `protobuf:"bytes,2,opt,name=forecaster,proto3" json:"forecaster,omitempty"` - Inferer string `protobuf:"bytes,3,opt,name=inferer,proto3" json:"inferer,omitempty"` +type QueryUnfulfilledReputerNoncesRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` } -func (m *QueryOneInForecasterNetworkRegretRequest) Reset() { - *m = QueryOneInForecasterNetworkRegretRequest{} -} -func (m *QueryOneInForecasterNetworkRegretRequest) String() string { return proto.CompactTextString(m) } -func (*QueryOneInForecasterNetworkRegretRequest) ProtoMessage() {} -func (*QueryOneInForecasterNetworkRegretRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{54} +func (m *QueryUnfulfilledReputerNoncesRequest) Reset() { *m = QueryUnfulfilledReputerNoncesRequest{} } +func (m *QueryUnfulfilledReputerNoncesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryUnfulfilledReputerNoncesRequest) ProtoMessage() {} +func (*QueryUnfulfilledReputerNoncesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{52} } -func (m *QueryOneInForecasterNetworkRegretRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryUnfulfilledReputerNoncesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryOneInForecasterNetworkRegretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryUnfulfilledReputerNoncesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryOneInForecasterNetworkRegretRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryUnfulfilledReputerNoncesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2570,59 +2568,41 @@ func (m *QueryOneInForecasterNetworkRegretRequest) XXX_Marshal(b []byte, determi return b[:n], nil } } -func (m *QueryOneInForecasterNetworkRegretRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryOneInForecasterNetworkRegretRequest.Merge(m, src) +func (m *QueryUnfulfilledReputerNoncesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUnfulfilledReputerNoncesRequest.Merge(m, src) } -func (m *QueryOneInForecasterNetworkRegretRequest) XXX_Size() int { +func (m *QueryUnfulfilledReputerNoncesRequest) XXX_Size() int { return m.Size() } -func (m *QueryOneInForecasterNetworkRegretRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryOneInForecasterNetworkRegretRequest.DiscardUnknown(m) +func (m *QueryUnfulfilledReputerNoncesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUnfulfilledReputerNoncesRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryOneInForecasterNetworkRegretRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryUnfulfilledReputerNoncesRequest proto.InternalMessageInfo -func (m *QueryOneInForecasterNetworkRegretRequest) GetTopicId() uint64 { +func (m *QueryUnfulfilledReputerNoncesRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -func (m *QueryOneInForecasterNetworkRegretRequest) GetForecaster() string { - if m != nil { - return m.Forecaster - } - return "" -} - -func (m *QueryOneInForecasterNetworkRegretRequest) GetInferer() string { - if m != nil { - return m.Inferer - } - return "" -} - -type QueryOneInForecasterNetworkRegretResponse struct { - Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` +type QueryUnfulfilledReputerNoncesResponse struct { + Nonces *ReputerRequestNonces `protobuf:"bytes,1,opt,name=nonces,proto3" json:"nonces,omitempty"` } -func (m *QueryOneInForecasterNetworkRegretResponse) Reset() { - *m = QueryOneInForecasterNetworkRegretResponse{} -} -func (m *QueryOneInForecasterNetworkRegretResponse) String() string { - return proto.CompactTextString(m) -} -func (*QueryOneInForecasterNetworkRegretResponse) ProtoMessage() {} -func (*QueryOneInForecasterNetworkRegretResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{55} +func (m *QueryUnfulfilledReputerNoncesResponse) Reset() { *m = QueryUnfulfilledReputerNoncesResponse{} } +func (m *QueryUnfulfilledReputerNoncesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryUnfulfilledReputerNoncesResponse) ProtoMessage() {} +func (*QueryUnfulfilledReputerNoncesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{53} } -func (m *QueryOneInForecasterNetworkRegretResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryUnfulfilledReputerNoncesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryOneInForecasterNetworkRegretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryUnfulfilledReputerNoncesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryOneInForecasterNetworkRegretResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryUnfulfilledReputerNoncesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2632,46 +2612,41 @@ func (m *QueryOneInForecasterNetworkRegretResponse) XXX_Marshal(b []byte, determ return b[:n], nil } } -func (m *QueryOneInForecasterNetworkRegretResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryOneInForecasterNetworkRegretResponse.Merge(m, src) +func (m *QueryUnfulfilledReputerNoncesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUnfulfilledReputerNoncesResponse.Merge(m, src) } -func (m *QueryOneInForecasterNetworkRegretResponse) XXX_Size() int { +func (m *QueryUnfulfilledReputerNoncesResponse) XXX_Size() int { return m.Size() } -func (m *QueryOneInForecasterNetworkRegretResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryOneInForecasterNetworkRegretResponse.DiscardUnknown(m) +func (m *QueryUnfulfilledReputerNoncesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUnfulfilledReputerNoncesResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryOneInForecasterNetworkRegretResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryUnfulfilledReputerNoncesResponse proto.InternalMessageInfo -func (m *QueryOneInForecasterNetworkRegretResponse) GetRegret() *TimestampedValue { +func (m *QueryUnfulfilledReputerNoncesResponse) GetNonces() *ReputerRequestNonces { if m != nil { - return m.Regret + return m.Nonces } return nil } -type QueryOneInForecasterSelfNetworkRegretRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - Forecaster string `protobuf:"bytes,2,opt,name=forecaster,proto3" json:"forecaster,omitempty"` +type QueryUnfulfilledWorkerNoncesRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` } -func (m *QueryOneInForecasterSelfNetworkRegretRequest) Reset() { - *m = QueryOneInForecasterSelfNetworkRegretRequest{} -} -func (m *QueryOneInForecasterSelfNetworkRegretRequest) String() string { - return proto.CompactTextString(m) -} -func (*QueryOneInForecasterSelfNetworkRegretRequest) ProtoMessage() {} -func (*QueryOneInForecasterSelfNetworkRegretRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{56} +func (m *QueryUnfulfilledWorkerNoncesRequest) Reset() { *m = QueryUnfulfilledWorkerNoncesRequest{} } +func (m *QueryUnfulfilledWorkerNoncesRequest) String() string { return proto.CompactTextString(m) } +func (*QueryUnfulfilledWorkerNoncesRequest) ProtoMessage() {} +func (*QueryUnfulfilledWorkerNoncesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{54} } -func (m *QueryOneInForecasterSelfNetworkRegretRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryUnfulfilledWorkerNoncesRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryOneInForecasterSelfNetworkRegretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryUnfulfilledWorkerNoncesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryOneInForecasterSelfNetworkRegretRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryUnfulfilledWorkerNoncesRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2681,52 +2656,41 @@ func (m *QueryOneInForecasterSelfNetworkRegretRequest) XXX_Marshal(b []byte, det return b[:n], nil } } -func (m *QueryOneInForecasterSelfNetworkRegretRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryOneInForecasterSelfNetworkRegretRequest.Merge(m, src) +func (m *QueryUnfulfilledWorkerNoncesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUnfulfilledWorkerNoncesRequest.Merge(m, src) } -func (m *QueryOneInForecasterSelfNetworkRegretRequest) XXX_Size() int { +func (m *QueryUnfulfilledWorkerNoncesRequest) XXX_Size() int { return m.Size() } -func (m *QueryOneInForecasterSelfNetworkRegretRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryOneInForecasterSelfNetworkRegretRequest.DiscardUnknown(m) +func (m *QueryUnfulfilledWorkerNoncesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUnfulfilledWorkerNoncesRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryOneInForecasterSelfNetworkRegretRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryUnfulfilledWorkerNoncesRequest proto.InternalMessageInfo -func (m *QueryOneInForecasterSelfNetworkRegretRequest) GetTopicId() uint64 { +func (m *QueryUnfulfilledWorkerNoncesRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -func (m *QueryOneInForecasterSelfNetworkRegretRequest) GetForecaster() string { - if m != nil { - return m.Forecaster - } - return "" -} - -type QueryOneInForecasterSelfNetworkRegretResponse struct { - Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` +type QueryUnfulfilledWorkerNoncesResponse struct { + Nonces *Nonces `protobuf:"bytes,1,opt,name=nonces,proto3" json:"nonces,omitempty"` } -func (m *QueryOneInForecasterSelfNetworkRegretResponse) Reset() { - *m = QueryOneInForecasterSelfNetworkRegretResponse{} -} -func (m *QueryOneInForecasterSelfNetworkRegretResponse) String() string { - return proto.CompactTextString(m) -} -func (*QueryOneInForecasterSelfNetworkRegretResponse) ProtoMessage() {} -func (*QueryOneInForecasterSelfNetworkRegretResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{57} +func (m *QueryUnfulfilledWorkerNoncesResponse) Reset() { *m = QueryUnfulfilledWorkerNoncesResponse{} } +func (m *QueryUnfulfilledWorkerNoncesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryUnfulfilledWorkerNoncesResponse) ProtoMessage() {} +func (*QueryUnfulfilledWorkerNoncesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{55} } -func (m *QueryOneInForecasterSelfNetworkRegretResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryUnfulfilledWorkerNoncesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryOneInForecasterSelfNetworkRegretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryUnfulfilledWorkerNoncesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryOneInForecasterSelfNetworkRegretResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryUnfulfilledWorkerNoncesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2736,42 +2700,42 @@ func (m *QueryOneInForecasterSelfNetworkRegretResponse) XXX_Marshal(b []byte, de return b[:n], nil } } -func (m *QueryOneInForecasterSelfNetworkRegretResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryOneInForecasterSelfNetworkRegretResponse.Merge(m, src) +func (m *QueryUnfulfilledWorkerNoncesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryUnfulfilledWorkerNoncesResponse.Merge(m, src) } -func (m *QueryOneInForecasterSelfNetworkRegretResponse) XXX_Size() int { +func (m *QueryUnfulfilledWorkerNoncesResponse) XXX_Size() int { return m.Size() } -func (m *QueryOneInForecasterSelfNetworkRegretResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryOneInForecasterSelfNetworkRegretResponse.DiscardUnknown(m) +func (m *QueryUnfulfilledWorkerNoncesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryUnfulfilledWorkerNoncesResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryOneInForecasterSelfNetworkRegretResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryUnfulfilledWorkerNoncesResponse proto.InternalMessageInfo -func (m *QueryOneInForecasterSelfNetworkRegretResponse) GetRegret() *TimestampedValue { +func (m *QueryUnfulfilledWorkerNoncesResponse) GetNonces() *Nonces { if m != nil { - return m.Regret + return m.Nonces } return nil } -type QueryIsReputerNonceUnfulfilledRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +type QueryInfererNetworkRegretRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + ActorId string `protobuf:"bytes,2,opt,name=actor_id,json=actorId,proto3" json:"actor_id,omitempty"` } -func (m *QueryIsReputerNonceUnfulfilledRequest) Reset() { *m = QueryIsReputerNonceUnfulfilledRequest{} } -func (m *QueryIsReputerNonceUnfulfilledRequest) String() string { return proto.CompactTextString(m) } -func (*QueryIsReputerNonceUnfulfilledRequest) ProtoMessage() {} -func (*QueryIsReputerNonceUnfulfilledRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{58} +func (m *QueryInfererNetworkRegretRequest) Reset() { *m = QueryInfererNetworkRegretRequest{} } +func (m *QueryInfererNetworkRegretRequest) String() string { return proto.CompactTextString(m) } +func (*QueryInfererNetworkRegretRequest) ProtoMessage() {} +func (*QueryInfererNetworkRegretRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{56} } -func (m *QueryIsReputerNonceUnfulfilledRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryInfererNetworkRegretRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryIsReputerNonceUnfulfilledRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryInfererNetworkRegretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryIsReputerNonceUnfulfilledRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryInfererNetworkRegretRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2781,50 +2745,48 @@ func (m *QueryIsReputerNonceUnfulfilledRequest) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *QueryIsReputerNonceUnfulfilledRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIsReputerNonceUnfulfilledRequest.Merge(m, src) +func (m *QueryInfererNetworkRegretRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInfererNetworkRegretRequest.Merge(m, src) } -func (m *QueryIsReputerNonceUnfulfilledRequest) XXX_Size() int { +func (m *QueryInfererNetworkRegretRequest) XXX_Size() int { return m.Size() } -func (m *QueryIsReputerNonceUnfulfilledRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIsReputerNonceUnfulfilledRequest.DiscardUnknown(m) +func (m *QueryInfererNetworkRegretRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInfererNetworkRegretRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryIsReputerNonceUnfulfilledRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryInfererNetworkRegretRequest proto.InternalMessageInfo -func (m *QueryIsReputerNonceUnfulfilledRequest) GetTopicId() uint64 { +func (m *QueryInfererNetworkRegretRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -func (m *QueryIsReputerNonceUnfulfilledRequest) GetBlockHeight() int64 { +func (m *QueryInfererNetworkRegretRequest) GetActorId() string { if m != nil { - return m.BlockHeight + return m.ActorId } - return 0 + return "" } -type QueryIsReputerNonceUnfulfilledResponse struct { - IsReputerNonceUnfulfilled bool `protobuf:"varint,1,opt,name=is_reputer_nonce_unfulfilled,json=isReputerNonceUnfulfilled,proto3" json:"is_reputer_nonce_unfulfilled,omitempty"` +type QueryInfererNetworkRegretResponse struct { + Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` } -func (m *QueryIsReputerNonceUnfulfilledResponse) Reset() { - *m = QueryIsReputerNonceUnfulfilledResponse{} -} -func (m *QueryIsReputerNonceUnfulfilledResponse) String() string { return proto.CompactTextString(m) } -func (*QueryIsReputerNonceUnfulfilledResponse) ProtoMessage() {} -func (*QueryIsReputerNonceUnfulfilledResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{59} +func (m *QueryInfererNetworkRegretResponse) Reset() { *m = QueryInfererNetworkRegretResponse{} } +func (m *QueryInfererNetworkRegretResponse) String() string { return proto.CompactTextString(m) } +func (*QueryInfererNetworkRegretResponse) ProtoMessage() {} +func (*QueryInfererNetworkRegretResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{57} } -func (m *QueryIsReputerNonceUnfulfilledResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryInfererNetworkRegretResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryIsReputerNonceUnfulfilledResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryInfererNetworkRegretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryIsReputerNonceUnfulfilledResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryInfererNetworkRegretResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2834,41 +2796,42 @@ func (m *QueryIsReputerNonceUnfulfilledResponse) XXX_Marshal(b []byte, determini return b[:n], nil } } -func (m *QueryIsReputerNonceUnfulfilledResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIsReputerNonceUnfulfilledResponse.Merge(m, src) +func (m *QueryInfererNetworkRegretResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryInfererNetworkRegretResponse.Merge(m, src) } -func (m *QueryIsReputerNonceUnfulfilledResponse) XXX_Size() int { +func (m *QueryInfererNetworkRegretResponse) XXX_Size() int { return m.Size() } -func (m *QueryIsReputerNonceUnfulfilledResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIsReputerNonceUnfulfilledResponse.DiscardUnknown(m) +func (m *QueryInfererNetworkRegretResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryInfererNetworkRegretResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryIsReputerNonceUnfulfilledResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryInfererNetworkRegretResponse proto.InternalMessageInfo -func (m *QueryIsReputerNonceUnfulfilledResponse) GetIsReputerNonceUnfulfilled() bool { +func (m *QueryInfererNetworkRegretResponse) GetRegret() *TimestampedValue { if m != nil { - return m.IsReputerNonceUnfulfilled + return m.Regret } - return false + return nil } -type QueryNetworkInferencesAtBlockResponse struct { - NetworkInferences *ValueBundle `protobuf:"bytes,1,opt,name=network_inferences,json=networkInferences,proto3" json:"network_inferences,omitempty"` +type QueryForecasterNetworkRegretRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Worker string `protobuf:"bytes,2,opt,name=worker,proto3" json:"worker,omitempty"` } -func (m *QueryNetworkInferencesAtBlockResponse) Reset() { *m = QueryNetworkInferencesAtBlockResponse{} } -func (m *QueryNetworkInferencesAtBlockResponse) String() string { return proto.CompactTextString(m) } -func (*QueryNetworkInferencesAtBlockResponse) ProtoMessage() {} -func (*QueryNetworkInferencesAtBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{60} +func (m *QueryForecasterNetworkRegretRequest) Reset() { *m = QueryForecasterNetworkRegretRequest{} } +func (m *QueryForecasterNetworkRegretRequest) String() string { return proto.CompactTextString(m) } +func (*QueryForecasterNetworkRegretRequest) ProtoMessage() {} +func (*QueryForecasterNetworkRegretRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{58} } -func (m *QueryNetworkInferencesAtBlockResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryForecasterNetworkRegretRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryNetworkInferencesAtBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryForecasterNetworkRegretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryNetworkInferencesAtBlockResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryForecasterNetworkRegretRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2878,48 +2841,48 @@ func (m *QueryNetworkInferencesAtBlockResponse) XXX_Marshal(b []byte, determinis return b[:n], nil } } -func (m *QueryNetworkInferencesAtBlockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryNetworkInferencesAtBlockResponse.Merge(m, src) +func (m *QueryForecasterNetworkRegretRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryForecasterNetworkRegretRequest.Merge(m, src) } -func (m *QueryNetworkInferencesAtBlockResponse) XXX_Size() int { +func (m *QueryForecasterNetworkRegretRequest) XXX_Size() int { return m.Size() } -func (m *QueryNetworkInferencesAtBlockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryNetworkInferencesAtBlockResponse.DiscardUnknown(m) +func (m *QueryForecasterNetworkRegretRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryForecasterNetworkRegretRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryNetworkInferencesAtBlockResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryForecasterNetworkRegretRequest proto.InternalMessageInfo -func (m *QueryNetworkInferencesAtBlockResponse) GetNetworkInferences() *ValueBundle { +func (m *QueryForecasterNetworkRegretRequest) GetTopicId() uint64 { if m != nil { - return m.NetworkInferences + return m.TopicId } - return nil + return 0 } -type QueryLatestNetworkInferencesResponse struct { - NetworkInferences *ValueBundle `protobuf:"bytes,1,opt,name=network_inferences,json=networkInferences,proto3" json:"network_inferences,omitempty"` - InfererWeights []*RegretInformedWeight `protobuf:"bytes,2,rep,name=inferer_weights,json=infererWeights,proto3" json:"inferer_weights,omitempty"` - ForecasterWeights []*RegretInformedWeight `protobuf:"bytes,3,rep,name=forecaster_weights,json=forecasterWeights,proto3" json:"forecaster_weights,omitempty"` - ForecastImpliedInferences []*WorkerAttributedValue `protobuf:"bytes,4,rep,name=forecastImpliedInferences,proto3" json:"forecastImpliedInferences,omitempty"` - InferenceBlockHeight int64 `protobuf:"varint,5,opt,name=inference_block_height,json=inferenceBlockHeight,proto3" json:"inference_block_height,omitempty"` - LossBlockHeight int64 `protobuf:"varint,6,opt,name=loss_block_height,json=lossBlockHeight,proto3" json:"loss_block_height,omitempty"` - ConfidenceIntervalRawPercentiles []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,7,rep,name=confidence_interval_raw_percentiles,json=confidenceIntervalRawPercentiles,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"confidence_interval_raw_percentiles"` - ConfidenceIntervalValues []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,8,rep,name=confidence_interval_values,json=confidenceIntervalValues,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"confidence_interval_values"` +func (m *QueryForecasterNetworkRegretRequest) GetWorker() string { + if m != nil { + return m.Worker + } + return "" } -func (m *QueryLatestNetworkInferencesResponse) Reset() { *m = QueryLatestNetworkInferencesResponse{} } -func (m *QueryLatestNetworkInferencesResponse) String() string { return proto.CompactTextString(m) } -func (*QueryLatestNetworkInferencesResponse) ProtoMessage() {} -func (*QueryLatestNetworkInferencesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{61} +type QueryForecasterNetworkRegretResponse struct { + Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` } -func (m *QueryLatestNetworkInferencesResponse) XXX_Unmarshal(b []byte) error { + +func (m *QueryForecasterNetworkRegretResponse) Reset() { *m = QueryForecasterNetworkRegretResponse{} } +func (m *QueryForecasterNetworkRegretResponse) String() string { return proto.CompactTextString(m) } +func (*QueryForecasterNetworkRegretResponse) ProtoMessage() {} +func (*QueryForecasterNetworkRegretResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{59} +} +func (m *QueryForecasterNetworkRegretResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryLatestNetworkInferencesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryForecasterNetworkRegretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryLatestNetworkInferencesResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryForecasterNetworkRegretResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -2929,79 +2892,45 @@ func (m *QueryLatestNetworkInferencesResponse) XXX_Marshal(b []byte, determinist return b[:n], nil } } -func (m *QueryLatestNetworkInferencesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryLatestNetworkInferencesResponse.Merge(m, src) +func (m *QueryForecasterNetworkRegretResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryForecasterNetworkRegretResponse.Merge(m, src) } -func (m *QueryLatestNetworkInferencesResponse) XXX_Size() int { +func (m *QueryForecasterNetworkRegretResponse) XXX_Size() int { return m.Size() } -func (m *QueryLatestNetworkInferencesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryLatestNetworkInferencesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryLatestNetworkInferencesResponse proto.InternalMessageInfo - -func (m *QueryLatestNetworkInferencesResponse) GetNetworkInferences() *ValueBundle { - if m != nil { - return m.NetworkInferences - } - return nil -} - -func (m *QueryLatestNetworkInferencesResponse) GetInfererWeights() []*RegretInformedWeight { - if m != nil { - return m.InfererWeights - } - return nil +func (m *QueryForecasterNetworkRegretResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryForecasterNetworkRegretResponse.DiscardUnknown(m) } -func (m *QueryLatestNetworkInferencesResponse) GetForecasterWeights() []*RegretInformedWeight { - if m != nil { - return m.ForecasterWeights - } - return nil -} +var xxx_messageInfo_QueryForecasterNetworkRegretResponse proto.InternalMessageInfo -func (m *QueryLatestNetworkInferencesResponse) GetForecastImpliedInferences() []*WorkerAttributedValue { +func (m *QueryForecasterNetworkRegretResponse) GetRegret() *TimestampedValue { if m != nil { - return m.ForecastImpliedInferences + return m.Regret } return nil } -func (m *QueryLatestNetworkInferencesResponse) GetInferenceBlockHeight() int64 { - if m != nil { - return m.InferenceBlockHeight - } - return 0 -} - -func (m *QueryLatestNetworkInferencesResponse) GetLossBlockHeight() int64 { - if m != nil { - return m.LossBlockHeight - } - return 0 -} - -type QueryIsWorkerRegisteredInTopicIdRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +type QueryOneInForecasterNetworkRegretRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Forecaster string `protobuf:"bytes,2,opt,name=forecaster,proto3" json:"forecaster,omitempty"` + Inferer string `protobuf:"bytes,3,opt,name=inferer,proto3" json:"inferer,omitempty"` } -func (m *QueryIsWorkerRegisteredInTopicIdRequest) Reset() { - *m = QueryIsWorkerRegisteredInTopicIdRequest{} +func (m *QueryOneInForecasterNetworkRegretRequest) Reset() { + *m = QueryOneInForecasterNetworkRegretRequest{} } -func (m *QueryIsWorkerRegisteredInTopicIdRequest) String() string { return proto.CompactTextString(m) } -func (*QueryIsWorkerRegisteredInTopicIdRequest) ProtoMessage() {} -func (*QueryIsWorkerRegisteredInTopicIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{62} +func (m *QueryOneInForecasterNetworkRegretRequest) String() string { return proto.CompactTextString(m) } +func (*QueryOneInForecasterNetworkRegretRequest) ProtoMessage() {} +func (*QueryOneInForecasterNetworkRegretRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{60} } -func (m *QueryIsWorkerRegisteredInTopicIdRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryOneInForecasterNetworkRegretRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryIsWorkerRegisteredInTopicIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryOneInForecasterNetworkRegretRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryOneInForecasterNetworkRegretRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3011,50 +2940,59 @@ func (m *QueryIsWorkerRegisteredInTopicIdRequest) XXX_Marshal(b []byte, determin return b[:n], nil } } -func (m *QueryIsWorkerRegisteredInTopicIdRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdRequest.Merge(m, src) +func (m *QueryOneInForecasterNetworkRegretRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOneInForecasterNetworkRegretRequest.Merge(m, src) } -func (m *QueryIsWorkerRegisteredInTopicIdRequest) XXX_Size() int { +func (m *QueryOneInForecasterNetworkRegretRequest) XXX_Size() int { return m.Size() } -func (m *QueryIsWorkerRegisteredInTopicIdRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdRequest.DiscardUnknown(m) +func (m *QueryOneInForecasterNetworkRegretRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOneInForecasterNetworkRegretRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryOneInForecasterNetworkRegretRequest proto.InternalMessageInfo -func (m *QueryIsWorkerRegisteredInTopicIdRequest) GetTopicId() uint64 { +func (m *QueryOneInForecasterNetworkRegretRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -func (m *QueryIsWorkerRegisteredInTopicIdRequest) GetAddress() string { +func (m *QueryOneInForecasterNetworkRegretRequest) GetForecaster() string { if m != nil { - return m.Address + return m.Forecaster } return "" } -type QueryIsWorkerRegisteredInTopicIdResponse struct { - IsRegistered bool `protobuf:"varint,1,opt,name=is_registered,json=isRegistered,proto3" json:"is_registered,omitempty"` +func (m *QueryOneInForecasterNetworkRegretRequest) GetInferer() string { + if m != nil { + return m.Inferer + } + return "" } -func (m *QueryIsWorkerRegisteredInTopicIdResponse) Reset() { - *m = QueryIsWorkerRegisteredInTopicIdResponse{} +type QueryOneInForecasterNetworkRegretResponse struct { + Regret *TimestampedValue `protobuf:"bytes,1,opt,name=regret,proto3" json:"regret,omitempty"` } -func (m *QueryIsWorkerRegisteredInTopicIdResponse) String() string { return proto.CompactTextString(m) } -func (*QueryIsWorkerRegisteredInTopicIdResponse) ProtoMessage() {} -func (*QueryIsWorkerRegisteredInTopicIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{63} + +func (m *QueryOneInForecasterNetworkRegretResponse) Reset() { + *m = QueryOneInForecasterNetworkRegretResponse{} } -func (m *QueryIsWorkerRegisteredInTopicIdResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryOneInForecasterNetworkRegretResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryOneInForecasterNetworkRegretResponse) ProtoMessage() {} +func (*QueryOneInForecasterNetworkRegretResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{61} +} +func (m *QueryOneInForecasterNetworkRegretResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryIsWorkerRegisteredInTopicIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryOneInForecasterNetworkRegretResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryOneInForecasterNetworkRegretResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3064,44 +3002,42 @@ func (m *QueryIsWorkerRegisteredInTopicIdResponse) XXX_Marshal(b []byte, determi return b[:n], nil } } -func (m *QueryIsWorkerRegisteredInTopicIdResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdResponse.Merge(m, src) +func (m *QueryOneInForecasterNetworkRegretResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryOneInForecasterNetworkRegretResponse.Merge(m, src) } -func (m *QueryIsWorkerRegisteredInTopicIdResponse) XXX_Size() int { +func (m *QueryOneInForecasterNetworkRegretResponse) XXX_Size() int { return m.Size() } -func (m *QueryIsWorkerRegisteredInTopicIdResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdResponse.DiscardUnknown(m) +func (m *QueryOneInForecasterNetworkRegretResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryOneInForecasterNetworkRegretResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryOneInForecasterNetworkRegretResponse proto.InternalMessageInfo -func (m *QueryIsWorkerRegisteredInTopicIdResponse) GetIsRegistered() bool { +func (m *QueryOneInForecasterNetworkRegretResponse) GetRegret() *TimestampedValue { if m != nil { - return m.IsRegistered + return m.Regret } - return false + return nil } -type QueryIsReputerRegisteredInTopicIdRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` +type QueryIsReputerNonceUnfulfilledRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + BlockHeight int64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` } -func (m *QueryIsReputerRegisteredInTopicIdRequest) Reset() { - *m = QueryIsReputerRegisteredInTopicIdRequest{} -} -func (m *QueryIsReputerRegisteredInTopicIdRequest) String() string { return proto.CompactTextString(m) } -func (*QueryIsReputerRegisteredInTopicIdRequest) ProtoMessage() {} -func (*QueryIsReputerRegisteredInTopicIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{64} +func (m *QueryIsReputerNonceUnfulfilledRequest) Reset() { *m = QueryIsReputerNonceUnfulfilledRequest{} } +func (m *QueryIsReputerNonceUnfulfilledRequest) String() string { return proto.CompactTextString(m) } +func (*QueryIsReputerNonceUnfulfilledRequest) ProtoMessage() {} +func (*QueryIsReputerNonceUnfulfilledRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{62} } -func (m *QueryIsReputerRegisteredInTopicIdRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryIsReputerNonceUnfulfilledRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryIsReputerRegisteredInTopicIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryIsReputerNonceUnfulfilledRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryIsReputerRegisteredInTopicIdRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryIsReputerNonceUnfulfilledRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3111,52 +3047,50 @@ func (m *QueryIsReputerRegisteredInTopicIdRequest) XXX_Marshal(b []byte, determi return b[:n], nil } } -func (m *QueryIsReputerRegisteredInTopicIdRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIsReputerRegisteredInTopicIdRequest.Merge(m, src) +func (m *QueryIsReputerNonceUnfulfilledRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsReputerNonceUnfulfilledRequest.Merge(m, src) } -func (m *QueryIsReputerRegisteredInTopicIdRequest) XXX_Size() int { +func (m *QueryIsReputerNonceUnfulfilledRequest) XXX_Size() int { return m.Size() } -func (m *QueryIsReputerRegisteredInTopicIdRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIsReputerRegisteredInTopicIdRequest.DiscardUnknown(m) +func (m *QueryIsReputerNonceUnfulfilledRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsReputerNonceUnfulfilledRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryIsReputerRegisteredInTopicIdRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryIsReputerNonceUnfulfilledRequest proto.InternalMessageInfo -func (m *QueryIsReputerRegisteredInTopicIdRequest) GetTopicId() uint64 { +func (m *QueryIsReputerNonceUnfulfilledRequest) GetTopicId() uint64 { if m != nil { return m.TopicId } return 0 } -func (m *QueryIsReputerRegisteredInTopicIdRequest) GetAddress() string { +func (m *QueryIsReputerNonceUnfulfilledRequest) GetBlockHeight() int64 { if m != nil { - return m.Address + return m.BlockHeight } - return "" + return 0 } -type QueryIsReputerRegisteredInTopicIdResponse struct { - IsRegistered bool `protobuf:"varint,1,opt,name=is_registered,json=isRegistered,proto3" json:"is_registered,omitempty"` +type QueryIsReputerNonceUnfulfilledResponse struct { + IsReputerNonceUnfulfilled bool `protobuf:"varint,1,opt,name=is_reputer_nonce_unfulfilled,json=isReputerNonceUnfulfilled,proto3" json:"is_reputer_nonce_unfulfilled,omitempty"` } -func (m *QueryIsReputerRegisteredInTopicIdResponse) Reset() { - *m = QueryIsReputerRegisteredInTopicIdResponse{} -} -func (m *QueryIsReputerRegisteredInTopicIdResponse) String() string { - return proto.CompactTextString(m) +func (m *QueryIsReputerNonceUnfulfilledResponse) Reset() { + *m = QueryIsReputerNonceUnfulfilledResponse{} } -func (*QueryIsReputerRegisteredInTopicIdResponse) ProtoMessage() {} -func (*QueryIsReputerRegisteredInTopicIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{65} +func (m *QueryIsReputerNonceUnfulfilledResponse) String() string { return proto.CompactTextString(m) } +func (*QueryIsReputerNonceUnfulfilledResponse) ProtoMessage() {} +func (*QueryIsReputerNonceUnfulfilledResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{63} } -func (m *QueryIsReputerRegisteredInTopicIdResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryIsReputerNonceUnfulfilledResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryIsReputerRegisteredInTopicIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryIsReputerNonceUnfulfilledResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryIsReputerRegisteredInTopicIdResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryIsReputerNonceUnfulfilledResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3166,41 +3100,41 @@ func (m *QueryIsReputerRegisteredInTopicIdResponse) XXX_Marshal(b []byte, determ return b[:n], nil } } -func (m *QueryIsReputerRegisteredInTopicIdResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIsReputerRegisteredInTopicIdResponse.Merge(m, src) +func (m *QueryIsReputerNonceUnfulfilledResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsReputerNonceUnfulfilledResponse.Merge(m, src) } -func (m *QueryIsReputerRegisteredInTopicIdResponse) XXX_Size() int { +func (m *QueryIsReputerNonceUnfulfilledResponse) XXX_Size() int { return m.Size() } -func (m *QueryIsReputerRegisteredInTopicIdResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIsReputerRegisteredInTopicIdResponse.DiscardUnknown(m) +func (m *QueryIsReputerNonceUnfulfilledResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsReputerNonceUnfulfilledResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryIsReputerRegisteredInTopicIdResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryIsReputerNonceUnfulfilledResponse proto.InternalMessageInfo -func (m *QueryIsReputerRegisteredInTopicIdResponse) GetIsRegistered() bool { +func (m *QueryIsReputerNonceUnfulfilledResponse) GetIsReputerNonceUnfulfilled() bool { if m != nil { - return m.IsRegistered + return m.IsReputerNonceUnfulfilled } return false } -type QueryIsWhitelistAdminRequest struct { - Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` +type QueryNetworkInferencesAtBlockResponse struct { + NetworkInferences *ValueBundle `protobuf:"bytes,1,opt,name=network_inferences,json=networkInferences,proto3" json:"network_inferences,omitempty"` } -func (m *QueryIsWhitelistAdminRequest) Reset() { *m = QueryIsWhitelistAdminRequest{} } -func (m *QueryIsWhitelistAdminRequest) String() string { return proto.CompactTextString(m) } -func (*QueryIsWhitelistAdminRequest) ProtoMessage() {} -func (*QueryIsWhitelistAdminRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{66} +func (m *QueryNetworkInferencesAtBlockResponse) Reset() { *m = QueryNetworkInferencesAtBlockResponse{} } +func (m *QueryNetworkInferencesAtBlockResponse) String() string { return proto.CompactTextString(m) } +func (*QueryNetworkInferencesAtBlockResponse) ProtoMessage() {} +func (*QueryNetworkInferencesAtBlockResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{64} } -func (m *QueryIsWhitelistAdminRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryNetworkInferencesAtBlockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryIsWhitelistAdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryNetworkInferencesAtBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryIsWhitelistAdminRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryNetworkInferencesAtBlockResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3210,41 +3144,48 @@ func (m *QueryIsWhitelistAdminRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryIsWhitelistAdminRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIsWhitelistAdminRequest.Merge(m, src) +func (m *QueryNetworkInferencesAtBlockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryNetworkInferencesAtBlockResponse.Merge(m, src) } -func (m *QueryIsWhitelistAdminRequest) XXX_Size() int { +func (m *QueryNetworkInferencesAtBlockResponse) XXX_Size() int { return m.Size() } -func (m *QueryIsWhitelistAdminRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIsWhitelistAdminRequest.DiscardUnknown(m) +func (m *QueryNetworkInferencesAtBlockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryNetworkInferencesAtBlockResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryIsWhitelistAdminRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryNetworkInferencesAtBlockResponse proto.InternalMessageInfo -func (m *QueryIsWhitelistAdminRequest) GetAddress() string { +func (m *QueryNetworkInferencesAtBlockResponse) GetNetworkInferences() *ValueBundle { if m != nil { - return m.Address + return m.NetworkInferences } - return "" + return nil } -type QueryIsWhitelistAdminResponse struct { - IsAdmin bool `protobuf:"varint,1,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"` +type QueryLatestNetworkInferencesResponse struct { + NetworkInferences *ValueBundle `protobuf:"bytes,1,opt,name=network_inferences,json=networkInferences,proto3" json:"network_inferences,omitempty"` + InfererWeights []*RegretInformedWeight `protobuf:"bytes,2,rep,name=inferer_weights,json=infererWeights,proto3" json:"inferer_weights,omitempty"` + ForecasterWeights []*RegretInformedWeight `protobuf:"bytes,3,rep,name=forecaster_weights,json=forecasterWeights,proto3" json:"forecaster_weights,omitempty"` + ForecastImpliedInferences []*WorkerAttributedValue `protobuf:"bytes,4,rep,name=forecastImpliedInferences,proto3" json:"forecastImpliedInferences,omitempty"` + InferenceBlockHeight int64 `protobuf:"varint,5,opt,name=inference_block_height,json=inferenceBlockHeight,proto3" json:"inference_block_height,omitempty"` + LossBlockHeight int64 `protobuf:"varint,6,opt,name=loss_block_height,json=lossBlockHeight,proto3" json:"loss_block_height,omitempty"` + ConfidenceIntervalRawPercentiles []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,7,rep,name=confidence_interval_raw_percentiles,json=confidenceIntervalRawPercentiles,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"confidence_interval_raw_percentiles"` + ConfidenceIntervalValues []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,8,rep,name=confidence_interval_values,json=confidenceIntervalValues,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"confidence_interval_values"` } -func (m *QueryIsWhitelistAdminResponse) Reset() { *m = QueryIsWhitelistAdminResponse{} } -func (m *QueryIsWhitelistAdminResponse) String() string { return proto.CompactTextString(m) } -func (*QueryIsWhitelistAdminResponse) ProtoMessage() {} -func (*QueryIsWhitelistAdminResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{67} +func (m *QueryLatestNetworkInferencesResponse) Reset() { *m = QueryLatestNetworkInferencesResponse{} } +func (m *QueryLatestNetworkInferencesResponse) String() string { return proto.CompactTextString(m) } +func (*QueryLatestNetworkInferencesResponse) ProtoMessage() {} +func (*QueryLatestNetworkInferencesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{65} } -func (m *QueryIsWhitelistAdminResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryLatestNetworkInferencesResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryIsWhitelistAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryLatestNetworkInferencesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryIsWhitelistAdminResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryLatestNetworkInferencesResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3254,41 +3195,79 @@ func (m *QueryIsWhitelistAdminResponse) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *QueryIsWhitelistAdminResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryIsWhitelistAdminResponse.Merge(m, src) +func (m *QueryLatestNetworkInferencesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryLatestNetworkInferencesResponse.Merge(m, src) } -func (m *QueryIsWhitelistAdminResponse) XXX_Size() int { +func (m *QueryLatestNetworkInferencesResponse) XXX_Size() int { return m.Size() } -func (m *QueryIsWhitelistAdminResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryIsWhitelistAdminResponse.DiscardUnknown(m) +func (m *QueryLatestNetworkInferencesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryLatestNetworkInferencesResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryIsWhitelistAdminResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryLatestNetworkInferencesResponse proto.InternalMessageInfo -func (m *QueryIsWhitelistAdminResponse) GetIsAdmin() bool { +func (m *QueryLatestNetworkInferencesResponse) GetNetworkInferences() *ValueBundle { if m != nil { - return m.IsAdmin + return m.NetworkInferences } - return false + return nil } -type QueryStakeRemovalsForBlockRequest struct { - BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +func (m *QueryLatestNetworkInferencesResponse) GetInfererWeights() []*RegretInformedWeight { + if m != nil { + return m.InfererWeights + } + return nil +} + +func (m *QueryLatestNetworkInferencesResponse) GetForecasterWeights() []*RegretInformedWeight { + if m != nil { + return m.ForecasterWeights + } + return nil +} + +func (m *QueryLatestNetworkInferencesResponse) GetForecastImpliedInferences() []*WorkerAttributedValue { + if m != nil { + return m.ForecastImpliedInferences + } + return nil +} + +func (m *QueryLatestNetworkInferencesResponse) GetInferenceBlockHeight() int64 { + if m != nil { + return m.InferenceBlockHeight + } + return 0 +} + +func (m *QueryLatestNetworkInferencesResponse) GetLossBlockHeight() int64 { + if m != nil { + return m.LossBlockHeight + } + return 0 +} + +type QueryIsWorkerRegisteredInTopicIdRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } -func (m *QueryStakeRemovalsForBlockRequest) Reset() { *m = QueryStakeRemovalsForBlockRequest{} } -func (m *QueryStakeRemovalsForBlockRequest) String() string { return proto.CompactTextString(m) } -func (*QueryStakeRemovalsForBlockRequest) ProtoMessage() {} -func (*QueryStakeRemovalsForBlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{68} +func (m *QueryIsWorkerRegisteredInTopicIdRequest) Reset() { + *m = QueryIsWorkerRegisteredInTopicIdRequest{} +} +func (m *QueryIsWorkerRegisteredInTopicIdRequest) String() string { return proto.CompactTextString(m) } +func (*QueryIsWorkerRegisteredInTopicIdRequest) ProtoMessage() {} +func (*QueryIsWorkerRegisteredInTopicIdRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{66} } -func (m *QueryStakeRemovalsForBlockRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryIsWorkerRegisteredInTopicIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStakeRemovalsForBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryIsWorkerRegisteredInTopicIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStakeRemovalsForBlockRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3298,41 +3277,50 @@ func (m *QueryStakeRemovalsForBlockRequest) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryStakeRemovalsForBlockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStakeRemovalsForBlockRequest.Merge(m, src) +func (m *QueryIsWorkerRegisteredInTopicIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdRequest.Merge(m, src) } -func (m *QueryStakeRemovalsForBlockRequest) XXX_Size() int { +func (m *QueryIsWorkerRegisteredInTopicIdRequest) XXX_Size() int { return m.Size() } -func (m *QueryStakeRemovalsForBlockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStakeRemovalsForBlockRequest.DiscardUnknown(m) +func (m *QueryIsWorkerRegisteredInTopicIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryStakeRemovalsForBlockRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdRequest proto.InternalMessageInfo -func (m *QueryStakeRemovalsForBlockRequest) GetBlockHeight() int64 { +func (m *QueryIsWorkerRegisteredInTopicIdRequest) GetTopicId() uint64 { if m != nil { - return m.BlockHeight + return m.TopicId } return 0 } -type QueryStakeRemovalsForBlockResponse struct { - Removals []*StakeRemovalInfo `protobuf:"bytes,1,rep,name=removals,proto3" json:"removals,omitempty"` +func (m *QueryIsWorkerRegisteredInTopicIdRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +type QueryIsWorkerRegisteredInTopicIdResponse struct { + IsRegistered bool `protobuf:"varint,1,opt,name=is_registered,json=isRegistered,proto3" json:"is_registered,omitempty"` } -func (m *QueryStakeRemovalsForBlockResponse) Reset() { *m = QueryStakeRemovalsForBlockResponse{} } -func (m *QueryStakeRemovalsForBlockResponse) String() string { return proto.CompactTextString(m) } -func (*QueryStakeRemovalsForBlockResponse) ProtoMessage() {} -func (*QueryStakeRemovalsForBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{69} +func (m *QueryIsWorkerRegisteredInTopicIdResponse) Reset() { + *m = QueryIsWorkerRegisteredInTopicIdResponse{} +} +func (m *QueryIsWorkerRegisteredInTopicIdResponse) String() string { return proto.CompactTextString(m) } +func (*QueryIsWorkerRegisteredInTopicIdResponse) ProtoMessage() {} +func (*QueryIsWorkerRegisteredInTopicIdResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{67} } -func (m *QueryStakeRemovalsForBlockResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryIsWorkerRegisteredInTopicIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStakeRemovalsForBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryIsWorkerRegisteredInTopicIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStakeRemovalsForBlockResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3342,45 +3330,44 @@ func (m *QueryStakeRemovalsForBlockResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *QueryStakeRemovalsForBlockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStakeRemovalsForBlockResponse.Merge(m, src) +func (m *QueryIsWorkerRegisteredInTopicIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdResponse.Merge(m, src) } -func (m *QueryStakeRemovalsForBlockResponse) XXX_Size() int { +func (m *QueryIsWorkerRegisteredInTopicIdResponse) XXX_Size() int { return m.Size() } -func (m *QueryStakeRemovalsForBlockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStakeRemovalsForBlockResponse.DiscardUnknown(m) +func (m *QueryIsWorkerRegisteredInTopicIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryStakeRemovalsForBlockResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryIsWorkerRegisteredInTopicIdResponse proto.InternalMessageInfo -func (m *QueryStakeRemovalsForBlockResponse) GetRemovals() []*StakeRemovalInfo { +func (m *QueryIsWorkerRegisteredInTopicIdResponse) GetIsRegistered() bool { if m != nil { - return m.Removals + return m.IsRegistered } - return nil + return false } -type QueryDelegateStakeRemovalsForBlockRequest struct { - BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +type QueryIsReputerRegisteredInTopicIdRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` } -func (m *QueryDelegateStakeRemovalsForBlockRequest) Reset() { - *m = QueryDelegateStakeRemovalsForBlockRequest{} -} -func (m *QueryDelegateStakeRemovalsForBlockRequest) String() string { - return proto.CompactTextString(m) +func (m *QueryIsReputerRegisteredInTopicIdRequest) Reset() { + *m = QueryIsReputerRegisteredInTopicIdRequest{} } -func (*QueryDelegateStakeRemovalsForBlockRequest) ProtoMessage() {} -func (*QueryDelegateStakeRemovalsForBlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{70} +func (m *QueryIsReputerRegisteredInTopicIdRequest) String() string { return proto.CompactTextString(m) } +func (*QueryIsReputerRegisteredInTopicIdRequest) ProtoMessage() {} +func (*QueryIsReputerRegisteredInTopicIdRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{68} } -func (m *QueryDelegateStakeRemovalsForBlockRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryIsReputerRegisteredInTopicIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryDelegateStakeRemovalsForBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryIsReputerRegisteredInTopicIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryDelegateStakeRemovalsForBlockRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryIsReputerRegisteredInTopicIdRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3390,45 +3377,52 @@ func (m *QueryDelegateStakeRemovalsForBlockRequest) XXX_Marshal(b []byte, determ return b[:n], nil } } -func (m *QueryDelegateStakeRemovalsForBlockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDelegateStakeRemovalsForBlockRequest.Merge(m, src) +func (m *QueryIsReputerRegisteredInTopicIdRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsReputerRegisteredInTopicIdRequest.Merge(m, src) } -func (m *QueryDelegateStakeRemovalsForBlockRequest) XXX_Size() int { +func (m *QueryIsReputerRegisteredInTopicIdRequest) XXX_Size() int { return m.Size() } -func (m *QueryDelegateStakeRemovalsForBlockRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDelegateStakeRemovalsForBlockRequest.DiscardUnknown(m) +func (m *QueryIsReputerRegisteredInTopicIdRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsReputerRegisteredInTopicIdRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryDelegateStakeRemovalsForBlockRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryIsReputerRegisteredInTopicIdRequest proto.InternalMessageInfo -func (m *QueryDelegateStakeRemovalsForBlockRequest) GetBlockHeight() int64 { +func (m *QueryIsReputerRegisteredInTopicIdRequest) GetTopicId() uint64 { if m != nil { - return m.BlockHeight + return m.TopicId } return 0 } -type QueryDelegateStakeRemovalsForBlockResponse struct { - Removals []*DelegateStakeRemovalInfo `protobuf:"bytes,1,rep,name=removals,proto3" json:"removals,omitempty"` +func (m *QueryIsReputerRegisteredInTopicIdRequest) GetAddress() string { + if m != nil { + return m.Address + } + return "" +} + +type QueryIsReputerRegisteredInTopicIdResponse struct { + IsRegistered bool `protobuf:"varint,1,opt,name=is_registered,json=isRegistered,proto3" json:"is_registered,omitempty"` } -func (m *QueryDelegateStakeRemovalsForBlockResponse) Reset() { - *m = QueryDelegateStakeRemovalsForBlockResponse{} +func (m *QueryIsReputerRegisteredInTopicIdResponse) Reset() { + *m = QueryIsReputerRegisteredInTopicIdResponse{} } -func (m *QueryDelegateStakeRemovalsForBlockResponse) String() string { +func (m *QueryIsReputerRegisteredInTopicIdResponse) String() string { return proto.CompactTextString(m) } -func (*QueryDelegateStakeRemovalsForBlockResponse) ProtoMessage() {} -func (*QueryDelegateStakeRemovalsForBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{71} +func (*QueryIsReputerRegisteredInTopicIdResponse) ProtoMessage() {} +func (*QueryIsReputerRegisteredInTopicIdResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{69} } -func (m *QueryDelegateStakeRemovalsForBlockResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryIsReputerRegisteredInTopicIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryDelegateStakeRemovalsForBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryIsReputerRegisteredInTopicIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryDelegateStakeRemovalsForBlockResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryIsReputerRegisteredInTopicIdResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3438,42 +3432,41 @@ func (m *QueryDelegateStakeRemovalsForBlockResponse) XXX_Marshal(b []byte, deter return b[:n], nil } } -func (m *QueryDelegateStakeRemovalsForBlockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryDelegateStakeRemovalsForBlockResponse.Merge(m, src) +func (m *QueryIsReputerRegisteredInTopicIdResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsReputerRegisteredInTopicIdResponse.Merge(m, src) } -func (m *QueryDelegateStakeRemovalsForBlockResponse) XXX_Size() int { +func (m *QueryIsReputerRegisteredInTopicIdResponse) XXX_Size() int { return m.Size() } -func (m *QueryDelegateStakeRemovalsForBlockResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryDelegateStakeRemovalsForBlockResponse.DiscardUnknown(m) +func (m *QueryIsReputerRegisteredInTopicIdResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsReputerRegisteredInTopicIdResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryDelegateStakeRemovalsForBlockResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryIsReputerRegisteredInTopicIdResponse proto.InternalMessageInfo -func (m *QueryDelegateStakeRemovalsForBlockResponse) GetRemovals() []*DelegateStakeRemovalInfo { +func (m *QueryIsReputerRegisteredInTopicIdResponse) GetIsRegistered() bool { if m != nil { - return m.Removals + return m.IsRegistered } - return nil + return false } -type QueryStakeRemovalInfoRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - Reputer string `protobuf:"bytes,2,opt,name=reputer,proto3" json:"reputer,omitempty"` +type QueryIsWhitelistAdminRequest struct { + Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` } -func (m *QueryStakeRemovalInfoRequest) Reset() { *m = QueryStakeRemovalInfoRequest{} } -func (m *QueryStakeRemovalInfoRequest) String() string { return proto.CompactTextString(m) } -func (*QueryStakeRemovalInfoRequest) ProtoMessage() {} -func (*QueryStakeRemovalInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{72} +func (m *QueryIsWhitelistAdminRequest) Reset() { *m = QueryIsWhitelistAdminRequest{} } +func (m *QueryIsWhitelistAdminRequest) String() string { return proto.CompactTextString(m) } +func (*QueryIsWhitelistAdminRequest) ProtoMessage() {} +func (*QueryIsWhitelistAdminRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{70} } -func (m *QueryStakeRemovalInfoRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryIsWhitelistAdminRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStakeRemovalInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryIsWhitelistAdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStakeRemovalInfoRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryIsWhitelistAdminRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3483,48 +3476,41 @@ func (m *QueryStakeRemovalInfoRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryStakeRemovalInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStakeRemovalInfoRequest.Merge(m, src) +func (m *QueryIsWhitelistAdminRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsWhitelistAdminRequest.Merge(m, src) } -func (m *QueryStakeRemovalInfoRequest) XXX_Size() int { +func (m *QueryIsWhitelistAdminRequest) XXX_Size() int { return m.Size() } -func (m *QueryStakeRemovalInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStakeRemovalInfoRequest.DiscardUnknown(m) +func (m *QueryIsWhitelistAdminRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsWhitelistAdminRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryStakeRemovalInfoRequest proto.InternalMessageInfo - -func (m *QueryStakeRemovalInfoRequest) GetTopicId() uint64 { - if m != nil { - return m.TopicId - } - return 0 -} +var xxx_messageInfo_QueryIsWhitelistAdminRequest proto.InternalMessageInfo -func (m *QueryStakeRemovalInfoRequest) GetReputer() string { +func (m *QueryIsWhitelistAdminRequest) GetAddress() string { if m != nil { - return m.Reputer + return m.Address } return "" } -type QueryStakeRemovalInfoResponse struct { - Removal *StakeRemovalInfo `protobuf:"bytes,1,opt,name=removal,proto3" json:"removal,omitempty"` +type QueryIsWhitelistAdminResponse struct { + IsAdmin bool `protobuf:"varint,1,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"` } -func (m *QueryStakeRemovalInfoResponse) Reset() { *m = QueryStakeRemovalInfoResponse{} } -func (m *QueryStakeRemovalInfoResponse) String() string { return proto.CompactTextString(m) } -func (*QueryStakeRemovalInfoResponse) ProtoMessage() {} -func (*QueryStakeRemovalInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{73} +func (m *QueryIsWhitelistAdminResponse) Reset() { *m = QueryIsWhitelistAdminResponse{} } +func (m *QueryIsWhitelistAdminResponse) String() string { return proto.CompactTextString(m) } +func (*QueryIsWhitelistAdminResponse) ProtoMessage() {} +func (*QueryIsWhitelistAdminResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{71} } -func (m *QueryStakeRemovalInfoResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryIsWhitelistAdminResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryStakeRemovalInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryIsWhitelistAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryStakeRemovalInfoResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryIsWhitelistAdminResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -3534,21 +3520,303 @@ func (m *QueryStakeRemovalInfoResponse) XXX_Marshal(b []byte, deterministic bool return b[:n], nil } } -func (m *QueryStakeRemovalInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStakeRemovalInfoResponse.Merge(m, src) +func (m *QueryIsWhitelistAdminResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryIsWhitelistAdminResponse.Merge(m, src) } -func (m *QueryStakeRemovalInfoResponse) XXX_Size() int { +func (m *QueryIsWhitelistAdminResponse) XXX_Size() int { return m.Size() } -func (m *QueryStakeRemovalInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryStakeRemovalInfoResponse.DiscardUnknown(m) +func (m *QueryIsWhitelistAdminResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryIsWhitelistAdminResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryStakeRemovalInfoResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryIsWhitelistAdminResponse proto.InternalMessageInfo -func (m *QueryStakeRemovalInfoResponse) GetRemoval() *StakeRemovalInfo { +func (m *QueryIsWhitelistAdminResponse) GetIsAdmin() bool { if m != nil { - return m.Removal + return m.IsAdmin + } + return false +} + +type QueryStakeRemovalsUpUntilBlockRequest struct { + BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +} + +func (m *QueryStakeRemovalsUpUntilBlockRequest) Reset() { *m = QueryStakeRemovalsUpUntilBlockRequest{} } +func (m *QueryStakeRemovalsUpUntilBlockRequest) String() string { return proto.CompactTextString(m) } +func (*QueryStakeRemovalsUpUntilBlockRequest) ProtoMessage() {} +func (*QueryStakeRemovalsUpUntilBlockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{72} +} +func (m *QueryStakeRemovalsUpUntilBlockRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryStakeRemovalsUpUntilBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryStakeRemovalsUpUntilBlockRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryStakeRemovalsUpUntilBlockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStakeRemovalsUpUntilBlockRequest.Merge(m, src) +} +func (m *QueryStakeRemovalsUpUntilBlockRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryStakeRemovalsUpUntilBlockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStakeRemovalsUpUntilBlockRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryStakeRemovalsUpUntilBlockRequest proto.InternalMessageInfo + +func (m *QueryStakeRemovalsUpUntilBlockRequest) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +type QueryStakeRemovalsUpUntilBlockResponse struct { + Removals []*StakeRemovalInfo `protobuf:"bytes,1,rep,name=removals,proto3" json:"removals,omitempty"` +} + +func (m *QueryStakeRemovalsUpUntilBlockResponse) Reset() { + *m = QueryStakeRemovalsUpUntilBlockResponse{} +} +func (m *QueryStakeRemovalsUpUntilBlockResponse) String() string { return proto.CompactTextString(m) } +func (*QueryStakeRemovalsUpUntilBlockResponse) ProtoMessage() {} +func (*QueryStakeRemovalsUpUntilBlockResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{73} +} +func (m *QueryStakeRemovalsUpUntilBlockResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryStakeRemovalsUpUntilBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryStakeRemovalsUpUntilBlockResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryStakeRemovalsUpUntilBlockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStakeRemovalsUpUntilBlockResponse.Merge(m, src) +} +func (m *QueryStakeRemovalsUpUntilBlockResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryStakeRemovalsUpUntilBlockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStakeRemovalsUpUntilBlockResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryStakeRemovalsUpUntilBlockResponse proto.InternalMessageInfo + +func (m *QueryStakeRemovalsUpUntilBlockResponse) GetRemovals() []*StakeRemovalInfo { + if m != nil { + return m.Removals + } + return nil +} + +type QueryDelegateStakeRemovalsUpUntilBlockRequest struct { + BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` +} + +func (m *QueryDelegateStakeRemovalsUpUntilBlockRequest) Reset() { + *m = QueryDelegateStakeRemovalsUpUntilBlockRequest{} +} +func (m *QueryDelegateStakeRemovalsUpUntilBlockRequest) String() string { + return proto.CompactTextString(m) +} +func (*QueryDelegateStakeRemovalsUpUntilBlockRequest) ProtoMessage() {} +func (*QueryDelegateStakeRemovalsUpUntilBlockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{74} +} +func (m *QueryDelegateStakeRemovalsUpUntilBlockRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDelegateStakeRemovalsUpUntilBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDelegateStakeRemovalsUpUntilBlockRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryDelegateStakeRemovalsUpUntilBlockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDelegateStakeRemovalsUpUntilBlockRequest.Merge(m, src) +} +func (m *QueryDelegateStakeRemovalsUpUntilBlockRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryDelegateStakeRemovalsUpUntilBlockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDelegateStakeRemovalsUpUntilBlockRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDelegateStakeRemovalsUpUntilBlockRequest proto.InternalMessageInfo + +func (m *QueryDelegateStakeRemovalsUpUntilBlockRequest) GetBlockHeight() int64 { + if m != nil { + return m.BlockHeight + } + return 0 +} + +type QueryDelegateStakeRemovalsUpUntilBlockResponse struct { + Removals []*DelegateStakeRemovalInfo `protobuf:"bytes,1,rep,name=removals,proto3" json:"removals,omitempty"` +} + +func (m *QueryDelegateStakeRemovalsUpUntilBlockResponse) Reset() { + *m = QueryDelegateStakeRemovalsUpUntilBlockResponse{} +} +func (m *QueryDelegateStakeRemovalsUpUntilBlockResponse) String() string { + return proto.CompactTextString(m) +} +func (*QueryDelegateStakeRemovalsUpUntilBlockResponse) ProtoMessage() {} +func (*QueryDelegateStakeRemovalsUpUntilBlockResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{75} +} +func (m *QueryDelegateStakeRemovalsUpUntilBlockResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryDelegateStakeRemovalsUpUntilBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryDelegateStakeRemovalsUpUntilBlockResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryDelegateStakeRemovalsUpUntilBlockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryDelegateStakeRemovalsUpUntilBlockResponse.Merge(m, src) +} +func (m *QueryDelegateStakeRemovalsUpUntilBlockResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryDelegateStakeRemovalsUpUntilBlockResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryDelegateStakeRemovalsUpUntilBlockResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryDelegateStakeRemovalsUpUntilBlockResponse proto.InternalMessageInfo + +func (m *QueryDelegateStakeRemovalsUpUntilBlockResponse) GetRemovals() []*DelegateStakeRemovalInfo { + if m != nil { + return m.Removals + } + return nil +} + +type QueryStakeRemovalInfoRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Reputer string `protobuf:"bytes,2,opt,name=reputer,proto3" json:"reputer,omitempty"` +} + +func (m *QueryStakeRemovalInfoRequest) Reset() { *m = QueryStakeRemovalInfoRequest{} } +func (m *QueryStakeRemovalInfoRequest) String() string { return proto.CompactTextString(m) } +func (*QueryStakeRemovalInfoRequest) ProtoMessage() {} +func (*QueryStakeRemovalInfoRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{76} +} +func (m *QueryStakeRemovalInfoRequest) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryStakeRemovalInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryStakeRemovalInfoRequest.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryStakeRemovalInfoRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStakeRemovalInfoRequest.Merge(m, src) +} +func (m *QueryStakeRemovalInfoRequest) XXX_Size() int { + return m.Size() +} +func (m *QueryStakeRemovalInfoRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStakeRemovalInfoRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryStakeRemovalInfoRequest proto.InternalMessageInfo + +func (m *QueryStakeRemovalInfoRequest) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + +func (m *QueryStakeRemovalInfoRequest) GetReputer() string { + if m != nil { + return m.Reputer + } + return "" +} + +type QueryStakeRemovalInfoResponse struct { + Removal *StakeRemovalInfo `protobuf:"bytes,1,opt,name=removal,proto3" json:"removal,omitempty"` +} + +func (m *QueryStakeRemovalInfoResponse) Reset() { *m = QueryStakeRemovalInfoResponse{} } +func (m *QueryStakeRemovalInfoResponse) String() string { return proto.CompactTextString(m) } +func (*QueryStakeRemovalInfoResponse) ProtoMessage() {} +func (*QueryStakeRemovalInfoResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{77} +} +func (m *QueryStakeRemovalInfoResponse) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *QueryStakeRemovalInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_QueryStakeRemovalInfoResponse.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *QueryStakeRemovalInfoResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStakeRemovalInfoResponse.Merge(m, src) +} +func (m *QueryStakeRemovalInfoResponse) XXX_Size() int { + return m.Size() +} +func (m *QueryStakeRemovalInfoResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryStakeRemovalInfoResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_QueryStakeRemovalInfoResponse proto.InternalMessageInfo + +func (m *QueryStakeRemovalInfoResponse) GetRemoval() *StakeRemovalInfo { + if m != nil { + return m.Removal } return nil } @@ -3563,7 +3831,7 @@ func (m *QueryDelegateStakeRemovalInfoRequest) Reset() { *m = QueryDeleg func (m *QueryDelegateStakeRemovalInfoRequest) String() string { return proto.CompactTextString(m) } func (*QueryDelegateStakeRemovalInfoRequest) ProtoMessage() {} func (*QueryDelegateStakeRemovalInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{74} + return fileDescriptor_2aefa309da3515fd, []int{78} } func (m *QueryDelegateStakeRemovalInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3621,7 +3889,7 @@ func (m *QueryDelegateStakeRemovalInfoResponse) Reset() { *m = QueryDele func (m *QueryDelegateStakeRemovalInfoResponse) String() string { return proto.CompactTextString(m) } func (*QueryDelegateStakeRemovalInfoResponse) ProtoMessage() {} func (*QueryDelegateStakeRemovalInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{75} + return fileDescriptor_2aefa309da3515fd, []int{79} } func (m *QueryDelegateStakeRemovalInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3665,7 +3933,7 @@ func (m *QueryTopicLastCommitRequest) Reset() { *m = QueryTopicLastCommi func (m *QueryTopicLastCommitRequest) String() string { return proto.CompactTextString(m) } func (*QueryTopicLastCommitRequest) ProtoMessage() {} func (*QueryTopicLastCommitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{76} + return fileDescriptor_2aefa309da3515fd, []int{80} } func (m *QueryTopicLastCommitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3709,7 +3977,7 @@ func (m *QueryTopicLastCommitResponse) Reset() { *m = QueryTopicLastComm func (m *QueryTopicLastCommitResponse) String() string { return proto.CompactTextString(m) } func (*QueryTopicLastCommitResponse) ProtoMessage() {} func (*QueryTopicLastCommitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{77} + return fileDescriptor_2aefa309da3515fd, []int{81} } func (m *QueryTopicLastCommitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3753,7 +4021,7 @@ func (m *QueryTopicRewardNonceRequest) Reset() { *m = QueryTopicRewardNo func (m *QueryTopicRewardNonceRequest) String() string { return proto.CompactTextString(m) } func (*QueryTopicRewardNonceRequest) ProtoMessage() {} func (*QueryTopicRewardNonceRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{78} + return fileDescriptor_2aefa309da3515fd, []int{82} } func (m *QueryTopicRewardNonceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3797,7 +4065,7 @@ func (m *QueryTopicRewardNonceResponse) Reset() { *m = QueryTopicRewardN func (m *QueryTopicRewardNonceResponse) String() string { return proto.CompactTextString(m) } func (*QueryTopicRewardNonceResponse) ProtoMessage() {} func (*QueryTopicRewardNonceResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{79} + return fileDescriptor_2aefa309da3515fd, []int{83} } func (m *QueryTopicRewardNonceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3842,7 +4110,7 @@ func (m *QueryReputerLossBundlesAtBlockRequest) Reset() { *m = QueryRepu func (m *QueryReputerLossBundlesAtBlockRequest) String() string { return proto.CompactTextString(m) } func (*QueryReputerLossBundlesAtBlockRequest) ProtoMessage() {} func (*QueryReputerLossBundlesAtBlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{80} + return fileDescriptor_2aefa309da3515fd, []int{84} } func (m *QueryReputerLossBundlesAtBlockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3895,7 +4163,7 @@ func (m *QueryReputerLossBundlesAtBlockResponse) Reset() { func (m *QueryReputerLossBundlesAtBlockResponse) String() string { return proto.CompactTextString(m) } func (*QueryReputerLossBundlesAtBlockResponse) ProtoMessage() {} func (*QueryReputerLossBundlesAtBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{81} + return fileDescriptor_2aefa309da3515fd, []int{85} } func (m *QueryReputerLossBundlesAtBlockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3940,7 +4208,7 @@ func (m *QueryStakeReputerAuthorityRequest) Reset() { *m = QueryStakeRep func (m *QueryStakeReputerAuthorityRequest) String() string { return proto.CompactTextString(m) } func (*QueryStakeReputerAuthorityRequest) ProtoMessage() {} func (*QueryStakeReputerAuthorityRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{82} + return fileDescriptor_2aefa309da3515fd, []int{86} } func (m *QueryStakeReputerAuthorityRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3991,7 +4259,7 @@ func (m *QueryStakeReputerAuthorityResponse) Reset() { *m = QueryStakeRe func (m *QueryStakeReputerAuthorityResponse) String() string { return proto.CompactTextString(m) } func (*QueryStakeReputerAuthorityResponse) ProtoMessage() {} func (*QueryStakeReputerAuthorityResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{83} + return fileDescriptor_2aefa309da3515fd, []int{87} } func (m *QueryStakeReputerAuthorityResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4030,7 +4298,7 @@ func (m *QueryDelegateStakePlacementRequest) Reset() { *m = QueryDelegat func (m *QueryDelegateStakePlacementRequest) String() string { return proto.CompactTextString(m) } func (*QueryDelegateStakePlacementRequest) ProtoMessage() {} func (*QueryDelegateStakePlacementRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{84} + return fileDescriptor_2aefa309da3515fd, []int{88} } func (m *QueryDelegateStakePlacementRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4088,7 +4356,7 @@ func (m *QueryDelegateStakePlacementResponse) Reset() { *m = QueryDelega func (m *QueryDelegateStakePlacementResponse) String() string { return proto.CompactTextString(m) } func (*QueryDelegateStakePlacementResponse) ProtoMessage() {} func (*QueryDelegateStakePlacementResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{85} + return fileDescriptor_2aefa309da3515fd, []int{89} } func (m *QueryDelegateStakePlacementResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4133,7 +4401,7 @@ func (m *QueryDelegateStakeUponReputerRequest) Reset() { *m = QueryDeleg func (m *QueryDelegateStakeUponReputerRequest) String() string { return proto.CompactTextString(m) } func (*QueryDelegateStakeUponReputerRequest) ProtoMessage() {} func (*QueryDelegateStakeUponReputerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{86} + return fileDescriptor_2aefa309da3515fd, []int{90} } func (m *QueryDelegateStakeUponReputerRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4184,7 +4452,7 @@ func (m *QueryDelegateStakeUponReputerResponse) Reset() { *m = QueryDele func (m *QueryDelegateStakeUponReputerResponse) String() string { return proto.CompactTextString(m) } func (*QueryDelegateStakeUponReputerResponse) ProtoMessage() {} func (*QueryDelegateStakeUponReputerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{87} + return fileDescriptor_2aefa309da3515fd, []int{91} } func (m *QueryDelegateStakeUponReputerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4222,7 +4490,7 @@ func (m *QueryDelegateRewardPerShareRequest) Reset() { *m = QueryDelegat func (m *QueryDelegateRewardPerShareRequest) String() string { return proto.CompactTextString(m) } func (*QueryDelegateRewardPerShareRequest) ProtoMessage() {} func (*QueryDelegateRewardPerShareRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{88} + return fileDescriptor_2aefa309da3515fd, []int{92} } func (m *QueryDelegateRewardPerShareRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4273,7 +4541,7 @@ func (m *QueryDelegateRewardPerShareResponse) Reset() { *m = QueryDelega func (m *QueryDelegateRewardPerShareResponse) String() string { return proto.CompactTextString(m) } func (*QueryDelegateRewardPerShareResponse) ProtoMessage() {} func (*QueryDelegateRewardPerShareResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{89} + return fileDescriptor_2aefa309da3515fd, []int{93} } func (m *QueryDelegateRewardPerShareResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4315,7 +4583,7 @@ func (m *QueryStakeRemovalForReputerAndTopicIdRequest) String() string { } func (*QueryStakeRemovalForReputerAndTopicIdRequest) ProtoMessage() {} func (*QueryStakeRemovalForReputerAndTopicIdRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{90} + return fileDescriptor_2aefa309da3515fd, []int{94} } func (m *QueryStakeRemovalForReputerAndTopicIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4370,7 +4638,7 @@ func (m *QueryStakeRemovalForReputerAndTopicIdResponse) String() string { } func (*QueryStakeRemovalForReputerAndTopicIdResponse) ProtoMessage() {} func (*QueryStakeRemovalForReputerAndTopicIdResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{91} + return fileDescriptor_2aefa309da3515fd, []int{95} } func (m *QueryStakeRemovalForReputerAndTopicIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4417,7 +4685,7 @@ func (m *QueryDelegateStakeRemovalRequest) Reset() { *m = QueryDelegateS func (m *QueryDelegateStakeRemovalRequest) String() string { return proto.CompactTextString(m) } func (*QueryDelegateStakeRemovalRequest) ProtoMessage() {} func (*QueryDelegateStakeRemovalRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{92} + return fileDescriptor_2aefa309da3515fd, []int{96} } func (m *QueryDelegateStakeRemovalRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4482,7 +4750,7 @@ func (m *QueryDelegateStakeRemovalResponse) Reset() { *m = QueryDelegate func (m *QueryDelegateStakeRemovalResponse) String() string { return proto.CompactTextString(m) } func (*QueryDelegateStakeRemovalResponse) ProtoMessage() {} func (*QueryDelegateStakeRemovalResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{93} + return fileDescriptor_2aefa309da3515fd, []int{97} } func (m *QueryDelegateStakeRemovalResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4526,7 +4794,7 @@ func (m *QueryPreviousTopicWeightRequest) Reset() { *m = QueryPreviousTo func (m *QueryPreviousTopicWeightRequest) String() string { return proto.CompactTextString(m) } func (*QueryPreviousTopicWeightRequest) ProtoMessage() {} func (*QueryPreviousTopicWeightRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{94} + return fileDescriptor_2aefa309da3515fd, []int{98} } func (m *QueryPreviousTopicWeightRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4571,7 +4839,7 @@ func (m *QueryPreviousTopicWeightResponse) Reset() { *m = QueryPreviousT func (m *QueryPreviousTopicWeightResponse) String() string { return proto.CompactTextString(m) } func (*QueryPreviousTopicWeightResponse) ProtoMessage() {} func (*QueryPreviousTopicWeightResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{95} + return fileDescriptor_2aefa309da3515fd, []int{99} } func (m *QueryPreviousTopicWeightResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4615,7 +4883,7 @@ func (m *QueryTopicExistsRequest) Reset() { *m = QueryTopicExistsRequest func (m *QueryTopicExistsRequest) String() string { return proto.CompactTextString(m) } func (*QueryTopicExistsRequest) ProtoMessage() {} func (*QueryTopicExistsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{96} + return fileDescriptor_2aefa309da3515fd, []int{100} } func (m *QueryTopicExistsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4659,7 +4927,7 @@ func (m *QueryTopicExistsResponse) Reset() { *m = QueryTopicExistsRespon func (m *QueryTopicExistsResponse) String() string { return proto.CompactTextString(m) } func (*QueryTopicExistsResponse) ProtoMessage() {} func (*QueryTopicExistsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{97} + return fileDescriptor_2aefa309da3515fd, []int{101} } func (m *QueryTopicExistsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4703,7 +4971,7 @@ func (m *QueryIsTopicActiveRequest) Reset() { *m = QueryIsTopicActiveReq func (m *QueryIsTopicActiveRequest) String() string { return proto.CompactTextString(m) } func (*QueryIsTopicActiveRequest) ProtoMessage() {} func (*QueryIsTopicActiveRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{98} + return fileDescriptor_2aefa309da3515fd, []int{102} } func (m *QueryIsTopicActiveRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4747,7 +5015,7 @@ func (m *QueryIsTopicActiveResponse) Reset() { *m = QueryIsTopicActiveRe func (m *QueryIsTopicActiveResponse) String() string { return proto.CompactTextString(m) } func (*QueryIsTopicActiveResponse) ProtoMessage() {} func (*QueryIsTopicActiveResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{99} + return fileDescriptor_2aefa309da3515fd, []int{103} } func (m *QueryIsTopicActiveResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4791,7 +5059,7 @@ func (m *QueryTopicFeeRevenueRequest) Reset() { *m = QueryTopicFeeRevenu func (m *QueryTopicFeeRevenueRequest) String() string { return proto.CompactTextString(m) } func (*QueryTopicFeeRevenueRequest) ProtoMessage() {} func (*QueryTopicFeeRevenueRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{100} + return fileDescriptor_2aefa309da3515fd, []int{104} } func (m *QueryTopicFeeRevenueRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4835,7 +5103,7 @@ func (m *QueryTopicFeeRevenueResponse) Reset() { *m = QueryTopicFeeReven func (m *QueryTopicFeeRevenueResponse) String() string { return proto.CompactTextString(m) } func (*QueryTopicFeeRevenueResponse) ProtoMessage() {} func (*QueryTopicFeeRevenueResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{101} + return fileDescriptor_2aefa309da3515fd, []int{105} } func (m *QueryTopicFeeRevenueResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4864,21 +5132,21 @@ func (m *QueryTopicFeeRevenueResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryTopicFeeRevenueResponse proto.InternalMessageInfo -type QueryChurnableTopicsRequest struct { +type QueryRewardableTopicsRequest struct { } -func (m *QueryChurnableTopicsRequest) Reset() { *m = QueryChurnableTopicsRequest{} } -func (m *QueryChurnableTopicsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryChurnableTopicsRequest) ProtoMessage() {} -func (*QueryChurnableTopicsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{102} +func (m *QueryRewardableTopicsRequest) Reset() { *m = QueryRewardableTopicsRequest{} } +func (m *QueryRewardableTopicsRequest) String() string { return proto.CompactTextString(m) } +func (*QueryRewardableTopicsRequest) ProtoMessage() {} +func (*QueryRewardableTopicsRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{106} } -func (m *QueryChurnableTopicsRequest) XXX_Unmarshal(b []byte) error { +func (m *QueryRewardableTopicsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryChurnableTopicsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryRewardableTopicsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryChurnableTopicsRequest.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryRewardableTopicsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -4888,34 +5156,34 @@ func (m *QueryChurnableTopicsRequest) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryChurnableTopicsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryChurnableTopicsRequest.Merge(m, src) +func (m *QueryRewardableTopicsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRewardableTopicsRequest.Merge(m, src) } -func (m *QueryChurnableTopicsRequest) XXX_Size() int { +func (m *QueryRewardableTopicsRequest) XXX_Size() int { return m.Size() } -func (m *QueryChurnableTopicsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryChurnableTopicsRequest.DiscardUnknown(m) +func (m *QueryRewardableTopicsRequest) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRewardableTopicsRequest.DiscardUnknown(m) } -var xxx_messageInfo_QueryChurnableTopicsRequest proto.InternalMessageInfo +var xxx_messageInfo_QueryRewardableTopicsRequest proto.InternalMessageInfo -type QueryChurnableTopicsResponse struct { - ChurnableTopicIds []uint64 `protobuf:"varint,1,rep,packed,name=churnable_topic_ids,json=churnableTopicIds,proto3" json:"churnable_topic_ids,omitempty"` +type QueryRewardableTopicsResponse struct { + RewardableTopicIds []uint64 `protobuf:"varint,1,rep,packed,name=rewardable_topic_ids,json=rewardableTopicIds,proto3" json:"rewardable_topic_ids,omitempty"` } -func (m *QueryChurnableTopicsResponse) Reset() { *m = QueryChurnableTopicsResponse{} } -func (m *QueryChurnableTopicsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryChurnableTopicsResponse) ProtoMessage() {} -func (*QueryChurnableTopicsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{103} +func (m *QueryRewardableTopicsResponse) Reset() { *m = QueryRewardableTopicsResponse{} } +func (m *QueryRewardableTopicsResponse) String() string { return proto.CompactTextString(m) } +func (*QueryRewardableTopicsResponse) ProtoMessage() {} +func (*QueryRewardableTopicsResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_2aefa309da3515fd, []int{107} } -func (m *QueryChurnableTopicsResponse) XXX_Unmarshal(b []byte) error { +func (m *QueryRewardableTopicsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *QueryChurnableTopicsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *QueryRewardableTopicsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_QueryChurnableTopicsResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_QueryRewardableTopicsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -4925,115 +5193,35 @@ func (m *QueryChurnableTopicsResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *QueryChurnableTopicsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryChurnableTopicsResponse.Merge(m, src) +func (m *QueryRewardableTopicsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryRewardableTopicsResponse.Merge(m, src) } -func (m *QueryChurnableTopicsResponse) XXX_Size() int { +func (m *QueryRewardableTopicsResponse) XXX_Size() int { return m.Size() } -func (m *QueryChurnableTopicsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryChurnableTopicsResponse.DiscardUnknown(m) +func (m *QueryRewardableTopicsResponse) XXX_DiscardUnknown() { + xxx_messageInfo_QueryRewardableTopicsResponse.DiscardUnknown(m) } -var xxx_messageInfo_QueryChurnableTopicsResponse proto.InternalMessageInfo +var xxx_messageInfo_QueryRewardableTopicsResponse proto.InternalMessageInfo -func (m *QueryChurnableTopicsResponse) GetChurnableTopicIds() []uint64 { +func (m *QueryRewardableTopicsResponse) GetRewardableTopicIds() []uint64 { if m != nil { - return m.ChurnableTopicIds + return m.RewardableTopicIds } return nil } -type QueryRewardableTopicsRequest struct { -} - -func (m *QueryRewardableTopicsRequest) Reset() { *m = QueryRewardableTopicsRequest{} } -func (m *QueryRewardableTopicsRequest) String() string { return proto.CompactTextString(m) } -func (*QueryRewardableTopicsRequest) ProtoMessage() {} -func (*QueryRewardableTopicsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{104} -} -func (m *QueryRewardableTopicsRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryRewardableTopicsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryRewardableTopicsRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryRewardableTopicsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRewardableTopicsRequest.Merge(m, src) -} -func (m *QueryRewardableTopicsRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryRewardableTopicsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRewardableTopicsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryRewardableTopicsRequest proto.InternalMessageInfo - -type QueryRewardableTopicsResponse struct { - RewardableTopicIds []uint64 `protobuf:"varint,1,rep,packed,name=rewardable_topic_ids,json=rewardableTopicIds,proto3" json:"rewardable_topic_ids,omitempty"` -} - -func (m *QueryRewardableTopicsResponse) Reset() { *m = QueryRewardableTopicsResponse{} } -func (m *QueryRewardableTopicsResponse) String() string { return proto.CompactTextString(m) } -func (*QueryRewardableTopicsResponse) ProtoMessage() {} -func (*QueryRewardableTopicsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{105} -} -func (m *QueryRewardableTopicsResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryRewardableTopicsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryRewardableTopicsResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryRewardableTopicsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryRewardableTopicsResponse.Merge(m, src) -} -func (m *QueryRewardableTopicsResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryRewardableTopicsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryRewardableTopicsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryRewardableTopicsResponse proto.InternalMessageInfo - -func (m *QueryRewardableTopicsResponse) GetRewardableTopicIds() []uint64 { - if m != nil { - return m.RewardableTopicIds - } - return nil -} - -type QueryLatestInfererScoreRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - Inferer string `protobuf:"bytes,2,opt,name=inferer,proto3" json:"inferer,omitempty"` +type QueryLatestInfererScoreRequest struct { + TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Inferer string `protobuf:"bytes,2,opt,name=inferer,proto3" json:"inferer,omitempty"` } func (m *QueryLatestInfererScoreRequest) Reset() { *m = QueryLatestInfererScoreRequest{} } func (m *QueryLatestInfererScoreRequest) String() string { return proto.CompactTextString(m) } func (*QueryLatestInfererScoreRequest) ProtoMessage() {} func (*QueryLatestInfererScoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{106} + return fileDescriptor_2aefa309da3515fd, []int{108} } func (m *QueryLatestInfererScoreRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5084,7 +5272,7 @@ func (m *QueryLatestInfererScoreResponse) Reset() { *m = QueryLatestInfe func (m *QueryLatestInfererScoreResponse) String() string { return proto.CompactTextString(m) } func (*QueryLatestInfererScoreResponse) ProtoMessage() {} func (*QueryLatestInfererScoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{107} + return fileDescriptor_2aefa309da3515fd, []int{109} } func (m *QueryLatestInfererScoreResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5129,7 +5317,7 @@ func (m *QueryLatestForecasterScoreRequest) Reset() { *m = QueryLatestFo func (m *QueryLatestForecasterScoreRequest) String() string { return proto.CompactTextString(m) } func (*QueryLatestForecasterScoreRequest) ProtoMessage() {} func (*QueryLatestForecasterScoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{108} + return fileDescriptor_2aefa309da3515fd, []int{110} } func (m *QueryLatestForecasterScoreRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5180,7 +5368,7 @@ func (m *QueryLatestForecasterScoreResponse) Reset() { *m = QueryLatestF func (m *QueryLatestForecasterScoreResponse) String() string { return proto.CompactTextString(m) } func (*QueryLatestForecasterScoreResponse) ProtoMessage() {} func (*QueryLatestForecasterScoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{109} + return fileDescriptor_2aefa309da3515fd, []int{111} } func (m *QueryLatestForecasterScoreResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5225,7 +5413,7 @@ func (m *QueryLatestReputerScoreRequest) Reset() { *m = QueryLatestReput func (m *QueryLatestReputerScoreRequest) String() string { return proto.CompactTextString(m) } func (*QueryLatestReputerScoreRequest) ProtoMessage() {} func (*QueryLatestReputerScoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{110} + return fileDescriptor_2aefa309da3515fd, []int{112} } func (m *QueryLatestReputerScoreRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5276,7 +5464,7 @@ func (m *QueryLatestReputerScoreResponse) Reset() { *m = QueryLatestRepu func (m *QueryLatestReputerScoreResponse) String() string { return proto.CompactTextString(m) } func (*QueryLatestReputerScoreResponse) ProtoMessage() {} func (*QueryLatestReputerScoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{111} + return fileDescriptor_2aefa309da3515fd, []int{113} } func (m *QueryLatestReputerScoreResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5321,7 +5509,7 @@ func (m *QueryInferenceScoresUntilBlockRequest) Reset() { *m = QueryInfe func (m *QueryInferenceScoresUntilBlockRequest) String() string { return proto.CompactTextString(m) } func (*QueryInferenceScoresUntilBlockRequest) ProtoMessage() {} func (*QueryInferenceScoresUntilBlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{112} + return fileDescriptor_2aefa309da3515fd, []int{114} } func (m *QueryInferenceScoresUntilBlockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5374,7 +5562,7 @@ func (m *QueryInferenceScoresUntilBlockResponse) Reset() { func (m *QueryInferenceScoresUntilBlockResponse) String() string { return proto.CompactTextString(m) } func (*QueryInferenceScoresUntilBlockResponse) ProtoMessage() {} func (*QueryInferenceScoresUntilBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{113} + return fileDescriptor_2aefa309da3515fd, []int{115} } func (m *QueryInferenceScoresUntilBlockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5421,7 +5609,7 @@ func (m *QueryWorkerInferenceScoresAtBlockRequest) Reset() { func (m *QueryWorkerInferenceScoresAtBlockRequest) String() string { return proto.CompactTextString(m) } func (*QueryWorkerInferenceScoresAtBlockRequest) ProtoMessage() {} func (*QueryWorkerInferenceScoresAtBlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{114} + return fileDescriptor_2aefa309da3515fd, []int{116} } func (m *QueryWorkerInferenceScoresAtBlockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5476,7 +5664,7 @@ func (m *QueryWorkerInferenceScoresAtBlockResponse) String() string { } func (*QueryWorkerInferenceScoresAtBlockResponse) ProtoMessage() {} func (*QueryWorkerInferenceScoresAtBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{115} + return fileDescriptor_2aefa309da3515fd, []int{117} } func (m *QueryWorkerInferenceScoresAtBlockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5521,7 +5709,7 @@ func (m *QueryForecastScoresUntilBlockRequest) Reset() { *m = QueryForec func (m *QueryForecastScoresUntilBlockRequest) String() string { return proto.CompactTextString(m) } func (*QueryForecastScoresUntilBlockRequest) ProtoMessage() {} func (*QueryForecastScoresUntilBlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{116} + return fileDescriptor_2aefa309da3515fd, []int{118} } func (m *QueryForecastScoresUntilBlockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5572,7 +5760,7 @@ func (m *QueryForecastScoresUntilBlockResponse) Reset() { *m = QueryFore func (m *QueryForecastScoresUntilBlockResponse) String() string { return proto.CompactTextString(m) } func (*QueryForecastScoresUntilBlockResponse) ProtoMessage() {} func (*QueryForecastScoresUntilBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{117} + return fileDescriptor_2aefa309da3515fd, []int{119} } func (m *QueryForecastScoresUntilBlockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5619,7 +5807,7 @@ func (m *QueryWorkerForecastScoresAtBlockRequest) Reset() { func (m *QueryWorkerForecastScoresAtBlockRequest) String() string { return proto.CompactTextString(m) } func (*QueryWorkerForecastScoresAtBlockRequest) ProtoMessage() {} func (*QueryWorkerForecastScoresAtBlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{118} + return fileDescriptor_2aefa309da3515fd, []int{120} } func (m *QueryWorkerForecastScoresAtBlockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5672,7 +5860,7 @@ func (m *QueryWorkerForecastScoresAtBlockResponse) Reset() { func (m *QueryWorkerForecastScoresAtBlockResponse) String() string { return proto.CompactTextString(m) } func (*QueryWorkerForecastScoresAtBlockResponse) ProtoMessage() {} func (*QueryWorkerForecastScoresAtBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{119} + return fileDescriptor_2aefa309da3515fd, []int{121} } func (m *QueryWorkerForecastScoresAtBlockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5717,7 +5905,7 @@ func (m *QueryReputersScoresAtBlockRequest) Reset() { *m = QueryReputers func (m *QueryReputersScoresAtBlockRequest) String() string { return proto.CompactTextString(m) } func (*QueryReputersScoresAtBlockRequest) ProtoMessage() {} func (*QueryReputersScoresAtBlockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{120} + return fileDescriptor_2aefa309da3515fd, []int{122} } func (m *QueryReputersScoresAtBlockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5768,7 +5956,7 @@ func (m *QueryReputersScoresAtBlockResponse) Reset() { *m = QueryReputer func (m *QueryReputersScoresAtBlockResponse) String() string { return proto.CompactTextString(m) } func (*QueryReputersScoresAtBlockResponse) ProtoMessage() {} func (*QueryReputersScoresAtBlockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{121} + return fileDescriptor_2aefa309da3515fd, []int{123} } func (m *QueryReputersScoresAtBlockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5813,7 +6001,7 @@ func (m *QueryListeningCoefficientRequest) Reset() { *m = QueryListening func (m *QueryListeningCoefficientRequest) String() string { return proto.CompactTextString(m) } func (*QueryListeningCoefficientRequest) ProtoMessage() {} func (*QueryListeningCoefficientRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{122} + return fileDescriptor_2aefa309da3515fd, []int{124} } func (m *QueryListeningCoefficientRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5864,7 +6052,7 @@ func (m *QueryListeningCoefficientResponse) Reset() { *m = QueryListenin func (m *QueryListeningCoefficientResponse) String() string { return proto.CompactTextString(m) } func (*QueryListeningCoefficientResponse) ProtoMessage() {} func (*QueryListeningCoefficientResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{123} + return fileDescriptor_2aefa309da3515fd, []int{125} } func (m *QueryListeningCoefficientResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5913,7 +6101,7 @@ func (m *QueryPreviousReputerRewardFractionRequest) String() string { } func (*QueryPreviousReputerRewardFractionRequest) ProtoMessage() {} func (*QueryPreviousReputerRewardFractionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{124} + return fileDescriptor_2aefa309da3515fd, []int{126} } func (m *QueryPreviousReputerRewardFractionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5969,7 +6157,7 @@ func (m *QueryPreviousReputerRewardFractionResponse) String() string { } func (*QueryPreviousReputerRewardFractionResponse) ProtoMessage() {} func (*QueryPreviousReputerRewardFractionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{125} + return fileDescriptor_2aefa309da3515fd, []int{127} } func (m *QueryPreviousReputerRewardFractionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6018,7 +6206,7 @@ func (m *QueryPreviousInferenceRewardFractionRequest) String() string { } func (*QueryPreviousInferenceRewardFractionRequest) ProtoMessage() {} func (*QueryPreviousInferenceRewardFractionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{126} + return fileDescriptor_2aefa309da3515fd, []int{128} } func (m *QueryPreviousInferenceRewardFractionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6074,7 +6262,7 @@ func (m *QueryPreviousInferenceRewardFractionResponse) String() string { } func (*QueryPreviousInferenceRewardFractionResponse) ProtoMessage() {} func (*QueryPreviousInferenceRewardFractionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{127} + return fileDescriptor_2aefa309da3515fd, []int{129} } func (m *QueryPreviousInferenceRewardFractionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6123,7 +6311,7 @@ func (m *QueryPreviousForecastRewardFractionRequest) String() string { } func (*QueryPreviousForecastRewardFractionRequest) ProtoMessage() {} func (*QueryPreviousForecastRewardFractionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{128} + return fileDescriptor_2aefa309da3515fd, []int{130} } func (m *QueryPreviousForecastRewardFractionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6179,7 +6367,7 @@ func (m *QueryPreviousForecastRewardFractionResponse) String() string { } func (*QueryPreviousForecastRewardFractionResponse) ProtoMessage() {} func (*QueryPreviousForecastRewardFractionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{129} + return fileDescriptor_2aefa309da3515fd, []int{131} } func (m *QueryPreviousForecastRewardFractionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6226,7 +6414,7 @@ func (m *QueryPreviousPercentageRewardToStakedReputersRequest) String() string { } func (*QueryPreviousPercentageRewardToStakedReputersRequest) ProtoMessage() {} func (*QueryPreviousPercentageRewardToStakedReputersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{130} + return fileDescriptor_2aefa309da3515fd, []int{132} } func (m *QueryPreviousPercentageRewardToStakedReputersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6267,7 +6455,7 @@ func (m *QueryPreviousPercentageRewardToStakedReputersResponse) String() string } func (*QueryPreviousPercentageRewardToStakedReputersResponse) ProtoMessage() {} func (*QueryPreviousPercentageRewardToStakedReputersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{131} + return fileDescriptor_2aefa309da3515fd, []int{133} } func (m *QueryPreviousPercentageRewardToStakedReputersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6303,7 +6491,7 @@ func (m *QueryTotalRewardToDistributeRequest) Reset() { *m = QueryTotalR func (m *QueryTotalRewardToDistributeRequest) String() string { return proto.CompactTextString(m) } func (*QueryTotalRewardToDistributeRequest) ProtoMessage() {} func (*QueryTotalRewardToDistributeRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{132} + return fileDescriptor_2aefa309da3515fd, []int{134} } func (m *QueryTotalRewardToDistributeRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6340,7 +6528,7 @@ func (m *QueryTotalRewardToDistributeResponse) Reset() { *m = QueryTotal func (m *QueryTotalRewardToDistributeResponse) String() string { return proto.CompactTextString(m) } func (*QueryTotalRewardToDistributeResponse) ProtoMessage() {} func (*QueryTotalRewardToDistributeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{133} + return fileDescriptor_2aefa309da3515fd, []int{135} } func (m *QueryTotalRewardToDistributeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -6369,664 +6557,483 @@ func (m *QueryTotalRewardToDistributeResponse) XXX_DiscardUnknown() { var xxx_messageInfo_QueryTotalRewardToDistributeResponse proto.InternalMessageInfo -type QueryTopicLastWorkerPayloadRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` -} - -func (m *QueryTopicLastWorkerPayloadRequest) Reset() { *m = QueryTopicLastWorkerPayloadRequest{} } -func (m *QueryTopicLastWorkerPayloadRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTopicLastWorkerPayloadRequest) ProtoMessage() {} -func (*QueryTopicLastWorkerPayloadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{134} -} -func (m *QueryTopicLastWorkerPayloadRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTopicLastWorkerPayloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTopicLastWorkerPayloadRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryTopicLastWorkerPayloadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTopicLastWorkerPayloadRequest.Merge(m, src) -} -func (m *QueryTopicLastWorkerPayloadRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryTopicLastWorkerPayloadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTopicLastWorkerPayloadRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTopicLastWorkerPayloadRequest proto.InternalMessageInfo - -func (m *QueryTopicLastWorkerPayloadRequest) GetTopicId() uint64 { - if m != nil { - return m.TopicId - } - return 0 -} - -type QueryTopicLastWorkerPayloadResponse struct { - Payload *TimestampedActorNonce `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` -} - -func (m *QueryTopicLastWorkerPayloadResponse) Reset() { *m = QueryTopicLastWorkerPayloadResponse{} } -func (m *QueryTopicLastWorkerPayloadResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTopicLastWorkerPayloadResponse) ProtoMessage() {} -func (*QueryTopicLastWorkerPayloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{135} -} -func (m *QueryTopicLastWorkerPayloadResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTopicLastWorkerPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTopicLastWorkerPayloadResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryTopicLastWorkerPayloadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTopicLastWorkerPayloadResponse.Merge(m, src) -} -func (m *QueryTopicLastWorkerPayloadResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryTopicLastWorkerPayloadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTopicLastWorkerPayloadResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTopicLastWorkerPayloadResponse proto.InternalMessageInfo - -func (m *QueryTopicLastWorkerPayloadResponse) GetPayload() *TimestampedActorNonce { - if m != nil { - return m.Payload - } - return nil -} - -type QueryTopicLastReputerPayloadRequest struct { - TopicId uint64 `protobuf:"varint,1,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` -} - -func (m *QueryTopicLastReputerPayloadRequest) Reset() { *m = QueryTopicLastReputerPayloadRequest{} } -func (m *QueryTopicLastReputerPayloadRequest) String() string { return proto.CompactTextString(m) } -func (*QueryTopicLastReputerPayloadRequest) ProtoMessage() {} -func (*QueryTopicLastReputerPayloadRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{136} -} -func (m *QueryTopicLastReputerPayloadRequest) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTopicLastReputerPayloadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTopicLastReputerPayloadRequest.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryTopicLastReputerPayloadRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTopicLastReputerPayloadRequest.Merge(m, src) -} -func (m *QueryTopicLastReputerPayloadRequest) XXX_Size() int { - return m.Size() -} -func (m *QueryTopicLastReputerPayloadRequest) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTopicLastReputerPayloadRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTopicLastReputerPayloadRequest proto.InternalMessageInfo - -func (m *QueryTopicLastReputerPayloadRequest) GetTopicId() uint64 { - if m != nil { - return m.TopicId - } - return 0 -} - -type QueryTopicLastReputerPayloadResponse struct { - Payload *TimestampedActorNonce `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` -} - -func (m *QueryTopicLastReputerPayloadResponse) Reset() { *m = QueryTopicLastReputerPayloadResponse{} } -func (m *QueryTopicLastReputerPayloadResponse) String() string { return proto.CompactTextString(m) } -func (*QueryTopicLastReputerPayloadResponse) ProtoMessage() {} -func (*QueryTopicLastReputerPayloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c426af2f1e908986, []int{137} -} -func (m *QueryTopicLastReputerPayloadResponse) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *QueryTopicLastReputerPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_QueryTopicLastReputerPayloadResponse.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (m *QueryTopicLastReputerPayloadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTopicLastReputerPayloadResponse.Merge(m, src) -} -func (m *QueryTopicLastReputerPayloadResponse) XXX_Size() int { - return m.Size() -} -func (m *QueryTopicLastReputerPayloadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_QueryTopicLastReputerPayloadResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_QueryTopicLastReputerPayloadResponse proto.InternalMessageInfo - -func (m *QueryTopicLastReputerPayloadResponse) GetPayload() *TimestampedActorNonce { - if m != nil { - return m.Payload - } - return nil -} - func init() { - proto.RegisterType((*QueryParamsRequest)(nil), "emissions.v1.QueryParamsRequest") - proto.RegisterType((*QueryParamsResponse)(nil), "emissions.v1.QueryParamsResponse") - proto.RegisterType((*QueryTotalStakeRequest)(nil), "emissions.v1.QueryTotalStakeRequest") - proto.RegisterType((*QueryTotalStakeResponse)(nil), "emissions.v1.QueryTotalStakeResponse") - proto.RegisterType((*QueryReputerStakeInTopicRequest)(nil), "emissions.v1.QueryReputerStakeInTopicRequest") - proto.RegisterType((*QueryReputerStakeInTopicResponse)(nil), "emissions.v1.QueryReputerStakeInTopicResponse") - proto.RegisterType((*QueryMultiReputerStakeInTopicRequest)(nil), "emissions.v1.QueryMultiReputerStakeInTopicRequest") - proto.RegisterType((*QueryMultiReputerStakeInTopicResponse)(nil), "emissions.v1.QueryMultiReputerStakeInTopicResponse") - proto.RegisterType((*QueryStakeFromReputerInTopicInSelfRequest)(nil), "emissions.v1.QueryStakeFromReputerInTopicInSelfRequest") - proto.RegisterType((*QueryStakeFromReputerInTopicInSelfResponse)(nil), "emissions.v1.QueryStakeFromReputerInTopicInSelfResponse") - proto.RegisterType((*QueryDelegateStakeInTopicInReputerRequest)(nil), "emissions.v1.QueryDelegateStakeInTopicInReputerRequest") - proto.RegisterType((*QueryDelegateStakeInTopicInReputerResponse)(nil), "emissions.v1.QueryDelegateStakeInTopicInReputerResponse") - proto.RegisterType((*QueryStakeFromDelegatorInTopicInReputerRequest)(nil), "emissions.v1.QueryStakeFromDelegatorInTopicInReputerRequest") - proto.RegisterType((*QueryStakeFromDelegatorInTopicInReputerResponse)(nil), "emissions.v1.QueryStakeFromDelegatorInTopicInReputerResponse") - proto.RegisterType((*QueryStakeFromDelegatorInTopicRequest)(nil), "emissions.v1.QueryStakeFromDelegatorInTopicRequest") - proto.RegisterType((*QueryStakeFromDelegatorInTopicResponse)(nil), "emissions.v1.QueryStakeFromDelegatorInTopicResponse") - proto.RegisterType((*QueryTopicStakeRequest)(nil), "emissions.v1.QueryTopicStakeRequest") - proto.RegisterType((*QueryTopicStakeResponse)(nil), "emissions.v1.QueryTopicStakeResponse") - proto.RegisterType((*QueryNetworkLossBundleAtBlockRequest)(nil), "emissions.v1.QueryNetworkLossBundleAtBlockRequest") - proto.RegisterType((*QueryNetworkLossBundleAtBlockResponse)(nil), "emissions.v1.QueryNetworkLossBundleAtBlockResponse") - proto.RegisterType((*QueryNextTopicIdRequest)(nil), "emissions.v1.QueryNextTopicIdRequest") - proto.RegisterType((*QueryNextTopicIdResponse)(nil), "emissions.v1.QueryNextTopicIdResponse") - proto.RegisterType((*QueryTopicRequest)(nil), "emissions.v1.QueryTopicRequest") - proto.RegisterType((*QueryTopicResponse)(nil), "emissions.v1.QueryTopicResponse") - proto.RegisterType((*QueryActiveTopicsRequest)(nil), "emissions.v1.QueryActiveTopicsRequest") - proto.RegisterType((*QueryActiveTopicsResponse)(nil), "emissions.v1.QueryActiveTopicsResponse") - proto.RegisterType((*QueryInferencesAtBlockRequest)(nil), "emissions.v1.QueryInferencesAtBlockRequest") - proto.RegisterType((*QueryInferencesAtBlockResponse)(nil), "emissions.v1.QueryInferencesAtBlockResponse") - proto.RegisterType((*QueryLatestTopicInferencesRequest)(nil), "emissions.v1.QueryLatestTopicInferencesRequest") - proto.RegisterType((*QueryLatestTopicInferencesResponse)(nil), "emissions.v1.QueryLatestTopicInferencesResponse") - proto.RegisterType((*QueryForecastsAtBlockRequest)(nil), "emissions.v1.QueryForecastsAtBlockRequest") - proto.RegisterType((*QueryForecastsAtBlockResponse)(nil), "emissions.v1.QueryForecastsAtBlockResponse") - proto.RegisterType((*QueryWorkerLatestInferenceRequest)(nil), "emissions.v1.QueryWorkerLatestInferenceRequest") - proto.RegisterType((*QueryWorkerLatestInferenceResponse)(nil), "emissions.v1.QueryWorkerLatestInferenceResponse") - proto.RegisterType((*QueryWorkerNodeInfoRequest)(nil), "emissions.v1.QueryWorkerNodeInfoRequest") - proto.RegisterType((*QueryWorkerNodeInfoResponse)(nil), "emissions.v1.QueryWorkerNodeInfoResponse") - proto.RegisterType((*QueryReputerNodeInfoRequest)(nil), "emissions.v1.QueryReputerNodeInfoRequest") - proto.RegisterType((*QueryReputerNodeInfoResponse)(nil), "emissions.v1.QueryReputerNodeInfoResponse") - proto.RegisterType((*QueryWorkerAddressByP2PKeyRequest)(nil), "emissions.v1.QueryWorkerAddressByP2PKeyRequest") - proto.RegisterType((*QueryWorkerAddressByP2PKeyResponse)(nil), "emissions.v1.QueryWorkerAddressByP2PKeyResponse") - proto.RegisterType((*QueryReputerAddressByP2PKeyRequest)(nil), "emissions.v1.QueryReputerAddressByP2PKeyRequest") - proto.RegisterType((*QueryReputerAddressByP2PKeyResponse)(nil), "emissions.v1.QueryReputerAddressByP2PKeyResponse") - proto.RegisterType((*QueryNetworkInferencesAtBlockRequest)(nil), "emissions.v1.QueryNetworkInferencesAtBlockRequest") - proto.RegisterType((*QueryLatestNetworkInferencesRequest)(nil), "emissions.v1.QueryLatestNetworkInferencesRequest") - proto.RegisterType((*QueryIsWorkerNonceUnfulfilledRequest)(nil), "emissions.v1.QueryIsWorkerNonceUnfulfilledRequest") - proto.RegisterType((*QueryIsWorkerNonceUnfulfilledResponse)(nil), "emissions.v1.QueryIsWorkerNonceUnfulfilledResponse") - proto.RegisterType((*QueryUnfulfilledReputerNoncesRequest)(nil), "emissions.v1.QueryUnfulfilledReputerNoncesRequest") - proto.RegisterType((*QueryUnfulfilledReputerNoncesResponse)(nil), "emissions.v1.QueryUnfulfilledReputerNoncesResponse") - proto.RegisterType((*QueryUnfulfilledWorkerNoncesRequest)(nil), "emissions.v1.QueryUnfulfilledWorkerNoncesRequest") - proto.RegisterType((*QueryUnfulfilledWorkerNoncesResponse)(nil), "emissions.v1.QueryUnfulfilledWorkerNoncesResponse") - proto.RegisterType((*QueryInfererNetworkRegretRequest)(nil), "emissions.v1.QueryInfererNetworkRegretRequest") - proto.RegisterType((*QueryInfererNetworkRegretResponse)(nil), "emissions.v1.QueryInfererNetworkRegretResponse") - proto.RegisterType((*QueryForecasterNetworkRegretRequest)(nil), "emissions.v1.QueryForecasterNetworkRegretRequest") - proto.RegisterType((*QueryForecasterNetworkRegretResponse)(nil), "emissions.v1.QueryForecasterNetworkRegretResponse") - proto.RegisterType((*QueryOneInForecasterNetworkRegretRequest)(nil), "emissions.v1.QueryOneInForecasterNetworkRegretRequest") - proto.RegisterType((*QueryOneInForecasterNetworkRegretResponse)(nil), "emissions.v1.QueryOneInForecasterNetworkRegretResponse") - proto.RegisterType((*QueryOneInForecasterSelfNetworkRegretRequest)(nil), "emissions.v1.QueryOneInForecasterSelfNetworkRegretRequest") - proto.RegisterType((*QueryOneInForecasterSelfNetworkRegretResponse)(nil), "emissions.v1.QueryOneInForecasterSelfNetworkRegretResponse") - proto.RegisterType((*QueryIsReputerNonceUnfulfilledRequest)(nil), "emissions.v1.QueryIsReputerNonceUnfulfilledRequest") - proto.RegisterType((*QueryIsReputerNonceUnfulfilledResponse)(nil), "emissions.v1.QueryIsReputerNonceUnfulfilledResponse") - proto.RegisterType((*QueryNetworkInferencesAtBlockResponse)(nil), "emissions.v1.QueryNetworkInferencesAtBlockResponse") - proto.RegisterType((*QueryLatestNetworkInferencesResponse)(nil), "emissions.v1.QueryLatestNetworkInferencesResponse") - proto.RegisterType((*QueryIsWorkerRegisteredInTopicIdRequest)(nil), "emissions.v1.QueryIsWorkerRegisteredInTopicIdRequest") - proto.RegisterType((*QueryIsWorkerRegisteredInTopicIdResponse)(nil), "emissions.v1.QueryIsWorkerRegisteredInTopicIdResponse") - proto.RegisterType((*QueryIsReputerRegisteredInTopicIdRequest)(nil), "emissions.v1.QueryIsReputerRegisteredInTopicIdRequest") - proto.RegisterType((*QueryIsReputerRegisteredInTopicIdResponse)(nil), "emissions.v1.QueryIsReputerRegisteredInTopicIdResponse") - proto.RegisterType((*QueryIsWhitelistAdminRequest)(nil), "emissions.v1.QueryIsWhitelistAdminRequest") - proto.RegisterType((*QueryIsWhitelistAdminResponse)(nil), "emissions.v1.QueryIsWhitelistAdminResponse") - proto.RegisterType((*QueryStakeRemovalsForBlockRequest)(nil), "emissions.v1.QueryStakeRemovalsForBlockRequest") - proto.RegisterType((*QueryStakeRemovalsForBlockResponse)(nil), "emissions.v1.QueryStakeRemovalsForBlockResponse") - proto.RegisterType((*QueryDelegateStakeRemovalsForBlockRequest)(nil), "emissions.v1.QueryDelegateStakeRemovalsForBlockRequest") - proto.RegisterType((*QueryDelegateStakeRemovalsForBlockResponse)(nil), "emissions.v1.QueryDelegateStakeRemovalsForBlockResponse") - proto.RegisterType((*QueryStakeRemovalInfoRequest)(nil), "emissions.v1.QueryStakeRemovalInfoRequest") - proto.RegisterType((*QueryStakeRemovalInfoResponse)(nil), "emissions.v1.QueryStakeRemovalInfoResponse") - proto.RegisterType((*QueryDelegateStakeRemovalInfoRequest)(nil), "emissions.v1.QueryDelegateStakeRemovalInfoRequest") - proto.RegisterType((*QueryDelegateStakeRemovalInfoResponse)(nil), "emissions.v1.QueryDelegateStakeRemovalInfoResponse") - proto.RegisterType((*QueryTopicLastCommitRequest)(nil), "emissions.v1.QueryTopicLastCommitRequest") - proto.RegisterType((*QueryTopicLastCommitResponse)(nil), "emissions.v1.QueryTopicLastCommitResponse") - proto.RegisterType((*QueryTopicRewardNonceRequest)(nil), "emissions.v1.QueryTopicRewardNonceRequest") - proto.RegisterType((*QueryTopicRewardNonceResponse)(nil), "emissions.v1.QueryTopicRewardNonceResponse") - proto.RegisterType((*QueryReputerLossBundlesAtBlockRequest)(nil), "emissions.v1.QueryReputerLossBundlesAtBlockRequest") - proto.RegisterType((*QueryReputerLossBundlesAtBlockResponse)(nil), "emissions.v1.QueryReputerLossBundlesAtBlockResponse") - proto.RegisterType((*QueryStakeReputerAuthorityRequest)(nil), "emissions.v1.QueryStakeReputerAuthorityRequest") - proto.RegisterType((*QueryStakeReputerAuthorityResponse)(nil), "emissions.v1.QueryStakeReputerAuthorityResponse") - proto.RegisterType((*QueryDelegateStakePlacementRequest)(nil), "emissions.v1.QueryDelegateStakePlacementRequest") - proto.RegisterType((*QueryDelegateStakePlacementResponse)(nil), "emissions.v1.QueryDelegateStakePlacementResponse") - proto.RegisterType((*QueryDelegateStakeUponReputerRequest)(nil), "emissions.v1.QueryDelegateStakeUponReputerRequest") - proto.RegisterType((*QueryDelegateStakeUponReputerResponse)(nil), "emissions.v1.QueryDelegateStakeUponReputerResponse") - proto.RegisterType((*QueryDelegateRewardPerShareRequest)(nil), "emissions.v1.QueryDelegateRewardPerShareRequest") - proto.RegisterType((*QueryDelegateRewardPerShareResponse)(nil), "emissions.v1.QueryDelegateRewardPerShareResponse") - proto.RegisterType((*QueryStakeRemovalForReputerAndTopicIdRequest)(nil), "emissions.v1.QueryStakeRemovalForReputerAndTopicIdRequest") - proto.RegisterType((*QueryStakeRemovalForReputerAndTopicIdResponse)(nil), "emissions.v1.QueryStakeRemovalForReputerAndTopicIdResponse") - proto.RegisterType((*QueryDelegateStakeRemovalRequest)(nil), "emissions.v1.QueryDelegateStakeRemovalRequest") - proto.RegisterType((*QueryDelegateStakeRemovalResponse)(nil), "emissions.v1.QueryDelegateStakeRemovalResponse") - proto.RegisterType((*QueryPreviousTopicWeightRequest)(nil), "emissions.v1.QueryPreviousTopicWeightRequest") - proto.RegisterType((*QueryPreviousTopicWeightResponse)(nil), "emissions.v1.QueryPreviousTopicWeightResponse") - proto.RegisterType((*QueryTopicExistsRequest)(nil), "emissions.v1.QueryTopicExistsRequest") - proto.RegisterType((*QueryTopicExistsResponse)(nil), "emissions.v1.QueryTopicExistsResponse") - proto.RegisterType((*QueryIsTopicActiveRequest)(nil), "emissions.v1.QueryIsTopicActiveRequest") - proto.RegisterType((*QueryIsTopicActiveResponse)(nil), "emissions.v1.QueryIsTopicActiveResponse") - proto.RegisterType((*QueryTopicFeeRevenueRequest)(nil), "emissions.v1.QueryTopicFeeRevenueRequest") - proto.RegisterType((*QueryTopicFeeRevenueResponse)(nil), "emissions.v1.QueryTopicFeeRevenueResponse") - proto.RegisterType((*QueryChurnableTopicsRequest)(nil), "emissions.v1.QueryChurnableTopicsRequest") - proto.RegisterType((*QueryChurnableTopicsResponse)(nil), "emissions.v1.QueryChurnableTopicsResponse") - proto.RegisterType((*QueryRewardableTopicsRequest)(nil), "emissions.v1.QueryRewardableTopicsRequest") - proto.RegisterType((*QueryRewardableTopicsResponse)(nil), "emissions.v1.QueryRewardableTopicsResponse") - proto.RegisterType((*QueryLatestInfererScoreRequest)(nil), "emissions.v1.QueryLatestInfererScoreRequest") - proto.RegisterType((*QueryLatestInfererScoreResponse)(nil), "emissions.v1.QueryLatestInfererScoreResponse") - proto.RegisterType((*QueryLatestForecasterScoreRequest)(nil), "emissions.v1.QueryLatestForecasterScoreRequest") - proto.RegisterType((*QueryLatestForecasterScoreResponse)(nil), "emissions.v1.QueryLatestForecasterScoreResponse") - proto.RegisterType((*QueryLatestReputerScoreRequest)(nil), "emissions.v1.QueryLatestReputerScoreRequest") - proto.RegisterType((*QueryLatestReputerScoreResponse)(nil), "emissions.v1.QueryLatestReputerScoreResponse") - proto.RegisterType((*QueryInferenceScoresUntilBlockRequest)(nil), "emissions.v1.QueryInferenceScoresUntilBlockRequest") - proto.RegisterType((*QueryInferenceScoresUntilBlockResponse)(nil), "emissions.v1.QueryInferenceScoresUntilBlockResponse") - proto.RegisterType((*QueryWorkerInferenceScoresAtBlockRequest)(nil), "emissions.v1.QueryWorkerInferenceScoresAtBlockRequest") - proto.RegisterType((*QueryWorkerInferenceScoresAtBlockResponse)(nil), "emissions.v1.QueryWorkerInferenceScoresAtBlockResponse") - proto.RegisterType((*QueryForecastScoresUntilBlockRequest)(nil), "emissions.v1.QueryForecastScoresUntilBlockRequest") - proto.RegisterType((*QueryForecastScoresUntilBlockResponse)(nil), "emissions.v1.QueryForecastScoresUntilBlockResponse") - proto.RegisterType((*QueryWorkerForecastScoresAtBlockRequest)(nil), "emissions.v1.QueryWorkerForecastScoresAtBlockRequest") - proto.RegisterType((*QueryWorkerForecastScoresAtBlockResponse)(nil), "emissions.v1.QueryWorkerForecastScoresAtBlockResponse") - proto.RegisterType((*QueryReputersScoresAtBlockRequest)(nil), "emissions.v1.QueryReputersScoresAtBlockRequest") - proto.RegisterType((*QueryReputersScoresAtBlockResponse)(nil), "emissions.v1.QueryReputersScoresAtBlockResponse") - proto.RegisterType((*QueryListeningCoefficientRequest)(nil), "emissions.v1.QueryListeningCoefficientRequest") - proto.RegisterType((*QueryListeningCoefficientResponse)(nil), "emissions.v1.QueryListeningCoefficientResponse") - proto.RegisterType((*QueryPreviousReputerRewardFractionRequest)(nil), "emissions.v1.QueryPreviousReputerRewardFractionRequest") - proto.RegisterType((*QueryPreviousReputerRewardFractionResponse)(nil), "emissions.v1.QueryPreviousReputerRewardFractionResponse") - proto.RegisterType((*QueryPreviousInferenceRewardFractionRequest)(nil), "emissions.v1.QueryPreviousInferenceRewardFractionRequest") - proto.RegisterType((*QueryPreviousInferenceRewardFractionResponse)(nil), "emissions.v1.QueryPreviousInferenceRewardFractionResponse") - proto.RegisterType((*QueryPreviousForecastRewardFractionRequest)(nil), "emissions.v1.QueryPreviousForecastRewardFractionRequest") - proto.RegisterType((*QueryPreviousForecastRewardFractionResponse)(nil), "emissions.v1.QueryPreviousForecastRewardFractionResponse") - proto.RegisterType((*QueryPreviousPercentageRewardToStakedReputersRequest)(nil), "emissions.v1.QueryPreviousPercentageRewardToStakedReputersRequest") - proto.RegisterType((*QueryPreviousPercentageRewardToStakedReputersResponse)(nil), "emissions.v1.QueryPreviousPercentageRewardToStakedReputersResponse") - proto.RegisterType((*QueryTotalRewardToDistributeRequest)(nil), "emissions.v1.QueryTotalRewardToDistributeRequest") - proto.RegisterType((*QueryTotalRewardToDistributeResponse)(nil), "emissions.v1.QueryTotalRewardToDistributeResponse") - proto.RegisterType((*QueryTopicLastWorkerPayloadRequest)(nil), "emissions.v1.QueryTopicLastWorkerPayloadRequest") - proto.RegisterType((*QueryTopicLastWorkerPayloadResponse)(nil), "emissions.v1.QueryTopicLastWorkerPayloadResponse") - proto.RegisterType((*QueryTopicLastReputerPayloadRequest)(nil), "emissions.v1.QueryTopicLastReputerPayloadRequest") - proto.RegisterType((*QueryTopicLastReputerPayloadResponse)(nil), "emissions.v1.QueryTopicLastReputerPayloadResponse") -} - -func init() { proto.RegisterFile("emissions/v1/query.proto", fileDescriptor_c426af2f1e908986) } - -var fileDescriptor_c426af2f1e908986 = []byte{ - // 5377 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5d, 0x6d, 0x6c, 0x1c, 0xc7, - 0x79, 0xf6, 0x4a, 0x16, 0x45, 0x0e, 0xad, 0xaf, 0xb1, 0x2c, 0x93, 0x47, 0x99, 0x92, 0x56, 0x91, - 0xf5, 0x41, 0x89, 0x27, 0x51, 0x9f, 0x96, 0x2d, 0xdb, 0xa4, 0x64, 0x52, 0x8c, 0x64, 0x89, 0x3e, - 0x7d, 0xd9, 0x6e, 0xe3, 0xf3, 0xf2, 0x6e, 0x8e, 0x5c, 0xe8, 0xb8, 0x7b, 0xde, 0xdd, 0xa3, 0x45, - 0x28, 0x44, 0xe2, 0x20, 0x28, 0x12, 0xa0, 0x05, 0x0c, 0x14, 0x08, 0x5c, 0xa0, 0x05, 0x5a, 0xa0, - 0x3f, 0x02, 0xb4, 0x49, 0x8b, 0x22, 0x4d, 0x91, 0xa2, 0xfd, 0x11, 0xf4, 0x03, 0x0e, 0xda, 0xa2, - 0x41, 0x52, 0x03, 0x6e, 0xd0, 0x18, 0xad, 0xdd, 0x20, 0x6d, 0x7f, 0x14, 0xe8, 0xbf, 0xfe, 0x2c, - 0x76, 0xe7, 0x9d, 0xdd, 0x9d, 0xdd, 0x77, 0x66, 0xf7, 0x48, 0x0a, 0x70, 0xff, 0x18, 0xbe, 0xdd, - 0x99, 0x79, 0x9f, 0x67, 0x66, 0xf6, 0x9d, 0x77, 0xde, 0x99, 0x87, 0x22, 0x43, 0x6c, 0xc9, 0xf6, - 0x7d, 0xdb, 0x75, 0xfc, 0xea, 0xf2, 0xa9, 0xea, 0x3b, 0x5d, 0xe6, 0xad, 0x8c, 0x77, 0x3c, 0x37, - 0x70, 0xe9, 0x13, 0xf1, 0x9b, 0xf1, 0xe5, 0x53, 0x95, 0x63, 0x0d, 0xd7, 0x5f, 0x72, 0xfd, 0xea, - 0xbc, 0xe5, 0x33, 0x5e, 0xac, 0xba, 0x7c, 0x6a, 0x9e, 0x05, 0xd6, 0xa9, 0x6a, 0xc7, 0x5a, 0xb0, - 0x1d, 0x2b, 0xb0, 0x5d, 0x87, 0xd7, 0xac, 0xc8, 0x6d, 0x06, 0x2b, 0x1d, 0xe6, 0xc3, 0x9b, 0xbd, - 0x0b, 0xae, 0xbb, 0xd0, 0x66, 0x55, 0xab, 0x63, 0x57, 0x2d, 0xc7, 0x71, 0x83, 0xa8, 0x9a, 0x78, - 0x3b, 0x02, 0x36, 0x44, 0xf3, 0x69, 0x38, 0x95, 0x5d, 0xd6, 0x92, 0xed, 0xb8, 0xd5, 0xe8, 0xbf, - 0xf0, 0x68, 0xf7, 0x82, 0xbb, 0xe0, 0x46, 0xff, 0x5b, 0x0d, 0xff, 0x0f, 0x9e, 0x0e, 0xf3, 0x56, - 0xea, 0xfc, 0x05, 0xff, 0x21, 0x5e, 0x49, 0xc0, 0x3a, 0x96, 0x67, 0x2d, 0x89, 0x57, 0x4f, 0x4b, - 0xaf, 0x1c, 0xb7, 0xc9, 0xd0, 0x3a, 0xef, 0xba, 0xde, 0x7d, 0xe6, 0xc1, 0xab, 0x8a, 0xf4, 0xca, - 0x63, 0x9d, 0x6e, 0x10, 0xbf, 0x1b, 0xca, 0xb4, 0xe7, 0x34, 0x18, 0xde, 0x3b, 0x6e, 0xc7, 0x6e, - 0xa0, 0x6f, 0xfc, 0xc0, 0xba, 0x2f, 0xea, 0xec, 0x95, 0xde, 0xd8, 0x4e, 0x8b, 0x79, 0x4c, 0xd5, - 0xa2, 0xdf, 0x70, 0x3d, 0x78, 0x63, 0xee, 0x26, 0xf4, 0xb5, 0xb0, 0x0f, 0xe7, 0x22, 0xaa, 0x35, - 0xf6, 0x4e, 0x97, 0xf9, 0x81, 0x79, 0x83, 0x3c, 0x29, 0x3d, 0xf5, 0x3b, 0xae, 0xe3, 0x33, 0x7a, - 0x9e, 0xf4, 0xf1, 0x2e, 0x19, 0x32, 0xf6, 0x1b, 0x47, 0x06, 0x27, 0x76, 0x8f, 0xa7, 0x67, 0xc0, - 0x38, 0x2f, 0x3d, 0x35, 0xf0, 0xe1, 0x27, 0xfb, 0x1e, 0xfb, 0xf6, 0x2f, 0xff, 0xf8, 0x98, 0x51, - 0x83, 0xe2, 0xe6, 0x10, 0xd9, 0x13, 0xb5, 0x77, 0xdb, 0x0d, 0xac, 0xf6, 0xad, 0x10, 0xb6, 0xb0, - 0x64, 0x93, 0xa7, 0x73, 0x6f, 0xc0, 0xda, 0x55, 0xd2, 0x67, 0x2d, 0xb9, 0x5d, 0x27, 0x88, 0xac, - 0x0d, 0x4c, 0x9d, 0x0c, 0xdb, 0xfd, 0xd9, 0x27, 0xfb, 0x9e, 0xe2, 0x23, 0xe6, 0x37, 0xef, 0x8f, - 0xdb, 0x6e, 0x75, 0xc9, 0x0a, 0x16, 0xc7, 0x67, 0x9d, 0xe0, 0x27, 0xdf, 0x3b, 0x41, 0x60, 0x28, - 0x67, 0x9d, 0x00, 0xcc, 0xf3, 0xfa, 0x17, 0x1f, 0xff, 0x8f, 0xdf, 0xdd, 0x67, 0x98, 0x77, 0xc9, - 0xbe, 0xc8, 0x54, 0x8d, 0x0f, 0x43, 0x64, 0x6c, 0xd6, 0xb9, 0x1d, 0x76, 0x2f, 0xa0, 0xa1, 0x43, - 0x64, 0xab, 0xd5, 0x6c, 0x7a, 0xcc, 0xe7, 0x0c, 0x07, 0x6a, 0xe2, 0x27, 0x1d, 0x26, 0xfd, 0xd1, - 0x40, 0xd4, 0xed, 0xe6, 0xd0, 0xa6, 0xfd, 0xc6, 0x91, 0xc7, 0x6b, 0x5b, 0xa3, 0xdf, 0xb3, 0x4d, - 0xd3, 0x23, 0xfb, 0xd5, 0xed, 0x3e, 0x22, 0x2e, 0x75, 0xf2, 0x85, 0xc8, 0xe6, 0xab, 0xdd, 0x76, - 0x60, 0x6b, 0x08, 0xed, 0x25, 0x03, 0xc0, 0x80, 0x85, 0x94, 0x36, 0x1f, 0x19, 0xa8, 0x25, 0x0f, - 0x74, 0xa4, 0xde, 0x24, 0x87, 0x0a, 0x0c, 0x00, 0xb3, 0x53, 0x64, 0x2b, 0x47, 0xc6, 0xdb, 0x1f, - 0x9c, 0x78, 0x5a, 0x9e, 0x14, 0x50, 0xa9, 0xe5, 0xd6, 0x44, 0x39, 0xd3, 0x25, 0x47, 0xa3, 0xb6, - 0xa3, 0x57, 0xd3, 0x9e, 0xbb, 0x04, 0xed, 0x43, 0xd3, 0xb3, 0xce, 0x2d, 0xd6, 0x6e, 0x09, 0x06, - 0x87, 0xc9, 0x0e, 0xf8, 0x6e, 0xea, 0xf2, 0xd0, 0x6c, 0x87, 0xc7, 0x93, 0xc5, 0x23, 0xf4, 0x65, - 0x72, 0xac, 0x8c, 0xc1, 0x47, 0x34, 0x56, 0x82, 0xee, 0x15, 0xd6, 0x66, 0x0b, 0x56, 0xc0, 0xd2, - 0xdd, 0x38, 0xeb, 0x00, 0x94, 0x47, 0x41, 0xb7, 0xc0, 0xe0, 0x23, 0xa2, 0xfb, 0x7b, 0x06, 0x19, - 0x97, 0x7b, 0x1b, 0x70, 0xb8, 0x9e, 0x8a, 0xf4, 0x18, 0xd9, 0xd5, 0x14, 0x65, 0x32, 0xb4, 0x77, - 0xc6, 0x2f, 0x04, 0x71, 0xa4, 0x87, 0x36, 0x15, 0xf6, 0xd0, 0x66, 0xb9, 0x87, 0xde, 0x33, 0x48, - 0xb5, 0x34, 0xc6, 0x47, 0x36, 0x2d, 0x0e, 0xe9, 0x21, 0xac, 0xa9, 0x77, 0x34, 0xd3, 0xe2, 0x01, - 0x79, 0xb6, 0xc8, 0xe0, 0x23, 0xa2, 0x7a, 0x3a, 0x76, 0xff, 0x1d, 0xbb, 0x91, 0x76, 0xff, 0x12, - 0x5c, 0x43, 0x86, 0x9b, 0xac, 0x0c, 0x49, 0xa5, 0x47, 0x84, 0xaf, 0x09, 0xde, 0xf4, 0x06, 0x0b, - 0xc2, 0xe5, 0xfb, 0xba, 0xeb, 0xfb, 0x53, 0x5d, 0xa7, 0xd9, 0x66, 0x93, 0xc1, 0x54, 0xdb, 0x6d, - 0xdc, 0x2f, 0x46, 0x4b, 0x0f, 0x90, 0x27, 0xe6, 0xc3, 0xa2, 0xf5, 0x45, 0x66, 0x2f, 0x2c, 0x06, - 0x51, 0xdf, 0x6f, 0xae, 0x0d, 0x46, 0xcf, 0xae, 0x46, 0x8f, 0xcc, 0x06, 0x0c, 0xb8, 0xda, 0x0a, - 0xd0, 0xbb, 0x48, 0x06, 0xdb, 0xae, 0xef, 0xd7, 0xe7, 0xa3, 0xb7, 0xb0, 0xd6, 0x0e, 0xcb, 0x6e, - 0xf5, 0xae, 0xd5, 0xee, 0x32, 0x5e, 0xbd, 0x46, 0xda, 0x71, 0x53, 0xe6, 0x30, 0xf4, 0xda, 0x0d, - 0xf6, 0x20, 0xe0, 0x13, 0xb9, 0x29, 0x96, 0xda, 0x17, 0xc9, 0x50, 0xfe, 0x15, 0x98, 0x34, 0xc9, - 0x36, 0x87, 0x3d, 0x08, 0xea, 0x19, 0x7a, 0x83, 0x4e, 0x52, 0xd6, 0x1c, 0x27, 0xbb, 0x92, 0x01, - 0x29, 0x31, 0x80, 0x5f, 0x37, 0x20, 0xb6, 0x90, 0x27, 0xd7, 0x51, 0xb2, 0x25, 0x2a, 0x01, 0xbc, - 0x9e, 0x94, 0x79, 0xf1, 0xb2, 0xbc, 0x04, 0xdd, 0x43, 0xfa, 0xde, 0x4d, 0xba, 0x73, 0xa0, 0x06, - 0xbf, 0xc2, 0x2f, 0x82, 0xb5, 0x5a, 0xac, 0x11, 0xd8, 0xcb, 0xac, 0xee, 0xb1, 0x65, 0xe6, 0x74, - 0x59, 0xf4, 0x89, 0x0f, 0xd4, 0x76, 0xc6, 0x2f, 0x6a, 0xfc, 0xb9, 0xb9, 0x00, 0xb4, 0x27, 0xa3, - 0xa7, 0x51, 0xfb, 0x22, 0xce, 0xa1, 0xd7, 0x08, 0x49, 0x62, 0x53, 0x00, 0x34, 0x96, 0x59, 0xbf, - 0xec, 0xa5, 0x4e, 0x9b, 0x5d, 0xee, 0x7a, 0xbe, 0xeb, 0xcd, 0xc5, 0x65, 0xa1, 0x81, 0x5a, 0xaa, - 0xba, 0xf9, 0x2d, 0x83, 0x0c, 0x23, 0x96, 0x80, 0xf6, 0x18, 0xe9, 0x8b, 0x48, 0x89, 0x65, 0x12, - 0xe5, 0x0d, 0x45, 0xe8, 0x75, 0x09, 0xd7, 0xa6, 0x08, 0xd7, 0xf1, 0x72, 0xb8, 0xb8, 0x39, 0x09, - 0xd8, 0x97, 0xc8, 0x33, 0x11, 0xae, 0x59, 0x11, 0x15, 0xfa, 0x1b, 0x3a, 0xaf, 0xdf, 0x24, 0xa3, - 0xaa, 0xe6, 0x81, 0xfb, 0x05, 0x42, 0xe2, 0x88, 0x54, 0xc4, 0x8e, 0x43, 0x32, 0x9d, 0xa4, 0x72, - 0x2d, 0x55, 0xd6, 0x7c, 0x91, 0x1c, 0x88, 0xda, 0xbe, 0x6e, 0x05, 0xcc, 0x87, 0x99, 0x98, 0x94, - 0x2c, 0x9e, 0x83, 0xef, 0x19, 0xc4, 0xd4, 0x35, 0xb0, 0x5e, 0x80, 0x65, 0xfa, 0xe7, 0x57, 0xc9, - 0xde, 0x08, 0xc2, 0xb4, 0xeb, 0xb1, 0x86, 0xe5, 0x07, 0x1b, 0xdb, 0xfb, 0x77, 0x61, 0x70, 0xf3, - 0xad, 0x03, 0xb7, 0xb3, 0x64, 0xa0, 0x25, 0xde, 0x01, 0xb5, 0x4c, 0x88, 0x16, 0x57, 0xad, 0x25, - 0x25, 0x4d, 0x06, 0x3d, 0x7f, 0x2f, 0xda, 0xcf, 0xf0, 0xee, 0x8b, 0xfb, 0xa0, 0x04, 0xf4, 0x43, - 0x64, 0x3b, 0xdf, 0x0a, 0x65, 0x56, 0xe9, 0x6d, 0xfc, 0x29, 0xac, 0x57, 0xe6, 0x22, 0x8c, 0x8f, - 0xc2, 0x0c, 0x70, 0x98, 0x22, 0x3b, 0xdb, 0xd1, 0xab, 0x7a, 0xdc, 0xf5, 0x38, 0x95, 0xa4, 0xea, - 0x8e, 0xb6, 0xdc, 0x96, 0xf9, 0x3c, 0xa9, 0xa4, 0x2c, 0xdd, 0x70, 0x9b, 0x3c, 0x2a, 0x05, 0x26, - 0xcf, 0x10, 0xd2, 0xb6, 0xe7, 0x3b, 0x13, 0x9d, 0xfa, 0x7d, 0xb6, 0x02, 0xab, 0xeb, 0x00, 0x7f, - 0x72, 0x8d, 0xad, 0x98, 0x77, 0xc9, 0x08, 0x5a, 0x39, 0xde, 0x18, 0x0d, 0x84, 0x1b, 0xc2, 0x10, - 0x9d, 0x0b, 0xc0, 0x2a, 0x32, 0xb0, 0x9b, 0xad, 0x56, 0x63, 0xd1, 0xb2, 0x9d, 0xb0, 0x6a, 0xad, - 0xdf, 0x81, 0x06, 0xcc, 0x17, 0xa0, 0x5d, 0x08, 0x36, 0x7a, 0x44, 0x75, 0x0f, 0x66, 0x56, 0xae, - 0xf6, 0x7a, 0x61, 0x4d, 0x49, 0x83, 0x0f, 0x63, 0x35, 0xb5, 0x32, 0x37, 0x31, 0x77, 0x8d, 0xad, - 0x94, 0x04, 0xf7, 0xa2, 0x34, 0xb2, 0xb9, 0x36, 0x00, 0xa2, 0x72, 0xc7, 0x65, 0x5e, 0x86, 0xfa, - 0x35, 0x29, 0xaa, 0xeb, 0x11, 0xc4, 0x4b, 0xe4, 0xa0, 0xb6, 0x91, 0x42, 0x14, 0x3f, 0x30, 0xe4, - 0xd8, 0x60, 0x2d, 0x3e, 0xf4, 0x12, 0x19, 0x49, 0x7f, 0xc5, 0xf5, 0xb6, 0x25, 0x4d, 0x64, 0xfe, - 0x51, 0x0f, 0xa5, 0x3e, 0xea, 0xeb, 0x56, 0x6a, 0xe2, 0xd2, 0xf3, 0x64, 0x28, 0x5f, 0xdd, 0x63, - 0xef, 0x5a, 0x1e, 0x8f, 0x6b, 0x37, 0xd7, 0x9e, 0xca, 0xd4, 0xad, 0x45, 0x2f, 0xcd, 0x97, 0x81, - 0x3c, 0xff, 0xaa, 0x72, 0x04, 0x4a, 0xb8, 0x4f, 0x11, 0x18, 0xcd, 0xfa, 0x62, 0xe2, 0x3b, 0x0d, - 0x76, 0xc7, 0x69, 0x75, 0xdb, 0x2d, 0xbb, 0xdd, 0x66, 0xcd, 0x8d, 0x71, 0x61, 0x2d, 0x08, 0x8c, - 0xd4, 0x56, 0x60, 0x98, 0x2e, 0x91, 0x11, 0xdb, 0xaf, 0x83, 0x5b, 0x89, 0x32, 0x26, 0xf5, 0x6e, - 0x52, 0x2c, 0xb2, 0xdc, 0x5f, 0x1b, 0xb2, 0x15, 0xcd, 0x98, 0x93, 0xc0, 0x46, 0x6a, 0x1a, 0xbe, - 0x9c, 0x92, 0x1d, 0x22, 0x62, 0x38, 0x75, 0x13, 0x71, 0x0c, 0xd7, 0x17, 0x01, 0x14, 0x2e, 0xd7, - 0x94, 0xbf, 0x3b, 0x79, 0x03, 0x04, 0x75, 0xa1, 0x46, 0x3c, 0x6e, 0x29, 0x23, 0x29, 0x46, 0x65, - 0x60, 0xde, 0xce, 0x33, 0x95, 0x5b, 0x00, 0x94, 0xc7, 0x33, 0x28, 0x33, 0x09, 0x9d, 0x0c, 0xae, - 0xd7, 0x21, 0xd1, 0xc1, 0xa7, 0x90, 0x07, 0x13, 0xaa, 0xc6, 0x16, 0x3c, 0x16, 0x94, 0x98, 0x09, - 0xc3, 0xa4, 0xdf, 0x6a, 0x84, 0x7b, 0x18, 0xd8, 0x9a, 0x84, 0x5f, 0x59, 0xf8, 0x7b, 0xb6, 0x69, - 0xfe, 0x0a, 0xf8, 0x1b, 0xbc, 0x65, 0x00, 0x7b, 0x8e, 0xf4, 0x79, 0xd1, 0x13, 0x00, 0x3b, 0x9a, - 0x89, 0xa0, 0xec, 0x25, 0xe6, 0x07, 0xd6, 0x52, 0x87, 0x35, 0xa3, 0xe0, 0xb8, 0x06, 0xa5, 0xcd, - 0xd7, 0xa1, 0x3b, 0xc5, 0x32, 0xd7, 0x3b, 0xf2, 0x30, 0x0e, 0x8d, 0xba, 0x2f, 0x8e, 0x43, 0xa3, - 0x5f, 0xe6, 0x5b, 0xd0, 0xcd, 0xca, 0x96, 0xd7, 0x89, 0xfc, 0x2b, 0xe4, 0x48, 0xd4, 0xfe, 0x4d, - 0x87, 0xcd, 0x3a, 0x6b, 0x87, 0x3f, 0x4a, 0x48, 0x2b, 0xae, 0x0c, 0x14, 0x52, 0x4f, 0x42, 0xef, - 0xc7, 0xbd, 0x91, 0x07, 0x41, 0xb4, 0xf8, 0x69, 0x36, 0x20, 0x75, 0xa1, 0x07, 0xb0, 0x4e, 0x96, - 0x36, 0x39, 0x8e, 0x19, 0xb9, 0xc5, 0xda, 0xad, 0x0d, 0x66, 0x6a, 0x2e, 0x90, 0x13, 0x25, 0x4d, - 0xad, 0x93, 0x13, 0x8b, 0x5d, 0x5a, 0xda, 0x3d, 0x6c, 0xb8, 0xe7, 0xb4, 0x61, 0x4b, 0xaf, 0x31, - 0x03, 0x44, 0x5e, 0x22, 0x7b, 0x6d, 0xbf, 0x2e, 0x12, 0x27, 0x2a, 0xdf, 0x39, 0x6c, 0xab, 0x1a, - 0x32, 0xdf, 0x91, 0x77, 0xaf, 0xea, 0x60, 0xff, 0x2a, 0xa1, 0x0e, 0x2f, 0x53, 0xcf, 0xc5, 0xd4, - 0x9a, 0x4d, 0xec, 0x2e, 0x27, 0xdb, 0xb0, 0xf9, 0xd1, 0x16, 0xf8, 0xbe, 0x94, 0x0b, 0xd8, 0x46, - 0x9b, 0xa4, 0xd7, 0xc8, 0x0e, 0x98, 0xfb, 0x75, 0xbe, 0xd7, 0x0c, 0xc3, 0xd6, 0xcd, 0x98, 0xff, - 0x0e, 0x87, 0x39, 0x8c, 0x95, 0xbc, 0x25, 0xd6, 0xbc, 0x17, 0x15, 0xad, 0x6d, 0x87, 0xaa, 0xfc, - 0xa7, 0x4f, 0x5f, 0x23, 0x34, 0x99, 0x7b, 0x71, 0x7b, 0x9b, 0x4b, 0xb7, 0xb7, 0x2b, 0xa9, 0x2d, - 0x9a, 0xb4, 0xc8, 0xb0, 0x78, 0x38, 0xbb, 0xd4, 0x69, 0xdb, 0xac, 0x99, 0x80, 0x1f, 0x7a, 0x3c, - 0x6a, 0xf9, 0xa0, 0xdc, 0x32, 0x84, 0x5f, 0x41, 0xe0, 0xd9, 0xf3, 0xdd, 0x40, 0xcc, 0x53, 0x75, - 0x2b, 0xf4, 0x0c, 0xd9, 0x13, 0x77, 0x62, 0x5d, 0x9a, 0x80, 0x5b, 0xa2, 0x09, 0xb8, 0x3b, 0x7e, - 0x3b, 0x95, 0xcc, 0x44, 0x7a, 0x8c, 0xec, 0xe2, 0x39, 0x8b, 0x74, 0x85, 0xbe, 0xa8, 0xc2, 0x8e, - 0x28, 0x3d, 0x91, 0x2a, 0xfb, 0x6b, 0x06, 0x39, 0xd8, 0x70, 0x9d, 0x96, 0xdd, 0x8c, 0x6c, 0xd8, - 0x4e, 0xc0, 0xbc, 0x65, 0xab, 0x5d, 0xf7, 0xac, 0x77, 0xeb, 0x1d, 0xe6, 0x35, 0x98, 0x13, 0xd8, - 0x6d, 0xe6, 0x0f, 0x6d, 0xdd, 0xbf, 0xf9, 0xc8, 0xc0, 0xd4, 0x79, 0x48, 0xee, 0x54, 0x17, 0xec, - 0x60, 0xb1, 0x3b, 0x3f, 0xde, 0x70, 0x97, 0xaa, 0x56, 0xbb, 0xed, 0x7a, 0xd6, 0x09, 0x18, 0x3f, - 0xf1, 0x33, 0x8a, 0x64, 0x79, 0xda, 0xe7, 0x0a, 0x6b, 0xd4, 0xf6, 0x27, 0x36, 0x66, 0xc1, 0x44, - 0xcd, 0x7a, 0x77, 0x2e, 0x31, 0x40, 0xbb, 0xa4, 0x82, 0xe1, 0x58, 0x0e, 0xbb, 0xc8, 0x1f, 0xea, - 0x5f, 0x9f, 0xf9, 0xa1, 0xbc, 0xf9, 0xa8, 0xef, 0x7d, 0xf3, 0x2d, 0x72, 0x58, 0x8a, 0x77, 0x6a, - 0x6c, 0xc1, 0x0e, 0x07, 0x39, 0x1c, 0x06, 0x39, 0x67, 0xa3, 0x73, 0x0f, 0xa9, 0x98, 0x75, 0x93, - 0x1c, 0xb3, 0xde, 0x84, 0x65, 0x43, 0xdb, 0x3e, 0x7c, 0x3a, 0x07, 0xc9, 0xb6, 0xc8, 0x2f, 0x88, - 0x12, 0xe0, 0x08, 0x9e, 0x08, 0x1d, 0x81, 0x78, 0x66, 0xd6, 0xe3, 0x06, 0xe3, 0xb8, 0x65, 0x63, - 0x11, 0xcf, 0xc1, 0x3a, 0xa3, 0x37, 0xd0, 0x0b, 0xe4, 0x0b, 0xb0, 0x35, 0x9a, 0xf5, 0xef, 0x2d, - 0xda, 0x01, 0x6b, 0xdb, 0x7e, 0x30, 0xd9, 0x5c, 0xb2, 0x9d, 0xc2, 0x93, 0x1e, 0xf3, 0xa2, 0xc8, - 0x96, 0xe4, 0x6a, 0x82, 0xfd, 0x61, 0xd2, 0x6f, 0xfb, 0x75, 0x2b, 0x7c, 0x06, 0xa6, 0xb7, 0xda, - 0x7e, 0x54, 0xc4, 0x9c, 0x86, 0x38, 0x06, 0xd2, 0x95, 0x4b, 0xee, 0xb2, 0xd5, 0xf6, 0xa7, 0x5d, - 0x4f, 0xda, 0x29, 0x64, 0xfd, 0xba, 0x91, 0xf7, 0xeb, 0x6f, 0xc3, 0xde, 0x47, 0xd1, 0x4e, 0x1c, - 0x63, 0xf6, 0x7b, 0xf0, 0x0e, 0x92, 0x4a, 0xa3, 0xc8, 0xd9, 0x0b, 0x54, 0x8f, 0x36, 0x86, 0x71, - 0x79, 0xf3, 0x06, 0x76, 0x28, 0xb1, 0x0e, 0xc4, 0x1d, 0xec, 0xcc, 0x41, 0x89, 0x7c, 0x2a, 0x87, - 0xfc, 0x59, 0x19, 0x39, 0xd6, 0x4c, 0x86, 0xc1, 0x2d, 0x18, 0xe1, 0x5c, 0x91, 0x52, 0x13, 0x11, - 0x56, 0x42, 0x31, 0x11, 0xe1, 0xa7, 0xf9, 0x06, 0x0c, 0x7e, 0xbe, 0xd1, 0x38, 0x53, 0xb4, 0x15, - 0x10, 0xe0, 0x11, 0x41, 0xae, 0xa2, 0x28, 0x6e, 0xae, 0xc0, 0x62, 0xa6, 0xa4, 0x56, 0x8c, 0x7b, - 0x2f, 0x19, 0x88, 0x13, 0xfe, 0x80, 0x3c, 0x79, 0x90, 0x66, 0xb5, 0x59, 0x66, 0x65, 0xc3, 0xda, - 0xad, 0x36, 0x0d, 0xec, 0x5e, 0xce, 0xb2, 0x2b, 0x3b, 0x2c, 0x31, 0xcb, 0x0b, 0x90, 0xd0, 0x88, - 0x3e, 0xda, 0x70, 0x2f, 0x7a, 0xd9, 0x5d, 0x5a, 0xb2, 0x83, 0x52, 0x7b, 0xcd, 0xbd, 0x78, 0x4d, - 0xc0, 0x76, 0x85, 0x0c, 0x46, 0x3b, 0xdf, 0x46, 0xf4, 0x18, 0xf0, 0x1d, 0x54, 0xc6, 0x63, 0x93, - 0xe1, 0xd6, 0x22, 0x8a, 0x62, 0x6a, 0xa4, 0x1d, 0xb7, 0x66, 0x3e, 0x97, 0xb6, 0xc2, 0xf7, 0xc9, - 0xbc, 0x50, 0x31, 0xc0, 0xb3, 0x30, 0x37, 0xf2, 0x55, 0x01, 0xe1, 0x6e, 0xb2, 0x25, 0x0a, 0xac, - 0xe0, 0xfb, 0xe0, 0x3f, 0xe2, 0x50, 0x10, 0x3c, 0x5b, 0x92, 0xf6, 0xdf, 0xd8, 0x3c, 0xa0, 0x03, - 0xa1, 0xa0, 0xc6, 0x4c, 0xdc, 0x91, 0x4f, 0xa4, 0x8e, 0x17, 0x44, 0x9c, 0x74, 0x00, 0xdd, 0xa0, - 0xa6, 0xc2, 0x25, 0xbf, 0x36, 0x98, 0x9c, 0x33, 0x84, 0x9b, 0x41, 0xc9, 0xd5, 0xf1, 0xf4, 0x4a, - 0x37, 0x58, 0x74, 0x3d, 0x3b, 0x58, 0x59, 0xd7, 0x37, 0x18, 0xc8, 0xce, 0x2f, 0xdb, 0x32, 0xb0, - 0xb8, 0x41, 0x06, 0x2c, 0xf1, 0x70, 0xcd, 0xc7, 0x40, 0x49, 0x13, 0x66, 0x17, 0xac, 0x4a, 0x53, - 0x7c, 0xae, 0x6d, 0x35, 0xd8, 0x12, 0x73, 0x82, 0x75, 0x7f, 0x9c, 0x7b, 0x48, 0x5f, 0x60, 0x79, - 0x0b, 0x2c, 0x80, 0x6f, 0x13, 0x7e, 0x99, 0x36, 0x6c, 0x4e, 0x55, 0x66, 0x63, 0x87, 0xb9, 0x3d, - 0x39, 0x03, 0x4c, 0xa5, 0xf3, 0x46, 0xd0, 0xef, 0xd3, 0xf5, 0xa2, 0x8f, 0x72, 0x5b, 0x33, 0xfd, - 0xd3, 0x7c, 0x03, 0x73, 0x40, 0x77, 0x3a, 0x6e, 0xf6, 0x34, 0x56, 0xbf, 0x11, 0x06, 0x16, 0x9b, - 0x24, 0x16, 0x2e, 0xe6, 0x60, 0xa4, 0xa6, 0x81, 0xc7, 0x34, 0xd9, 0x12, 0xdd, 0x5a, 0x59, 0xf3, - 0x88, 0xf1, 0xea, 0xe6, 0x1b, 0x99, 0xd1, 0xe2, 0x9f, 0xe3, 0x1c, 0xf3, 0x6e, 0x2d, 0x5a, 0x1e, - 0x5b, 0xd7, 0xf4, 0xfb, 0x86, 0x91, 0x19, 0x92, 0x6c, 0xdb, 0x40, 0xc5, 0x22, 0x3b, 0x79, 0x12, - 0x2e, 0x8c, 0x59, 0xeb, 0x7e, 0xf8, 0x0e, 0x58, 0xad, 0x39, 0x64, 0xdc, 0xee, 0x49, 0xa6, 0xcc, - 0x06, 0xec, 0x8c, 0xd3, 0xee, 0x76, 0xda, 0xf5, 0xc4, 0x37, 0xe1, 0x34, 0x33, 0xb1, 0x57, 0x8a, - 0x94, 0x21, 0x91, 0xd2, 0x1d, 0x0b, 0xaf, 0xc2, 0x9e, 0xb8, 0xd8, 0x08, 0x10, 0xbf, 0x4e, 0x68, - 0x34, 0x08, 0x75, 0xf0, 0xf9, 0xe9, 0xf9, 0x58, 0xb4, 0x1a, 0xee, 0xf4, 0x33, 0x4f, 0xcc, 0x0f, - 0x0c, 0xc8, 0x2a, 0x61, 0x6b, 0x4b, 0xf9, 0x00, 0x44, 0xc3, 0x50, 0xfe, 0x32, 0x37, 0x6b, 0x96, - 0xcd, 0xc7, 0xe5, 0x99, 0xb0, 0x02, 0x2e, 0x0e, 0x47, 0x06, 0xbd, 0x71, 0x5b, 0xd3, 0x1b, 0x65, - 0x57, 0xcf, 0x7c, 0xaf, 0xbc, 0x00, 0x77, 0x95, 0xe6, 0x3c, 0xb6, 0x6c, 0xbb, 0x5d, 0x3f, 0x1a, - 0x03, 0xd8, 0x16, 0x16, 0xaf, 0x54, 0xef, 0x8b, 0x3e, 0x45, 0xab, 0x03, 0xf0, 0x9b, 0xf1, 0xe1, - 0xea, 0x3a, 0x67, 0xad, 0x38, 0x95, 0x1d, 0x21, 0x03, 0x8e, 0x1b, 0xd4, 0x5b, 0x6e, 0xd7, 0xe1, - 0x43, 0xd0, 0x5f, 0xeb, 0x77, 0xdc, 0x60, 0x3a, 0xfc, 0x6d, 0x9e, 0x49, 0x9f, 0xe6, 0xbf, 0xf2, - 0xc0, 0xf6, 0x83, 0x32, 0x79, 0xcc, 0x09, 0x38, 0xbb, 0x95, 0x6a, 0x01, 0xfe, 0x3d, 0xa4, 0x8f, - 0x45, 0x4f, 0x20, 0x08, 0x87, 0x5f, 0xe6, 0x39, 0x38, 0x85, 0x9d, 0xe5, 0xac, 0x27, 0xe1, 0x30, - 0xb8, 0xd0, 0xd6, 0x73, 0x70, 0x3e, 0x94, 0xa9, 0x07, 0xd6, 0x46, 0xc8, 0x40, 0x18, 0xf4, 0x47, - 0x0f, 0xc1, 0x60, 0xbf, 0xed, 0xf3, 0x42, 0x72, 0xd0, 0x33, 0xcd, 0xc4, 0xd1, 0x73, 0x09, 0xa3, - 0xef, 0xa4, 0xc3, 0x91, 0x74, 0x4d, 0x30, 0xfb, 0x1a, 0x19, 0x6c, 0xb1, 0xe4, 0x8c, 0x7b, 0xad, - 0x5e, 0x93, 0xb4, 0xe2, 0xa6, 0xcd, 0x67, 0x00, 0xec, 0xe5, 0xc5, 0xae, 0xe7, 0x58, 0xf3, 0x6d, - 0xf9, 0x48, 0xdc, 0xbc, 0x01, 0x88, 0x72, 0xaf, 0x01, 0xd1, 0x38, 0x79, 0xb2, 0x21, 0x5e, 0xc5, - 0xd7, 0x05, 0x78, 0x14, 0xff, 0x78, 0x6d, 0x57, 0x43, 0xaa, 0x35, 0xdb, 0xf4, 0xcd, 0xd1, 0xf8, - 0x8c, 0x2a, 0x74, 0x6d, 0x79, 0x7b, 0xaf, 0x41, 0x54, 0x95, 0x7f, 0x0f, 0x06, 0x4f, 0x92, 0xdd, - 0x5e, 0xfc, 0x2e, 0x67, 0x91, 0x7a, 0x72, 0xbd, 0xd0, 0xe4, 0x1d, 0x38, 0x90, 0x4e, 0x9f, 0x26, - 0x7a, 0xb7, 0x1a, 0x6e, 0xd9, 0x85, 0x41, 0x24, 0x43, 0x37, 0xc9, 0xc9, 0xd0, 0xeb, 0xf0, 0x4d, - 0x62, 0xcd, 0x26, 0x77, 0x1b, 0xa2, 0xcb, 0x95, 0xf8, 0xdd, 0x06, 0x5e, 0x96, 0x97, 0x30, 0xdf, - 0x92, 0x4e, 0xb6, 0x53, 0xb9, 0xc8, 0x92, 0x38, 0x8b, 0x52, 0x9d, 0x37, 0xa5, 0x83, 0xef, 0x5c, - 0xfb, 0xbd, 0x03, 0x96, 0x7b, 0x55, 0x5c, 0x09, 0x2c, 0xdf, 0xab, 0x8a, 0xe5, 0x56, 0xee, 0x55, - 0xb9, 0xd9, 0xde, 0x41, 0xc6, 0x79, 0x57, 0x91, 0xa3, 0x8a, 0xde, 0xfa, 0x77, 0x9c, 0xc0, 0x6e, - 0x6f, 0x60, 0xb0, 0x7d, 0x47, 0xe4, 0x5d, 0xd5, 0x66, 0x92, 0x6b, 0x1f, 0x11, 0x32, 0xc5, 0xb5, - 0x0f, 0x0e, 0x1e, 0x8a, 0x98, 0x8b, 0x90, 0x67, 0xe1, 0x69, 0x9b, 0x4c, 0xe3, 0x1b, 0xba, 0x5b, - 0x78, 0x03, 0xb6, 0xff, 0x7a, 0x4b, 0xc9, 0x29, 0x51, 0xcc, 0x01, 0x39, 0x25, 0xe2, 0x95, 0x62, - 0x12, 0xcd, 0xcc, 0xa1, 0xc8, 0xa3, 0x19, 0x81, 0xdb, 0x30, 0xd0, 0x6a, 0x2b, 0x6b, 0x19, 0x80, - 0x05, 0xc8, 0xcc, 0xf1, 0x6e, 0x91, 0xdb, 0xde, 0xd0, 0xfe, 0x7f, 0x5d, 0x1a, 0x69, 0x85, 0xa1, - 0x35, 0x75, 0xbf, 0x05, 0x7e, 0x05, 0xbe, 0x24, 0xff, 0x11, 0x80, 0xaf, 0xc9, 0x27, 0xf3, 0xfe, - 0x46, 0xc0, 0xbe, 0x07, 0x11, 0xcb, 0x75, 0xdb, 0x0f, 0x98, 0x63, 0x3b, 0x0b, 0x97, 0x5d, 0xd6, - 0x6a, 0xd9, 0x0d, 0xbb, 0xdc, 0xe6, 0x4b, 0xed, 0x5f, 0xbe, 0x2c, 0xfc, 0x2c, 0xda, 0x30, 0x60, - 0xbd, 0x47, 0x9e, 0x6a, 0x8b, 0xf7, 0xf5, 0x46, 0x52, 0x00, 0x3f, 0xbc, 0x45, 0x9b, 0xda, 0xdd, - 0x46, 0x9e, 0x9a, 0x6f, 0xc3, 0x77, 0x26, 0x02, 0xb1, 0x78, 0x3f, 0x14, 0x2e, 0x5a, 0xd3, 0x5e, - 0x18, 0x4f, 0xc4, 0x97, 0xc9, 0xd6, 0xc6, 0xef, 0x0f, 0x0c, 0xc8, 0xbc, 0x15, 0x98, 0x00, 0xa6, - 0x6f, 0x93, 0x1d, 0xb0, 0x6b, 0x69, 0xc1, 0xab, 0x0d, 0xda, 0xb4, 0x08, 0x4b, 0xfa, 0x30, 0xf0, - 0x6d, 0x32, 0x26, 0x81, 0x4d, 0x5d, 0xf5, 0xe9, 0xb1, 0x47, 0x54, 0x67, 0xb2, 0xdf, 0x31, 0x60, - 0xd3, 0x54, 0x68, 0xe2, 0xf3, 0xd1, 0x23, 0xf5, 0xcc, 0xf0, 0x09, 0x5f, 0xb0, 0x61, 0x1d, 0xf2, - 0x87, 0x46, 0xa6, 0xcf, 0x55, 0x16, 0x3e, 0x1f, 0xfd, 0x71, 0x8e, 0x9c, 0x91, 0xd0, 0xc2, 0x79, - 0x8d, 0xb5, 0x00, 0xe3, 0x77, 0xdb, 0x8d, 0xb6, 0x4f, 0xe2, 0xda, 0x45, 0x1c, 0x47, 0xfe, 0x8e, - 0x41, 0xce, 0xf6, 0x58, 0x11, 0x08, 0x37, 0xc9, 0xae, 0x4e, 0x5c, 0x56, 0x5c, 0xac, 0x59, 0x27, - 0xe5, 0x9d, 0x9d, 0x8c, 0x75, 0xf3, 0x10, 0x64, 0x15, 0x22, 0xa1, 0x8b, 0x40, 0x74, 0xc5, 0xf6, - 0xe1, 0x5c, 0x4e, 0xd0, 0xf8, 0x9a, 0xb8, 0x6f, 0xa4, 0x2c, 0x07, 0xa8, 0xdf, 0x24, 0x4f, 0x04, - 0x61, 0x91, 0x0d, 0x02, 0x3c, 0x18, 0x24, 0xf6, 0xcc, 0x97, 0xc0, 0xc1, 0xc7, 0xa9, 0x58, 0xbe, - 0x4c, 0xcd, 0x59, 0x2b, 0x6d, 0xd7, 0x6a, 0x96, 0xca, 0xe5, 0x1e, 0xd4, 0x36, 0x10, 0xdf, 0xe7, - 0xd9, 0xda, 0xe1, 0x8f, 0x7a, 0x49, 0xe7, 0x8a, 0x3a, 0xf1, 0x3d, 0x99, 0xd8, 0x0a, 0x0c, 0x6d, - 0x79, 0x9c, 0x2c, 0xee, 0x6c, 0x45, 0x0b, 0x1b, 0x02, 0x74, 0xe2, 0xfb, 0x4b, 0x64, 0x4b, 0x64, - 0x87, 0xde, 0x27, 0x7d, 0x5c, 0x25, 0x45, 0xf7, 0xcb, 0x2d, 0xe4, 0x45, 0x58, 0x95, 0x03, 0x9a, - 0x12, 0x1c, 0x97, 0xb9, 0xf7, 0x6b, 0x3f, 0xfd, 0xf7, 0xdf, 0xdc, 0xb4, 0x87, 0xee, 0xae, 0x22, - 0xba, 0x35, 0xfa, 0x4d, 0x83, 0x6c, 0x9f, 0x61, 0x41, 0xea, 0xbe, 0x37, 0x3d, 0x84, 0xb4, 0x99, - 0xbf, 0x2a, 0x5e, 0x79, 0xb6, 0xa8, 0x18, 0xd8, 0x3f, 0xf2, 0x8d, 0x70, 0x7b, 0x19, 0x81, 0x78, - 0x86, 0x8e, 0xc8, 0x20, 0xa4, 0xfb, 0xe4, 0xf4, 0x21, 0xe9, 0x9f, 0x61, 0xbc, 0x3e, 0xdd, 0x87, - 0xb4, 0x9e, 0xbe, 0x54, 0x5e, 0xd9, 0xaf, 0x2e, 0x00, 0x86, 0x8f, 0x27, 0x86, 0x0f, 0xd0, 0x7d, - 0xd5, 0xbc, 0x60, 0xce, 0xaf, 0x3e, 0x14, 0xb6, 0x57, 0xe9, 0xaf, 0x1b, 0x64, 0xc7, 0x0c, 0x0b, - 0xd2, 0xf7, 0xb2, 0x29, 0x46, 0x11, 0xb9, 0x22, 0x5e, 0x39, 0x5c, 0x58, 0xae, 0x44, 0x5f, 0xf0, - 0xbc, 0x41, 0x1d, 0x6e, 0x77, 0x7f, 0x62, 0x90, 0x03, 0x33, 0x2c, 0x40, 0xaf, 0xbc, 0x4e, 0xad, - 0x88, 0xa1, 0xaa, 0x22, 0x86, 0x75, 0x97, 0x71, 0x2b, 0x27, 0xcb, 0x57, 0x00, 0xc8, 0x77, 0x13, - 0xc8, 0xd7, 0xe8, 0x6c, 0x41, 0x2f, 0x82, 0xb2, 0xd1, 0xaf, 0x3e, 0x94, 0xef, 0xf5, 0xae, 0x56, - 0xb3, 0x57, 0x73, 0xe9, 0x9f, 0x18, 0x64, 0xf7, 0x0c, 0x0b, 0x72, 0x77, 0x44, 0xe8, 0x18, 0x02, - 0x51, 0x75, 0xa3, 0xb2, 0x72, 0xbc, 0x5c, 0x61, 0xe0, 0xf2, 0x52, 0xc2, 0xe5, 0x0c, 0x9d, 0xa8, - 0xe2, 0x72, 0x48, 0x89, 0xcf, 0xc3, 0x74, 0x9c, 0xbb, 0x4a, 0xbf, 0x6f, 0x90, 0xa1, 0x19, 0x16, - 0xa0, 0x17, 0xc5, 0xd1, 0xc1, 0xd0, 0xdd, 0x49, 0x47, 0x07, 0x43, 0x7b, 0x07, 0xdd, 0x3c, 0x9f, - 0x10, 0x38, 0x4e, 0x8f, 0xc9, 0x04, 0xb2, 0x3d, 0x2c, 0xcd, 0xee, 0xef, 0x1a, 0xe4, 0xc9, 0x19, - 0x16, 0x64, 0x2f, 0x80, 0xd3, 0x63, 0x08, 0x04, 0xc5, 0x1d, 0xf4, 0xca, 0x58, 0xa9, 0xb2, 0x80, - 0xf4, 0xc5, 0x04, 0xe9, 0x69, 0x7a, 0x4a, 0x46, 0x1a, 0x5f, 0x20, 0xd7, 0xf4, 0xf4, 0x8f, 0x0c, - 0x32, 0x12, 0xf9, 0x25, 0x5c, 0x07, 0x43, 0x27, 0x50, 0xef, 0xa3, 0x95, 0xe6, 0x54, 0x4e, 0xf7, - 0x54, 0x07, 0x88, 0x4c, 0x26, 0x44, 0xce, 0xd1, 0x33, 0x59, 0xf7, 0xc5, 0x2f, 0x14, 0xb5, 0x5d, - 0x5f, 0xc7, 0xe5, 0xeb, 0x06, 0xd9, 0x16, 0x39, 0x36, 0x21, 0x5f, 0xa5, 0x5f, 0x40, 0x9d, 0x57, - 0x46, 0xf7, 0x5a, 0x39, 0x54, 0x50, 0x0a, 0x10, 0x3e, 0x9b, 0x20, 0x1c, 0xa1, 0xc3, 0xd9, 0x2f, - 0x34, 0x5c, 0xfe, 0xa3, 0xd4, 0x71, 0x38, 0x79, 0xf7, 0xcc, 0xb0, 0x00, 0x11, 0x6a, 0xd2, 0x13, - 0x88, 0x25, 0xb5, 0x62, 0xb4, 0x32, 0x5e, 0xb6, 0x38, 0x20, 0xbc, 0x94, 0x20, 0x9c, 0xa0, 0x27, - 0xab, 0x98, 0xe0, 0x99, 0x63, 0xac, 0x3e, 0x8c, 0x1d, 0x46, 0x6a, 0xf2, 0xfe, 0x25, 0x9f, 0x0b, - 0x2a, 0x99, 0x29, 0x3a, 0x17, 0x0a, 0x44, 0xaf, 0xe8, 0x5c, 0x28, 0xd2, 0xb1, 0x9a, 0x67, 0x13, - 0x1e, 0xc7, 0xe8, 0x11, 0x94, 0x87, 0xcf, 0x89, 0x48, 0x1f, 0xdf, 0xbf, 0x19, 0x64, 0xff, 0x0c, - 0x0b, 0xb4, 0xca, 0x52, 0x7a, 0x1e, 0x01, 0x54, 0x46, 0xfc, 0x5a, 0xb9, 0xd0, 0x7b, 0x45, 0xa0, - 0xf3, 0xc5, 0x84, 0xce, 0x4b, 0xf4, 0x92, 0x66, 0x58, 0xea, 0x3e, 0x6b, 0xb7, 0xaa, 0x0f, 0x33, - 0x92, 0x4a, 0x69, 0x8c, 0x7e, 0xc1, 0x39, 0x6a, 0xe5, 0xa4, 0x28, 0xc7, 0x32, 0x8a, 0x57, 0x94, - 0x63, 0x29, 0xe5, 0xaa, 0x79, 0x23, 0xe1, 0x78, 0x99, 0x4e, 0xe2, 0x1c, 0xe1, 0x9c, 0x87, 0x89, - 0x39, 0xa8, 0xe3, 0xf9, 0xd5, 0x4d, 0xe4, 0x50, 0x7a, 0x2c, 0x95, 0x9a, 0x50, 0xfa, 0x82, 0x6e, - 0x5c, 0x8a, 0xe4, 0xae, 0x95, 0x4b, 0x6b, 0xac, 0x0d, 0xb4, 0xdf, 0x4c, 0x68, 0xdf, 0xa4, 0xaf, - 0xca, 0xb4, 0xb3, 0x74, 0x73, 0xc2, 0xd1, 0x55, 0x7d, 0x17, 0xfc, 0xd4, 0x20, 0x7b, 0x75, 0x5d, - 0x40, 0x4f, 0xf7, 0x82, 0x5d, 0x10, 0x3e, 0xd3, 0x5b, 0x25, 0xe0, 0x79, 0x35, 0xe1, 0x79, 0x89, - 0x3e, 0xdf, 0x3b, 0xcf, 0x84, 0xd5, 0x37, 0x85, 0x93, 0x16, 0x4a, 0x52, 0x85, 0x93, 0xce, 0xa8, - 0x53, 0x15, 0x4e, 0x3a, 0x2b, 0x47, 0x35, 0xc7, 0x12, 0xa0, 0xfb, 0xe9, 0x68, 0x35, 0xff, 0x37, - 0x1a, 0xd2, 0x58, 0xfe, 0x8c, 0x87, 0x19, 0xe8, 0xfd, 0x28, 0x34, 0xcc, 0xd0, 0xdd, 0xcc, 0x42, - 0xc3, 0x0c, 0xed, 0xd5, 0x2b, 0xf3, 0x42, 0x02, 0xf6, 0x04, 0x1d, 0x43, 0xc0, 0x8a, 0x83, 0x4c, - 0x3f, 0xbb, 0xd4, 0x7d, 0x8c, 0xb8, 0x81, 0x1c, 0x83, 0x42, 0x37, 0xa0, 0x62, 0x72, 0xa1, 0xf7, - 0x8a, 0x25, 0x56, 0x71, 0x79, 0x9e, 0x28, 0xa9, 0x7d, 0x87, 0x87, 0x50, 0xd9, 0x83, 0x59, 0x34, - 0x84, 0x52, 0xdc, 0xdb, 0x42, 0x43, 0x28, 0xd5, 0x45, 0x2b, 0xed, 0xaa, 0x29, 0x41, 0x95, 0x42, - 0x0f, 0xf8, 0x72, 0x57, 0xe9, 0xcf, 0xf8, 0xaa, 0xa9, 0x3a, 0x50, 0x46, 0x57, 0xcd, 0x82, 0x7b, - 0x67, 0xe8, 0xaa, 0x59, 0x74, 0x61, 0xcc, 0xac, 0x25, 0x3c, 0x66, 0xe8, 0x2b, 0x65, 0xfa, 0x5e, - 0x22, 0x14, 0x7f, 0xb6, 0x69, 0x72, 0x1f, 0x18, 0x64, 0x57, 0xbc, 0x3d, 0x12, 0x9a, 0x36, 0x7a, - 0x44, 0xb9, 0xbb, 0xc9, 0x88, 0xe6, 0x2a, 0x47, 0x4b, 0x94, 0x04, 0xf8, 0xe3, 0x09, 0xfc, 0x83, - 0xf4, 0x40, 0x15, 0xf9, 0x43, 0x2e, 0xd5, 0x87, 0x89, 0xbc, 0x6c, 0x95, 0xfe, 0xb6, 0x41, 0x68, - 0x12, 0x66, 0xc5, 0xd8, 0x8e, 0xaa, 0x63, 0xa6, 0x2c, 0xb8, 0x63, 0x65, 0x8a, 0x02, 0xba, 0x6a, - 0x82, 0xee, 0x0b, 0xd4, 0x44, 0xd7, 0x37, 0x19, 0xde, 0x9f, 0x72, 0xdf, 0x82, 0x2a, 0xee, 0x34, - 0xfb, 0x49, 0x5c, 0x5a, 0xa7, 0xd9, 0x4f, 0x2a, 0x64, 0x74, 0xe6, 0xb9, 0x04, 0xf0, 0x18, 0x3d, - 0x8a, 0x75, 0xa7, 0x70, 0xcf, 0x32, 0xee, 0x1f, 0x18, 0x64, 0x38, 0xe9, 0xd6, 0x2c, 0xf0, 0x93, - 0xea, 0x2e, 0x53, 0x20, 0x3f, 0xd5, 0x43, 0x8d, 0x12, 0xbb, 0xaf, 0xcc, 0x82, 0x29, 0x63, 0xff, - 0x47, 0x83, 0x8c, 0x68, 0x2e, 0x5a, 0xd3, 0xb3, 0xd8, 0x2e, 0xb6, 0xf0, 0xe2, 0x77, 0xe5, 0x5c, - 0xaf, 0xd5, 0x4a, 0x38, 0x43, 0x18, 0x82, 0xe4, 0xe6, 0xb4, 0xf4, 0x2d, 0x8a, 0x85, 0x33, 0x8a, - 0x01, 0x74, 0x17, 0xb1, 0x29, 0x8e, 0xad, 0xf0, 0x6a, 0x78, 0xe5, 0x7c, 0xcf, 0xf5, 0x80, 0xd4, - 0x54, 0x42, 0xea, 0x3c, 0x3d, 0x8b, 0x0f, 0x4e, 0x11, 0xab, 0x6f, 0x6d, 0x4a, 0x6f, 0x3a, 0xf3, - 0xa9, 0x09, 0xcd, 0xa6, 0x53, 0x99, 0xa1, 0x38, 0xdd, 0x53, 0x1d, 0x20, 0xf3, 0x1b, 0x46, 0xc2, - 0xe6, 0x3d, 0x83, 0x7e, 0x05, 0xdf, 0x76, 0xe2, 0x29, 0x0b, 0x59, 0x39, 0x2a, 0xaf, 0x62, 0x19, - 0x59, 0x29, 0x14, 0xe6, 0xd9, 0x61, 0xac, 0x24, 0x7f, 0xb3, 0x4a, 0xff, 0x82, 0x7f, 0x7c, 0xb8, - 0xc6, 0x86, 0x9e, 0x52, 0xe6, 0x31, 0x54, 0x7a, 0xd2, 0xca, 0x44, 0x2f, 0x55, 0x4a, 0x44, 0x25, - 0xda, 0x2e, 0xa1, 0x7f, 0x63, 0x10, 0x33, 0x86, 0x3f, 0xb9, 0x6c, 0xd9, 0x6d, 0x6b, 0xbe, 0xcd, - 0xfe, 0xff, 0xf1, 0xf8, 0xc8, 0x20, 0x43, 0x2a, 0x01, 0x2c, 0x3a, 0x39, 0x0b, 0x34, 0xb9, 0xe8, - 0xe4, 0x2c, 0x52, 0xd8, 0x9a, 0x73, 0x09, 0xfe, 0x57, 0xe8, 0xe5, 0x4c, 0x16, 0x4d, 0x2d, 0xbd, - 0xd5, 0x24, 0x48, 0xfe, 0xd9, 0x20, 0xc3, 0x4a, 0x79, 0x1a, 0x3d, 0xad, 0x73, 0x09, 0x2a, 0x66, - 0x67, 0x7a, 0xab, 0x04, 0xd4, 0x5e, 0x4b, 0xa8, 0x4d, 0xd3, 0x2b, 0x39, 0x6a, 0x4a, 0x69, 0x9c, - 0x86, 0xdb, 0x5f, 0x1b, 0xa4, 0x32, 0xc3, 0x02, 0x85, 0xca, 0x16, 0x9d, 0x73, 0x7a, 0x4d, 0x2f, - 0x3a, 0xe7, 0x0a, 0x44, 0xbc, 0xda, 0xcc, 0x67, 0x8a, 0x87, 0x34, 0x78, 0xd2, 0xd4, 0xfb, 0x90, - 0x47, 0x93, 0x2a, 0x4d, 0x33, 0x2d, 0x00, 0x85, 0x69, 0xa8, 0xd1, 0xd9, 0x57, 0x24, 0x9a, 0x36, - 0x5f, 0x4e, 0x98, 0x9c, 0xa5, 0xa7, 0xd5, 0x4c, 0xa4, 0xb1, 0x92, 0xa8, 0xfc, 0x95, 0x41, 0x9e, - 0x8e, 0x33, 0xcf, 0xb2, 0x4e, 0x95, 0x8e, 0x2b, 0xf3, 0xc9, 0xa8, 0xa2, 0xb6, 0x52, 0x2d, 0x5d, - 0x1e, 0xe0, 0xcf, 0x24, 0xf0, 0x5f, 0xa0, 0x17, 0xb1, 0x14, 0xb4, 0x57, 0x17, 0x4e, 0x80, 0xeb, - 0x44, 0xe5, 0xa5, 0x0a, 0xc4, 0xd1, 0xab, 0xf4, 0x1f, 0xf8, 0xbc, 0x52, 0x08, 0x6e, 0xd1, 0x79, - 0xa5, 0x57, 0x07, 0xa3, 0xf3, 0xaa, 0x40, 0xcf, 0xab, 0xdd, 0x7f, 0xa7, 0x74, 0x8d, 0x1a, 0x46, - 0x7c, 0xc6, 0xad, 0xd2, 0xff, 0x31, 0xc8, 0xbe, 0x19, 0x16, 0xe8, 0x54, 0xc4, 0x68, 0x50, 0x51, - 0x42, 0xf7, 0x8c, 0x06, 0x15, 0x65, 0xe4, 0xca, 0xe6, 0x97, 0x12, 0x7a, 0x35, 0x3a, 0x27, 0xd3, - 0x73, 0x1d, 0x56, 0xb7, 0x9d, 0x7a, 0x39, 0x96, 0x49, 0xa9, 0xd5, 0xea, 0x43, 0x18, 0xe7, 0x55, - 0xfa, 0xbf, 0x06, 0x39, 0x98, 0xe7, 0x9c, 0x53, 0x1a, 0xd3, 0x8b, 0xc5, 0xf8, 0x55, 0x4a, 0xe8, - 0xca, 0xf3, 0x6b, 0xaa, 0x0b, 0xfc, 0x5f, 0x4f, 0xf8, 0xbf, 0x4a, 0xaf, 0x15, 0xf1, 0xf7, 0x59, - 0xbb, 0x55, 0xb2, 0x13, 0xc2, 0x5d, 0xd2, 0xce, 0xac, 0x7a, 0x0e, 0xdd, 0x4a, 0x2b, 0xc4, 0x79, - 0xe8, 0x56, 0x5a, 0x25, 0xc7, 0x33, 0xab, 0x11, 0x85, 0xa3, 0xf4, 0x70, 0x26, 0xd8, 0x15, 0xa5, - 0xb9, 0x52, 0x2f, 0x15, 0x09, 0x7e, 0x97, 0xe7, 0xb8, 0x32, 0x67, 0xd3, 0x5c, 0x1f, 0xa4, 0xdc, - 0xce, 0xe1, 0x7a, 0x26, 0x74, 0x3b, 0xa7, 0x10, 0x30, 0x69, 0xb7, 0x18, 0xbc, 0x27, 0x53, 0xfa, - 0xa6, 0xb4, 0x53, 0xfb, 0x23, 0x83, 0x3c, 0x93, 0x06, 0x0c, 0xce, 0xf3, 0x73, 0x8c, 0xf8, 0xdb, - 0x3c, 0x9f, 0x92, 0x55, 0x4a, 0xd1, 0x63, 0xea, 0x83, 0xdd, 0xac, 0x12, 0x0b, 0x9d, 0x04, 0x2a, - 0xe9, 0x95, 0x36, 0xee, 0xe2, 0xb0, 0xe0, 0x4e, 0x4b, 0xb4, 0x64, 0xa4, 0xa1, 0xfe, 0x13, 0x9f, - 0x0d, 0x4a, 0xd9, 0x14, 0x1a, 0xa2, 0x14, 0x69, 0xb9, 0xd0, 0x10, 0xa5, 0x50, 0x99, 0x65, 0xce, - 0x26, 0x2c, 0x5e, 0xa4, 0x2f, 0xe0, 0xfb, 0x9c, 0xb4, 0x74, 0x4b, 0x13, 0x9a, 0xfc, 0xad, 0x94, - 0x66, 0x94, 0x35, 0x54, 0xba, 0x34, 0x23, 0xaa, 0xe3, 0xd2, 0xa5, 0x19, 0x71, 0x79, 0x96, 0x76, - 0x2d, 0x14, 0xf9, 0x20, 0xd8, 0x55, 0x8b, 0xba, 0x78, 0xaa, 0xeb, 0x23, 0xbe, 0x3d, 0xc1, 0xf5, - 0x51, 0x68, 0x6e, 0x40, 0xab, 0xe0, 0x42, 0x73, 0x03, 0x7a, 0xf1, 0x95, 0x79, 0x2b, 0xe1, 0x72, - 0x95, 0x4e, 0x6b, 0x93, 0x5c, 0x1d, 0x51, 0x59, 0x99, 0xe6, 0xe2, 0x8a, 0xa9, 0x55, 0xfa, 0x13, - 0x24, 0x85, 0x97, 0x52, 0x4c, 0x15, 0xa7, 0xf0, 0xf2, 0xca, 0xad, 0xe2, 0x14, 0x1e, 0x22, 0xc9, - 0xd2, 0x9e, 0x14, 0x65, 0xd8, 0x75, 0x3b, 0xae, 0x53, 0x8f, 0x33, 0x4f, 0x29, 0x82, 0x82, 0xd4, - 0xdf, 0xc9, 0x83, 0x25, 0x2b, 0xa7, 0xb4, 0x83, 0x85, 0x0a, 0xb8, 0xb4, 0x83, 0x85, 0xcb, 0xb2, - 0xb4, 0xdf, 0x50, 0x4c, 0x27, 0x2b, 0xdc, 0xc2, 0xa7, 0xde, 0xcf, 0xf9, 0x12, 0x5e, 0x24, 0x8c, - 0x42, 0x97, 0xf0, 0x92, 0x92, 0x2d, 0x74, 0x09, 0x2f, 0xab, 0xc4, 0xea, 0x25, 0x8b, 0x2c, 0x48, - 0xa5, 0x5d, 0xdf, 0xcf, 0x79, 0xb0, 0x8c, 0x25, 0x79, 0xd1, 0x60, 0x59, 0xa3, 0xd0, 0x42, 0x83, - 0x65, 0x9d, 0x6e, 0xca, 0xb4, 0x12, 0xec, 0x77, 0xe9, 0xed, 0x72, 0x99, 0x63, 0xc9, 0xc5, 0x15, - 0x27, 0x92, 0xbf, 0xc7, 0x0f, 0xc5, 0x11, 0x11, 0x14, 0x7a, 0x28, 0xae, 0xd6, 0x5a, 0xa1, 0x87, - 0xe2, 0x1a, 0x6d, 0x95, 0xf9, 0x7c, 0x42, 0xee, 0x24, 0x1d, 0xcf, 0x5c, 0xce, 0x82, 0x7a, 0x70, - 0x37, 0x8a, 0x8b, 0xa7, 0xd2, 0xc3, 0xf2, 0xbe, 0x41, 0x06, 0x53, 0x82, 0x27, 0xaa, 0x3c, 0x85, - 0x92, 0x64, 0x54, 0xe8, 0x9d, 0x2d, 0x44, 0x37, 0x65, 0x4e, 0x24, 0xd8, 0x0e, 0xd3, 0x43, 0xd8, - 0x52, 0xc9, 0x85, 0x54, 0x69, 0x48, 0xbf, 0x65, 0x90, 0x6d, 0x92, 0x2e, 0x8a, 0x1e, 0x46, 0x43, - 0xb4, 0xbc, 0xe2, 0xaa, 0x72, 0xa4, 0xb8, 0x60, 0x89, 0x13, 0x78, 0x5b, 0x74, 0x17, 0xbf, 0x49, - 0x95, 0xc6, 0xf6, 0xfb, 0x3c, 0x27, 0x9f, 0x51, 0x50, 0xa9, 0x43, 0xa2, 0x9c, 0x3e, 0x4b, 0x1d, - 0x12, 0xe5, 0x05, 0x59, 0x25, 0x42, 0xa2, 0x94, 0x5e, 0x2b, 0x0d, 0xf3, 0x03, 0x0e, 0x33, 0x23, - 0xab, 0x42, 0x61, 0xe2, 0xca, 0x2c, 0x14, 0xa6, 0x42, 0xa5, 0xa5, 0x3d, 0x92, 0xcc, 0xc8, 0xb7, - 0xfc, 0x30, 0x5e, 0x7f, 0x32, 0x0a, 0x81, 0x64, 0x05, 0x16, 0xc5, 0xcf, 0x2a, 0x50, 0x19, 0x17, - 0x1a, 0xad, 0xa9, 0x24, 0x5d, 0xda, 0xdb, 0x7b, 0x59, 0xad, 0x97, 0x4f, 0xff, 0xdc, 0x20, 0x4f, - 0xc5, 0x19, 0xbe, 0xb4, 0xec, 0x8a, 0x1e, 0x57, 0x66, 0xe8, 0x10, 0xd1, 0x57, 0xe5, 0x44, 0xc9, - 0xd2, 0x00, 0xf2, 0x4a, 0x02, 0xf2, 0x39, 0x7a, 0x5e, 0x73, 0x1f, 0xcb, 0xab, 0x47, 0x1a, 0x06, - 0xc9, 0x1f, 0xc5, 0xdb, 0xc0, 0x1f, 0xa5, 0x6f, 0x95, 0x65, 0x54, 0x58, 0x9a, 0x5b, 0x65, 0xb8, - 0x1e, 0x4c, 0x73, 0xab, 0x4c, 0x21, 0xf0, 0xd2, 0xae, 0xee, 0xc0, 0x22, 0xbd, 0xcb, 0xcb, 0x11, - 0x49, 0xef, 0xeb, 0xa4, 0x81, 0x48, 0x2b, 0xb5, 0x34, 0x03, 0x81, 0xe8, 0xc4, 0x34, 0x03, 0x81, - 0xc9, 0xbf, 0xca, 0x0c, 0x44, 0x7c, 0xa3, 0x25, 0x87, 0x3f, 0x5e, 0x0c, 0xfe, 0x85, 0xc7, 0xf9, - 0x4a, 0xc5, 0x16, 0x9e, 0x8a, 0x2c, 0x90, 0x91, 0xe1, 0xa9, 0xc8, 0x22, 0x51, 0x98, 0x3e, 0x15, - 0x19, 0xff, 0xed, 0x25, 0xae, 0x8c, 0xa9, 0x77, 0xc3, 0xfa, 0xfc, 0xef, 0x2a, 0x69, 0xe2, 0xfd, - 0xff, 0xe4, 0x29, 0x16, 0x9d, 0x9e, 0x0b, 0x4d, 0xb1, 0x94, 0x90, 0x9a, 0xa1, 0x29, 0x96, 0x32, - 0xc2, 0x31, 0xf3, 0x4e, 0xc2, 0xf3, 0x8b, 0xf4, 0x2a, 0x7a, 0x18, 0x95, 0xa3, 0x6b, 0x05, 0x85, - 0x5c, 0x3f, 0xe6, 0xa1, 0xb3, 0x4a, 0xfa, 0x45, 0x75, 0xc9, 0x2e, 0xd5, 0x40, 0x9e, 0xee, 0xa9, - 0x4e, 0x89, 0x6c, 0xb9, 0xf8, 0x70, 0x7a, 0x1b, 0xc6, 0x5f, 0x18, 0x64, 0x34, 0x1e, 0x46, 0x54, - 0x16, 0x86, 0x1e, 0x28, 0x16, 0xeb, 0xd5, 0x2a, 0xe7, 0x7a, 0xad, 0x06, 0x1c, 0x6f, 0x27, 0x1c, - 0x67, 0xe9, 0x0c, 0x3a, 0x86, 0x59, 0xaa, 0x25, 0x86, 0xf0, 0xef, 0xb9, 0x5b, 0x44, 0x15, 0x64, - 0xa8, 0x5b, 0xd4, 0xc9, 0xd9, 0x2a, 0x27, 0xcb, 0x57, 0x00, 0x56, 0xaf, 0x26, 0xac, 0xa6, 0xe8, - 0xcb, 0xaa, 0xdb, 0x7e, 0xa5, 0xe9, 0xfc, 0x90, 0x47, 0xd2, 0x98, 0x30, 0x0c, 0x8d, 0xa4, 0x35, - 0x2a, 0x37, 0x34, 0x92, 0xd6, 0x89, 0xd7, 0xcc, 0x57, 0x12, 0x2e, 0x17, 0xe9, 0x85, 0x8c, 0x7f, - 0xc4, 0x54, 0x6d, 0xb8, 0x83, 0xfc, 0x25, 0xbf, 0xde, 0xa3, 0x95, 0x91, 0xa1, 0xd7, 0x7b, 0xca, - 0x68, 0xdb, 0xd0, 0xeb, 0x3d, 0xa5, 0x14, 0x6b, 0xda, 0x8f, 0x2c, 0x8e, 0xa5, 0x93, 0x53, 0x60, - 0x49, 0xb9, 0x84, 0x33, 0xfd, 0x6f, 0x7e, 0x64, 0x58, 0x20, 0x10, 0xa3, 0xcf, 0x69, 0x20, 0xeb, - 0x75, 0x6b, 0x95, 0x8b, 0x6b, 0xa9, 0x5a, 0x62, 0x71, 0x88, 0xf9, 0x26, 0x6e, 0x53, 0xc7, 0x58, - 0xe4, 0xdf, 0xff, 0x8b, 0x0b, 0x0e, 0xf4, 0x02, 0x30, 0xaa, 0x1b, 0x22, 0xad, 0x2a, 0xad, 0xf2, - 0xdc, 0x1a, 0x6a, 0xf6, 0x32, 0xba, 0xb1, 0x83, 0x29, 0x43, 0xf6, 0xab, 0x9b, 0xc8, 0x58, 0x8a, - 0x6c, 0x91, 0x0c, 0x8c, 0x4e, 0x69, 0xc0, 0x97, 0x14, 0x9f, 0x55, 0x2e, 0xaf, 0xab, 0x8d, 0x12, - 0xe7, 0x2d, 0x71, 0x57, 0xe4, 0x94, 0x6a, 0xf5, 0xc0, 0xe5, 0xdb, 0xe4, 0xf8, 0x58, 0x2c, 0x8a, - 0x98, 0x2b, 0xe2, 0x52, 0x7a, 0x5e, 0x42, 0x86, 0x9e, 0x1f, 0xe9, 0x65, 0x69, 0xe8, 0xf9, 0x51, - 0x81, 0x42, 0x4d, 0xbb, 0x9f, 0x4b, 0x4b, 0xd7, 0x42, 0x06, 0xcd, 0x04, 0xdd, 0x0f, 0x79, 0x0e, - 0x09, 0x97, 0x8e, 0xa1, 0x39, 0x24, 0xad, 0x4c, 0xad, 0x72, 0xaa, 0x87, 0x1a, 0x25, 0x4e, 0x54, - 0x53, 0x79, 0x6f, 0x58, 0xfe, 0x40, 0xe5, 0x95, 0xb9, 0x94, 0x50, 0x41, 0x32, 0xf6, 0x82, 0x84, - 0x16, 0x12, 0x2a, 0x62, 0x53, 0x0c, 0x80, 0x56, 0xb5, 0xa6, 0x3d, 0x4e, 0x4d, 0xd1, 0x10, 0xbe, - 0x33, 0xcf, 0x63, 0xaa, 0xf6, 0xe1, 0xa7, 0xa3, 0xc6, 0x8f, 0x3f, 0x1d, 0x35, 0xfe, 0xf5, 0xd3, - 0x51, 0xe3, 0xfd, 0xcf, 0x46, 0x1f, 0xfb, 0xf1, 0x67, 0xa3, 0x8f, 0x7d, 0xfc, 0xd9, 0xe8, 0x63, - 0x6f, 0x5e, 0x28, 0x29, 0x30, 0x7c, 0x90, 0x32, 0x1b, 0xfd, 0x3b, 0x6f, 0xf3, 0x7d, 0xd1, 0x3f, - 0x3c, 0x76, 0xfa, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x98, 0x20, 0x7a, 0x3c, 0x58, 0x6e, 0x00, - 0x00, + proto.RegisterType((*QueryNaiveInfererNetworkRegretRequest)(nil), "emissions.v2.QueryNaiveInfererNetworkRegretRequest") + proto.RegisterType((*QueryNaiveInfererNetworkRegretResponse)(nil), "emissions.v2.QueryNaiveInfererNetworkRegretResponse") + proto.RegisterType((*QueryOneOutInfererInfererNetworkRegretRequest)(nil), "emissions.v2.QueryOneOutInfererInfererNetworkRegretRequest") + proto.RegisterType((*QueryOneOutInfererInfererNetworkRegretResponse)(nil), "emissions.v2.QueryOneOutInfererInfererNetworkRegretResponse") + proto.RegisterType((*QueryOneOutInfererForecasterNetworkRegretRequest)(nil), "emissions.v2.QueryOneOutInfererForecasterNetworkRegretRequest") + proto.RegisterType((*QueryOneOutInfererForecasterNetworkRegretResponse)(nil), "emissions.v2.QueryOneOutInfererForecasterNetworkRegretResponse") + proto.RegisterType((*QueryOneOutForecasterInfererNetworkRegretRequest)(nil), "emissions.v2.QueryOneOutForecasterInfererNetworkRegretRequest") + proto.RegisterType((*QueryOneOutForecasterInfererNetworkRegretResponse)(nil), "emissions.v2.QueryOneOutForecasterInfererNetworkRegretResponse") + proto.RegisterType((*QueryOneOutForecasterForecasterNetworkRegretRequest)(nil), "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretRequest") + proto.RegisterType((*QueryOneOutForecasterForecasterNetworkRegretResponse)(nil), "emissions.v2.QueryOneOutForecasterForecasterNetworkRegretResponse") + proto.RegisterType((*QueryParamsRequest)(nil), "emissions.v2.QueryParamsRequest") + proto.RegisterType((*QueryParamsResponse)(nil), "emissions.v2.QueryParamsResponse") + proto.RegisterType((*QueryTotalStakeRequest)(nil), "emissions.v2.QueryTotalStakeRequest") + proto.RegisterType((*QueryTotalStakeResponse)(nil), "emissions.v2.QueryTotalStakeResponse") + proto.RegisterType((*QueryReputerStakeInTopicRequest)(nil), "emissions.v2.QueryReputerStakeInTopicRequest") + proto.RegisterType((*QueryReputerStakeInTopicResponse)(nil), "emissions.v2.QueryReputerStakeInTopicResponse") + proto.RegisterType((*QueryMultiReputerStakeInTopicRequest)(nil), "emissions.v2.QueryMultiReputerStakeInTopicRequest") + proto.RegisterType((*QueryMultiReputerStakeInTopicResponse)(nil), "emissions.v2.QueryMultiReputerStakeInTopicResponse") + proto.RegisterType((*QueryStakeFromReputerInTopicInSelfRequest)(nil), "emissions.v2.QueryStakeFromReputerInTopicInSelfRequest") + proto.RegisterType((*QueryStakeFromReputerInTopicInSelfResponse)(nil), "emissions.v2.QueryStakeFromReputerInTopicInSelfResponse") + proto.RegisterType((*QueryDelegateStakeInTopicInReputerRequest)(nil), "emissions.v2.QueryDelegateStakeInTopicInReputerRequest") + proto.RegisterType((*QueryDelegateStakeInTopicInReputerResponse)(nil), "emissions.v2.QueryDelegateStakeInTopicInReputerResponse") + proto.RegisterType((*QueryStakeFromDelegatorInTopicInReputerRequest)(nil), "emissions.v2.QueryStakeFromDelegatorInTopicInReputerRequest") + proto.RegisterType((*QueryStakeFromDelegatorInTopicInReputerResponse)(nil), "emissions.v2.QueryStakeFromDelegatorInTopicInReputerResponse") + proto.RegisterType((*QueryStakeFromDelegatorInTopicRequest)(nil), "emissions.v2.QueryStakeFromDelegatorInTopicRequest") + proto.RegisterType((*QueryStakeFromDelegatorInTopicResponse)(nil), "emissions.v2.QueryStakeFromDelegatorInTopicResponse") + proto.RegisterType((*QueryTopicStakeRequest)(nil), "emissions.v2.QueryTopicStakeRequest") + proto.RegisterType((*QueryTopicStakeResponse)(nil), "emissions.v2.QueryTopicStakeResponse") + proto.RegisterType((*QueryNetworkLossBundleAtBlockRequest)(nil), "emissions.v2.QueryNetworkLossBundleAtBlockRequest") + proto.RegisterType((*QueryNetworkLossBundleAtBlockResponse)(nil), "emissions.v2.QueryNetworkLossBundleAtBlockResponse") + proto.RegisterType((*QueryNextTopicIdRequest)(nil), "emissions.v2.QueryNextTopicIdRequest") + proto.RegisterType((*QueryNextTopicIdResponse)(nil), "emissions.v2.QueryNextTopicIdResponse") + proto.RegisterType((*QueryTopicRequest)(nil), "emissions.v2.QueryTopicRequest") + proto.RegisterType((*QueryTopicResponse)(nil), "emissions.v2.QueryTopicResponse") + proto.RegisterType((*QueryActiveTopicsRequest)(nil), "emissions.v2.QueryActiveTopicsRequest") + proto.RegisterType((*QueryActiveTopicsResponse)(nil), "emissions.v2.QueryActiveTopicsResponse") + proto.RegisterType((*QueryInferencesAtBlockRequest)(nil), "emissions.v2.QueryInferencesAtBlockRequest") + proto.RegisterType((*QueryInferencesAtBlockResponse)(nil), "emissions.v2.QueryInferencesAtBlockResponse") + proto.RegisterType((*QueryLatestTopicInferencesRequest)(nil), "emissions.v2.QueryLatestTopicInferencesRequest") + proto.RegisterType((*QueryLatestTopicInferencesResponse)(nil), "emissions.v2.QueryLatestTopicInferencesResponse") + proto.RegisterType((*QueryForecastsAtBlockRequest)(nil), "emissions.v2.QueryForecastsAtBlockRequest") + proto.RegisterType((*QueryForecastsAtBlockResponse)(nil), "emissions.v2.QueryForecastsAtBlockResponse") + proto.RegisterType((*QueryWorkerLatestInferenceRequest)(nil), "emissions.v2.QueryWorkerLatestInferenceRequest") + proto.RegisterType((*QueryWorkerLatestInferenceResponse)(nil), "emissions.v2.QueryWorkerLatestInferenceResponse") + proto.RegisterType((*QueryWorkerNodeInfoRequest)(nil), "emissions.v2.QueryWorkerNodeInfoRequest") + proto.RegisterType((*QueryWorkerNodeInfoResponse)(nil), "emissions.v2.QueryWorkerNodeInfoResponse") + proto.RegisterType((*QueryReputerNodeInfoRequest)(nil), "emissions.v2.QueryReputerNodeInfoRequest") + proto.RegisterType((*QueryReputerNodeInfoResponse)(nil), "emissions.v2.QueryReputerNodeInfoResponse") + proto.RegisterType((*QueryNetworkInferencesAtBlockRequest)(nil), "emissions.v2.QueryNetworkInferencesAtBlockRequest") + proto.RegisterType((*QueryLatestNetworkInferencesRequest)(nil), "emissions.v2.QueryLatestNetworkInferencesRequest") + proto.RegisterType((*QueryIsWorkerNonceUnfulfilledRequest)(nil), "emissions.v2.QueryIsWorkerNonceUnfulfilledRequest") + proto.RegisterType((*QueryIsWorkerNonceUnfulfilledResponse)(nil), "emissions.v2.QueryIsWorkerNonceUnfulfilledResponse") + proto.RegisterType((*QueryUnfulfilledReputerNoncesRequest)(nil), "emissions.v2.QueryUnfulfilledReputerNoncesRequest") + proto.RegisterType((*QueryUnfulfilledReputerNoncesResponse)(nil), "emissions.v2.QueryUnfulfilledReputerNoncesResponse") + proto.RegisterType((*QueryUnfulfilledWorkerNoncesRequest)(nil), "emissions.v2.QueryUnfulfilledWorkerNoncesRequest") + proto.RegisterType((*QueryUnfulfilledWorkerNoncesResponse)(nil), "emissions.v2.QueryUnfulfilledWorkerNoncesResponse") + proto.RegisterType((*QueryInfererNetworkRegretRequest)(nil), "emissions.v2.QueryInfererNetworkRegretRequest") + proto.RegisterType((*QueryInfererNetworkRegretResponse)(nil), "emissions.v2.QueryInfererNetworkRegretResponse") + proto.RegisterType((*QueryForecasterNetworkRegretRequest)(nil), "emissions.v2.QueryForecasterNetworkRegretRequest") + proto.RegisterType((*QueryForecasterNetworkRegretResponse)(nil), "emissions.v2.QueryForecasterNetworkRegretResponse") + proto.RegisterType((*QueryOneInForecasterNetworkRegretRequest)(nil), "emissions.v2.QueryOneInForecasterNetworkRegretRequest") + proto.RegisterType((*QueryOneInForecasterNetworkRegretResponse)(nil), "emissions.v2.QueryOneInForecasterNetworkRegretResponse") + proto.RegisterType((*QueryIsReputerNonceUnfulfilledRequest)(nil), "emissions.v2.QueryIsReputerNonceUnfulfilledRequest") + proto.RegisterType((*QueryIsReputerNonceUnfulfilledResponse)(nil), "emissions.v2.QueryIsReputerNonceUnfulfilledResponse") + proto.RegisterType((*QueryNetworkInferencesAtBlockResponse)(nil), "emissions.v2.QueryNetworkInferencesAtBlockResponse") + proto.RegisterType((*QueryLatestNetworkInferencesResponse)(nil), "emissions.v2.QueryLatestNetworkInferencesResponse") + proto.RegisterType((*QueryIsWorkerRegisteredInTopicIdRequest)(nil), "emissions.v2.QueryIsWorkerRegisteredInTopicIdRequest") + proto.RegisterType((*QueryIsWorkerRegisteredInTopicIdResponse)(nil), "emissions.v2.QueryIsWorkerRegisteredInTopicIdResponse") + proto.RegisterType((*QueryIsReputerRegisteredInTopicIdRequest)(nil), "emissions.v2.QueryIsReputerRegisteredInTopicIdRequest") + proto.RegisterType((*QueryIsReputerRegisteredInTopicIdResponse)(nil), "emissions.v2.QueryIsReputerRegisteredInTopicIdResponse") + proto.RegisterType((*QueryIsWhitelistAdminRequest)(nil), "emissions.v2.QueryIsWhitelistAdminRequest") + proto.RegisterType((*QueryIsWhitelistAdminResponse)(nil), "emissions.v2.QueryIsWhitelistAdminResponse") + proto.RegisterType((*QueryStakeRemovalsUpUntilBlockRequest)(nil), "emissions.v2.QueryStakeRemovalsUpUntilBlockRequest") + proto.RegisterType((*QueryStakeRemovalsUpUntilBlockResponse)(nil), "emissions.v2.QueryStakeRemovalsUpUntilBlockResponse") + proto.RegisterType((*QueryDelegateStakeRemovalsUpUntilBlockRequest)(nil), "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockRequest") + proto.RegisterType((*QueryDelegateStakeRemovalsUpUntilBlockResponse)(nil), "emissions.v2.QueryDelegateStakeRemovalsUpUntilBlockResponse") + proto.RegisterType((*QueryStakeRemovalInfoRequest)(nil), "emissions.v2.QueryStakeRemovalInfoRequest") + proto.RegisterType((*QueryStakeRemovalInfoResponse)(nil), "emissions.v2.QueryStakeRemovalInfoResponse") + proto.RegisterType((*QueryDelegateStakeRemovalInfoRequest)(nil), "emissions.v2.QueryDelegateStakeRemovalInfoRequest") + proto.RegisterType((*QueryDelegateStakeRemovalInfoResponse)(nil), "emissions.v2.QueryDelegateStakeRemovalInfoResponse") + proto.RegisterType((*QueryTopicLastCommitRequest)(nil), "emissions.v2.QueryTopicLastCommitRequest") + proto.RegisterType((*QueryTopicLastCommitResponse)(nil), "emissions.v2.QueryTopicLastCommitResponse") + proto.RegisterType((*QueryTopicRewardNonceRequest)(nil), "emissions.v2.QueryTopicRewardNonceRequest") + proto.RegisterType((*QueryTopicRewardNonceResponse)(nil), "emissions.v2.QueryTopicRewardNonceResponse") + proto.RegisterType((*QueryReputerLossBundlesAtBlockRequest)(nil), "emissions.v2.QueryReputerLossBundlesAtBlockRequest") + proto.RegisterType((*QueryReputerLossBundlesAtBlockResponse)(nil), "emissions.v2.QueryReputerLossBundlesAtBlockResponse") + proto.RegisterType((*QueryStakeReputerAuthorityRequest)(nil), "emissions.v2.QueryStakeReputerAuthorityRequest") + proto.RegisterType((*QueryStakeReputerAuthorityResponse)(nil), "emissions.v2.QueryStakeReputerAuthorityResponse") + proto.RegisterType((*QueryDelegateStakePlacementRequest)(nil), "emissions.v2.QueryDelegateStakePlacementRequest") + proto.RegisterType((*QueryDelegateStakePlacementResponse)(nil), "emissions.v2.QueryDelegateStakePlacementResponse") + proto.RegisterType((*QueryDelegateStakeUponReputerRequest)(nil), "emissions.v2.QueryDelegateStakeUponReputerRequest") + proto.RegisterType((*QueryDelegateStakeUponReputerResponse)(nil), "emissions.v2.QueryDelegateStakeUponReputerResponse") + proto.RegisterType((*QueryDelegateRewardPerShareRequest)(nil), "emissions.v2.QueryDelegateRewardPerShareRequest") + proto.RegisterType((*QueryDelegateRewardPerShareResponse)(nil), "emissions.v2.QueryDelegateRewardPerShareResponse") + proto.RegisterType((*QueryStakeRemovalForReputerAndTopicIdRequest)(nil), "emissions.v2.QueryStakeRemovalForReputerAndTopicIdRequest") + proto.RegisterType((*QueryStakeRemovalForReputerAndTopicIdResponse)(nil), "emissions.v2.QueryStakeRemovalForReputerAndTopicIdResponse") + proto.RegisterType((*QueryDelegateStakeRemovalRequest)(nil), "emissions.v2.QueryDelegateStakeRemovalRequest") + proto.RegisterType((*QueryDelegateStakeRemovalResponse)(nil), "emissions.v2.QueryDelegateStakeRemovalResponse") + proto.RegisterType((*QueryPreviousTopicWeightRequest)(nil), "emissions.v2.QueryPreviousTopicWeightRequest") + proto.RegisterType((*QueryPreviousTopicWeightResponse)(nil), "emissions.v2.QueryPreviousTopicWeightResponse") + proto.RegisterType((*QueryTopicExistsRequest)(nil), "emissions.v2.QueryTopicExistsRequest") + proto.RegisterType((*QueryTopicExistsResponse)(nil), "emissions.v2.QueryTopicExistsResponse") + proto.RegisterType((*QueryIsTopicActiveRequest)(nil), "emissions.v2.QueryIsTopicActiveRequest") + proto.RegisterType((*QueryIsTopicActiveResponse)(nil), "emissions.v2.QueryIsTopicActiveResponse") + proto.RegisterType((*QueryTopicFeeRevenueRequest)(nil), "emissions.v2.QueryTopicFeeRevenueRequest") + proto.RegisterType((*QueryTopicFeeRevenueResponse)(nil), "emissions.v2.QueryTopicFeeRevenueResponse") + proto.RegisterType((*QueryRewardableTopicsRequest)(nil), "emissions.v2.QueryRewardableTopicsRequest") + proto.RegisterType((*QueryRewardableTopicsResponse)(nil), "emissions.v2.QueryRewardableTopicsResponse") + proto.RegisterType((*QueryLatestInfererScoreRequest)(nil), "emissions.v2.QueryLatestInfererScoreRequest") + proto.RegisterType((*QueryLatestInfererScoreResponse)(nil), "emissions.v2.QueryLatestInfererScoreResponse") + proto.RegisterType((*QueryLatestForecasterScoreRequest)(nil), "emissions.v2.QueryLatestForecasterScoreRequest") + proto.RegisterType((*QueryLatestForecasterScoreResponse)(nil), "emissions.v2.QueryLatestForecasterScoreResponse") + proto.RegisterType((*QueryLatestReputerScoreRequest)(nil), "emissions.v2.QueryLatestReputerScoreRequest") + proto.RegisterType((*QueryLatestReputerScoreResponse)(nil), "emissions.v2.QueryLatestReputerScoreResponse") + proto.RegisterType((*QueryInferenceScoresUntilBlockRequest)(nil), "emissions.v2.QueryInferenceScoresUntilBlockRequest") + proto.RegisterType((*QueryInferenceScoresUntilBlockResponse)(nil), "emissions.v2.QueryInferenceScoresUntilBlockResponse") + proto.RegisterType((*QueryWorkerInferenceScoresAtBlockRequest)(nil), "emissions.v2.QueryWorkerInferenceScoresAtBlockRequest") + proto.RegisterType((*QueryWorkerInferenceScoresAtBlockResponse)(nil), "emissions.v2.QueryWorkerInferenceScoresAtBlockResponse") + proto.RegisterType((*QueryForecastScoresUntilBlockRequest)(nil), "emissions.v2.QueryForecastScoresUntilBlockRequest") + proto.RegisterType((*QueryForecastScoresUntilBlockResponse)(nil), "emissions.v2.QueryForecastScoresUntilBlockResponse") + proto.RegisterType((*QueryWorkerForecastScoresAtBlockRequest)(nil), "emissions.v2.QueryWorkerForecastScoresAtBlockRequest") + proto.RegisterType((*QueryWorkerForecastScoresAtBlockResponse)(nil), "emissions.v2.QueryWorkerForecastScoresAtBlockResponse") + proto.RegisterType((*QueryReputersScoresAtBlockRequest)(nil), "emissions.v2.QueryReputersScoresAtBlockRequest") + proto.RegisterType((*QueryReputersScoresAtBlockResponse)(nil), "emissions.v2.QueryReputersScoresAtBlockResponse") + proto.RegisterType((*QueryListeningCoefficientRequest)(nil), "emissions.v2.QueryListeningCoefficientRequest") + proto.RegisterType((*QueryListeningCoefficientResponse)(nil), "emissions.v2.QueryListeningCoefficientResponse") + proto.RegisterType((*QueryPreviousReputerRewardFractionRequest)(nil), "emissions.v2.QueryPreviousReputerRewardFractionRequest") + proto.RegisterType((*QueryPreviousReputerRewardFractionResponse)(nil), "emissions.v2.QueryPreviousReputerRewardFractionResponse") + proto.RegisterType((*QueryPreviousInferenceRewardFractionRequest)(nil), "emissions.v2.QueryPreviousInferenceRewardFractionRequest") + proto.RegisterType((*QueryPreviousInferenceRewardFractionResponse)(nil), "emissions.v2.QueryPreviousInferenceRewardFractionResponse") + proto.RegisterType((*QueryPreviousForecastRewardFractionRequest)(nil), "emissions.v2.QueryPreviousForecastRewardFractionRequest") + proto.RegisterType((*QueryPreviousForecastRewardFractionResponse)(nil), "emissions.v2.QueryPreviousForecastRewardFractionResponse") + proto.RegisterType((*QueryPreviousPercentageRewardToStakedReputersRequest)(nil), "emissions.v2.QueryPreviousPercentageRewardToStakedReputersRequest") + proto.RegisterType((*QueryPreviousPercentageRewardToStakedReputersResponse)(nil), "emissions.v2.QueryPreviousPercentageRewardToStakedReputersResponse") + proto.RegisterType((*QueryTotalRewardToDistributeRequest)(nil), "emissions.v2.QueryTotalRewardToDistributeRequest") + proto.RegisterType((*QueryTotalRewardToDistributeResponse)(nil), "emissions.v2.QueryTotalRewardToDistributeResponse") +} + +func init() { proto.RegisterFile("emissions/v2/query.proto", fileDescriptor_2aefa309da3515fd) } + +var fileDescriptor_2aefa309da3515fd = []byte{ + // 5339 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5d, 0x6f, 0x6c, 0x1c, 0xc7, + 0x75, 0xf7, 0x92, 0x12, 0x45, 0x0e, 0xad, 0x7f, 0x63, 0x59, 0x26, 0x8f, 0x32, 0x25, 0xad, 0x2c, + 0x4b, 0xa6, 0x24, 0x9e, 0x44, 0xea, 0xbf, 0x25, 0xd9, 0xa4, 0x64, 0x51, 0x67, 0xcb, 0xfa, 0x73, + 0xfa, 0x67, 0xab, 0x89, 0xcf, 0xcb, 0xbb, 0x21, 0xb9, 0xd0, 0xdd, 0xee, 0x79, 0x77, 0x8f, 0x92, + 0xa0, 0x10, 0x89, 0x83, 0xa0, 0x48, 0x80, 0x14, 0x30, 0x50, 0x24, 0x68, 0x80, 0xb4, 0x68, 0x81, + 0x7e, 0x08, 0xd0, 0x26, 0x2d, 0x8a, 0xa0, 0x40, 0x8b, 0xf6, 0x43, 0xd1, 0xb4, 0x70, 0xd0, 0x16, + 0x0d, 0x92, 0x1a, 0x48, 0x83, 0xc6, 0x68, 0xed, 0x04, 0x69, 0xfb, 0xa1, 0x68, 0xbf, 0xf7, 0x43, + 0xb1, 0x33, 0x6f, 0x76, 0x77, 0x76, 0x67, 0x66, 0xf7, 0x8e, 0x24, 0xe0, 0x7e, 0x11, 0xb4, 0xbb, + 0x33, 0xf3, 0xde, 0x6f, 0xfe, 0xbc, 0x79, 0xef, 0xcd, 0xfc, 0x78, 0x68, 0x84, 0xb4, 0x6c, 0xdf, + 0xb7, 0x5d, 0xc7, 0x2f, 0x2f, 0x4f, 0x95, 0xdf, 0xeb, 0x10, 0xef, 0xf1, 0x64, 0xdb, 0x73, 0x03, + 0x17, 0x3f, 0x1d, 0x7d, 0x99, 0x5c, 0x9e, 0x2a, 0x4d, 0xd4, 0x5d, 0xbf, 0xe5, 0xfa, 0xe5, 0x79, + 0xcb, 0x27, 0xac, 0x58, 0x79, 0xf9, 0xd8, 0x3c, 0x09, 0xac, 0x63, 0xe5, 0xb6, 0xb5, 0x68, 0x3b, + 0x56, 0x60, 0xbb, 0x0e, 0xab, 0x59, 0x12, 0xdb, 0x0c, 0x1e, 0xb7, 0x89, 0x0f, 0x5f, 0x76, 0x2d, + 0xba, 0xee, 0x62, 0x93, 0x94, 0xad, 0xb6, 0x5d, 0xb6, 0x1c, 0xc7, 0x0d, 0x68, 0x35, 0xfe, 0x75, + 0x0c, 0x64, 0xf0, 0xe6, 0x93, 0xea, 0x94, 0xb6, 0x5b, 0x2d, 0xdb, 0x71, 0xcb, 0xf4, 0x5f, 0x78, + 0xb5, 0x63, 0xd1, 0x5d, 0x74, 0xe9, 0x7f, 0xcb, 0xe1, 0xff, 0xe0, 0xed, 0x28, 0x6b, 0xa5, 0xc6, + 0x3e, 0xb0, 0x07, 0xfe, 0x49, 0x50, 0xac, 0x6d, 0x79, 0x56, 0x8b, 0x7f, 0x7a, 0x4e, 0xf8, 0xe4, + 0xb8, 0x0d, 0x22, 0xad, 0xf3, 0xd0, 0xf5, 0x1e, 0x10, 0x0f, 0x3e, 0x95, 0x84, 0x4f, 0x1e, 0x69, + 0x77, 0x82, 0xe8, 0xdb, 0x48, 0xaa, 0x3d, 0xa7, 0x4e, 0xe4, 0xbd, 0xe3, 0xb6, 0xed, 0xba, 0xf4, + 0x8b, 0x1f, 0x58, 0x0f, 0x78, 0x9d, 0x5d, 0xc2, 0x17, 0xdb, 0x59, 0x20, 0x1e, 0x51, 0xb5, 0xe8, + 0xd7, 0x5d, 0x0f, 0xbe, 0x98, 0x9f, 0x43, 0xfb, 0x6f, 0x86, 0x7d, 0x78, 0xcd, 0xb2, 0x97, 0x49, + 0x85, 0x56, 0xf3, 0xae, 0x91, 0x20, 0x44, 0x51, 0x25, 0x8b, 0x1e, 0x09, 0xaa, 0xe4, 0xbd, 0x0e, + 0xf1, 0x03, 0x3c, 0x8a, 0x06, 0xa9, 0x26, 0x35, 0xbb, 0x31, 0x62, 0xec, 0x31, 0x0e, 0x6e, 0xa8, + 0x6e, 0xa2, 0xcf, 0x95, 0x06, 0x1e, 0x41, 0x9b, 0x98, 0x40, 0x6f, 0xa4, 0x6f, 0x8f, 0x71, 0x70, + 0xa8, 0xca, 0x1f, 0xcd, 0x77, 0xd1, 0x8b, 0x79, 0xad, 0xfb, 0x6d, 0xd7, 0xf1, 0x09, 0x3e, 0x89, + 0x06, 0x3c, 0xfa, 0x86, 0x36, 0x3e, 0x3c, 0x35, 0x3e, 0x99, 0x9c, 0x5c, 0x93, 0xb7, 0xed, 0x16, + 0xf1, 0x03, 0xab, 0xd5, 0x26, 0x8d, 0xbb, 0x56, 0xb3, 0x43, 0xaa, 0x50, 0xda, 0xfc, 0xba, 0x81, + 0x8e, 0x50, 0x11, 0xd7, 0x1d, 0x72, 0xbd, 0x13, 0x80, 0x8c, 0x1e, 0x81, 0xbc, 0x88, 0xb6, 0xba, + 0x0e, 0xa9, 0xb9, 0x9d, 0xa0, 0x26, 0x02, 0xda, 0xec, 0x26, 0x5b, 0x4f, 0x02, 0xee, 0x17, 0x01, + 0x2f, 0xa1, 0xc9, 0xa2, 0xda, 0xac, 0x12, 0xf8, 0x37, 0x0c, 0x74, 0x34, 0x2b, 0xea, 0xb2, 0xeb, + 0x91, 0xba, 0xe5, 0x07, 0xeb, 0x87, 0x7d, 0x1c, 0xa1, 0x85, 0x48, 0x08, 0xc0, 0x4f, 0xbc, 0x31, + 0x1f, 0xa0, 0x63, 0x5d, 0xa8, 0xb5, 0xb6, 0x9d, 0x10, 0x8b, 0xe9, 0x71, 0x02, 0x1c, 0x46, 0x98, + 0x77, 0x42, 0x02, 0x24, 0xeb, 0x87, 0x6d, 0x6e, 0x4a, 0x86, 0x66, 0x1a, 0x88, 0x9d, 0x90, 0xa7, + 0xd6, 0x2a, 0x3b, 0xe1, 0x77, 0x0c, 0x34, 0x2d, 0x95, 0xd6, 0xfb, 0x64, 0xe8, 0xae, 0x1f, 0xf2, + 0xa6, 0x84, 0x83, 0x8e, 0x77, 0xa7, 0xdf, 0x2a, 0x3b, 0x64, 0x07, 0xc2, 0x54, 0xde, 0x0d, 0x6a, + 0xbe, 0x01, 0xae, 0x79, 0x0d, 0x3d, 0x23, 0xbc, 0x05, 0x21, 0xa7, 0xd0, 0x00, 0x33, 0xf3, 0x20, + 0x64, 0x87, 0x28, 0x84, 0x95, 0x9e, 0x1d, 0xfa, 0xf0, 0xe3, 0xdd, 0x4f, 0x7d, 0xe7, 0x57, 0x7f, + 0x3c, 0x61, 0x54, 0xa1, 0xb8, 0x39, 0x82, 0x76, 0xd2, 0xf6, 0x6e, 0xbb, 0x81, 0xd5, 0xbc, 0x15, + 0x9a, 0x62, 0x2e, 0xc9, 0x46, 0xcf, 0x65, 0xbe, 0x80, 0xb4, 0x2b, 0x68, 0xc0, 0x6a, 0xb9, 0x1d, + 0x87, 0x41, 0x1a, 0x9a, 0x3d, 0x1a, 0xb6, 0xfb, 0xb3, 0x8f, 0x77, 0x3f, 0xcb, 0x76, 0x21, 0xbf, + 0xf1, 0x60, 0xd2, 0x76, 0xcb, 0x2d, 0x2b, 0x58, 0x9a, 0xac, 0x38, 0xc1, 0x8f, 0xbf, 0x7f, 0x04, + 0xc1, 0xf6, 0x54, 0x71, 0x02, 0x10, 0xcf, 0xea, 0x9f, 0xdd, 0xf0, 0xef, 0xbf, 0xbb, 0xdb, 0x30, + 0xef, 0xa2, 0xdd, 0x54, 0x54, 0x95, 0x6d, 0x2d, 0x54, 0x58, 0xc5, 0xb9, 0x1d, 0x0e, 0x23, 0x1f, + 0xe6, 0x11, 0xb4, 0xc9, 0x6a, 0x34, 0x3c, 0xe2, 0x33, 0x84, 0x43, 0x55, 0xfe, 0x28, 0x4c, 0x80, + 0x3e, 0x61, 0x02, 0x98, 0x1e, 0xda, 0xa3, 0x6e, 0x77, 0x9d, 0xb0, 0xd4, 0xd0, 0x0b, 0x54, 0xe6, + 0x9b, 0x9d, 0x66, 0x60, 0x6b, 0x00, 0xed, 0x42, 0x43, 0x80, 0x80, 0x84, 0x90, 0xfa, 0x0f, 0x0e, + 0x55, 0xe3, 0x17, 0x3a, 0x50, 0xf7, 0x61, 0xaf, 0x53, 0x0b, 0x00, 0x64, 0xc7, 0xd0, 0x26, 0xa6, + 0x19, 0x6b, 0x7f, 0x78, 0xea, 0x39, 0x71, 0x52, 0x40, 0xa5, 0x05, 0xb7, 0xca, 0xcb, 0x99, 0x2e, + 0x7a, 0x89, 0xb6, 0x4d, 0x3f, 0x5d, 0xf6, 0xdc, 0x16, 0xb4, 0x0f, 0x4d, 0x57, 0x9c, 0x5b, 0xa4, + 0xb9, 0xc0, 0x11, 0x1c, 0x40, 0x5b, 0xc1, 0x17, 0xa8, 0x89, 0x43, 0xb3, 0x05, 0x5e, 0xcf, 0xe4, + 0x8f, 0xd0, 0x17, 0xd0, 0x44, 0x11, 0x81, 0xeb, 0x34, 0x56, 0x1c, 0xee, 0x25, 0xd2, 0x24, 0x8b, + 0x56, 0x40, 0x92, 0xdd, 0x58, 0x71, 0x40, 0x95, 0xf5, 0x80, 0x9b, 0x23, 0x70, 0x9d, 0xe0, 0xfe, + 0x9e, 0x01, 0xfb, 0x7a, 0xd4, 0xdb, 0xa0, 0x87, 0xeb, 0xa9, 0x40, 0x1f, 0x42, 0xdb, 0x1b, 0xbc, + 0x4c, 0x0a, 0xf6, 0xb6, 0xe8, 0x03, 0x07, 0x2e, 0xe9, 0xa1, 0xbe, 0xdc, 0x1e, 0xea, 0x17, 0x7b, + 0xe8, 0x7d, 0x03, 0x95, 0x0b, 0xeb, 0xb8, 0x6e, 0xd3, 0x62, 0xbf, 0x5e, 0x85, 0x9e, 0x7a, 0x47, + 0x33, 0x2d, 0x1e, 0x81, 0x83, 0xa9, 0x11, 0xb8, 0x4e, 0x50, 0xa7, 0x23, 0xf3, 0xdf, 0xb6, 0xeb, + 0x49, 0xf3, 0xaf, 0xd9, 0x57, 0x13, 0x3b, 0x43, 0x5c, 0x69, 0x9d, 0xf4, 0x6b, 0x80, 0x35, 0x85, + 0xad, 0xf5, 0xaa, 0xeb, 0xfb, 0xb3, 0x1d, 0xa7, 0xd1, 0x24, 0x33, 0xc1, 0x6c, 0xd3, 0xad, 0x3f, + 0x28, 0xe0, 0x05, 0xec, 0x45, 0x4f, 0xcf, 0x87, 0x45, 0x6b, 0x4b, 0xc4, 0x5e, 0x5c, 0x0a, 0x68, + 0xdf, 0xf7, 0x57, 0x87, 0xe9, 0xbb, 0x2b, 0xf4, 0x95, 0x59, 0xe7, 0xe1, 0x83, 0x52, 0x0a, 0xc0, + 0x3b, 0x8b, 0x86, 0x9b, 0xae, 0xef, 0xd7, 0xe6, 0xe9, 0x57, 0xd8, 0x6b, 0x47, 0x45, 0xb3, 0x4a, + 0x77, 0x71, 0x56, 0xbd, 0x8a, 0x9a, 0x51, 0x53, 0xe6, 0x28, 0xf4, 0xda, 0x35, 0xf2, 0x28, 0x60, + 0x13, 0xb9, 0xc1, 0xb7, 0xda, 0x0b, 0x68, 0x24, 0xfb, 0x09, 0x44, 0x9a, 0x68, 0xb3, 0x43, 0x1e, + 0x05, 0xb5, 0x14, 0xbc, 0x61, 0x27, 0x2e, 0x6b, 0x4e, 0xa2, 0xed, 0xf1, 0x80, 0x14, 0x18, 0xc0, + 0xaf, 0x18, 0xe0, 0x5b, 0x88, 0x93, 0xeb, 0x25, 0xb4, 0x91, 0x96, 0x00, 0x5c, 0xcf, 0xa4, 0x1c, + 0x15, 0x5a, 0x96, 0x95, 0xc0, 0x3b, 0xd1, 0xc0, 0xc3, 0xb8, 0x3b, 0x87, 0xaa, 0xf0, 0x14, 0xae, + 0x08, 0xb2, 0xb0, 0x40, 0xea, 0x81, 0xbd, 0x4c, 0x6a, 0x1e, 0x59, 0x26, 0x4e, 0x87, 0x80, 0x2f, + 0xb5, 0x2d, 0xfa, 0x50, 0x65, 0xef, 0xcd, 0x45, 0x80, 0x3d, 0x43, 0xdf, 0xd2, 0xf6, 0xb9, 0x9f, + 0x83, 0xdf, 0x40, 0x28, 0x8e, 0xb7, 0x41, 0xa1, 0x43, 0xa9, 0xfd, 0xcb, 0x6e, 0xb5, 0x9b, 0xe4, + 0x62, 0xc7, 0xf3, 0x5d, 0xef, 0x46, 0x54, 0x16, 0x1a, 0xa8, 0x26, 0xaa, 0x9b, 0xdf, 0x34, 0xd0, + 0xa8, 0x44, 0x12, 0xc0, 0x3e, 0x84, 0x06, 0x28, 0x28, 0xbe, 0x4d, 0x4a, 0x71, 0x43, 0x11, 0x7c, + 0x55, 0xd0, 0xab, 0x8f, 0xea, 0x75, 0xb8, 0x98, 0x5e, 0x4c, 0x9c, 0xa0, 0xd8, 0xe7, 0xd1, 0xf3, + 0x54, 0xaf, 0x0a, 0x8f, 0x74, 0xfd, 0x35, 0x9d, 0xd7, 0xf7, 0xd1, 0xb8, 0xaa, 0x79, 0xc0, 0x7e, + 0x1a, 0xa1, 0x28, 0xca, 0xe6, 0xbe, 0xe3, 0x88, 0x08, 0x27, 0xae, 0x5c, 0x4d, 0x94, 0x35, 0x2f, + 0xa0, 0xbd, 0xb4, 0xed, 0xab, 0x56, 0x40, 0x7c, 0x98, 0x89, 0x71, 0xc9, 0xfc, 0x39, 0xf8, 0xbe, + 0x81, 0x4c, 0x5d, 0x03, 0xab, 0x55, 0xb0, 0x48, 0xff, 0x7c, 0x0e, 0xed, 0xa2, 0x2a, 0x70, 0x17, + 0x7e, 0x6d, 0x7b, 0xff, 0x2e, 0x0c, 0x6e, 0xb6, 0x75, 0xc0, 0x76, 0x02, 0x0d, 0xf1, 0xf8, 0x82, + 0x43, 0x4b, 0xb9, 0x68, 0x51, 0xd5, 0x6a, 0x5c, 0xd2, 0x24, 0xd0, 0xf3, 0xf7, 0x68, 0x8e, 0x86, + 0x75, 0x5f, 0xd4, 0x07, 0x05, 0x54, 0xdf, 0x8f, 0xb6, 0xb0, 0xf4, 0x4e, 0x6a, 0x97, 0xde, 0xcc, + 0xde, 0xc2, 0x7e, 0x65, 0x2e, 0xc1, 0xf8, 0x28, 0xc4, 0x00, 0x86, 0x59, 0xb4, 0xad, 0x49, 0x3f, + 0xd5, 0xa2, 0xae, 0x97, 0x43, 0x89, 0xab, 0x6e, 0x6d, 0x8a, 0x6d, 0x99, 0x57, 0x50, 0x29, 0x21, + 0xe9, 0x9a, 0xdb, 0x60, 0x5e, 0x69, 0xd6, 0xf3, 0xef, 0x13, 0x3c, 0xff, 0xd7, 0x37, 0x0c, 0x1a, + 0xdb, 0xfa, 0xaa, 0xa8, 0x69, 0xcf, 0xb7, 0xa7, 0xda, 0xb5, 0x07, 0xe4, 0xb1, 0x79, 0x17, 0x8d, + 0x49, 0x5b, 0x8a, 0xa2, 0xa4, 0x21, 0xc7, 0x6d, 0x90, 0x50, 0x55, 0x17, 0xb4, 0x2c, 0x89, 0x5a, + 0x5e, 0x5f, 0x58, 0xa8, 0x2f, 0x59, 0xb6, 0x13, 0x56, 0xad, 0x0e, 0x3a, 0xd0, 0x80, 0x59, 0x81, + 0x76, 0xc1, 0xf3, 0x58, 0x8d, 0x8a, 0xf7, 0x60, 0xce, 0x65, 0x9a, 0x5a, 0xad, 0x8e, 0x7f, 0x66, + 0x88, 0x7b, 0x65, 0x2f, 0x36, 0xe5, 0x3c, 0x1a, 0x4b, 0xce, 0xea, 0x5a, 0xd3, 0x12, 0x06, 0x96, + 0x4d, 0xf2, 0x91, 0xc4, 0x24, 0xbf, 0x6a, 0x25, 0x06, 0x12, 0x9f, 0x42, 0x23, 0xd9, 0xea, 0x1e, + 0x79, 0x68, 0x79, 0xcc, 0xcf, 0xeb, 0xaf, 0x3e, 0x9b, 0xaa, 0x5b, 0xa5, 0x1f, 0xcd, 0x57, 0xd1, + 0xbe, 0x84, 0x2d, 0xc8, 0x00, 0x28, 0x60, 0x4e, 0xb8, 0xa3, 0x50, 0xf1, 0xf9, 0xd8, 0x3b, 0x75, + 0x72, 0xc7, 0x59, 0xe8, 0x34, 0x17, 0xec, 0x66, 0x93, 0x34, 0xd6, 0x66, 0x49, 0x2f, 0x80, 0xa3, + 0xa0, 0x96, 0x02, 0xa3, 0x78, 0x1e, 0x8d, 0xd9, 0x7e, 0x0d, 0x96, 0x19, 0xcd, 0x8a, 0xd6, 0x3a, + 0x71, 0x31, 0x2a, 0x79, 0xb0, 0x3a, 0x62, 0x2b, 0x9a, 0x31, 0x67, 0x00, 0x8d, 0xd0, 0x34, 0xcc, + 0x97, 0x82, 0x1d, 0xc2, 0x7d, 0x1a, 0x75, 0x13, 0x91, 0x4f, 0x33, 0x40, 0x15, 0xe4, 0x26, 0xc8, + 0x14, 0x67, 0x9b, 0x18, 0x10, 0x40, 0x5d, 0xa8, 0x11, 0x8d, 0x5b, 0x42, 0x48, 0x02, 0x51, 0x11, + 0x35, 0x6f, 0x67, 0x91, 0x8a, 0x2d, 0x80, 0x96, 0x87, 0x53, 0x5a, 0xa6, 0x12, 0x1c, 0x29, 0xbd, + 0xde, 0x82, 0xc0, 0xbf, 0xc7, 0x04, 0xda, 0x28, 0x1a, 0xb4, 0xea, 0xa1, 0x4f, 0x0f, 0xae, 0x7a, + 0xb8, 0xa0, 0xc3, 0xe7, 0x4a, 0xc3, 0xfc, 0x35, 0x30, 0xbe, 0xeb, 0x92, 0x03, 0x7b, 0x0b, 0xba, + 0xb3, 0xf7, 0x94, 0x57, 0xe8, 0x97, 0xd1, 0xee, 0x8b, 0xfc, 0x32, 0xfa, 0x64, 0xbe, 0x03, 0xdd, + 0xbc, 0x5e, 0xc9, 0xaa, 0x2f, 0xa2, 0x83, 0x3c, 0x39, 0x56, 0x71, 0x7a, 0x57, 0x5f, 0xcc, 0xc1, + 0xf5, 0xa5, 0x73, 0x70, 0x9a, 0x5c, 0x65, 0x1d, 0x42, 0x79, 0xbd, 0x02, 0xab, 0x44, 0x49, 0xa2, + 0xe5, 0x9f, 0x5c, 0x4a, 0x6b, 0x6e, 0x65, 0x6c, 0x08, 0x07, 0x35, 0x62, 0x00, 0xc8, 0x2b, 0x68, + 0x97, 0xed, 0xd7, 0x78, 0xd0, 0xad, 0xb2, 0x33, 0xa3, 0xb6, 0xaa, 0x21, 0xf3, 0x3d, 0x31, 0xf2, + 0x51, 0x3b, 0x8a, 0x57, 0x10, 0x76, 0x58, 0x99, 0x5a, 0xc6, 0x1f, 0xd3, 0x04, 0x40, 0xdb, 0x9d, + 0x74, 0xc3, 0xe6, 0x47, 0x1b, 0x61, 0x2e, 0x2a, 0x8d, 0xfd, 0x5a, 0x8b, 0xc4, 0x6f, 0xa0, 0xad, + 0x30, 0x4f, 0x6a, 0x2c, 0x4e, 0x09, 0xf7, 0xe9, 0x7e, 0x99, 0xad, 0x0b, 0x87, 0x39, 0xdc, 0x4d, + 0xbd, 0x16, 0x69, 0xdc, 0xa3, 0x45, 0xab, 0x5b, 0xa0, 0x2a, 0x7b, 0xf4, 0xf1, 0x4d, 0x84, 0xe3, + 0x19, 0x19, 0xb5, 0xd7, 0x5f, 0xb8, 0xbd, 0xed, 0x71, 0x6d, 0xde, 0xa4, 0x85, 0x46, 0xf9, 0xcb, + 0x4a, 0xab, 0xdd, 0xb4, 0x49, 0x23, 0x56, 0x7e, 0x64, 0x03, 0x6d, 0x79, 0x9f, 0xd8, 0x32, 0xb3, + 0x91, 0x33, 0x41, 0xe0, 0xd9, 0xf3, 0x9d, 0x80, 0xcf, 0x53, 0x75, 0x2b, 0xf8, 0x38, 0xda, 0x19, + 0x75, 0x62, 0x4d, 0x98, 0x80, 0x1b, 0xe9, 0x04, 0xdc, 0x11, 0x7d, 0x9d, 0x8d, 0x67, 0x22, 0x9e, + 0x40, 0xdb, 0x59, 0xbc, 0x9b, 0xac, 0x30, 0x40, 0x2b, 0x6c, 0xa5, 0xa1, 0x6d, 0xa2, 0xec, 0xaf, + 0x1b, 0x68, 0x5f, 0xdd, 0x75, 0x16, 0xec, 0x06, 0x95, 0x61, 0x3b, 0x01, 0xf1, 0x96, 0xad, 0x66, + 0xcd, 0xb3, 0x1e, 0xd6, 0xda, 0xc4, 0xab, 0x13, 0x27, 0xb0, 0x9b, 0xc4, 0x1f, 0xd9, 0xb4, 0xa7, + 0xff, 0xe0, 0xd0, 0xec, 0x29, 0x48, 0x0c, 0x94, 0x17, 0xed, 0x60, 0xa9, 0x33, 0x3f, 0x59, 0x77, + 0x5b, 0x65, 0xab, 0xd9, 0x74, 0x3d, 0xeb, 0x08, 0x8c, 0x1f, 0x7f, 0xa4, 0xbe, 0x0e, 0x4b, 0x19, + 0x5c, 0x22, 0xf5, 0xea, 0x9e, 0x58, 0x46, 0x05, 0x44, 0x54, 0xad, 0x87, 0x37, 0x62, 0x01, 0xb8, + 0x83, 0x4a, 0x32, 0x3d, 0x96, 0xc3, 0x2e, 0xf2, 0x47, 0x06, 0x57, 0x27, 0x7e, 0x24, 0x2b, 0x9e, + 0xf6, 0xbd, 0x6f, 0xbe, 0x83, 0x0e, 0x08, 0xbe, 0x41, 0x95, 0x2c, 0xda, 0xe1, 0x20, 0x87, 0xc3, + 0x20, 0xc6, 0xfb, 0x39, 0xa7, 0x90, 0x72, 0x57, 0xd2, 0xbc, 0x0e, 0x26, 0x56, 0xdb, 0x3e, 0x2c, + 0x9d, 0x7d, 0x68, 0x33, 0xb5, 0x0b, 0xbc, 0x04, 0x18, 0x82, 0xa7, 0x43, 0x43, 0xc0, 0xdf, 0x99, + 0xb5, 0xa8, 0xc1, 0x68, 0x8f, 0x5f, 0x5b, 0x8d, 0x6f, 0x80, 0x4d, 0xd6, 0x0b, 0xe8, 0x46, 0xe5, + 0xd3, 0xe0, 0x3c, 0x57, 0xfc, 0x7b, 0x4b, 0x76, 0x40, 0x9a, 0xb6, 0x1f, 0xcc, 0x34, 0x5a, 0xb6, + 0x93, 0x7b, 0x4a, 0x60, 0x9e, 0xe5, 0x91, 0x76, 0xa6, 0x26, 0xc8, 0x1f, 0x45, 0x83, 0xb6, 0x5f, + 0xb3, 0xc2, 0x77, 0x20, 0x7a, 0x93, 0xed, 0xd3, 0x22, 0xe6, 0xeb, 0xc9, 0x7c, 0x60, 0x95, 0xb4, + 0xdc, 0x65, 0xab, 0xe9, 0xdf, 0x69, 0xdf, 0x09, 0xe7, 0x9b, 0xe0, 0x59, 0xa7, 0x6d, 0xbb, 0x91, + 0xb5, 0xed, 0x8d, 0x64, 0xaa, 0x4f, 0xde, 0x56, 0xe4, 0x97, 0x0d, 0x7a, 0xf0, 0x1d, 0x12, 0x13, + 0xe3, 0x92, 0xfc, 0x3d, 0x34, 0x41, 0x43, 0x88, 0xa8, 0xbc, 0x59, 0x85, 0xe3, 0x64, 0x21, 0xcf, + 0xbc, 0x4a, 0xcd, 0x03, 0x48, 0x1e, 0x17, 0x68, 0x33, 0x8a, 0x0d, 0xd3, 0x08, 0x5e, 0x14, 0x11, + 0xc8, 0x9a, 0x4a, 0x21, 0xb9, 0x05, 0x23, 0x9e, 0x29, 0x52, 0x68, 0x62, 0xc2, 0xce, 0xc8, 0x27, + 0x26, 0x3c, 0x9a, 0x6f, 0xc3, 0x64, 0xc8, 0x36, 0x1a, 0x65, 0x1d, 0x36, 0x81, 0x06, 0x72, 0x0f, + 0x21, 0x53, 0x91, 0x17, 0x37, 0x1f, 0xc3, 0xe6, 0xa6, 0x84, 0x96, 0xaf, 0xf7, 0x2e, 0x34, 0x14, + 0x25, 0x8f, 0x41, 0xf3, 0xf8, 0x45, 0x12, 0x55, 0xbf, 0x88, 0xca, 0x86, 0x69, 0xaa, 0x16, 0x0d, + 0xe8, 0x5e, 0x4d, 0xa3, 0x2b, 0x3a, 0x2c, 0x11, 0xca, 0xd3, 0x10, 0x0f, 0xd3, 0x45, 0x1c, 0xc6, + 0x71, 0x17, 0xdd, 0x56, 0xcb, 0x0e, 0x0a, 0xc5, 0x69, 0xbb, 0xe4, 0x35, 0x41, 0xb7, 0x4b, 0x68, + 0x98, 0x46, 0x8d, 0x75, 0xfa, 0x1a, 0xf4, 0xdb, 0xa7, 0xf4, 0xcf, 0x66, 0x42, 0xb7, 0x9c, 0x7a, + 0x35, 0x55, 0xd4, 0x8c, 0x5a, 0x33, 0xcf, 0x24, 0xa5, 0xb0, 0x18, 0x93, 0x15, 0xca, 0x57, 0xf0, + 0x04, 0xcc, 0x8d, 0x6c, 0x55, 0xd0, 0x70, 0x07, 0xda, 0x48, 0x1d, 0x2d, 0x58, 0x23, 0xec, 0x21, + 0x72, 0x0d, 0xc1, 0xd2, 0xc5, 0x29, 0xe4, 0xb5, 0xcd, 0x29, 0x39, 0x60, 0x3e, 0x34, 0x62, 0xa2, + 0x8e, 0x7c, 0x3a, 0x91, 0xaa, 0xe6, 0x7e, 0xd3, 0x5e, 0x69, 0x70, 0x97, 0x70, 0x9f, 0xfc, 0xea, + 0x70, 0x9c, 0xb3, 0x0e, 0x03, 0xa9, 0xbd, 0xc9, 0x95, 0xc2, 0x4e, 0x71, 0x3a, 0xc1, 0x92, 0xeb, + 0xd9, 0xc1, 0xe3, 0x55, 0xad, 0xc1, 0x00, 0xd2, 0x4b, 0x8a, 0x96, 0x01, 0xc5, 0x35, 0x34, 0x64, + 0xf1, 0x97, 0x3d, 0x1f, 0x29, 0xc4, 0x4d, 0x98, 0x1d, 0x90, 0x2a, 0x4c, 0xf1, 0x1b, 0x4d, 0xab, + 0x4e, 0x5a, 0xc4, 0x09, 0x56, 0xbd, 0x38, 0x77, 0xa2, 0x81, 0xc0, 0xf2, 0x16, 0x49, 0x00, 0x6b, + 0x13, 0x9e, 0x4c, 0x1b, 0x02, 0x3b, 0x95, 0xd8, 0xc8, 0x60, 0x6e, 0x89, 0xcf, 0x93, 0x12, 0x09, + 0xa0, 0x31, 0xe9, 0xfa, 0x74, 0x3d, 0xba, 0x28, 0x37, 0x37, 0x92, 0x8f, 0xe6, 0xdb, 0x32, 0x03, + 0x74, 0xa7, 0xed, 0xa6, 0x4f, 0xf6, 0xf4, 0x41, 0x24, 0xa0, 0xe8, 0x13, 0x50, 0xb8, 0x32, 0x03, + 0x23, 0x34, 0x0d, 0x38, 0x2e, 0xa3, 0x8d, 0xf4, 0x56, 0x57, 0xcf, 0x23, 0xc6, 0xaa, 0x9b, 0x6f, + 0xa7, 0x46, 0x8b, 0x2d, 0xc7, 0x1b, 0xc4, 0xbb, 0xb5, 0x64, 0x79, 0x64, 0x55, 0xd3, 0xef, 0xab, + 0x46, 0x6a, 0x48, 0xd2, 0x6d, 0x03, 0x14, 0x0b, 0x6d, 0x63, 0x09, 0xac, 0xd0, 0x87, 0xad, 0xf9, + 0xe1, 0x37, 0x40, 0xd5, 0xb3, 0x0b, 0xb9, 0xc5, 0x13, 0x44, 0x99, 0x75, 0x74, 0x38, 0xb3, 0x1b, + 0x5d, 0x76, 0x3d, 0xbe, 0x26, 0x9c, 0x46, 0xca, 0x17, 0x4b, 0x80, 0x32, 0x04, 0x50, 0xba, 0x23, + 0xc6, 0x15, 0xf0, 0x08, 0xf2, 0x85, 0x00, 0xf0, 0xab, 0x08, 0xd3, 0x41, 0xa8, 0x81, 0xcd, 0x4f, + 0xce, 0xc7, 0xbc, 0xdd, 0x70, 0x9b, 0x9f, 0x7a, 0x63, 0xfe, 0x96, 0x01, 0x19, 0x19, 0xd9, 0xde, + 0x52, 0xdc, 0x09, 0xd1, 0x20, 0x14, 0x57, 0x66, 0xbf, 0x66, 0xdb, 0xdc, 0x20, 0xce, 0x84, 0xc7, + 0x60, 0xe2, 0xe4, 0x9a, 0x41, 0x6f, 0xdc, 0xd6, 0xf4, 0x46, 0xd1, 0xdd, 0x33, 0xdb, 0x2b, 0xe7, + 0xe0, 0xde, 0xcb, 0x0d, 0x8f, 0x2c, 0xdb, 0x6e, 0xc7, 0xa7, 0x63, 0x00, 0x61, 0x62, 0xfe, 0x4e, + 0xf5, 0x01, 0xef, 0x53, 0x69, 0x75, 0x50, 0xfc, 0x7a, 0x74, 0x50, 0xb7, 0xca, 0x59, 0xcb, 0x4f, + 0xf8, 0xc6, 0xd0, 0x90, 0xe3, 0x06, 0xb5, 0x05, 0xb7, 0xe3, 0xb0, 0x21, 0x18, 0xac, 0x0e, 0x3a, + 0x6e, 0x70, 0x39, 0x7c, 0x36, 0x8f, 0x27, 0x4f, 0x86, 0x5f, 0x7b, 0x64, 0xfb, 0x41, 0x91, 0x1c, + 0xe0, 0x14, 0x9c, 0x03, 0x0a, 0xb5, 0x40, 0xff, 0x9d, 0x68, 0x80, 0xd0, 0x37, 0xe0, 0x94, 0xc3, + 0x93, 0x79, 0x12, 0x4e, 0xf4, 0x2a, 0x0c, 0xf5, 0x0c, 0x1c, 0x2c, 0xe6, 0xca, 0x3a, 0x03, 0x67, + 0x0d, 0xa9, 0x7a, 0x20, 0x6d, 0x0c, 0x0d, 0x85, 0x41, 0x00, 0x7d, 0x09, 0x02, 0x07, 0x6d, 0x9f, + 0x15, 0x12, 0x9d, 0x9e, 0xcb, 0x84, 0x1f, 0x63, 0x16, 0x10, 0xfa, 0x5e, 0xd2, 0x1d, 0x49, 0xd6, + 0x04, 0xb1, 0x37, 0xd1, 0xf0, 0x02, 0x89, 0xcf, 0x4b, 0x7b, 0xb5, 0x9a, 0x68, 0x21, 0x6a, 0xda, + 0x1c, 0x8f, 0x8e, 0x19, 0x42, 0x5b, 0x63, 0xcd, 0x37, 0xc5, 0xf3, 0x55, 0xf3, 0x26, 0xb8, 0x39, + 0xd9, 0xef, 0xa0, 0xd3, 0x51, 0xb4, 0xc3, 0x8b, 0xbe, 0x45, 0xa7, 0xcf, 0xcc, 0x91, 0xdf, 0x50, + 0xc5, 0x9e, 0x58, 0xaf, 0xd2, 0xf0, 0xcd, 0x3b, 0x70, 0xda, 0x98, 0x3c, 0x2a, 0xf2, 0x6e, 0xd5, + 0xdd, 0xa2, 0x96, 0x5a, 0x71, 0xfb, 0xf6, 0x2a, 0x2c, 0x12, 0x59, 0xb3, 0xf1, 0xc1, 0x35, 0xbd, + 0x0d, 0x2c, 0x3f, 0xb8, 0x66, 0x65, 0x59, 0x09, 0xf3, 0x1d, 0xe1, 0xd8, 0x32, 0x4e, 0x14, 0x16, + 0xd5, 0x33, 0x27, 0x43, 0x69, 0x5e, 0x17, 0x4e, 0x35, 0x33, 0xed, 0x77, 0xaf, 0xb0, 0xd8, 0xab, + 0xfc, 0xbe, 0x57, 0xf1, 0x5e, 0x55, 0xec, 0x7f, 0x62, 0xaf, 0x8a, 0xcd, 0x76, 0xaf, 0x64, 0x94, + 0x18, 0xe5, 0x49, 0x24, 0xfa, 0xd5, 0xcf, 0xc6, 0x99, 0xab, 0xf3, 0x7e, 0xef, 0xf0, 0xc4, 0xa8, + 0x5a, 0x4c, 0x7c, 0xa6, 0x4f, 0x35, 0x53, 0x9c, 0xe9, 0x33, 0xe5, 0xa1, 0x88, 0xb9, 0x04, 0x89, + 0x10, 0x96, 0x57, 0x49, 0x35, 0xbe, 0xa6, 0xee, 0xfb, 0xdb, 0x90, 0x11, 0xd1, 0x4b, 0x8a, 0x8f, + 0x3c, 0x22, 0x0c, 0x92, 0x23, 0x0f, 0x56, 0x29, 0x02, 0xd1, 0x48, 0x65, 0xf8, 0xd7, 0x67, 0x04, + 0x6e, 0xc3, 0x40, 0xab, 0xa5, 0xf4, 0x32, 0x00, 0x8b, 0x90, 0x3a, 0x63, 0xdd, 0x22, 0xb6, 0xbd, + 0xa6, 0xfd, 0xff, 0x96, 0x30, 0xd2, 0x0a, 0x41, 0x3d, 0x75, 0xbf, 0x05, 0x76, 0x05, 0x56, 0x92, + 0xbf, 0x0e, 0xca, 0x57, 0xc1, 0xb4, 0x28, 0x44, 0xf4, 0xa4, 0xf6, 0x3d, 0x70, 0x21, 0xae, 0xda, + 0x7e, 0x40, 0x1c, 0xdb, 0x59, 0xbc, 0xe8, 0x92, 0x85, 0x05, 0xbb, 0x6e, 0x17, 0x8b, 0x86, 0xd4, + 0xf6, 0xe5, 0x0b, 0xdc, 0xce, 0x4a, 0x1b, 0x06, 0x5d, 0xef, 0xa1, 0x67, 0x9b, 0xfc, 0x7b, 0xad, + 0x1e, 0x17, 0x90, 0x9f, 0x44, 0x4a, 0x9b, 0xda, 0xd1, 0x94, 0xbc, 0x35, 0xdf, 0x85, 0x75, 0xc6, + 0x3d, 0xa3, 0x28, 0x40, 0x09, 0x37, 0xad, 0xcb, 0x5e, 0xb8, 0xc1, 0x47, 0x37, 0x85, 0x7a, 0xc3, + 0xf7, 0x07, 0x06, 0x5c, 0xe5, 0xcc, 0x11, 0x01, 0x48, 0xdf, 0x45, 0x5b, 0x21, 0x8c, 0x58, 0x80, + 0x4f, 0x6b, 0x14, 0x45, 0x70, 0x49, 0x7a, 0xbf, 0xec, 0x5d, 0x74, 0x48, 0x50, 0x36, 0x71, 0x8f, + 0xa3, 0xcb, 0x1e, 0x51, 0x1d, 0x30, 0x7e, 0xd7, 0x80, 0x28, 0x26, 0x57, 0xc4, 0x67, 0xa3, 0x47, + 0x6a, 0xa9, 0xe1, 0xe3, 0xb6, 0x60, 0xcd, 0x3a, 0xe4, 0x0f, 0x8d, 0x54, 0x9f, 0xab, 0x24, 0x7c, + 0x36, 0xfa, 0xe3, 0x24, 0xb0, 0x1b, 0xb8, 0xb6, 0x70, 0xa0, 0x62, 0x2d, 0xc2, 0xf8, 0xdd, 0x76, + 0x69, 0x3c, 0xc3, 0xef, 0x10, 0x44, 0x7e, 0xe4, 0x6f, 0x1b, 0xe8, 0x44, 0x97, 0x15, 0x01, 0x70, + 0x03, 0x6d, 0x6f, 0x47, 0x65, 0xf9, 0x2d, 0x91, 0x55, 0x42, 0xde, 0xd6, 0x4e, 0x49, 0x37, 0xf7, + 0x43, 0x98, 0x4f, 0x59, 0x0c, 0x5c, 0xa3, 0x4b, 0xb6, 0x0f, 0x07, 0x67, 0x1c, 0xc6, 0x97, 0xf9, + 0xe5, 0x19, 0x65, 0x39, 0xd0, 0xfa, 0x3e, 0x7a, 0x3a, 0x08, 0x8b, 0xac, 0x91, 0xc2, 0xc3, 0x41, + 0x2c, 0x6f, 0xea, 0x07, 0x2d, 0xb4, 0x91, 0x2a, 0x81, 0x1f, 0xa0, 0x01, 0x46, 0xd9, 0xc0, 0x7b, + 0x44, 0x1b, 0x98, 0x65, 0x84, 0x94, 0xf6, 0x6a, 0x4a, 0x30, 0xa5, 0xcd, 0x5d, 0x5f, 0xfe, 0xc9, + 0x2f, 0x7e, 0xb3, 0x6f, 0x27, 0xde, 0x51, 0x96, 0x10, 0x03, 0xf1, 0xd7, 0x0c, 0xb4, 0x65, 0x8e, + 0x04, 0x89, 0xcb, 0xa7, 0x78, 0xbf, 0xa4, 0xcd, 0xec, 0xbd, 0xd5, 0xd2, 0x8b, 0x79, 0xc5, 0x40, + 0xfe, 0xc1, 0xaf, 0x86, 0xf1, 0x09, 0x55, 0xe2, 0x79, 0x3c, 0x26, 0x2a, 0x21, 0x5c, 0x6e, 0xc5, + 0x4f, 0xd0, 0xe0, 0x1c, 0x61, 0xf5, 0xf1, 0x6e, 0x49, 0xeb, 0xc9, 0x1b, 0xae, 0xa5, 0x3d, 0xea, + 0x02, 0x20, 0xf8, 0x70, 0x2c, 0x78, 0x2f, 0xde, 0x5d, 0xce, 0x32, 0x12, 0xfd, 0xf2, 0x13, 0x2e, + 0x7b, 0x05, 0x7f, 0xdd, 0x40, 0x5b, 0xe7, 0x48, 0x90, 0xbc, 0x24, 0x8a, 0x65, 0x10, 0x25, 0xf7, + 0x55, 0x4b, 0x07, 0x72, 0xcb, 0x15, 0xe8, 0x0b, 0x16, 0x78, 0xd6, 0xe0, 0xaa, 0xe9, 0xc7, 0x06, + 0xda, 0x3b, 0x47, 0x02, 0xe9, 0xfd, 0xbb, 0xd9, 0xc7, 0x7c, 0xa8, 0xca, 0x12, 0xc1, 0xba, 0x9b, + 0x81, 0xa5, 0xa3, 0xc5, 0x2b, 0x80, 0xca, 0x77, 0x63, 0x95, 0xdf, 0xc0, 0x95, 0x9c, 0x5e, 0x04, + 0xea, 0xa8, 0x5f, 0x7e, 0x22, 0x5e, 0x32, 0x5c, 0x29, 0xa7, 0xef, 0x09, 0xe2, 0x3f, 0x31, 0xd0, + 0x8e, 0x39, 0x12, 0x64, 0x2e, 0x1d, 0xe0, 0x43, 0x12, 0x15, 0x55, 0xd7, 0xd9, 0x4a, 0x87, 0x8b, + 0x15, 0x06, 0x2c, 0xaf, 0xc4, 0x58, 0x8e, 0xe3, 0xa9, 0xb2, 0x9c, 0x6f, 0x2a, 0xe0, 0x79, 0x92, + 0xf4, 0xcb, 0x56, 0xf0, 0x9f, 0x1a, 0x68, 0x64, 0x8e, 0x04, 0xd2, 0x5b, 0xab, 0xd2, 0xc1, 0xd0, + 0x5d, 0x90, 0x95, 0x0e, 0x86, 0xf6, 0x42, 0xac, 0x79, 0x2a, 0x06, 0x70, 0x18, 0x4f, 0x88, 0x00, + 0xd2, 0x3d, 0x2c, 0xcc, 0xee, 0xef, 0x19, 0xe8, 0x99, 0x39, 0x12, 0xa4, 0x6f, 0xa3, 0xe2, 0x09, + 0x89, 0x0a, 0x8a, 0x0b, 0xb1, 0xa5, 0x43, 0x85, 0xca, 0x82, 0xa6, 0x17, 0x62, 0x4d, 0xa7, 0xf1, + 0x31, 0x51, 0xd3, 0xe8, 0x36, 0xab, 0xa6, 0xa7, 0x7f, 0x68, 0xa0, 0x31, 0x6a, 0x97, 0xe4, 0x97, + 0xf2, 0xf1, 0x94, 0xd4, 0xfa, 0x68, 0x79, 0x02, 0xa5, 0xe9, 0xae, 0xea, 0x00, 0x90, 0x99, 0x18, + 0xc8, 0x49, 0x7c, 0x3c, 0x6d, 0xbe, 0xd8, 0x0d, 0x95, 0xa6, 0xeb, 0xeb, 0xb0, 0x7c, 0xc5, 0x40, + 0x9b, 0xa9, 0x61, 0xe3, 0x5c, 0x3a, 0xfc, 0x82, 0xd4, 0x78, 0xa5, 0x48, 0x78, 0xa5, 0xfd, 0x39, + 0xa5, 0x40, 0xc3, 0x17, 0x63, 0x0d, 0xc7, 0xf0, 0x68, 0x7a, 0x85, 0x86, 0xdb, 0x15, 0xcd, 0x3d, + 0x86, 0x93, 0x77, 0xe7, 0x1c, 0x09, 0x24, 0xac, 0x31, 0x7c, 0x44, 0x22, 0x49, 0x4d, 0x5f, 0x2b, + 0x4d, 0x16, 0x2d, 0x0e, 0x1a, 0x9e, 0x8f, 0x35, 0x9c, 0xc2, 0x47, 0xcb, 0x32, 0x46, 0x39, 0xd3, + 0xb1, 0xfc, 0x24, 0x32, 0x18, 0x89, 0xc9, 0xfb, 0x97, 0x6c, 0x2e, 0xa8, 0x38, 0x6f, 0xd2, 0xb9, + 0x90, 0xc3, 0xc0, 0x93, 0xce, 0x85, 0x3c, 0x52, 0x9d, 0x79, 0x22, 0xc6, 0x31, 0x81, 0x0f, 0x4a, + 0x71, 0xf8, 0x0c, 0x88, 0xb0, 0xf8, 0xfe, 0xcd, 0x40, 0x7b, 0xe6, 0x48, 0xa0, 0xa5, 0xb9, 0xe1, + 0x53, 0x12, 0x85, 0x8a, 0x30, 0xf1, 0x4a, 0xa7, 0xbb, 0xaf, 0x08, 0x70, 0x5e, 0x8f, 0xe1, 0xbc, + 0x82, 0xcf, 0x6b, 0x86, 0xa5, 0xe6, 0x93, 0xe6, 0x42, 0xf9, 0x49, 0x8a, 0xdf, 0x25, 0x8c, 0xd1, + 0x2f, 0x19, 0x46, 0x2d, 0xb7, 0x4d, 0x8a, 0xb1, 0x08, 0xfd, 0x4e, 0x8a, 0xb1, 0x10, 0x8d, 0xce, + 0xbc, 0x16, 0x63, 0xbc, 0x88, 0x67, 0xe4, 0x18, 0xe1, 0xa0, 0x80, 0xf0, 0x39, 0xa8, 0xc3, 0xf9, + 0xa5, 0x3e, 0xb4, 0x3f, 0x39, 0x96, 0x4a, 0x82, 0x1a, 0x3e, 0xa7, 0x1b, 0x97, 0x3c, 0xee, 0x5d, + 0xe9, 0x7c, 0x8f, 0xb5, 0x01, 0xf6, 0xfd, 0x18, 0xf6, 0x75, 0xfc, 0xa6, 0x08, 0x3b, 0x0d, 0x37, + 0xc3, 0x62, 0x5b, 0xd1, 0x77, 0xc1, 0x4f, 0x0c, 0xb4, 0x4b, 0xd7, 0x05, 0x78, 0xba, 0x1b, 0xdd, + 0x39, 0xe0, 0xe3, 0xdd, 0x55, 0x02, 0x9c, 0x57, 0x62, 0x9c, 0xe7, 0xf1, 0xcb, 0xdd, 0xe3, 0x8c, + 0x51, 0x7d, 0x8d, 0x1b, 0x69, 0x4e, 0x6b, 0x53, 0x18, 0xe9, 0x14, 0x55, 0x4e, 0x61, 0xa4, 0xd3, + 0xdc, 0x38, 0xf3, 0x50, 0xac, 0xe8, 0x1e, 0x3c, 0x5e, 0xce, 0xfe, 0x11, 0x8c, 0xa4, 0x2e, 0x7f, + 0x9d, 0xe8, 0x61, 0xd9, 0x25, 0x1b, 0x75, 0x0f, 0x6b, 0xae, 0xf9, 0xa8, 0x7b, 0x58, 0x77, 0x8f, + 0xc7, 0x3c, 0x1d, 0x2b, 0x7e, 0x04, 0x1f, 0x92, 0x28, 0xce, 0x4f, 0xc5, 0xfc, 0xf4, 0xb6, 0xf7, + 0x0b, 0x03, 0xbd, 0x90, 0x36, 0x09, 0x52, 0x34, 0x2f, 0xe7, 0xad, 0x6e, 0x1d, 0xaa, 0x73, 0xbd, + 0x55, 0x2e, 0xb0, 0xbb, 0x8b, 0xf3, 0x47, 0x09, 0xf3, 0xbb, 0xcc, 0xb5, 0x4a, 0x9f, 0xf8, 0x49, + 0x5d, 0x2b, 0xc5, 0x85, 0x20, 0xa9, 0x6b, 0xa5, 0xba, 0xc1, 0xa3, 0xdd, 0x4d, 0x05, 0x55, 0x05, + 0x97, 0x04, 0x56, 0xf4, 0x0a, 0xfe, 0x19, 0xdb, 0x4d, 0x55, 0x27, 0x95, 0xd2, 0xdd, 0x34, 0xe7, + 0x42, 0x93, 0x74, 0x37, 0xcd, 0xbb, 0x89, 0x64, 0x56, 0x63, 0x1c, 0x73, 0xf8, 0xb5, 0x22, 0x7d, + 0x2f, 0x00, 0x8a, 0x96, 0x73, 0x12, 0xdc, 0x37, 0x0c, 0xb4, 0x3d, 0x0a, 0x9b, 0x38, 0xbd, 0x06, + 0x1f, 0x54, 0x46, 0x3d, 0x29, 0x32, 0x4f, 0xe9, 0xa5, 0x02, 0x25, 0x0b, 0xac, 0x68, 0x16, 0xfd, + 0xc4, 0xde, 0x0c, 0xfe, 0x96, 0x81, 0x70, 0xec, 0x7b, 0x45, 0x8a, 0xbd, 0xa4, 0x76, 0xa4, 0xd2, + 0x9a, 0x4d, 0x14, 0x29, 0x5a, 0x20, 0xf2, 0x85, 0xae, 0x4a, 0xe8, 0xf6, 0x8f, 0x06, 0x1a, 0xd3, + 0xdc, 0x2b, 0xc5, 0x27, 0x64, 0x31, 0x56, 0xee, 0x3d, 0xd7, 0xd2, 0xc9, 0x6e, 0xab, 0x15, 0x58, + 0x92, 0x10, 0x55, 0xc6, 0x17, 0x45, 0x85, 0x19, 0x11, 0x21, 0x0a, 0x77, 0x28, 0xdd, 0xbd, 0x53, + 0x2c, 0xd7, 0x2d, 0xf7, 0x26, 0x6c, 0xe9, 0x54, 0xd7, 0xf5, 0x00, 0xd4, 0x6c, 0x0c, 0xea, 0x14, + 0x3e, 0x21, 0x77, 0x43, 0xf2, 0x50, 0x7d, 0xb3, 0x2f, 0x19, 0x12, 0x65, 0x03, 0x67, 0x4d, 0x48, + 0xa4, 0x8c, 0x9f, 0xa7, 0xbb, 0xaa, 0x03, 0x60, 0x7e, 0xc3, 0x88, 0xd1, 0xbc, 0x6f, 0xe0, 0x2f, + 0xca, 0x83, 0x22, 0x79, 0x40, 0x2d, 0x92, 0xca, 0x44, 0x5b, 0x9a, 0x62, 0x9c, 0x41, 0x61, 0x96, + 0x6b, 0x93, 0x95, 0x64, 0x5f, 0x56, 0xf0, 0x5f, 0x18, 0x68, 0x34, 0x8a, 0xca, 0xd3, 0xda, 0xe3, + 0x63, 0xca, 0x28, 0x5b, 0x45, 0x35, 0x2b, 0x4d, 0x75, 0x53, 0xa5, 0xc0, 0x3e, 0xa9, 0xed, 0x12, + 0xfc, 0x37, 0x06, 0x32, 0x23, 0xf5, 0x67, 0x96, 0x2d, 0xbb, 0x69, 0xcd, 0x37, 0xc9, 0xff, 0x3f, + 0x1c, 0x1f, 0x19, 0x68, 0x44, 0xc5, 0x8d, 0x93, 0x4e, 0xce, 0x1c, 0xba, 0x9e, 0x74, 0x72, 0xe6, + 0x91, 0xef, 0xcc, 0x1b, 0xb1, 0xfe, 0xaf, 0xe1, 0x8b, 0xa9, 0x1c, 0x8f, 0x9a, 0x95, 0xa7, 0x09, + 0xdf, 0xff, 0xd9, 0x40, 0xa3, 0x4a, 0x36, 0x0e, 0x9e, 0xd6, 0x99, 0x04, 0x15, 0xb2, 0xe3, 0xdd, + 0x55, 0x02, 0x68, 0x37, 0x63, 0x68, 0x97, 0xf1, 0xa5, 0x0c, 0x34, 0x25, 0x13, 0x48, 0x83, 0xed, + 0x07, 0x06, 0x2a, 0xcd, 0x91, 0x40, 0x41, 0xc0, 0x93, 0xce, 0x39, 0x3d, 0xdd, 0x4f, 0x3a, 0xe7, + 0x72, 0xf8, 0x7d, 0xda, 0xbc, 0x5c, 0x02, 0x87, 0x30, 0x78, 0xc2, 0xd4, 0xfb, 0x90, 0xf9, 0x34, + 0x2a, 0xba, 0x23, 0xce, 0x51, 0x4a, 0x46, 0xaf, 0x94, 0xce, 0xbe, 0x3c, 0x3e, 0xa5, 0xf9, 0x6a, + 0x8c, 0xe4, 0x04, 0x9e, 0x56, 0x23, 0x11, 0xc6, 0xca, 0x4f, 0xf9, 0xfe, 0xcf, 0x45, 0x79, 0x51, + 0x91, 0xc2, 0x86, 0x27, 0x95, 0xd9, 0x4e, 0x29, 0xd9, 0xae, 0x54, 0x2e, 0x5c, 0x1e, 0xd4, 0x9f, + 0x8b, 0xd5, 0x3f, 0x87, 0xcf, 0xca, 0x12, 0xa4, 0x5e, 0x8d, 0x1b, 0x01, 0x46, 0x8b, 0x13, 0xb7, + 0x2a, 0xe0, 0x4d, 0xae, 0xe0, 0x7f, 0x60, 0xf3, 0x4a, 0xc1, 0xc5, 0x93, 0xce, 0x2b, 0x3d, 0x71, + 0x50, 0x3a, 0xaf, 0x72, 0xa8, 0x7e, 0xda, 0xe8, 0x30, 0x41, 0xe3, 0xd2, 0x20, 0x62, 0x33, 0x6e, + 0x05, 0xff, 0x8f, 0x81, 0x76, 0xcf, 0x91, 0x40, 0x47, 0x30, 0x94, 0x3a, 0x15, 0x05, 0x28, 0x91, + 0x52, 0xa7, 0xa2, 0x08, 0x93, 0xd1, 0xfc, 0x7c, 0x0c, 0xaf, 0x8a, 0x6f, 0x88, 0xf0, 0x5c, 0x87, + 0xd4, 0x6c, 0xa7, 0x56, 0x0c, 0x65, 0x5c, 0x6a, 0xa5, 0xfc, 0x04, 0xc6, 0x79, 0x05, 0x7f, 0xdb, + 0x40, 0xdb, 0xd2, 0x8c, 0x19, 0x69, 0x54, 0xa3, 0x20, 0xe4, 0x48, 0xa3, 0x1a, 0x15, 0x05, 0xc7, + 0x2c, 0x53, 0x1c, 0x2f, 0xe1, 0x03, 0x29, 0x8f, 0x8f, 0x97, 0x66, 0xec, 0x9c, 0x84, 0x3b, 0xf4, + 0x3d, 0x16, 0x24, 0x47, 0x5c, 0x02, 0x66, 0x59, 0x18, 0x07, 0x40, 0xe9, 0x5c, 0xcb, 0x39, 0x0b, + 0x52, 0xe7, 0x5a, 0x41, 0x52, 0xd0, 0xe6, 0xe0, 0x59, 0x9f, 0x26, 0x38, 0x0c, 0xc9, 0x95, 0xfd, + 0x47, 0x06, 0x7a, 0x3e, 0xa9, 0x30, 0x58, 0x90, 0xcf, 0xb0, 0xc6, 0xdf, 0x61, 0xa1, 0x6d, 0x9a, + 0x0d, 0x81, 0x27, 0xd4, 0x67, 0x6f, 0x69, 0xb6, 0x85, 0x74, 0x12, 0xa8, 0xe8, 0x15, 0x5a, 0xe7, + 0x83, 0xa9, 0x05, 0xc7, 0xe4, 0xd4, 0x6e, 0x26, 0x55, 0xfd, 0x27, 0x36, 0x1b, 0x94, 0xd4, 0x08, + 0xe9, 0x3e, 0x9d, 0xc7, 0xd7, 0x90, 0xee, 0xd3, 0xb9, 0xec, 0x0b, 0xb3, 0x12, 0xa3, 0xb8, 0x80, + 0xcf, 0xc9, 0x9d, 0xfd, 0x24, 0x3d, 0x43, 0xb3, 0x3f, 0xff, 0x2d, 0x3b, 0x70, 0x92, 0xf2, 0x24, + 0xa4, 0x07, 0x4e, 0x3a, 0xae, 0x86, 0xf4, 0xc0, 0x49, 0x4b, 0xc1, 0xd0, 0x6e, 0x08, 0x3c, 0x34, + 0x87, 0x4c, 0x21, 0xaf, 0x2b, 0xcf, 0x3a, 0x7c, 0xc4, 0x7c, 0x74, 0x39, 0x07, 0x02, 0x1f, 0xcd, + 0xcb, 0x1f, 0xa4, 0x59, 0x1a, 0xa5, 0x63, 0x5d, 0xd4, 0x00, 0x2c, 0xb7, 0x62, 0x2c, 0x57, 0xf0, + 0x65, 0x6d, 0xbe, 0xa1, 0xcd, 0x2b, 0x2b, 0x33, 0x0e, 0x8c, 0x15, 0xb1, 0x82, 0x7f, 0x2c, 0xc9, + 0xa6, 0x24, 0x58, 0x11, 0xf9, 0xd9, 0x94, 0x2c, 0x3b, 0x23, 0x3f, 0x9b, 0x22, 0xa1, 0x5d, 0x68, + 0x93, 0xf9, 0x29, 0x74, 0x9d, 0xb6, 0xeb, 0xd4, 0xa2, 0x3c, 0x40, 0x02, 0x20, 0x07, 0xf5, 0x77, + 0xe2, 0x60, 0x89, 0xec, 0x08, 0xed, 0x60, 0x49, 0x49, 0x1a, 0xda, 0xc1, 0x92, 0x53, 0x2f, 0xb4, + 0x6b, 0x28, 0x82, 0x93, 0x26, 0x67, 0xc8, 0xa7, 0xde, 0xcf, 0x0d, 0xb4, 0x2f, 0x95, 0xa0, 0x93, + 0x91, 0x1f, 0xf0, 0xd9, 0x9c, 0x24, 0x9c, 0x86, 0x96, 0x51, 0x7a, 0xb9, 0xa7, 0xba, 0xdd, 0x27, + 0xf4, 0x38, 0xa8, 0xa4, 0xe9, 0xfb, 0x39, 0xf3, 0x18, 0x65, 0xf9, 0x36, 0xa9, 0xc7, 0xa8, 0x61, + 0x61, 0x48, 0x3d, 0x46, 0x1d, 0x37, 0xc2, 0xb4, 0x62, 0xdd, 0xef, 0xe2, 0xdb, 0xc5, 0x92, 0x78, + 0x82, 0x89, 0xcb, 0xcf, 0xe9, 0x7d, 0x9f, 0x9d, 0x5b, 0x4a, 0x88, 0x0e, 0xd2, 0x73, 0x4b, 0x35, + 0x9f, 0x42, 0x7a, 0x6e, 0xa9, 0xe1, 0x4f, 0x98, 0x2f, 0xc7, 0xe0, 0x8e, 0xe2, 0xc9, 0xd4, 0xfd, + 0x19, 0xa8, 0x07, 0xd7, 0x57, 0x18, 0x41, 0x22, 0x39, 0x2c, 0x1f, 0x18, 0x68, 0x38, 0x41, 0x6a, + 0xc0, 0xca, 0x83, 0x02, 0x81, 0x2a, 0x21, 0xbd, 0x56, 0x23, 0xe1, 0x46, 0x98, 0x53, 0xb1, 0x6e, + 0x07, 0xf0, 0x7e, 0xd9, 0x56, 0xc9, 0xc8, 0x12, 0x49, 0x95, 0xbe, 0x65, 0xa0, 0xcd, 0x02, 0xf7, + 0x01, 0x1f, 0x90, 0xba, 0x68, 0x59, 0x56, 0x45, 0xe9, 0x60, 0x7e, 0xc1, 0x02, 0x87, 0xa4, 0x36, + 0xef, 0x2e, 0x76, 0xd9, 0x25, 0xa9, 0xdb, 0xef, 0xb3, 0x0c, 0x69, 0x8a, 0x25, 0xa1, 0x76, 0x89, + 0x32, 0x1c, 0x0c, 0xb5, 0x4b, 0x94, 0x25, 0x5d, 0x14, 0x70, 0x89, 0x12, 0x9c, 0x8c, 0xa4, 0x9a, + 0xdf, 0x66, 0x2e, 0x51, 0x9a, 0x39, 0x81, 0xe5, 0xe9, 0x59, 0x29, 0xfd, 0x42, 0xea, 0x12, 0xa9, + 0xa8, 0x18, 0x39, 0xb9, 0x5c, 0x91, 0xa3, 0xe1, 0xe3, 0x3f, 0x37, 0xd0, 0xb3, 0x51, 0x2e, 0x29, + 0x49, 0x97, 0xc0, 0x87, 0x95, 0xb9, 0x20, 0x09, 0x59, 0xa3, 0x74, 0xa4, 0x60, 0x69, 0x50, 0xf2, + 0x52, 0xac, 0xe4, 0x19, 0x7c, 0x4a, 0x73, 0x2f, 0xc5, 0xab, 0xd1, 0xbb, 0xc7, 0xc2, 0xa2, 0x8f, + 0x02, 0x8e, 0x1f, 0x26, 0x6f, 0xd7, 0xa4, 0xd8, 0x13, 0x9a, 0xdb, 0x35, 0x72, 0x1e, 0x87, 0xe6, + 0x76, 0x8d, 0x82, 0x98, 0xa1, 0xdd, 0x42, 0x01, 0x45, 0x22, 0x9e, 0xca, 0x02, 0x49, 0x84, 0x51, + 0xe2, 0x40, 0x24, 0x19, 0x16, 0x9a, 0x81, 0x90, 0xf0, 0x3b, 0x34, 0x03, 0x21, 0xa3, 0x6d, 0x14, + 0x19, 0x88, 0xe8, 0x64, 0x3f, 0xa3, 0x7f, 0x64, 0x71, 0xff, 0x85, 0x39, 0xd3, 0x4a, 0xa6, 0x85, + 0x3c, 0xe9, 0x95, 0x43, 0xff, 0x90, 0x27, 0xbd, 0xf2, 0xc8, 0x1c, 0xfa, 0xa4, 0x57, 0xf4, 0x47, + 0x4d, 0xd8, 0x8d, 0xf6, 0x5a, 0x27, 0xac, 0xcf, 0xfe, 0x60, 0x89, 0xc6, 0xa9, 0xfe, 0x0f, 0x16, + 0xcc, 0xeb, 0x78, 0x18, 0xd2, 0x60, 0xbe, 0x00, 0x45, 0x44, 0x1a, 0xcc, 0x17, 0x21, 0x7c, 0x98, + 0x77, 0x62, 0x9c, 0xaf, 0xe3, 0x2b, 0xd2, 0x63, 0x8f, 0x0c, 0x5c, 0x2b, 0xc8, 0xc5, 0xfa, 0x53, + 0xe6, 0x9f, 0xaa, 0x28, 0x1b, 0x58, 0x97, 0x56, 0x51, 0x0d, 0xe4, 0x74, 0x57, 0x75, 0x0a, 0xe4, + 0x65, 0xf9, 0xc2, 0xe9, 0x6e, 0x18, 0x7f, 0x69, 0xa0, 0xf1, 0x68, 0x18, 0xa5, 0x74, 0x0e, 0xe9, + 0xd1, 0x55, 0x3e, 0xcf, 0xa4, 0x74, 0xb2, 0xdb, 0x6a, 0x80, 0xf1, 0x76, 0x8c, 0xb1, 0x82, 0xe7, + 0xa4, 0x63, 0x98, 0x86, 0x5a, 0x60, 0x08, 0xff, 0x9e, 0x99, 0x45, 0x29, 0xf3, 0x43, 0x6a, 0x16, + 0x75, 0x34, 0x14, 0xa9, 0x59, 0xd4, 0x92, 0x4a, 0xcc, 0x37, 0x63, 0x54, 0xb3, 0xf8, 0x55, 0xd5, + 0xad, 0xa7, 0xc2, 0x70, 0xfe, 0x8a, 0xb9, 0xab, 0x32, 0x42, 0x87, 0xd4, 0x5d, 0xd5, 0xb0, 0x53, + 0xa4, 0xee, 0xaa, 0x8e, 0x74, 0x62, 0xbe, 0x16, 0x63, 0x39, 0x8b, 0x4f, 0xa7, 0xec, 0xa3, 0x8c, + 0x8d, 0x22, 0x37, 0x90, 0xbf, 0x62, 0xb7, 0x9d, 0xb4, 0xf4, 0x0f, 0xe9, 0x6d, 0xa7, 0x22, 0x9c, + 0x14, 0xe9, 0x6d, 0xa7, 0x42, 0x4c, 0x13, 0xed, 0x22, 0x8b, 0x1c, 0xd6, 0xf8, 0xbc, 0x51, 0x60, + 0x1c, 0xc8, 0x91, 0xfe, 0x17, 0x3b, 0x9c, 0xca, 0x21, 0x76, 0xe0, 0x33, 0x1a, 0x95, 0xf5, 0x7c, + 0x93, 0xd2, 0xd9, 0x5e, 0xaa, 0x16, 0xd8, 0x1c, 0x22, 0xbc, 0xb1, 0xd9, 0xd4, 0x21, 0xe6, 0x99, + 0xde, 0xff, 0x64, 0x17, 0xaf, 0xf5, 0xc4, 0x0d, 0xac, 0x1b, 0x22, 0x2d, 0x9b, 0xa4, 0x74, 0xa6, + 0x87, 0x9a, 0xdd, 0x8c, 0x6e, 0x64, 0x60, 0x8a, 0x80, 0xfd, 0x52, 0x1f, 0x3a, 0x94, 0x00, 0x9b, + 0x47, 0xdf, 0xc0, 0xb3, 0x1a, 0xe5, 0x0b, 0x92, 0x46, 0x4a, 0x17, 0x57, 0xd5, 0x46, 0x81, 0xcc, + 0x7e, 0xd4, 0x15, 0x19, 0x86, 0x49, 0x2d, 0x70, 0x59, 0x2c, 0x1a, 0x1d, 0xc0, 0x50, 0x8f, 0xb9, + 0xc4, 0x2f, 0xe7, 0x66, 0xa9, 0x1f, 0xd2, 0x93, 0x0a, 0x3d, 0x9d, 0x44, 0x7a, 0x52, 0x91, 0xc3, + 0x2c, 0xd1, 0x06, 0x4d, 0x49, 0xca, 0x49, 0x88, 0xa0, 0x11, 0x6b, 0x07, 0x17, 0xc5, 0x94, 0xbf, + 0x4d, 0x24, 0x75, 0xd4, 0xf2, 0x7e, 0x27, 0x49, 0xea, 0xa8, 0xe5, 0xfe, 0xfc, 0x91, 0xfe, 0xe0, + 0xd8, 0xa2, 0xdc, 0x06, 0xf9, 0x11, 0x12, 0xbf, 0x28, 0x96, 0xfb, 0x83, 0x43, 0xd2, 0x8b, 0x62, + 0x45, 0x7f, 0x34, 0x49, 0x7a, 0x51, 0xac, 0xf0, 0x6f, 0x1c, 0x69, 0x6f, 0xa5, 0xa4, 0x7e, 0x74, + 0x48, 0x05, 0xf3, 0xbf, 0x0d, 0x74, 0x20, 0x0d, 0x53, 0x75, 0x96, 0x74, 0x21, 0x4f, 0xd9, 0x9c, + 0x33, 0xa5, 0x57, 0x7a, 0xae, 0x5f, 0x20, 0x90, 0x48, 0xe3, 0x55, 0x1e, 0x32, 0x89, 0x90, 0xf5, + 0xbf, 0x21, 0xa4, 0x81, 0x5c, 0xe8, 0x37, 0x91, 0x34, 0x90, 0x8b, 0xfd, 0x78, 0x51, 0x21, 0xc8, + 0x09, 0xa8, 0x8a, 0x51, 0xfe, 0x5f, 0x03, 0x4d, 0x48, 0x20, 0xab, 0x06, 0x7a, 0xa6, 0x80, 0xd6, + 0x39, 0x63, 0x3d, 0xbb, 0x9a, 0x26, 0x0a, 0xe4, 0xf9, 0x25, 0xd8, 0x95, 0x23, 0x3e, 0x5b, 0xfd, + 0xf0, 0x93, 0x71, 0xe3, 0x47, 0x9f, 0x8c, 0x1b, 0xff, 0xfa, 0xc9, 0xb8, 0xf1, 0xc1, 0xa7, 0xe3, + 0x4f, 0xfd, 0xe8, 0xd3, 0xf1, 0xa7, 0x7e, 0xfa, 0xe9, 0xf8, 0x53, 0xf7, 0x4f, 0x17, 0xa4, 0xc7, + 0x3d, 0x4a, 0x48, 0xa7, 0x3f, 0xab, 0x37, 0x3f, 0x40, 0x7f, 0xe7, 0x6d, 0xfa, 0xff, 0x02, 0x00, + 0x00, 0xff, 0xff, 0x94, 0xe0, 0x06, 0xf3, 0xc7, 0x6f, 0x00, 0x00, } func (this *QueryTotalStakeResponse) Equal(that interface{}) bool { @@ -7228,14 +7235,12 @@ type QueryClient interface { GetStakeFromDelegatorInTopicInReputer(ctx context.Context, in *QueryStakeFromDelegatorInTopicInReputerRequest, opts ...grpc.CallOption) (*QueryStakeFromDelegatorInTopicInReputerResponse, error) GetStakeFromDelegatorInTopic(ctx context.Context, in *QueryStakeFromDelegatorInTopicRequest, opts ...grpc.CallOption) (*QueryStakeFromDelegatorInTopicResponse, error) GetTopicStake(ctx context.Context, in *QueryTopicStakeRequest, opts ...grpc.CallOption) (*QueryTopicStakeResponse, error) - GetStakeRemovalsForBlock(ctx context.Context, in *QueryStakeRemovalsForBlockRequest, opts ...grpc.CallOption) (*QueryStakeRemovalsForBlockResponse, error) - GetDelegateStakeRemovalsForBlock(ctx context.Context, in *QueryDelegateStakeRemovalsForBlockRequest, opts ...grpc.CallOption) (*QueryDelegateStakeRemovalsForBlockResponse, error) + GetStakeRemovalsUpUntilBlock(ctx context.Context, in *QueryStakeRemovalsUpUntilBlockRequest, opts ...grpc.CallOption) (*QueryStakeRemovalsUpUntilBlockResponse, error) + GetDelegateStakeRemovalsUpUntilBlock(ctx context.Context, in *QueryDelegateStakeRemovalsUpUntilBlockRequest, opts ...grpc.CallOption) (*QueryDelegateStakeRemovalsUpUntilBlockResponse, error) GetStakeRemovalInfo(ctx context.Context, in *QueryStakeRemovalInfoRequest, opts ...grpc.CallOption) (*QueryStakeRemovalInfoResponse, error) GetDelegateStakeRemovalInfo(ctx context.Context, in *QueryDelegateStakeRemovalInfoRequest, opts ...grpc.CallOption) (*QueryDelegateStakeRemovalInfoResponse, error) GetWorkerNodeInfo(ctx context.Context, in *QueryWorkerNodeInfoRequest, opts ...grpc.CallOption) (*QueryWorkerNodeInfoResponse, error) GetReputerNodeInfo(ctx context.Context, in *QueryReputerNodeInfoRequest, opts ...grpc.CallOption) (*QueryReputerNodeInfoResponse, error) - GetWorkerAddressByP2PKey(ctx context.Context, in *QueryWorkerAddressByP2PKeyRequest, opts ...grpc.CallOption) (*QueryWorkerAddressByP2PKeyResponse, error) - GetReputerAddressByP2PKey(ctx context.Context, in *QueryReputerAddressByP2PKeyRequest, opts ...grpc.CallOption) (*QueryReputerAddressByP2PKeyResponse, error) IsWorkerRegisteredInTopicId(ctx context.Context, in *QueryIsWorkerRegisteredInTopicIdRequest, opts ...grpc.CallOption) (*QueryIsWorkerRegisteredInTopicIdResponse, error) IsReputerRegisteredInTopicId(ctx context.Context, in *QueryIsReputerRegisteredInTopicIdRequest, opts ...grpc.CallOption) (*QueryIsReputerRegisteredInTopicIdResponse, error) GetNetworkInferencesAtBlock(ctx context.Context, in *QueryNetworkInferencesAtBlockRequest, opts ...grpc.CallOption) (*QueryNetworkInferencesAtBlockResponse, error) @@ -7248,7 +7253,6 @@ type QueryClient interface { GetInfererNetworkRegret(ctx context.Context, in *QueryInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryInfererNetworkRegretResponse, error) GetForecasterNetworkRegret(ctx context.Context, in *QueryForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryForecasterNetworkRegretResponse, error) GetOneInForecasterNetworkRegret(ctx context.Context, in *QueryOneInForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneInForecasterNetworkRegretResponse, error) - GetOneInForecasterSelfNetworkRegret(ctx context.Context, in *QueryOneInForecasterSelfNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneInForecasterSelfNetworkRegretResponse, error) IsWhitelistAdmin(ctx context.Context, in *QueryIsWhitelistAdminRequest, opts ...grpc.CallOption) (*QueryIsWhitelistAdminResponse, error) GetTopicLastWorkerCommitInfo(ctx context.Context, in *QueryTopicLastCommitRequest, opts ...grpc.CallOption) (*QueryTopicLastCommitResponse, error) GetTopicLastReputerCommitInfo(ctx context.Context, in *QueryTopicLastCommitRequest, opts ...grpc.CallOption) (*QueryTopicLastCommitResponse, error) @@ -7264,7 +7268,6 @@ type QueryClient interface { TopicExists(ctx context.Context, in *QueryTopicExistsRequest, opts ...grpc.CallOption) (*QueryTopicExistsResponse, error) IsTopicActive(ctx context.Context, in *QueryIsTopicActiveRequest, opts ...grpc.CallOption) (*QueryIsTopicActiveResponse, error) GetTopicFeeRevenue(ctx context.Context, in *QueryTopicFeeRevenueRequest, opts ...grpc.CallOption) (*QueryTopicFeeRevenueResponse, error) - GetChurnableTopics(ctx context.Context, in *QueryChurnableTopicsRequest, opts ...grpc.CallOption) (*QueryChurnableTopicsResponse, error) GetRewardableTopics(ctx context.Context, in *QueryRewardableTopicsRequest, opts ...grpc.CallOption) (*QueryRewardableTopicsResponse, error) GetLatestInfererScore(ctx context.Context, in *QueryLatestInfererScoreRequest, opts ...grpc.CallOption) (*QueryLatestInfererScoreResponse, error) GetLatestForecasterScore(ctx context.Context, in *QueryLatestForecasterScoreRequest, opts ...grpc.CallOption) (*QueryLatestForecasterScoreResponse, error) @@ -7280,8 +7283,11 @@ type QueryClient interface { GetPreviousForecastRewardFraction(ctx context.Context, in *QueryPreviousForecastRewardFractionRequest, opts ...grpc.CallOption) (*QueryPreviousForecastRewardFractionResponse, error) GetPreviousPercentageRewardToStakedReputers(ctx context.Context, in *QueryPreviousPercentageRewardToStakedReputersRequest, opts ...grpc.CallOption) (*QueryPreviousPercentageRewardToStakedReputersResponse, error) GetTotalRewardToDistribute(ctx context.Context, in *QueryTotalRewardToDistributeRequest, opts ...grpc.CallOption) (*QueryTotalRewardToDistributeResponse, error) - GetTopicLastWorkerPayload(ctx context.Context, in *QueryTopicLastWorkerPayloadRequest, opts ...grpc.CallOption) (*QueryTopicLastWorkerPayloadResponse, error) - GetTopicLastReputerPayload(ctx context.Context, in *QueryTopicLastReputerPayloadRequest, opts ...grpc.CallOption) (*QueryTopicLastReputerPayloadResponse, error) + GetNaiveInfererNetworkRegret(ctx context.Context, in *QueryNaiveInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryNaiveInfererNetworkRegretResponse, error) + GetOneOutInfererInfererNetworkRegret(ctx context.Context, in *QueryOneOutInfererInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutInfererInfererNetworkRegretResponse, error) + GetOneOutInfererForecasterNetworkRegret(ctx context.Context, in *QueryOneOutInfererForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutInfererForecasterNetworkRegretResponse, error) + GetOneOutForecasterInfererNetworkRegret(ctx context.Context, in *QueryOneOutForecasterInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutForecasterInfererNetworkRegretResponse, error) + GetOneOutForecasterForecasterNetworkRegret(ctx context.Context, in *QueryOneOutForecasterForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutForecasterForecasterNetworkRegretResponse, error) } type queryClient struct { @@ -7294,7 +7300,7 @@ func NewQueryClient(cc grpc1.ClientConn) QueryClient { func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/Params", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/Params", in, out, opts...) if err != nil { return nil, err } @@ -7303,7 +7309,7 @@ func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts . func (c *queryClient) GetNextTopicId(ctx context.Context, in *QueryNextTopicIdRequest, opts ...grpc.CallOption) (*QueryNextTopicIdResponse, error) { out := new(QueryNextTopicIdResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetNextTopicId", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetNextTopicId", in, out, opts...) if err != nil { return nil, err } @@ -7312,7 +7318,7 @@ func (c *queryClient) GetNextTopicId(ctx context.Context, in *QueryNextTopicIdRe func (c *queryClient) GetTopic(ctx context.Context, in *QueryTopicRequest, opts ...grpc.CallOption) (*QueryTopicResponse, error) { out := new(QueryTopicResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetTopic", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetTopic", in, out, opts...) if err != nil { return nil, err } @@ -7321,7 +7327,7 @@ func (c *queryClient) GetTopic(ctx context.Context, in *QueryTopicRequest, opts func (c *queryClient) GetActiveTopics(ctx context.Context, in *QueryActiveTopicsRequest, opts ...grpc.CallOption) (*QueryActiveTopicsResponse, error) { out := new(QueryActiveTopicsResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetActiveTopics", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetActiveTopics", in, out, opts...) if err != nil { return nil, err } @@ -7330,7 +7336,7 @@ func (c *queryClient) GetActiveTopics(ctx context.Context, in *QueryActiveTopics func (c *queryClient) GetWorkerLatestInferenceByTopicId(ctx context.Context, in *QueryWorkerLatestInferenceRequest, opts ...grpc.CallOption) (*QueryWorkerLatestInferenceResponse, error) { out := new(QueryWorkerLatestInferenceResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetWorkerLatestInferenceByTopicId", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetWorkerLatestInferenceByTopicId", in, out, opts...) if err != nil { return nil, err } @@ -7339,7 +7345,7 @@ func (c *queryClient) GetWorkerLatestInferenceByTopicId(ctx context.Context, in func (c *queryClient) GetInferencesAtBlock(ctx context.Context, in *QueryInferencesAtBlockRequest, opts ...grpc.CallOption) (*QueryInferencesAtBlockResponse, error) { out := new(QueryInferencesAtBlockResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetInferencesAtBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetInferencesAtBlock", in, out, opts...) if err != nil { return nil, err } @@ -7348,7 +7354,7 @@ func (c *queryClient) GetInferencesAtBlock(ctx context.Context, in *QueryInferen func (c *queryClient) GetLatestTopicInferences(ctx context.Context, in *QueryLatestTopicInferencesRequest, opts ...grpc.CallOption) (*QueryLatestTopicInferencesResponse, error) { out := new(QueryLatestTopicInferencesResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetLatestTopicInferences", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetLatestTopicInferences", in, out, opts...) if err != nil { return nil, err } @@ -7357,7 +7363,7 @@ func (c *queryClient) GetLatestTopicInferences(ctx context.Context, in *QueryLat func (c *queryClient) GetForecastsAtBlock(ctx context.Context, in *QueryForecastsAtBlockRequest, opts ...grpc.CallOption) (*QueryForecastsAtBlockResponse, error) { out := new(QueryForecastsAtBlockResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetForecastsAtBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetForecastsAtBlock", in, out, opts...) if err != nil { return nil, err } @@ -7366,7 +7372,7 @@ func (c *queryClient) GetForecastsAtBlock(ctx context.Context, in *QueryForecast func (c *queryClient) GetNetworkLossBundleAtBlock(ctx context.Context, in *QueryNetworkLossBundleAtBlockRequest, opts ...grpc.CallOption) (*QueryNetworkLossBundleAtBlockResponse, error) { out := new(QueryNetworkLossBundleAtBlockResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetNetworkLossBundleAtBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetNetworkLossBundleAtBlock", in, out, opts...) if err != nil { return nil, err } @@ -7375,7 +7381,7 @@ func (c *queryClient) GetNetworkLossBundleAtBlock(ctx context.Context, in *Query func (c *queryClient) GetTotalStake(ctx context.Context, in *QueryTotalStakeRequest, opts ...grpc.CallOption) (*QueryTotalStakeResponse, error) { out := new(QueryTotalStakeResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetTotalStake", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetTotalStake", in, out, opts...) if err != nil { return nil, err } @@ -7384,7 +7390,7 @@ func (c *queryClient) GetTotalStake(ctx context.Context, in *QueryTotalStakeRequ func (c *queryClient) GetReputerStakeInTopic(ctx context.Context, in *QueryReputerStakeInTopicRequest, opts ...grpc.CallOption) (*QueryReputerStakeInTopicResponse, error) { out := new(QueryReputerStakeInTopicResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetReputerStakeInTopic", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetReputerStakeInTopic", in, out, opts...) if err != nil { return nil, err } @@ -7393,7 +7399,7 @@ func (c *queryClient) GetReputerStakeInTopic(ctx context.Context, in *QueryReput func (c *queryClient) GetMultiReputerStakeInTopic(ctx context.Context, in *QueryMultiReputerStakeInTopicRequest, opts ...grpc.CallOption) (*QueryMultiReputerStakeInTopicResponse, error) { out := new(QueryMultiReputerStakeInTopicResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetMultiReputerStakeInTopic", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetMultiReputerStakeInTopic", in, out, opts...) if err != nil { return nil, err } @@ -7402,7 +7408,7 @@ func (c *queryClient) GetMultiReputerStakeInTopic(ctx context.Context, in *Query func (c *queryClient) GetStakeFromReputerInTopicInSelf(ctx context.Context, in *QueryStakeFromReputerInTopicInSelfRequest, opts ...grpc.CallOption) (*QueryStakeFromReputerInTopicInSelfResponse, error) { out := new(QueryStakeFromReputerInTopicInSelfResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetStakeFromReputerInTopicInSelf", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetStakeFromReputerInTopicInSelf", in, out, opts...) if err != nil { return nil, err } @@ -7411,7 +7417,7 @@ func (c *queryClient) GetStakeFromReputerInTopicInSelf(ctx context.Context, in * func (c *queryClient) GetDelegateStakeInTopicInReputer(ctx context.Context, in *QueryDelegateStakeInTopicInReputerRequest, opts ...grpc.CallOption) (*QueryDelegateStakeInTopicInReputerResponse, error) { out := new(QueryDelegateStakeInTopicInReputerResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetDelegateStakeInTopicInReputer", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetDelegateStakeInTopicInReputer", in, out, opts...) if err != nil { return nil, err } @@ -7420,7 +7426,7 @@ func (c *queryClient) GetDelegateStakeInTopicInReputer(ctx context.Context, in * func (c *queryClient) GetStakeFromDelegatorInTopicInReputer(ctx context.Context, in *QueryStakeFromDelegatorInTopicInReputerRequest, opts ...grpc.CallOption) (*QueryStakeFromDelegatorInTopicInReputerResponse, error) { out := new(QueryStakeFromDelegatorInTopicInReputerResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetStakeFromDelegatorInTopicInReputer", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetStakeFromDelegatorInTopicInReputer", in, out, opts...) if err != nil { return nil, err } @@ -7429,7 +7435,7 @@ func (c *queryClient) GetStakeFromDelegatorInTopicInReputer(ctx context.Context, func (c *queryClient) GetStakeFromDelegatorInTopic(ctx context.Context, in *QueryStakeFromDelegatorInTopicRequest, opts ...grpc.CallOption) (*QueryStakeFromDelegatorInTopicResponse, error) { out := new(QueryStakeFromDelegatorInTopicResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetStakeFromDelegatorInTopic", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetStakeFromDelegatorInTopic", in, out, opts...) if err != nil { return nil, err } @@ -7438,25 +7444,25 @@ func (c *queryClient) GetStakeFromDelegatorInTopic(ctx context.Context, in *Quer func (c *queryClient) GetTopicStake(ctx context.Context, in *QueryTopicStakeRequest, opts ...grpc.CallOption) (*QueryTopicStakeResponse, error) { out := new(QueryTopicStakeResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetTopicStake", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetTopicStake", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) GetStakeRemovalsForBlock(ctx context.Context, in *QueryStakeRemovalsForBlockRequest, opts ...grpc.CallOption) (*QueryStakeRemovalsForBlockResponse, error) { - out := new(QueryStakeRemovalsForBlockResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetStakeRemovalsForBlock", in, out, opts...) +func (c *queryClient) GetStakeRemovalsUpUntilBlock(ctx context.Context, in *QueryStakeRemovalsUpUntilBlockRequest, opts ...grpc.CallOption) (*QueryStakeRemovalsUpUntilBlockResponse, error) { + out := new(QueryStakeRemovalsUpUntilBlockResponse) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetStakeRemovalsUpUntilBlock", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) GetDelegateStakeRemovalsForBlock(ctx context.Context, in *QueryDelegateStakeRemovalsForBlockRequest, opts ...grpc.CallOption) (*QueryDelegateStakeRemovalsForBlockResponse, error) { - out := new(QueryDelegateStakeRemovalsForBlockResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetDelegateStakeRemovalsForBlock", in, out, opts...) +func (c *queryClient) GetDelegateStakeRemovalsUpUntilBlock(ctx context.Context, in *QueryDelegateStakeRemovalsUpUntilBlockRequest, opts ...grpc.CallOption) (*QueryDelegateStakeRemovalsUpUntilBlockResponse, error) { + out := new(QueryDelegateStakeRemovalsUpUntilBlockResponse) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetDelegateStakeRemovalsUpUntilBlock", in, out, opts...) if err != nil { return nil, err } @@ -7465,7 +7471,7 @@ func (c *queryClient) GetDelegateStakeRemovalsForBlock(ctx context.Context, in * func (c *queryClient) GetStakeRemovalInfo(ctx context.Context, in *QueryStakeRemovalInfoRequest, opts ...grpc.CallOption) (*QueryStakeRemovalInfoResponse, error) { out := new(QueryStakeRemovalInfoResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetStakeRemovalInfo", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetStakeRemovalInfo", in, out, opts...) if err != nil { return nil, err } @@ -7474,7 +7480,7 @@ func (c *queryClient) GetStakeRemovalInfo(ctx context.Context, in *QueryStakeRem func (c *queryClient) GetDelegateStakeRemovalInfo(ctx context.Context, in *QueryDelegateStakeRemovalInfoRequest, opts ...grpc.CallOption) (*QueryDelegateStakeRemovalInfoResponse, error) { out := new(QueryDelegateStakeRemovalInfoResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetDelegateStakeRemovalInfo", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetDelegateStakeRemovalInfo", in, out, opts...) if err != nil { return nil, err } @@ -7483,7 +7489,7 @@ func (c *queryClient) GetDelegateStakeRemovalInfo(ctx context.Context, in *Query func (c *queryClient) GetWorkerNodeInfo(ctx context.Context, in *QueryWorkerNodeInfoRequest, opts ...grpc.CallOption) (*QueryWorkerNodeInfoResponse, error) { out := new(QueryWorkerNodeInfoResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetWorkerNodeInfo", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetWorkerNodeInfo", in, out, opts...) if err != nil { return nil, err } @@ -7492,25 +7498,7 @@ func (c *queryClient) GetWorkerNodeInfo(ctx context.Context, in *QueryWorkerNode func (c *queryClient) GetReputerNodeInfo(ctx context.Context, in *QueryReputerNodeInfoRequest, opts ...grpc.CallOption) (*QueryReputerNodeInfoResponse, error) { out := new(QueryReputerNodeInfoResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetReputerNodeInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetWorkerAddressByP2PKey(ctx context.Context, in *QueryWorkerAddressByP2PKeyRequest, opts ...grpc.CallOption) (*QueryWorkerAddressByP2PKeyResponse, error) { - out := new(QueryWorkerAddressByP2PKeyResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetWorkerAddressByP2PKey", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetReputerAddressByP2PKey(ctx context.Context, in *QueryReputerAddressByP2PKeyRequest, opts ...grpc.CallOption) (*QueryReputerAddressByP2PKeyResponse, error) { - out := new(QueryReputerAddressByP2PKeyResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetReputerAddressByP2PKey", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetReputerNodeInfo", in, out, opts...) if err != nil { return nil, err } @@ -7519,7 +7507,7 @@ func (c *queryClient) GetReputerAddressByP2PKey(ctx context.Context, in *QueryRe func (c *queryClient) IsWorkerRegisteredInTopicId(ctx context.Context, in *QueryIsWorkerRegisteredInTopicIdRequest, opts ...grpc.CallOption) (*QueryIsWorkerRegisteredInTopicIdResponse, error) { out := new(QueryIsWorkerRegisteredInTopicIdResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/IsWorkerRegisteredInTopicId", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/IsWorkerRegisteredInTopicId", in, out, opts...) if err != nil { return nil, err } @@ -7528,7 +7516,7 @@ func (c *queryClient) IsWorkerRegisteredInTopicId(ctx context.Context, in *Query func (c *queryClient) IsReputerRegisteredInTopicId(ctx context.Context, in *QueryIsReputerRegisteredInTopicIdRequest, opts ...grpc.CallOption) (*QueryIsReputerRegisteredInTopicIdResponse, error) { out := new(QueryIsReputerRegisteredInTopicIdResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/IsReputerRegisteredInTopicId", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/IsReputerRegisteredInTopicId", in, out, opts...) if err != nil { return nil, err } @@ -7537,7 +7525,7 @@ func (c *queryClient) IsReputerRegisteredInTopicId(ctx context.Context, in *Quer func (c *queryClient) GetNetworkInferencesAtBlock(ctx context.Context, in *QueryNetworkInferencesAtBlockRequest, opts ...grpc.CallOption) (*QueryNetworkInferencesAtBlockResponse, error) { out := new(QueryNetworkInferencesAtBlockResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetNetworkInferencesAtBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetNetworkInferencesAtBlock", in, out, opts...) if err != nil { return nil, err } @@ -7546,7 +7534,7 @@ func (c *queryClient) GetNetworkInferencesAtBlock(ctx context.Context, in *Query func (c *queryClient) GetLatestNetworkInference(ctx context.Context, in *QueryLatestNetworkInferencesRequest, opts ...grpc.CallOption) (*QueryLatestNetworkInferencesResponse, error) { out := new(QueryLatestNetworkInferencesResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetLatestNetworkInference", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetLatestNetworkInference", in, out, opts...) if err != nil { return nil, err } @@ -7555,7 +7543,7 @@ func (c *queryClient) GetLatestNetworkInference(ctx context.Context, in *QueryLa func (c *queryClient) GetLatestAvailableNetworkInference(ctx context.Context, in *QueryLatestNetworkInferencesRequest, opts ...grpc.CallOption) (*QueryLatestNetworkInferencesResponse, error) { out := new(QueryLatestNetworkInferencesResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetLatestAvailableNetworkInference", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetLatestAvailableNetworkInference", in, out, opts...) if err != nil { return nil, err } @@ -7564,7 +7552,7 @@ func (c *queryClient) GetLatestAvailableNetworkInference(ctx context.Context, in func (c *queryClient) IsWorkerNonceUnfulfilled(ctx context.Context, in *QueryIsWorkerNonceUnfulfilledRequest, opts ...grpc.CallOption) (*QueryIsWorkerNonceUnfulfilledResponse, error) { out := new(QueryIsWorkerNonceUnfulfilledResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/IsWorkerNonceUnfulfilled", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/IsWorkerNonceUnfulfilled", in, out, opts...) if err != nil { return nil, err } @@ -7573,7 +7561,7 @@ func (c *queryClient) IsWorkerNonceUnfulfilled(ctx context.Context, in *QueryIsW func (c *queryClient) IsReputerNonceUnfulfilled(ctx context.Context, in *QueryIsReputerNonceUnfulfilledRequest, opts ...grpc.CallOption) (*QueryIsReputerNonceUnfulfilledResponse, error) { out := new(QueryIsReputerNonceUnfulfilledResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/IsReputerNonceUnfulfilled", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/IsReputerNonceUnfulfilled", in, out, opts...) if err != nil { return nil, err } @@ -7582,7 +7570,7 @@ func (c *queryClient) IsReputerNonceUnfulfilled(ctx context.Context, in *QueryIs func (c *queryClient) GetUnfulfilledWorkerNonces(ctx context.Context, in *QueryUnfulfilledWorkerNoncesRequest, opts ...grpc.CallOption) (*QueryUnfulfilledWorkerNoncesResponse, error) { out := new(QueryUnfulfilledWorkerNoncesResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetUnfulfilledWorkerNonces", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetUnfulfilledWorkerNonces", in, out, opts...) if err != nil { return nil, err } @@ -7591,7 +7579,7 @@ func (c *queryClient) GetUnfulfilledWorkerNonces(ctx context.Context, in *QueryU func (c *queryClient) GetUnfulfilledReputerNonces(ctx context.Context, in *QueryUnfulfilledReputerNoncesRequest, opts ...grpc.CallOption) (*QueryUnfulfilledReputerNoncesResponse, error) { out := new(QueryUnfulfilledReputerNoncesResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetUnfulfilledReputerNonces", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetUnfulfilledReputerNonces", in, out, opts...) if err != nil { return nil, err } @@ -7600,7 +7588,7 @@ func (c *queryClient) GetUnfulfilledReputerNonces(ctx context.Context, in *Query func (c *queryClient) GetInfererNetworkRegret(ctx context.Context, in *QueryInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryInfererNetworkRegretResponse, error) { out := new(QueryInfererNetworkRegretResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetInfererNetworkRegret", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetInfererNetworkRegret", in, out, opts...) if err != nil { return nil, err } @@ -7609,7 +7597,7 @@ func (c *queryClient) GetInfererNetworkRegret(ctx context.Context, in *QueryInfe func (c *queryClient) GetForecasterNetworkRegret(ctx context.Context, in *QueryForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryForecasterNetworkRegretResponse, error) { out := new(QueryForecasterNetworkRegretResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetForecasterNetworkRegret", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetForecasterNetworkRegret", in, out, opts...) if err != nil { return nil, err } @@ -7618,16 +7606,7 @@ func (c *queryClient) GetForecasterNetworkRegret(ctx context.Context, in *QueryF func (c *queryClient) GetOneInForecasterNetworkRegret(ctx context.Context, in *QueryOneInForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneInForecasterNetworkRegretResponse, error) { out := new(QueryOneInForecasterNetworkRegretResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetOneInForecasterNetworkRegret", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetOneInForecasterSelfNetworkRegret(ctx context.Context, in *QueryOneInForecasterSelfNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneInForecasterSelfNetworkRegretResponse, error) { - out := new(QueryOneInForecasterSelfNetworkRegretResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetOneInForecasterSelfNetworkRegret", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetOneInForecasterNetworkRegret", in, out, opts...) if err != nil { return nil, err } @@ -7636,7 +7615,7 @@ func (c *queryClient) GetOneInForecasterSelfNetworkRegret(ctx context.Context, i func (c *queryClient) IsWhitelistAdmin(ctx context.Context, in *QueryIsWhitelistAdminRequest, opts ...grpc.CallOption) (*QueryIsWhitelistAdminResponse, error) { out := new(QueryIsWhitelistAdminResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/IsWhitelistAdmin", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/IsWhitelistAdmin", in, out, opts...) if err != nil { return nil, err } @@ -7645,7 +7624,7 @@ func (c *queryClient) IsWhitelistAdmin(ctx context.Context, in *QueryIsWhitelist func (c *queryClient) GetTopicLastWorkerCommitInfo(ctx context.Context, in *QueryTopicLastCommitRequest, opts ...grpc.CallOption) (*QueryTopicLastCommitResponse, error) { out := new(QueryTopicLastCommitResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetTopicLastWorkerCommitInfo", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetTopicLastWorkerCommitInfo", in, out, opts...) if err != nil { return nil, err } @@ -7654,7 +7633,7 @@ func (c *queryClient) GetTopicLastWorkerCommitInfo(ctx context.Context, in *Quer func (c *queryClient) GetTopicLastReputerCommitInfo(ctx context.Context, in *QueryTopicLastCommitRequest, opts ...grpc.CallOption) (*QueryTopicLastCommitResponse, error) { out := new(QueryTopicLastCommitResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetTopicLastReputerCommitInfo", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetTopicLastReputerCommitInfo", in, out, opts...) if err != nil { return nil, err } @@ -7663,7 +7642,7 @@ func (c *queryClient) GetTopicLastReputerCommitInfo(ctx context.Context, in *Que func (c *queryClient) GetTopicRewardNonce(ctx context.Context, in *QueryTopicRewardNonceRequest, opts ...grpc.CallOption) (*QueryTopicRewardNonceResponse, error) { out := new(QueryTopicRewardNonceResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetTopicRewardNonce", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetTopicRewardNonce", in, out, opts...) if err != nil { return nil, err } @@ -7672,7 +7651,7 @@ func (c *queryClient) GetTopicRewardNonce(ctx context.Context, in *QueryTopicRew func (c *queryClient) GetReputerLossBundlesAtBlock(ctx context.Context, in *QueryReputerLossBundlesAtBlockRequest, opts ...grpc.CallOption) (*QueryReputerLossBundlesAtBlockResponse, error) { out := new(QueryReputerLossBundlesAtBlockResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetReputerLossBundlesAtBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetReputerLossBundlesAtBlock", in, out, opts...) if err != nil { return nil, err } @@ -7681,7 +7660,7 @@ func (c *queryClient) GetReputerLossBundlesAtBlock(ctx context.Context, in *Quer func (c *queryClient) GetStakeReputerAuthority(ctx context.Context, in *QueryStakeReputerAuthorityRequest, opts ...grpc.CallOption) (*QueryStakeReputerAuthorityResponse, error) { out := new(QueryStakeReputerAuthorityResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetStakeReputerAuthority", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetStakeReputerAuthority", in, out, opts...) if err != nil { return nil, err } @@ -7690,7 +7669,7 @@ func (c *queryClient) GetStakeReputerAuthority(ctx context.Context, in *QuerySta func (c *queryClient) GetDelegateStakePlacement(ctx context.Context, in *QueryDelegateStakePlacementRequest, opts ...grpc.CallOption) (*QueryDelegateStakePlacementResponse, error) { out := new(QueryDelegateStakePlacementResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetDelegateStakePlacement", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetDelegateStakePlacement", in, out, opts...) if err != nil { return nil, err } @@ -7699,7 +7678,7 @@ func (c *queryClient) GetDelegateStakePlacement(ctx context.Context, in *QueryDe func (c *queryClient) GetDelegateStakeUponReputer(ctx context.Context, in *QueryDelegateStakeUponReputerRequest, opts ...grpc.CallOption) (*QueryDelegateStakeUponReputerResponse, error) { out := new(QueryDelegateStakeUponReputerResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetDelegateStakeUponReputer", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetDelegateStakeUponReputer", in, out, opts...) if err != nil { return nil, err } @@ -7708,7 +7687,7 @@ func (c *queryClient) GetDelegateStakeUponReputer(ctx context.Context, in *Query func (c *queryClient) GetDelegateRewardPerShare(ctx context.Context, in *QueryDelegateRewardPerShareRequest, opts ...grpc.CallOption) (*QueryDelegateRewardPerShareResponse, error) { out := new(QueryDelegateRewardPerShareResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetDelegateRewardPerShare", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetDelegateRewardPerShare", in, out, opts...) if err != nil { return nil, err } @@ -7717,7 +7696,7 @@ func (c *queryClient) GetDelegateRewardPerShare(ctx context.Context, in *QueryDe func (c *queryClient) GetStakeRemovalForReputerAndTopicId(ctx context.Context, in *QueryStakeRemovalForReputerAndTopicIdRequest, opts ...grpc.CallOption) (*QueryStakeRemovalForReputerAndTopicIdResponse, error) { out := new(QueryStakeRemovalForReputerAndTopicIdResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetStakeRemovalForReputerAndTopicId", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetStakeRemovalForReputerAndTopicId", in, out, opts...) if err != nil { return nil, err } @@ -7726,7 +7705,7 @@ func (c *queryClient) GetStakeRemovalForReputerAndTopicId(ctx context.Context, i func (c *queryClient) GetDelegateStakeRemoval(ctx context.Context, in *QueryDelegateStakeRemovalRequest, opts ...grpc.CallOption) (*QueryDelegateStakeRemovalResponse, error) { out := new(QueryDelegateStakeRemovalResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetDelegateStakeRemoval", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetDelegateStakeRemoval", in, out, opts...) if err != nil { return nil, err } @@ -7735,7 +7714,7 @@ func (c *queryClient) GetDelegateStakeRemoval(ctx context.Context, in *QueryDele func (c *queryClient) GetPreviousTopicWeight(ctx context.Context, in *QueryPreviousTopicWeightRequest, opts ...grpc.CallOption) (*QueryPreviousTopicWeightResponse, error) { out := new(QueryPreviousTopicWeightResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetPreviousTopicWeight", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetPreviousTopicWeight", in, out, opts...) if err != nil { return nil, err } @@ -7744,7 +7723,7 @@ func (c *queryClient) GetPreviousTopicWeight(ctx context.Context, in *QueryPrevi func (c *queryClient) TopicExists(ctx context.Context, in *QueryTopicExistsRequest, opts ...grpc.CallOption) (*QueryTopicExistsResponse, error) { out := new(QueryTopicExistsResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/TopicExists", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/TopicExists", in, out, opts...) if err != nil { return nil, err } @@ -7753,7 +7732,7 @@ func (c *queryClient) TopicExists(ctx context.Context, in *QueryTopicExistsReque func (c *queryClient) IsTopicActive(ctx context.Context, in *QueryIsTopicActiveRequest, opts ...grpc.CallOption) (*QueryIsTopicActiveResponse, error) { out := new(QueryIsTopicActiveResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/IsTopicActive", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/IsTopicActive", in, out, opts...) if err != nil { return nil, err } @@ -7762,16 +7741,7 @@ func (c *queryClient) IsTopicActive(ctx context.Context, in *QueryIsTopicActiveR func (c *queryClient) GetTopicFeeRevenue(ctx context.Context, in *QueryTopicFeeRevenueRequest, opts ...grpc.CallOption) (*QueryTopicFeeRevenueResponse, error) { out := new(QueryTopicFeeRevenueResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetTopicFeeRevenue", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *queryClient) GetChurnableTopics(ctx context.Context, in *QueryChurnableTopicsRequest, opts ...grpc.CallOption) (*QueryChurnableTopicsResponse, error) { - out := new(QueryChurnableTopicsResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetChurnableTopics", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetTopicFeeRevenue", in, out, opts...) if err != nil { return nil, err } @@ -7780,7 +7750,7 @@ func (c *queryClient) GetChurnableTopics(ctx context.Context, in *QueryChurnable func (c *queryClient) GetRewardableTopics(ctx context.Context, in *QueryRewardableTopicsRequest, opts ...grpc.CallOption) (*QueryRewardableTopicsResponse, error) { out := new(QueryRewardableTopicsResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetRewardableTopics", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetRewardableTopics", in, out, opts...) if err != nil { return nil, err } @@ -7789,7 +7759,7 @@ func (c *queryClient) GetRewardableTopics(ctx context.Context, in *QueryRewardab func (c *queryClient) GetLatestInfererScore(ctx context.Context, in *QueryLatestInfererScoreRequest, opts ...grpc.CallOption) (*QueryLatestInfererScoreResponse, error) { out := new(QueryLatestInfererScoreResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetLatestInfererScore", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetLatestInfererScore", in, out, opts...) if err != nil { return nil, err } @@ -7798,7 +7768,7 @@ func (c *queryClient) GetLatestInfererScore(ctx context.Context, in *QueryLatest func (c *queryClient) GetLatestForecasterScore(ctx context.Context, in *QueryLatestForecasterScoreRequest, opts ...grpc.CallOption) (*QueryLatestForecasterScoreResponse, error) { out := new(QueryLatestForecasterScoreResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetLatestForecasterScore", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetLatestForecasterScore", in, out, opts...) if err != nil { return nil, err } @@ -7807,7 +7777,7 @@ func (c *queryClient) GetLatestForecasterScore(ctx context.Context, in *QueryLat func (c *queryClient) GetLatestReputerScore(ctx context.Context, in *QueryLatestReputerScoreRequest, opts ...grpc.CallOption) (*QueryLatestReputerScoreResponse, error) { out := new(QueryLatestReputerScoreResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetLatestReputerScore", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetLatestReputerScore", in, out, opts...) if err != nil { return nil, err } @@ -7816,7 +7786,7 @@ func (c *queryClient) GetLatestReputerScore(ctx context.Context, in *QueryLatest func (c *queryClient) GetInferenceScoresUntilBlock(ctx context.Context, in *QueryInferenceScoresUntilBlockRequest, opts ...grpc.CallOption) (*QueryInferenceScoresUntilBlockResponse, error) { out := new(QueryInferenceScoresUntilBlockResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetInferenceScoresUntilBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetInferenceScoresUntilBlock", in, out, opts...) if err != nil { return nil, err } @@ -7825,7 +7795,7 @@ func (c *queryClient) GetInferenceScoresUntilBlock(ctx context.Context, in *Quer func (c *queryClient) GetWorkerInferenceScoresAtBlock(ctx context.Context, in *QueryWorkerInferenceScoresAtBlockRequest, opts ...grpc.CallOption) (*QueryWorkerInferenceScoresAtBlockResponse, error) { out := new(QueryWorkerInferenceScoresAtBlockResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetWorkerInferenceScoresAtBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetWorkerInferenceScoresAtBlock", in, out, opts...) if err != nil { return nil, err } @@ -7834,7 +7804,7 @@ func (c *queryClient) GetWorkerInferenceScoresAtBlock(ctx context.Context, in *Q func (c *queryClient) GetForecastScoresUntilBlock(ctx context.Context, in *QueryForecastScoresUntilBlockRequest, opts ...grpc.CallOption) (*QueryForecastScoresUntilBlockResponse, error) { out := new(QueryForecastScoresUntilBlockResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetForecastScoresUntilBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetForecastScoresUntilBlock", in, out, opts...) if err != nil { return nil, err } @@ -7843,7 +7813,7 @@ func (c *queryClient) GetForecastScoresUntilBlock(ctx context.Context, in *Query func (c *queryClient) GetWorkerForecastScoresAtBlock(ctx context.Context, in *QueryWorkerForecastScoresAtBlockRequest, opts ...grpc.CallOption) (*QueryWorkerForecastScoresAtBlockResponse, error) { out := new(QueryWorkerForecastScoresAtBlockResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetWorkerForecastScoresAtBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetWorkerForecastScoresAtBlock", in, out, opts...) if err != nil { return nil, err } @@ -7852,7 +7822,7 @@ func (c *queryClient) GetWorkerForecastScoresAtBlock(ctx context.Context, in *Qu func (c *queryClient) GetReputersScoresAtBlock(ctx context.Context, in *QueryReputersScoresAtBlockRequest, opts ...grpc.CallOption) (*QueryReputersScoresAtBlockResponse, error) { out := new(QueryReputersScoresAtBlockResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetReputersScoresAtBlock", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetReputersScoresAtBlock", in, out, opts...) if err != nil { return nil, err } @@ -7861,7 +7831,7 @@ func (c *queryClient) GetReputersScoresAtBlock(ctx context.Context, in *QueryRep func (c *queryClient) GetListeningCoefficient(ctx context.Context, in *QueryListeningCoefficientRequest, opts ...grpc.CallOption) (*QueryListeningCoefficientResponse, error) { out := new(QueryListeningCoefficientResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetListeningCoefficient", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetListeningCoefficient", in, out, opts...) if err != nil { return nil, err } @@ -7870,7 +7840,7 @@ func (c *queryClient) GetListeningCoefficient(ctx context.Context, in *QueryList func (c *queryClient) GetPreviousReputerRewardFraction(ctx context.Context, in *QueryPreviousReputerRewardFractionRequest, opts ...grpc.CallOption) (*QueryPreviousReputerRewardFractionResponse, error) { out := new(QueryPreviousReputerRewardFractionResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetPreviousReputerRewardFraction", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetPreviousReputerRewardFraction", in, out, opts...) if err != nil { return nil, err } @@ -7879,7 +7849,7 @@ func (c *queryClient) GetPreviousReputerRewardFraction(ctx context.Context, in * func (c *queryClient) GetPreviousInferenceRewardFraction(ctx context.Context, in *QueryPreviousInferenceRewardFractionRequest, opts ...grpc.CallOption) (*QueryPreviousInferenceRewardFractionResponse, error) { out := new(QueryPreviousInferenceRewardFractionResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetPreviousInferenceRewardFraction", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetPreviousInferenceRewardFraction", in, out, opts...) if err != nil { return nil, err } @@ -7888,7 +7858,7 @@ func (c *queryClient) GetPreviousInferenceRewardFraction(ctx context.Context, in func (c *queryClient) GetPreviousForecastRewardFraction(ctx context.Context, in *QueryPreviousForecastRewardFractionRequest, opts ...grpc.CallOption) (*QueryPreviousForecastRewardFractionResponse, error) { out := new(QueryPreviousForecastRewardFractionResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetPreviousForecastRewardFraction", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetPreviousForecastRewardFraction", in, out, opts...) if err != nil { return nil, err } @@ -7897,7 +7867,7 @@ func (c *queryClient) GetPreviousForecastRewardFraction(ctx context.Context, in func (c *queryClient) GetPreviousPercentageRewardToStakedReputers(ctx context.Context, in *QueryPreviousPercentageRewardToStakedReputersRequest, opts ...grpc.CallOption) (*QueryPreviousPercentageRewardToStakedReputersResponse, error) { out := new(QueryPreviousPercentageRewardToStakedReputersResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetPreviousPercentageRewardToStakedReputers", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetPreviousPercentageRewardToStakedReputers", in, out, opts...) if err != nil { return nil, err } @@ -7906,25 +7876,52 @@ func (c *queryClient) GetPreviousPercentageRewardToStakedReputers(ctx context.Co func (c *queryClient) GetTotalRewardToDistribute(ctx context.Context, in *QueryTotalRewardToDistributeRequest, opts ...grpc.CallOption) (*QueryTotalRewardToDistributeResponse, error) { out := new(QueryTotalRewardToDistributeResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetTotalRewardToDistribute", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetTotalRewardToDistribute", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetNaiveInfererNetworkRegret(ctx context.Context, in *QueryNaiveInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryNaiveInfererNetworkRegretResponse, error) { + out := new(QueryNaiveInfererNetworkRegretResponse) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetNaiveInfererNetworkRegret", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetOneOutInfererInfererNetworkRegret(ctx context.Context, in *QueryOneOutInfererInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutInfererInfererNetworkRegretResponse, error) { + out := new(QueryOneOutInfererInfererNetworkRegretResponse) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetOneOutInfererInfererNetworkRegret", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *queryClient) GetOneOutInfererForecasterNetworkRegret(ctx context.Context, in *QueryOneOutInfererForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutInfererForecasterNetworkRegretResponse, error) { + out := new(QueryOneOutInfererForecasterNetworkRegretResponse) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetOneOutInfererForecasterNetworkRegret", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) GetTopicLastWorkerPayload(ctx context.Context, in *QueryTopicLastWorkerPayloadRequest, opts ...grpc.CallOption) (*QueryTopicLastWorkerPayloadResponse, error) { - out := new(QueryTopicLastWorkerPayloadResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetTopicLastWorkerPayload", in, out, opts...) +func (c *queryClient) GetOneOutForecasterInfererNetworkRegret(ctx context.Context, in *QueryOneOutForecasterInfererNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutForecasterInfererNetworkRegretResponse, error) { + out := new(QueryOneOutForecasterInfererNetworkRegretResponse) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetOneOutForecasterInfererNetworkRegret", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *queryClient) GetTopicLastReputerPayload(ctx context.Context, in *QueryTopicLastReputerPayloadRequest, opts ...grpc.CallOption) (*QueryTopicLastReputerPayloadResponse, error) { - out := new(QueryTopicLastReputerPayloadResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Query/GetTopicLastReputerPayload", in, out, opts...) +func (c *queryClient) GetOneOutForecasterForecasterNetworkRegret(ctx context.Context, in *QueryOneOutForecasterForecasterNetworkRegretRequest, opts ...grpc.CallOption) (*QueryOneOutForecasterForecasterNetworkRegretResponse, error) { + out := new(QueryOneOutForecasterForecasterNetworkRegretResponse) + err := c.cc.Invoke(ctx, "/emissions.v2.Query/GetOneOutForecasterForecasterNetworkRegret", in, out, opts...) if err != nil { return nil, err } @@ -7951,14 +7948,12 @@ type QueryServer interface { GetStakeFromDelegatorInTopicInReputer(context.Context, *QueryStakeFromDelegatorInTopicInReputerRequest) (*QueryStakeFromDelegatorInTopicInReputerResponse, error) GetStakeFromDelegatorInTopic(context.Context, *QueryStakeFromDelegatorInTopicRequest) (*QueryStakeFromDelegatorInTopicResponse, error) GetTopicStake(context.Context, *QueryTopicStakeRequest) (*QueryTopicStakeResponse, error) - GetStakeRemovalsForBlock(context.Context, *QueryStakeRemovalsForBlockRequest) (*QueryStakeRemovalsForBlockResponse, error) - GetDelegateStakeRemovalsForBlock(context.Context, *QueryDelegateStakeRemovalsForBlockRequest) (*QueryDelegateStakeRemovalsForBlockResponse, error) + GetStakeRemovalsUpUntilBlock(context.Context, *QueryStakeRemovalsUpUntilBlockRequest) (*QueryStakeRemovalsUpUntilBlockResponse, error) + GetDelegateStakeRemovalsUpUntilBlock(context.Context, *QueryDelegateStakeRemovalsUpUntilBlockRequest) (*QueryDelegateStakeRemovalsUpUntilBlockResponse, error) GetStakeRemovalInfo(context.Context, *QueryStakeRemovalInfoRequest) (*QueryStakeRemovalInfoResponse, error) GetDelegateStakeRemovalInfo(context.Context, *QueryDelegateStakeRemovalInfoRequest) (*QueryDelegateStakeRemovalInfoResponse, error) GetWorkerNodeInfo(context.Context, *QueryWorkerNodeInfoRequest) (*QueryWorkerNodeInfoResponse, error) GetReputerNodeInfo(context.Context, *QueryReputerNodeInfoRequest) (*QueryReputerNodeInfoResponse, error) - GetWorkerAddressByP2PKey(context.Context, *QueryWorkerAddressByP2PKeyRequest) (*QueryWorkerAddressByP2PKeyResponse, error) - GetReputerAddressByP2PKey(context.Context, *QueryReputerAddressByP2PKeyRequest) (*QueryReputerAddressByP2PKeyResponse, error) IsWorkerRegisteredInTopicId(context.Context, *QueryIsWorkerRegisteredInTopicIdRequest) (*QueryIsWorkerRegisteredInTopicIdResponse, error) IsReputerRegisteredInTopicId(context.Context, *QueryIsReputerRegisteredInTopicIdRequest) (*QueryIsReputerRegisteredInTopicIdResponse, error) GetNetworkInferencesAtBlock(context.Context, *QueryNetworkInferencesAtBlockRequest) (*QueryNetworkInferencesAtBlockResponse, error) @@ -7971,7 +7966,6 @@ type QueryServer interface { GetInfererNetworkRegret(context.Context, *QueryInfererNetworkRegretRequest) (*QueryInfererNetworkRegretResponse, error) GetForecasterNetworkRegret(context.Context, *QueryForecasterNetworkRegretRequest) (*QueryForecasterNetworkRegretResponse, error) GetOneInForecasterNetworkRegret(context.Context, *QueryOneInForecasterNetworkRegretRequest) (*QueryOneInForecasterNetworkRegretResponse, error) - GetOneInForecasterSelfNetworkRegret(context.Context, *QueryOneInForecasterSelfNetworkRegretRequest) (*QueryOneInForecasterSelfNetworkRegretResponse, error) IsWhitelistAdmin(context.Context, *QueryIsWhitelistAdminRequest) (*QueryIsWhitelistAdminResponse, error) GetTopicLastWorkerCommitInfo(context.Context, *QueryTopicLastCommitRequest) (*QueryTopicLastCommitResponse, error) GetTopicLastReputerCommitInfo(context.Context, *QueryTopicLastCommitRequest) (*QueryTopicLastCommitResponse, error) @@ -7987,7 +7981,6 @@ type QueryServer interface { TopicExists(context.Context, *QueryTopicExistsRequest) (*QueryTopicExistsResponse, error) IsTopicActive(context.Context, *QueryIsTopicActiveRequest) (*QueryIsTopicActiveResponse, error) GetTopicFeeRevenue(context.Context, *QueryTopicFeeRevenueRequest) (*QueryTopicFeeRevenueResponse, error) - GetChurnableTopics(context.Context, *QueryChurnableTopicsRequest) (*QueryChurnableTopicsResponse, error) GetRewardableTopics(context.Context, *QueryRewardableTopicsRequest) (*QueryRewardableTopicsResponse, error) GetLatestInfererScore(context.Context, *QueryLatestInfererScoreRequest) (*QueryLatestInfererScoreResponse, error) GetLatestForecasterScore(context.Context, *QueryLatestForecasterScoreRequest) (*QueryLatestForecasterScoreResponse, error) @@ -8003,8 +7996,11 @@ type QueryServer interface { GetPreviousForecastRewardFraction(context.Context, *QueryPreviousForecastRewardFractionRequest) (*QueryPreviousForecastRewardFractionResponse, error) GetPreviousPercentageRewardToStakedReputers(context.Context, *QueryPreviousPercentageRewardToStakedReputersRequest) (*QueryPreviousPercentageRewardToStakedReputersResponse, error) GetTotalRewardToDistribute(context.Context, *QueryTotalRewardToDistributeRequest) (*QueryTotalRewardToDistributeResponse, error) - GetTopicLastWorkerPayload(context.Context, *QueryTopicLastWorkerPayloadRequest) (*QueryTopicLastWorkerPayloadResponse, error) - GetTopicLastReputerPayload(context.Context, *QueryTopicLastReputerPayloadRequest) (*QueryTopicLastReputerPayloadResponse, error) + GetNaiveInfererNetworkRegret(context.Context, *QueryNaiveInfererNetworkRegretRequest) (*QueryNaiveInfererNetworkRegretResponse, error) + GetOneOutInfererInfererNetworkRegret(context.Context, *QueryOneOutInfererInfererNetworkRegretRequest) (*QueryOneOutInfererInfererNetworkRegretResponse, error) + GetOneOutInfererForecasterNetworkRegret(context.Context, *QueryOneOutInfererForecasterNetworkRegretRequest) (*QueryOneOutInfererForecasterNetworkRegretResponse, error) + GetOneOutForecasterInfererNetworkRegret(context.Context, *QueryOneOutForecasterInfererNetworkRegretRequest) (*QueryOneOutForecasterInfererNetworkRegretResponse, error) + GetOneOutForecasterForecasterNetworkRegret(context.Context, *QueryOneOutForecasterForecasterNetworkRegretRequest) (*QueryOneOutForecasterForecasterNetworkRegretResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. @@ -8062,11 +8058,11 @@ func (*UnimplementedQueryServer) GetStakeFromDelegatorInTopic(ctx context.Contex func (*UnimplementedQueryServer) GetTopicStake(ctx context.Context, req *QueryTopicStakeRequest) (*QueryTopicStakeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTopicStake not implemented") } -func (*UnimplementedQueryServer) GetStakeRemovalsForBlock(ctx context.Context, req *QueryStakeRemovalsForBlockRequest) (*QueryStakeRemovalsForBlockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetStakeRemovalsForBlock not implemented") +func (*UnimplementedQueryServer) GetStakeRemovalsUpUntilBlock(ctx context.Context, req *QueryStakeRemovalsUpUntilBlockRequest) (*QueryStakeRemovalsUpUntilBlockResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetStakeRemovalsUpUntilBlock not implemented") } -func (*UnimplementedQueryServer) GetDelegateStakeRemovalsForBlock(ctx context.Context, req *QueryDelegateStakeRemovalsForBlockRequest) (*QueryDelegateStakeRemovalsForBlockResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDelegateStakeRemovalsForBlock not implemented") +func (*UnimplementedQueryServer) GetDelegateStakeRemovalsUpUntilBlock(ctx context.Context, req *QueryDelegateStakeRemovalsUpUntilBlockRequest) (*QueryDelegateStakeRemovalsUpUntilBlockResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDelegateStakeRemovalsUpUntilBlock not implemented") } func (*UnimplementedQueryServer) GetStakeRemovalInfo(ctx context.Context, req *QueryStakeRemovalInfoRequest) (*QueryStakeRemovalInfoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetStakeRemovalInfo not implemented") @@ -8080,12 +8076,6 @@ func (*UnimplementedQueryServer) GetWorkerNodeInfo(ctx context.Context, req *Que func (*UnimplementedQueryServer) GetReputerNodeInfo(ctx context.Context, req *QueryReputerNodeInfoRequest) (*QueryReputerNodeInfoResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetReputerNodeInfo not implemented") } -func (*UnimplementedQueryServer) GetWorkerAddressByP2PKey(ctx context.Context, req *QueryWorkerAddressByP2PKeyRequest) (*QueryWorkerAddressByP2PKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetWorkerAddressByP2PKey not implemented") -} -func (*UnimplementedQueryServer) GetReputerAddressByP2PKey(ctx context.Context, req *QueryReputerAddressByP2PKeyRequest) (*QueryReputerAddressByP2PKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetReputerAddressByP2PKey not implemented") -} func (*UnimplementedQueryServer) IsWorkerRegisteredInTopicId(ctx context.Context, req *QueryIsWorkerRegisteredInTopicIdRequest) (*QueryIsWorkerRegisteredInTopicIdResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method IsWorkerRegisteredInTopicId not implemented") } @@ -8122,9 +8112,6 @@ func (*UnimplementedQueryServer) GetForecasterNetworkRegret(ctx context.Context, func (*UnimplementedQueryServer) GetOneInForecasterNetworkRegret(ctx context.Context, req *QueryOneInForecasterNetworkRegretRequest) (*QueryOneInForecasterNetworkRegretResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetOneInForecasterNetworkRegret not implemented") } -func (*UnimplementedQueryServer) GetOneInForecasterSelfNetworkRegret(ctx context.Context, req *QueryOneInForecasterSelfNetworkRegretRequest) (*QueryOneInForecasterSelfNetworkRegretResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOneInForecasterSelfNetworkRegret not implemented") -} func (*UnimplementedQueryServer) IsWhitelistAdmin(ctx context.Context, req *QueryIsWhitelistAdminRequest) (*QueryIsWhitelistAdminResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method IsWhitelistAdmin not implemented") } @@ -8170,9 +8157,6 @@ func (*UnimplementedQueryServer) IsTopicActive(ctx context.Context, req *QueryIs func (*UnimplementedQueryServer) GetTopicFeeRevenue(ctx context.Context, req *QueryTopicFeeRevenueRequest) (*QueryTopicFeeRevenueResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTopicFeeRevenue not implemented") } -func (*UnimplementedQueryServer) GetChurnableTopics(ctx context.Context, req *QueryChurnableTopicsRequest) (*QueryChurnableTopicsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetChurnableTopics not implemented") -} func (*UnimplementedQueryServer) GetRewardableTopics(ctx context.Context, req *QueryRewardableTopicsRequest) (*QueryRewardableTopicsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRewardableTopics not implemented") } @@ -8218,11 +8202,20 @@ func (*UnimplementedQueryServer) GetPreviousPercentageRewardToStakedReputers(ctx func (*UnimplementedQueryServer) GetTotalRewardToDistribute(ctx context.Context, req *QueryTotalRewardToDistributeRequest) (*QueryTotalRewardToDistributeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTotalRewardToDistribute not implemented") } -func (*UnimplementedQueryServer) GetTopicLastWorkerPayload(ctx context.Context, req *QueryTopicLastWorkerPayloadRequest) (*QueryTopicLastWorkerPayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTopicLastWorkerPayload not implemented") +func (*UnimplementedQueryServer) GetNaiveInfererNetworkRegret(ctx context.Context, req *QueryNaiveInfererNetworkRegretRequest) (*QueryNaiveInfererNetworkRegretResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetNaiveInfererNetworkRegret not implemented") +} +func (*UnimplementedQueryServer) GetOneOutInfererInfererNetworkRegret(ctx context.Context, req *QueryOneOutInfererInfererNetworkRegretRequest) (*QueryOneOutInfererInfererNetworkRegretResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOneOutInfererInfererNetworkRegret not implemented") } -func (*UnimplementedQueryServer) GetTopicLastReputerPayload(ctx context.Context, req *QueryTopicLastReputerPayloadRequest) (*QueryTopicLastReputerPayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTopicLastReputerPayload not implemented") +func (*UnimplementedQueryServer) GetOneOutInfererForecasterNetworkRegret(ctx context.Context, req *QueryOneOutInfererForecasterNetworkRegretRequest) (*QueryOneOutInfererForecasterNetworkRegretResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOneOutInfererForecasterNetworkRegret not implemented") +} +func (*UnimplementedQueryServer) GetOneOutForecasterInfererNetworkRegret(ctx context.Context, req *QueryOneOutForecasterInfererNetworkRegretRequest) (*QueryOneOutForecasterInfererNetworkRegretResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOneOutForecasterInfererNetworkRegret not implemented") +} +func (*UnimplementedQueryServer) GetOneOutForecasterForecasterNetworkRegret(ctx context.Context, req *QueryOneOutForecasterForecasterNetworkRegretRequest) (*QueryOneOutForecasterForecasterNetworkRegretResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetOneOutForecasterForecasterNetworkRegret not implemented") } func RegisterQueryServer(s grpc1.Server, srv QueryServer) { @@ -8239,7 +8232,7 @@ func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/Params", + FullMethod: "/emissions.v2.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) @@ -8257,7 +8250,7 @@ func _Query_GetNextTopicId_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetNextTopicId", + FullMethod: "/emissions.v2.Query/GetNextTopicId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetNextTopicId(ctx, req.(*QueryNextTopicIdRequest)) @@ -8275,7 +8268,7 @@ func _Query_GetTopic_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetTopic", + FullMethod: "/emissions.v2.Query/GetTopic", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetTopic(ctx, req.(*QueryTopicRequest)) @@ -8293,7 +8286,7 @@ func _Query_GetActiveTopics_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetActiveTopics", + FullMethod: "/emissions.v2.Query/GetActiveTopics", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetActiveTopics(ctx, req.(*QueryActiveTopicsRequest)) @@ -8311,7 +8304,7 @@ func _Query_GetWorkerLatestInferenceByTopicId_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetWorkerLatestInferenceByTopicId", + FullMethod: "/emissions.v2.Query/GetWorkerLatestInferenceByTopicId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetWorkerLatestInferenceByTopicId(ctx, req.(*QueryWorkerLatestInferenceRequest)) @@ -8329,7 +8322,7 @@ func _Query_GetInferencesAtBlock_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetInferencesAtBlock", + FullMethod: "/emissions.v2.Query/GetInferencesAtBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetInferencesAtBlock(ctx, req.(*QueryInferencesAtBlockRequest)) @@ -8347,7 +8340,7 @@ func _Query_GetLatestTopicInferences_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetLatestTopicInferences", + FullMethod: "/emissions.v2.Query/GetLatestTopicInferences", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetLatestTopicInferences(ctx, req.(*QueryLatestTopicInferencesRequest)) @@ -8365,7 +8358,7 @@ func _Query_GetForecastsAtBlock_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetForecastsAtBlock", + FullMethod: "/emissions.v2.Query/GetForecastsAtBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetForecastsAtBlock(ctx, req.(*QueryForecastsAtBlockRequest)) @@ -8383,7 +8376,7 @@ func _Query_GetNetworkLossBundleAtBlock_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetNetworkLossBundleAtBlock", + FullMethod: "/emissions.v2.Query/GetNetworkLossBundleAtBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetNetworkLossBundleAtBlock(ctx, req.(*QueryNetworkLossBundleAtBlockRequest)) @@ -8401,7 +8394,7 @@ func _Query_GetTotalStake_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetTotalStake", + FullMethod: "/emissions.v2.Query/GetTotalStake", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetTotalStake(ctx, req.(*QueryTotalStakeRequest)) @@ -8419,7 +8412,7 @@ func _Query_GetReputerStakeInTopic_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetReputerStakeInTopic", + FullMethod: "/emissions.v2.Query/GetReputerStakeInTopic", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetReputerStakeInTopic(ctx, req.(*QueryReputerStakeInTopicRequest)) @@ -8437,7 +8430,7 @@ func _Query_GetMultiReputerStakeInTopic_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetMultiReputerStakeInTopic", + FullMethod: "/emissions.v2.Query/GetMultiReputerStakeInTopic", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetMultiReputerStakeInTopic(ctx, req.(*QueryMultiReputerStakeInTopicRequest)) @@ -8455,7 +8448,7 @@ func _Query_GetStakeFromReputerInTopicInSelf_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetStakeFromReputerInTopicInSelf", + FullMethod: "/emissions.v2.Query/GetStakeFromReputerInTopicInSelf", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetStakeFromReputerInTopicInSelf(ctx, req.(*QueryStakeFromReputerInTopicInSelfRequest)) @@ -8473,7 +8466,7 @@ func _Query_GetDelegateStakeInTopicInReputer_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetDelegateStakeInTopicInReputer", + FullMethod: "/emissions.v2.Query/GetDelegateStakeInTopicInReputer", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetDelegateStakeInTopicInReputer(ctx, req.(*QueryDelegateStakeInTopicInReputerRequest)) @@ -8491,7 +8484,7 @@ func _Query_GetStakeFromDelegatorInTopicInReputer_Handler(srv interface{}, ctx c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetStakeFromDelegatorInTopicInReputer", + FullMethod: "/emissions.v2.Query/GetStakeFromDelegatorInTopicInReputer", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetStakeFromDelegatorInTopicInReputer(ctx, req.(*QueryStakeFromDelegatorInTopicInReputerRequest)) @@ -8509,7 +8502,7 @@ func _Query_GetStakeFromDelegatorInTopic_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetStakeFromDelegatorInTopic", + FullMethod: "/emissions.v2.Query/GetStakeFromDelegatorInTopic", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetStakeFromDelegatorInTopic(ctx, req.(*QueryStakeFromDelegatorInTopicRequest)) @@ -8527,7 +8520,7 @@ func _Query_GetTopicStake_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetTopicStake", + FullMethod: "/emissions.v2.Query/GetTopicStake", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetTopicStake(ctx, req.(*QueryTopicStakeRequest)) @@ -8535,38 +8528,38 @@ func _Query_GetTopicStake_Handler(srv interface{}, ctx context.Context, dec func return interceptor(ctx, in, info, handler) } -func _Query_GetStakeRemovalsForBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryStakeRemovalsForBlockRequest) +func _Query_GetStakeRemovalsUpUntilBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryStakeRemovalsUpUntilBlockRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GetStakeRemovalsForBlock(ctx, in) + return srv.(QueryServer).GetStakeRemovalsUpUntilBlock(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetStakeRemovalsForBlock", + FullMethod: "/emissions.v2.Query/GetStakeRemovalsUpUntilBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetStakeRemovalsForBlock(ctx, req.(*QueryStakeRemovalsForBlockRequest)) + return srv.(QueryServer).GetStakeRemovalsUpUntilBlock(ctx, req.(*QueryStakeRemovalsUpUntilBlockRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_GetDelegateStakeRemovalsForBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryDelegateStakeRemovalsForBlockRequest) +func _Query_GetDelegateStakeRemovalsUpUntilBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryDelegateStakeRemovalsUpUntilBlockRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GetDelegateStakeRemovalsForBlock(ctx, in) + return srv.(QueryServer).GetDelegateStakeRemovalsUpUntilBlock(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetDelegateStakeRemovalsForBlock", + FullMethod: "/emissions.v2.Query/GetDelegateStakeRemovalsUpUntilBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetDelegateStakeRemovalsForBlock(ctx, req.(*QueryDelegateStakeRemovalsForBlockRequest)) + return srv.(QueryServer).GetDelegateStakeRemovalsUpUntilBlock(ctx, req.(*QueryDelegateStakeRemovalsUpUntilBlockRequest)) } return interceptor(ctx, in, info, handler) } @@ -8581,7 +8574,7 @@ func _Query_GetStakeRemovalInfo_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetStakeRemovalInfo", + FullMethod: "/emissions.v2.Query/GetStakeRemovalInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetStakeRemovalInfo(ctx, req.(*QueryStakeRemovalInfoRequest)) @@ -8599,7 +8592,7 @@ func _Query_GetDelegateStakeRemovalInfo_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetDelegateStakeRemovalInfo", + FullMethod: "/emissions.v2.Query/GetDelegateStakeRemovalInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetDelegateStakeRemovalInfo(ctx, req.(*QueryDelegateStakeRemovalInfoRequest)) @@ -8617,7 +8610,7 @@ func _Query_GetWorkerNodeInfo_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetWorkerNodeInfo", + FullMethod: "/emissions.v2.Query/GetWorkerNodeInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetWorkerNodeInfo(ctx, req.(*QueryWorkerNodeInfoRequest)) @@ -8635,7 +8628,7 @@ func _Query_GetReputerNodeInfo_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetReputerNodeInfo", + FullMethod: "/emissions.v2.Query/GetReputerNodeInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetReputerNodeInfo(ctx, req.(*QueryReputerNodeInfoRequest)) @@ -8643,42 +8636,6 @@ func _Query_GetReputerNodeInfo_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _Query_GetWorkerAddressByP2PKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryWorkerAddressByP2PKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetWorkerAddressByP2PKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/emissions.v1.Query/GetWorkerAddressByP2PKey", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetWorkerAddressByP2PKey(ctx, req.(*QueryWorkerAddressByP2PKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Query_GetReputerAddressByP2PKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryReputerAddressByP2PKeyRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetReputerAddressByP2PKey(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/emissions.v1.Query/GetReputerAddressByP2PKey", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetReputerAddressByP2PKey(ctx, req.(*QueryReputerAddressByP2PKeyRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_IsWorkerRegisteredInTopicId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryIsWorkerRegisteredInTopicIdRequest) if err := dec(in); err != nil { @@ -8689,7 +8646,7 @@ func _Query_IsWorkerRegisteredInTopicId_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/IsWorkerRegisteredInTopicId", + FullMethod: "/emissions.v2.Query/IsWorkerRegisteredInTopicId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).IsWorkerRegisteredInTopicId(ctx, req.(*QueryIsWorkerRegisteredInTopicIdRequest)) @@ -8707,7 +8664,7 @@ func _Query_IsReputerRegisteredInTopicId_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/IsReputerRegisteredInTopicId", + FullMethod: "/emissions.v2.Query/IsReputerRegisteredInTopicId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).IsReputerRegisteredInTopicId(ctx, req.(*QueryIsReputerRegisteredInTopicIdRequest)) @@ -8725,7 +8682,7 @@ func _Query_GetNetworkInferencesAtBlock_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetNetworkInferencesAtBlock", + FullMethod: "/emissions.v2.Query/GetNetworkInferencesAtBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetNetworkInferencesAtBlock(ctx, req.(*QueryNetworkInferencesAtBlockRequest)) @@ -8743,7 +8700,7 @@ func _Query_GetLatestNetworkInference_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetLatestNetworkInference", + FullMethod: "/emissions.v2.Query/GetLatestNetworkInference", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetLatestNetworkInference(ctx, req.(*QueryLatestNetworkInferencesRequest)) @@ -8761,7 +8718,7 @@ func _Query_GetLatestAvailableNetworkInference_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetLatestAvailableNetworkInference", + FullMethod: "/emissions.v2.Query/GetLatestAvailableNetworkInference", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetLatestAvailableNetworkInference(ctx, req.(*QueryLatestNetworkInferencesRequest)) @@ -8779,7 +8736,7 @@ func _Query_IsWorkerNonceUnfulfilled_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/IsWorkerNonceUnfulfilled", + FullMethod: "/emissions.v2.Query/IsWorkerNonceUnfulfilled", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).IsWorkerNonceUnfulfilled(ctx, req.(*QueryIsWorkerNonceUnfulfilledRequest)) @@ -8797,7 +8754,7 @@ func _Query_IsReputerNonceUnfulfilled_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/IsReputerNonceUnfulfilled", + FullMethod: "/emissions.v2.Query/IsReputerNonceUnfulfilled", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).IsReputerNonceUnfulfilled(ctx, req.(*QueryIsReputerNonceUnfulfilledRequest)) @@ -8815,7 +8772,7 @@ func _Query_GetUnfulfilledWorkerNonces_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetUnfulfilledWorkerNonces", + FullMethod: "/emissions.v2.Query/GetUnfulfilledWorkerNonces", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetUnfulfilledWorkerNonces(ctx, req.(*QueryUnfulfilledWorkerNoncesRequest)) @@ -8833,7 +8790,7 @@ func _Query_GetUnfulfilledReputerNonces_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetUnfulfilledReputerNonces", + FullMethod: "/emissions.v2.Query/GetUnfulfilledReputerNonces", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetUnfulfilledReputerNonces(ctx, req.(*QueryUnfulfilledReputerNoncesRequest)) @@ -8851,7 +8808,7 @@ func _Query_GetInfererNetworkRegret_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetInfererNetworkRegret", + FullMethod: "/emissions.v2.Query/GetInfererNetworkRegret", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetInfererNetworkRegret(ctx, req.(*QueryInfererNetworkRegretRequest)) @@ -8869,7 +8826,7 @@ func _Query_GetForecasterNetworkRegret_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetForecasterNetworkRegret", + FullMethod: "/emissions.v2.Query/GetForecasterNetworkRegret", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetForecasterNetworkRegret(ctx, req.(*QueryForecasterNetworkRegretRequest)) @@ -8887,7 +8844,7 @@ func _Query_GetOneInForecasterNetworkRegret_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetOneInForecasterNetworkRegret", + FullMethod: "/emissions.v2.Query/GetOneInForecasterNetworkRegret", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetOneInForecasterNetworkRegret(ctx, req.(*QueryOneInForecasterNetworkRegretRequest)) @@ -8895,24 +8852,6 @@ func _Query_GetOneInForecasterNetworkRegret_Handler(srv interface{}, ctx context return interceptor(ctx, in, info, handler) } -func _Query_GetOneInForecasterSelfNetworkRegret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryOneInForecasterSelfNetworkRegretRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetOneInForecasterSelfNetworkRegret(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/emissions.v1.Query/GetOneInForecasterSelfNetworkRegret", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetOneInForecasterSelfNetworkRegret(ctx, req.(*QueryOneInForecasterSelfNetworkRegretRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_IsWhitelistAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryIsWhitelistAdminRequest) if err := dec(in); err != nil { @@ -8923,7 +8862,7 @@ func _Query_IsWhitelistAdmin_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/IsWhitelistAdmin", + FullMethod: "/emissions.v2.Query/IsWhitelistAdmin", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).IsWhitelistAdmin(ctx, req.(*QueryIsWhitelistAdminRequest)) @@ -8941,7 +8880,7 @@ func _Query_GetTopicLastWorkerCommitInfo_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetTopicLastWorkerCommitInfo", + FullMethod: "/emissions.v2.Query/GetTopicLastWorkerCommitInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetTopicLastWorkerCommitInfo(ctx, req.(*QueryTopicLastCommitRequest)) @@ -8959,7 +8898,7 @@ func _Query_GetTopicLastReputerCommitInfo_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetTopicLastReputerCommitInfo", + FullMethod: "/emissions.v2.Query/GetTopicLastReputerCommitInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetTopicLastReputerCommitInfo(ctx, req.(*QueryTopicLastCommitRequest)) @@ -8977,7 +8916,7 @@ func _Query_GetTopicRewardNonce_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetTopicRewardNonce", + FullMethod: "/emissions.v2.Query/GetTopicRewardNonce", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetTopicRewardNonce(ctx, req.(*QueryTopicRewardNonceRequest)) @@ -8995,7 +8934,7 @@ func _Query_GetReputerLossBundlesAtBlock_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetReputerLossBundlesAtBlock", + FullMethod: "/emissions.v2.Query/GetReputerLossBundlesAtBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetReputerLossBundlesAtBlock(ctx, req.(*QueryReputerLossBundlesAtBlockRequest)) @@ -9013,7 +8952,7 @@ func _Query_GetStakeReputerAuthority_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetStakeReputerAuthority", + FullMethod: "/emissions.v2.Query/GetStakeReputerAuthority", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetStakeReputerAuthority(ctx, req.(*QueryStakeReputerAuthorityRequest)) @@ -9031,7 +8970,7 @@ func _Query_GetDelegateStakePlacement_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetDelegateStakePlacement", + FullMethod: "/emissions.v2.Query/GetDelegateStakePlacement", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetDelegateStakePlacement(ctx, req.(*QueryDelegateStakePlacementRequest)) @@ -9049,7 +8988,7 @@ func _Query_GetDelegateStakeUponReputer_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetDelegateStakeUponReputer", + FullMethod: "/emissions.v2.Query/GetDelegateStakeUponReputer", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetDelegateStakeUponReputer(ctx, req.(*QueryDelegateStakeUponReputerRequest)) @@ -9067,7 +9006,7 @@ func _Query_GetDelegateRewardPerShare_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetDelegateRewardPerShare", + FullMethod: "/emissions.v2.Query/GetDelegateRewardPerShare", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetDelegateRewardPerShare(ctx, req.(*QueryDelegateRewardPerShareRequest)) @@ -9085,7 +9024,7 @@ func _Query_GetStakeRemovalForReputerAndTopicId_Handler(srv interface{}, ctx con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetStakeRemovalForReputerAndTopicId", + FullMethod: "/emissions.v2.Query/GetStakeRemovalForReputerAndTopicId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetStakeRemovalForReputerAndTopicId(ctx, req.(*QueryStakeRemovalForReputerAndTopicIdRequest)) @@ -9103,7 +9042,7 @@ func _Query_GetDelegateStakeRemoval_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetDelegateStakeRemoval", + FullMethod: "/emissions.v2.Query/GetDelegateStakeRemoval", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetDelegateStakeRemoval(ctx, req.(*QueryDelegateStakeRemovalRequest)) @@ -9121,7 +9060,7 @@ func _Query_GetPreviousTopicWeight_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetPreviousTopicWeight", + FullMethod: "/emissions.v2.Query/GetPreviousTopicWeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetPreviousTopicWeight(ctx, req.(*QueryPreviousTopicWeightRequest)) @@ -9139,7 +9078,7 @@ func _Query_TopicExists_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/TopicExists", + FullMethod: "/emissions.v2.Query/TopicExists", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).TopicExists(ctx, req.(*QueryTopicExistsRequest)) @@ -9157,7 +9096,7 @@ func _Query_IsTopicActive_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/IsTopicActive", + FullMethod: "/emissions.v2.Query/IsTopicActive", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).IsTopicActive(ctx, req.(*QueryIsTopicActiveRequest)) @@ -9175,7 +9114,7 @@ func _Query_GetTopicFeeRevenue_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetTopicFeeRevenue", + FullMethod: "/emissions.v2.Query/GetTopicFeeRevenue", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetTopicFeeRevenue(ctx, req.(*QueryTopicFeeRevenueRequest)) @@ -9183,24 +9122,6 @@ func _Query_GetTopicFeeRevenue_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _Query_GetChurnableTopics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryChurnableTopicsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(QueryServer).GetChurnableTopics(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/emissions.v1.Query/GetChurnableTopics", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetChurnableTopics(ctx, req.(*QueryChurnableTopicsRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _Query_GetRewardableTopics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryRewardableTopicsRequest) if err := dec(in); err != nil { @@ -9211,7 +9132,7 @@ func _Query_GetRewardableTopics_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetRewardableTopics", + FullMethod: "/emissions.v2.Query/GetRewardableTopics", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetRewardableTopics(ctx, req.(*QueryRewardableTopicsRequest)) @@ -9229,7 +9150,7 @@ func _Query_GetLatestInfererScore_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetLatestInfererScore", + FullMethod: "/emissions.v2.Query/GetLatestInfererScore", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetLatestInfererScore(ctx, req.(*QueryLatestInfererScoreRequest)) @@ -9247,7 +9168,7 @@ func _Query_GetLatestForecasterScore_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetLatestForecasterScore", + FullMethod: "/emissions.v2.Query/GetLatestForecasterScore", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetLatestForecasterScore(ctx, req.(*QueryLatestForecasterScoreRequest)) @@ -9265,7 +9186,7 @@ func _Query_GetLatestReputerScore_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetLatestReputerScore", + FullMethod: "/emissions.v2.Query/GetLatestReputerScore", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetLatestReputerScore(ctx, req.(*QueryLatestReputerScoreRequest)) @@ -9283,7 +9204,7 @@ func _Query_GetInferenceScoresUntilBlock_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetInferenceScoresUntilBlock", + FullMethod: "/emissions.v2.Query/GetInferenceScoresUntilBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetInferenceScoresUntilBlock(ctx, req.(*QueryInferenceScoresUntilBlockRequest)) @@ -9301,7 +9222,7 @@ func _Query_GetWorkerInferenceScoresAtBlock_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetWorkerInferenceScoresAtBlock", + FullMethod: "/emissions.v2.Query/GetWorkerInferenceScoresAtBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetWorkerInferenceScoresAtBlock(ctx, req.(*QueryWorkerInferenceScoresAtBlockRequest)) @@ -9319,7 +9240,7 @@ func _Query_GetForecastScoresUntilBlock_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetForecastScoresUntilBlock", + FullMethod: "/emissions.v2.Query/GetForecastScoresUntilBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetForecastScoresUntilBlock(ctx, req.(*QueryForecastScoresUntilBlockRequest)) @@ -9337,7 +9258,7 @@ func _Query_GetWorkerForecastScoresAtBlock_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetWorkerForecastScoresAtBlock", + FullMethod: "/emissions.v2.Query/GetWorkerForecastScoresAtBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetWorkerForecastScoresAtBlock(ctx, req.(*QueryWorkerForecastScoresAtBlockRequest)) @@ -9355,7 +9276,7 @@ func _Query_GetReputersScoresAtBlock_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetReputersScoresAtBlock", + FullMethod: "/emissions.v2.Query/GetReputersScoresAtBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetReputersScoresAtBlock(ctx, req.(*QueryReputersScoresAtBlockRequest)) @@ -9373,7 +9294,7 @@ func _Query_GetListeningCoefficient_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetListeningCoefficient", + FullMethod: "/emissions.v2.Query/GetListeningCoefficient", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetListeningCoefficient(ctx, req.(*QueryListeningCoefficientRequest)) @@ -9391,7 +9312,7 @@ func _Query_GetPreviousReputerRewardFraction_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetPreviousReputerRewardFraction", + FullMethod: "/emissions.v2.Query/GetPreviousReputerRewardFraction", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetPreviousReputerRewardFraction(ctx, req.(*QueryPreviousReputerRewardFractionRequest)) @@ -9409,7 +9330,7 @@ func _Query_GetPreviousInferenceRewardFraction_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetPreviousInferenceRewardFraction", + FullMethod: "/emissions.v2.Query/GetPreviousInferenceRewardFraction", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetPreviousInferenceRewardFraction(ctx, req.(*QueryPreviousInferenceRewardFractionRequest)) @@ -9427,7 +9348,7 @@ func _Query_GetPreviousForecastRewardFraction_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetPreviousForecastRewardFraction", + FullMethod: "/emissions.v2.Query/GetPreviousForecastRewardFraction", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetPreviousForecastRewardFraction(ctx, req.(*QueryPreviousForecastRewardFractionRequest)) @@ -9445,7 +9366,7 @@ func _Query_GetPreviousPercentageRewardToStakedReputers_Handler(srv interface{}, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetPreviousPercentageRewardToStakedReputers", + FullMethod: "/emissions.v2.Query/GetPreviousPercentageRewardToStakedReputers", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetPreviousPercentageRewardToStakedReputers(ctx, req.(*QueryPreviousPercentageRewardToStakedReputersRequest)) @@ -9463,7 +9384,7 @@ func _Query_GetTotalRewardToDistribute_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetTotalRewardToDistribute", + FullMethod: "/emissions.v2.Query/GetTotalRewardToDistribute", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetTotalRewardToDistribute(ctx, req.(*QueryTotalRewardToDistributeRequest)) @@ -9471,44 +9392,98 @@ func _Query_GetTotalRewardToDistribute_Handler(srv interface{}, ctx context.Cont return interceptor(ctx, in, info, handler) } -func _Query_GetTopicLastWorkerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTopicLastWorkerPayloadRequest) +func _Query_GetNaiveInfererNetworkRegret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryNaiveInfererNetworkRegretRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetNaiveInfererNetworkRegret(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v2.Query/GetNaiveInfererNetworkRegret", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetNaiveInfererNetworkRegret(ctx, req.(*QueryNaiveInfererNetworkRegretRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetOneOutInfererInfererNetworkRegret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryOneOutInfererInfererNetworkRegretRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetOneOutInfererInfererNetworkRegret(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v2.Query/GetOneOutInfererInfererNetworkRegret", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetOneOutInfererInfererNetworkRegret(ctx, req.(*QueryOneOutInfererInfererNetworkRegretRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetOneOutInfererForecasterNetworkRegret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryOneOutInfererForecasterNetworkRegretRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(QueryServer).GetOneOutInfererForecasterNetworkRegret(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v2.Query/GetOneOutInfererForecasterNetworkRegret", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(QueryServer).GetOneOutInfererForecasterNetworkRegret(ctx, req.(*QueryOneOutInfererForecasterNetworkRegretRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Query_GetOneOutForecasterInfererNetworkRegret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryOneOutForecasterInfererNetworkRegretRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GetTopicLastWorkerPayload(ctx, in) + return srv.(QueryServer).GetOneOutForecasterInfererNetworkRegret(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetTopicLastWorkerPayload", + FullMethod: "/emissions.v2.Query/GetOneOutForecasterInfererNetworkRegret", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetTopicLastWorkerPayload(ctx, req.(*QueryTopicLastWorkerPayloadRequest)) + return srv.(QueryServer).GetOneOutForecasterInfererNetworkRegret(ctx, req.(*QueryOneOutForecasterInfererNetworkRegretRequest)) } return interceptor(ctx, in, info, handler) } -func _Query_GetTopicLastReputerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(QueryTopicLastReputerPayloadRequest) +func _Query_GetOneOutForecasterForecasterNetworkRegret_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(QueryOneOutForecasterForecasterNetworkRegretRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(QueryServer).GetTopicLastReputerPayload(ctx, in) + return srv.(QueryServer).GetOneOutForecasterForecasterNetworkRegret(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Query/GetTopicLastReputerPayload", + FullMethod: "/emissions.v2.Query/GetOneOutForecasterForecasterNetworkRegret", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(QueryServer).GetTopicLastReputerPayload(ctx, req.(*QueryTopicLastReputerPayloadRequest)) + return srv.(QueryServer).GetOneOutForecasterForecasterNetworkRegret(ctx, req.(*QueryOneOutForecasterForecasterNetworkRegretRequest)) } return interceptor(ctx, in, info, handler) } var _Query_serviceDesc = grpc.ServiceDesc{ - ServiceName: "emissions.v1.Query", + ServiceName: "emissions.v2.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { @@ -9580,12 +9555,12 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_GetTopicStake_Handler, }, { - MethodName: "GetStakeRemovalsForBlock", - Handler: _Query_GetStakeRemovalsForBlock_Handler, + MethodName: "GetStakeRemovalsUpUntilBlock", + Handler: _Query_GetStakeRemovalsUpUntilBlock_Handler, }, { - MethodName: "GetDelegateStakeRemovalsForBlock", - Handler: _Query_GetDelegateStakeRemovalsForBlock_Handler, + MethodName: "GetDelegateStakeRemovalsUpUntilBlock", + Handler: _Query_GetDelegateStakeRemovalsUpUntilBlock_Handler, }, { MethodName: "GetStakeRemovalInfo", @@ -9603,14 +9578,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "GetReputerNodeInfo", Handler: _Query_GetReputerNodeInfo_Handler, }, - { - MethodName: "GetWorkerAddressByP2PKey", - Handler: _Query_GetWorkerAddressByP2PKey_Handler, - }, - { - MethodName: "GetReputerAddressByP2PKey", - Handler: _Query_GetReputerAddressByP2PKey_Handler, - }, { MethodName: "IsWorkerRegisteredInTopicId", Handler: _Query_IsWorkerRegisteredInTopicId_Handler, @@ -9659,10 +9626,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "GetOneInForecasterNetworkRegret", Handler: _Query_GetOneInForecasterNetworkRegret_Handler, }, - { - MethodName: "GetOneInForecasterSelfNetworkRegret", - Handler: _Query_GetOneInForecasterSelfNetworkRegret_Handler, - }, { MethodName: "IsWhitelistAdmin", Handler: _Query_IsWhitelistAdmin_Handler, @@ -9723,10 +9686,6 @@ var _Query_serviceDesc = grpc.ServiceDesc{ MethodName: "GetTopicFeeRevenue", Handler: _Query_GetTopicFeeRevenue_Handler, }, - { - MethodName: "GetChurnableTopics", - Handler: _Query_GetChurnableTopics_Handler, - }, { MethodName: "GetRewardableTopics", Handler: _Query_GetRewardableTopics_Handler, @@ -9788,19 +9747,31 @@ var _Query_serviceDesc = grpc.ServiceDesc{ Handler: _Query_GetTotalRewardToDistribute_Handler, }, { - MethodName: "GetTopicLastWorkerPayload", - Handler: _Query_GetTopicLastWorkerPayload_Handler, + MethodName: "GetNaiveInfererNetworkRegret", + Handler: _Query_GetNaiveInfererNetworkRegret_Handler, + }, + { + MethodName: "GetOneOutInfererInfererNetworkRegret", + Handler: _Query_GetOneOutInfererInfererNetworkRegret_Handler, + }, + { + MethodName: "GetOneOutInfererForecasterNetworkRegret", + Handler: _Query_GetOneOutInfererForecasterNetworkRegret_Handler, + }, + { + MethodName: "GetOneOutForecasterInfererNetworkRegret", + Handler: _Query_GetOneOutForecasterInfererNetworkRegret_Handler, }, { - MethodName: "GetTopicLastReputerPayload", - Handler: _Query_GetTopicLastReputerPayload_Handler, + MethodName: "GetOneOutForecasterForecasterNetworkRegret", + Handler: _Query_GetOneOutForecasterForecasterNetworkRegret_Handler, }, }, Streams: []grpc.StreamDesc{}, - Metadata: "emissions/v1/query.proto", + Metadata: "emissions/v2/query.proto", } -func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryNaiveInfererNetworkRegretRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9810,20 +9781,32 @@ func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryNaiveInfererNetworkRegretRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryNaiveInfererNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.Inferer) > 0 { + i -= len(m.Inferer) + copy(dAtA[i:], m.Inferer) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Inferer))) + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } -func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryNaiveInfererNetworkRegretResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9833,30 +9816,32 @@ func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryNaiveInfererNetworkRegretResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryNaiveInfererNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err + if m.Regret != nil { + { + size, err := m.Regret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryTotalStakeRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryOneOutInfererInfererNetworkRegretRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9866,20 +9851,39 @@ func (m *QueryTotalStakeRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryTotalStakeRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryOneOutInfererInfererNetworkRegretRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTotalStakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryOneOutInfererInfererNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.Inferer) > 0 { + i -= len(m.Inferer) + copy(dAtA[i:], m.Inferer) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Inferer))) + i-- + dAtA[i] = 0x1a + } + if len(m.OneOutInferer) > 0 { + i -= len(m.OneOutInferer) + copy(dAtA[i:], m.OneOutInferer) + i = encodeVarintQuery(dAtA, i, uint64(len(m.OneOutInferer))) + i-- + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } -func (m *QueryTotalStakeResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryOneOutInfererInfererNetworkRegretResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9889,30 +9893,32 @@ func (m *QueryTotalStakeResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryTotalStakeResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryOneOutInfererInfererNetworkRegretResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTotalStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryOneOutInfererInfererNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err + if m.Regret != nil { + { + size, err := m.Regret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } - i = encodeVarintQuery(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryReputerStakeInTopicRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9922,32 +9928,39 @@ func (m *QueryReputerStakeInTopicRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryReputerStakeInTopicRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryReputerStakeInTopicRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.TopicId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + if len(m.Forecaster) > 0 { + i -= len(m.Forecaster) + copy(dAtA[i:], m.Forecaster) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Forecaster))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x1a } - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + if len(m.OneOutInferer) > 0 { + i -= len(m.OneOutInferer) + copy(dAtA[i:], m.OneOutInferer) + i = encodeVarintQuery(dAtA, i, uint64(len(m.OneOutInferer))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryReputerStakeInTopicResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryOneOutInfererForecasterNetworkRegretResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9957,30 +9970,32 @@ func (m *QueryReputerStakeInTopicResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryReputerStakeInTopicResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryOneOutInfererForecasterNetworkRegretResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryReputerStakeInTopicResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryOneOutInfererForecasterNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err + if m.Regret != nil { + { + size, err := m.Regret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } - i = encodeVarintQuery(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryMultiReputerStakeInTopicRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -9990,34 +10005,39 @@ func (m *QueryMultiReputerStakeInTopicRequest) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *QueryMultiReputerStakeInTopicRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryMultiReputerStakeInTopicRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.Inferer) > 0 { + i -= len(m.Inferer) + copy(dAtA[i:], m.Inferer) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Inferer))) + i-- + dAtA[i] = 0x1a + } + if len(m.OneOutForecaster) > 0 { + i -= len(m.OneOutForecaster) + copy(dAtA[i:], m.OneOutForecaster) + i = encodeVarintQuery(dAtA, i, uint64(len(m.OneOutForecaster))) + i-- + dAtA[i] = 0x12 + } if m.TopicId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) i-- - dAtA[i] = 0x10 - } - if len(m.Addresses) > 0 { - for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- { - i -= len(m.Addresses[iNdEx]) - copy(dAtA[i:], m.Addresses[iNdEx]) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Addresses[iNdEx]))) - i-- - dAtA[i] = 0xa - } + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryMultiReputerStakeInTopicResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryOneOutForecasterInfererNetworkRegretResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10027,34 +10047,32 @@ func (m *QueryMultiReputerStakeInTopicResponse) Marshal() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *QueryMultiReputerStakeInTopicResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryOneOutForecasterInfererNetworkRegretResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryMultiReputerStakeInTopicResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryOneOutForecasterInfererNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Amounts) > 0 { - for iNdEx := len(m.Amounts) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Amounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) + if m.Regret != nil { + { + size, err := m.Regret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryStakeFromReputerInTopicInSelfRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10064,32 +10082,39 @@ func (m *QueryStakeFromReputerInTopicInSelfRequest) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *QueryStakeFromReputerInTopicInSelfRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStakeFromReputerInTopicInSelfRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.TopicId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + if len(m.Forecaster) > 0 { + i -= len(m.Forecaster) + copy(dAtA[i:], m.Forecaster) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Forecaster))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x1a } - if len(m.ReputerAddress) > 0 { - i -= len(m.ReputerAddress) - copy(dAtA[i:], m.ReputerAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ReputerAddress))) + if len(m.OneOutForecaster) > 0 { + i -= len(m.OneOutForecaster) + copy(dAtA[i:], m.OneOutForecaster) + i = encodeVarintQuery(dAtA, i, uint64(len(m.OneOutForecaster))) i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if m.TopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryStakeFromReputerInTopicInSelfResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryOneOutForecasterForecasterNetworkRegretResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10099,30 +10124,32 @@ func (m *QueryStakeFromReputerInTopicInSelfResponse) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *QueryStakeFromReputerInTopicInSelfResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryOneOutForecasterForecasterNetworkRegretResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStakeFromReputerInTopicInSelfResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryOneOutForecasterForecasterNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err + if m.Regret != nil { + { + size, err := m.Regret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } - i = encodeVarintQuery(dAtA, i, uint64(size)) + i-- + dAtA[i] = 0xa } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryDelegateStakeInTopicInReputerRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10132,32 +10159,20 @@ func (m *QueryDelegateStakeInTopicInReputerRequest) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *QueryDelegateStakeInTopicInReputerRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryDelegateStakeInTopicInReputerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.TopicId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) - i-- - dAtA[i] = 0x10 - } - if len(m.ReputerAddress) > 0 { - i -= len(m.ReputerAddress) - copy(dAtA[i:], m.ReputerAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ReputerAddress))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *QueryDelegateStakeInTopicInReputerResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10167,22 +10182,22 @@ func (m *QueryDelegateStakeInTopicInReputerResponse) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *QueryDelegateStakeInTopicInReputerResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryDelegateStakeInTopicInReputerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { return 0, err } + i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- @@ -10190,7 +10205,7 @@ func (m *QueryDelegateStakeInTopicInReputerResponse) MarshalToSizedBuffer(dAtA [ return len(dAtA) - i, nil } -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryTotalStakeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10200,39 +10215,20 @@ func (m *QueryStakeFromDelegatorInTopicInReputerRequest) Marshal() (dAtA []byte, return dAtA[:n], nil } -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTotalStakeRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTotalStakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.TopicId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) - i-- - dAtA[i] = 0x18 - } - if len(m.ReputerAddress) > 0 { - i -= len(m.ReputerAddress) - copy(dAtA[i:], m.ReputerAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ReputerAddress))) - i-- - dAtA[i] = 0x12 - } - if len(m.DelegatorAddress) > 0 { - i -= len(m.DelegatorAddress) - copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddress))) - i-- - dAtA[i] = 0xa - } return len(dAtA) - i, nil } -func (m *QueryStakeFromDelegatorInTopicInReputerResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryTotalStakeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10242,12 +10238,12 @@ func (m *QueryStakeFromDelegatorInTopicInReputerResponse) Marshal() (dAtA []byte return dAtA[:n], nil } -func (m *QueryStakeFromDelegatorInTopicInReputerResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTotalStakeResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStakeFromDelegatorInTopicInReputerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTotalStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -10265,7 +10261,7 @@ func (m *QueryStakeFromDelegatorInTopicInReputerResponse) MarshalToSizedBuffer(d return len(dAtA) - i, nil } -func (m *QueryStakeFromDelegatorInTopicRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryReputerStakeInTopicRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10275,12 +10271,12 @@ func (m *QueryStakeFromDelegatorInTopicRequest) Marshal() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *QueryStakeFromDelegatorInTopicRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryReputerStakeInTopicRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStakeFromDelegatorInTopicRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryReputerStakeInTopicRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -10290,17 +10286,17 @@ func (m *QueryStakeFromDelegatorInTopicRequest) MarshalToSizedBuffer(dAtA []byte i-- dAtA[i] = 0x10 } - if len(m.DelegatorAddress) > 0 { - i -= len(m.DelegatorAddress) - copy(dAtA[i:], m.DelegatorAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddress))) + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryStakeFromDelegatorInTopicResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryReputerStakeInTopicResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10310,12 +10306,12 @@ func (m *QueryStakeFromDelegatorInTopicResponse) Marshal() (dAtA []byte, err err return dAtA[:n], nil } -func (m *QueryStakeFromDelegatorInTopicResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryReputerStakeInTopicResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStakeFromDelegatorInTopicResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryReputerStakeInTopicResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -10333,7 +10329,7 @@ func (m *QueryStakeFromDelegatorInTopicResponse) MarshalToSizedBuffer(dAtA []byt return len(dAtA) - i, nil } -func (m *QueryTopicStakeRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryMultiReputerStakeInTopicRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10343,12 +10339,12 @@ func (m *QueryTopicStakeRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryTopicStakeRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryMultiReputerStakeInTopicRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTopicStakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryMultiReputerStakeInTopicRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -10356,12 +10352,21 @@ func (m *QueryTopicStakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) if m.TopicId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x10 + } + if len(m.Addresses) > 0 { + for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Addresses[iNdEx]) + copy(dAtA[i:], m.Addresses[iNdEx]) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Addresses[iNdEx]))) + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *QueryTopicStakeResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryMultiReputerStakeInTopicResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10371,30 +10376,34 @@ func (m *QueryTopicStakeResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryTopicStakeResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryMultiReputerStakeInTopicResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTopicStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryMultiReputerStakeInTopicResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - { - size := m.Amount.Size() - i -= size - if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { - return 0, err + if len(m.Amounts) > 0 { + for iNdEx := len(m.Amounts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Amounts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - i = encodeVarintQuery(dAtA, i, uint64(size)) } - i-- - dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryNetworkLossBundleAtBlockRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryStakeFromReputerInTopicInSelfRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10404,30 +10413,32 @@ func (m *QueryNetworkLossBundleAtBlockRequest) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *QueryNetworkLossBundleAtBlockRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStakeFromReputerInTopicInSelfRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryNetworkLossBundleAtBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStakeFromReputerInTopicInSelfRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.BlockHeight != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight)) + if m.TopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) i-- dAtA[i] = 0x10 } - if m.TopicId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + if len(m.ReputerAddress) > 0 { + i -= len(m.ReputerAddress) + copy(dAtA[i:], m.ReputerAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ReputerAddress))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryNetworkLossBundleAtBlockResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryStakeFromReputerInTopicInSelfResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10437,32 +10448,30 @@ func (m *QueryNetworkLossBundleAtBlockResponse) Marshal() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *QueryNetworkLossBundleAtBlockResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStakeFromReputerInTopicInSelfResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryNetworkLossBundleAtBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStakeFromReputerInTopicInSelfResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.LossBundle != nil { - { - size, err := m.LossBundle.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i = encodeVarintQuery(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryNextTopicIdRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryDelegateStakeInTopicInReputerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10472,20 +10481,32 @@ func (m *QueryNextTopicIdRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryNextTopicIdRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryDelegateStakeInTopicInReputerRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryNextTopicIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryDelegateStakeInTopicInReputerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.TopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(m.ReputerAddress) > 0 { + i -= len(m.ReputerAddress) + copy(dAtA[i:], m.ReputerAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ReputerAddress))) + i-- + dAtA[i] = 0xa + } return len(dAtA) - i, nil } -func (m *QueryNextTopicIdResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryDelegateStakeInTopicInReputerResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10495,25 +10516,30 @@ func (m *QueryNextTopicIdResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryNextTopicIdResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryDelegateStakeInTopicInReputerResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryNextTopicIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryDelegateStakeInTopicInReputerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.NextTopicId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.NextTopicId)) - i-- - dAtA[i] = 0x8 + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintQuery(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryTopicRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10523,12 +10549,12 @@ func (m *QueryTopicRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryTopicRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTopicRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -10536,12 +10562,26 @@ func (m *QueryTopicRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { if m.TopicId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x18 + } + if len(m.ReputerAddress) > 0 { + i -= len(m.ReputerAddress) + copy(dAtA[i:], m.ReputerAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ReputerAddress))) + i-- + dAtA[i] = 0x12 + } + if len(m.DelegatorAddress) > 0 { + i -= len(m.DelegatorAddress) + copy(dAtA[i:], m.DelegatorAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddress))) + i-- + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryTopicResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryStakeFromDelegatorInTopicInReputerResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10551,46 +10591,30 @@ func (m *QueryTopicResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryTopicResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStakeFromDelegatorInTopicInReputerResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryTopicResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStakeFromDelegatorInTopicInReputerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.EffectiveRevenue) > 0 { - i -= len(m.EffectiveRevenue) - copy(dAtA[i:], m.EffectiveRevenue) - i = encodeVarintQuery(dAtA, i, uint64(len(m.EffectiveRevenue))) - i-- - dAtA[i] = 0x1a - } - if len(m.Weight) > 0 { - i -= len(m.Weight) - copy(dAtA[i:], m.Weight) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Weight))) - i-- - dAtA[i] = 0x12 - } - if m.Topic != nil { - { - size, err := m.Topic.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i = encodeVarintQuery(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryActiveTopicsRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryStakeFromDelegatorInTopicRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10600,32 +10624,32 @@ func (m *QueryActiveTopicsRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryActiveTopicsRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStakeFromDelegatorInTopicRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryActiveTopicsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStakeFromDelegatorInTopicRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } + if m.TopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x10 + } + if len(m.DelegatorAddress) > 0 { + i -= len(m.DelegatorAddress) + copy(dAtA[i:], m.DelegatorAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.DelegatorAddress))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryActiveTopicsResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryStakeFromDelegatorInTopicResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10635,46 +10659,30 @@ func (m *QueryActiveTopicsResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryActiveTopicsResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStakeFromDelegatorInTopicResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryActiveTopicsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStakeFromDelegatorInTopicResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Pagination != nil { - { - size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if len(m.Topics) > 0 { - for iNdEx := len(m.Topics) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Topics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err } + i = encodeVarintQuery(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryInferencesAtBlockRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryTopicStakeRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10684,21 +10692,16 @@ func (m *QueryInferencesAtBlockRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryInferencesAtBlockRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTopicStakeRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryInferencesAtBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTopicStakeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.BlockHeight != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight)) - i-- - dAtA[i] = 0x10 - } if m.TopicId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) i-- @@ -10707,7 +10710,7 @@ func (m *QueryInferencesAtBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryInferencesAtBlockResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryTopicStakeResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10717,32 +10720,30 @@ func (m *QueryInferencesAtBlockResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryInferencesAtBlockResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTopicStakeResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryInferencesAtBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTopicStakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Inferences != nil { - { - size, err := m.Inferences.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) + { + size := m.Amount.Size() + i -= size + if _, err := m.Amount.MarshalTo(dAtA[i:]); err != nil { + return 0, err } - i-- - dAtA[i] = 0xa + i = encodeVarintQuery(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0xa return len(dAtA) - i, nil } -func (m *QueryLatestTopicInferencesRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryNetworkLossBundleAtBlockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10752,16 +10753,21 @@ func (m *QueryLatestTopicInferencesRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryLatestTopicInferencesRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryNetworkLossBundleAtBlockRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryLatestTopicInferencesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryNetworkLossBundleAtBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.BlockHeight != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } if m.TopicId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) i-- @@ -10770,7 +10776,7 @@ func (m *QueryLatestTopicInferencesRequest) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *QueryLatestTopicInferencesResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryNetworkLossBundleAtBlockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10780,24 +10786,19 @@ func (m *QueryLatestTopicInferencesResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryLatestTopicInferencesResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryNetworkLossBundleAtBlockResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryLatestTopicInferencesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryNetworkLossBundleAtBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.BlockHeight != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight)) - i-- - dAtA[i] = 0x10 - } - if m.Inferences != nil { + if m.LossBundle != nil { { - size, err := m.Inferences.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.LossBundle.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -10810,7 +10811,7 @@ func (m *QueryLatestTopicInferencesResponse) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *QueryForecastsAtBlockRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryNextTopicIdRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10820,30 +10821,20 @@ func (m *QueryForecastsAtBlockRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryForecastsAtBlockRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryNextTopicIdRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryForecastsAtBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryNextTopicIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.BlockHeight != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight)) - i-- - dAtA[i] = 0x10 - } - if m.TopicId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) - i-- - dAtA[i] = 0x8 - } return len(dAtA) - i, nil } -func (m *QueryForecastsAtBlockResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryNextTopicIdResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10853,32 +10844,25 @@ func (m *QueryForecastsAtBlockResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryForecastsAtBlockResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryNextTopicIdResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryForecastsAtBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryNextTopicIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Forecasts != nil { - { - size, err := m.Forecasts.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } + if m.NextTopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.NextTopicId)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryWorkerLatestInferenceRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryTopicRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10888,23 +10872,16 @@ func (m *QueryWorkerLatestInferenceRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryWorkerLatestInferenceRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTopicRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryWorkerLatestInferenceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTopicRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.WorkerAddress) > 0 { - i -= len(m.WorkerAddress) - copy(dAtA[i:], m.WorkerAddress) - i = encodeVarintQuery(dAtA, i, uint64(len(m.WorkerAddress))) - i-- - dAtA[i] = 0x12 - } if m.TopicId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) i-- @@ -10913,7 +10890,7 @@ func (m *QueryWorkerLatestInferenceRequest) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *QueryWorkerLatestInferenceResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryTopicResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10923,19 +10900,33 @@ func (m *QueryWorkerLatestInferenceResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryWorkerLatestInferenceResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryTopicResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryWorkerLatestInferenceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryTopicResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.LatestInference != nil { + if len(m.EffectiveRevenue) > 0 { + i -= len(m.EffectiveRevenue) + copy(dAtA[i:], m.EffectiveRevenue) + i = encodeVarintQuery(dAtA, i, uint64(len(m.EffectiveRevenue))) + i-- + dAtA[i] = 0x1a + } + if len(m.Weight) > 0 { + i -= len(m.Weight) + copy(dAtA[i:], m.Weight) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Weight))) + i-- + dAtA[i] = 0x12 + } + if m.Topic != nil { { - size, err := m.LatestInference.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Topic.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -10948,7 +10939,7 @@ func (m *QueryWorkerLatestInferenceResponse) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *QueryWorkerNodeInfoRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryActiveTopicsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10958,27 +10949,32 @@ func (m *QueryWorkerNodeInfoRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryWorkerNodeInfoRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryActiveTopicsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryWorkerNodeInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryActiveTopicsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Libp2PKey) > 0 { - i -= len(m.Libp2PKey) - copy(dAtA[i:], m.Libp2PKey) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Libp2PKey))) + if m.Pagination != nil { + { + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryWorkerNodeInfoResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryActiveTopicsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -10988,19 +10984,19 @@ func (m *QueryWorkerNodeInfoResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryWorkerNodeInfoResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryActiveTopicsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryWorkerNodeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryActiveTopicsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.NodeInfo != nil { + if m.Pagination != nil { { - size, err := m.NodeInfo.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -11008,12 +11004,26 @@ func (m *QueryWorkerNodeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, er i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0xa + dAtA[i] = 0x12 + } + if len(m.Topics) > 0 { + for iNdEx := len(m.Topics) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Topics[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } } return len(dAtA) - i, nil } -func (m *QueryReputerNodeInfoRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryInferencesAtBlockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11023,27 +11033,30 @@ func (m *QueryReputerNodeInfoRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryReputerNodeInfoRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryInferencesAtBlockRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryReputerNodeInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryInferencesAtBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Libp2PKey) > 0 { - i -= len(m.Libp2PKey) - copy(dAtA[i:], m.Libp2PKey) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Libp2PKey))) + if m.BlockHeight != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x10 + } + if m.TopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryReputerNodeInfoResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryInferencesAtBlockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11053,19 +11066,19 @@ func (m *QueryReputerNodeInfoResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryReputerNodeInfoResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryInferencesAtBlockResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryReputerNodeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryInferencesAtBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.NodeInfo != nil { + if m.Inferences != nil { { - size, err := m.NodeInfo.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Inferences.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -11078,7 +11091,7 @@ func (m *QueryReputerNodeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryWorkerAddressByP2PKeyRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryLatestTopicInferencesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11088,27 +11101,25 @@ func (m *QueryWorkerAddressByP2PKeyRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryWorkerAddressByP2PKeyRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryLatestTopicInferencesRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryWorkerAddressByP2PKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryLatestTopicInferencesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Libp2PKey) > 0 { - i -= len(m.Libp2PKey) - copy(dAtA[i:], m.Libp2PKey) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Libp2PKey))) + if m.TopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryWorkerAddressByP2PKeyResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryLatestTopicInferencesResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11118,27 +11129,37 @@ func (m *QueryWorkerAddressByP2PKeyResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryWorkerAddressByP2PKeyResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryLatestTopicInferencesResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryWorkerAddressByP2PKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryLatestTopicInferencesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + if m.BlockHeight != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight)) + i-- + dAtA[i] = 0x10 + } + if m.Inferences != nil { + { + size, err := m.Inferences.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryReputerAddressByP2PKeyRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryForecastsAtBlockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11148,27 +11169,30 @@ func (m *QueryReputerAddressByP2PKeyRequest) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryReputerAddressByP2PKeyRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryForecastsAtBlockRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryReputerAddressByP2PKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryForecastsAtBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Libp2PKey) > 0 { - i -= len(m.Libp2PKey) - copy(dAtA[i:], m.Libp2PKey) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Libp2PKey))) + if m.BlockHeight != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x10 + } + if m.TopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryReputerAddressByP2PKeyResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryForecastsAtBlockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11178,27 +11202,32 @@ func (m *QueryReputerAddressByP2PKeyResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryReputerAddressByP2PKeyResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryForecastsAtBlockResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryReputerAddressByP2PKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryForecastsAtBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Address) > 0 { - i -= len(m.Address) - copy(dAtA[i:], m.Address) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) + if m.Forecasts != nil { + { + size, err := m.Forecasts.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryNetworkInferencesAtBlockRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryWorkerLatestInferenceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11208,25 +11237,22 @@ func (m *QueryNetworkInferencesAtBlockRequest) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *QueryNetworkInferencesAtBlockRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryWorkerLatestInferenceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryNetworkInferencesAtBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryWorkerLatestInferenceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.BlockHeightLastReward != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeightLastReward)) - i-- - dAtA[i] = 0x18 - } - if m.BlockHeightLastInference != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeightLastInference)) + if len(m.WorkerAddress) > 0 { + i -= len(m.WorkerAddress) + copy(dAtA[i:], m.WorkerAddress) + i = encodeVarintQuery(dAtA, i, uint64(len(m.WorkerAddress))) i-- - dAtA[i] = 0x10 + dAtA[i] = 0x12 } if m.TopicId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) @@ -11236,7 +11262,7 @@ func (m *QueryNetworkInferencesAtBlockRequest) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *QueryLatestNetworkInferencesRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryWorkerLatestInferenceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11246,25 +11272,32 @@ func (m *QueryLatestNetworkInferencesRequest) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryLatestNetworkInferencesRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryWorkerLatestInferenceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryLatestNetworkInferencesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryWorkerLatestInferenceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.TopicId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + if m.LatestInference != nil { + { + size, err := m.LatestInference.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryIsWorkerNonceUnfulfilledRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryWorkerNodeInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11274,30 +11307,27 @@ func (m *QueryIsWorkerNonceUnfulfilledRequest) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *QueryIsWorkerNonceUnfulfilledRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryWorkerNodeInfoRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryIsWorkerNonceUnfulfilledRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryWorkerNodeInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.BlockHeight != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight)) - i-- - dAtA[i] = 0x10 - } - if m.TopicId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x12 } return len(dAtA) - i, nil } -func (m *QueryIsWorkerNonceUnfulfilledResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryWorkerNodeInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11307,30 +11337,32 @@ func (m *QueryIsWorkerNonceUnfulfilledResponse) Marshal() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *QueryIsWorkerNonceUnfulfilledResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryWorkerNodeInfoResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryIsWorkerNonceUnfulfilledResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryWorkerNodeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.IsWorkerNonceUnfulfilled { - i-- - if m.IsWorkerNonceUnfulfilled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.NodeInfo != nil { + { + size, err := m.NodeInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- - dAtA[i] = 0x8 + dAtA[i] = 0xa } return len(dAtA) - i, nil } -func (m *QueryUnfulfilledReputerNoncesRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryReputerNodeInfoRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11340,25 +11372,27 @@ func (m *QueryUnfulfilledReputerNoncesRequest) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *QueryUnfulfilledReputerNoncesRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryReputerNodeInfoRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryUnfulfilledReputerNoncesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryReputerNodeInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.TopicId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + if len(m.Address) > 0 { + i -= len(m.Address) + copy(dAtA[i:], m.Address) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Address))) i-- - dAtA[i] = 0x8 + dAtA[i] = 0x12 } return len(dAtA) - i, nil } -func (m *QueryUnfulfilledReputerNoncesResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryReputerNodeInfoResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11368,19 +11402,19 @@ func (m *QueryUnfulfilledReputerNoncesResponse) Marshal() (dAtA []byte, err erro return dAtA[:n], nil } -func (m *QueryUnfulfilledReputerNoncesResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryReputerNodeInfoResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryUnfulfilledReputerNoncesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryReputerNodeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Nonces != nil { + if m.NodeInfo != nil { { - size, err := m.Nonces.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.NodeInfo.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -11393,7 +11427,7 @@ func (m *QueryUnfulfilledReputerNoncesResponse) MarshalToSizedBuffer(dAtA []byte return len(dAtA) - i, nil } -func (m *QueryUnfulfilledWorkerNoncesRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryNetworkInferencesAtBlockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11403,16 +11437,26 @@ func (m *QueryUnfulfilledWorkerNoncesRequest) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryUnfulfilledWorkerNoncesRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryNetworkInferencesAtBlockRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryUnfulfilledWorkerNoncesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryNetworkInferencesAtBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if m.BlockHeightLastReward != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeightLastReward)) + i-- + dAtA[i] = 0x18 + } + if m.BlockHeightLastInference != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeightLastInference)) + i-- + dAtA[i] = 0x10 + } if m.TopicId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) i-- @@ -11421,7 +11465,7 @@ func (m *QueryUnfulfilledWorkerNoncesRequest) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *QueryUnfulfilledWorkerNoncesResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryLatestNetworkInferencesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11431,32 +11475,25 @@ func (m *QueryUnfulfilledWorkerNoncesResponse) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *QueryUnfulfilledWorkerNoncesResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryLatestNetworkInferencesRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryUnfulfilledWorkerNoncesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryLatestNetworkInferencesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Nonces != nil { - { - size, err := m.Nonces.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } + if m.TopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) i-- - dAtA[i] = 0xa + dAtA[i] = 0x8 } return len(dAtA) - i, nil } -func (m *QueryInfererNetworkRegretRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryIsWorkerNonceUnfulfilledRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11466,22 +11503,20 @@ func (m *QueryInfererNetworkRegretRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryInfererNetworkRegretRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryIsWorkerNonceUnfulfilledRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryInfererNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryIsWorkerNonceUnfulfilledRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.ActorId) > 0 { - i -= len(m.ActorId) - copy(dAtA[i:], m.ActorId) - i = encodeVarintQuery(dAtA, i, uint64(len(m.ActorId))) + if m.BlockHeight != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.BlockHeight)) i-- - dAtA[i] = 0x12 + dAtA[i] = 0x10 } if m.TopicId != 0 { i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) @@ -11491,7 +11526,7 @@ func (m *QueryInfererNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) (in return len(dAtA) - i, nil } -func (m *QueryInfererNetworkRegretResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryIsWorkerNonceUnfulfilledResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11501,19 +11536,80 @@ func (m *QueryInfererNetworkRegretResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryInfererNetworkRegretResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryIsWorkerNonceUnfulfilledResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryInfererNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryIsWorkerNonceUnfulfilledResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if m.Regret != nil { + if m.IsWorkerNonceUnfulfilled { + i-- + if m.IsWorkerNonceUnfulfilled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryUnfulfilledReputerNoncesRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryUnfulfilledReputerNoncesRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryUnfulfilledReputerNoncesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.TopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryUnfulfilledReputerNoncesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryUnfulfilledReputerNoncesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryUnfulfilledReputerNoncesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Nonces != nil { { - size, err := m.Regret.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.Nonces.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -11526,7 +11622,7 @@ func (m *QueryInfererNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *QueryForecasterNetworkRegretRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryUnfulfilledWorkerNoncesRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11536,20 +11632,83 @@ func (m *QueryForecasterNetworkRegretRequest) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryForecasterNetworkRegretRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryUnfulfilledWorkerNoncesRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryForecasterNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryUnfulfilledWorkerNoncesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Worker) > 0 { - i -= len(m.Worker) - copy(dAtA[i:], m.Worker) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Worker))) + if m.TopicId != 0 { + i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *QueryUnfulfilledWorkerNoncesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryUnfulfilledWorkerNoncesResponse) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryUnfulfilledWorkerNoncesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Nonces != nil { + { + size, err := m.Nonces.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintQuery(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *QueryInfererNetworkRegretRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *QueryInfererNetworkRegretRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryInfererNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ActorId) > 0 { + i -= len(m.ActorId) + copy(dAtA[i:], m.ActorId) + i = encodeVarintQuery(dAtA, i, uint64(len(m.ActorId))) i-- dAtA[i] = 0x12 } @@ -11561,7 +11720,7 @@ func (m *QueryForecasterNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *QueryForecasterNetworkRegretResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryInfererNetworkRegretResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11571,12 +11730,12 @@ func (m *QueryForecasterNetworkRegretResponse) Marshal() (dAtA []byte, err error return dAtA[:n], nil } -func (m *QueryForecasterNetworkRegretResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryInfererNetworkRegretResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryForecasterNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryInfererNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -11596,7 +11755,7 @@ func (m *QueryForecasterNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *QueryOneInForecasterNetworkRegretRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryForecasterNetworkRegretRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11606,27 +11765,20 @@ func (m *QueryOneInForecasterNetworkRegretRequest) Marshal() (dAtA []byte, err e return dAtA[:n], nil } -func (m *QueryOneInForecasterNetworkRegretRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryForecasterNetworkRegretRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryOneInForecasterNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryForecasterNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.Inferer) > 0 { - i -= len(m.Inferer) - copy(dAtA[i:], m.Inferer) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Inferer))) - i-- - dAtA[i] = 0x1a - } - if len(m.Forecaster) > 0 { - i -= len(m.Forecaster) - copy(dAtA[i:], m.Forecaster) - i = encodeVarintQuery(dAtA, i, uint64(len(m.Forecaster))) + if len(m.Worker) > 0 { + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Worker))) i-- dAtA[i] = 0x12 } @@ -11638,7 +11790,7 @@ func (m *QueryOneInForecasterNetworkRegretRequest) MarshalToSizedBuffer(dAtA []b return len(dAtA) - i, nil } -func (m *QueryOneInForecasterNetworkRegretResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryForecasterNetworkRegretResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11648,12 +11800,12 @@ func (m *QueryOneInForecasterNetworkRegretResponse) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *QueryOneInForecasterNetworkRegretResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryForecasterNetworkRegretResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryOneInForecasterNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryForecasterNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -11673,7 +11825,7 @@ func (m *QueryOneInForecasterNetworkRegretResponse) MarshalToSizedBuffer(dAtA [] return len(dAtA) - i, nil } -func (m *QueryOneInForecasterSelfNetworkRegretRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryOneInForecasterNetworkRegretRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11683,16 +11835,23 @@ func (m *QueryOneInForecasterSelfNetworkRegretRequest) Marshal() (dAtA []byte, e return dAtA[:n], nil } -func (m *QueryOneInForecasterSelfNetworkRegretRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryOneInForecasterNetworkRegretRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryOneInForecasterSelfNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryOneInForecasterNetworkRegretRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l + if len(m.Inferer) > 0 { + i -= len(m.Inferer) + copy(dAtA[i:], m.Inferer) + i = encodeVarintQuery(dAtA, i, uint64(len(m.Inferer))) + i-- + dAtA[i] = 0x1a + } if len(m.Forecaster) > 0 { i -= len(m.Forecaster) copy(dAtA[i:], m.Forecaster) @@ -11708,7 +11867,7 @@ func (m *QueryOneInForecasterSelfNetworkRegretRequest) MarshalToSizedBuffer(dAtA return len(dAtA) - i, nil } -func (m *QueryOneInForecasterSelfNetworkRegretResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryOneInForecasterNetworkRegretResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -11718,12 +11877,12 @@ func (m *QueryOneInForecasterSelfNetworkRegretResponse) Marshal() (dAtA []byte, return dAtA[:n], nil } -func (m *QueryOneInForecasterSelfNetworkRegretResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryOneInForecasterNetworkRegretResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryOneInForecasterSelfNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryOneInForecasterNetworkRegretResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -12158,7 +12317,7 @@ func (m *QueryIsWhitelistAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } -func (m *QueryStakeRemovalsForBlockRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryStakeRemovalsUpUntilBlockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12168,12 +12327,12 @@ func (m *QueryStakeRemovalsForBlockRequest) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *QueryStakeRemovalsForBlockRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStakeRemovalsUpUntilBlockRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStakeRemovalsForBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStakeRemovalsUpUntilBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -12186,7 +12345,7 @@ func (m *QueryStakeRemovalsForBlockRequest) MarshalToSizedBuffer(dAtA []byte) (i return len(dAtA) - i, nil } -func (m *QueryStakeRemovalsForBlockResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryStakeRemovalsUpUntilBlockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12196,12 +12355,12 @@ func (m *QueryStakeRemovalsForBlockResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *QueryStakeRemovalsForBlockResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryStakeRemovalsUpUntilBlockResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryStakeRemovalsForBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryStakeRemovalsUpUntilBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -12223,7 +12382,7 @@ func (m *QueryStakeRemovalsForBlockResponse) MarshalToSizedBuffer(dAtA []byte) ( return len(dAtA) - i, nil } -func (m *QueryDelegateStakeRemovalsForBlockRequest) Marshal() (dAtA []byte, err error) { +func (m *QueryDelegateStakeRemovalsUpUntilBlockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12233,12 +12392,12 @@ func (m *QueryDelegateStakeRemovalsForBlockRequest) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *QueryDelegateStakeRemovalsForBlockRequest) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryDelegateStakeRemovalsUpUntilBlockRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryDelegateStakeRemovalsForBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryDelegateStakeRemovalsUpUntilBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -12251,7 +12410,7 @@ func (m *QueryDelegateStakeRemovalsForBlockRequest) MarshalToSizedBuffer(dAtA [] return len(dAtA) - i, nil } -func (m *QueryDelegateStakeRemovalsForBlockResponse) Marshal() (dAtA []byte, err error) { +func (m *QueryDelegateStakeRemovalsUpUntilBlockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -12261,12 +12420,12 @@ func (m *QueryDelegateStakeRemovalsForBlockResponse) Marshal() (dAtA []byte, err return dAtA[:n], nil } -func (m *QueryDelegateStakeRemovalsForBlockResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *QueryDelegateStakeRemovalsUpUntilBlockResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *QueryDelegateStakeRemovalsForBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *QueryDelegateStakeRemovalsUpUntilBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -13309,70 +13468,6 @@ func (m *QueryTopicFeeRevenueResponse) MarshalToSizedBuffer(dAtA []byte) (int, e return len(dAtA) - i, nil } -func (m *QueryChurnableTopicsRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryChurnableTopicsRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryChurnableTopicsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - return len(dAtA) - i, nil -} - -func (m *QueryChurnableTopicsResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *QueryChurnableTopicsResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *QueryChurnableTopicsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.ChurnableTopicIds) > 0 { - dAtA28 := make([]byte, len(m.ChurnableTopicIds)*10) - var j27 int - for _, num := range m.ChurnableTopicIds { - for num >= 1<<7 { - dAtA28[j27] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j27++ - } - dAtA28[j27] = uint8(num) - j27++ - } - i -= j27 - copy(dAtA[i:], dAtA28[:j27]) - i = encodeVarintQuery(dAtA, i, uint64(j27)) - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - func (m *QueryRewardableTopicsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -13417,20 +13512,20 @@ func (m *QueryRewardableTopicsResponse) MarshalToSizedBuffer(dAtA []byte) (int, var l int _ = l if len(m.RewardableTopicIds) > 0 { - dAtA30 := make([]byte, len(m.RewardableTopicIds)*10) - var j29 int + dAtA32 := make([]byte, len(m.RewardableTopicIds)*10) + var j31 int for _, num := range m.RewardableTopicIds { for num >= 1<<7 { - dAtA30[j29] = uint8(uint64(num)&0x7f | 0x80) + dAtA32[j31] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j29++ + j31++ } - dAtA30[j29] = uint8(num) - j29++ + dAtA32[j31] = uint8(num) + j31++ } - i -= j29 - copy(dAtA[i:], dAtA30[:j29]) - i = encodeVarintQuery(dAtA, i, uint64(j29)) + i -= j31 + copy(dAtA[i:], dAtA32[:j31]) + i = encodeVarintQuery(dAtA, i, uint64(j31)) i-- dAtA[i] = 0xa } @@ -14407,143 +14502,178 @@ func (m *QueryTotalRewardToDistributeResponse) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *QueryTopicLastWorkerPayloadRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { + offset -= sovQuery(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ } - return dAtA[:n], nil -} - -func (m *QueryTopicLastWorkerPayloadRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) + dAtA[offset] = uint8(v) + return base } - -func (m *QueryTopicLastWorkerPayloadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *QueryNaiveInfererNetworkRegretRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TopicId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) - i-- - dAtA[i] = 0x8 + n += 1 + sovQuery(uint64(m.TopicId)) } - return len(dAtA) - i, nil + l = len(m.Inferer) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n } -func (m *QueryTopicLastWorkerPayloadResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *QueryNaiveInfererNetworkRegretResponse) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil + var l int + _ = l + if m.Regret != nil { + l = m.Regret.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n } -func (m *QueryTopicLastWorkerPayloadResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *QueryOneOutInfererInfererNetworkRegretRequest) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovQuery(uint64(m.TopicId)) + } + l = len(m.OneOutInferer) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Inferer) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n } -func (m *QueryTopicLastWorkerPayloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *QueryOneOutInfererInfererNetworkRegretResponse) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - if m.Payload != nil { - { - size, err := m.Payload.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.Regret != nil { + l = m.Regret.Size() + n += 1 + l + sovQuery(uint64(l)) } - return len(dAtA) - i, nil + return n } -func (m *QueryTopicLastReputerPayloadRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) Size() (n int) { + if m == nil { + return 0 } - return dAtA[:n], nil + var l int + _ = l + if m.TopicId != 0 { + n += 1 + sovQuery(uint64(m.TopicId)) + } + l = len(m.OneOutInferer) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Forecaster) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n } -func (m *QueryTopicLastReputerPayloadRequest) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *QueryOneOutInfererForecasterNetworkRegretResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Regret != nil { + l = m.Regret.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n } -func (m *QueryTopicLastReputerPayloadRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l if m.TopicId != 0 { - i = encodeVarintQuery(dAtA, i, uint64(m.TopicId)) - i-- - dAtA[i] = 0x8 + n += 1 + sovQuery(uint64(m.TopicId)) } - return len(dAtA) - i, nil -} - -func (m *QueryTopicLastReputerPayloadResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err + l = len(m.OneOutForecaster) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) } - return dAtA[:n], nil + l = len(m.Inferer) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n } -func (m *QueryTopicLastReputerPayloadResponse) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) +func (m *QueryOneOutForecasterInfererNetworkRegretResponse) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Regret != nil { + l = m.Regret.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n } -func (m *QueryTopicLastReputerPayloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) Size() (n int) { + if m == nil { + return 0 + } var l int _ = l - if m.Payload != nil { - { - size, err := m.Payload.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintQuery(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa + if m.TopicId != 0 { + n += 1 + sovQuery(uint64(m.TopicId)) } - return len(dAtA) - i, nil + l = len(m.OneOutForecaster) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + l = len(m.Forecaster) + if l > 0 { + n += 1 + l + sovQuery(uint64(l)) + } + return n } -func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { - offset -= sovQuery(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ +func (m *QueryOneOutForecasterForecasterNetworkRegretResponse) Size() (n int) { + if m == nil { + return 0 } - dAtA[offset] = uint8(v) - return base + var l int + _ = l + if m.Regret != nil { + l = m.Regret.Size() + n += 1 + l + sovQuery(uint64(l)) + } + return n } + func (m *QueryParamsRequest) Size() (n int) { if m == nil { return 0 @@ -15012,7 +15142,7 @@ func (m *QueryWorkerNodeInfoRequest) Size() (n int) { } var l int _ = l - l = len(m.Libp2PKey) + l = len(m.Address) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -15038,7 +15168,7 @@ func (m *QueryReputerNodeInfoRequest) Size() (n int) { } var l int _ = l - l = len(m.Libp2PKey) + l = len(m.Address) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } @@ -15058,58 +15188,6 @@ func (m *QueryReputerNodeInfoResponse) Size() (n int) { return n } -func (m *QueryWorkerAddressByP2PKeyRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Libp2PKey) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryWorkerAddressByP2PKeyResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryReputerAddressByP2PKeyRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Libp2PKey) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryReputerAddressByP2PKeyResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = len(m.Address) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - func (m *QueryNetworkInferencesAtBlockRequest) Size() (n int) { if m == nil { return 0 @@ -15308,35 +15386,6 @@ func (m *QueryOneInForecasterNetworkRegretResponse) Size() (n int) { return n } -func (m *QueryOneInForecasterSelfNetworkRegretRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TopicId != 0 { - n += 1 + sovQuery(uint64(m.TopicId)) - } - l = len(m.Forecaster) - if l > 0 { - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - -func (m *QueryOneInForecasterSelfNetworkRegretResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Regret != nil { - l = m.Regret.Size() - n += 1 + l + sovQuery(uint64(l)) - } - return n -} - func (m *QueryIsReputerNonceUnfulfilledRequest) Size() (n int) { if m == nil { return 0 @@ -15507,7 +15556,7 @@ func (m *QueryIsWhitelistAdminResponse) Size() (n int) { return n } -func (m *QueryStakeRemovalsForBlockRequest) Size() (n int) { +func (m *QueryStakeRemovalsUpUntilBlockRequest) Size() (n int) { if m == nil { return 0 } @@ -15519,7 +15568,7 @@ func (m *QueryStakeRemovalsForBlockRequest) Size() (n int) { return n } -func (m *QueryStakeRemovalsForBlockResponse) Size() (n int) { +func (m *QueryStakeRemovalsUpUntilBlockResponse) Size() (n int) { if m == nil { return 0 } @@ -15534,7 +15583,7 @@ func (m *QueryStakeRemovalsForBlockResponse) Size() (n int) { return n } -func (m *QueryDelegateStakeRemovalsForBlockRequest) Size() (n int) { +func (m *QueryDelegateStakeRemovalsUpUntilBlockRequest) Size() (n int) { if m == nil { return 0 } @@ -15546,7 +15595,7 @@ func (m *QueryDelegateStakeRemovalsForBlockRequest) Size() (n int) { return n } -func (m *QueryDelegateStakeRemovalsForBlockResponse) Size() (n int) { +func (m *QueryDelegateStakeRemovalsUpUntilBlockResponse) Size() (n int) { if m == nil { return 0 } @@ -15976,31 +16025,6 @@ func (m *QueryTopicFeeRevenueResponse) Size() (n int) { return n } -func (m *QueryChurnableTopicsRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - return n -} - -func (m *QueryChurnableTopicsResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.ChurnableTopicIds) > 0 { - l = 0 - for _, e := range m.ChurnableTopicIds { - l += sovQuery(uint64(e)) - } - n += 1 + sovQuery(uint64(l)) + l - } - return n -} - func (m *QueryRewardableTopicsRequest) Size() (n int) { if m == nil { return 0 @@ -16416,63 +16440,857 @@ func (m *QueryTotalRewardToDistributeResponse) Size() (n int) { return n } -func (m *QueryTopicLastWorkerPayloadRequest) Size() (n int) { - if m == nil { - return 0 +func sovQuery(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozQuery(x uint64) (n int) { + return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *QueryNaiveInfererNetworkRegretRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryNaiveInfererNetworkRegretRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNaiveInfererNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Inferer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } - var l int - _ = l - if m.TopicId != 0 { - n += 1 + sovQuery(uint64(m.TopicId)) + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryNaiveInfererNetworkRegretResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryNaiveInfererNetworkRegretResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNaiveInfererNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Regret == nil { + m.Regret = &TimestampedValue{} + } + if err := m.Regret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryOneOutInfererInfererNetworkRegretRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryOneOutInfererInfererNetworkRegretRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryOneOutInfererInfererNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneOutInferer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneOutInferer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Inferer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryOneOutInfererInfererNetworkRegretResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryOneOutInfererInfererNetworkRegretResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryOneOutInfererInfererNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Regret == nil { + m.Regret = &TimestampedValue{} + } + if err := m.Regret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryOneOutInfererForecasterNetworkRegretRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryOneOutInfererForecasterNetworkRegretRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryOneOutInfererForecasterNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneOutInferer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneOutInferer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Forecaster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryOneOutInfererForecasterNetworkRegretResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryOneOutInfererForecasterNetworkRegretResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryOneOutInfererForecasterNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Regret == nil { + m.Regret = &TimestampedValue{} + } + if err := m.Regret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryOneOutForecasterInfererNetworkRegretRequest) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryOneOutForecasterInfererNetworkRegretRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryOneOutForecasterInfererNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneOutForecaster", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneOutForecaster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Inferer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } - return n -} -func (m *QueryTopicLastWorkerPayloadResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Payload != nil { - l = m.Payload.Size() - n += 1 + l + sovQuery(uint64(l)) + if iNdEx > l { + return io.ErrUnexpectedEOF } - return n + return nil } - -func (m *QueryTopicLastReputerPayloadRequest) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.TopicId != 0 { - n += 1 + sovQuery(uint64(m.TopicId)) +func (m *QueryOneOutForecasterInfererNetworkRegretResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryOneOutForecasterInfererNetworkRegretResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryOneOutForecasterInfererNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Regret == nil { + m.Regret = &TimestampedValue{} + } + if err := m.Regret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthQuery + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } } - return n -} -func (m *QueryTopicLastReputerPayloadResponse) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Payload != nil { - l = m.Payload.Size() - n += 1 + l + sovQuery(uint64(l)) + if iNdEx > l { + return io.ErrUnexpectedEOF } - return n -} - -func sovQuery(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozQuery(x uint64) (n int) { - return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) + return nil } -func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { +func (m *QueryOneOutForecasterForecasterNetworkRegretRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16495,12 +17313,95 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryOneOutForecasterForecasterNetworkRegretRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryOneOutForecasterForecasterNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneOutForecaster", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneOutForecaster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Forecaster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -16522,7 +17423,7 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryOneOutForecasterForecasterNetworkRegretResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16545,15 +17446,15 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryOneOutForecasterForecasterNetworkRegretResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryOneOutForecasterForecasterNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -16580,7 +17481,10 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if m.Regret == nil { + m.Regret = &TimestampedValue{} + } + if err := m.Regret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -16605,7 +17509,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTotalStakeRequest) Unmarshal(dAtA []byte) error { +func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16628,10 +17532,10 @@ func (m *QueryTotalStakeRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTotalStakeRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTotalStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -16655,7 +17559,7 @@ func (m *QueryTotalStakeRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTotalStakeResponse) Unmarshal(dAtA []byte) error { +func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16678,17 +17582,17 @@ func (m *QueryTotalStakeResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTotalStakeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTotalStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -16698,23 +17602,22 @@ func (m *QueryTotalStakeResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -16739,7 +17642,7 @@ func (m *QueryTotalStakeResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryReputerStakeInTopicRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTotalStakeRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16762,63 +17665,12 @@ func (m *QueryReputerStakeInTopicRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryReputerStakeInTopicRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTotalStakeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryReputerStakeInTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTotalStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Address = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - m.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -16840,7 +17692,7 @@ func (m *QueryReputerStakeInTopicRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryReputerStakeInTopicResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTotalStakeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16863,10 +17715,10 @@ func (m *QueryReputerStakeInTopicResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryReputerStakeInTopicResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTotalStakeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryReputerStakeInTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTotalStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -16924,7 +17776,7 @@ func (m *QueryReputerStakeInTopicResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryMultiReputerStakeInTopicRequest) Unmarshal(dAtA []byte) error { +func (m *QueryReputerStakeInTopicRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -16947,15 +17799,15 @@ func (m *QueryMultiReputerStakeInTopicRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryMultiReputerStakeInTopicRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryReputerStakeInTopicRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryMultiReputerStakeInTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryReputerStakeInTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -16983,7 +17835,7 @@ func (m *QueryMultiReputerStakeInTopicRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Addresses = append(m.Addresses, string(dAtA[iNdEx:postIndex])) + m.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -17025,7 +17877,7 @@ func (m *QueryMultiReputerStakeInTopicRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryMultiReputerStakeInTopicResponse) Unmarshal(dAtA []byte) error { +func (m *QueryReputerStakeInTopicResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17048,17 +17900,17 @@ func (m *QueryMultiReputerStakeInTopicResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryMultiReputerStakeInTopicResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryReputerStakeInTopicResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryMultiReputerStakeInTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryReputerStakeInTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amounts", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -17068,23 +17920,23 @@ func (m *QueryMultiReputerStakeInTopicResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Amounts = append(m.Amounts, &StakeInfo{}) - if err := m.Amounts[len(m.Amounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -17109,7 +17961,7 @@ func (m *QueryMultiReputerStakeInTopicResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryStakeFromReputerInTopicInSelfRequest) Unmarshal(dAtA []byte) error { +func (m *QueryMultiReputerStakeInTopicRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17132,15 +17984,15 @@ func (m *QueryStakeFromReputerInTopicInSelfRequest) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryMultiReputerStakeInTopicRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryMultiReputerStakeInTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReputerAddress", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -17168,7 +18020,7 @@ func (m *QueryStakeFromReputerInTopicInSelfRequest) Unmarshal(dAtA []byte) error if postIndex > l { return io.ErrUnexpectedEOF } - m.ReputerAddress = string(dAtA[iNdEx:postIndex]) + m.Addresses = append(m.Addresses, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 0 { @@ -17210,7 +18062,7 @@ func (m *QueryStakeFromReputerInTopicInSelfRequest) Unmarshal(dAtA []byte) error } return nil } -func (m *QueryStakeFromReputerInTopicInSelfResponse) Unmarshal(dAtA []byte) error { +func (m *QueryMultiReputerStakeInTopicResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17233,17 +18085,17 @@ func (m *QueryStakeFromReputerInTopicInSelfResponse) Unmarshal(dAtA []byte) erro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryMultiReputerStakeInTopicResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryMultiReputerStakeInTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amounts", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -17253,23 +18105,23 @@ func (m *QueryStakeFromReputerInTopicInSelfResponse) Unmarshal(dAtA []byte) erro } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Amounts = append(m.Amounts, &StakeInfo{}) + if err := m.Amounts[len(m.Amounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -17294,7 +18146,7 @@ func (m *QueryStakeFromReputerInTopicInSelfResponse) Unmarshal(dAtA []byte) erro } return nil } -func (m *QueryDelegateStakeInTopicInReputerRequest) Unmarshal(dAtA []byte) error { +func (m *QueryStakeFromReputerInTopicInSelfRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17317,10 +18169,10 @@ func (m *QueryDelegateStakeInTopicInReputerRequest) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -17395,7 +18247,7 @@ func (m *QueryDelegateStakeInTopicInReputerRequest) Unmarshal(dAtA []byte) error } return nil } -func (m *QueryDelegateStakeInTopicInReputerResponse) Unmarshal(dAtA []byte) error { +func (m *QueryStakeFromReputerInTopicInSelfResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17418,10 +18270,10 @@ func (m *QueryDelegateStakeInTopicInReputerResponse) Unmarshal(dAtA []byte) erro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStakeFromReputerInTopicInSelfResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -17479,7 +18331,7 @@ func (m *QueryDelegateStakeInTopicInReputerResponse) Unmarshal(dAtA []byte) erro } return nil } -func (m *QueryStakeFromDelegatorInTopicInReputerRequest) Unmarshal(dAtA []byte) error { +func (m *QueryDelegateStakeInTopicInReputerRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17502,45 +18354,13 @@ func (m *QueryStakeFromDelegatorInTopicInReputerRequest) Unmarshal(dAtA []byte) fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DelegatorAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ReputerAddress", wireType) } @@ -17572,7 +18392,7 @@ func (m *QueryStakeFromDelegatorInTopicInReputerRequest) Unmarshal(dAtA []byte) } m.ReputerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: + case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } @@ -17612,7 +18432,7 @@ func (m *QueryStakeFromDelegatorInTopicInReputerRequest) Unmarshal(dAtA []byte) } return nil } -func (m *QueryStakeFromDelegatorInTopicInReputerResponse) Unmarshal(dAtA []byte) error { +func (m *QueryDelegateStakeInTopicInReputerResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17635,10 +18455,10 @@ func (m *QueryStakeFromDelegatorInTopicInReputerResponse) Unmarshal(dAtA []byte) fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDelegateStakeInTopicInReputerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -17696,7 +18516,7 @@ func (m *QueryStakeFromDelegatorInTopicInReputerResponse) Unmarshal(dAtA []byte) } return nil } -func (m *QueryStakeFromDelegatorInTopicRequest) Unmarshal(dAtA []byte) error { +func (m *QueryStakeFromDelegatorInTopicInReputerRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17719,10 +18539,10 @@ func (m *QueryStakeFromDelegatorInTopicRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -17758,77 +18578,8 @@ func (m *QueryStakeFromDelegatorInTopicRequest) Unmarshal(dAtA []byte) error { m.DelegatorAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - m.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryStakeFromDelegatorInTopicResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReputerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -17856,61 +18607,9 @@ func (m *QueryStakeFromDelegatorInTopicResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.ReputerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryTopicStakeRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryTopicStakeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTopicStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } @@ -17950,7 +18649,7 @@ func (m *QueryTopicStakeRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTopicStakeResponse) Unmarshal(dAtA []byte) error { +func (m *QueryStakeFromDelegatorInTopicInReputerResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -17973,10 +18672,10 @@ func (m *QueryTopicStakeResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTopicStakeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTopicStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicInReputerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -18034,7 +18733,7 @@ func (m *QueryTopicStakeResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryNetworkLossBundleAtBlockRequest) Unmarshal(dAtA []byte) error { +func (m *QueryStakeFromDelegatorInTopicRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18057,17 +18756,17 @@ func (m *QueryNetworkLossBundleAtBlockRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryNetworkLossBundleAtBlockRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryNetworkLossBundleAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DelegatorAddress", wireType) } - m.TopicId = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -18077,16 +18776,29 @@ func (m *QueryNetworkLossBundleAtBlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TopicId |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DelegatorAddress = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex case 2: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } - m.BlockHeight = 0 + m.TopicId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -18096,7 +18808,7 @@ func (m *QueryNetworkLossBundleAtBlockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BlockHeight |= int64(b&0x7F) << shift + m.TopicId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18122,7 +18834,7 @@ func (m *QueryNetworkLossBundleAtBlockRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryNetworkLossBundleAtBlockResponse) Unmarshal(dAtA []byte) error { +func (m *QueryStakeFromDelegatorInTopicResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18145,17 +18857,17 @@ func (m *QueryNetworkLossBundleAtBlockResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryNetworkLossBundleAtBlockResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryNetworkLossBundleAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStakeFromDelegatorInTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LossBundle", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -18165,25 +18877,23 @@ func (m *QueryNetworkLossBundleAtBlockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if m.LossBundle == nil { - m.LossBundle = &ValueBundle{} - } - if err := m.LossBundle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -18208,57 +18918,7 @@ func (m *QueryNetworkLossBundleAtBlockResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryNextTopicIdRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryNextTopicIdRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryNextTopicIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryNextTopicIdResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTopicStakeRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18281,17 +18941,17 @@ func (m *QueryNextTopicIdResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryNextTopicIdResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTopicStakeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryNextTopicIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTopicStakeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NextTopicId", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } - m.NextTopicId = 0 + m.TopicId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -18301,7 +18961,7 @@ func (m *QueryNextTopicIdResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.NextTopicId |= uint64(b&0x7F) << shift + m.TopicId |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -18327,7 +18987,7 @@ func (m *QueryNextTopicIdResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTopicRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTopicStakeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18350,17 +19010,17 @@ func (m *QueryTopicRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTopicRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTopicStakeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTopicStakeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Amount", wireType) } - m.TopicId = 0 + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -18370,11 +19030,26 @@ func (m *QueryTopicRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TopicId |= uint64(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Amount.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -18396,7 +19071,7 @@ func (m *QueryTopicRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTopicResponse) Unmarshal(dAtA []byte) error { +func (m *QueryNetworkLossBundleAtBlockRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18419,53 +19094,17 @@ func (m *QueryTopicResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTopicResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryNetworkLossBundleAtBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryNetworkLossBundleAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Topic == nil { - m.Topic = &Topic{} - } - if err := m.Topic.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } - var stringLen uint64 + m.TopicId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -18475,29 +19114,16 @@ func (m *QueryTopicResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.TopicId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Weight = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field EffectiveRevenue", wireType) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } - var stringLen uint64 + m.BlockHeight = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -18507,24 +19133,11 @@ func (m *QueryTopicResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.BlockHeight |= int64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.EffectiveRevenue = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -18546,7 +19159,7 @@ func (m *QueryTopicResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryActiveTopicsRequest) Unmarshal(dAtA []byte) error { +func (m *QueryNetworkLossBundleAtBlockResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18569,15 +19182,15 @@ func (m *QueryActiveTopicsRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryActiveTopicsRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryNetworkLossBundleAtBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryActiveTopicsRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryNetworkLossBundleAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LossBundle", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -18604,10 +19217,10 @@ func (m *QueryActiveTopicsRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Pagination == nil { - m.Pagination = &SimpleCursorPaginationRequest{} + if m.LossBundle == nil { + m.LossBundle = &ValueBundle{} } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.LossBundle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -18632,7 +19245,7 @@ func (m *QueryActiveTopicsRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryActiveTopicsResponse) Unmarshal(dAtA []byte) error { +func (m *QueryNextTopicIdRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18655,51 +19268,67 @@ func (m *QueryActiveTopicsResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryActiveTopicsResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryNextTopicIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryActiveTopicsResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryNextTopicIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } + default: + iNdEx = preIndex + skippy, err := skipQuery(dAtA[iNdEx:]) + if err != nil { + return err } - if msglen < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF } - if postIndex > l { + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *QueryNextTopicIdResponse) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { return io.ErrUnexpectedEOF } - m.Topics = append(m.Topics, &Topic{}) - if err := m.Topics[len(m.Topics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QueryNextTopicIdResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QueryNextTopicIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NextTopicId", wireType) } - var msglen int + m.NextTopicId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -18709,28 +19338,11 @@ func (m *QueryActiveTopicsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + m.NextTopicId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Pagination == nil { - m.Pagination = &SimpleCursorPaginationResponse{} - } - if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -18752,7 +19364,7 @@ func (m *QueryActiveTopicsResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryInferencesAtBlockRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTopicRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18775,10 +19387,10 @@ func (m *QueryInferencesAtBlockRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryInferencesAtBlockRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTopicRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryInferencesAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTopicRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -18800,25 +19412,6 @@ func (m *QueryInferencesAtBlockRequest) Unmarshal(dAtA []byte) error { break } } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) - } - m.BlockHeight = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BlockHeight |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -18840,7 +19433,7 @@ func (m *QueryInferencesAtBlockRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryInferencesAtBlockResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTopicResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18863,15 +19456,15 @@ func (m *QueryInferencesAtBlockResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryInferencesAtBlockResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTopicResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryInferencesAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTopicResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Inferences", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -18888,22 +19481,86 @@ func (m *QueryInferencesAtBlockResponse) Unmarshal(dAtA []byte) error { break } } - if msglen < 0 { + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Topic == nil { + m.Topic = &Topic{} + } + if err := m.Topic.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Weight = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EffectiveRevenue", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Inferences == nil { - m.Inferences = &Inferences{} - } - if err := m.Inferences.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.EffectiveRevenue = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -18926,7 +19583,7 @@ func (m *QueryInferencesAtBlockResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryLatestTopicInferencesRequest) Unmarshal(dAtA []byte) error { +func (m *QueryActiveTopicsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -18949,17 +19606,17 @@ func (m *QueryLatestTopicInferencesRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryLatestTopicInferencesRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryActiveTopicsRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryLatestTopicInferencesRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryActiveTopicsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } - m.TopicId = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -18969,11 +19626,28 @@ func (m *QueryLatestTopicInferencesRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TopicId |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &SimpleCursorPaginationRequest{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -18995,7 +19669,7 @@ func (m *QueryLatestTopicInferencesRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryLatestTopicInferencesResponse) Unmarshal(dAtA []byte) error { +func (m *QueryActiveTopicsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19018,15 +19692,15 @@ func (m *QueryLatestTopicInferencesResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryLatestTopicInferencesResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryActiveTopicsResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryLatestTopicInferencesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryActiveTopicsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Inferences", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Topics", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -19053,18 +19727,16 @@ func (m *QueryLatestTopicInferencesResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Inferences == nil { - m.Inferences = &Inferences{} - } - if err := m.Inferences.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + m.Topics = append(m.Topics, &Topic{}) + if err := m.Topics[len(m.Topics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } - m.BlockHeight = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -19074,11 +19746,28 @@ func (m *QueryLatestTopicInferencesResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BlockHeight |= int64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Pagination == nil { + m.Pagination = &SimpleCursorPaginationResponse{} + } + if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -19100,7 +19789,7 @@ func (m *QueryLatestTopicInferencesResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryForecastsAtBlockRequest) Unmarshal(dAtA []byte) error { +func (m *QueryInferencesAtBlockRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19123,10 +19812,10 @@ func (m *QueryForecastsAtBlockRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryForecastsAtBlockRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryInferencesAtBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryForecastsAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryInferencesAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -19188,7 +19877,7 @@ func (m *QueryForecastsAtBlockRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryForecastsAtBlockResponse) Unmarshal(dAtA []byte) error { +func (m *QueryInferencesAtBlockResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19211,15 +19900,15 @@ func (m *QueryForecastsAtBlockResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryForecastsAtBlockResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryInferencesAtBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryForecastsAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryInferencesAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Forecasts", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Inferences", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -19246,10 +19935,10 @@ func (m *QueryForecastsAtBlockResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Forecasts == nil { - m.Forecasts = &Forecasts{} + if m.Inferences == nil { + m.Inferences = &Inferences{} } - if err := m.Forecasts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Inferences.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -19274,7 +19963,7 @@ func (m *QueryForecastsAtBlockResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryWorkerLatestInferenceRequest) Unmarshal(dAtA []byte) error { +func (m *QueryLatestTopicInferencesRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19297,10 +19986,10 @@ func (m *QueryWorkerLatestInferenceRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryWorkerLatestInferenceRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryLatestTopicInferencesRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWorkerLatestInferenceRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryLatestTopicInferencesRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -19322,38 +20011,6 @@ func (m *QueryWorkerLatestInferenceRequest) Unmarshal(dAtA []byte) error { break } } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkerAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.WorkerAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -19375,7 +20032,7 @@ func (m *QueryWorkerLatestInferenceRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryWorkerLatestInferenceResponse) Unmarshal(dAtA []byte) error { +func (m *QueryLatestTopicInferencesResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19398,15 +20055,15 @@ func (m *QueryWorkerLatestInferenceResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryWorkerLatestInferenceResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryLatestTopicInferencesResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWorkerLatestInferenceResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryLatestTopicInferencesResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LatestInference", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Inferences", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -19433,13 +20090,32 @@ func (m *QueryWorkerLatestInferenceResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.LatestInference == nil { - m.LatestInference = &Inference{} + if m.Inferences == nil { + m.Inferences = &Inferences{} } - if err := m.LatestInference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Inferences.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) + } + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -19461,7 +20137,7 @@ func (m *QueryWorkerLatestInferenceResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryWorkerNodeInfoRequest) Unmarshal(dAtA []byte) error { +func (m *QueryForecastsAtBlockRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19484,17 +20160,17 @@ func (m *QueryWorkerNodeInfoRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryWorkerNodeInfoRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryForecastsAtBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWorkerNodeInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryForecastsAtBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Libp2PKey", wireType) + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } - var stringLen uint64 + m.TopicId = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -19504,24 +20180,30 @@ func (m *QueryWorkerNodeInfoRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + m.TopicId |= uint64(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeight", wireType) } - if postIndex > l { - return io.ErrUnexpectedEOF + m.BlockHeight = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.BlockHeight |= int64(b&0x7F) << shift + if b < 0x80 { + break + } } - m.Libp2PKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -19543,7 +20225,7 @@ func (m *QueryWorkerNodeInfoRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryWorkerNodeInfoResponse) Unmarshal(dAtA []byte) error { +func (m *QueryForecastsAtBlockResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19566,15 +20248,15 @@ func (m *QueryWorkerNodeInfoResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryWorkerNodeInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryForecastsAtBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWorkerNodeInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryForecastsAtBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeInfo", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Forecasts", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -19601,10 +20283,10 @@ func (m *QueryWorkerNodeInfoResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.NodeInfo == nil { - m.NodeInfo = &OffchainNode{} + if m.Forecasts == nil { + m.Forecasts = &Forecasts{} } - if err := m.NodeInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.Forecasts.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -19629,7 +20311,7 @@ func (m *QueryWorkerNodeInfoResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryReputerNodeInfoRequest) Unmarshal(dAtA []byte) error { +func (m *QueryWorkerLatestInferenceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19652,15 +20334,34 @@ func (m *QueryReputerNodeInfoRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryReputerNodeInfoRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryWorkerLatestInferenceRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryReputerNodeInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryWorkerLatestInferenceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Libp2PKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WorkerAddress", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -19688,7 +20389,7 @@ func (m *QueryReputerNodeInfoRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Libp2PKey = string(dAtA[iNdEx:postIndex]) + m.WorkerAddress = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -19711,7 +20412,7 @@ func (m *QueryReputerNodeInfoRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryReputerNodeInfoResponse) Unmarshal(dAtA []byte) error { +func (m *QueryWorkerLatestInferenceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19734,15 +20435,15 @@ func (m *QueryReputerNodeInfoResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryReputerNodeInfoResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryWorkerLatestInferenceResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryReputerNodeInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryWorkerLatestInferenceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeInfo", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field LatestInference", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -19769,10 +20470,10 @@ func (m *QueryReputerNodeInfoResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.NodeInfo == nil { - m.NodeInfo = &OffchainNode{} + if m.LatestInference == nil { + m.LatestInference = &Inference{} } - if err := m.NodeInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.LatestInference.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -19797,7 +20498,7 @@ func (m *QueryReputerNodeInfoResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryWorkerAddressByP2PKeyRequest) Unmarshal(dAtA []byte) error { +func (m *QueryWorkerNodeInfoRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19820,15 +20521,15 @@ func (m *QueryWorkerAddressByP2PKeyRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryWorkerAddressByP2PKeyRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryWorkerNodeInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWorkerAddressByP2PKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryWorkerNodeInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Libp2PKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -19856,7 +20557,7 @@ func (m *QueryWorkerAddressByP2PKeyRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Libp2PKey = string(dAtA[iNdEx:postIndex]) + m.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -19879,7 +20580,7 @@ func (m *QueryWorkerAddressByP2PKeyRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryWorkerAddressByP2PKeyResponse) Unmarshal(dAtA []byte) error { +func (m *QueryWorkerNodeInfoResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19902,17 +20603,17 @@ func (m *QueryWorkerAddressByP2PKeyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryWorkerAddressByP2PKeyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryWorkerNodeInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryWorkerAddressByP2PKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryWorkerNodeInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NodeInfo", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -19922,23 +20623,27 @@ func (m *QueryWorkerAddressByP2PKeyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = string(dAtA[iNdEx:postIndex]) + if m.NodeInfo == nil { + m.NodeInfo = &OffchainNode{} + } + if err := m.NodeInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -19961,7 +20666,7 @@ func (m *QueryWorkerAddressByP2PKeyResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryReputerAddressByP2PKeyRequest) Unmarshal(dAtA []byte) error { +func (m *QueryReputerNodeInfoRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -19984,15 +20689,15 @@ func (m *QueryReputerAddressByP2PKeyRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryReputerAddressByP2PKeyRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryReputerNodeInfoRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryReputerAddressByP2PKeyRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryReputerNodeInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Libp2PKey", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -20020,7 +20725,7 @@ func (m *QueryReputerAddressByP2PKeyRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Libp2PKey = string(dAtA[iNdEx:postIndex]) + m.Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -20043,7 +20748,7 @@ func (m *QueryReputerAddressByP2PKeyRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryReputerAddressByP2PKeyResponse) Unmarshal(dAtA []byte) error { +func (m *QueryReputerNodeInfoResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -20066,17 +20771,17 @@ func (m *QueryReputerAddressByP2PKeyResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryReputerAddressByP2PKeyResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryReputerNodeInfoResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryReputerAddressByP2PKeyResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryReputerNodeInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field NodeInfo", wireType) } - var stringLen uint64 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -20086,23 +20791,27 @@ func (m *QueryReputerAddressByP2PKeyResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= uint64(b&0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } } - intStringLen := int(stringLen) - if intStringLen < 0 { + if msglen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + intStringLen + postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - m.Address = string(dAtA[iNdEx:postIndex]) + if m.NodeInfo == nil { + m.NodeInfo = &OffchainNode{} + } + if err := m.NodeInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } iNdEx = postIndex default: iNdEx = preIndex @@ -20819,194 +21528,7 @@ func (m *QueryInfererNetworkRegretRequest) Unmarshal(dAtA []byte) error { } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ActorId = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryInfererNetworkRegretResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryInfererNetworkRegretResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryInfererNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Regret", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Regret == nil { - m.Regret = &TimestampedValue{} - } - if err := m.Regret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryForecasterNetworkRegretRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryForecasterNetworkRegretRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryForecasterNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - m.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ActorId", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -21034,7 +21556,7 @@ func (m *QueryForecasterNetworkRegretRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Worker = string(dAtA[iNdEx:postIndex]) + m.ActorId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -21057,7 +21579,7 @@ func (m *QueryForecasterNetworkRegretRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryForecasterNetworkRegretResponse) Unmarshal(dAtA []byte) error { +func (m *QueryInfererNetworkRegretResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21080,10 +21602,10 @@ func (m *QueryForecasterNetworkRegretResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryForecasterNetworkRegretResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryInfererNetworkRegretResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryForecasterNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryInfererNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21143,7 +21665,7 @@ func (m *QueryForecasterNetworkRegretResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryOneInForecasterNetworkRegretRequest) Unmarshal(dAtA []byte) error { +func (m *QueryForecasterNetworkRegretRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21166,10 +21688,10 @@ func (m *QueryOneInForecasterNetworkRegretRequest) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryOneInForecasterNetworkRegretRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryForecasterNetworkRegretRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryOneInForecasterNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryForecasterNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21193,39 +21715,7 @@ func (m *QueryOneInForecasterNetworkRegretRequest) Unmarshal(dAtA []byte) error } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Forecaster = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -21253,7 +21743,7 @@ func (m *QueryOneInForecasterNetworkRegretRequest) Unmarshal(dAtA []byte) error if postIndex > l { return io.ErrUnexpectedEOF } - m.Inferer = string(dAtA[iNdEx:postIndex]) + m.Worker = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -21276,7 +21766,7 @@ func (m *QueryOneInForecasterNetworkRegretRequest) Unmarshal(dAtA []byte) error } return nil } -func (m *QueryOneInForecasterNetworkRegretResponse) Unmarshal(dAtA []byte) error { +func (m *QueryForecasterNetworkRegretResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21299,10 +21789,10 @@ func (m *QueryOneInForecasterNetworkRegretResponse) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryOneInForecasterNetworkRegretResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryForecasterNetworkRegretResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryOneInForecasterNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryForecasterNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21362,7 +21852,7 @@ func (m *QueryOneInForecasterNetworkRegretResponse) Unmarshal(dAtA []byte) error } return nil } -func (m *QueryOneInForecasterSelfNetworkRegretRequest) Unmarshal(dAtA []byte) error { +func (m *QueryOneInForecasterNetworkRegretRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21385,10 +21875,10 @@ func (m *QueryOneInForecasterSelfNetworkRegretRequest) Unmarshal(dAtA []byte) er fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryOneInForecasterSelfNetworkRegretRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryOneInForecasterNetworkRegretRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryOneInForecasterSelfNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryOneInForecasterNetworkRegretRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -21442,6 +21932,38 @@ func (m *QueryOneInForecasterSelfNetworkRegretRequest) Unmarshal(dAtA []byte) er } m.Forecaster = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inferer", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Inferer = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -21463,7 +21985,7 @@ func (m *QueryOneInForecasterSelfNetworkRegretRequest) Unmarshal(dAtA []byte) er } return nil } -func (m *QueryOneInForecasterSelfNetworkRegretResponse) Unmarshal(dAtA []byte) error { +func (m *QueryOneInForecasterNetworkRegretResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -21486,10 +22008,10 @@ func (m *QueryOneInForecasterSelfNetworkRegretResponse) Unmarshal(dAtA []byte) e fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryOneInForecasterSelfNetworkRegretResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryOneInForecasterNetworkRegretResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryOneInForecasterSelfNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryOneInForecasterNetworkRegretResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22585,7 +23107,7 @@ func (m *QueryIsWhitelistAdminResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryStakeRemovalsForBlockRequest) Unmarshal(dAtA []byte) error { +func (m *QueryStakeRemovalsUpUntilBlockRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22608,10 +23130,10 @@ func (m *QueryStakeRemovalsForBlockRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryStakeRemovalsForBlockRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStakeRemovalsUpUntilBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStakeRemovalsForBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStakeRemovalsUpUntilBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22654,7 +23176,7 @@ func (m *QueryStakeRemovalsForBlockRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryStakeRemovalsForBlockResponse) Unmarshal(dAtA []byte) error { +func (m *QueryStakeRemovalsUpUntilBlockResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22677,10 +23199,10 @@ func (m *QueryStakeRemovalsForBlockResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryStakeRemovalsForBlockResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryStakeRemovalsUpUntilBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryStakeRemovalsForBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryStakeRemovalsUpUntilBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22738,7 +23260,7 @@ func (m *QueryStakeRemovalsForBlockResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryDelegateStakeRemovalsForBlockRequest) Unmarshal(dAtA []byte) error { +func (m *QueryDelegateStakeRemovalsUpUntilBlockRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22761,10 +23283,10 @@ func (m *QueryDelegateStakeRemovalsForBlockRequest) Unmarshal(dAtA []byte) error fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryDelegateStakeRemovalsForBlockRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDelegateStakeRemovalsUpUntilBlockRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDelegateStakeRemovalsForBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDelegateStakeRemovalsUpUntilBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -22807,7 +23329,7 @@ func (m *QueryDelegateStakeRemovalsForBlockRequest) Unmarshal(dAtA []byte) error } return nil } -func (m *QueryDelegateStakeRemovalsForBlockResponse) Unmarshal(dAtA []byte) error { +func (m *QueryDelegateStakeRemovalsUpUntilBlockResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -22830,10 +23352,10 @@ func (m *QueryDelegateStakeRemovalsForBlockResponse) Unmarshal(dAtA []byte) erro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryDelegateStakeRemovalsForBlockResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryDelegateStakeRemovalsUpUntilBlockResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryDelegateStakeRemovalsForBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryDelegateStakeRemovalsUpUntilBlockResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -25518,210 +26040,34 @@ func (m *QueryTopicFeeRevenueResponse) Unmarshal(dAtA []byte) error { } var stringLen uint64 for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.FeeRevenue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryChurnableTopicsRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryChurnableTopicsRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryChurnableTopicsRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryChurnableTopicsResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryChurnableTopicsResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryChurnableTopicsResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ChurnableTopicIds = append(m.ChurnableTopicIds, v) - } else if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + packedLen - if postIndex < 0 { - return ErrInvalidLengthQuery + if shift >= 64 { + return ErrIntOverflowQuery } - if postIndex > l { + if iNdEx >= l { return io.ErrUnexpectedEOF } - var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count - if elementCount != 0 && len(m.ChurnableTopicIds) == 0 { - m.ChurnableTopicIds = make([]uint64, 0, elementCount) - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.ChurnableTopicIds = append(m.ChurnableTopicIds, v) + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break } - } else { - return fmt.Errorf("proto: wrong wireType = %d for field ChurnableTopicIds", wireType) } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthQuery + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthQuery + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.FeeRevenue.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -27559,212 +27905,7 @@ func (m *QueryPreviousReputerRewardFractionRequest) Unmarshal(dAtA []byte) error return fmt.Errorf("proto: QueryPreviousReputerRewardFractionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPreviousReputerRewardFractionRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - m.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Reputer = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryPreviousReputerRewardFractionResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryPreviousReputerRewardFractionResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPreviousReputerRewardFractionResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RewardFraction", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthQuery - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthQuery - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.RewardFraction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NotFound", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - m.NotFound = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryPreviousInferenceRewardFractionRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryPreviousInferenceRewardFractionRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPreviousInferenceRewardFractionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPreviousReputerRewardFractionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -27788,7 +27929,7 @@ func (m *QueryPreviousInferenceRewardFractionRequest) Unmarshal(dAtA []byte) err } case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Reputer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -27816,7 +27957,7 @@ func (m *QueryPreviousInferenceRewardFractionRequest) Unmarshal(dAtA []byte) err if postIndex > l { return io.ErrUnexpectedEOF } - m.Worker = string(dAtA[iNdEx:postIndex]) + m.Reputer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -27839,7 +27980,7 @@ func (m *QueryPreviousInferenceRewardFractionRequest) Unmarshal(dAtA []byte) err } return nil } -func (m *QueryPreviousInferenceRewardFractionResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPreviousReputerRewardFractionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27862,10 +28003,10 @@ func (m *QueryPreviousInferenceRewardFractionResponse) Unmarshal(dAtA []byte) er fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPreviousInferenceRewardFractionResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPreviousReputerRewardFractionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPreviousInferenceRewardFractionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPreviousReputerRewardFractionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -27943,7 +28084,7 @@ func (m *QueryPreviousInferenceRewardFractionResponse) Unmarshal(dAtA []byte) er } return nil } -func (m *QueryPreviousForecastRewardFractionRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPreviousInferenceRewardFractionRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -27966,10 +28107,10 @@ func (m *QueryPreviousForecastRewardFractionRequest) Unmarshal(dAtA []byte) erro fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPreviousForecastRewardFractionRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPreviousInferenceRewardFractionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPreviousForecastRewardFractionRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPreviousInferenceRewardFractionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -28044,7 +28185,7 @@ func (m *QueryPreviousForecastRewardFractionRequest) Unmarshal(dAtA []byte) erro } return nil } -func (m *QueryPreviousForecastRewardFractionResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPreviousInferenceRewardFractionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28067,10 +28208,10 @@ func (m *QueryPreviousForecastRewardFractionResponse) Unmarshal(dAtA []byte) err fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPreviousForecastRewardFractionResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPreviousInferenceRewardFractionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPreviousForecastRewardFractionResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPreviousInferenceRewardFractionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -28148,7 +28289,7 @@ func (m *QueryPreviousForecastRewardFractionResponse) Unmarshal(dAtA []byte) err } return nil } -func (m *QueryPreviousPercentageRewardToStakedReputersRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPreviousForecastRewardFractionRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28171,65 +28312,34 @@ func (m *QueryPreviousPercentageRewardToStakedReputersRequest) Unmarshal(dAtA [] fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPreviousForecastRewardFractionRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPreviousForecastRewardFractionRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryPreviousPercentageRewardToStakedReputersResponse) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: + case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PercentageReward", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Worker", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28257,9 +28367,7 @@ func (m *QueryPreviousPercentageRewardToStakedReputersResponse) Unmarshal(dAtA [ if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.PercentageReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } + m.Worker = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex @@ -28282,57 +28390,7 @@ func (m *QueryPreviousPercentageRewardToStakedReputersResponse) Unmarshal(dAtA [ } return nil } -func (m *QueryTotalRewardToDistributeRequest) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: QueryTotalRewardToDistributeRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTotalRewardToDistributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - default: - iNdEx = preIndex - skippy, err := skipQuery(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *QueryTotalRewardToDistributeResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPreviousForecastRewardFractionResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28355,15 +28413,15 @@ func (m *QueryTotalRewardToDistributeResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTotalRewardToDistributeResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPreviousForecastRewardFractionResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTotalRewardToDistributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPreviousForecastRewardFractionResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TotalReward", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field RewardFraction", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -28391,10 +28449,30 @@ func (m *QueryTotalRewardToDistributeResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if err := m.TotalReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.RewardFraction.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field NotFound", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowQuery + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.NotFound = bool(v != 0) default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -28416,7 +28494,7 @@ func (m *QueryTotalRewardToDistributeResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTopicLastWorkerPayloadRequest) Unmarshal(dAtA []byte) error { +func (m *QueryPreviousPercentageRewardToStakedReputersRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28439,31 +28517,12 @@ func (m *QueryTopicLastWorkerPayloadRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTopicLastWorkerPayloadRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTopicLastWorkerPayloadRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - m.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -28485,7 +28544,7 @@ func (m *QueryTopicLastWorkerPayloadRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTopicLastWorkerPayloadResponse) Unmarshal(dAtA []byte) error { +func (m *QueryPreviousPercentageRewardToStakedReputersResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28508,17 +28567,17 @@ func (m *QueryTopicLastWorkerPayloadResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTopicLastWorkerPayloadResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTopicLastWorkerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryPreviousPercentageRewardToStakedReputersResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field PercentageReward", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -28528,25 +28587,23 @@ func (m *QueryTopicLastWorkerPayloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Payload == nil { - m.Payload = &TimestampedActorNonce{} - } - if err := m.Payload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.PercentageReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -28571,7 +28628,7 @@ func (m *QueryTopicLastWorkerPayloadResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTopicLastReputerPayloadRequest) Unmarshal(dAtA []byte) error { +func (m *QueryTotalRewardToDistributeRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28594,31 +28651,12 @@ func (m *QueryTopicLastReputerPayloadRequest) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTopicLastReputerPayloadRequest: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTotalRewardToDistributeRequest: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTopicLastReputerPayloadRequest: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTotalRewardToDistributeRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - m.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowQuery - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) @@ -28640,7 +28678,7 @@ func (m *QueryTopicLastReputerPayloadRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *QueryTopicLastReputerPayloadResponse) Unmarshal(dAtA []byte) error { +func (m *QueryTotalRewardToDistributeResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -28663,17 +28701,17 @@ func (m *QueryTopicLastReputerPayloadResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: QueryTopicLastReputerPayloadResponse: wiretype end group for non-group") + return fmt.Errorf("proto: QueryTotalRewardToDistributeResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: QueryTopicLastReputerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: QueryTotalRewardToDistributeResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Payload", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field TotalReward", wireType) } - var msglen int + var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery @@ -28683,25 +28721,23 @@ func (m *QueryTopicLastReputerPayloadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= int(b&0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } - if msglen < 0 { + intStringLen := int(stringLen) + if intStringLen < 0 { return ErrInvalidLengthQuery } - postIndex := iNdEx + msglen + postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } - if m.Payload == nil { - m.Payload = &TimestampedActorNonce{} - } - if err := m.Payload.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.TotalReward.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex diff --git a/x/emissions/types/query.pb.gw.go b/x/emissions/types/query.pb.gw.go index 7f65c8a92..d862601cd 100644 --- a/x/emissions/types/query.pb.gw.go +++ b/x/emissions/types/query.pb.gw.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: emissions/v1/query.proto +// source: emissions/v2/query.proto /* Package types is a reverse proxy. @@ -1063,8 +1063,8 @@ func local_request_Query_GetTopicStake_0(ctx context.Context, marshaler runtime. } -func request_Query_GetStakeRemovalsForBlock_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryStakeRemovalsForBlockRequest +func request_Query_GetStakeRemovalsUpUntilBlock_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStakeRemovalsUpUntilBlockRequest var metadata runtime.ServerMetadata var ( @@ -1085,13 +1085,13 @@ func request_Query_GetStakeRemovalsForBlock_0(ctx context.Context, marshaler run return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_height", err) } - msg, err := client.GetStakeRemovalsForBlock(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetStakeRemovalsUpUntilBlock(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_GetStakeRemovalsForBlock_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryStakeRemovalsForBlockRequest +func local_request_Query_GetStakeRemovalsUpUntilBlock_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStakeRemovalsUpUntilBlockRequest var metadata runtime.ServerMetadata var ( @@ -1112,13 +1112,13 @@ func local_request_Query_GetStakeRemovalsForBlock_0(ctx context.Context, marshal return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_height", err) } - msg, err := server.GetStakeRemovalsForBlock(ctx, &protoReq) + msg, err := server.GetStakeRemovalsUpUntilBlock(ctx, &protoReq) return msg, metadata, err } -func request_Query_GetDelegateStakeRemovalsForBlock_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryDelegateStakeRemovalsForBlockRequest +func request_Query_GetDelegateStakeRemovalsUpUntilBlock_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDelegateStakeRemovalsUpUntilBlockRequest var metadata runtime.ServerMetadata var ( @@ -1139,13 +1139,13 @@ func request_Query_GetDelegateStakeRemovalsForBlock_0(ctx context.Context, marsh return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_height", err) } - msg, err := client.GetDelegateStakeRemovalsForBlock(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetDelegateStakeRemovalsUpUntilBlock(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_GetDelegateStakeRemovalsForBlock_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryDelegateStakeRemovalsForBlockRequest +func local_request_Query_GetDelegateStakeRemovalsUpUntilBlock_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryDelegateStakeRemovalsUpUntilBlockRequest var metadata runtime.ServerMetadata var ( @@ -1166,7 +1166,7 @@ func local_request_Query_GetDelegateStakeRemovalsForBlock_0(ctx context.Context, return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "block_height", err) } - msg, err := server.GetDelegateStakeRemovalsForBlock(ctx, &protoReq) + msg, err := server.GetDelegateStakeRemovalsUpUntilBlock(ctx, &protoReq) return msg, metadata, err } @@ -1356,15 +1356,15 @@ func request_Query_GetWorkerNodeInfo_0(ctx context.Context, marshaler runtime.Ma _ = err ) - val, ok = pathParams["libp2p_key"] + val, ok = pathParams["address"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "libp2p_key") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") } - protoReq.Libp2PKey, err = runtime.String(val) + protoReq.Address, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "libp2p_key", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) } msg, err := client.GetWorkerNodeInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -1383,15 +1383,15 @@ func local_request_Query_GetWorkerNodeInfo_0(ctx context.Context, marshaler runt _ = err ) - val, ok = pathParams["libp2p_key"] + val, ok = pathParams["address"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "libp2p_key") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") } - protoReq.Libp2PKey, err = runtime.String(val) + protoReq.Address, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "libp2p_key", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) } msg, err := server.GetWorkerNodeInfo(ctx, &protoReq) @@ -1410,15 +1410,15 @@ func request_Query_GetReputerNodeInfo_0(ctx context.Context, marshaler runtime.M _ = err ) - val, ok = pathParams["libp2p_key"] + val, ok = pathParams["address"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "libp2p_key") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") } - protoReq.Libp2PKey, err = runtime.String(val) + protoReq.Address, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "libp2p_key", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) } msg, err := client.GetReputerNodeInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) @@ -1437,15 +1437,15 @@ func local_request_Query_GetReputerNodeInfo_0(ctx context.Context, marshaler run _ = err ) - val, ok = pathParams["libp2p_key"] + val, ok = pathParams["address"] if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "libp2p_key") + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "address") } - protoReq.Libp2PKey, err = runtime.String(val) + protoReq.Address, err = runtime.String(val) if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "libp2p_key", err) + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "address", err) } msg, err := server.GetReputerNodeInfo(ctx, &protoReq) @@ -1453,114 +1453,6 @@ func local_request_Query_GetReputerNodeInfo_0(ctx context.Context, marshaler run } -func request_Query_GetWorkerAddressByP2PKey_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryWorkerAddressByP2PKeyRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["libp2p_key"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "libp2p_key") - } - - protoReq.Libp2PKey, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "libp2p_key", err) - } - - msg, err := client.GetWorkerAddressByP2PKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetWorkerAddressByP2PKey_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryWorkerAddressByP2PKeyRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["libp2p_key"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "libp2p_key") - } - - protoReq.Libp2PKey, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "libp2p_key", err) - } - - msg, err := server.GetWorkerAddressByP2PKey(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Query_GetReputerAddressByP2PKey_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryReputerAddressByP2PKeyRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["libp2p_key"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "libp2p_key") - } - - protoReq.Libp2PKey, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "libp2p_key", err) - } - - msg, err := client.GetReputerAddressByP2PKey(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetReputerAddressByP2PKey_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryReputerAddressByP2PKeyRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["libp2p_key"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "libp2p_key") - } - - protoReq.Libp2PKey, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "libp2p_key", err) - } - - msg, err := server.GetReputerAddressByP2PKey(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_IsWorkerRegisteredInTopicId_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryIsWorkerRegisteredInTopicIdRequest var metadata runtime.ServerMetadata @@ -2429,82 +2321,6 @@ func local_request_Query_GetOneInForecasterNetworkRegret_0(ctx context.Context, } -func request_Query_GetOneInForecasterSelfNetworkRegret_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryOneInForecasterSelfNetworkRegretRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["topic_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "topic_id") - } - - protoReq.TopicId, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "topic_id", err) - } - - val, ok = pathParams["forecaster"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "forecaster") - } - - protoReq.Forecaster, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "forecaster", err) - } - - msg, err := client.GetOneInForecasterSelfNetworkRegret(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetOneInForecasterSelfNetworkRegret_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryOneInForecasterSelfNetworkRegretRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["topic_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "topic_id") - } - - protoReq.TopicId, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "topic_id", err) - } - - val, ok = pathParams["forecaster"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "forecaster") - } - - protoReq.Forecaster, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "forecaster", err) - } - - msg, err := server.GetOneInForecasterSelfNetworkRegret(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_IsWhitelistAdmin_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryIsWhitelistAdminRequest var metadata runtime.ServerMetadata @@ -3535,24 +3351,6 @@ func local_request_Query_GetTopicFeeRevenue_0(ctx context.Context, marshaler run } -func request_Query_GetChurnableTopics_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryChurnableTopicsRequest - var metadata runtime.ServerMetadata - - msg, err := client.GetChurnableTopics(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Query_GetChurnableTopics_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryChurnableTopicsRequest - var metadata runtime.ServerMetadata - - msg, err := server.GetChurnableTopics(ctx, &protoReq) - return msg, metadata, err - -} - func request_Query_GetRewardableTopics_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq QueryRewardableTopicsRequest var metadata runtime.ServerMetadata @@ -4519,110 +4317,182 @@ func local_request_Query_GetTotalRewardToDistribute_0(ctx context.Context, marsh } -func request_Query_GetTopicLastWorkerPayload_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTopicLastWorkerPayloadRequest - var metadata runtime.ServerMetadata +var ( + filter_Query_GetNaiveInfererNetworkRegret_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) - var ( - val string - ok bool - err error - _ = err - ) +func request_Query_GetNaiveInfererNetworkRegret_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNaiveInfererNetworkRegretRequest + var metadata runtime.ServerMetadata - val, ok = pathParams["topic_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "topic_id") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.TopicId, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "topic_id", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetNaiveInfererNetworkRegret_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetTopicLastWorkerPayload(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetNaiveInfererNetworkRegret(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_GetTopicLastWorkerPayload_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTopicLastWorkerPayloadRequest +func local_request_Query_GetNaiveInfererNetworkRegret_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryNaiveInfererNetworkRegretRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["topic_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "topic_id") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.TopicId, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "topic_id", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetNaiveInfererNetworkRegret_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetTopicLastWorkerPayload(ctx, &protoReq) + msg, err := server.GetNaiveInfererNetworkRegret(ctx, &protoReq) return msg, metadata, err } -func request_Query_GetTopicLastReputerPayload_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTopicLastReputerPayloadRequest - var metadata runtime.ServerMetadata +var ( + filter_Query_GetOneOutInfererInfererNetworkRegret_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) - var ( - val string - ok bool - err error - _ = err - ) +func request_Query_GetOneOutInfererInfererNetworkRegret_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOneOutInfererInfererNetworkRegretRequest + var metadata runtime.ServerMetadata - val, ok = pathParams["topic_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "topic_id") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.TopicId, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "topic_id", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetOneOutInfererInfererNetworkRegret_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := client.GetTopicLastReputerPayload(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + msg, err := client.GetOneOutInfererInfererNetworkRegret(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) return msg, metadata, err } -func local_request_Query_GetTopicLastReputerPayload_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueryTopicLastReputerPayloadRequest +func local_request_Query_GetOneOutInfererInfererNetworkRegret_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOneOutInfererInfererNetworkRegretRequest var metadata runtime.ServerMetadata - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["topic_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "topic_id") + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - - protoReq.TopicId, err = runtime.Uint64(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "topic_id", err) + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetOneOutInfererInfererNetworkRegret_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) } - msg, err := server.GetTopicLastReputerPayload(ctx, &protoReq) + msg, err := server.GetOneOutInfererInfererNetworkRegret(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_GetOneOutInfererForecasterNetworkRegret_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_GetOneOutInfererForecasterNetworkRegret_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOneOutInfererForecasterNetworkRegretRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetOneOutInfererForecasterNetworkRegret_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetOneOutInfererForecasterNetworkRegret(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GetOneOutInfererForecasterNetworkRegret_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOneOutInfererForecasterNetworkRegretRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetOneOutInfererForecasterNetworkRegret_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetOneOutInfererForecasterNetworkRegret(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_GetOneOutForecasterInfererNetworkRegret_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_GetOneOutForecasterInfererNetworkRegret_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOneOutForecasterInfererNetworkRegretRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetOneOutForecasterInfererNetworkRegret_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetOneOutForecasterInfererNetworkRegret(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GetOneOutForecasterInfererNetworkRegret_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOneOutForecasterInfererNetworkRegretRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetOneOutForecasterInfererNetworkRegret_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetOneOutForecasterInfererNetworkRegret(ctx, &protoReq) + return msg, metadata, err + +} + +var ( + filter_Query_GetOneOutForecasterForecasterNetworkRegret_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} +) + +func request_Query_GetOneOutForecasterForecasterNetworkRegret_0(ctx context.Context, marshaler runtime.Marshaler, client QueryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOneOutForecasterForecasterNetworkRegretRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetOneOutForecasterForecasterNetworkRegret_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetOneOutForecasterForecasterNetworkRegret(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Query_GetOneOutForecasterForecasterNetworkRegret_0(ctx context.Context, marshaler runtime.Marshaler, server QueryServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryOneOutForecasterForecasterNetworkRegretRequest + var metadata runtime.ServerMetadata + + if err := req.ParseForm(); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Query_GetOneOutForecasterForecasterNetworkRegret_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetOneOutForecasterForecasterNetworkRegret(ctx, &protoReq) return msg, metadata, err } @@ -5024,7 +4894,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_GetStakeRemovalsForBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GetStakeRemovalsUpUntilBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -5035,7 +4905,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_GetStakeRemovalsForBlock_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_GetStakeRemovalsUpUntilBlock_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -5043,11 +4913,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_GetStakeRemovalsForBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GetStakeRemovalsUpUntilBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_GetDelegateStakeRemovalsForBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GetDelegateStakeRemovalsUpUntilBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -5058,7 +4928,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_GetDelegateStakeRemovalsForBlock_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_GetDelegateStakeRemovalsUpUntilBlock_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -5066,7 +4936,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_GetDelegateStakeRemovalsForBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GetDelegateStakeRemovalsUpUntilBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -5162,52 +5032,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_GetWorkerAddressByP2PKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetWorkerAddressByP2PKey_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetWorkerAddressByP2PKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetReputerAddressByP2PKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetReputerAddressByP2PKey_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetReputerAddressByP2PKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_IsWorkerRegisteredInTopicId_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -5484,29 +5308,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_GetOneInForecasterSelfNetworkRegret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetOneInForecasterSelfNetworkRegret_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetOneInForecasterSelfNetworkRegret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_IsWhitelistAdmin_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -5852,29 +5653,6 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_GetChurnableTopics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Query_GetChurnableTopics_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetChurnableTopics_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GetRewardableTopics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -6220,7 +5998,53 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv }) - mux.Handle("GET", pattern_Query_GetTopicLastWorkerPayload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GetNaiveInfererNetworkRegret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_GetNaiveInfererNetworkRegret_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetNaiveInfererNetworkRegret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetOneOutInfererInfererNetworkRegret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_GetOneOutInfererInfererNetworkRegret_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetOneOutInfererInfererNetworkRegret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetOneOutInfererForecasterNetworkRegret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -6231,7 +6055,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_GetTopicLastWorkerPayload_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_GetOneOutInfererForecasterNetworkRegret_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -6239,11 +6063,11 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_GetTopicLastWorkerPayload_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GetOneOutInfererForecasterNetworkRegret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_GetTopicLastReputerPayload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GetOneOutForecasterInfererNetworkRegret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() var stream runtime.ServerTransportStream @@ -6254,7 +6078,7 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := local_request_Query_GetTopicLastReputerPayload_0(rctx, inboundMarshaler, server, req, pathParams) + resp, md, err := local_request_Query_GetOneOutForecasterInfererNetworkRegret_0(rctx, inboundMarshaler, server, req, pathParams) md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { @@ -6262,7 +6086,30 @@ func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, serv return } - forward_Query_GetTopicLastReputerPayload_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GetOneOutForecasterInfererNetworkRegret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetOneOutForecasterForecasterNetworkRegret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Query_GetOneOutForecasterForecasterNetworkRegret_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetOneOutForecasterForecasterNetworkRegret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -6647,7 +6494,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_GetStakeRemovalsForBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GetStakeRemovalsUpUntilBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -6656,18 +6503,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_GetStakeRemovalsForBlock_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_GetStakeRemovalsUpUntilBlock_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_GetStakeRemovalsForBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GetStakeRemovalsUpUntilBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_GetDelegateStakeRemovalsForBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GetDelegateStakeRemovalsUpUntilBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -6676,14 +6523,14 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_GetDelegateStakeRemovalsForBlock_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_GetDelegateStakeRemovalsUpUntilBlock_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_GetDelegateStakeRemovalsForBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GetDelegateStakeRemovalsUpUntilBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -6767,46 +6614,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_GetWorkerAddressByP2PKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetWorkerAddressByP2PKey_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetWorkerAddressByP2PKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Query_GetReputerAddressByP2PKey_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetReputerAddressByP2PKey_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetReputerAddressByP2PKey_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_IsWorkerRegisteredInTopicId_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -7047,26 +6854,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_GetOneInForecasterSelfNetworkRegret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetOneInForecasterSelfNetworkRegret_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetOneInForecasterSelfNetworkRegret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_IsWhitelistAdmin_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -7367,26 +7154,6 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_GetChurnableTopics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Query_GetChurnableTopics_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Query_GetChurnableTopics_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - mux.Handle("GET", pattern_Query_GetRewardableTopics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -7687,7 +7454,7 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie }) - mux.Handle("GET", pattern_Query_GetTopicLastWorkerPayload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GetNaiveInfererNetworkRegret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -7696,18 +7463,18 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_GetTopicLastWorkerPayload_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_GetNaiveInfererNetworkRegret_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_GetTopicLastWorkerPayload_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GetNaiveInfererNetworkRegret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle("GET", pattern_Query_GetTopicLastReputerPayload_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + mux.Handle("GET", pattern_Query_GetOneOutInfererInfererNetworkRegret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) @@ -7716,14 +7483,74 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - resp, md, err := request_Query_GetTopicLastReputerPayload_0(rctx, inboundMarshaler, client, req, pathParams) + resp, md, err := request_Query_GetOneOutInfererInfererNetworkRegret_0(rctx, inboundMarshaler, client, req, pathParams) ctx = runtime.NewServerMetadataContext(ctx, md) if err != nil { runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) return } - forward_Query_GetTopicLastReputerPayload_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + forward_Query_GetOneOutInfererInfererNetworkRegret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetOneOutInfererForecasterNetworkRegret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_GetOneOutInfererForecasterNetworkRegret_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetOneOutInfererForecasterNetworkRegret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetOneOutForecasterInfererNetworkRegret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_GetOneOutForecasterInfererNetworkRegret_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetOneOutForecasterInfererNetworkRegret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Query_GetOneOutForecasterForecasterNetworkRegret_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Query_GetOneOutForecasterForecasterNetworkRegret_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Query_GetOneOutForecasterForecasterNetworkRegret_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) @@ -7731,147 +7558,145 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - - pattern_Query_GetNextTopicId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v1", "next_topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v2", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetTopic_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "topics", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetNextTopicId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v2", "next_topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetActiveTopics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v1", "active_topics"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetTopic_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "topics", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetWorkerLatestInferenceByTopicId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"emissions", "v1", "topics", "topic_id", "workers", "worker_address", "latest_inference"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetActiveTopics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v2", "active_topics"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetInferencesAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "inferences", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetWorkerLatestInferenceByTopicId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6}, []string{"emissions", "v2", "topics", "topic_id", "workers", "worker_address", "latest_inference"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetLatestTopicInferences_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "latest_inferences", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetInferencesAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "inferences", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetForecastsAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "forecasts", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetLatestTopicInferences_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "latest_inferences", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetNetworkLossBundleAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "network_loss", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetForecastsAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "forecasts", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetTotalStake_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v1", "total_stake"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetNetworkLossBundleAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "network_loss", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetReputerStakeInTopic_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "reputer_stake", "address", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetTotalStake_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v2", "total_stake"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetMultiReputerStakeInTopic_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "reputers_stakes", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetReputerStakeInTopic_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "reputer_stake", "address", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetStakeFromReputerInTopicInSelf_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "reputer_stake_self", "reputer_address", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetMultiReputerStakeInTopic_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "reputers_stakes", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetDelegateStakeInTopicInReputer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "reputer_delegate_stake", "reputer_address", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetStakeFromReputerInTopicInSelf_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "reputer_stake_self", "reputer_address", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetStakeFromDelegatorInTopicInReputer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"emissions", "v1", "delegate_stake", "delegator_address", "reputer_address", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetDelegateStakeInTopicInReputer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "reputer_delegate_stake", "reputer_address", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetStakeFromDelegatorInTopic_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "delegate_stake", "delegator_address", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetStakeFromDelegatorInTopicInReputer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"emissions", "v2", "delegate_stake", "delegator_address", "reputer_address", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetTopicStake_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "stake", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetStakeFromDelegatorInTopic_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "delegate_stake", "delegator_address", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetStakeRemovalsForBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "stake_removals", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetTopicStake_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "stake", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetDelegateStakeRemovalsForBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "delegate_stake_removals", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetStakeRemovalsUpUntilBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "stake_removals", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetStakeRemovalInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "stake_removal", "topic_id", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetDelegateStakeRemovalsUpUntilBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "delegate_stake_removals", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetDelegateStakeRemovalInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"emissions", "v1", "delegate_stake_removal", "topic_id", "delegator", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetStakeRemovalInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "stake_removal", "topic_id", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetWorkerNodeInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "worker", "libp2p_key"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetDelegateStakeRemovalInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"emissions", "v2", "delegate_stake_removal", "topic_id", "delegator", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetReputerNodeInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "reputer", "libp2p_key"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetWorkerNodeInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "worker", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetWorkerAddressByP2PKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "worker_address", "libp2p_key"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetReputerNodeInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "reputer", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetReputerAddressByP2PKey_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "reputer_address", "libp2p_key"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_IsWorkerRegisteredInTopicId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "worker_registered", "topic_id", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_IsWorkerRegisteredInTopicId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "worker_registered", "topic_id", "address"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_IsReputerRegisteredInTopicId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "reputer_registered", "topic_id", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_IsReputerRegisteredInTopicId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "reputer_registered", "topic_id", "address"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetNetworkInferencesAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6, 1, 0, 4, 1, 5, 7}, []string{"emissions", "v2", "network_inferences", "topic_id", "last_inference", "block_height_last_inference", "last_reward", "block_height_last_reward"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetNetworkInferencesAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5, 2, 6, 1, 0, 4, 1, 5, 7}, []string{"emissions", "v1", "network_inferences", "topic_id", "last_inference", "block_height_last_inference", "last_reward", "block_height_last_reward"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetLatestNetworkInference_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "network_inferences", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetLatestNetworkInference_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "network_inferences", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetLatestAvailableNetworkInference_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "network_inferences", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetLatestAvailableNetworkInference_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "network_inferences", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_IsWorkerNonceUnfulfilled_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "is_worker_nonce_unfulfilled", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_IsWorkerNonceUnfulfilled_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "is_worker_nonce_unfulfilled", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_IsReputerNonceUnfulfilled_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "is_reputer_nonce_unfulfilled", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_IsReputerNonceUnfulfilled_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "is_reputer_nonce_unfulfilled", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetUnfulfilledWorkerNonces_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "unfulfilled_worker_nonces", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetUnfulfilledWorkerNonces_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "unfulfilled_worker_nonces", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetUnfulfilledReputerNonces_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "unfulfilled_reputer_nonces", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetUnfulfilledReputerNonces_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "unfulfilled_reputer_nonces", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetInfererNetworkRegret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "inferer_network_regret", "topic_id", "actor_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetInfererNetworkRegret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "inferer_network_regret", "topic_id", "actor_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetForecasterNetworkRegret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "forecaster_network_regret", "topic_id", "worker"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetForecasterNetworkRegret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "forecaster_network_regret", "topic_id", "worker"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetOneInForecasterNetworkRegret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"emissions", "v2", "one_in_forecaster_network_regret", "topic_id", "forecaster", "inferer"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetOneInForecasterNetworkRegret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"emissions", "v1", "one_in_forecaster_network_regret", "topic_id", "forecaster", "inferer"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_IsWhitelistAdmin_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "whitelist_admin", "address"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetOneInForecasterSelfNetworkRegret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "one_in_forecaster_self_network_regret", "topic_id", "forecaster"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetTopicLastWorkerCommitInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "topic_last_commit", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_IsWhitelistAdmin_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "whitelist_admin", "address"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetTopicLastReputerCommitInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "topic_last_commit", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetTopicLastWorkerCommitInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "topic_last_commit", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetTopicRewardNonce_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "topic_reward_nonce", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetTopicLastReputerCommitInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "topic_last_commit", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetReputerLossBundlesAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "reputer_loss_bundles", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetTopicRewardNonce_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "topic_reward_nonce", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetStakeReputerAuthority_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "stake_reputer_authority", "topic_id", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetReputerLossBundlesAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "reputer_loss_bundles", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetDelegateStakePlacement_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"emissions", "v2", "delegate_stake_placement", "topic_id", "delegator", "target"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetStakeReputerAuthority_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "stake_reputer_authority", "topic_id", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetDelegateStakeUponReputer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "delegate_stake_upon_reputer", "topic_id", "target"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetDelegateStakePlacement_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"emissions", "v1", "delegate_stake_placement", "topic_id", "delegator", "target"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetDelegateRewardPerShare_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "delegate_reward_per_share", "topic_id", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetDelegateStakeUponReputer_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "delegate_stake_upon_reputer", "topic_id", "target"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetStakeRemovalForReputerAndTopicId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "stake_removal", "reputer", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetDelegateRewardPerShare_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "delegate_reward_per_share", "topic_id", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetDelegateStakeRemoval_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"emissions", "v2", "delegate_stake_removal", "block_height", "topic_id", "delegator", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetStakeRemovalForReputerAndTopicId_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "stake_removal", "reputer", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetPreviousTopicWeight_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "previous_topic_weight", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetDelegateStakeRemoval_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"emissions", "v1", "delegate_stake_removal", "block_height", "topic_id", "delegator", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_TopicExists_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "topic_exists", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetPreviousTopicWeight_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "previous_topic_weight", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_IsTopicActive_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "is_topic_active", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_TopicExists_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "topic_exists", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetTopicFeeRevenue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v2", "topic_fee_revenue", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_IsTopicActive_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "is_topic_active", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetRewardableTopics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v2", "rewardable_topics"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetTopicFeeRevenue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "topic_fee_revenue", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetLatestInfererScore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "latest_inferer_score", "topic_id", "inferer"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetChurnableTopics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v1", "churnable_topics"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetLatestForecasterScore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "latest_forecaster_score", "topic_id", "forecaster"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetRewardableTopics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v1", "rewardable_topics"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetLatestReputerScore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "latest_reputer_score", "topic_id", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetLatestInfererScore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "latest_inferer_score", "topic_id", "inferer"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetInferenceScoresUntilBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "inference_scores_until_block", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetLatestForecasterScore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "latest_forecaster_score", "topic_id", "forecaster"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetWorkerInferenceScoresAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "worker_inference_scores_at_block", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetLatestReputerScore_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "latest_reputer_score", "topic_id", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetForecastScoresUntilBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "forecast_scores_until_block", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetInferenceScoresUntilBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "inference_scores_until_block", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetWorkerForecastScoresAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "worker_forecast_scores_at_block", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetWorkerInferenceScoresAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "worker_inference_scores_at_block", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetReputersScoresAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "reputers_scores_at_block", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetForecastScoresUntilBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "forecast_scores_until_block", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetListeningCoefficient_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "listening_coefficient", "topic_id", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetWorkerForecastScoresAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "worker_forecast_scores_at_block", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetPreviousReputerRewardFraction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "previous_reputer_reward_fraction", "topic_id", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetReputersScoresAtBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "reputers_scores_at_block", "topic_id", "block_height"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetPreviousInferenceRewardFraction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "previous_inference_reward_fraction", "topic_id", "worker"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetListeningCoefficient_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "listening_coefficient", "topic_id", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetPreviousForecastRewardFraction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v2", "previous_forecast_reward_fraction", "topic_id", "worker"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetPreviousReputerRewardFraction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "previous_reputer_reward_fraction", "topic_id", "reputer"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetPreviousPercentageRewardToStakedReputers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v2", "previous_percentage_reward_to_staked_reputers"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetPreviousInferenceRewardFraction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "previous_inference_reward_fraction", "topic_id", "worker"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetTotalRewardToDistribute_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v2", "total_reward_to_distribute"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetPreviousForecastRewardFraction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"emissions", "v1", "previous_forecast_reward_fraction", "topic_id", "worker"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetNaiveInfererNetworkRegret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v2", "native_inferer_network_regret"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetPreviousPercentageRewardToStakedReputers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v1", "previous_percentage_reward_to_staked_reputers"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetOneOutInfererInfererNetworkRegret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v2", "one_out_inferer_inferer_network_regret"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetTotalRewardToDistribute_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v1", "total_reward_to_distribute"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetOneOutInfererForecasterNetworkRegret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v2", "one_out_inferer_forecaster_network_regret"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetTopicLastWorkerPayload_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "topic_last_worker_payload", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetOneOutForecasterInfererNetworkRegret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v2", "one_out_forecaster_inferer_network_regret"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_GetTopicLastReputerPayload_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"emissions", "v1", "topic_last_reputer_payload", "topic_id"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_GetOneOutForecasterForecasterNetworkRegret_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"emissions", "v2", "one_out_forecaster_forecaster_network_regret"}, "", runtime.AssumeColonVerbOpt(false))) ) var ( @@ -7909,9 +7734,9 @@ var ( forward_Query_GetTopicStake_0 = runtime.ForwardResponseMessage - forward_Query_GetStakeRemovalsForBlock_0 = runtime.ForwardResponseMessage + forward_Query_GetStakeRemovalsUpUntilBlock_0 = runtime.ForwardResponseMessage - forward_Query_GetDelegateStakeRemovalsForBlock_0 = runtime.ForwardResponseMessage + forward_Query_GetDelegateStakeRemovalsUpUntilBlock_0 = runtime.ForwardResponseMessage forward_Query_GetStakeRemovalInfo_0 = runtime.ForwardResponseMessage @@ -7921,10 +7746,6 @@ var ( forward_Query_GetReputerNodeInfo_0 = runtime.ForwardResponseMessage - forward_Query_GetWorkerAddressByP2PKey_0 = runtime.ForwardResponseMessage - - forward_Query_GetReputerAddressByP2PKey_0 = runtime.ForwardResponseMessage - forward_Query_IsWorkerRegisteredInTopicId_0 = runtime.ForwardResponseMessage forward_Query_IsReputerRegisteredInTopicId_0 = runtime.ForwardResponseMessage @@ -7949,8 +7770,6 @@ var ( forward_Query_GetOneInForecasterNetworkRegret_0 = runtime.ForwardResponseMessage - forward_Query_GetOneInForecasterSelfNetworkRegret_0 = runtime.ForwardResponseMessage - forward_Query_IsWhitelistAdmin_0 = runtime.ForwardResponseMessage forward_Query_GetTopicLastWorkerCommitInfo_0 = runtime.ForwardResponseMessage @@ -7981,8 +7800,6 @@ var ( forward_Query_GetTopicFeeRevenue_0 = runtime.ForwardResponseMessage - forward_Query_GetChurnableTopics_0 = runtime.ForwardResponseMessage - forward_Query_GetRewardableTopics_0 = runtime.ForwardResponseMessage forward_Query_GetLatestInfererScore_0 = runtime.ForwardResponseMessage @@ -8013,7 +7830,13 @@ var ( forward_Query_GetTotalRewardToDistribute_0 = runtime.ForwardResponseMessage - forward_Query_GetTopicLastWorkerPayload_0 = runtime.ForwardResponseMessage + forward_Query_GetNaiveInfererNetworkRegret_0 = runtime.ForwardResponseMessage + + forward_Query_GetOneOutInfererInfererNetworkRegret_0 = runtime.ForwardResponseMessage + + forward_Query_GetOneOutInfererForecasterNetworkRegret_0 = runtime.ForwardResponseMessage + + forward_Query_GetOneOutForecasterInfererNetworkRegret_0 = runtime.ForwardResponseMessage - forward_Query_GetTopicLastReputerPayload_0 = runtime.ForwardResponseMessage + forward_Query_GetOneOutForecasterForecasterNetworkRegret_0 = runtime.ForwardResponseMessage ) diff --git a/x/emissions/types/reputer.pb.go b/x/emissions/types/reputer.pb.go index 75b081ad4..9e54bb82e 100644 --- a/x/emissions/types/reputer.pb.go +++ b/x/emissions/types/reputer.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/reputer.proto +// source: emissions/v2/reputer.proto package types @@ -34,7 +34,7 @@ func (m *WorkerAttributedValue) Reset() { *m = WorkerAttributedValue{} } func (m *WorkerAttributedValue) String() string { return proto.CompactTextString(m) } func (*WorkerAttributedValue) ProtoMessage() {} func (*WorkerAttributedValue) Descriptor() ([]byte, []int) { - return fileDescriptor_87b9bd856742251e, []int{0} + return fileDescriptor_9aa84ed4ee9178a9, []int{0} } func (m *WorkerAttributedValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -79,7 +79,7 @@ func (m *WithheldWorkerAttributedValue) Reset() { *m = WithheldWorkerAtt func (m *WithheldWorkerAttributedValue) String() string { return proto.CompactTextString(m) } func (*WithheldWorkerAttributedValue) ProtoMessage() {} func (*WithheldWorkerAttributedValue) Descriptor() ([]byte, []int) { - return fileDescriptor_87b9bd856742251e, []int{1} + return fileDescriptor_9aa84ed4ee9178a9, []int{1} } func (m *WithheldWorkerAttributedValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -115,6 +115,58 @@ func (m *WithheldWorkerAttributedValue) GetWorker() string { return "" } +type OneOutInfererForecasterValues struct { + Forecaster string `protobuf:"bytes,3,opt,name=forecaster,proto3" json:"forecaster,omitempty"` + OneOutInfererValues []*WithheldWorkerAttributedValue `protobuf:"bytes,4,rep,name=one_out_inferer_values,json=oneOutInfererValues,proto3" json:"one_out_inferer_values,omitempty"` +} + +func (m *OneOutInfererForecasterValues) Reset() { *m = OneOutInfererForecasterValues{} } +func (m *OneOutInfererForecasterValues) String() string { return proto.CompactTextString(m) } +func (*OneOutInfererForecasterValues) ProtoMessage() {} +func (*OneOutInfererForecasterValues) Descriptor() ([]byte, []int) { + return fileDescriptor_9aa84ed4ee9178a9, []int{2} +} +func (m *OneOutInfererForecasterValues) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OneOutInfererForecasterValues) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_OneOutInfererForecasterValues.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OneOutInfererForecasterValues) XXX_Merge(src proto.Message) { + xxx_messageInfo_OneOutInfererForecasterValues.Merge(m, src) +} +func (m *OneOutInfererForecasterValues) XXX_Size() int { + return m.Size() +} +func (m *OneOutInfererForecasterValues) XXX_DiscardUnknown() { + xxx_messageInfo_OneOutInfererForecasterValues.DiscardUnknown(m) +} + +var xxx_messageInfo_OneOutInfererForecasterValues proto.InternalMessageInfo + +func (m *OneOutInfererForecasterValues) GetForecaster() string { + if m != nil { + return m.Forecaster + } + return "" +} + +func (m *OneOutInfererForecasterValues) GetOneOutInfererValues() []*WithheldWorkerAttributedValue { + if m != nil { + return m.OneOutInfererValues + } + return nil +} + // These losses and inferences are calculated per reputer or by the network // The `m`s in the comments below exist for when they're made by reputers, // but they may be absent implying that they were made by the network @@ -131,7 +183,6 @@ type ValueBundle struct { ForecasterValues []*WorkerAttributedValue `protobuf:"bytes,7,rep,name=forecaster_values,json=forecasterValues,proto3" json:"forecaster_values,omitempty"` // R^-_im || log10 L^-_im || I^-_i NaiveValue github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,8,opt,name=naive_value,json=naiveValue,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"naive_value"` - // R^-_ilm || log10 L^-_ilm || I^-_il where l = any j // Note: forecast-implied inferences are recomputed for each left-out // inference OneOutInfererValues []*WithheldWorkerAttributedValue `protobuf:"bytes,9,rep,name=one_out_inferer_values,json=oneOutInfererValues,proto3" json:"one_out_inferer_values,omitempty"` @@ -141,13 +192,16 @@ type ValueBundle struct { // aka one_in_forecaster_values because equivalent to using only one // forecast-implied inference OneInForecasterValues []*WorkerAttributedValue `protobuf:"bytes,11,rep,name=one_in_forecaster_values,json=oneInForecasterValues,proto3" json:"one_in_forecaster_values,omitempty"` + // R^-_ilm || log10 L^-_ilm || I^-_il where l = any j + // log10 L^-_j'ikm || I^-_j'ik + OneOutInfererForecasterValues []*OneOutInfererForecasterValues `protobuf:"bytes,12,rep,name=one_out_inferer_forecaster_values,json=oneOutInfererForecasterValues,proto3" json:"one_out_inferer_forecaster_values,omitempty"` } func (m *ValueBundle) Reset() { *m = ValueBundle{} } func (m *ValueBundle) String() string { return proto.CompactTextString(m) } func (*ValueBundle) ProtoMessage() {} func (*ValueBundle) Descriptor() ([]byte, []int) { - return fileDescriptor_87b9bd856742251e, []int{2} + return fileDescriptor_9aa84ed4ee9178a9, []int{3} } func (m *ValueBundle) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -239,6 +293,13 @@ func (m *ValueBundle) GetOneInForecasterValues() []*WorkerAttributedValue { return nil } +func (m *ValueBundle) GetOneOutInfererForecasterValues() []*OneOutInfererForecasterValues { + if m != nil { + return m.OneOutInfererForecasterValues + } + return nil +} + // For when the bundle is computed on a per-reputer basis (ie.. if there is an // index `m` in the above) type ReputerValueBundle struct { @@ -251,7 +312,7 @@ func (m *ReputerValueBundle) Reset() { *m = ReputerValueBundle{} } func (m *ReputerValueBundle) String() string { return proto.CompactTextString(m) } func (*ReputerValueBundle) ProtoMessage() {} func (*ReputerValueBundle) Descriptor() ([]byte, []int) { - return fileDescriptor_87b9bd856742251e, []int{3} + return fileDescriptor_9aa84ed4ee9178a9, []int{4} } func (m *ReputerValueBundle) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -309,7 +370,7 @@ func (m *ReputerValueBundles) Reset() { *m = ReputerValueBundles{} } func (m *ReputerValueBundles) String() string { return proto.CompactTextString(m) } func (*ReputerValueBundles) ProtoMessage() {} func (*ReputerValueBundles) Descriptor() ([]byte, []int) { - return fileDescriptor_87b9bd856742251e, []int{4} + return fileDescriptor_9aa84ed4ee9178a9, []int{5} } func (m *ReputerValueBundles) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -346,56 +407,60 @@ func (m *ReputerValueBundles) GetReputerValueBundles() []*ReputerValueBundle { } func init() { - proto.RegisterType((*WorkerAttributedValue)(nil), "emissions.v1.WorkerAttributedValue") - proto.RegisterType((*WithheldWorkerAttributedValue)(nil), "emissions.v1.WithheldWorkerAttributedValue") - proto.RegisterType((*ValueBundle)(nil), "emissions.v1.ValueBundle") - proto.RegisterType((*ReputerValueBundle)(nil), "emissions.v1.ReputerValueBundle") - proto.RegisterType((*ReputerValueBundles)(nil), "emissions.v1.ReputerValueBundles") -} - -func init() { proto.RegisterFile("emissions/v1/reputer.proto", fileDescriptor_87b9bd856742251e) } - -var fileDescriptor_87b9bd856742251e = []byte{ - // 613 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x54, 0x4d, 0x6f, 0xd3, 0x40, - 0x10, 0x8d, 0x69, 0x9b, 0x36, 0xe3, 0xb4, 0x02, 0x97, 0x56, 0x6e, 0x45, 0xdd, 0x50, 0x2e, 0x95, - 0x10, 0xb6, 0x5a, 0x0e, 0x20, 0xc4, 0x85, 0xaa, 0x42, 0x2a, 0x12, 0x1f, 0x5a, 0x01, 0x45, 0x08, - 0x61, 0xd6, 0xf6, 0x34, 0x59, 0x35, 0xd9, 0x0d, 0xeb, 0x75, 0x68, 0xef, 0x1c, 0x11, 0xe2, 0x27, - 0xf0, 0x4b, 0x38, 0xf7, 0xd8, 0x23, 0xe2, 0x50, 0xa1, 0xe6, 0xc2, 0xcf, 0x40, 0x5e, 0x3b, 0xc4, - 0xf9, 0x10, 0x0a, 0xea, 0x85, 0x9b, 0x67, 0x76, 0xe6, 0xbd, 0x99, 0xb7, 0x7e, 0x0b, 0xab, 0xd8, - 0x62, 0x71, 0xcc, 0x04, 0x8f, 0xbd, 0xce, 0x96, 0x27, 0xb1, 0x9d, 0x28, 0x94, 0x6e, 0x5b, 0x0a, - 0x25, 0xac, 0xea, 0x9f, 0x33, 0xb7, 0xb3, 0xb5, 0x7a, 0xb5, 0x2e, 0xea, 0x42, 0x1f, 0x78, 0xe9, - 0x57, 0x56, 0xb3, 0x6a, 0x0f, 0xf4, 0x73, 0xc1, 0x43, 0xcc, 0x4e, 0x36, 0x3e, 0x1a, 0xb0, 0xb4, - 0x2f, 0xe4, 0x21, 0xca, 0x07, 0x4a, 0x49, 0x16, 0x24, 0x0a, 0xa3, 0x97, 0xb4, 0x99, 0xa0, 0xb5, - 0x0c, 0xe5, 0x0f, 0xfa, 0xc0, 0x36, 0x6a, 0xc6, 0x66, 0x85, 0xe4, 0x91, 0xf5, 0x18, 0x66, 0x3a, - 0x69, 0x81, 0x7d, 0x29, 0x4d, 0xef, 0xdc, 0x39, 0x39, 0x5b, 0x2f, 0xfd, 0x38, 0x5b, 0xf7, 0xea, - 0x4c, 0x35, 0x92, 0xc0, 0x0d, 0x45, 0xcb, 0xa3, 0xcd, 0xa6, 0x90, 0xf4, 0x16, 0x47, 0x95, 0xf6, - 0xf4, 0xc2, 0xb0, 0x41, 0x19, 0xf7, 0x5a, 0x54, 0x35, 0xdc, 0x5d, 0x0c, 0x49, 0x86, 0x72, 0x6f, - 0xfa, 0xd7, 0xd7, 0x75, 0x63, 0xe3, 0x93, 0x01, 0x6b, 0xfb, 0x4c, 0x35, 0x1a, 0xd8, 0x8c, 0xfe, - 0x83, 0x71, 0xbe, 0x95, 0xc1, 0xd4, 0xb4, 0x3b, 0x09, 0x8f, 0x9a, 0x68, 0xad, 0xc0, 0x9c, 0x12, - 0x6d, 0x16, 0xfa, 0x2c, 0xd2, 0xf4, 0xd3, 0x64, 0x56, 0xc7, 0x7b, 0x91, 0xf5, 0x02, 0x96, 0xf2, - 0xfb, 0xf0, 0x25, 0xbe, 0x4f, 0x30, 0x56, 0xbe, 0xd6, 0x57, 0xcf, 0x63, 0x6e, 0x5f, 0x77, 0x8b, - 0xd7, 0xe3, 0x92, 0xac, 0x94, 0x64, 0x95, 0x4f, 0xd2, 0x42, 0xb2, 0x28, 0x47, 0x93, 0x96, 0x0d, - 0xb3, 0x79, 0xda, 0x9e, 0xd2, 0xfb, 0xf6, 0x42, 0x6b, 0x0d, 0x00, 0x8f, 0x94, 0xa4, 0x7e, 0x44, - 0x15, 0xb5, 0xa7, 0x6b, 0xc6, 0x66, 0x95, 0x54, 0x74, 0x66, 0x97, 0x2a, 0x6a, 0xbd, 0x85, 0x85, - 0x50, 0xb4, 0x02, 0xc6, 0x31, 0xf2, 0x33, 0x61, 0x66, 0x2e, 0x26, 0xcc, 0x7c, 0x0f, 0x2e, 0xbb, - 0x87, 0x47, 0xb0, 0xc0, 0xf8, 0x01, 0x4a, 0x94, 0x19, 0x7c, 0x6c, 0x97, 0x6b, 0x53, 0x9b, 0xe6, - 0xf6, 0x8d, 0xc1, 0x45, 0xc7, 0x5e, 0x22, 0x99, 0xcf, 0x5b, 0x75, 0x14, 0x5b, 0xcf, 0xe0, 0xca, - 0x81, 0x90, 0x18, 0xd2, 0x58, 0xf5, 0xe1, 0x66, 0x27, 0x87, 0xbb, 0xdc, 0xef, 0xce, 0x11, 0x5f, - 0x81, 0xc9, 0x29, 0xeb, 0x60, 0xbe, 0xfa, 0xdc, 0xc5, 0x56, 0x07, 0x8d, 0x95, 0xed, 0xfd, 0x0e, - 0x96, 0x05, 0x47, 0x5f, 0x24, 0xca, 0x1f, 0xda, 0xbf, 0xa2, 0x07, 0xbe, 0x39, 0x34, 0xf0, 0xdf, - 0x7e, 0x66, 0xb2, 0x28, 0x38, 0x3e, 0x4d, 0xd4, 0xde, 0x80, 0x1a, 0x07, 0xb0, 0xd2, 0x63, 0x18, - 0x55, 0x05, 0xfe, 0x9d, 0x64, 0x39, 0x23, 0x79, 0x38, 0xac, 0xd1, 0x1b, 0xb0, 0x53, 0x1e, 0xc6, - 0xc7, 0xd0, 0x98, 0x93, 0x8b, 0xbf, 0x24, 0x38, 0xee, 0xf1, 0x61, 0xf4, 0xdc, 0x40, 0x9f, 0x0d, - 0xb0, 0xf2, 0x7f, 0xbd, 0xe8, 0xa3, 0xfb, 0x50, 0xd5, 0x44, 0x7e, 0xa0, 0x63, 0xed, 0x25, 0x73, - 0x7b, 0x65, 0x90, 0xae, 0xd0, 0x40, 0xcc, 0x4e, 0xa1, 0xfb, 0x1a, 0x54, 0x62, 0x56, 0xe7, 0x54, - 0x25, 0x32, 0xb3, 0x57, 0x95, 0xf4, 0x13, 0xe9, 0x03, 0xd1, 0x4e, 0x82, 0x43, 0x3c, 0xce, 0x0d, - 0x93, 0x47, 0xf9, 0x40, 0x87, 0xb0, 0x38, 0x3a, 0x4f, 0x6c, 0x3d, 0xef, 0xbb, 0xb7, 0x38, 0x58, - 0x6c, 0x1b, 0x5a, 0x88, 0xda, 0x58, 0xf7, 0x16, 0x07, 0xec, 0x99, 0xb7, 0x88, 0xba, 0x43, 0x4e, - 0xce, 0x1d, 0xe3, 0xf4, 0xdc, 0x31, 0x7e, 0x9e, 0x3b, 0xc6, 0x97, 0xae, 0x53, 0x3a, 0xed, 0x3a, - 0xa5, 0xef, 0x5d, 0xa7, 0xf4, 0xfa, 0xee, 0x84, 0xbf, 0xe0, 0x91, 0xd7, 0x7f, 0xb1, 0xd5, 0x71, - 0x1b, 0xe3, 0xa0, 0xac, 0xdf, 0xeb, 0xdb, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf3, 0xdb, 0x50, - 0x71, 0x0b, 0x06, 0x00, 0x00, + proto.RegisterType((*WorkerAttributedValue)(nil), "emissions.v2.WorkerAttributedValue") + proto.RegisterType((*WithheldWorkerAttributedValue)(nil), "emissions.v2.WithheldWorkerAttributedValue") + proto.RegisterType((*OneOutInfererForecasterValues)(nil), "emissions.v2.OneOutInfererForecasterValues") + proto.RegisterType((*ValueBundle)(nil), "emissions.v2.ValueBundle") + proto.RegisterType((*ReputerValueBundle)(nil), "emissions.v2.ReputerValueBundle") + proto.RegisterType((*ReputerValueBundles)(nil), "emissions.v2.ReputerValueBundles") +} + +func init() { proto.RegisterFile("emissions/v2/reputer.proto", fileDescriptor_9aa84ed4ee9178a9) } + +var fileDescriptor_9aa84ed4ee9178a9 = []byte{ + // 666 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0xc1, 0x6e, 0xd3, 0x4c, + 0x10, 0x8e, 0xff, 0xa6, 0x4d, 0x33, 0x4e, 0xab, 0x9f, 0x2d, 0xad, 0xdc, 0x8a, 0xb8, 0x69, 0xb9, + 0x54, 0x42, 0xc4, 0x52, 0x38, 0x80, 0x10, 0x17, 0xaa, 0x0a, 0xa9, 0x48, 0x50, 0x64, 0x01, 0x45, + 0x08, 0x61, 0x36, 0xf6, 0x24, 0x59, 0x35, 0xd9, 0x0d, 0xeb, 0x75, 0x68, 0xef, 0x1c, 0x11, 0xe2, + 0x11, 0xb8, 0xf1, 0x04, 0xbc, 0x43, 0x8f, 0x3d, 0x22, 0x0e, 0x15, 0x6a, 0x2f, 0x3c, 0x06, 0xf2, + 0xda, 0x69, 0xdc, 0x24, 0x54, 0x41, 0xe5, 0xc0, 0xcd, 0x33, 0x3b, 0x3b, 0xdf, 0x37, 0xdf, 0xce, + 0x8c, 0x61, 0x05, 0x3b, 0x2c, 0x0c, 0x99, 0xe0, 0xa1, 0xd3, 0xab, 0x39, 0x12, 0xbb, 0x91, 0x42, + 0x59, 0xed, 0x4a, 0xa1, 0x04, 0x29, 0x9d, 0x9d, 0x55, 0x7b, 0xb5, 0x95, 0xab, 0x4d, 0xd1, 0x14, + 0xfa, 0xc0, 0x89, 0xbf, 0x92, 0x98, 0x15, 0xeb, 0xdc, 0x7d, 0x2e, 0xb8, 0x8f, 0xc9, 0xc9, 0xfa, + 0x7b, 0x03, 0x16, 0x77, 0x85, 0xdc, 0x43, 0x79, 0x5f, 0x29, 0xc9, 0xea, 0x91, 0xc2, 0xe0, 0x39, + 0x6d, 0x47, 0x48, 0x96, 0x60, 0xe6, 0x9d, 0x3e, 0xb0, 0x8c, 0x8a, 0xb1, 0x51, 0x74, 0x53, 0x8b, + 0x3c, 0x82, 0xe9, 0x5e, 0x1c, 0x60, 0xfd, 0x17, 0xbb, 0x37, 0x6f, 0x1f, 0x1e, 0xaf, 0xe6, 0xbe, + 0x1f, 0xaf, 0x3a, 0x4d, 0xa6, 0x5a, 0x51, 0xbd, 0xea, 0x8b, 0x8e, 0x43, 0xdb, 0x6d, 0x21, 0xe9, + 0x4d, 0x8e, 0x2a, 0xbe, 0xd3, 0x37, 0xfd, 0x16, 0x65, 0xdc, 0xe9, 0x50, 0xd5, 0xaa, 0x6e, 0xa1, + 0xef, 0x26, 0x59, 0xee, 0xe6, 0x7f, 0x7e, 0x5e, 0x35, 0xd6, 0x3f, 0x18, 0x50, 0xde, 0x65, 0xaa, + 0xd5, 0xc2, 0x76, 0xf0, 0x0f, 0xd0, 0xf9, 0x62, 0x40, 0x79, 0x87, 0xe3, 0x4e, 0xa4, 0xb6, 0x79, + 0x03, 0x25, 0xca, 0x07, 0x42, 0xa2, 0x4f, 0x43, 0x85, 0x52, 0xb3, 0x09, 0x89, 0x0d, 0xd0, 0x38, + 0xf3, 0x59, 0x53, 0x9a, 0x52, 0xc6, 0x43, 0xde, 0xc0, 0x92, 0xe0, 0xe8, 0x89, 0x48, 0x79, 0x2c, + 0x49, 0xe1, 0x69, 0x80, 0xd0, 0xca, 0x57, 0xa6, 0x36, 0xcc, 0xda, 0x8d, 0x6a, 0xf6, 0xd9, 0xaa, + 0x17, 0xd6, 0xee, 0x2e, 0x88, 0x2c, 0x97, 0x84, 0x41, 0xca, 0xf4, 0x6b, 0x01, 0x4c, 0xed, 0xd8, + 0x8c, 0x78, 0xd0, 0x46, 0xb2, 0x0c, 0xb3, 0x4a, 0x74, 0x99, 0xef, 0xb1, 0x40, 0x0b, 0x95, 0x77, + 0x0b, 0xda, 0xde, 0x0e, 0xc8, 0x33, 0x58, 0x4c, 0x3b, 0xc7, 0x93, 0xf8, 0x36, 0xc2, 0x50, 0x79, + 0xba, 0x13, 0xb4, 0x72, 0x66, 0x6d, 0xed, 0x3c, 0x23, 0x37, 0x09, 0x75, 0x93, 0xc8, 0xc7, 0x71, + 0xa0, 0xbb, 0x20, 0x47, 0x9d, 0xc4, 0x82, 0x42, 0xea, 0x4e, 0x65, 0xe8, 0x9b, 0xa4, 0x0c, 0x80, + 0xfb, 0x4a, 0x52, 0x2f, 0xa0, 0x8a, 0x5a, 0xf9, 0x8a, 0xb1, 0x51, 0x72, 0x8b, 0xda, 0xb3, 0x45, + 0x15, 0x25, 0xaf, 0x61, 0xde, 0x17, 0x9d, 0x3a, 0xe3, 0x18, 0x24, 0xda, 0x58, 0xd3, 0x97, 0x7b, + 0xc2, 0xb9, 0x7e, 0xba, 0xa4, 0x63, 0x1e, 0xc2, 0xfc, 0x90, 0xf4, 0x33, 0x5a, 0xfa, 0xeb, 0x43, + 0xd2, 0x8f, 0x95, 0x7c, 0x8e, 0x65, 0xc5, 0x26, 0x4f, 0xe0, 0xca, 0xe0, 0x71, 0xfb, 0xe9, 0x0a, + 0x93, 0xa7, 0xfb, 0xbf, 0x31, 0xdc, 0x40, 0x2f, 0xc0, 0xe4, 0x94, 0xf5, 0x30, 0x2d, 0x7d, 0xf6, + 0x72, 0xa5, 0x83, 0xce, 0x95, 0xd4, 0xfd, 0xfb, 0xd6, 0x2b, 0xfe, 0x9d, 0xd6, 0x23, 0x0d, 0x58, + 0xee, 0x23, 0x8c, 0xaa, 0x02, 0x7f, 0x0e, 0xb2, 0x94, 0x80, 0x8c, 0x0c, 0xd9, 0x2b, 0xb0, 0x62, + 0x1c, 0xc6, 0xc7, 0xc0, 0x98, 0x93, 0x8b, 0xbf, 0x28, 0x38, 0x6e, 0xf3, 0x91, 0xec, 0x11, 0xac, + 0x0d, 0xeb, 0x34, 0x0a, 0x53, 0x1a, 0x57, 0xcd, 0x85, 0xab, 0xc1, 0x2d, 0x8b, 0x8b, 0x8e, 0xd3, + 0xb9, 0xfd, 0x68, 0x00, 0x49, 0x47, 0x2c, 0x3b, 0xbe, 0xf7, 0xa0, 0xa4, 0x81, 0xbd, 0xba, 0xb6, + 0xf5, 0x08, 0x9b, 0xb5, 0xe5, 0xf3, 0xf0, 0x99, 0x0b, 0xae, 0xd9, 0xcb, 0xdc, 0xbe, 0x06, 0xc5, + 0x90, 0x35, 0x39, 0x55, 0x91, 0x4c, 0xa6, 0xba, 0xe4, 0x0e, 0x1c, 0xf1, 0x06, 0xed, 0x46, 0xf5, + 0x3d, 0x3c, 0x48, 0xe7, 0x34, 0xb5, 0x52, 0x42, 0x7b, 0xb0, 0x30, 0xca, 0x27, 0x24, 0x4f, 0x07, + 0x4b, 0x23, 0x4b, 0x2c, 0xb4, 0x0c, 0x2d, 0x4c, 0x65, 0xec, 0xd2, 0xc8, 0x12, 0xec, 0xef, 0x8c, + 0x6c, 0xd6, 0x4d, 0xf7, 0xf0, 0xc4, 0x36, 0x8e, 0x4e, 0x6c, 0xe3, 0xc7, 0x89, 0x6d, 0x7c, 0x3a, + 0xb5, 0x73, 0x47, 0xa7, 0x76, 0xee, 0xdb, 0xa9, 0x9d, 0x7b, 0x79, 0x67, 0xc2, 0xce, 0xdf, 0x77, + 0x06, 0xbf, 0x34, 0x75, 0xd0, 0xc5, 0xb0, 0x3e, 0xa3, 0x7f, 0x68, 0xb7, 0x7e, 0x05, 0x00, 0x00, + 0xff, 0xff, 0x78, 0x7a, 0x3c, 0xba, 0x2c, 0x07, 0x00, 0x00, } func (this *WorkerAttributedValue) Equal(that interface{}) bool { @@ -452,6 +517,38 @@ func (this *WithheldWorkerAttributedValue) Equal(that interface{}) bool { } return true } +func (this *OneOutInfererForecasterValues) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*OneOutInfererForecasterValues) + if !ok { + that2, ok := that.(OneOutInfererForecasterValues) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if this.Forecaster != that1.Forecaster { + return false + } + if len(this.OneOutInfererValues) != len(that1.OneOutInfererValues) { + return false + } + for i := range this.OneOutInfererValues { + if !this.OneOutInfererValues[i].Equal(that1.OneOutInfererValues[i]) { + return false + } + } + return true +} func (this *ValueBundle) Equal(that interface{}) bool { if that == nil { return this == nil @@ -529,6 +626,14 @@ func (this *ValueBundle) Equal(that interface{}) bool { return false } } + if len(this.OneOutInfererForecasterValues) != len(that1.OneOutInfererForecasterValues) { + return false + } + for i := range this.OneOutInfererForecasterValues { + if !this.OneOutInfererForecasterValues[i].Equal(that1.OneOutInfererForecasterValues[i]) { + return false + } + } return true } func (this *ReputerValueBundle) Equal(that interface{}) bool { @@ -641,6 +746,50 @@ func (m *WithheldWorkerAttributedValue) MarshalToSizedBuffer(dAtA []byte) (int, return len(dAtA) - i, nil } +func (m *OneOutInfererForecasterValues) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OneOutInfererForecasterValues) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OneOutInfererForecasterValues) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.OneOutInfererValues) > 0 { + for iNdEx := len(m.OneOutInfererValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OneOutInfererValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Forecaster) > 0 { + i -= len(m.Forecaster) + copy(dAtA[i:], m.Forecaster) + i = encodeVarintReputer(dAtA, i, uint64(len(m.Forecaster))) + i-- + dAtA[i] = 0x1a + } + return len(dAtA) - i, nil +} + func (m *ValueBundle) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -661,6 +810,20 @@ func (m *ValueBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.OneOutInfererForecasterValues) > 0 { + for iNdEx := len(m.OneOutInfererForecasterValues) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.OneOutInfererForecasterValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintReputer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + } if len(m.OneInForecasterValues) > 0 { for iNdEx := len(m.OneInForecasterValues) - 1; iNdEx >= 0; iNdEx-- { { @@ -912,6 +1075,25 @@ func (m *WithheldWorkerAttributedValue) Size() (n int) { return n } +func (m *OneOutInfererForecasterValues) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Forecaster) + if l > 0 { + n += 1 + l + sovReputer(uint64(l)) + } + if len(m.OneOutInfererValues) > 0 { + for _, e := range m.OneOutInfererValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } + return n +} + func (m *ValueBundle) Size() (n int) { if m == nil { return 0 @@ -967,6 +1149,12 @@ func (m *ValueBundle) Size() (n int) { n += 1 + l + sovReputer(uint64(l)) } } + if len(m.OneOutInfererForecasterValues) > 0 { + for _, e := range m.OneOutInfererForecasterValues { + l = e.Size() + n += 1 + l + sovReputer(uint64(l)) + } + } return n } @@ -1244,6 +1432,122 @@ func (m *WithheldWorkerAttributedValue) Unmarshal(dAtA []byte) error { } return nil } +func (m *OneOutInfererForecasterValues) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: OneOutInfererForecasterValues: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: OneOutInfererForecasterValues: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Forecaster", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Forecaster = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneOutInfererValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneOutInfererValues = append(m.OneOutInfererValues, &WithheldWorkerAttributedValue{}) + if err := m.OneOutInfererValues[len(m.OneOutInfererValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipReputer(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthReputer + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *ValueBundle) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -1632,6 +1936,40 @@ func (m *ValueBundle) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneOutInfererForecasterValues", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReputer + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReputer + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthReputer + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OneOutInfererForecasterValues = append(m.OneOutInfererForecasterValues, &OneOutInfererForecasterValues{}) + if err := m.OneOutInfererForecasterValues[len(m.OneOutInfererForecasterValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipReputer(dAtA[iNdEx:]) diff --git a/x/emissions/types/rewards.go b/x/emissions/types/rewards.go index 97cebbbdb..e8cfb52b3 100644 --- a/x/emissions/types/rewards.go +++ b/x/emissions/types/rewards.go @@ -5,9 +5,9 @@ import alloraMath "github.com/allora-network/allora-chain/math" type TaskRewardType string const ( - ReputerAndDelegatorRewardType TaskRewardType = "ReputerAndDelegator" // iota resets to 0 for the first constant in the block. - WorkerInferenceRewardType = "WorkerInference" - WorkerForecastRewardType = "WorkerForecast" + ReputerAndDelegatorRewardType TaskRewardType = "ReputerAndDelegator" + WorkerInferenceRewardType TaskRewardType = "WorkerInference" + WorkerForecastRewardType TaskRewardType = "WorkerForecast" ) type TaskReward struct { diff --git a/x/emissions/types/score.pb.go b/x/emissions/types/score.pb.go index 18c2bc4af..d9ad3b472 100644 --- a/x/emissions/types/score.pb.go +++ b/x/emissions/types/score.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/score.proto +// source: emissions/v2/score.proto package types @@ -37,7 +37,7 @@ func (m *Score) Reset() { *m = Score{} } func (m *Score) String() string { return proto.CompactTextString(m) } func (*Score) ProtoMessage() {} func (*Score) Descriptor() ([]byte, []int) { - return fileDescriptor_a1d990aa018f442f, []int{0} + return fileDescriptor_feb35a98ce102e6e, []int{0} } func (m *Score) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -95,7 +95,7 @@ func (m *Scores) Reset() { *m = Scores{} } func (m *Scores) String() string { return proto.CompactTextString(m) } func (*Scores) ProtoMessage() {} func (*Scores) Descriptor() ([]byte, []int) { - return fileDescriptor_a1d990aa018f442f, []int{1} + return fileDescriptor_feb35a98ce102e6e, []int{1} } func (m *Scores) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -132,34 +132,34 @@ func (m *Scores) GetScores() []*Score { } func init() { - proto.RegisterType((*Score)(nil), "emissions.v1.Score") - proto.RegisterType((*Scores)(nil), "emissions.v1.Scores") + proto.RegisterType((*Score)(nil), "emissions.v2.Score") + proto.RegisterType((*Scores)(nil), "emissions.v2.Scores") } -func init() { proto.RegisterFile("emissions/v1/score.proto", fileDescriptor_a1d990aa018f442f) } +func init() { proto.RegisterFile("emissions/v2/score.proto", fileDescriptor_feb35a98ce102e6e) } -var fileDescriptor_a1d990aa018f442f = []byte{ - // 313 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x3f, 0x4e, 0xc3, 0x30, - 0x14, 0x87, 0x63, 0xfa, 0x0f, 0xdc, 0x2e, 0x04, 0x06, 0xb7, 0x43, 0x1a, 0x3a, 0x45, 0x42, 0xd8, - 0x2a, 0x08, 0xc1, 0x5c, 0x31, 0xc0, 0xc0, 0x62, 0x36, 0x96, 0xca, 0x75, 0xac, 0xc4, 0x6a, 0x93, - 0x57, 0xc5, 0xa6, 0xc0, 0x2d, 0x38, 0x09, 0xe7, 0xe8, 0xd8, 0x11, 0x31, 0x54, 0xa8, 0xbd, 0x08, - 0xaa, 0xd3, 0x02, 0x23, 0x8b, 0xe5, 0xdf, 0xf7, 0x3e, 0xd9, 0xcf, 0xcf, 0x98, 0xa8, 0x4c, 0x1b, - 0xa3, 0x21, 0x37, 0x6c, 0xd6, 0x67, 0x46, 0x42, 0xa1, 0xe8, 0xb4, 0x00, 0x0b, 0x7e, 0xeb, 0xa7, - 0x42, 0x67, 0xfd, 0x4e, 0x5b, 0x82, 0xc9, 0xc0, 0x0c, 0x5d, 0x8d, 0x95, 0xa1, 0x14, 0x3b, 0x87, - 0x22, 0xd3, 0x39, 0x30, 0xb7, 0x6e, 0xd1, 0x71, 0x02, 0x09, 0x94, 0xea, 0x66, 0x57, 0xd2, 0xde, - 0x3b, 0xc2, 0xb5, 0x87, 0xcd, 0x0d, 0x7e, 0x1b, 0xef, 0x5b, 0x98, 0x6a, 0x39, 0xd4, 0x31, 0x41, - 0x21, 0x8a, 0xaa, 0xbc, 0xe1, 0xf2, 0x5d, 0xec, 0x9f, 0xe0, 0xd6, 0x68, 0x02, 0x72, 0x3c, 0x4c, - 0x95, 0x4e, 0x52, 0x4b, 0xf6, 0x42, 0x14, 0x55, 0x78, 0xd3, 0xb1, 0x5b, 0x87, 0x7c, 0x82, 0x1b, - 0x22, 0x8e, 0x0b, 0x65, 0x0c, 0xa9, 0x84, 0x28, 0x3a, 0xe0, 0xbb, 0xe8, 0xdf, 0xe3, 0x9a, 0x7b, - 0x02, 0xa9, 0x6e, 0xf8, 0xe0, 0x6a, 0xbe, 0xec, 0x7a, 0x9f, 0xcb, 0x2e, 0x4b, 0xb4, 0x4d, 0x9f, - 0x46, 0x54, 0x42, 0xc6, 0xc4, 0x64, 0x02, 0x85, 0x38, 0xcb, 0x95, 0x7d, 0x86, 0x62, 0xbc, 0x8b, - 0x32, 0x15, 0x3a, 0x67, 0x99, 0xb0, 0x29, 0xbd, 0x51, 0x92, 0x97, 0xa7, 0xf4, 0x2e, 0x71, 0xdd, - 0xf5, 0x6b, 0xfc, 0x53, 0x5c, 0x77, 0xc8, 0x10, 0x14, 0x56, 0xa2, 0xe6, 0xf9, 0x11, 0xfd, 0x3b, - 0x1d, 0xea, 0x2c, 0xbe, 0x55, 0x06, 0x7c, 0xbe, 0x0a, 0xd0, 0x62, 0x15, 0xa0, 0xaf, 0x55, 0x80, - 0xde, 0xd6, 0x81, 0xb7, 0x58, 0x07, 0xde, 0xc7, 0x3a, 0xf0, 0x1e, 0xaf, 0xff, 0xd9, 0xc8, 0x0b, - 0xfb, 0xfd, 0x16, 0xfb, 0x3a, 0x55, 0x66, 0x54, 0x77, 0x23, 0xbc, 0xf8, 0x0e, 0x00, 0x00, 0xff, - 0xff, 0x2b, 0x0b, 0x1f, 0x40, 0xb0, 0x01, 0x00, 0x00, +var fileDescriptor_feb35a98ce102e6e = []byte{ + // 314 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0xbf, 0x4e, 0xeb, 0x30, + 0x14, 0x87, 0xe3, 0xdb, 0x7f, 0x17, 0xb7, 0x0b, 0x81, 0xc1, 0xed, 0x90, 0x86, 0x4e, 0x91, 0x10, + 0xb6, 0x54, 0x84, 0x60, 0xae, 0x18, 0x60, 0x60, 0x31, 0x1b, 0x4b, 0xe5, 0x3a, 0x56, 0x62, 0xb5, + 0xc9, 0xa9, 0x62, 0x53, 0xe0, 0x2d, 0x78, 0x12, 0x9e, 0xa3, 0x63, 0x47, 0xc4, 0x50, 0xa1, 0xf6, + 0x45, 0x50, 0x9c, 0x16, 0x18, 0x59, 0x2c, 0xff, 0xbe, 0xf3, 0xc9, 0x3e, 0x3e, 0xc6, 0x44, 0x65, + 0xda, 0x18, 0x0d, 0xb9, 0x61, 0x8b, 0x21, 0x33, 0x12, 0x0a, 0x45, 0xe7, 0x05, 0x58, 0xf0, 0x3b, + 0xdf, 0x15, 0xba, 0x18, 0xf6, 0xba, 0x12, 0x4c, 0x06, 0x66, 0xec, 0x6a, 0xac, 0x0a, 0x95, 0xd8, + 0x3b, 0x14, 0x99, 0xce, 0x81, 0xb9, 0x75, 0x87, 0x8e, 0x13, 0x48, 0xa0, 0x52, 0xcb, 0x5d, 0x45, + 0x07, 0x6f, 0x08, 0x37, 0xee, 0xcb, 0x1b, 0xfc, 0x2e, 0xfe, 0x6f, 0x61, 0xae, 0xe5, 0x58, 0xc7, + 0x04, 0x85, 0x28, 0xaa, 0xf3, 0x96, 0xcb, 0xb7, 0xb1, 0x7f, 0x82, 0x3b, 0x93, 0x19, 0xc8, 0xe9, + 0x38, 0x55, 0x3a, 0x49, 0x2d, 0xf9, 0x17, 0xa2, 0xa8, 0xc6, 0xdb, 0x8e, 0xdd, 0x38, 0xe4, 0x13, + 0xdc, 0x12, 0x71, 0x5c, 0x28, 0x63, 0x48, 0x2d, 0x44, 0xd1, 0x01, 0xdf, 0x47, 0xff, 0x0e, 0x37, + 0xdc, 0x13, 0x48, 0xbd, 0xe4, 0xa3, 0xcb, 0xe5, 0xba, 0xef, 0x7d, 0xac, 0xfb, 0x2c, 0xd1, 0x36, + 0x7d, 0x9c, 0x50, 0x09, 0x19, 0x13, 0xb3, 0x19, 0x14, 0xe2, 0x2c, 0x57, 0xf6, 0x09, 0x8a, 0xe9, + 0x3e, 0xca, 0x54, 0xe8, 0x9c, 0x65, 0xc2, 0xa6, 0xf4, 0x5a, 0x49, 0x5e, 0x9d, 0x32, 0xb8, 0xc0, + 0x4d, 0xd7, 0xaf, 0xf1, 0x4f, 0x71, 0xd3, 0x21, 0x43, 0x50, 0x58, 0x8b, 0xda, 0xc3, 0x23, 0xfa, + 0x7b, 0x3a, 0xd4, 0x59, 0x7c, 0xa7, 0x8c, 0xf8, 0x72, 0x13, 0xa0, 0xd5, 0x26, 0x40, 0x9f, 0x9b, + 0x00, 0xbd, 0x6e, 0x03, 0x6f, 0xb5, 0x0d, 0xbc, 0xf7, 0x6d, 0xe0, 0x3d, 0x5c, 0xfd, 0xb1, 0x91, + 0x67, 0xf6, 0xf3, 0x2d, 0xf6, 0x65, 0xae, 0xcc, 0xa4, 0xe9, 0x46, 0x78, 0xfe, 0x15, 0x00, 0x00, + 0xff, 0xff, 0x65, 0xb5, 0xa8, 0x9e, 0xb0, 0x01, 0x00, 0x00, } func (m *Score) Marshal() (dAtA []byte, err error) { diff --git a/x/emissions/types/stake.pb.go b/x/emissions/types/stake.pb.go index c4150234f..1f1b33cc5 100644 --- a/x/emissions/types/stake.pb.go +++ b/x/emissions/types/stake.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/stake.proto +// source: emissions/v2/stake.proto package types @@ -41,7 +41,7 @@ func (m *StakePlacement) Reset() { *m = StakePlacement{} } func (m *StakePlacement) String() string { return proto.CompactTextString(m) } func (*StakePlacement) ProtoMessage() {} func (*StakePlacement) Descriptor() ([]byte, []int) { - return fileDescriptor_f03692b073d250c3, []int{0} + return fileDescriptor_0eb1a26e1b528236, []int{0} } func (m *StakePlacement) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -106,7 +106,7 @@ func (m *DelegateStakePlacement) Reset() { *m = DelegateStakePlacement{} func (m *DelegateStakePlacement) String() string { return proto.CompactTextString(m) } func (*DelegateStakePlacement) ProtoMessage() {} func (*DelegateStakePlacement) Descriptor() ([]byte, []int) { - return fileDescriptor_f03692b073d250c3, []int{1} + return fileDescriptor_0eb1a26e1b528236, []int{1} } func (m *DelegateStakePlacement) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -174,7 +174,7 @@ func (m *StakeInfo) Reset() { *m = StakeInfo{} } func (m *StakeInfo) String() string { return proto.CompactTextString(m) } func (*StakeInfo) ProtoMessage() {} func (*StakeInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_f03692b073d250c3, []int{2} + return fileDescriptor_0eb1a26e1b528236, []int{2} } func (m *StakeInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -230,7 +230,7 @@ func (m *StakeRemovalInfo) Reset() { *m = StakeRemovalInfo{} } func (m *StakeRemovalInfo) String() string { return proto.CompactTextString(m) } func (*StakeRemovalInfo) ProtoMessage() {} func (*StakeRemovalInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_f03692b073d250c3, []int{3} + return fileDescriptor_0eb1a26e1b528236, []int{3} } func (m *StakeRemovalInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -301,7 +301,7 @@ func (m *DelegateStakeRemovalInfo) Reset() { *m = DelegateStakeRemovalIn func (m *DelegateStakeRemovalInfo) String() string { return proto.CompactTextString(m) } func (*DelegateStakeRemovalInfo) ProtoMessage() {} func (*DelegateStakeRemovalInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_f03692b073d250c3, []int{4} + return fileDescriptor_0eb1a26e1b528236, []int{4} } func (m *DelegateStakeRemovalInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -374,7 +374,7 @@ func (m *DelegatorInfo) Reset() { *m = DelegatorInfo{} } func (m *DelegatorInfo) String() string { return proto.CompactTextString(m) } func (*DelegatorInfo) ProtoMessage() {} func (*DelegatorInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_f03692b073d250c3, []int{5} + return fileDescriptor_0eb1a26e1b528236, []int{5} } func (m *DelegatorInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -404,49 +404,49 @@ func (m *DelegatorInfo) XXX_DiscardUnknown() { var xxx_messageInfo_DelegatorInfo proto.InternalMessageInfo func init() { - proto.RegisterType((*StakePlacement)(nil), "emissions.v1.StakePlacement") - proto.RegisterType((*DelegateStakePlacement)(nil), "emissions.v1.DelegateStakePlacement") - proto.RegisterType((*StakeInfo)(nil), "emissions.v1.StakeInfo") - proto.RegisterType((*StakeRemovalInfo)(nil), "emissions.v1.StakeRemovalInfo") - proto.RegisterType((*DelegateStakeRemovalInfo)(nil), "emissions.v1.DelegateStakeRemovalInfo") - proto.RegisterType((*DelegatorInfo)(nil), "emissions.v1.DelegatorInfo") -} - -func init() { proto.RegisterFile("emissions/v1/stake.proto", fileDescriptor_f03692b073d250c3) } - -var fileDescriptor_f03692b073d250c3 = []byte{ - // 495 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x94, 0xbf, 0x6f, 0xd3, 0x40, - 0x14, 0xc7, 0x73, 0x49, 0x9b, 0x92, 0xe3, 0x87, 0xc0, 0x10, 0x70, 0x2b, 0xe4, 0x46, 0x99, 0x22, - 0xa4, 0xda, 0x14, 0x24, 0x60, 0x2e, 0x19, 0xc8, 0x04, 0x72, 0x17, 0xc4, 0x62, 0x9d, 0xed, 0x47, - 0x62, 0xc5, 0x77, 0xcf, 0xba, 0xbb, 0xa4, 0xf0, 0x2f, 0x30, 0xf1, 0x3f, 0xb0, 0x30, 0x32, 0x30, - 0xb1, 0xb2, 0x74, 0xac, 0x98, 0x10, 0x43, 0x85, 0x92, 0x01, 0xf1, 0x47, 0x20, 0xa1, 0xdc, 0x39, - 0x69, 0x33, 0xb4, 0x42, 0x54, 0xa2, 0x62, 0xb1, 0xfc, 0xde, 0xf7, 0xfc, 0xfc, 0xf9, 0x7e, 0xf5, - 0x74, 0xd4, 0x05, 0x9e, 0x29, 0x95, 0xa1, 0x50, 0xc1, 0x78, 0x3b, 0x50, 0x9a, 0x0d, 0xc1, 0x2f, - 0x24, 0x6a, 0x74, 0x2e, 0x2d, 0x14, 0x7f, 0xbc, 0xbd, 0xb1, 0x9e, 0xa0, 0xe2, 0xa8, 0x22, 0xa3, - 0x05, 0xb6, 0xb0, 0x07, 0x37, 0xae, 0x31, 0x9e, 0x09, 0x0c, 0xcc, 0xb3, 0x6c, 0xdd, 0xe8, 0x63, - 0x1f, 0xed, 0xd1, 0xd9, 0x9b, 0xed, 0xb6, 0x3f, 0x13, 0x7a, 0x65, 0x77, 0xf6, 0x87, 0x67, 0x39, - 0x4b, 0x80, 0x83, 0xd0, 0xce, 0x3d, 0xda, 0x8c, 0x73, 0x4c, 0x86, 0x91, 0x04, 0x8e, 0x63, 0x96, - 0x47, 0x4a, 0x33, 0xa9, 0x21, 0x75, 0x49, 0x8b, 0x74, 0x6a, 0xe1, 0x75, 0x23, 0x86, 0x56, 0xdb, - 0xb5, 0x92, 0xb3, 0x4e, 0x2f, 0x68, 0x2c, 0xb2, 0x24, 0xca, 0x52, 0xb7, 0xda, 0x22, 0x9d, 0x95, - 0x70, 0xcd, 0xd4, 0xbd, 0xd4, 0x71, 0xe9, 0x9a, 0x84, 0x62, 0xa4, 0x41, 0xba, 0xb5, 0x16, 0xe9, - 0x34, 0xc2, 0x79, 0xe9, 0x3c, 0xa1, 0x75, 0xc6, 0x71, 0x24, 0xb4, 0xbb, 0x32, 0x13, 0x76, 0xee, - 0xee, 0x1f, 0x6e, 0x56, 0xbe, 0x1d, 0x6e, 0x36, 0xad, 0x15, 0x95, 0x0e, 0xfd, 0x0c, 0x03, 0xce, - 0xf4, 0xc0, 0xef, 0x09, 0xfd, 0xe5, 0xe3, 0x16, 0x2d, 0x3d, 0xf6, 0x84, 0x7e, 0xff, 0xe3, 0xc3, - 0x1d, 0x12, 0x96, 0xdf, 0xb7, 0x7f, 0x12, 0x7a, 0xb3, 0x0b, 0x39, 0xf4, 0x99, 0x86, 0xf3, 0x72, - 0x73, 0x9b, 0x36, 0x52, 0x8b, 0x80, 0xd2, 0x1a, 0x0a, 0x8f, 0x1a, 0xc7, 0xbc, 0xae, 0x9e, 0xd1, - 0xeb, 0x1b, 0x42, 0x1b, 0xc6, 0x63, 0x4f, 0xbc, 0xc4, 0x25, 0x54, 0x72, 0x22, 0x6a, 0xf5, 0xa4, - 0xe0, 0x6b, 0x67, 0x84, 0xf9, 0x45, 0xe8, 0x55, 0x03, 0x53, 0x26, 0x68, 0x98, 0xfe, 0xbf, 0x05, - 0x72, 0x1e, 0xd0, 0x5b, 0xcb, 0xc8, 0x09, 0xf2, 0x22, 0x87, 0x19, 0xf4, 0xaa, 0x81, 0x6e, 0x1e, - 0x87, 0x7e, 0x3c, 0x17, 0xdb, 0xef, 0xaa, 0xd4, 0x5d, 0x5a, 0xbc, 0x73, 0xc9, 0xe1, 0x1f, 0xad, - 0xde, 0x69, 0x29, 0xd5, 0x4f, 0x4b, 0xe9, 0x13, 0xa1, 0x97, 0xbb, 0x73, 0x1e, 0x13, 0xcd, 0xd3, - 0x05, 0x13, 0x31, 0x4c, 0x0f, 0x4b, 0xa6, 0xa0, 0x9f, 0xe9, 0xc1, 0x28, 0xf6, 0x13, 0xe4, 0x01, - 0xcb, 0x73, 0x94, 0x6c, 0x4b, 0x80, 0xde, 0x43, 0x39, 0x9c, 0x97, 0xc9, 0x80, 0x65, 0xc2, 0xd2, - 0x76, 0x21, 0x59, 0xa0, 0x3d, 0xa7, 0x17, 0x25, 0xec, 0x31, 0x99, 0x46, 0x29, 0xc4, 0xda, 0x2e, - 0xfc, 0xdf, 0x4f, 0xa5, 0x76, 0x56, 0x17, 0x62, 0xbd, 0x13, 0xee, 0x4f, 0x3c, 0x72, 0x30, 0xf1, - 0xc8, 0xf7, 0x89, 0x47, 0xde, 0x4e, 0xbd, 0xca, 0xc1, 0xd4, 0xab, 0x7c, 0x9d, 0x7a, 0x95, 0x17, - 0x8f, 0xfe, 0x70, 0xec, 0xab, 0xe0, 0xe8, 0x42, 0xd7, 0xaf, 0x0b, 0x50, 0x71, 0xdd, 0x5c, 0xbe, - 0xf7, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x1e, 0x80, 0x10, 0xec, 0xea, 0x05, 0x00, 0x00, + proto.RegisterType((*StakePlacement)(nil), "emissions.v2.StakePlacement") + proto.RegisterType((*DelegateStakePlacement)(nil), "emissions.v2.DelegateStakePlacement") + proto.RegisterType((*StakeInfo)(nil), "emissions.v2.StakeInfo") + proto.RegisterType((*StakeRemovalInfo)(nil), "emissions.v2.StakeRemovalInfo") + proto.RegisterType((*DelegateStakeRemovalInfo)(nil), "emissions.v2.DelegateStakeRemovalInfo") + proto.RegisterType((*DelegatorInfo)(nil), "emissions.v2.DelegatorInfo") +} + +func init() { proto.RegisterFile("emissions/v2/stake.proto", fileDescriptor_0eb1a26e1b528236) } + +var fileDescriptor_0eb1a26e1b528236 = []byte{ + // 496 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x94, 0xb1, 0x6f, 0xd3, 0x4e, + 0x14, 0xc7, 0x73, 0x49, 0x9b, 0xfe, 0x72, 0x3f, 0x40, 0x60, 0x08, 0xb8, 0x15, 0x72, 0xa3, 0x4c, + 0x11, 0x52, 0x6d, 0x14, 0x24, 0x60, 0x2e, 0x19, 0xc8, 0x04, 0x72, 0x17, 0xc4, 0x62, 0x9d, 0xed, + 0x47, 0x62, 0xc5, 0x77, 0xcf, 0xba, 0xbb, 0xa4, 0xf0, 0x2f, 0x30, 0xf1, 0x3f, 0xb0, 0x30, 0x32, + 0x30, 0xb1, 0xb2, 0x74, 0xac, 0x98, 0x10, 0x43, 0x85, 0x92, 0x01, 0xf1, 0x47, 0x20, 0xa1, 0xdc, + 0x39, 0x69, 0x33, 0xb4, 0x42, 0x54, 0xa2, 0x62, 0xb1, 0xfc, 0xde, 0xf7, 0xfc, 0xfc, 0xf9, 0x7e, + 0xf5, 0x74, 0xd4, 0x05, 0x9e, 0x29, 0x95, 0xa1, 0x50, 0xc1, 0xa4, 0x1b, 0x28, 0xcd, 0x46, 0xe0, + 0x17, 0x12, 0x35, 0x3a, 0x97, 0x96, 0x8a, 0x3f, 0xe9, 0x6e, 0x6d, 0x26, 0xa8, 0x38, 0xaa, 0xc8, + 0x68, 0x81, 0x2d, 0xec, 0xc1, 0xad, 0x6b, 0x8c, 0x67, 0x02, 0x03, 0xf3, 0x2c, 0x5b, 0x37, 0x06, + 0x38, 0x40, 0x7b, 0x74, 0xfe, 0x66, 0xbb, 0xed, 0x4f, 0x84, 0x5e, 0xd9, 0x9b, 0xff, 0xe1, 0x69, + 0xce, 0x12, 0xe0, 0x20, 0xb4, 0xd3, 0xa5, 0xcd, 0x38, 0xc7, 0x64, 0x14, 0x49, 0xe0, 0x38, 0x61, + 0x79, 0xa4, 0x34, 0x93, 0x1a, 0x52, 0x97, 0xb4, 0x48, 0xa7, 0x16, 0x5e, 0x37, 0x62, 0x68, 0xb5, + 0x3d, 0x2b, 0x39, 0x9b, 0xf4, 0x3f, 0x8d, 0x45, 0x96, 0x44, 0x59, 0xea, 0x56, 0x5b, 0xa4, 0xb3, + 0x16, 0x6e, 0x98, 0xba, 0x9f, 0x3a, 0x2e, 0xdd, 0x90, 0x50, 0x8c, 0x35, 0x48, 0xb7, 0xd6, 0x22, + 0x9d, 0x46, 0xb8, 0x28, 0x9d, 0xc7, 0xb4, 0xce, 0x38, 0x8e, 0x85, 0x76, 0xd7, 0xe6, 0xc2, 0xee, + 0xdd, 0x83, 0xa3, 0xed, 0xca, 0xd7, 0xa3, 0xed, 0xa6, 0xb5, 0xa2, 0xd2, 0x91, 0x9f, 0x61, 0xc0, + 0x99, 0x1e, 0xfa, 0x7d, 0xa1, 0x3f, 0x7f, 0xd8, 0xa1, 0xa5, 0xc7, 0xbe, 0xd0, 0xef, 0xbe, 0xbf, + 0xbf, 0x43, 0xc2, 0xf2, 0xfb, 0xf6, 0x0f, 0x42, 0x6f, 0xf6, 0x20, 0x87, 0x01, 0xd3, 0x70, 0x51, + 0x6e, 0x6e, 0xd3, 0x46, 0x6a, 0x11, 0x50, 0x5a, 0x43, 0xe1, 0x71, 0xe3, 0x84, 0xd7, 0xf5, 0x73, + 0x7a, 0x7d, 0x4d, 0x68, 0xc3, 0x78, 0xec, 0x8b, 0x17, 0xb8, 0x82, 0x4a, 0x4e, 0x45, 0xad, 0x9e, + 0x16, 0x7c, 0xed, 0x9c, 0x30, 0x3f, 0x09, 0xbd, 0x6a, 0x60, 0xca, 0x04, 0x0d, 0xd3, 0xbf, 0xb7, + 0x40, 0xce, 0x7d, 0x7a, 0x6b, 0x15, 0x39, 0x41, 0x5e, 0xe4, 0x30, 0x87, 0x5e, 0x37, 0xd0, 0xcd, + 0x93, 0xd0, 0x8f, 0x16, 0x62, 0xfb, 0x6d, 0x95, 0xba, 0x2b, 0x8b, 0x77, 0x21, 0x39, 0xfc, 0xa5, + 0xd5, 0x3b, 0x2b, 0xa5, 0xfa, 0x59, 0x29, 0x7d, 0x24, 0xf4, 0x72, 0x6f, 0xc1, 0x63, 0xa2, 0x79, + 0xb2, 0x64, 0x22, 0x86, 0xe9, 0x41, 0xc9, 0x14, 0x0c, 0x32, 0x3d, 0x1c, 0xc7, 0x7e, 0x82, 0x3c, + 0x60, 0x79, 0x8e, 0x92, 0xed, 0x08, 0xd0, 0xfb, 0x28, 0x47, 0x8b, 0x32, 0x19, 0xb2, 0x4c, 0x58, + 0xda, 0x1e, 0x24, 0x4b, 0xb4, 0x67, 0xf4, 0x7f, 0x09, 0xfb, 0x4c, 0xa6, 0x51, 0x0a, 0xb1, 0xb6, + 0x0b, 0xff, 0xe7, 0x53, 0xa9, 0x9d, 0xd5, 0x83, 0x58, 0xef, 0x86, 0x07, 0x53, 0x8f, 0x1c, 0x4e, + 0x3d, 0xf2, 0x6d, 0xea, 0x91, 0x37, 0x33, 0xaf, 0x72, 0x38, 0xf3, 0x2a, 0x5f, 0x66, 0x5e, 0xe5, + 0xf9, 0xc3, 0xdf, 0x1c, 0xfb, 0x32, 0x38, 0xbe, 0xd0, 0xf5, 0xab, 0x02, 0x54, 0x5c, 0x37, 0x97, + 0xef, 0xbd, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x6c, 0x63, 0xcb, 0xea, 0x05, 0x00, 0x00, } func (m *StakePlacement) Marshal() (dAtA []byte, err error) { diff --git a/x/emissions/types/topic.pb.go b/x/emissions/types/topic.pb.go index e37118f3f..7fc0f28ae 100644 --- a/x/emissions/types/topic.pb.go +++ b/x/emissions/types/topic.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/topic.proto +// source: emissions/v2/topic.proto package types @@ -27,29 +27,26 @@ var _ = math.Inf const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type Topic struct { - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - LossLogic string `protobuf:"bytes,4,opt,name=loss_logic,json=lossLogic,proto3" json:"loss_logic,omitempty"` - LossMethod string `protobuf:"bytes,5,opt,name=loss_method,json=lossMethod,proto3" json:"loss_method,omitempty"` - InferenceLogic string `protobuf:"bytes,6,opt,name=inference_logic,json=inferenceLogic,proto3" json:"inference_logic,omitempty"` - InferenceMethod string `protobuf:"bytes,7,opt,name=inference_method,json=inferenceMethod,proto3" json:"inference_method,omitempty"` - EpochLastEnded int64 `protobuf:"varint,8,opt,name=epoch_last_ended,json=epochLastEnded,proto3" json:"epoch_last_ended,omitempty"` - EpochLength int64 `protobuf:"varint,9,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` - GroundTruthLag int64 `protobuf:"varint,10,opt,name=ground_truth_lag,json=groundTruthLag,proto3" json:"ground_truth_lag,omitempty"` - DefaultArg string `protobuf:"bytes,11,opt,name=default_arg,json=defaultArg,proto3" json:"default_arg,omitempty"` - PNorm github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,12,opt,name=p_norm,json=pNorm,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_norm"` - AlphaRegret github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,13,opt,name=alpha_regret,json=alphaRegret,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"alpha_regret"` - AllowNegative bool `protobuf:"varint,14,opt,name=allow_negative,json=allowNegative,proto3" json:"allow_negative,omitempty"` - Epsilon github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,15,opt,name=epsilon,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon"` - InitialRegret github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,16,opt,name=initial_regret,json=initialRegret,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"initial_regret"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` + Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + LossMethod string `protobuf:"bytes,5,opt,name=loss_method,json=lossMethod,proto3" json:"loss_method,omitempty"` + EpochLastEnded int64 `protobuf:"varint,8,opt,name=epoch_last_ended,json=epochLastEnded,proto3" json:"epoch_last_ended,omitempty"` + EpochLength int64 `protobuf:"varint,9,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` + GroundTruthLag int64 `protobuf:"varint,10,opt,name=ground_truth_lag,json=groundTruthLag,proto3" json:"ground_truth_lag,omitempty"` + PNorm github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,12,opt,name=p_norm,json=pNorm,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_norm"` + AlphaRegret github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,13,opt,name=alpha_regret,json=alphaRegret,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"alpha_regret"` + AllowNegative bool `protobuf:"varint,14,opt,name=allow_negative,json=allowNegative,proto3" json:"allow_negative,omitempty"` + Epsilon github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,15,opt,name=epsilon,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon"` + InitialRegret github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,16,opt,name=initial_regret,json=initialRegret,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"initial_regret"` + WorkerSubmissionWindow int64 `protobuf:"varint,17,opt,name=worker_submission_window,json=workerSubmissionWindow,proto3" json:"worker_submission_window,omitempty"` } func (m *Topic) Reset() { *m = Topic{} } func (m *Topic) String() string { return proto.CompactTextString(m) } func (*Topic) ProtoMessage() {} func (*Topic) Descriptor() ([]byte, []int) { - return fileDescriptor_ae5610c9d5deb158, []int{0} + return fileDescriptor_973a711ef5cc351b, []int{0} } func (m *Topic) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -99,13 +96,6 @@ func (m *Topic) GetMetadata() string { return "" } -func (m *Topic) GetLossLogic() string { - if m != nil { - return m.LossLogic - } - return "" -} - func (m *Topic) GetLossMethod() string { if m != nil { return m.LossMethod @@ -113,20 +103,6 @@ func (m *Topic) GetLossMethod() string { return "" } -func (m *Topic) GetInferenceLogic() string { - if m != nil { - return m.InferenceLogic - } - return "" -} - -func (m *Topic) GetInferenceMethod() string { - if m != nil { - return m.InferenceMethod - } - return "" -} - func (m *Topic) GetEpochLastEnded() int64 { if m != nil { return m.EpochLastEnded @@ -148,18 +124,18 @@ func (m *Topic) GetGroundTruthLag() int64 { return 0 } -func (m *Topic) GetDefaultArg() string { +func (m *Topic) GetAllowNegative() bool { if m != nil { - return m.DefaultArg + return m.AllowNegative } - return "" + return false } -func (m *Topic) GetAllowNegative() bool { +func (m *Topic) GetWorkerSubmissionWindow() int64 { if m != nil { - return m.AllowNegative + return m.WorkerSubmissionWindow } - return false + return 0 } type TopicList struct { @@ -170,7 +146,7 @@ func (m *TopicList) Reset() { *m = TopicList{} } func (m *TopicList) String() string { return proto.CompactTextString(m) } func (*TopicList) ProtoMessage() {} func (*TopicList) Descriptor() ([]byte, []int) { - return fileDescriptor_ae5610c9d5deb158, []int{1} + return fileDescriptor_973a711ef5cc351b, []int{1} } func (m *TopicList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -208,7 +184,6 @@ func (m *TopicList) GetTopics() []*Topic { type TimestampedActorNonce struct { BlockHeight int64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` - Actor string `protobuf:"bytes,2,opt,name=actor,proto3" json:"actor,omitempty"` Nonce *Nonce `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"` } @@ -216,7 +191,7 @@ func (m *TimestampedActorNonce) Reset() { *m = TimestampedActorNonce{} } func (m *TimestampedActorNonce) String() string { return proto.CompactTextString(m) } func (*TimestampedActorNonce) ProtoMessage() {} func (*TimestampedActorNonce) Descriptor() ([]byte, []int) { - return fileDescriptor_ae5610c9d5deb158, []int{2} + return fileDescriptor_973a711ef5cc351b, []int{2} } func (m *TimestampedActorNonce) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -252,69 +227,110 @@ func (m *TimestampedActorNonce) GetBlockHeight() int64 { return 0 } -func (m *TimestampedActorNonce) GetActor() string { +func (m *TimestampedActorNonce) GetNonce() *Nonce { if m != nil { - return m.Actor + return m.Nonce } - return "" + return nil } -func (m *TimestampedActorNonce) GetNonce() *Nonce { +type TopicIds struct { + TopicIds []uint64 `protobuf:"varint,1,rep,packed,name=topic_ids,json=topicIds,proto3" json:"topic_ids,omitempty"` +} + +func (m *TopicIds) Reset() { *m = TopicIds{} } +func (m *TopicIds) String() string { return proto.CompactTextString(m) } +func (*TopicIds) ProtoMessage() {} +func (*TopicIds) Descriptor() ([]byte, []int) { + return fileDescriptor_973a711ef5cc351b, []int{3} +} +func (m *TopicIds) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TopicIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_TopicIds.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *TopicIds) XXX_Merge(src proto.Message) { + xxx_messageInfo_TopicIds.Merge(m, src) +} +func (m *TopicIds) XXX_Size() int { + return m.Size() +} +func (m *TopicIds) XXX_DiscardUnknown() { + xxx_messageInfo_TopicIds.DiscardUnknown(m) +} + +var xxx_messageInfo_TopicIds proto.InternalMessageInfo + +func (m *TopicIds) GetTopicIds() []uint64 { if m != nil { - return m.Nonce + return m.TopicIds } return nil } func init() { - proto.RegisterType((*Topic)(nil), "emissions.v1.Topic") - proto.RegisterType((*TopicList)(nil), "emissions.v1.TopicList") - proto.RegisterType((*TimestampedActorNonce)(nil), "emissions.v1.TimestampedActorNonce") + proto.RegisterType((*Topic)(nil), "emissions.v2.Topic") + proto.RegisterType((*TopicList)(nil), "emissions.v2.TopicList") + proto.RegisterType((*TimestampedActorNonce)(nil), "emissions.v2.TimestampedActorNonce") + proto.RegisterType((*TopicIds)(nil), "emissions.v2.TopicIds") } -func init() { proto.RegisterFile("emissions/v1/topic.proto", fileDescriptor_ae5610c9d5deb158) } +func init() { proto.RegisterFile("emissions/v2/topic.proto", fileDescriptor_973a711ef5cc351b) } -var fileDescriptor_ae5610c9d5deb158 = []byte{ - // 619 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x41, 0x6b, 0x13, 0x4f, - 0x18, 0xc6, 0xb3, 0x4d, 0x93, 0x36, 0x93, 0x34, 0xed, 0x7f, 0xfe, 0x15, 0xc6, 0x82, 0x49, 0x2c, - 0x88, 0x29, 0xe2, 0x2e, 0xd5, 0x83, 0xc5, 0x5b, 0x8b, 0x82, 0x87, 0x18, 0x70, 0xe9, 0xa9, 0x07, - 0x97, 0xe9, 0xec, 0x74, 0x76, 0xe8, 0xee, 0xcc, 0x32, 0x33, 0x69, 0xf5, 0xe8, 0x37, 0xf0, 0x23, - 0xf8, 0x71, 0x7a, 0xec, 0x51, 0x3c, 0x14, 0x69, 0x2f, 0x7e, 0x0b, 0x65, 0xde, 0xdd, 0x34, 0x8a, - 0x17, 0xa1, 0x97, 0x90, 0xf7, 0xf7, 0x3c, 0x79, 0x5e, 0xde, 0xb0, 0xcf, 0x22, 0xc2, 0x0b, 0x69, - 0xad, 0xd4, 0xca, 0x46, 0x67, 0xbb, 0x91, 0xd3, 0xa5, 0x64, 0x61, 0x69, 0xb4, 0xd3, 0xb8, 0x77, - 0xab, 0x84, 0x67, 0xbb, 0x5b, 0xf7, 0x99, 0xb6, 0x85, 0xb6, 0x09, 0x68, 0x51, 0x35, 0x54, 0xc6, - 0xad, 0xff, 0x68, 0x21, 0x95, 0x8e, 0xe0, 0xb3, 0x46, 0x9b, 0x42, 0x0b, 0x5d, 0x59, 0xfd, 0xb7, - 0x9a, 0xfe, 0xb9, 0x4b, 0x69, 0xc5, 0x78, 0xa5, 0x6c, 0xff, 0x6c, 0xa1, 0xd6, 0xa1, 0xdf, 0x8d, - 0xfb, 0x68, 0x49, 0xa6, 0x24, 0x18, 0x05, 0xe3, 0xe5, 0x78, 0x49, 0xa6, 0x98, 0xa0, 0x15, 0x66, - 0x38, 0x75, 0xda, 0x90, 0xa5, 0x51, 0x30, 0xee, 0xc4, 0xf3, 0x11, 0x6f, 0xa1, 0xd5, 0x82, 0x3b, - 0x9a, 0x52, 0x47, 0x49, 0x13, 0xa4, 0xdb, 0x19, 0x3f, 0x40, 0x28, 0xd7, 0xd6, 0x26, 0xb9, 0x16, - 0x92, 0x91, 0x65, 0x50, 0x3b, 0x9e, 0x4c, 0x3c, 0xc0, 0x43, 0xd4, 0x05, 0xb9, 0xe0, 0x2e, 0xd3, - 0x29, 0x69, 0x81, 0x0e, 0xbf, 0x78, 0x0b, 0x04, 0x3f, 0x46, 0xeb, 0x52, 0x9d, 0x70, 0xc3, 0x15, - 0xe3, 0x75, 0x48, 0x1b, 0x4c, 0xfd, 0x5b, 0x5c, 0x25, 0xed, 0xa0, 0x8d, 0x85, 0xb1, 0x8e, 0x5b, - 0x01, 0xe7, 0x22, 0xa0, 0xce, 0x1c, 0xa3, 0x0d, 0x5e, 0x6a, 0x96, 0x25, 0x39, 0xb5, 0x2e, 0xe1, - 0x2a, 0xe5, 0x29, 0x59, 0x1d, 0x05, 0xe3, 0x66, 0xdc, 0x07, 0x3e, 0xa1, 0xd6, 0xbd, 0xf6, 0x14, - 0x3f, 0x44, 0xbd, 0xda, 0xc9, 0x95, 0x70, 0x19, 0xe9, 0x80, 0xab, 0x5b, 0xb9, 0x00, 0xf9, 0x30, - 0x61, 0xf4, 0x4c, 0xa5, 0x89, 0x33, 0x33, 0xe7, 0x33, 0x05, 0x41, 0x55, 0x58, 0xc5, 0x0f, 0x3d, - 0x9e, 0x50, 0xe1, 0x6f, 0x4d, 0xf9, 0x09, 0x9d, 0xe5, 0x2e, 0xa1, 0x46, 0x90, 0x6e, 0x75, 0x6b, - 0x8d, 0xf6, 0x8d, 0xc0, 0x53, 0xd4, 0x2e, 0x13, 0xa5, 0x4d, 0x41, 0x7a, 0x5e, 0x3b, 0x78, 0x71, - 0x71, 0x35, 0x6c, 0x7c, 0xbb, 0x1a, 0x46, 0x42, 0xba, 0x6c, 0x76, 0x1c, 0x32, 0x5d, 0x44, 0x34, - 0xcf, 0xb5, 0xa1, 0x4f, 0x15, 0x77, 0xe7, 0xda, 0x9c, 0xce, 0x47, 0x96, 0x51, 0xa9, 0xa2, 0x82, - 0xba, 0x2c, 0x7c, 0xc5, 0x59, 0xdc, 0x2a, 0xa7, 0xda, 0x14, 0xf8, 0x08, 0xf5, 0x68, 0x5e, 0x66, - 0x34, 0x31, 0x5c, 0x18, 0xee, 0xc8, 0xda, 0xdd, 0x52, 0xbb, 0x10, 0x16, 0x43, 0x16, 0x7e, 0x84, - 0xfa, 0xde, 0x75, 0x9e, 0x28, 0x2e, 0xa8, 0x93, 0x67, 0x9c, 0xf4, 0x47, 0xc1, 0x78, 0x35, 0x5e, - 0x03, 0x3a, 0xad, 0x21, 0x7e, 0x87, 0x56, 0x78, 0x69, 0x65, 0xae, 0x15, 0x59, 0xbf, 0xdb, 0xf6, - 0x79, 0x0e, 0x7e, 0x8f, 0xfa, 0x52, 0x49, 0x27, 0x69, 0x3e, 0xbf, 0x6b, 0xe3, 0x6e, 0xc9, 0x6b, - 0x75, 0x5c, 0x75, 0xd9, 0xf6, 0x1e, 0xea, 0x40, 0x01, 0x26, 0xd2, 0x3a, 0xfc, 0x04, 0xb5, 0xa1, - 0x89, 0x96, 0x04, 0xa3, 0xe6, 0xb8, 0xfb, 0xec, 0xff, 0xf0, 0xf7, 0x2e, 0x86, 0x60, 0x8c, 0x6b, - 0xcb, 0xf6, 0xa7, 0x00, 0xdd, 0x3b, 0x94, 0x05, 0xb7, 0x8e, 0x16, 0x25, 0x4f, 0xf7, 0x99, 0xd3, - 0x66, 0xea, 0xbb, 0xe5, 0x9f, 0xa3, 0xe3, 0x5c, 0xb3, 0xd3, 0x24, 0xe3, 0x52, 0x64, 0x0e, 0x5a, - 0xd5, 0x8c, 0xbb, 0xc0, 0xde, 0x00, 0xc2, 0x9b, 0xa8, 0x45, 0xd9, 0xa2, 0x5c, 0xd5, 0x80, 0x77, - 0x50, 0x0b, 0xda, 0x09, 0xbd, 0xfa, 0x6b, 0x3d, 0x84, 0xc7, 0x95, 0xe3, 0xe5, 0xf2, 0x8f, 0x2f, - 0xc3, 0xe0, 0x20, 0xbe, 0xb8, 0x1e, 0x04, 0x97, 0xd7, 0x83, 0xe0, 0xfb, 0xf5, 0x20, 0xf8, 0x7c, - 0x33, 0x68, 0x5c, 0xde, 0x0c, 0x1a, 0x5f, 0x6f, 0x06, 0x8d, 0xa3, 0xbd, 0x7f, 0xfc, 0x5f, 0x3e, - 0x44, 0x8b, 0x97, 0x83, 0xfb, 0x58, 0x72, 0x7b, 0xdc, 0x86, 0x57, 0xc3, 0xf3, 0x5f, 0x01, 0x00, - 0x00, 0xff, 0xff, 0x3c, 0xa0, 0x29, 0xf7, 0xa2, 0x04, 0x00, 0x00, +var fileDescriptor_973a711ef5cc351b = []byte{ + // 661 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0x4f, 0x6b, 0xdb, 0x3e, + 0x18, 0xc7, 0xe3, 0xc4, 0x49, 0x1c, 0x25, 0x4d, 0x5d, 0xfd, 0xfe, 0xa0, 0x75, 0x90, 0x64, 0x81, + 0x41, 0xc6, 0x68, 0x0c, 0xdd, 0x61, 0x65, 0xb7, 0x95, 0x0d, 0xb6, 0xd0, 0x05, 0xa6, 0x15, 0x06, + 0x3d, 0x4c, 0x28, 0xb6, 0x6a, 0x8b, 0xda, 0x92, 0x91, 0x94, 0xa6, 0x7b, 0x17, 0x7b, 0x09, 0x7b, + 0x39, 0x3d, 0xf6, 0x38, 0x76, 0x28, 0xa3, 0xbd, 0xec, 0x2d, 0xec, 0x36, 0x2c, 0x3b, 0xed, 0xc6, + 0x2e, 0x83, 0x5e, 0x42, 0xf4, 0xf9, 0x7e, 0xfd, 0x7d, 0x1e, 0xe3, 0xe7, 0x11, 0x40, 0x2c, 0xe3, + 0x5a, 0x73, 0x29, 0x74, 0x70, 0xba, 0x1b, 0x18, 0x99, 0xf3, 0x70, 0x9a, 0x2b, 0x69, 0x24, 0xec, + 0xdd, 0x28, 0xd3, 0xd3, 0xdd, 0xed, 0x7b, 0xa1, 0xd4, 0x99, 0xd4, 0xc4, 0x6a, 0x41, 0x79, 0x28, + 0x8d, 0xdb, 0x5b, 0x34, 0xe3, 0x42, 0x06, 0xf6, 0xb7, 0x42, 0xff, 0xc6, 0x32, 0x96, 0xa5, 0xb5, + 0xf8, 0x57, 0xd1, 0xdf, 0x6b, 0x09, 0x29, 0x42, 0x56, 0x2a, 0xe3, 0x1f, 0x4d, 0xd0, 0x3c, 0x2c, + 0x6a, 0xc3, 0x3e, 0xa8, 0xf3, 0x08, 0x39, 0x23, 0x67, 0xe2, 0xe2, 0x3a, 0x8f, 0x20, 0x02, 0xed, + 0x50, 0x31, 0x6a, 0xa4, 0x42, 0xf5, 0x91, 0x33, 0xe9, 0xe0, 0xf5, 0x11, 0x6e, 0x03, 0x2f, 0x63, + 0x86, 0x46, 0xd4, 0x50, 0xd4, 0xb0, 0xd2, 0xcd, 0x19, 0x0e, 0x41, 0x37, 0x95, 0x5a, 0x93, 0x8c, + 0x99, 0x44, 0x46, 0xa8, 0x69, 0x65, 0x50, 0xa0, 0x37, 0x96, 0xc0, 0x09, 0xf0, 0x59, 0x2e, 0xc3, + 0x84, 0xa4, 0x54, 0x1b, 0xc2, 0x44, 0xc4, 0x22, 0xe4, 0x8d, 0x9c, 0x49, 0x03, 0xf7, 0x2d, 0x3f, + 0xa0, 0xda, 0xbc, 0x2c, 0x28, 0x7c, 0x00, 0x7a, 0x95, 0x93, 0x89, 0xd8, 0x24, 0xa8, 0x63, 0x5d, + 0xdd, 0xd2, 0x65, 0x51, 0x11, 0x16, 0x2b, 0xb9, 0x14, 0x11, 0x31, 0x6a, 0x69, 0x8a, 0xcc, 0x18, + 0x81, 0x32, 0xac, 0xe4, 0x87, 0x05, 0x3e, 0xa0, 0x31, 0x9c, 0x83, 0x56, 0x4e, 0x84, 0x54, 0x19, + 0xea, 0x15, 0x2d, 0xed, 0x3f, 0x3d, 0xbf, 0x1c, 0xd6, 0xbe, 0x5e, 0x0e, 0x83, 0x98, 0x9b, 0x64, + 0xb9, 0x98, 0x86, 0x32, 0x0b, 0x68, 0x9a, 0x4a, 0x45, 0x77, 0x04, 0x33, 0x2b, 0xa9, 0x4e, 0xd6, + 0xc7, 0x30, 0xa1, 0x5c, 0x04, 0x19, 0x35, 0xc9, 0xf4, 0x05, 0x0b, 0x71, 0x33, 0x9f, 0x4b, 0x95, + 0xc1, 0x23, 0xd0, 0xa3, 0x69, 0x9e, 0x50, 0xa2, 0x58, 0xac, 0x98, 0x41, 0x1b, 0x77, 0x4b, 0xed, + 0xda, 0x30, 0x6c, 0xb3, 0xe0, 0x43, 0xd0, 0x2f, 0x5c, 0x2b, 0x22, 0x58, 0x4c, 0x0d, 0x3f, 0x65, + 0xa8, 0x3f, 0x72, 0x26, 0x1e, 0xde, 0xb0, 0x74, 0x5e, 0x41, 0xf8, 0x16, 0xb4, 0x59, 0xae, 0x79, + 0x2a, 0x05, 0xda, 0xbc, 0x5b, 0xf5, 0x75, 0x0e, 0xfc, 0x00, 0xfa, 0x5c, 0x70, 0xc3, 0x69, 0xba, + 0x7e, 0x2f, 0xff, 0x6e, 0xc9, 0x1b, 0x55, 0x5c, 0xf5, 0x66, 0x7b, 0x00, 0x15, 0x66, 0xa6, 0x88, + 0x5e, 0x2e, 0xaa, 0x91, 0x24, 0x2b, 0x2e, 0x22, 0xb9, 0x42, 0x5b, 0xf6, 0xbb, 0xfd, 0x5f, 0xea, + 0xef, 0x6e, 0xe4, 0xf7, 0x56, 0x9d, 0xb9, 0x9e, 0xeb, 0x37, 0x67, 0xae, 0xd7, 0xf2, 0xdb, 0x33, + 0xd7, 0x6b, 0xfb, 0xde, 0xcc, 0xf5, 0xba, 0x7e, 0xaf, 0x1c, 0x2d, 0x92, 0xca, 0x98, 0x87, 0x78, + 0x93, 0x8b, 0x63, 0xa6, 0x98, 0x08, 0x59, 0x05, 0xfc, 0x5b, 0x50, 0xce, 0x23, 0xee, 0x46, 0xec, + 0x98, 0x2e, 0x53, 0x43, 0xa8, 0x8a, 0xc7, 0x7b, 0xa0, 0x63, 0x47, 0xff, 0x80, 0x6b, 0x03, 0x1f, + 0x83, 0x96, 0xdd, 0x41, 0x8d, 0x9c, 0x51, 0x63, 0xd2, 0xdd, 0xfd, 0x67, 0xfa, 0xeb, 0x16, 0x4e, + 0xad, 0x11, 0x57, 0x96, 0xf1, 0x19, 0xf8, 0xef, 0x90, 0x67, 0x4c, 0x1b, 0x9a, 0xe5, 0x2c, 0x7a, + 0x1e, 0x1a, 0xa9, 0xe6, 0xc5, 0x52, 0x15, 0x33, 0xbb, 0x48, 0x65, 0x78, 0x42, 0x12, 0xc6, 0xe3, + 0xc4, 0xd8, 0x75, 0x6a, 0xe0, 0xae, 0x65, 0xaf, 0x2c, 0x82, 0x8f, 0x40, 0xd3, 0x2e, 0xa0, 0x5d, + 0x9d, 0x3f, 0xea, 0xd8, 0x18, 0x5c, 0x3a, 0x9e, 0xb9, 0xdf, 0x3f, 0x0f, 0x9d, 0x99, 0xeb, 0xd5, + 0xfd, 0x06, 0x6e, 0xd2, 0xa2, 0xca, 0x78, 0x07, 0x78, 0xb6, 0x95, 0xd7, 0x91, 0x86, 0xf7, 0x41, + 0xc7, 0xf6, 0x43, 0x78, 0x54, 0x76, 0xed, 0x62, 0xcf, 0x54, 0x62, 0xf9, 0xec, 0x3e, 0x3e, 0xbf, + 0x1a, 0x38, 0x17, 0x57, 0x03, 0xe7, 0xdb, 0xd5, 0xc0, 0xf9, 0x74, 0x3d, 0xa8, 0x5d, 0x5c, 0x0f, + 0x6a, 0x5f, 0xae, 0x07, 0xb5, 0xa3, 0xbd, 0xbf, 0xfc, 0x94, 0x67, 0xc1, 0xed, 0xdd, 0x61, 0x3e, + 0xe6, 0x4c, 0x2f, 0x5a, 0xf6, 0xe6, 0x78, 0xf2, 0x33, 0x00, 0x00, 0xff, 0xff, 0x03, 0xd9, 0x99, + 0x14, 0xc1, 0x04, 0x00, 0x00, } func (this *TimestampedActorNonce) Equal(that interface{}) bool { @@ -339,12 +355,38 @@ func (this *TimestampedActorNonce) Equal(that interface{}) bool { if this.BlockHeight != that1.BlockHeight { return false } - if this.Actor != that1.Actor { + if !this.Nonce.Equal(that1.Nonce) { return false } - if !this.Nonce.Equal(that1.Nonce) { + return true +} +func (this *TopicIds) Equal(that interface{}) bool { + if that == nil { + return this == nil + } + + that1, ok := that.(*TopicIds) + if !ok { + that2, ok := that.(TopicIds) + if ok { + that1 = &that2 + } else { + return false + } + } + if that1 == nil { + return this == nil + } else if this == nil { + return false + } + if len(this.TopicIds) != len(that1.TopicIds) { return false } + for i := range this.TopicIds { + if this.TopicIds[i] != that1.TopicIds[i] { + return false + } + } return true } func (m *Topic) Marshal() (dAtA []byte, err error) { @@ -367,6 +409,13 @@ func (m *Topic) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.WorkerSubmissionWindow != 0 { + i = encodeVarintTopic(dAtA, i, uint64(m.WorkerSubmissionWindow)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x88 + } { size := m.InitialRegret.Size() i -= size @@ -419,13 +468,6 @@ func (m *Topic) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x62 - if len(m.DefaultArg) > 0 { - i -= len(m.DefaultArg) - copy(dAtA[i:], m.DefaultArg) - i = encodeVarintTopic(dAtA, i, uint64(len(m.DefaultArg))) - i-- - dAtA[i] = 0x5a - } if m.GroundTruthLag != 0 { i = encodeVarintTopic(dAtA, i, uint64(m.GroundTruthLag)) i-- @@ -441,20 +483,6 @@ func (m *Topic) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x40 } - if len(m.InferenceMethod) > 0 { - i -= len(m.InferenceMethod) - copy(dAtA[i:], m.InferenceMethod) - i = encodeVarintTopic(dAtA, i, uint64(len(m.InferenceMethod))) - i-- - dAtA[i] = 0x3a - } - if len(m.InferenceLogic) > 0 { - i -= len(m.InferenceLogic) - copy(dAtA[i:], m.InferenceLogic) - i = encodeVarintTopic(dAtA, i, uint64(len(m.InferenceLogic))) - i-- - dAtA[i] = 0x32 - } if len(m.LossMethod) > 0 { i -= len(m.LossMethod) copy(dAtA[i:], m.LossMethod) @@ -462,13 +490,6 @@ func (m *Topic) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x2a } - if len(m.LossLogic) > 0 { - i -= len(m.LossLogic) - copy(dAtA[i:], m.LossLogic) - i = encodeVarintTopic(dAtA, i, uint64(len(m.LossLogic))) - i-- - dAtA[i] = 0x22 - } if len(m.Metadata) > 0 { i -= len(m.Metadata) copy(dAtA[i:], m.Metadata) @@ -560,13 +581,6 @@ func (m *TimestampedActorNonce) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1a } - if len(m.Actor) > 0 { - i -= len(m.Actor) - copy(dAtA[i:], m.Actor) - i = encodeVarintTopic(dAtA, i, uint64(len(m.Actor))) - i-- - dAtA[i] = 0x12 - } if m.BlockHeight != 0 { i = encodeVarintTopic(dAtA, i, uint64(m.BlockHeight)) i-- @@ -575,6 +589,47 @@ func (m *TimestampedActorNonce) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *TopicIds) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TopicIds) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TopicIds) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.TopicIds) > 0 { + dAtA3 := make([]byte, len(m.TopicIds)*10) + var j2 int + for _, num := range m.TopicIds { + for num >= 1<<7 { + dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j2++ + } + dAtA3[j2] = uint8(num) + j2++ + } + i -= j2 + copy(dAtA[i:], dAtA3[:j2]) + i = encodeVarintTopic(dAtA, i, uint64(j2)) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + func encodeVarintTopic(dAtA []byte, offset int, v uint64) int { offset -= sovTopic(v) base := offset @@ -603,22 +658,10 @@ func (m *Topic) Size() (n int) { if l > 0 { n += 1 + l + sovTopic(uint64(l)) } - l = len(m.LossLogic) - if l > 0 { - n += 1 + l + sovTopic(uint64(l)) - } l = len(m.LossMethod) if l > 0 { n += 1 + l + sovTopic(uint64(l)) } - l = len(m.InferenceLogic) - if l > 0 { - n += 1 + l + sovTopic(uint64(l)) - } - l = len(m.InferenceMethod) - if l > 0 { - n += 1 + l + sovTopic(uint64(l)) - } if m.EpochLastEnded != 0 { n += 1 + sovTopic(uint64(m.EpochLastEnded)) } @@ -628,10 +671,6 @@ func (m *Topic) Size() (n int) { if m.GroundTruthLag != 0 { n += 1 + sovTopic(uint64(m.GroundTruthLag)) } - l = len(m.DefaultArg) - if l > 0 { - n += 1 + l + sovTopic(uint64(l)) - } l = m.PNorm.Size() n += 1 + l + sovTopic(uint64(l)) l = m.AlphaRegret.Size() @@ -643,6 +682,9 @@ func (m *Topic) Size() (n int) { n += 1 + l + sovTopic(uint64(l)) l = m.InitialRegret.Size() n += 2 + l + sovTopic(uint64(l)) + if m.WorkerSubmissionWindow != 0 { + n += 2 + sovTopic(uint64(m.WorkerSubmissionWindow)) + } return n } @@ -670,10 +712,6 @@ func (m *TimestampedActorNonce) Size() (n int) { if m.BlockHeight != 0 { n += 1 + sovTopic(uint64(m.BlockHeight)) } - l = len(m.Actor) - if l > 0 { - n += 1 + l + sovTopic(uint64(l)) - } if m.Nonce != nil { l = m.Nonce.Size() n += 1 + l + sovTopic(uint64(l)) @@ -681,6 +719,22 @@ func (m *TimestampedActorNonce) Size() (n int) { return n } +func (m *TopicIds) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.TopicIds) > 0 { + l = 0 + for _, e := range m.TopicIds { + l += sovTopic(uint64(e)) + } + n += 1 + sovTopic(uint64(l)) + l + } + return n +} + func sovTopic(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } @@ -799,38 +853,6 @@ func (m *Topic) Unmarshal(dAtA []byte) error { } m.Metadata = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LossLogic", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTopic - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTopic - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTopic - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LossLogic = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LossMethod", wireType) @@ -863,70 +885,6 @@ func (m *Topic) Unmarshal(dAtA []byte) error { } m.LossMethod = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InferenceLogic", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTopic - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTopic - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTopic - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InferenceLogic = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 7: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InferenceMethod", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTopic - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTopic - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTopic - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InferenceMethod = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field EpochLastEnded", wireType) @@ -984,38 +942,6 @@ func (m *Topic) Unmarshal(dAtA []byte) error { break } } - case 11: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultArg", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTopic - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTopic - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTopic - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DefaultArg = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 12: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PNorm", wireType) @@ -1172,6 +1098,25 @@ func (m *Topic) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 17: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkerSubmissionWindow", wireType) + } + m.WorkerSubmissionWindow = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WorkerSubmissionWindow |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipTopic(dAtA[iNdEx:]) @@ -1325,38 +1270,6 @@ func (m *TimestampedActorNonce) Unmarshal(dAtA []byte) error { break } } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Actor", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTopic - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTopic - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTopic - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Actor = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) @@ -1414,6 +1327,132 @@ func (m *TimestampedActorNonce) Unmarshal(dAtA []byte) error { } return nil } +func (m *TopicIds) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TopicIds: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TopicIds: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TopicIds = append(m.TopicIds, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTopic + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTopic + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.TopicIds) == 0 { + m.TopicIds = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTopic + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TopicIds = append(m.TopicIds, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field TopicIds", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipTopic(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTopic + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func skipTopic(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 diff --git a/x/emissions/types/tx.pb.go b/x/emissions/types/tx.pb.go index 53146e651..49e879fc5 100644 --- a/x/emissions/types/tx.pb.go +++ b/x/emissions/types/tx.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/tx.proto +// source: emissions/v2/tx.proto package types @@ -40,53 +40,56 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // optional field and if the repeated field is empty, it is considered to be the // same as if the field was not set type OptionalParams struct { - Version []string `protobuf:"bytes,1,rep,name=version,proto3" json:"version,omitempty"` - MaxSerializedMsgLength []int64 `protobuf:"varint,2,rep,packed,name=max_serialized_msg_length,json=maxSerializedMsgLength,proto3" json:"max_serialized_msg_length,omitempty"` - MinTopicWeight []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,3,rep,name=min_topic_weight,json=minTopicWeight,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"min_topic_weight"` - MaxTopicsPerBlock []uint64 `protobuf:"varint,4,rep,packed,name=max_topics_per_block,json=maxTopicsPerBlock,proto3" json:"max_topics_per_block,omitempty"` - RequiredMinimumStake []cosmossdk_io_math.Int `protobuf:"bytes,5,rep,name=required_minimum_stake,json=requiredMinimumStake,proto3,customtype=cosmossdk.io/math.Int" json:"required_minimum_stake"` - RemoveStakeDelayWindow []int64 `protobuf:"varint,6,rep,packed,name=remove_stake_delay_window,json=removeStakeDelayWindow,proto3" json:"remove_stake_delay_window,omitempty"` - MinEpochLength []int64 `protobuf:"varint,7,rep,packed,name=min_epoch_length,json=minEpochLength,proto3" json:"min_epoch_length,omitempty"` - BetaEntropy []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,8,rep,name=beta_entropy,json=betaEntropy,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"beta_entropy"` - LearningRate []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,9,rep,name=learning_rate,json=learningRate,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"learning_rate"` - MaxGradientThreshold []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,10,rep,name=max_gradient_threshold,json=maxGradientThreshold,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"max_gradient_threshold"` - MinStakeFraction []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,11,rep,name=min_stake_fraction,json=minStakeFraction,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"min_stake_fraction"` - MaxUnfulfilledWorkerRequests []uint64 `protobuf:"varint,13,rep,packed,name=max_unfulfilled_worker_requests,json=maxUnfulfilledWorkerRequests,proto3" json:"max_unfulfilled_worker_requests,omitempty"` - MaxUnfulfilledReputerRequests []uint64 `protobuf:"varint,14,rep,packed,name=max_unfulfilled_reputer_requests,json=maxUnfulfilledReputerRequests,proto3" json:"max_unfulfilled_reputer_requests,omitempty"` - TopicRewardStakeImportance []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,15,rep,name=topic_reward_stake_importance,json=topicRewardStakeImportance,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_reward_stake_importance"` - TopicRewardFeeRevenueImportance []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,16,rep,name=topic_reward_fee_revenue_importance,json=topicRewardFeeRevenueImportance,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_reward_fee_revenue_importance"` - TopicRewardAlpha []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,17,rep,name=topic_reward_alpha,json=topicRewardAlpha,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_reward_alpha"` - TaskRewardAlpha []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,18,rep,name=task_reward_alpha,json=taskRewardAlpha,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"task_reward_alpha"` - ValidatorsVsAlloraPercentReward []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,19,rep,name=validators_vs_allora_percent_reward,json=validatorsVsAlloraPercentReward,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"validators_vs_allora_percent_reward"` - MaxSamplesToScaleScores []uint64 `protobuf:"varint,20,rep,packed,name=max_samples_to_scale_scores,json=maxSamplesToScaleScores,proto3" json:"max_samples_to_scale_scores,omitempty"` - MaxTopInferersToReward []uint64 `protobuf:"varint,21,rep,packed,name=max_top_inferers_to_reward,json=maxTopInferersToReward,proto3" json:"max_top_inferers_to_reward,omitempty"` - MaxTopForecastersToReward []uint64 `protobuf:"varint,22,rep,packed,name=max_top_forecasters_to_reward,json=maxTopForecastersToReward,proto3" json:"max_top_forecasters_to_reward,omitempty"` - MaxTopReputersToReward []uint64 `protobuf:"varint,23,rep,packed,name=max_top_reputers_to_reward,json=maxTopReputersToReward,proto3" json:"max_top_reputers_to_reward,omitempty"` - CreateTopicFee []cosmossdk_io_math.Int `protobuf:"bytes,24,rep,name=create_topic_fee,json=createTopicFee,proto3,customtype=cosmossdk.io/math.Int" json:"create_topic_fee"` - GradientDescentMaxIters []uint64 `protobuf:"varint,25,rep,packed,name=gradient_descent_max_iters,json=gradientDescentMaxIters,proto3" json:"gradient_descent_max_iters,omitempty"` - MaxRetriesToFulfilNoncesWorker []int64 `protobuf:"varint,26,rep,packed,name=max_retries_to_fulfil_nonces_worker,json=maxRetriesToFulfilNoncesWorker,proto3" json:"max_retries_to_fulfil_nonces_worker,omitempty"` - MaxRetriesToFulfilNoncesReputer []int64 `protobuf:"varint,27,rep,packed,name=max_retries_to_fulfil_nonces_reputer,json=maxRetriesToFulfilNoncesReputer,proto3" json:"max_retries_to_fulfil_nonces_reputer,omitempty"` - RegistrationFee []cosmossdk_io_math.Int `protobuf:"bytes,28,rep,name=registration_fee,json=registrationFee,proto3,customtype=cosmossdk.io/math.Int" json:"registration_fee"` - DefaultPageLimit []uint64 `protobuf:"varint,29,rep,packed,name=default_page_limit,json=defaultPageLimit,proto3" json:"default_page_limit,omitempty"` - MaxPageLimit []uint64 `protobuf:"varint,30,rep,packed,name=max_page_limit,json=maxPageLimit,proto3" json:"max_page_limit,omitempty"` - MinEpochLengthRecordLimit []int64 `protobuf:"varint,31,rep,packed,name=min_epoch_length_record_limit,json=minEpochLengthRecordLimit,proto3" json:"min_epoch_length_record_limit,omitempty"` - BlocksPerMonth []uint64 `protobuf:"varint,32,rep,packed,name=blocks_per_month,json=blocksPerMonth,proto3" json:"blocks_per_month,omitempty"` - PRewardInference []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,33,rep,name=p_reward_inference,json=pRewardInference,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_reward_inference"` - PRewardForecast []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,34,rep,name=p_reward_forecast,json=pRewardForecast,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_reward_forecast"` - PRewardReputer []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,35,rep,name=p_reward_reputer,json=pRewardReputer,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_reward_reputer"` - CRewardInference []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,36,rep,name=c_reward_inference,json=cRewardInference,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"c_reward_inference"` - CRewardForecast []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,37,rep,name=c_reward_forecast,json=cRewardForecast,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"c_reward_forecast"` - CNorm []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,38,rep,name=c_norm,json=cNorm,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"c_norm"` - TopicFeeRevenueDecayRate []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,39,rep,name=topic_fee_revenue_decay_rate,json=topicFeeRevenueDecayRate,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_fee_revenue_decay_rate"` - EpsilonReputer []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,40,rep,name=epsilon_reputer,json=epsilonReputer,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon_reputer"` - MinEffectiveTopicRevenue []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,41,rep,name=min_effective_topic_revenue,json=minEffectiveTopicRevenue,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"min_effective_topic_revenue"` + Version []string `protobuf:"bytes,1,rep,name=version,proto3" json:"version,omitempty"` + MaxSerializedMsgLength []int64 `protobuf:"varint,2,rep,packed,name=max_serialized_msg_length,json=maxSerializedMsgLength,proto3" json:"max_serialized_msg_length,omitempty"` + MinTopicWeight []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,3,rep,name=min_topic_weight,json=minTopicWeight,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"min_topic_weight"` + MaxTopicsPerBlock []uint64 `protobuf:"varint,4,rep,packed,name=max_topics_per_block,json=maxTopicsPerBlock,proto3" json:"max_topics_per_block,omitempty"` + RequiredMinimumStake []cosmossdk_io_math.Int `protobuf:"bytes,5,rep,name=required_minimum_stake,json=requiredMinimumStake,proto3,customtype=cosmossdk.io/math.Int" json:"required_minimum_stake"` + RemoveStakeDelayWindow []int64 `protobuf:"varint,6,rep,packed,name=remove_stake_delay_window,json=removeStakeDelayWindow,proto3" json:"remove_stake_delay_window,omitempty"` + MinEpochLength []int64 `protobuf:"varint,7,rep,packed,name=min_epoch_length,json=minEpochLength,proto3" json:"min_epoch_length,omitempty"` + BetaEntropy []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,8,rep,name=beta_entropy,json=betaEntropy,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"beta_entropy"` + LearningRate []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,9,rep,name=learning_rate,json=learningRate,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"learning_rate"` + MaxGradientThreshold []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,10,rep,name=max_gradient_threshold,json=maxGradientThreshold,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"max_gradient_threshold"` + MinStakeFraction []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,11,rep,name=min_stake_fraction,json=minStakeFraction,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"min_stake_fraction"` + MaxUnfulfilledWorkerRequests []uint64 `protobuf:"varint,13,rep,packed,name=max_unfulfilled_worker_requests,json=maxUnfulfilledWorkerRequests,proto3" json:"max_unfulfilled_worker_requests,omitempty"` + MaxUnfulfilledReputerRequests []uint64 `protobuf:"varint,14,rep,packed,name=max_unfulfilled_reputer_requests,json=maxUnfulfilledReputerRequests,proto3" json:"max_unfulfilled_reputer_requests,omitempty"` + TopicRewardStakeImportance []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,15,rep,name=topic_reward_stake_importance,json=topicRewardStakeImportance,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_reward_stake_importance"` + TopicRewardFeeRevenueImportance []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,16,rep,name=topic_reward_fee_revenue_importance,json=topicRewardFeeRevenueImportance,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_reward_fee_revenue_importance"` + TopicRewardAlpha []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,17,rep,name=topic_reward_alpha,json=topicRewardAlpha,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_reward_alpha"` + TaskRewardAlpha []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,18,rep,name=task_reward_alpha,json=taskRewardAlpha,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"task_reward_alpha"` + ValidatorsVsAlloraPercentReward []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,19,rep,name=validators_vs_allora_percent_reward,json=validatorsVsAlloraPercentReward,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"validators_vs_allora_percent_reward"` + MaxSamplesToScaleScores []uint64 `protobuf:"varint,20,rep,packed,name=max_samples_to_scale_scores,json=maxSamplesToScaleScores,proto3" json:"max_samples_to_scale_scores,omitempty"` + MaxTopInferersToReward []uint64 `protobuf:"varint,21,rep,packed,name=max_top_inferers_to_reward,json=maxTopInferersToReward,proto3" json:"max_top_inferers_to_reward,omitempty"` + MaxTopForecastersToReward []uint64 `protobuf:"varint,22,rep,packed,name=max_top_forecasters_to_reward,json=maxTopForecastersToReward,proto3" json:"max_top_forecasters_to_reward,omitempty"` + MaxTopReputersToReward []uint64 `protobuf:"varint,23,rep,packed,name=max_top_reputers_to_reward,json=maxTopReputersToReward,proto3" json:"max_top_reputers_to_reward,omitempty"` + CreateTopicFee []cosmossdk_io_math.Int `protobuf:"bytes,24,rep,name=create_topic_fee,json=createTopicFee,proto3,customtype=cosmossdk.io/math.Int" json:"create_topic_fee"` + GradientDescentMaxIters []uint64 `protobuf:"varint,25,rep,packed,name=gradient_descent_max_iters,json=gradientDescentMaxIters,proto3" json:"gradient_descent_max_iters,omitempty"` + MaxRetriesToFulfilNoncesWorker []int64 `protobuf:"varint,26,rep,packed,name=max_retries_to_fulfil_nonces_worker,json=maxRetriesToFulfilNoncesWorker,proto3" json:"max_retries_to_fulfil_nonces_worker,omitempty"` + MaxRetriesToFulfilNoncesReputer []int64 `protobuf:"varint,27,rep,packed,name=max_retries_to_fulfil_nonces_reputer,json=maxRetriesToFulfilNoncesReputer,proto3" json:"max_retries_to_fulfil_nonces_reputer,omitempty"` + RegistrationFee []cosmossdk_io_math.Int `protobuf:"bytes,28,rep,name=registration_fee,json=registrationFee,proto3,customtype=cosmossdk.io/math.Int" json:"registration_fee"` + DefaultPageLimit []uint64 `protobuf:"varint,29,rep,packed,name=default_page_limit,json=defaultPageLimit,proto3" json:"default_page_limit,omitempty"` + MaxPageLimit []uint64 `protobuf:"varint,30,rep,packed,name=max_page_limit,json=maxPageLimit,proto3" json:"max_page_limit,omitempty"` + MinEpochLengthRecordLimit []int64 `protobuf:"varint,31,rep,packed,name=min_epoch_length_record_limit,json=minEpochLengthRecordLimit,proto3" json:"min_epoch_length_record_limit,omitempty"` + BlocksPerMonth []uint64 `protobuf:"varint,32,rep,packed,name=blocks_per_month,json=blocksPerMonth,proto3" json:"blocks_per_month,omitempty"` + PRewardInference []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,33,rep,name=p_reward_inference,json=pRewardInference,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_reward_inference"` + PRewardForecast []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,34,rep,name=p_reward_forecast,json=pRewardForecast,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_reward_forecast"` + PRewardReputer []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,35,rep,name=p_reward_reputer,json=pRewardReputer,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_reward_reputer"` + CRewardInference []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,36,rep,name=c_reward_inference,json=cRewardInference,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"c_reward_inference"` + CRewardForecast []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,37,rep,name=c_reward_forecast,json=cRewardForecast,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"c_reward_forecast"` + CNorm []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,38,rep,name=c_norm,json=cNorm,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"c_norm"` + TopicFeeRevenueDecayRate []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,39,rep,name=topic_fee_revenue_decay_rate,json=topicFeeRevenueDecayRate,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"topic_fee_revenue_decay_rate"` + EpsilonReputer []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,40,rep,name=epsilon_reputer,json=epsilonReputer,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon_reputer"` + MinEffectiveTopicRevenue []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,41,rep,name=min_effective_topic_revenue,json=minEffectiveTopicRevenue,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"min_effective_topic_revenue"` + HalfMaxProcessStakeRemovalsEndBlock []uint64 `protobuf:"varint,42,rep,packed,name=half_max_process_stake_removals_end_block,json=halfMaxProcessStakeRemovalsEndBlock,proto3" json:"half_max_process_stake_removals_end_block,omitempty"` + DataSendingFee []cosmossdk_io_math.Int `protobuf:"bytes,43,rep,name=data_sending_fee,json=dataSendingFee,proto3,customtype=cosmossdk.io/math.Int" json:"data_sending_fee"` + EpsilonSafeDiv []github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,44,rep,name=epsilon_safe_div,json=epsilonSafeDiv,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon_safe_div"` } func (m *OptionalParams) Reset() { *m = OptionalParams{} } func (m *OptionalParams) String() string { return proto.CompactTextString(m) } func (*OptionalParams) ProtoMessage() {} func (*OptionalParams) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{0} + return fileDescriptor_e3de9f2da2f032d3, []int{0} } func (m *OptionalParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -241,6 +244,13 @@ func (m *OptionalParams) GetBlocksPerMonth() []uint64 { return nil } +func (m *OptionalParams) GetHalfMaxProcessStakeRemovalsEndBlock() []uint64 { + if m != nil { + return m.HalfMaxProcessStakeRemovalsEndBlock + } + return nil +} + type MsgUpdateParams struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Params *OptionalParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"` @@ -250,7 +260,7 @@ func (m *MsgUpdateParams) Reset() { *m = MsgUpdateParams{} } func (m *MsgUpdateParams) String() string { return proto.CompactTextString(m) } func (*MsgUpdateParams) ProtoMessage() {} func (*MsgUpdateParams) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{1} + return fileDescriptor_e3de9f2da2f032d3, []int{1} } func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -300,7 +310,7 @@ func (m *MsgUpdateParamsResponse) Reset() { *m = MsgUpdateParamsResponse func (m *MsgUpdateParamsResponse) String() string { return proto.CompactTextString(m) } func (*MsgUpdateParamsResponse) ProtoMessage() {} func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{2} + return fileDescriptor_e3de9f2da2f032d3, []int{2} } func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -331,26 +341,23 @@ var xxx_messageInfo_MsgUpdateParamsResponse proto.InternalMessageInfo type MsgCreateNewTopic struct { // creator is the message sender. - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - LossLogic string `protobuf:"bytes,3,opt,name=loss_logic,json=lossLogic,proto3" json:"loss_logic,omitempty"` - LossMethod string `protobuf:"bytes,4,opt,name=loss_method,json=lossMethod,proto3" json:"loss_method,omitempty"` - InferenceLogic string `protobuf:"bytes,5,opt,name=inference_logic,json=inferenceLogic,proto3" json:"inference_logic,omitempty"` - InferenceMethod string `protobuf:"bytes,6,opt,name=inference_method,json=inferenceMethod,proto3" json:"inference_method,omitempty"` - EpochLength int64 `protobuf:"varint,7,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` - GroundTruthLag int64 `protobuf:"varint,8,opt,name=ground_truth_lag,json=groundTruthLag,proto3" json:"ground_truth_lag,omitempty"` - DefaultArg string `protobuf:"bytes,9,opt,name=default_arg,json=defaultArg,proto3" json:"default_arg,omitempty"` - PNorm github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,10,opt,name=p_norm,json=pNorm,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_norm"` - AlphaRegret github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,11,opt,name=alpha_regret,json=alphaRegret,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"alpha_regret"` - AllowNegative bool `protobuf:"varint,12,opt,name=allow_negative,json=allowNegative,proto3" json:"allow_negative,omitempty"` - Epsilon github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,13,opt,name=epsilon,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + LossMethod string `protobuf:"bytes,4,opt,name=loss_method,json=lossMethod,proto3" json:"loss_method,omitempty"` + EpochLength int64 `protobuf:"varint,7,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"` + GroundTruthLag int64 `protobuf:"varint,8,opt,name=ground_truth_lag,json=groundTruthLag,proto3" json:"ground_truth_lag,omitempty"` + PNorm github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,10,opt,name=p_norm,json=pNorm,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"p_norm"` + AlphaRegret github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,11,opt,name=alpha_regret,json=alphaRegret,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"alpha_regret"` + AllowNegative bool `protobuf:"varint,12,opt,name=allow_negative,json=allowNegative,proto3" json:"allow_negative,omitempty"` + Epsilon github_com_allora_network_allora_chain_math.Dec `protobuf:"bytes,13,opt,name=epsilon,proto3,customtype=github.com/allora-network/allora-chain/math.Dec" json:"epsilon"` + WorkerSubmissionWindow int64 `protobuf:"varint,14,opt,name=worker_submission_window,json=workerSubmissionWindow,proto3" json:"worker_submission_window,omitempty"` } func (m *MsgCreateNewTopic) Reset() { *m = MsgCreateNewTopic{} } func (m *MsgCreateNewTopic) String() string { return proto.CompactTextString(m) } func (*MsgCreateNewTopic) ProtoMessage() {} func (*MsgCreateNewTopic) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{3} + return fileDescriptor_e3de9f2da2f032d3, []int{3} } func (m *MsgCreateNewTopic) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -393,13 +400,6 @@ func (m *MsgCreateNewTopic) GetMetadata() string { return "" } -func (m *MsgCreateNewTopic) GetLossLogic() string { - if m != nil { - return m.LossLogic - } - return "" -} - func (m *MsgCreateNewTopic) GetLossMethod() string { if m != nil { return m.LossMethod @@ -407,20 +407,6 @@ func (m *MsgCreateNewTopic) GetLossMethod() string { return "" } -func (m *MsgCreateNewTopic) GetInferenceLogic() string { - if m != nil { - return m.InferenceLogic - } - return "" -} - -func (m *MsgCreateNewTopic) GetInferenceMethod() string { - if m != nil { - return m.InferenceMethod - } - return "" -} - func (m *MsgCreateNewTopic) GetEpochLength() int64 { if m != nil { return m.EpochLength @@ -435,18 +421,18 @@ func (m *MsgCreateNewTopic) GetGroundTruthLag() int64 { return 0 } -func (m *MsgCreateNewTopic) GetDefaultArg() string { +func (m *MsgCreateNewTopic) GetAllowNegative() bool { if m != nil { - return m.DefaultArg + return m.AllowNegative } - return "" + return false } -func (m *MsgCreateNewTopic) GetAllowNegative() bool { +func (m *MsgCreateNewTopic) GetWorkerSubmissionWindow() int64 { if m != nil { - return m.AllowNegative + return m.WorkerSubmissionWindow } - return false + return 0 } type MsgCreateNewTopicResponse struct { @@ -457,7 +443,7 @@ func (m *MsgCreateNewTopicResponse) Reset() { *m = MsgCreateNewTopicResp func (m *MsgCreateNewTopicResponse) String() string { return proto.CompactTextString(m) } func (*MsgCreateNewTopicResponse) ProtoMessage() {} func (*MsgCreateNewTopicResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{4} + return fileDescriptor_e3de9f2da2f032d3, []int{4} } func (m *MsgCreateNewTopicResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -493,25 +479,23 @@ func (m *MsgCreateNewTopicResponse) GetTopicId() uint64 { return 0 } -type MsgInsertBulkReputerPayload struct { - Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` - ReputerRequestNonce *ReputerRequestNonce `protobuf:"bytes,2,opt,name=reputer_request_nonce,json=reputerRequestNonce,proto3" json:"reputer_request_nonce,omitempty"` - TopicId uint64 `protobuf:"varint,3,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - ReputerValueBundles []*ReputerValueBundle `protobuf:"bytes,4,rep,name=reputer_value_bundles,json=reputerValueBundles,proto3" json:"reputer_value_bundles,omitempty"` +type MsgInsertReputerPayload struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + ReputerValueBundle *ReputerValueBundle `protobuf:"bytes,2,opt,name=reputer_value_bundle,json=reputerValueBundle,proto3" json:"reputer_value_bundle,omitempty"` } -func (m *MsgInsertBulkReputerPayload) Reset() { *m = MsgInsertBulkReputerPayload{} } -func (m *MsgInsertBulkReputerPayload) String() string { return proto.CompactTextString(m) } -func (*MsgInsertBulkReputerPayload) ProtoMessage() {} -func (*MsgInsertBulkReputerPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{5} +func (m *MsgInsertReputerPayload) Reset() { *m = MsgInsertReputerPayload{} } +func (m *MsgInsertReputerPayload) String() string { return proto.CompactTextString(m) } +func (*MsgInsertReputerPayload) ProtoMessage() {} +func (*MsgInsertReputerPayload) Descriptor() ([]byte, []int) { + return fileDescriptor_e3de9f2da2f032d3, []int{5} } -func (m *MsgInsertBulkReputerPayload) XXX_Unmarshal(b []byte) error { +func (m *MsgInsertReputerPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgInsertBulkReputerPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgInsertReputerPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgInsertBulkReputerPayload.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgInsertReputerPayload.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -521,61 +505,47 @@ func (m *MsgInsertBulkReputerPayload) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *MsgInsertBulkReputerPayload) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgInsertBulkReputerPayload.Merge(m, src) +func (m *MsgInsertReputerPayload) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgInsertReputerPayload.Merge(m, src) } -func (m *MsgInsertBulkReputerPayload) XXX_Size() int { +func (m *MsgInsertReputerPayload) XXX_Size() int { return m.Size() } -func (m *MsgInsertBulkReputerPayload) XXX_DiscardUnknown() { - xxx_messageInfo_MsgInsertBulkReputerPayload.DiscardUnknown(m) +func (m *MsgInsertReputerPayload) XXX_DiscardUnknown() { + xxx_messageInfo_MsgInsertReputerPayload.DiscardUnknown(m) } -var xxx_messageInfo_MsgInsertBulkReputerPayload proto.InternalMessageInfo +var xxx_messageInfo_MsgInsertReputerPayload proto.InternalMessageInfo -func (m *MsgInsertBulkReputerPayload) GetSender() string { +func (m *MsgInsertReputerPayload) GetSender() string { if m != nil { return m.Sender } return "" } -func (m *MsgInsertBulkReputerPayload) GetReputerRequestNonce() *ReputerRequestNonce { - if m != nil { - return m.ReputerRequestNonce - } - return nil -} - -func (m *MsgInsertBulkReputerPayload) GetTopicId() uint64 { - if m != nil { - return m.TopicId - } - return 0 -} - -func (m *MsgInsertBulkReputerPayload) GetReputerValueBundles() []*ReputerValueBundle { +func (m *MsgInsertReputerPayload) GetReputerValueBundle() *ReputerValueBundle { if m != nil { - return m.ReputerValueBundles + return m.ReputerValueBundle } return nil } -type MsgInsertBulkReputerPayloadResponse struct { +type MsgInsertReputerPayloadResponse struct { } -func (m *MsgInsertBulkReputerPayloadResponse) Reset() { *m = MsgInsertBulkReputerPayloadResponse{} } -func (m *MsgInsertBulkReputerPayloadResponse) String() string { return proto.CompactTextString(m) } -func (*MsgInsertBulkReputerPayloadResponse) ProtoMessage() {} -func (*MsgInsertBulkReputerPayloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{6} +func (m *MsgInsertReputerPayloadResponse) Reset() { *m = MsgInsertReputerPayloadResponse{} } +func (m *MsgInsertReputerPayloadResponse) String() string { return proto.CompactTextString(m) } +func (*MsgInsertReputerPayloadResponse) ProtoMessage() {} +func (*MsgInsertReputerPayloadResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e3de9f2da2f032d3, []int{6} } -func (m *MsgInsertBulkReputerPayloadResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgInsertReputerPayloadResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgInsertBulkReputerPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgInsertReputerPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgInsertBulkReputerPayloadResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgInsertReputerPayloadResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -585,37 +555,35 @@ func (m *MsgInsertBulkReputerPayloadResponse) XXX_Marshal(b []byte, deterministi return b[:n], nil } } -func (m *MsgInsertBulkReputerPayloadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgInsertBulkReputerPayloadResponse.Merge(m, src) +func (m *MsgInsertReputerPayloadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgInsertReputerPayloadResponse.Merge(m, src) } -func (m *MsgInsertBulkReputerPayloadResponse) XXX_Size() int { +func (m *MsgInsertReputerPayloadResponse) XXX_Size() int { return m.Size() } -func (m *MsgInsertBulkReputerPayloadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgInsertBulkReputerPayloadResponse.DiscardUnknown(m) +func (m *MsgInsertReputerPayloadResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgInsertReputerPayloadResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgInsertBulkReputerPayloadResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgInsertReputerPayloadResponse proto.InternalMessageInfo -type MsgInsertBulkWorkerPayload struct { - Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` - Nonce *Nonce `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` - TopicId uint64 `protobuf:"varint,3,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - WorkerDataBundles []*WorkerDataBundle `protobuf:"bytes,4,rep,name=worker_data_bundles,json=workerDataBundles,proto3" json:"worker_data_bundles,omitempty"` +type MsgInsertWorkerPayload struct { + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + WorkerDataBundle *WorkerDataBundle `protobuf:"bytes,2,opt,name=worker_data_bundle,json=workerDataBundle,proto3" json:"worker_data_bundle,omitempty"` } -func (m *MsgInsertBulkWorkerPayload) Reset() { *m = MsgInsertBulkWorkerPayload{} } -func (m *MsgInsertBulkWorkerPayload) String() string { return proto.CompactTextString(m) } -func (*MsgInsertBulkWorkerPayload) ProtoMessage() {} -func (*MsgInsertBulkWorkerPayload) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{7} +func (m *MsgInsertWorkerPayload) Reset() { *m = MsgInsertWorkerPayload{} } +func (m *MsgInsertWorkerPayload) String() string { return proto.CompactTextString(m) } +func (*MsgInsertWorkerPayload) ProtoMessage() {} +func (*MsgInsertWorkerPayload) Descriptor() ([]byte, []int) { + return fileDescriptor_e3de9f2da2f032d3, []int{7} } -func (m *MsgInsertBulkWorkerPayload) XXX_Unmarshal(b []byte) error { +func (m *MsgInsertWorkerPayload) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgInsertBulkWorkerPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgInsertWorkerPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgInsertBulkWorkerPayload.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgInsertWorkerPayload.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -625,61 +593,47 @@ func (m *MsgInsertBulkWorkerPayload) XXX_Marshal(b []byte, deterministic bool) ( return b[:n], nil } } -func (m *MsgInsertBulkWorkerPayload) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgInsertBulkWorkerPayload.Merge(m, src) +func (m *MsgInsertWorkerPayload) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgInsertWorkerPayload.Merge(m, src) } -func (m *MsgInsertBulkWorkerPayload) XXX_Size() int { +func (m *MsgInsertWorkerPayload) XXX_Size() int { return m.Size() } -func (m *MsgInsertBulkWorkerPayload) XXX_DiscardUnknown() { - xxx_messageInfo_MsgInsertBulkWorkerPayload.DiscardUnknown(m) +func (m *MsgInsertWorkerPayload) XXX_DiscardUnknown() { + xxx_messageInfo_MsgInsertWorkerPayload.DiscardUnknown(m) } -var xxx_messageInfo_MsgInsertBulkWorkerPayload proto.InternalMessageInfo +var xxx_messageInfo_MsgInsertWorkerPayload proto.InternalMessageInfo -func (m *MsgInsertBulkWorkerPayload) GetSender() string { +func (m *MsgInsertWorkerPayload) GetSender() string { if m != nil { return m.Sender } return "" } -func (m *MsgInsertBulkWorkerPayload) GetNonce() *Nonce { - if m != nil { - return m.Nonce - } - return nil -} - -func (m *MsgInsertBulkWorkerPayload) GetTopicId() uint64 { - if m != nil { - return m.TopicId - } - return 0 -} - -func (m *MsgInsertBulkWorkerPayload) GetWorkerDataBundles() []*WorkerDataBundle { +func (m *MsgInsertWorkerPayload) GetWorkerDataBundle() *WorkerDataBundle { if m != nil { - return m.WorkerDataBundles + return m.WorkerDataBundle } return nil } -type MsgInsertBulkWorkerPayloadResponse struct { +type MsgInsertWorkerPayloadResponse struct { } -func (m *MsgInsertBulkWorkerPayloadResponse) Reset() { *m = MsgInsertBulkWorkerPayloadResponse{} } -func (m *MsgInsertBulkWorkerPayloadResponse) String() string { return proto.CompactTextString(m) } -func (*MsgInsertBulkWorkerPayloadResponse) ProtoMessage() {} -func (*MsgInsertBulkWorkerPayloadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{8} +func (m *MsgInsertWorkerPayloadResponse) Reset() { *m = MsgInsertWorkerPayloadResponse{} } +func (m *MsgInsertWorkerPayloadResponse) String() string { return proto.CompactTextString(m) } +func (*MsgInsertWorkerPayloadResponse) ProtoMessage() {} +func (*MsgInsertWorkerPayloadResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_e3de9f2da2f032d3, []int{8} } -func (m *MsgInsertBulkWorkerPayloadResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgInsertWorkerPayloadResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgInsertBulkWorkerPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgInsertWorkerPayloadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgInsertBulkWorkerPayloadResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgInsertWorkerPayloadResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -689,32 +643,30 @@ func (m *MsgInsertBulkWorkerPayloadResponse) XXX_Marshal(b []byte, deterministic return b[:n], nil } } -func (m *MsgInsertBulkWorkerPayloadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgInsertBulkWorkerPayloadResponse.Merge(m, src) +func (m *MsgInsertWorkerPayloadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgInsertWorkerPayloadResponse.Merge(m, src) } -func (m *MsgInsertBulkWorkerPayloadResponse) XXX_Size() int { +func (m *MsgInsertWorkerPayloadResponse) XXX_Size() int { return m.Size() } -func (m *MsgInsertBulkWorkerPayloadResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgInsertBulkWorkerPayloadResponse.DiscardUnknown(m) +func (m *MsgInsertWorkerPayloadResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgInsertWorkerPayloadResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgInsertBulkWorkerPayloadResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgInsertWorkerPayloadResponse proto.InternalMessageInfo type MsgRegister struct { - Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` - LibP2PKey string `protobuf:"bytes,2,opt,name=lib_p2p_key,json=libP2pKey,proto3" json:"lib_p2p_key,omitempty"` - MultiAddress string `protobuf:"bytes,3,opt,name=multi_address,json=multiAddress,proto3" json:"multi_address,omitempty"` - TopicId uint64 `protobuf:"varint,4,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` - Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` - IsReputer bool `protobuf:"varint,6,opt,name=is_reputer,json=isReputer,proto3" json:"is_reputer,omitempty"` + Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` + TopicId uint64 `protobuf:"varint,4,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` + IsReputer bool `protobuf:"varint,6,opt,name=is_reputer,json=isReputer,proto3" json:"is_reputer,omitempty"` } func (m *MsgRegister) Reset() { *m = MsgRegister{} } func (m *MsgRegister) String() string { return proto.CompactTextString(m) } func (*MsgRegister) ProtoMessage() {} func (*MsgRegister) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{9} + return fileDescriptor_e3de9f2da2f032d3, []int{9} } func (m *MsgRegister) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -750,20 +702,6 @@ func (m *MsgRegister) GetSender() string { return "" } -func (m *MsgRegister) GetLibP2PKey() string { - if m != nil { - return m.LibP2PKey - } - return "" -} - -func (m *MsgRegister) GetMultiAddress() string { - if m != nil { - return m.MultiAddress - } - return "" -} - func (m *MsgRegister) GetTopicId() uint64 { if m != nil { return m.TopicId @@ -794,7 +732,7 @@ func (m *MsgRegisterResponse) Reset() { *m = MsgRegisterResponse{} } func (m *MsgRegisterResponse) String() string { return proto.CompactTextString(m) } func (*MsgRegisterResponse) ProtoMessage() {} func (*MsgRegisterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{10} + return fileDescriptor_e3de9f2da2f032d3, []int{10} } func (m *MsgRegisterResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -847,7 +785,7 @@ func (m *MsgRemoveRegistration) Reset() { *m = MsgRemoveRegistration{} } func (m *MsgRemoveRegistration) String() string { return proto.CompactTextString(m) } func (*MsgRemoveRegistration) ProtoMessage() {} func (*MsgRemoveRegistration) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{11} + return fileDescriptor_e3de9f2da2f032d3, []int{11} } func (m *MsgRemoveRegistration) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -906,7 +844,7 @@ func (m *MsgRemoveRegistrationResponse) Reset() { *m = MsgRemoveRegistra func (m *MsgRemoveRegistrationResponse) String() string { return proto.CompactTextString(m) } func (*MsgRemoveRegistrationResponse) ProtoMessage() {} func (*MsgRemoveRegistrationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{12} + return fileDescriptor_e3de9f2da2f032d3, []int{12} } func (m *MsgRemoveRegistrationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -959,7 +897,7 @@ func (m *MsgAddStake) Reset() { *m = MsgAddStake{} } func (m *MsgAddStake) String() string { return proto.CompactTextString(m) } func (*MsgAddStake) ProtoMessage() {} func (*MsgAddStake) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{13} + return fileDescriptor_e3de9f2da2f032d3, []int{13} } func (m *MsgAddStake) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1009,7 +947,7 @@ func (m *MsgAddStakeResponse) Reset() { *m = MsgAddStakeResponse{} } func (m *MsgAddStakeResponse) String() string { return proto.CompactTextString(m) } func (*MsgAddStakeResponse) ProtoMessage() {} func (*MsgAddStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{14} + return fileDescriptor_e3de9f2da2f032d3, []int{14} } func (m *MsgAddStakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1048,7 +986,7 @@ func (m *MsgRemoveStake) Reset() { *m = MsgRemoveStake{} } func (m *MsgRemoveStake) String() string { return proto.CompactTextString(m) } func (*MsgRemoveStake) ProtoMessage() {} func (*MsgRemoveStake) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{15} + return fileDescriptor_e3de9f2da2f032d3, []int{15} } func (m *MsgRemoveStake) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1098,7 +1036,7 @@ func (m *MsgRemoveStakeResponse) Reset() { *m = MsgRemoveStakeResponse{} func (m *MsgRemoveStakeResponse) String() string { return proto.CompactTextString(m) } func (*MsgRemoveStakeResponse) ProtoMessage() {} func (*MsgRemoveStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{16} + return fileDescriptor_e3de9f2da2f032d3, []int{16} } func (m *MsgRemoveStakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1136,7 +1074,7 @@ func (m *MsgCancelRemoveStake) Reset() { *m = MsgCancelRemoveStake{} } func (m *MsgCancelRemoveStake) String() string { return proto.CompactTextString(m) } func (*MsgCancelRemoveStake) ProtoMessage() {} func (*MsgCancelRemoveStake) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{17} + return fileDescriptor_e3de9f2da2f032d3, []int{17} } func (m *MsgCancelRemoveStake) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1186,7 +1124,7 @@ func (m *MsgCancelRemoveStakeResponse) Reset() { *m = MsgCancelRemoveSta func (m *MsgCancelRemoveStakeResponse) String() string { return proto.CompactTextString(m) } func (*MsgCancelRemoveStakeResponse) ProtoMessage() {} func (*MsgCancelRemoveStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{18} + return fileDescriptor_e3de9f2da2f032d3, []int{18} } func (m *MsgCancelRemoveStakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1226,7 +1164,7 @@ func (m *MsgDelegateStake) Reset() { *m = MsgDelegateStake{} } func (m *MsgDelegateStake) String() string { return proto.CompactTextString(m) } func (*MsgDelegateStake) ProtoMessage() {} func (*MsgDelegateStake) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{19} + return fileDescriptor_e3de9f2da2f032d3, []int{19} } func (m *MsgDelegateStake) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1283,7 +1221,7 @@ func (m *MsgDelegateStakeResponse) Reset() { *m = MsgDelegateStakeRespon func (m *MsgDelegateStakeResponse) String() string { return proto.CompactTextString(m) } func (*MsgDelegateStakeResponse) ProtoMessage() {} func (*MsgDelegateStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{20} + return fileDescriptor_e3de9f2da2f032d3, []int{20} } func (m *MsgDelegateStakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1323,7 +1261,7 @@ func (m *MsgRemoveDelegateStake) Reset() { *m = MsgRemoveDelegateStake{} func (m *MsgRemoveDelegateStake) String() string { return proto.CompactTextString(m) } func (*MsgRemoveDelegateStake) ProtoMessage() {} func (*MsgRemoveDelegateStake) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{21} + return fileDescriptor_e3de9f2da2f032d3, []int{21} } func (m *MsgRemoveDelegateStake) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1380,7 +1318,7 @@ func (m *MsgRemoveDelegateStakeResponse) Reset() { *m = MsgRemoveDelegat func (m *MsgRemoveDelegateStakeResponse) String() string { return proto.CompactTextString(m) } func (*MsgRemoveDelegateStakeResponse) ProtoMessage() {} func (*MsgRemoveDelegateStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{22} + return fileDescriptor_e3de9f2da2f032d3, []int{22} } func (m *MsgRemoveDelegateStakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1420,7 +1358,7 @@ func (m *MsgCancelRemoveDelegateStake) Reset() { *m = MsgCancelRemoveDel func (m *MsgCancelRemoveDelegateStake) String() string { return proto.CompactTextString(m) } func (*MsgCancelRemoveDelegateStake) ProtoMessage() {} func (*MsgCancelRemoveDelegateStake) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{23} + return fileDescriptor_e3de9f2da2f032d3, []int{23} } func (m *MsgCancelRemoveDelegateStake) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1484,7 +1422,7 @@ func (m *MsgCancelRemoveDelegateStakeResponse) Reset() { *m = MsgCancelR func (m *MsgCancelRemoveDelegateStakeResponse) String() string { return proto.CompactTextString(m) } func (*MsgCancelRemoveDelegateStakeResponse) ProtoMessage() {} func (*MsgCancelRemoveDelegateStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{24} + return fileDescriptor_e3de9f2da2f032d3, []int{24} } func (m *MsgCancelRemoveDelegateStakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1525,7 +1463,7 @@ func (m *MsgFundTopic) Reset() { *m = MsgFundTopic{} } func (m *MsgFundTopic) String() string { return proto.CompactTextString(m) } func (*MsgFundTopic) ProtoMessage() {} func (*MsgFundTopic) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{25} + return fileDescriptor_e3de9f2da2f032d3, []int{25} } func (m *MsgFundTopic) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1575,7 +1513,7 @@ func (m *MsgFundTopicResponse) Reset() { *m = MsgFundTopicResponse{} } func (m *MsgFundTopicResponse) String() string { return proto.CompactTextString(m) } func (*MsgFundTopicResponse) ProtoMessage() {} func (*MsgFundTopicResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{26} + return fileDescriptor_e3de9f2da2f032d3, []int{26} } func (m *MsgFundTopicResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1613,7 +1551,7 @@ func (m *MsgAddToWhitelistAdmin) Reset() { *m = MsgAddToWhitelistAdmin{} func (m *MsgAddToWhitelistAdmin) String() string { return proto.CompactTextString(m) } func (*MsgAddToWhitelistAdmin) ProtoMessage() {} func (*MsgAddToWhitelistAdmin) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{27} + return fileDescriptor_e3de9f2da2f032d3, []int{27} } func (m *MsgAddToWhitelistAdmin) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1663,7 +1601,7 @@ func (m *MsgAddToWhitelistAdminResponse) Reset() { *m = MsgAddToWhitelis func (m *MsgAddToWhitelistAdminResponse) String() string { return proto.CompactTextString(m) } func (*MsgAddToWhitelistAdminResponse) ProtoMessage() {} func (*MsgAddToWhitelistAdminResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{28} + return fileDescriptor_e3de9f2da2f032d3, []int{28} } func (m *MsgAddToWhitelistAdminResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1701,7 +1639,7 @@ func (m *MsgRemoveFromWhitelistAdmin) Reset() { *m = MsgRemoveFromWhitel func (m *MsgRemoveFromWhitelistAdmin) String() string { return proto.CompactTextString(m) } func (*MsgRemoveFromWhitelistAdmin) ProtoMessage() {} func (*MsgRemoveFromWhitelistAdmin) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{29} + return fileDescriptor_e3de9f2da2f032d3, []int{29} } func (m *MsgRemoveFromWhitelistAdmin) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1751,7 +1689,7 @@ func (m *MsgRemoveFromWhitelistAdminResponse) Reset() { *m = MsgRemoveFr func (m *MsgRemoveFromWhitelistAdminResponse) String() string { return proto.CompactTextString(m) } func (*MsgRemoveFromWhitelistAdminResponse) ProtoMessage() {} func (*MsgRemoveFromWhitelistAdminResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{30} + return fileDescriptor_e3de9f2da2f032d3, []int{30} } func (m *MsgRemoveFromWhitelistAdminResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1787,7 +1725,7 @@ func (m *MsgRewardDelegateStakeResponse) Reset() { *m = MsgRewardDelegat func (m *MsgRewardDelegateStakeResponse) String() string { return proto.CompactTextString(m) } func (*MsgRewardDelegateStakeResponse) ProtoMessage() {} func (*MsgRewardDelegateStakeResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{31} + return fileDescriptor_e3de9f2da2f032d3, []int{31} } func (m *MsgRewardDelegateStakeResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1826,7 +1764,7 @@ func (m *MsgRewardDelegateStake) Reset() { *m = MsgRewardDelegateStake{} func (m *MsgRewardDelegateStake) String() string { return proto.CompactTextString(m) } func (*MsgRewardDelegateStake) ProtoMessage() {} func (*MsgRewardDelegateStake) Descriptor() ([]byte, []int) { - return fileDescriptor_8293ea1b0f4b608c, []int{32} + return fileDescriptor_e3de9f2da2f032d3, []int{32} } func (m *MsgRewardDelegateStake) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1877,197 +1815,200 @@ func (m *MsgRewardDelegateStake) GetReputer() string { } func init() { - proto.RegisterType((*OptionalParams)(nil), "emissions.v1.OptionalParams") - proto.RegisterType((*MsgUpdateParams)(nil), "emissions.v1.MsgUpdateParams") - proto.RegisterType((*MsgUpdateParamsResponse)(nil), "emissions.v1.MsgUpdateParamsResponse") - proto.RegisterType((*MsgCreateNewTopic)(nil), "emissions.v1.MsgCreateNewTopic") - proto.RegisterType((*MsgCreateNewTopicResponse)(nil), "emissions.v1.MsgCreateNewTopicResponse") - proto.RegisterType((*MsgInsertBulkReputerPayload)(nil), "emissions.v1.MsgInsertBulkReputerPayload") - proto.RegisterType((*MsgInsertBulkReputerPayloadResponse)(nil), "emissions.v1.MsgInsertBulkReputerPayloadResponse") - proto.RegisterType((*MsgInsertBulkWorkerPayload)(nil), "emissions.v1.MsgInsertBulkWorkerPayload") - proto.RegisterType((*MsgInsertBulkWorkerPayloadResponse)(nil), "emissions.v1.MsgInsertBulkWorkerPayloadResponse") - proto.RegisterType((*MsgRegister)(nil), "emissions.v1.MsgRegister") - proto.RegisterType((*MsgRegisterResponse)(nil), "emissions.v1.MsgRegisterResponse") - proto.RegisterType((*MsgRemoveRegistration)(nil), "emissions.v1.MsgRemoveRegistration") - proto.RegisterType((*MsgRemoveRegistrationResponse)(nil), "emissions.v1.MsgRemoveRegistrationResponse") - proto.RegisterType((*MsgAddStake)(nil), "emissions.v1.MsgAddStake") - proto.RegisterType((*MsgAddStakeResponse)(nil), "emissions.v1.MsgAddStakeResponse") - proto.RegisterType((*MsgRemoveStake)(nil), "emissions.v1.MsgRemoveStake") - proto.RegisterType((*MsgRemoveStakeResponse)(nil), "emissions.v1.MsgRemoveStakeResponse") - proto.RegisterType((*MsgCancelRemoveStake)(nil), "emissions.v1.MsgCancelRemoveStake") - proto.RegisterType((*MsgCancelRemoveStakeResponse)(nil), "emissions.v1.MsgCancelRemoveStakeResponse") - proto.RegisterType((*MsgDelegateStake)(nil), "emissions.v1.MsgDelegateStake") - proto.RegisterType((*MsgDelegateStakeResponse)(nil), "emissions.v1.MsgDelegateStakeResponse") - proto.RegisterType((*MsgRemoveDelegateStake)(nil), "emissions.v1.MsgRemoveDelegateStake") - proto.RegisterType((*MsgRemoveDelegateStakeResponse)(nil), "emissions.v1.MsgRemoveDelegateStakeResponse") - proto.RegisterType((*MsgCancelRemoveDelegateStake)(nil), "emissions.v1.MsgCancelRemoveDelegateStake") - proto.RegisterType((*MsgCancelRemoveDelegateStakeResponse)(nil), "emissions.v1.MsgCancelRemoveDelegateStakeResponse") - proto.RegisterType((*MsgFundTopic)(nil), "emissions.v1.MsgFundTopic") - proto.RegisterType((*MsgFundTopicResponse)(nil), "emissions.v1.MsgFundTopicResponse") - proto.RegisterType((*MsgAddToWhitelistAdmin)(nil), "emissions.v1.MsgAddToWhitelistAdmin") - proto.RegisterType((*MsgAddToWhitelistAdminResponse)(nil), "emissions.v1.MsgAddToWhitelistAdminResponse") - proto.RegisterType((*MsgRemoveFromWhitelistAdmin)(nil), "emissions.v1.MsgRemoveFromWhitelistAdmin") - proto.RegisterType((*MsgRemoveFromWhitelistAdminResponse)(nil), "emissions.v1.MsgRemoveFromWhitelistAdminResponse") - proto.RegisterType((*MsgRewardDelegateStakeResponse)(nil), "emissions.v1.MsgRewardDelegateStakeResponse") - proto.RegisterType((*MsgRewardDelegateStake)(nil), "emissions.v1.MsgRewardDelegateStake") -} - -func init() { proto.RegisterFile("emissions/v1/tx.proto", fileDescriptor_8293ea1b0f4b608c) } - -var fileDescriptor_8293ea1b0f4b608c = []byte{ - // 2430 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcb, 0x6f, 0x1c, 0x49, - 0x19, 0xcf, 0xc4, 0xef, 0x6f, 0xc6, 0xaf, 0xf6, 0x23, 0xed, 0x89, 0x3d, 0x76, 0x6c, 0x27, 0x99, - 0x84, 0x5d, 0x7b, 0x63, 0x10, 0x8f, 0xc0, 0x01, 0x07, 0xc7, 0xbb, 0x56, 0x32, 0xc6, 0xdb, 0x71, - 0x62, 0x29, 0xac, 0xd4, 0x94, 0xbb, 0x6b, 0x7a, 0x5a, 0xee, 0xee, 0x6a, 0xaa, 0x7a, 0xc6, 0xf6, - 0x72, 0x41, 0x48, 0x5c, 0x38, 0x71, 0x02, 0xc4, 0x1f, 0x80, 0x38, 0xee, 0x01, 0x71, 0xe2, 0xc2, - 0x89, 0x3d, 0xae, 0xb8, 0x80, 0x38, 0xac, 0x50, 0x72, 0xd8, 0x3f, 0x03, 0x54, 0x8f, 0xee, 0xe9, - 0x9e, 0x57, 0xac, 0x74, 0x90, 0xf6, 0x12, 0xa5, 0xeb, 0xfb, 0xea, 0xf7, 0x7d, 0xdf, 0xaf, 0xea, - 0x7b, 0x94, 0x35, 0xb0, 0x80, 0x7d, 0x97, 0x31, 0x97, 0x04, 0x6c, 0xbb, 0xf5, 0x60, 0x3b, 0xba, - 0xd8, 0x0a, 0x29, 0x89, 0x88, 0x56, 0x4a, 0x96, 0xb7, 0x5a, 0x0f, 0xca, 0x37, 0x2c, 0xc2, 0x7c, - 0xc2, 0xb6, 0x7d, 0xe6, 0x70, 0x2d, 0x9f, 0x39, 0x52, 0xad, 0x3c, 0xef, 0x10, 0x87, 0x88, 0xff, - 0x6e, 0xf3, 0xff, 0xa9, 0xd5, 0x59, 0xe4, 0xbb, 0x01, 0xd9, 0x16, 0xff, 0xaa, 0x25, 0x3d, 0x6b, - 0xe6, 0x32, 0xc4, 0x4c, 0x49, 0x96, 0x24, 0xb6, 0x29, 0x51, 0xe4, 0x47, 0xcf, 0x4d, 0x01, 0x09, - 0x2c, 0xac, 0x24, 0xe5, 0x8c, 0x84, 0xe2, 0xb0, 0x19, 0x61, 0x1a, 0x03, 0x66, 0x64, 0xe7, 0x84, - 0x9e, 0xc5, 0xa2, 0xf5, 0x3f, 0x96, 0x61, 0xea, 0xc7, 0x61, 0xe4, 0x92, 0x00, 0x79, 0x47, 0x88, - 0x22, 0x9f, 0x69, 0x3a, 0x8c, 0xb5, 0x30, 0xe5, 0xea, 0x7a, 0x61, 0x6d, 0xa8, 0x3a, 0x61, 0xc4, - 0x9f, 0xda, 0xf7, 0x60, 0xc9, 0x47, 0x17, 0x26, 0xc3, 0xd4, 0x45, 0x9e, 0xfb, 0x29, 0xb6, 0x4d, - 0x9f, 0x39, 0xa6, 0x87, 0x03, 0x27, 0x6a, 0xe8, 0xd7, 0xd7, 0x86, 0xaa, 0x43, 0xc6, 0xa2, 0x8f, - 0x2e, 0x9e, 0x25, 0xf2, 0x1a, 0x73, 0x9e, 0x0a, 0xa9, 0x86, 0x60, 0xc6, 0x77, 0x03, 0x33, 0x22, - 0xa1, 0x6b, 0x99, 0xe7, 0xd8, 0x75, 0x1a, 0x91, 0x3e, 0xc4, 0xd1, 0x1f, 0x7d, 0xe7, 0xf3, 0x2f, - 0x57, 0xaf, 0xfd, 0xfb, 0xcb, 0xd5, 0x6d, 0xc7, 0x8d, 0x1a, 0xcd, 0xd3, 0x2d, 0x8b, 0xf8, 0xdb, - 0xc8, 0xf3, 0x08, 0x45, 0xef, 0x07, 0x38, 0xe2, 0xce, 0xc6, 0x9f, 0x56, 0x03, 0xb9, 0xc1, 0xb6, - 0x8f, 0xa2, 0xc6, 0xd6, 0x1e, 0xb6, 0x8c, 0x29, 0xdf, 0x0d, 0x8e, 0x39, 0xde, 0x89, 0x80, 0xd3, - 0xb6, 0x61, 0x9e, 0x7b, 0x27, 0x4c, 0x30, 0x33, 0xc4, 0xd4, 0x3c, 0xf5, 0x88, 0x75, 0xa6, 0x0f, - 0xaf, 0x0d, 0x55, 0x87, 0x8d, 0x59, 0x1f, 0x5d, 0x08, 0x6d, 0x76, 0x84, 0xe9, 0x23, 0x2e, 0xd0, - 0xea, 0xb0, 0x48, 0xf1, 0xcf, 0x9a, 0x2e, 0xe5, 0x81, 0xb8, 0x81, 0xeb, 0x37, 0x7d, 0x93, 0x45, - 0xe8, 0x0c, 0xeb, 0x23, 0xc2, 0xb3, 0x0f, 0x94, 0x67, 0x0b, 0xf2, 0x08, 0x98, 0x7d, 0xb6, 0xe5, - 0x12, 0x69, 0xff, 0x20, 0x88, 0xfe, 0xf1, 0xe7, 0xf7, 0x41, 0x9d, 0xcd, 0x41, 0x10, 0xfd, 0xe9, - 0xab, 0xcf, 0xee, 0x17, 0x8c, 0xf9, 0x18, 0xaf, 0x26, 0xe1, 0x9e, 0x71, 0x34, 0x4e, 0x1b, 0xc5, - 0x3e, 0x69, 0x61, 0x89, 0x6e, 0xda, 0xd8, 0x43, 0x97, 0xe6, 0xb9, 0x1b, 0xd8, 0xe4, 0x5c, 0x1f, - 0x95, 0xb4, 0x49, 0x05, 0xa1, 0xbf, 0xc7, 0xc5, 0x27, 0x42, 0xaa, 0x55, 0x25, 0x6d, 0x38, 0x24, - 0x56, 0x23, 0x26, 0x7a, 0x4c, 0xec, 0xe0, 0xd1, 0x3f, 0xe6, 0xcb, 0x8a, 0xe0, 0x97, 0x50, 0x3a, - 0xc5, 0x11, 0x32, 0x71, 0x10, 0x51, 0x12, 0x5e, 0xea, 0xe3, 0xf9, 0xc8, 0x2d, 0x72, 0xb0, 0xc7, - 0x12, 0x4b, 0xfb, 0x04, 0x26, 0x3d, 0x8c, 0x68, 0xe0, 0x06, 0x8e, 0x49, 0x51, 0x84, 0xf5, 0x89, - 0x7c, 0xe0, 0xa5, 0x18, 0xcd, 0x40, 0x11, 0xd6, 0x7c, 0xe0, 0x97, 0xc6, 0x74, 0x28, 0xb2, 0x5d, - 0x1c, 0x44, 0x66, 0xd4, 0xa0, 0x98, 0x35, 0x88, 0x67, 0xeb, 0x90, 0xcf, 0x0c, 0xbf, 0x0e, 0x1f, - 0x2a, 0xd4, 0xe3, 0x18, 0x54, 0xc3, 0xa0, 0x71, 0x4a, 0xe5, 0x51, 0xd4, 0x29, 0xb2, 0xf8, 0xe5, - 0xd7, 0x8b, 0xf9, 0x4c, 0xf1, 0x53, 0x12, 0x87, 0xb7, 0xaf, 0x00, 0xb5, 0xc7, 0xb0, 0xca, 0xa3, - 0x6a, 0x06, 0xf5, 0xa6, 0x57, 0x77, 0x3d, 0x0f, 0xdb, 0xa6, 0x4c, 0x3c, 0x93, 0xdf, 0x11, 0xcc, - 0x22, 0xa6, 0x4f, 0x8a, 0x8b, 0xb9, 0xec, 0xa3, 0x8b, 0xe7, 0x6d, 0xad, 0x13, 0xa1, 0x64, 0x28, - 0x1d, 0xed, 0x43, 0x58, 0xeb, 0x84, 0x51, 0xb9, 0xdd, 0xc6, 0x99, 0x12, 0x38, 0x2b, 0x59, 0x1c, - 0x43, 0x6a, 0x25, 0x40, 0x9f, 0xc2, 0x8a, 0x4c, 0x3e, 0x8a, 0xcf, 0x11, 0xb5, 0x55, 0xfc, 0xae, - 0x1f, 0x12, 0x1a, 0xa1, 0xc0, 0xc2, 0xfa, 0x74, 0x3e, 0x06, 0xca, 0x02, 0xdd, 0x10, 0xe0, 0x82, - 0x89, 0x83, 0x04, 0x5a, 0xfb, 0x55, 0x01, 0x36, 0x32, 0xc6, 0xeb, 0x18, 0x9b, 0x14, 0xb7, 0x70, - 0xd0, 0xcc, 0xb8, 0x30, 0x93, 0xcf, 0x85, 0xd5, 0x94, 0x0b, 0xfb, 0x18, 0x1b, 0xd2, 0x40, 0xca, - 0x0f, 0x0c, 0x5a, 0xc6, 0x0d, 0xe4, 0x85, 0x0d, 0xa4, 0xcf, 0xe6, 0x3c, 0xfa, 0x94, 0xd5, 0x5d, - 0x0e, 0xa8, 0x59, 0x30, 0x1b, 0x21, 0x76, 0x96, 0xb5, 0xa2, 0xe5, 0xb3, 0x32, 0xcd, 0x11, 0xd3, - 0x46, 0x38, 0xa7, 0x2d, 0xe4, 0xb9, 0x36, 0x8a, 0x08, 0x65, 0x66, 0x8b, 0x99, 0x72, 0x23, 0x2f, - 0x7c, 0x16, 0x4f, 0x23, 0x69, 0x5d, 0x9f, 0xcb, 0xc9, 0x69, 0xdb, 0xc6, 0x0b, 0xb6, 0x2b, 0x54, - 0x8e, 0xa4, 0x01, 0xe9, 0x8c, 0xf6, 0x03, 0xb8, 0x29, 0x7a, 0x02, 0xf2, 0x43, 0x0f, 0x33, 0x33, - 0x22, 0x26, 0xb3, 0x90, 0x87, 0x4d, 0x66, 0x11, 0x8a, 0x99, 0x3e, 0x2f, 0xee, 0xe6, 0x0d, 0xde, - 0x15, 0xa4, 0xc6, 0x31, 0x79, 0xc6, 0xe5, 0xcf, 0x84, 0x58, 0x7b, 0x08, 0x65, 0x55, 0xb3, 0x4d, - 0x37, 0xa8, 0x63, 0x8a, 0xa9, 0x80, 0x50, 0xbe, 0x2f, 0x88, 0xcd, 0x8b, 0xb2, 0x72, 0x1f, 0x28, - 0xf9, 0x31, 0x51, 0x96, 0x7f, 0x08, 0x2b, 0xf1, 0xde, 0x3a, 0xa1, 0xd8, 0x42, 0x2c, 0xca, 0x6e, - 0x5f, 0x14, 0xdb, 0x97, 0xe4, 0xf6, 0xfd, 0xb6, 0x4a, 0x82, 0x90, 0xb2, 0xae, 0x92, 0x2a, 0xbd, - 0xfd, 0x46, 0xda, 0xba, 0x4a, 0xa7, 0xf6, 0xde, 0x97, 0x30, 0x63, 0x51, 0x8c, 0x22, 0xac, 0x7a, - 0x5a, 0x1d, 0x63, 0x5d, 0x7f, 0xcb, 0xb6, 0x31, 0x25, 0x91, 0x44, 0x7b, 0xda, 0xc7, 0x58, 0xfb, - 0x3e, 0x94, 0x93, 0x6a, 0x68, 0x63, 0x26, 0x8e, 0x93, 0x3b, 0xea, 0x72, 0x0f, 0xf4, 0x25, 0x49, - 0x69, 0xac, 0xb1, 0x27, 0x15, 0x6a, 0xe8, 0xe2, 0x80, 0x8b, 0xb5, 0x27, 0xb0, 0xc1, 0x75, 0x29, - 0x8e, 0xa8, 0x2b, 0x0f, 0x44, 0xd6, 0x04, 0x53, 0x4c, 0x0b, 0x4c, 0x55, 0x21, 0xbd, 0x2c, 0xba, - 0x48, 0xc5, 0x47, 0x17, 0x86, 0xd4, 0x3c, 0x26, 0xfb, 0x42, 0xef, 0x50, 0xa8, 0xc9, 0x32, 0xa4, - 0xd5, 0x60, 0x73, 0x20, 0x98, 0xa2, 0x4d, 0xbf, 0x29, 0xd0, 0x56, 0xfb, 0xa1, 0x29, 0xf6, 0xb4, - 0x9f, 0xc0, 0x0c, 0xc5, 0x8e, 0xcb, 0x22, 0x8a, 0x78, 0x91, 0x14, 0xa4, 0x2d, 0xbf, 0x25, 0x69, - 0xd3, 0x69, 0x24, 0xce, 0xda, 0x7b, 0xa0, 0xd9, 0xb8, 0x8e, 0x9a, 0x5e, 0x64, 0x86, 0xc8, 0xc1, - 0xa6, 0xe7, 0xfa, 0x6e, 0xa4, 0xaf, 0x08, 0xb6, 0x66, 0x94, 0xe4, 0x08, 0x39, 0xf8, 0x29, 0x5f, - 0xd7, 0x36, 0x61, 0x8a, 0x47, 0x96, 0xd2, 0xac, 0x08, 0xcd, 0x92, 0x8f, 0x2e, 0xda, 0x5a, 0xfc, - 0x8e, 0x75, 0xf4, 0x5f, 0x93, 0x62, 0x8b, 0x50, 0x5b, 0x6d, 0x5a, 0x15, 0x81, 0x2f, 0x65, 0x9b, - 0xb1, 0x21, 0x34, 0x24, 0x42, 0x15, 0x66, 0xc4, 0x18, 0x22, 0x27, 0x12, 0x9f, 0x04, 0x51, 0x43, - 0x5f, 0x13, 0x96, 0xa6, 0xe4, 0xfa, 0x11, 0xa6, 0x35, 0xbe, 0xca, 0xab, 0x53, 0x18, 0xd7, 0x0c, - 0x99, 0x0c, 0xbc, 0x26, 0xde, 0xca, 0x59, 0x9d, 0x42, 0x79, 0x5f, 0x0f, 0x62, 0x40, 0x5e, 0x9d, - 0x12, 0x33, 0x71, 0xde, 0xe8, 0xeb, 0x39, 0xab, 0x93, 0xb2, 0x12, 0x27, 0x19, 0x1f, 0xf7, 0x12, - 0x23, 0xf1, 0x1d, 0xd9, 0xc8, 0x39, 0xee, 0x29, 0x1b, 0xf1, 0x5d, 0xc2, 0xa0, 0x59, 0xdd, 0x74, - 0x6d, 0xe6, 0xa4, 0xcb, 0xea, 0x41, 0x97, 0xd5, 0x45, 0xd7, 0xed, 0x9c, 0x74, 0x59, 0x1d, 0x74, - 0x1d, 0xc2, 0xa8, 0x65, 0x06, 0x84, 0xfa, 0xfa, 0x9d, 0x7c, 0xc8, 0x23, 0xd6, 0x21, 0xa1, 0xbe, - 0x76, 0x0e, 0xcb, 0x49, 0x55, 0x4a, 0x1a, 0xad, 0x8d, 0x2d, 0x74, 0x29, 0xe7, 0xb7, 0xbb, 0xf9, - 0xac, 0xe8, 0x91, 0xaa, 0x54, 0xaa, 0xc5, 0xee, 0x71, 0x64, 0x31, 0xcb, 0xfd, 0x14, 0xa6, 0x71, - 0xc8, 0x5c, 0x8f, 0x04, 0xc9, 0xb1, 0x57, 0x73, 0x1e, 0xbb, 0xc2, 0x8b, 0x8f, 0xbd, 0x05, 0x37, - 0x45, 0x46, 0xd6, 0xeb, 0xd8, 0x8a, 0xdc, 0x56, 0x5c, 0x7e, 0x55, 0x90, 0xfa, 0xbd, 0x9c, 0x91, - 0xf1, 0x44, 0x8e, 0xa1, 0x8f, 0x65, 0x63, 0x17, 0xc0, 0xeb, 0x1e, 0x4c, 0xd7, 0x98, 0xf3, 0x3c, - 0xb4, 0x51, 0x84, 0xd5, 0x43, 0x69, 0x11, 0x46, 0x19, 0x0e, 0x6c, 0x4c, 0xf5, 0xc2, 0x5a, 0xa1, - 0x3a, 0x61, 0xa8, 0x2f, 0xed, 0x5b, 0x30, 0x1a, 0x0a, 0x0d, 0xfd, 0xfa, 0x5a, 0xa1, 0x5a, 0xdc, - 0x59, 0xde, 0x4a, 0x3f, 0x1d, 0xb7, 0xb2, 0xcf, 0x2d, 0x43, 0xe9, 0x3e, 0x2c, 0xfe, 0xf2, 0xab, - 0xcf, 0xee, 0x2b, 0x88, 0xf5, 0x25, 0xb8, 0xd1, 0x61, 0xcd, 0xc0, 0x2c, 0x24, 0x01, 0xc3, 0xeb, - 0xff, 0x1d, 0x86, 0xd9, 0x1a, 0x73, 0x7e, 0x24, 0x5a, 0xc6, 0x21, 0x3e, 0x17, 0x5e, 0xf2, 0x47, - 0x9b, 0x68, 0x22, 0x24, 0x76, 0x26, 0xfe, 0xd4, 0xca, 0x30, 0xee, 0xe3, 0x08, 0xd9, 0x28, 0x42, - 0xc2, 0x9f, 0x09, 0x23, 0xf9, 0xd6, 0x56, 0x00, 0x3c, 0xc2, 0x98, 0xe9, 0x11, 0xc7, 0xb5, 0xf4, - 0x21, 0x21, 0x9d, 0xe0, 0x2b, 0x4f, 0xf9, 0x82, 0xb6, 0x0a, 0x45, 0x21, 0xf6, 0x71, 0xd4, 0x20, - 0xb6, 0x3e, 0x2c, 0xe4, 0x62, 0x47, 0x4d, 0xac, 0x68, 0x77, 0x61, 0x3a, 0x49, 0x3d, 0x05, 0x32, - 0x22, 0x94, 0xa6, 0x92, 0x65, 0x89, 0x74, 0x0f, 0x66, 0xda, 0x8a, 0x0a, 0x6e, 0x54, 0x68, 0xb6, - 0x01, 0x14, 0xe6, 0x2d, 0x28, 0x75, 0x3c, 0x77, 0x0a, 0xd5, 0x21, 0xa3, 0x88, 0x53, 0x6f, 0x9d, - 0x2a, 0xcc, 0x38, 0x94, 0x34, 0x03, 0xdb, 0x8c, 0x68, 0x33, 0x6a, 0x98, 0x1e, 0x72, 0xf4, 0x71, - 0xa1, 0x36, 0x25, 0xd7, 0x8f, 0xf9, 0xf2, 0x53, 0xe4, 0xf0, 0x08, 0xe2, 0x9e, 0x80, 0xa8, 0xa3, - 0x4f, 0xc8, 0x08, 0xd4, 0xd2, 0x2e, 0x75, 0x78, 0xe6, 0x85, 0x32, 0xf3, 0x80, 0xcb, 0x72, 0x64, - 0x5e, 0x28, 0x32, 0xef, 0x25, 0x94, 0xc4, 0xbc, 0x67, 0x52, 0xec, 0x50, 0x1c, 0xe9, 0xc5, 0x7c, - 0xa8, 0x45, 0x01, 0x66, 0x08, 0x2c, 0xed, 0x36, 0x4c, 0x71, 0xad, 0x73, 0x33, 0xc0, 0x0e, 0xe2, - 0x17, 0x54, 0x2f, 0xad, 0x15, 0xaa, 0xe3, 0xc6, 0xa4, 0x58, 0x3d, 0x54, 0x8b, 0xda, 0xc7, 0x30, - 0xa6, 0x72, 0x46, 0x9f, 0xcc, 0x67, 0x3d, 0xc6, 0x79, 0x58, 0xe2, 0x77, 0x33, 0xbe, 0x51, 0xeb, - 0xdf, 0x86, 0xa5, 0xae, 0x0b, 0x18, 0x5f, 0x4f, 0x6d, 0x09, 0xc6, 0x65, 0x46, 0xba, 0xb6, 0xb8, - 0x89, 0xc3, 0xc6, 0x98, 0xf8, 0x3e, 0xb0, 0xd7, 0x7f, 0x7d, 0x1d, 0x6e, 0xd6, 0x98, 0x73, 0x10, - 0x30, 0x4c, 0xa3, 0x47, 0x4d, 0xef, 0x4c, 0xe5, 0xf4, 0x11, 0xba, 0xf4, 0x08, 0xb2, 0xfb, 0xe6, - 0xd3, 0x73, 0x58, 0xe8, 0x78, 0xf3, 0xc8, 0xf1, 0x43, 0xa5, 0xd7, 0xad, 0x6c, 0x7a, 0x65, 0x1f, - 0x3e, 0x62, 0xfe, 0x30, 0xe6, 0x68, 0xf7, 0x62, 0xc6, 0xd3, 0xa1, 0x8c, 0xa7, 0xda, 0x71, 0xdb, - 0x62, 0x0b, 0x79, 0x4d, 0x6c, 0x9e, 0x36, 0x03, 0xdb, 0xc3, 0x4c, 0xfc, 0x2d, 0xa1, 0xb8, 0xb3, - 0xd6, 0xd3, 0xe2, 0x0b, 0xae, 0xf9, 0x48, 0x28, 0x26, 0x06, 0x53, 0x6b, 0x1d, 0x19, 0x7e, 0x1b, - 0x36, 0x06, 0x70, 0x91, 0x64, 0xfb, 0x3f, 0x0b, 0x50, 0xce, 0xe8, 0xc9, 0xc1, 0xec, 0x4d, 0x94, - 0xdd, 0x83, 0x91, 0x34, 0x45, 0x73, 0x59, 0x87, 0x25, 0x29, 0x52, 0x63, 0x10, 0x0d, 0x87, 0x30, - 0xa7, 0xde, 0xac, 0xbc, 0x5a, 0x74, 0x90, 0x50, 0xc9, 0x62, 0x4a, 0xbf, 0xf6, 0x50, 0x84, 0x14, - 0x05, 0xb3, 0xe7, 0x1d, 0x2b, 0x1d, 0x04, 0x6c, 0xc2, 0x7a, 0xff, 0xc0, 0x92, 0xf8, 0xff, 0x5e, - 0x80, 0x62, 0x8d, 0x39, 0x86, 0x98, 0xf5, 0x30, 0xed, 0x1b, 0x70, 0x05, 0x8a, 0x9e, 0x7b, 0x6a, - 0x86, 0x3b, 0xa1, 0x79, 0x86, 0x2f, 0x55, 0xa1, 0x9b, 0xf0, 0xdc, 0xd3, 0xa3, 0x9d, 0xf0, 0x09, - 0xbe, 0xd4, 0x36, 0x60, 0xd2, 0x6f, 0x7a, 0x91, 0x6b, 0x22, 0xdb, 0xa6, 0x98, 0x31, 0x55, 0xec, - 0x4a, 0x62, 0x71, 0x57, 0xae, 0x65, 0xa8, 0x18, 0xce, 0x52, 0x31, 0x0f, 0x23, 0xe4, 0x3c, 0xc0, - 0x54, 0xd5, 0x37, 0xf9, 0xc1, 0xeb, 0xa7, 0xdb, 0x1e, 0x82, 0x47, 0x45, 0x36, 0x4e, 0xb8, 0xf1, - 0xb8, 0x9b, 0x8d, 0xf7, 0x00, 0xe6, 0x52, 0x81, 0x24, 0xf9, 0xa2, 0xc3, 0x18, 0x6b, 0x5a, 0x16, - 0x77, 0xa9, 0x20, 0xf6, 0xc7, 0x9f, 0x5c, 0xe2, 0x63, 0xc6, 0x90, 0x83, 0x55, 0x38, 0xf1, 0xe7, - 0x7a, 0x0b, 0x16, 0x04, 0x94, 0x4f, 0x5a, 0xd8, 0x48, 0x4d, 0xc1, 0x7d, 0xd9, 0x49, 0x07, 0x76, - 0x3d, 0x1b, 0x58, 0x36, 0x84, 0xa1, 0x81, 0x21, 0x3c, 0x83, 0x95, 0x9e, 0x76, 0x73, 0x05, 0xf3, - 0x3b, 0x79, 0xc2, 0xbb, 0xb6, 0xfc, 0xb3, 0xc1, 0xdb, 0xc4, 0xf0, 0x11, 0x8c, 0x22, 0x9f, 0x34, - 0x83, 0x48, 0x9e, 0xea, 0x5b, 0x3c, 0x26, 0xd4, 0xfe, 0x6c, 0xb8, 0x0b, 0xe2, 0xc4, 0x62, 0xc7, - 0x92, 0x2b, 0xf9, 0x87, 0x02, 0x4c, 0x25, 0x34, 0x7c, 0xdd, 0x7c, 0xd6, 0x61, 0x31, 0xeb, 0x5b, - 0xe2, 0xf6, 0x0b, 0x98, 0xe7, 0x55, 0x1b, 0x05, 0x16, 0xf6, 0xf2, 0xf9, 0x9e, 0xb5, 0x58, 0x81, - 0xe5, 0x5e, 0xb8, 0x89, 0xdd, 0xbf, 0x14, 0x60, 0xa6, 0xc6, 0x9c, 0x3d, 0xec, 0xf1, 0x06, 0xf5, - 0xf6, 0x84, 0xe9, 0x30, 0x96, 0xbe, 0xa5, 0x13, 0x46, 0xfc, 0x99, 0xa2, 0x72, 0xf8, 0x5d, 0x52, - 0x59, 0x06, 0xbd, 0xd3, 0xef, 0x24, 0xa8, 0xbf, 0x16, 0x52, 0x3c, 0x5f, 0x2d, 0xb4, 0x94, 0xff, - 0xd7, 0xb3, 0xfe, 0x0f, 0xa8, 0xc0, 0xff, 0xa7, 0xd0, 0xd6, 0xa0, 0xd2, 0xdb, 0xfb, 0x24, 0xc0, - 0xdf, 0x16, 0xba, 0x8e, 0x35, 0xf7, 0x09, 0x2e, 0xc3, 0x84, 0x2d, 0x31, 0x48, 0x7c, 0x86, 0xed, - 0x85, 0x34, 0x3f, 0xc3, 0x19, 0x7e, 0xb2, 0xae, 0xdf, 0x81, 0xcd, 0x41, 0x7e, 0x25, 0x01, 0xfc, - 0xbe, 0x00, 0xa5, 0x1a, 0x73, 0xf6, 0xf9, 0x34, 0x28, 0x26, 0xe4, 0xaf, 0x4f, 0x8e, 0x2e, 0x8a, - 0x4c, 0x4c, 0x3c, 0x4b, 0x5c, 0x3e, 0x11, 0x77, 0x6a, 0xd7, 0xb6, 0x8f, 0xc9, 0x49, 0xc3, 0x8d, - 0xb0, 0xe7, 0xb2, 0x68, 0xd7, 0xf6, 0xdd, 0x60, 0xd0, 0x9d, 0x8a, 0xfb, 0x99, 0xba, 0x53, 0xea, - 0xb3, 0xd7, 0x71, 0xf7, 0x00, 0x4e, 0x4c, 0x7f, 0x22, 0x26, 0x33, 0xc9, 0xe7, 0x3e, 0x25, 0xfe, - 0xbb, 0xb5, 0x2f, 0x67, 0x9d, 0x7e, 0xe8, 0x89, 0x13, 0xf1, 0xad, 0xe4, 0x4f, 0xe3, 0xde, 0x87, - 0x4a, 0x55, 0xd6, 0x75, 0x69, 0xbc, 0xd3, 0x82, 0x92, 0x71, 0x7e, 0xe7, 0x6f, 0x25, 0x18, 0xaa, - 0x31, 0x47, 0x3b, 0x86, 0x52, 0xe6, 0xf5, 0xb7, 0x92, 0x9d, 0x7f, 0x3a, 0x9e, 0x6b, 0xe5, 0xdb, - 0x03, 0xc5, 0x49, 0xc7, 0x6c, 0xc2, 0x8d, 0x7e, 0xb3, 0x5d, 0xb5, 0x0b, 0xa1, 0x8f, 0x66, 0xf9, - 0x83, 0xab, 0x6a, 0x26, 0x66, 0x5f, 0xc2, 0x54, 0xc7, 0x03, 0x72, 0xb5, 0x0b, 0x23, 0xab, 0x50, - 0xbe, 0xfb, 0x06, 0x85, 0x04, 0xfb, 0x23, 0x18, 0x4f, 0xc6, 0xb5, 0xa5, 0xae, 0x4d, 0xb1, 0xa8, - 0x7c, 0xab, 0xaf, 0x28, 0x41, 0xaa, 0x83, 0xd6, 0x63, 0xc8, 0xd9, 0xe8, 0xb1, 0xb1, 0x53, 0xa9, - 0xfc, 0x8d, 0x2b, 0x28, 0x25, 0x76, 0x2e, 0x40, 0xef, 0xfb, 0x28, 0xb9, 0x37, 0x80, 0xdb, 0xac, - 0x6a, 0xf9, 0xc1, 0x95, 0x55, 0xd3, 0x5c, 0x25, 0x83, 0x4f, 0x37, 0x57, 0xb1, 0xa8, 0x07, 0x57, - 0x9d, 0x53, 0x89, 0xf6, 0x31, 0x14, 0xd3, 0x5d, 0x7d, 0xb9, 0x4f, 0xfc, 0x12, 0x6f, 0x73, 0x90, - 0x34, 0x81, 0xb4, 0x60, 0xb6, 0x7b, 0x5c, 0x58, 0xef, 0xbe, 0x06, 0x9d, 0x3a, 0xe5, 0xfb, 0x6f, - 0xd6, 0x49, 0x8c, 0x9c, 0xc0, 0x64, 0x36, 0x93, 0x2b, 0x5d, 0x9b, 0x33, 0xf2, 0xf2, 0x9d, 0xc1, - 0xf2, 0x04, 0xd8, 0x85, 0xb9, 0x5e, 0x85, 0xa2, 0x57, 0xe8, 0x5d, 0x5a, 0xe5, 0xf7, 0xae, 0xa2, - 0x95, 0x35, 0xd5, 0xdd, 0x22, 0xfb, 0xb1, 0xfc, 0x66, 0x53, 0x7d, 0xdb, 0x9a, 0xf6, 0x73, 0x58, - 0xea, 0xdf, 0x93, 0x07, 0xf3, 0x9e, 0x35, 0xbb, 0x73, 0x75, 0xdd, 0xc4, 0xf8, 0x13, 0x98, 0x68, - 0xf7, 0xd3, 0x72, 0x17, 0x40, 0x22, 0x2b, 0xaf, 0xf7, 0x97, 0xa5, 0x49, 0xeb, 0xd5, 0xea, 0x36, - 0x7b, 0x5d, 0xf5, 0x4e, 0xad, 0x1e, 0xa4, 0x0d, 0xe8, 0x6e, 0x3c, 0xbf, 0xfb, 0xb6, 0xb6, 0x7b, - 0x7d, 0xe8, 0xef, 0x56, 0xed, 0x91, 0xdf, 0x6f, 0x6a, 0x69, 0xe5, 0x91, 0x5f, 0xf0, 0x31, 0xe0, - 0x91, 0xf1, 0xf9, 0xab, 0x4a, 0xe1, 0x8b, 0x57, 0x95, 0xc2, 0x7f, 0x5e, 0x55, 0x0a, 0xbf, 0x79, - 0x5d, 0xb9, 0xf6, 0xc5, 0xeb, 0xca, 0xb5, 0x7f, 0xbd, 0xae, 0x5c, 0x7b, 0xf9, 0xdd, 0x2b, 0xfe, - 0x4d, 0xe6, 0x62, 0xbb, 0xfd, 0x1b, 0x0e, 0xf1, 0x5b, 0x91, 0xd3, 0x51, 0xf1, 0x03, 0x8e, 0x6f, - 0xfe, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x2b, 0x5e, 0xa3, 0x5d, 0xaf, 0x22, 0x00, 0x00, + proto.RegisterType((*OptionalParams)(nil), "emissions.v2.OptionalParams") + proto.RegisterType((*MsgUpdateParams)(nil), "emissions.v2.MsgUpdateParams") + proto.RegisterType((*MsgUpdateParamsResponse)(nil), "emissions.v2.MsgUpdateParamsResponse") + proto.RegisterType((*MsgCreateNewTopic)(nil), "emissions.v2.MsgCreateNewTopic") + proto.RegisterType((*MsgCreateNewTopicResponse)(nil), "emissions.v2.MsgCreateNewTopicResponse") + proto.RegisterType((*MsgInsertReputerPayload)(nil), "emissions.v2.MsgInsertReputerPayload") + proto.RegisterType((*MsgInsertReputerPayloadResponse)(nil), "emissions.v2.MsgInsertReputerPayloadResponse") + proto.RegisterType((*MsgInsertWorkerPayload)(nil), "emissions.v2.MsgInsertWorkerPayload") + proto.RegisterType((*MsgInsertWorkerPayloadResponse)(nil), "emissions.v2.MsgInsertWorkerPayloadResponse") + proto.RegisterType((*MsgRegister)(nil), "emissions.v2.MsgRegister") + proto.RegisterType((*MsgRegisterResponse)(nil), "emissions.v2.MsgRegisterResponse") + proto.RegisterType((*MsgRemoveRegistration)(nil), "emissions.v2.MsgRemoveRegistration") + proto.RegisterType((*MsgRemoveRegistrationResponse)(nil), "emissions.v2.MsgRemoveRegistrationResponse") + proto.RegisterType((*MsgAddStake)(nil), "emissions.v2.MsgAddStake") + proto.RegisterType((*MsgAddStakeResponse)(nil), "emissions.v2.MsgAddStakeResponse") + proto.RegisterType((*MsgRemoveStake)(nil), "emissions.v2.MsgRemoveStake") + proto.RegisterType((*MsgRemoveStakeResponse)(nil), "emissions.v2.MsgRemoveStakeResponse") + proto.RegisterType((*MsgCancelRemoveStake)(nil), "emissions.v2.MsgCancelRemoveStake") + proto.RegisterType((*MsgCancelRemoveStakeResponse)(nil), "emissions.v2.MsgCancelRemoveStakeResponse") + proto.RegisterType((*MsgDelegateStake)(nil), "emissions.v2.MsgDelegateStake") + proto.RegisterType((*MsgDelegateStakeResponse)(nil), "emissions.v2.MsgDelegateStakeResponse") + proto.RegisterType((*MsgRemoveDelegateStake)(nil), "emissions.v2.MsgRemoveDelegateStake") + proto.RegisterType((*MsgRemoveDelegateStakeResponse)(nil), "emissions.v2.MsgRemoveDelegateStakeResponse") + proto.RegisterType((*MsgCancelRemoveDelegateStake)(nil), "emissions.v2.MsgCancelRemoveDelegateStake") + proto.RegisterType((*MsgCancelRemoveDelegateStakeResponse)(nil), "emissions.v2.MsgCancelRemoveDelegateStakeResponse") + proto.RegisterType((*MsgFundTopic)(nil), "emissions.v2.MsgFundTopic") + proto.RegisterType((*MsgFundTopicResponse)(nil), "emissions.v2.MsgFundTopicResponse") + proto.RegisterType((*MsgAddToWhitelistAdmin)(nil), "emissions.v2.MsgAddToWhitelistAdmin") + proto.RegisterType((*MsgAddToWhitelistAdminResponse)(nil), "emissions.v2.MsgAddToWhitelistAdminResponse") + proto.RegisterType((*MsgRemoveFromWhitelistAdmin)(nil), "emissions.v2.MsgRemoveFromWhitelistAdmin") + proto.RegisterType((*MsgRemoveFromWhitelistAdminResponse)(nil), "emissions.v2.MsgRemoveFromWhitelistAdminResponse") + proto.RegisterType((*MsgRewardDelegateStakeResponse)(nil), "emissions.v2.MsgRewardDelegateStakeResponse") + proto.RegisterType((*MsgRewardDelegateStake)(nil), "emissions.v2.MsgRewardDelegateStake") +} + +func init() { proto.RegisterFile("emissions/v2/tx.proto", fileDescriptor_e3de9f2da2f032d3) } + +var fileDescriptor_e3de9f2da2f032d3 = []byte{ + // 2478 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x5a, 0xcb, 0x53, 0x1c, 0xc7, + 0x19, 0xd7, 0x8a, 0x05, 0x96, 0x6f, 0x79, 0x2c, 0x63, 0x84, 0x86, 0x15, 0x2c, 0x68, 0x41, 0x36, + 0x96, 0x6d, 0x88, 0x49, 0x2a, 0x71, 0x9c, 0x1c, 0x22, 0x05, 0x61, 0x23, 0x6b, 0x15, 0x3c, 0x60, + 0x51, 0x45, 0x5c, 0x35, 0x69, 0x66, 0x7a, 0x67, 0xa7, 0x98, 0x99, 0xde, 0x74, 0xf7, 0x2e, 0xe0, + 0x5c, 0x52, 0xa9, 0xca, 0x29, 0x97, 0x54, 0x0e, 0x49, 0x2a, 0x7f, 0x41, 0x92, 0x93, 0x0f, 0xa9, + 0x9c, 0x92, 0xbb, 0x8f, 0xae, 0x9c, 0x52, 0x39, 0xb8, 0x52, 0xd2, 0xc1, 0x7f, 0x43, 0x6e, 0xa9, + 0x7e, 0xcc, 0x30, 0xb3, 0x0f, 0x44, 0x31, 0x3a, 0xf8, 0x22, 0x31, 0xfd, 0x7d, 0xfd, 0xfb, 0xde, + 0x8f, 0xa6, 0x80, 0x5b, 0x38, 0xf4, 0x19, 0xf3, 0x49, 0xc4, 0x36, 0xbb, 0x5b, 0x9b, 0xfc, 0x6c, + 0xa3, 0x4d, 0x09, 0x27, 0xc6, 0x64, 0x72, 0xbc, 0xd1, 0xdd, 0xaa, 0xde, 0x76, 0x08, 0x0b, 0x09, + 0xdb, 0x0c, 0x99, 0xb7, 0xd9, 0x7d, 0x57, 0xfc, 0xa7, 0xd8, 0xaa, 0x73, 0x1e, 0xf1, 0x88, 0xfc, + 0x71, 0x53, 0xfc, 0xa4, 0x4f, 0x67, 0x51, 0xe8, 0x47, 0x64, 0x53, 0xfe, 0xab, 0x8f, 0xcc, 0xac, + 0x98, 0xf3, 0x36, 0x66, 0x9a, 0xb2, 0xa0, 0xb0, 0x6d, 0x85, 0xa2, 0x3e, 0x06, 0x5e, 0x8a, 0x48, + 0xe4, 0x60, 0x4d, 0xa9, 0x66, 0x28, 0x14, 0xb7, 0x3b, 0x1c, 0xd3, 0x18, 0x30, 0x43, 0x3b, 0x25, + 0xf4, 0x24, 0x26, 0xd5, 0xff, 0xb9, 0x08, 0xd3, 0x3f, 0x69, 0x73, 0x9f, 0x44, 0x28, 0xd8, 0x43, + 0x14, 0x85, 0xcc, 0x30, 0x61, 0xbc, 0x8b, 0xa9, 0x60, 0x37, 0x0b, 0x2b, 0x23, 0xeb, 0x13, 0x56, + 0xfc, 0x69, 0x7c, 0x1f, 0x16, 0x42, 0x74, 0x66, 0x33, 0x4c, 0x7d, 0x14, 0xf8, 0x9f, 0x61, 0xd7, + 0x0e, 0x99, 0x67, 0x07, 0x38, 0xf2, 0x78, 0xcb, 0xbc, 0xb9, 0x32, 0xb2, 0x3e, 0x62, 0xcd, 0x87, + 0xe8, 0x6c, 0x3f, 0xa1, 0x37, 0x98, 0xf7, 0x44, 0x52, 0x0d, 0x04, 0x95, 0xd0, 0x8f, 0x6c, 0x4e, + 0xda, 0xbe, 0x63, 0x9f, 0x62, 0xdf, 0x6b, 0x71, 0x73, 0x44, 0xa0, 0x3f, 0xfc, 0xde, 0x17, 0x5f, + 0x2d, 0xdf, 0xf8, 0xcf, 0x57, 0xcb, 0x9b, 0x9e, 0xcf, 0x5b, 0x9d, 0xe3, 0x0d, 0x87, 0x84, 0x9b, + 0x28, 0x08, 0x08, 0x45, 0xef, 0x44, 0x98, 0x0b, 0x65, 0xe3, 0x4f, 0xa7, 0x85, 0xfc, 0x68, 0x33, + 0x44, 0xbc, 0xb5, 0xb1, 0x8d, 0x1d, 0x6b, 0x3a, 0xf4, 0xa3, 0x03, 0x81, 0x77, 0x28, 0xe1, 0x8c, + 0x4d, 0x98, 0x13, 0xda, 0x49, 0x11, 0xcc, 0x6e, 0x63, 0x6a, 0x1f, 0x07, 0xc4, 0x39, 0x31, 0x8b, + 0x2b, 0x23, 0xeb, 0x45, 0x6b, 0x36, 0x44, 0x67, 0x92, 0x9b, 0xed, 0x61, 0xfa, 0x50, 0x10, 0x8c, + 0x26, 0xcc, 0x53, 0xfc, 0xf3, 0x8e, 0x4f, 0x85, 0x21, 0x7e, 0xe4, 0x87, 0x9d, 0xd0, 0x66, 0x1c, + 0x9d, 0x60, 0x73, 0x54, 0x6a, 0xf6, 0x2d, 0xad, 0xd9, 0x2d, 0x15, 0x02, 0xe6, 0x9e, 0x6c, 0xf8, + 0x44, 0xc9, 0xdf, 0x8d, 0xf8, 0xbf, 0xfe, 0xf6, 0x0e, 0xe8, 0xd8, 0xec, 0x46, 0xfc, 0xcf, 0x5f, + 0x7f, 0x7e, 0xbf, 0x60, 0xcd, 0xc5, 0x78, 0x0d, 0x05, 0xb7, 0x2f, 0xd0, 0x84, 0xdb, 0x28, 0x0e, + 0x49, 0x17, 0x2b, 0x74, 0xdb, 0xc5, 0x01, 0x3a, 0xb7, 0x4f, 0xfd, 0xc8, 0x25, 0xa7, 0xe6, 0x98, + 0x72, 0x9b, 0x62, 0x90, 0xfc, 0xdb, 0x82, 0x7c, 0x28, 0xa9, 0xc6, 0xba, 0x72, 0x1b, 0x6e, 0x13, + 0xa7, 0x15, 0x3b, 0x7a, 0x5c, 0xde, 0x10, 0xd6, 0x3f, 0x12, 0xc7, 0xda, 0xc1, 0x47, 0x30, 0x79, + 0x8c, 0x39, 0xb2, 0x71, 0xc4, 0x29, 0x69, 0x9f, 0x9b, 0xa5, 0x7c, 0xce, 0x2d, 0x0b, 0xb0, 0x47, + 0x0a, 0xcb, 0xf8, 0x14, 0xa6, 0x02, 0x8c, 0x68, 0xe4, 0x47, 0x9e, 0x4d, 0x11, 0xc7, 0xe6, 0x44, + 0x3e, 0xf0, 0xc9, 0x18, 0xcd, 0x42, 0x1c, 0x1b, 0x21, 0x88, 0xa4, 0xb1, 0x3d, 0x8a, 0x5c, 0x1f, + 0x47, 0xdc, 0xe6, 0x2d, 0x8a, 0x59, 0x8b, 0x04, 0xae, 0x09, 0xf9, 0xc4, 0x88, 0x74, 0xf8, 0x40, + 0xa3, 0x1e, 0xc4, 0xa0, 0x06, 0x06, 0x43, 0xb8, 0x54, 0x85, 0xa2, 0x49, 0x91, 0x23, 0x92, 0xdf, + 0x2c, 0xe7, 0x13, 0x25, 0xa2, 0x24, 0x83, 0xb7, 0xa3, 0x01, 0x8d, 0x47, 0xb0, 0x2c, 0xac, 0xea, + 0x44, 0xcd, 0x4e, 0xd0, 0xf4, 0x83, 0x00, 0xbb, 0xb6, 0x2a, 0x3c, 0x5b, 0xe4, 0x08, 0x66, 0x9c, + 0x99, 0x53, 0x32, 0x31, 0x17, 0x43, 0x74, 0xf6, 0xc9, 0x05, 0xd7, 0xa1, 0x64, 0xb2, 0x34, 0x8f, + 0xf1, 0x01, 0xac, 0xf4, 0xc2, 0xe8, 0xda, 0xbe, 0xc0, 0x99, 0x96, 0x38, 0x4b, 0x59, 0x1c, 0x4b, + 0x71, 0x25, 0x40, 0x9f, 0xc1, 0x92, 0x2a, 0x3e, 0x8a, 0x4f, 0x11, 0x75, 0xb5, 0xfd, 0x7e, 0xd8, + 0x26, 0x94, 0xa3, 0xc8, 0xc1, 0xe6, 0x4c, 0x3e, 0x0f, 0x54, 0x25, 0xba, 0x25, 0xc1, 0xa5, 0x27, + 0x76, 0x13, 0x68, 0xe3, 0xd7, 0x05, 0x58, 0xcd, 0x08, 0x6f, 0x62, 0x6c, 0x53, 0xdc, 0xc5, 0x51, + 0x27, 0xa3, 0x42, 0x25, 0x9f, 0x0a, 0xcb, 0x29, 0x15, 0x76, 0x30, 0xb6, 0x94, 0x80, 0x94, 0x1e, + 0x18, 0x8c, 0x8c, 0x1a, 0x28, 0x68, 0xb7, 0x90, 0x39, 0x9b, 0x33, 0xf4, 0x29, 0xa9, 0x0f, 0x04, + 0xa0, 0xe1, 0xc0, 0x2c, 0x47, 0xec, 0x24, 0x2b, 0xc5, 0xc8, 0x27, 0x65, 0x46, 0x20, 0xa6, 0x85, + 0x08, 0x9f, 0x76, 0x51, 0xe0, 0xbb, 0x88, 0x13, 0xca, 0xec, 0x2e, 0xb3, 0xd5, 0x45, 0xd1, 0xf8, + 0x1c, 0x51, 0x46, 0x4a, 0xba, 0xf9, 0x5a, 0x4e, 0x9f, 0x5e, 0xc8, 0x78, 0xc6, 0x1e, 0x48, 0x96, + 0x3d, 0x25, 0x40, 0x29, 0x63, 0xfc, 0x10, 0xee, 0xc8, 0x99, 0x80, 0xc2, 0x76, 0x80, 0x99, 0xcd, + 0x89, 0xcd, 0x1c, 0x14, 0x60, 0x9b, 0x39, 0x84, 0x62, 0x66, 0xce, 0xc9, 0xdc, 0xbc, 0x2d, 0xa6, + 0x82, 0xe2, 0x38, 0x20, 0xfb, 0x82, 0xbe, 0x2f, 0xc9, 0xc6, 0xfb, 0x50, 0xd5, 0x3d, 0xdb, 0xf6, + 0xa3, 0x26, 0xa6, 0x98, 0x4a, 0x08, 0xad, 0xfb, 0x2d, 0x79, 0x79, 0x5e, 0x75, 0xee, 0x5d, 0x4d, + 0x3f, 0x20, 0x5a, 0xf2, 0x8f, 0x60, 0x29, 0xbe, 0xdb, 0x24, 0x14, 0x3b, 0x88, 0xf1, 0xec, 0xf5, + 0x79, 0x79, 0x7d, 0x41, 0x5d, 0xdf, 0xb9, 0x60, 0x49, 0x10, 0x52, 0xd2, 0x75, 0x51, 0xa5, 0xaf, + 0xdf, 0x4e, 0x4b, 0xd7, 0xe5, 0x74, 0x71, 0xf7, 0x08, 0x2a, 0x0e, 0xc5, 0x88, 0x63, 0x3d, 0xd3, + 0x9a, 0x18, 0x9b, 0xe6, 0x35, 0xc7, 0xc6, 0xb4, 0x42, 0x92, 0xe3, 0x69, 0x07, 0x63, 0xe3, 0x07, + 0x50, 0x4d, 0xba, 0xa1, 0x8b, 0x99, 0x0c, 0xa7, 0x50, 0xd4, 0x17, 0x1a, 0x98, 0x0b, 0xca, 0xa5, + 0x31, 0xc7, 0xb6, 0x62, 0x68, 0xa0, 0xb3, 0x5d, 0x41, 0x36, 0x3e, 0x82, 0x55, 0xc1, 0x4b, 0x31, + 0xa7, 0xbe, 0x0a, 0x88, 0xea, 0x09, 0xb6, 0xdc, 0x16, 0x98, 0xee, 0x42, 0x66, 0x55, 0x4e, 0x91, + 0x5a, 0x88, 0xce, 0x2c, 0xc5, 0x79, 0x40, 0x76, 0x24, 0xdf, 0x53, 0xc9, 0xa6, 0xda, 0x90, 0xd1, + 0x80, 0xb5, 0x4b, 0xc1, 0xb4, 0xdb, 0xcc, 0x3b, 0x12, 0x6d, 0x79, 0x18, 0x9a, 0xf6, 0x9e, 0xf1, + 0x53, 0xa8, 0x50, 0xec, 0xf9, 0x8c, 0x53, 0x24, 0x9a, 0xa4, 0x74, 0xda, 0xe2, 0x35, 0x9d, 0x36, + 0x93, 0x46, 0x12, 0x5e, 0x7b, 0x1b, 0x0c, 0x17, 0x37, 0x51, 0x27, 0xe0, 0x76, 0x1b, 0x79, 0xd8, + 0x0e, 0xfc, 0xd0, 0xe7, 0xe6, 0x92, 0xf4, 0x56, 0x45, 0x53, 0xf6, 0x90, 0x87, 0x9f, 0x88, 0x73, + 0x63, 0x0d, 0xa6, 0x85, 0x65, 0x29, 0xce, 0x9a, 0xe4, 0x9c, 0x0c, 0xd1, 0xd9, 0x05, 0x97, 0xc8, + 0xb1, 0x9e, 0xf9, 0x6b, 0x53, 0xec, 0x10, 0xea, 0xea, 0x4b, 0xcb, 0xd2, 0xf0, 0x85, 0xec, 0x30, + 0xb6, 0x24, 0x87, 0x42, 0x58, 0x87, 0x8a, 0x5c, 0x43, 0xd4, 0x46, 0x12, 0x92, 0x88, 0xb7, 0xcc, + 0x15, 0x29, 0x69, 0x5a, 0x9d, 0xef, 0x61, 0xda, 0x10, 0xa7, 0xa2, 0x3b, 0xb5, 0xe3, 0x9e, 0xa1, + 0x8a, 0x41, 0xf4, 0xc4, 0xbb, 0x39, 0xbb, 0x53, 0x5b, 0xe5, 0xeb, 0x6e, 0x0c, 0x28, 0xba, 0x53, + 0x22, 0x26, 0xae, 0x1b, 0xb3, 0x9e, 0xb3, 0x3b, 0x69, 0x29, 0x71, 0x91, 0x89, 0x75, 0x2f, 0x11, + 0x12, 0xe7, 0xc8, 0x6a, 0xce, 0x75, 0x4f, 0xcb, 0x88, 0x73, 0x09, 0x83, 0xe1, 0xf4, 0xbb, 0x6b, + 0x2d, 0xa7, 0xbb, 0x9c, 0x01, 0xee, 0x72, 0xfa, 0xdc, 0x75, 0x2f, 0xa7, 0xbb, 0x9c, 0x1e, 0x77, + 0x3d, 0x85, 0x31, 0xc7, 0x8e, 0x08, 0x0d, 0xcd, 0xd7, 0xf3, 0x21, 0x8f, 0x3a, 0x4f, 0x09, 0x0d, + 0x8d, 0x53, 0x58, 0x4c, 0xba, 0x52, 0x32, 0x68, 0x5d, 0xec, 0xa0, 0x73, 0xb5, 0xbf, 0xbd, 0x91, + 0x4f, 0x8a, 0xc9, 0x75, 0xa7, 0xd2, 0x23, 0x76, 0x5b, 0x20, 0xcb, 0x5d, 0xee, 0x67, 0x30, 0x83, + 0xdb, 0xcc, 0x0f, 0x48, 0x94, 0x84, 0x7d, 0x3d, 0x67, 0xd8, 0x35, 0x5e, 0x1c, 0xf6, 0x2e, 0xdc, + 0x91, 0x15, 0xd9, 0x6c, 0x62, 0x87, 0xfb, 0xdd, 0xb8, 0xfd, 0x6a, 0x23, 0xcd, 0x37, 0x73, 0x5a, + 0x26, 0x0a, 0x39, 0x86, 0x3e, 0x50, 0x83, 0x5d, 0x02, 0x1b, 0xcf, 0xe0, 0xcd, 0x16, 0x0a, 0x9a, + 0xb2, 0x0f, 0xb7, 0x29, 0x71, 0x30, 0x63, 0x7a, 0x87, 0x92, 0xab, 0x3b, 0x0a, 0x98, 0x8d, 0x23, + 0x57, 0x3f, 0x39, 0xee, 0xcb, 0x02, 0x5f, 0x15, 0x17, 0x1a, 0xe8, 0x6c, 0x4f, 0xb1, 0xcb, 0xad, + 0xc8, 0xd2, 0xcc, 0x8f, 0x22, 0x57, 0x3d, 0x42, 0x8e, 0xa0, 0xe2, 0x22, 0x8e, 0x6c, 0x86, 0x23, + 0x57, 0xec, 0xd7, 0xa2, 0x25, 0xbe, 0x75, 0xdd, 0x39, 0x22, 0x90, 0xf6, 0x15, 0x90, 0xe8, 0x88, + 0x08, 0x2a, 0x71, 0x34, 0x18, 0x6a, 0x62, 0xdb, 0xf5, 0xbb, 0xe6, 0xdb, 0xaf, 0x26, 0x1c, 0xfb, + 0xa8, 0x89, 0xb7, 0xfd, 0x6e, 0x3d, 0x80, 0x99, 0x06, 0xf3, 0x3e, 0x69, 0xbb, 0x88, 0x63, 0xfd, + 0x7e, 0x9c, 0x87, 0x31, 0x61, 0x0c, 0xa6, 0x66, 0x61, 0xa5, 0xb0, 0x3e, 0x61, 0xe9, 0x2f, 0xe3, + 0x3b, 0x30, 0xd6, 0x96, 0x1c, 0xe6, 0xcd, 0x95, 0xc2, 0x7a, 0x79, 0x6b, 0x71, 0x23, 0xfd, 0xa2, + 0xde, 0xc8, 0xbe, 0x42, 0x2d, 0xcd, 0xfb, 0x7e, 0xf9, 0x57, 0x5f, 0x7f, 0x7e, 0x5f, 0x43, 0xd4, + 0x17, 0xe0, 0x76, 0x8f, 0x34, 0x0b, 0xb3, 0x36, 0x89, 0x18, 0xae, 0xff, 0xaf, 0x08, 0xb3, 0x0d, + 0xe6, 0xfd, 0x58, 0x4e, 0xd2, 0xa7, 0xf8, 0x54, 0x06, 0x4f, 0xbc, 0x65, 0xe5, 0x6c, 0x25, 0xb1, + 0x32, 0xf1, 0xa7, 0x51, 0x85, 0x52, 0x88, 0x39, 0x12, 0x1e, 0x93, 0xfa, 0x4c, 0x58, 0xc9, 0xb7, + 0xb1, 0x0c, 0xe5, 0x80, 0x30, 0x66, 0x87, 0x98, 0xb7, 0x88, 0x6b, 0x16, 0x25, 0x19, 0xc4, 0x51, + 0x43, 0x9e, 0x18, 0x77, 0x61, 0xb2, 0xe7, 0x49, 0x56, 0x58, 0x1f, 0xb1, 0xca, 0x38, 0xf5, 0x1e, + 0x5b, 0x87, 0x8a, 0x47, 0x49, 0x27, 0x72, 0x6d, 0x4e, 0x3b, 0xbc, 0x65, 0x07, 0xc8, 0x33, 0x4b, + 0x92, 0x6d, 0x5a, 0x9d, 0x1f, 0x88, 0xe3, 0x27, 0xc8, 0x13, 0xc5, 0xdf, 0x56, 0xc5, 0x0f, 0x42, + 0x50, 0x8e, 0xe2, 0x6f, 0xcb, 0xe2, 0x3f, 0x82, 0x49, 0xb9, 0x72, 0xda, 0x14, 0x7b, 0x14, 0x73, + 0xb3, 0x9c, 0x0f, 0xb5, 0x2c, 0xc1, 0x2c, 0x89, 0x65, 0xdc, 0x83, 0x69, 0xc1, 0x75, 0x6a, 0x47, + 0xd8, 0x43, 0xa2, 0x46, 0xcc, 0xc9, 0x95, 0xc2, 0x7a, 0xc9, 0x9a, 0x92, 0xa7, 0x4f, 0xf5, 0xa1, + 0xf1, 0x31, 0x8c, 0xeb, 0x3c, 0x31, 0xa7, 0xf2, 0x49, 0x8f, 0x71, 0x8c, 0xf7, 0xc0, 0xd4, 0xef, + 0x27, 0xd6, 0x39, 0xd6, 0x79, 0x13, 0xbf, 0xa1, 0xa7, 0xa5, 0x5f, 0xe7, 0x15, 0x7d, 0x3f, 0x21, + 0xab, 0x37, 0xf4, 0xfb, 0x93, 0x22, 0x83, 0xe2, 0xb8, 0x3f, 0x2e, 0x96, 0x46, 0x2a, 0xc5, 0xc7, + 0xc5, 0xd2, 0x68, 0x65, 0xec, 0x71, 0xb1, 0x34, 0x56, 0x19, 0x7f, 0x5c, 0x2c, 0x4d, 0x54, 0x40, + 0x85, 0xd7, 0x0e, 0x88, 0xe7, 0x3b, 0xd6, 0x4c, 0x32, 0x4f, 0xf4, 0x41, 0xe5, 0xe2, 0x40, 0xe5, + 0x84, 0x55, 0x8e, 0x57, 0x0d, 0x44, 0xbd, 0xfa, 0x77, 0x61, 0xa1, 0x2f, 0xf5, 0xe2, 0xc4, 0x34, + 0x16, 0xa0, 0xa4, 0x5a, 0x94, 0xef, 0xca, 0x1c, 0x2c, 0x5a, 0xe3, 0xf2, 0x7b, 0xd7, 0xad, 0xff, + 0xae, 0x20, 0xf3, 0x79, 0x37, 0x62, 0x98, 0x72, 0xdd, 0xe0, 0xf6, 0xd0, 0x79, 0x40, 0x90, 0x3b, + 0xb4, 0x8a, 0x2c, 0x98, 0x8b, 0x1f, 0x80, 0x5d, 0x14, 0x74, 0xb0, 0x7d, 0xdc, 0x89, 0xdc, 0x00, + 0xeb, 0x9a, 0x5a, 0xc9, 0xd6, 0x94, 0xc6, 0x7c, 0x26, 0x18, 0x1f, 0x4a, 0x3e, 0xcb, 0xa0, 0x7d, + 0x67, 0xd9, 0x1a, 0xbb, 0x0b, 0xcb, 0x43, 0x74, 0x4a, 0x6a, 0xed, 0x37, 0x05, 0x98, 0x4f, 0x78, + 0xd4, 0xa6, 0xf8, 0x32, 0xb5, 0x9f, 0x80, 0xa1, 0xc3, 0x27, 0xbb, 0x5d, 0x46, 0xe9, 0x5a, 0x56, + 0x69, 0x05, 0xb8, 0x8d, 0x38, 0xd2, 0x2a, 0x57, 0x4e, 0x7b, 0x4e, 0xb2, 0x0a, 0xaf, 0x40, 0x6d, + 0xb0, 0x32, 0x89, 0xbe, 0x7f, 0x2d, 0x40, 0xb9, 0xc1, 0x3c, 0x4b, 0x2e, 0x8c, 0x98, 0x0e, 0x55, + 0x32, 0x1d, 0xaa, 0x62, 0x26, 0x54, 0xc6, 0x1c, 0x8c, 0x92, 0xd3, 0x08, 0x53, 0x73, 0x54, 0xde, + 0x50, 0x1f, 0xc6, 0x12, 0x80, 0x7f, 0xb1, 0x04, 0x8f, 0xc9, 0x52, 0x98, 0xf0, 0xe3, 0x75, 0x37, + 0xa3, 0xe6, 0xe3, 0x62, 0xe9, 0x66, 0x65, 0x44, 0xa5, 0x9f, 0x55, 0x0e, 0xfc, 0x63, 0xbb, 0xbd, + 0xd5, 0xb6, 0x4f, 0xf0, 0xb9, 0x35, 0x15, 0x76, 0x02, 0xee, 0xdb, 0xc8, 0x75, 0x29, 0x66, 0xac, + 0xbe, 0x0b, 0xaf, 0xa5, 0x74, 0x4d, 0xd2, 0xc8, 0x84, 0x71, 0xd6, 0x71, 0xc4, 0x1c, 0x91, 0x4a, + 0x97, 0xac, 0xf8, 0x53, 0x50, 0x42, 0xcc, 0x18, 0xf2, 0xb0, 0x6e, 0x64, 0xf1, 0x67, 0xbd, 0x0b, + 0xb7, 0x24, 0x54, 0x48, 0xba, 0xd8, 0x4a, 0x6d, 0xcb, 0x57, 0x72, 0xc0, 0xcd, 0xac, 0x03, 0xb2, + 0xa6, 0x8e, 0x5c, 0x66, 0x6a, 0x7d, 0x1f, 0x96, 0x06, 0xca, 0xcd, 0x65, 0xcc, 0x1f, 0x54, 0x10, + 0x1f, 0xb8, 0xea, 0xd7, 0x0b, 0xd7, 0xb1, 0xe1, 0x43, 0x18, 0x43, 0x21, 0xe9, 0x44, 0x5c, 0xea, + 0x7f, 0x9d, 0x09, 0xab, 0xef, 0x67, 0xcd, 0xbd, 0x25, 0x23, 0x16, 0x2b, 0x96, 0x64, 0xdd, 0x9f, + 0x0a, 0x30, 0x9d, 0xb8, 0xe1, 0x9b, 0xa6, 0xb3, 0x29, 0x2b, 0x38, 0xa5, 0x5b, 0xa2, 0xf6, 0x33, + 0x98, 0x13, 0xcd, 0x0c, 0x45, 0x0e, 0x0e, 0xf2, 0xe9, 0x9e, 0x95, 0x58, 0x83, 0xc5, 0x41, 0xb8, + 0x89, 0xdc, 0xbf, 0x17, 0xa0, 0xd2, 0x60, 0xde, 0x36, 0x0e, 0xc4, 0x14, 0xb9, 0xbe, 0xc3, 0x4c, + 0x18, 0x4f, 0x67, 0xe9, 0x84, 0x15, 0x7f, 0xa6, 0x5c, 0x59, 0x7c, 0x95, 0xae, 0xac, 0x82, 0xd9, + 0xab, 0x77, 0x62, 0xd4, 0x3f, 0x0a, 0x29, 0x3f, 0x5f, 0xcd, 0xb4, 0x94, 0xfe, 0x37, 0xb3, 0xfa, + 0xa7, 0x8d, 0x1e, 0x19, 0x96, 0x25, 0xaf, 0xd4, 0x34, 0xd5, 0x5a, 0x07, 0x68, 0x9f, 0x18, 0xf8, + 0xfb, 0x42, 0x5f, 0x58, 0x73, 0x47, 0x70, 0x11, 0x26, 0x5c, 0x85, 0x41, 0xe2, 0x18, 0x5e, 0x1c, + 0xa4, 0xfd, 0x53, 0xcc, 0xf8, 0x27, 0xab, 0xfa, 0xeb, 0xb0, 0x76, 0x99, 0x5e, 0x89, 0x01, 0x7f, + 0x2c, 0xc0, 0x64, 0x83, 0x79, 0x3b, 0x62, 0x23, 0x93, 0x2b, 0xe3, 0x37, 0xa7, 0x46, 0xe7, 0x65, + 0x25, 0x26, 0x9a, 0x25, 0x2a, 0x1f, 0xca, 0x9c, 0x7a, 0xe0, 0xba, 0x07, 0xe4, 0xb0, 0xe5, 0x73, + 0x1c, 0xf8, 0x8c, 0x3f, 0x70, 0x43, 0x3f, 0xba, 0x2c, 0xa7, 0xf4, 0x78, 0x89, 0x73, 0x4a, 0x7f, + 0x0e, 0x0a, 0xf7, 0x00, 0xe0, 0x44, 0xf4, 0xa7, 0x70, 0x27, 0x49, 0x88, 0x1d, 0x4a, 0xc2, 0x57, + 0x2b, 0xff, 0x1e, 0xac, 0x5e, 0x82, 0x9e, 0x28, 0x11, 0x67, 0xa5, 0x78, 0x42, 0x0f, 0x0e, 0x2a, + 0xd5, 0x55, 0xd7, 0xc7, 0xf1, 0x4a, 0x1b, 0x4a, 0x46, 0xf9, 0xad, 0xbf, 0x4c, 0xc2, 0x48, 0x83, + 0x79, 0xc6, 0x01, 0x4c, 0x66, 0x9e, 0x43, 0x4b, 0xd9, 0xed, 0xa6, 0xe7, 0xfd, 0x52, 0xbd, 0x77, + 0x29, 0x39, 0x99, 0x98, 0x47, 0x30, 0xdd, 0xf3, 0xb4, 0x59, 0xee, 0xbb, 0x98, 0x65, 0xa8, 0xbe, + 0xf1, 0x12, 0x86, 0x04, 0xfb, 0x43, 0x28, 0x25, 0xab, 0xd1, 0x42, 0xdf, 0xa5, 0x98, 0x54, 0xbd, + 0x3b, 0x94, 0x94, 0x20, 0x35, 0xc1, 0x18, 0xb0, 0x6d, 0xac, 0x0e, 0xb8, 0xd8, 0xcb, 0x54, 0x7d, + 0xeb, 0x0a, 0x4c, 0x69, 0x8d, 0x93, 0x3d, 0xa0, 0x5f, 0xe3, 0x98, 0x34, 0x40, 0xe3, 0xde, 0x21, + 0x6d, 0x7c, 0x0c, 0xe5, 0xf4, 0x90, 0x5b, 0x1c, 0xa2, 0x85, 0xc2, 0x5b, 0xbb, 0x8c, 0x9a, 0x40, + 0x3a, 0x30, 0xdb, 0x3f, 0x3d, 0xeb, 0xfd, 0xc1, 0xe8, 0xe5, 0xa9, 0xde, 0x7f, 0x39, 0x4f, 0x22, + 0xe4, 0x10, 0xa6, 0xb2, 0x89, 0x5d, 0xeb, 0xbb, 0x9c, 0xa1, 0x57, 0x5f, 0xbf, 0x9c, 0x9e, 0x00, + 0xfb, 0xf0, 0xda, 0xa0, 0xba, 0x19, 0x64, 0x7a, 0x1f, 0x57, 0xf5, 0xed, 0xab, 0x70, 0x65, 0x45, + 0xf5, 0x4f, 0x8c, 0x61, 0x5e, 0x7e, 0xb9, 0xa8, 0xa1, 0x5d, 0xde, 0xf8, 0x05, 0x2c, 0x0c, 0x1f, + 0x51, 0x97, 0xfb, 0x3d, 0x2b, 0x76, 0xeb, 0xea, 0xbc, 0x89, 0xf0, 0x8f, 0x60, 0xe2, 0x62, 0xbc, + 0x54, 0xfb, 0x00, 0x12, 0x5a, 0xb5, 0x3e, 0x9c, 0x96, 0x76, 0xda, 0xa0, 0xce, 0xbf, 0x36, 0x28, + 0xd5, 0x7b, 0xb9, 0x06, 0x38, 0xed, 0x92, 0x66, 0x6f, 0x9c, 0x81, 0x39, 0xb4, 0xd3, 0xbf, 0x39, + 0xc4, 0xfd, 0xfd, 0xac, 0xd5, 0x77, 0xaf, 0xcc, 0x9a, 0x36, 0x72, 0xd0, 0xe3, 0xb2, 0xdf, 0xc8, + 0x01, 0x5c, 0x03, 0x8c, 0xbc, 0xe4, 0x6d, 0x68, 0x04, 0x30, 0x37, 0xf0, 0xfd, 0x7d, 0x6f, 0x08, + 0x4a, 0x96, 0xad, 0xfa, 0xce, 0x95, 0xd8, 0x62, 0x69, 0xd5, 0xd1, 0x5f, 0x8a, 0x71, 0xff, 0xd0, + 0xfa, 0xe2, 0x79, 0xad, 0xf0, 0xe5, 0xf3, 0x5a, 0xe1, 0xbf, 0xcf, 0x6b, 0x85, 0xdf, 0xbe, 0xa8, + 0xdd, 0xf8, 0xf2, 0x45, 0xed, 0xc6, 0xbf, 0x5f, 0xd4, 0x6e, 0x1c, 0xbd, 0x77, 0xc5, 0x5f, 0x90, + 0x9c, 0x6d, 0x5e, 0xfc, 0x4d, 0x87, 0xfc, 0xdb, 0x91, 0xe3, 0x31, 0xf9, 0x07, 0x1d, 0xdf, 0xfe, + 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x07, 0xdc, 0xd2, 0x44, 0xbf, 0x22, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2083,11 +2024,9 @@ const _ = grpc.SupportPackageIsVersion4 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MsgClient interface { UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) - InsertBulkWorkerPayload(ctx context.Context, in *MsgInsertBulkWorkerPayload, opts ...grpc.CallOption) (*MsgInsertBulkWorkerPayloadResponse, error) CreateNewTopic(ctx context.Context, in *MsgCreateNewTopic, opts ...grpc.CallOption) (*MsgCreateNewTopicResponse, error) Register(ctx context.Context, in *MsgRegister, opts ...grpc.CallOption) (*MsgRegisterResponse, error) RemoveRegistration(ctx context.Context, in *MsgRemoveRegistration, opts ...grpc.CallOption) (*MsgRemoveRegistrationResponse, error) - InsertBulkReputerPayload(ctx context.Context, in *MsgInsertBulkReputerPayload, opts ...grpc.CallOption) (*MsgInsertBulkReputerPayloadResponse, error) AddStake(ctx context.Context, in *MsgAddStake, opts ...grpc.CallOption) (*MsgAddStakeResponse, error) RemoveStake(ctx context.Context, in *MsgRemoveStake, opts ...grpc.CallOption) (*MsgRemoveStakeResponse, error) CancelRemoveStake(ctx context.Context, in *MsgCancelRemoveStake, opts ...grpc.CallOption) (*MsgCancelRemoveStakeResponse, error) @@ -2098,6 +2037,8 @@ type MsgClient interface { FundTopic(ctx context.Context, in *MsgFundTopic, opts ...grpc.CallOption) (*MsgFundTopicResponse, error) AddToWhitelistAdmin(ctx context.Context, in *MsgAddToWhitelistAdmin, opts ...grpc.CallOption) (*MsgAddToWhitelistAdminResponse, error) RemoveFromWhitelistAdmin(ctx context.Context, in *MsgRemoveFromWhitelistAdmin, opts ...grpc.CallOption) (*MsgRemoveFromWhitelistAdminResponse, error) + InsertWorkerPayload(ctx context.Context, in *MsgInsertWorkerPayload, opts ...grpc.CallOption) (*MsgInsertWorkerPayloadResponse, error) + InsertReputerPayload(ctx context.Context, in *MsgInsertReputerPayload, opts ...grpc.CallOption) (*MsgInsertReputerPayloadResponse, error) } type msgClient struct { @@ -2110,16 +2051,7 @@ func NewMsgClient(cc grpc1.ClientConn) MsgClient { func (c *msgClient) UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) { out := new(MsgUpdateParamsResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/UpdateParams", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) InsertBulkWorkerPayload(ctx context.Context, in *MsgInsertBulkWorkerPayload, opts ...grpc.CallOption) (*MsgInsertBulkWorkerPayloadResponse, error) { - out := new(MsgInsertBulkWorkerPayloadResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/InsertBulkWorkerPayload", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/UpdateParams", in, out, opts...) if err != nil { return nil, err } @@ -2128,7 +2060,7 @@ func (c *msgClient) InsertBulkWorkerPayload(ctx context.Context, in *MsgInsertBu func (c *msgClient) CreateNewTopic(ctx context.Context, in *MsgCreateNewTopic, opts ...grpc.CallOption) (*MsgCreateNewTopicResponse, error) { out := new(MsgCreateNewTopicResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/CreateNewTopic", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/CreateNewTopic", in, out, opts...) if err != nil { return nil, err } @@ -2137,7 +2069,7 @@ func (c *msgClient) CreateNewTopic(ctx context.Context, in *MsgCreateNewTopic, o func (c *msgClient) Register(ctx context.Context, in *MsgRegister, opts ...grpc.CallOption) (*MsgRegisterResponse, error) { out := new(MsgRegisterResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/Register", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/Register", in, out, opts...) if err != nil { return nil, err } @@ -2146,16 +2078,7 @@ func (c *msgClient) Register(ctx context.Context, in *MsgRegister, opts ...grpc. func (c *msgClient) RemoveRegistration(ctx context.Context, in *MsgRemoveRegistration, opts ...grpc.CallOption) (*MsgRemoveRegistrationResponse, error) { out := new(MsgRemoveRegistrationResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/RemoveRegistration", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *msgClient) InsertBulkReputerPayload(ctx context.Context, in *MsgInsertBulkReputerPayload, opts ...grpc.CallOption) (*MsgInsertBulkReputerPayloadResponse, error) { - out := new(MsgInsertBulkReputerPayloadResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/InsertBulkReputerPayload", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/RemoveRegistration", in, out, opts...) if err != nil { return nil, err } @@ -2164,7 +2087,7 @@ func (c *msgClient) InsertBulkReputerPayload(ctx context.Context, in *MsgInsertB func (c *msgClient) AddStake(ctx context.Context, in *MsgAddStake, opts ...grpc.CallOption) (*MsgAddStakeResponse, error) { out := new(MsgAddStakeResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/AddStake", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/AddStake", in, out, opts...) if err != nil { return nil, err } @@ -2173,7 +2096,7 @@ func (c *msgClient) AddStake(ctx context.Context, in *MsgAddStake, opts ...grpc. func (c *msgClient) RemoveStake(ctx context.Context, in *MsgRemoveStake, opts ...grpc.CallOption) (*MsgRemoveStakeResponse, error) { out := new(MsgRemoveStakeResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/RemoveStake", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/RemoveStake", in, out, opts...) if err != nil { return nil, err } @@ -2182,7 +2105,7 @@ func (c *msgClient) RemoveStake(ctx context.Context, in *MsgRemoveStake, opts .. func (c *msgClient) CancelRemoveStake(ctx context.Context, in *MsgCancelRemoveStake, opts ...grpc.CallOption) (*MsgCancelRemoveStakeResponse, error) { out := new(MsgCancelRemoveStakeResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/CancelRemoveStake", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/CancelRemoveStake", in, out, opts...) if err != nil { return nil, err } @@ -2191,7 +2114,7 @@ func (c *msgClient) CancelRemoveStake(ctx context.Context, in *MsgCancelRemoveSt func (c *msgClient) DelegateStake(ctx context.Context, in *MsgDelegateStake, opts ...grpc.CallOption) (*MsgDelegateStakeResponse, error) { out := new(MsgDelegateStakeResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/DelegateStake", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/DelegateStake", in, out, opts...) if err != nil { return nil, err } @@ -2200,7 +2123,7 @@ func (c *msgClient) DelegateStake(ctx context.Context, in *MsgDelegateStake, opt func (c *msgClient) RewardDelegateStake(ctx context.Context, in *MsgRewardDelegateStake, opts ...grpc.CallOption) (*MsgRewardDelegateStakeResponse, error) { out := new(MsgRewardDelegateStakeResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/RewardDelegateStake", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/RewardDelegateStake", in, out, opts...) if err != nil { return nil, err } @@ -2209,7 +2132,7 @@ func (c *msgClient) RewardDelegateStake(ctx context.Context, in *MsgRewardDelega func (c *msgClient) RemoveDelegateStake(ctx context.Context, in *MsgRemoveDelegateStake, opts ...grpc.CallOption) (*MsgRemoveDelegateStakeResponse, error) { out := new(MsgRemoveDelegateStakeResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/RemoveDelegateStake", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/RemoveDelegateStake", in, out, opts...) if err != nil { return nil, err } @@ -2218,7 +2141,7 @@ func (c *msgClient) RemoveDelegateStake(ctx context.Context, in *MsgRemoveDelega func (c *msgClient) CancelRemoveDelegateStake(ctx context.Context, in *MsgCancelRemoveDelegateStake, opts ...grpc.CallOption) (*MsgCancelRemoveDelegateStakeResponse, error) { out := new(MsgCancelRemoveDelegateStakeResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/CancelRemoveDelegateStake", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/CancelRemoveDelegateStake", in, out, opts...) if err != nil { return nil, err } @@ -2227,7 +2150,7 @@ func (c *msgClient) CancelRemoveDelegateStake(ctx context.Context, in *MsgCancel func (c *msgClient) FundTopic(ctx context.Context, in *MsgFundTopic, opts ...grpc.CallOption) (*MsgFundTopicResponse, error) { out := new(MsgFundTopicResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/FundTopic", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/FundTopic", in, out, opts...) if err != nil { return nil, err } @@ -2236,7 +2159,7 @@ func (c *msgClient) FundTopic(ctx context.Context, in *MsgFundTopic, opts ...grp func (c *msgClient) AddToWhitelistAdmin(ctx context.Context, in *MsgAddToWhitelistAdmin, opts ...grpc.CallOption) (*MsgAddToWhitelistAdminResponse, error) { out := new(MsgAddToWhitelistAdminResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/AddToWhitelistAdmin", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/AddToWhitelistAdmin", in, out, opts...) if err != nil { return nil, err } @@ -2245,7 +2168,25 @@ func (c *msgClient) AddToWhitelistAdmin(ctx context.Context, in *MsgAddToWhiteli func (c *msgClient) RemoveFromWhitelistAdmin(ctx context.Context, in *MsgRemoveFromWhitelistAdmin, opts ...grpc.CallOption) (*MsgRemoveFromWhitelistAdminResponse, error) { out := new(MsgRemoveFromWhitelistAdminResponse) - err := c.cc.Invoke(ctx, "/emissions.v1.Msg/RemoveFromWhitelistAdmin", in, out, opts...) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/RemoveFromWhitelistAdmin", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) InsertWorkerPayload(ctx context.Context, in *MsgInsertWorkerPayload, opts ...grpc.CallOption) (*MsgInsertWorkerPayloadResponse, error) { + out := new(MsgInsertWorkerPayloadResponse) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/InsertWorkerPayload", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *msgClient) InsertReputerPayload(ctx context.Context, in *MsgInsertReputerPayload, opts ...grpc.CallOption) (*MsgInsertReputerPayloadResponse, error) { + out := new(MsgInsertReputerPayloadResponse) + err := c.cc.Invoke(ctx, "/emissions.v2.Msg/InsertReputerPayload", in, out, opts...) if err != nil { return nil, err } @@ -2255,11 +2196,9 @@ func (c *msgClient) RemoveFromWhitelistAdmin(ctx context.Context, in *MsgRemoveF // MsgServer is the server API for Msg service. type MsgServer interface { UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) - InsertBulkWorkerPayload(context.Context, *MsgInsertBulkWorkerPayload) (*MsgInsertBulkWorkerPayloadResponse, error) CreateNewTopic(context.Context, *MsgCreateNewTopic) (*MsgCreateNewTopicResponse, error) Register(context.Context, *MsgRegister) (*MsgRegisterResponse, error) RemoveRegistration(context.Context, *MsgRemoveRegistration) (*MsgRemoveRegistrationResponse, error) - InsertBulkReputerPayload(context.Context, *MsgInsertBulkReputerPayload) (*MsgInsertBulkReputerPayloadResponse, error) AddStake(context.Context, *MsgAddStake) (*MsgAddStakeResponse, error) RemoveStake(context.Context, *MsgRemoveStake) (*MsgRemoveStakeResponse, error) CancelRemoveStake(context.Context, *MsgCancelRemoveStake) (*MsgCancelRemoveStakeResponse, error) @@ -2270,6 +2209,8 @@ type MsgServer interface { FundTopic(context.Context, *MsgFundTopic) (*MsgFundTopicResponse, error) AddToWhitelistAdmin(context.Context, *MsgAddToWhitelistAdmin) (*MsgAddToWhitelistAdminResponse, error) RemoveFromWhitelistAdmin(context.Context, *MsgRemoveFromWhitelistAdmin) (*MsgRemoveFromWhitelistAdminResponse, error) + InsertWorkerPayload(context.Context, *MsgInsertWorkerPayload) (*MsgInsertWorkerPayloadResponse, error) + InsertReputerPayload(context.Context, *MsgInsertReputerPayload) (*MsgInsertReputerPayloadResponse, error) } // UnimplementedMsgServer can be embedded to have forward compatible implementations. @@ -2279,9 +2220,6 @@ type UnimplementedMsgServer struct { func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateParams not implemented") } -func (*UnimplementedMsgServer) InsertBulkWorkerPayload(ctx context.Context, req *MsgInsertBulkWorkerPayload) (*MsgInsertBulkWorkerPayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InsertBulkWorkerPayload not implemented") -} func (*UnimplementedMsgServer) CreateNewTopic(ctx context.Context, req *MsgCreateNewTopic) (*MsgCreateNewTopicResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateNewTopic not implemented") } @@ -2291,9 +2229,6 @@ func (*UnimplementedMsgServer) Register(ctx context.Context, req *MsgRegister) ( func (*UnimplementedMsgServer) RemoveRegistration(ctx context.Context, req *MsgRemoveRegistration) (*MsgRemoveRegistrationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveRegistration not implemented") } -func (*UnimplementedMsgServer) InsertBulkReputerPayload(ctx context.Context, req *MsgInsertBulkReputerPayload) (*MsgInsertBulkReputerPayloadResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method InsertBulkReputerPayload not implemented") -} func (*UnimplementedMsgServer) AddStake(ctx context.Context, req *MsgAddStake) (*MsgAddStakeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AddStake not implemented") } @@ -2324,6 +2259,12 @@ func (*UnimplementedMsgServer) AddToWhitelistAdmin(ctx context.Context, req *Msg func (*UnimplementedMsgServer) RemoveFromWhitelistAdmin(ctx context.Context, req *MsgRemoveFromWhitelistAdmin) (*MsgRemoveFromWhitelistAdminResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RemoveFromWhitelistAdmin not implemented") } +func (*UnimplementedMsgServer) InsertWorkerPayload(ctx context.Context, req *MsgInsertWorkerPayload) (*MsgInsertWorkerPayloadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InsertWorkerPayload not implemented") +} +func (*UnimplementedMsgServer) InsertReputerPayload(ctx context.Context, req *MsgInsertReputerPayload) (*MsgInsertReputerPayloadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method InsertReputerPayload not implemented") +} func RegisterMsgServer(s grpc1.Server, srv MsgServer) { s.RegisterService(&_Msg_serviceDesc, srv) @@ -2339,7 +2280,7 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/UpdateParams", + FullMethod: "/emissions.v2.Msg/UpdateParams", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).UpdateParams(ctx, req.(*MsgUpdateParams)) @@ -2347,24 +2288,6 @@ func _Msg_UpdateParams_Handler(srv interface{}, ctx context.Context, dec func(in return interceptor(ctx, in, info, handler) } -func _Msg_InsertBulkWorkerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgInsertBulkWorkerPayload) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).InsertBulkWorkerPayload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/emissions.v1.Msg/InsertBulkWorkerPayload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).InsertBulkWorkerPayload(ctx, req.(*MsgInsertBulkWorkerPayload)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_CreateNewTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgCreateNewTopic) if err := dec(in); err != nil { @@ -2375,7 +2298,7 @@ func _Msg_CreateNewTopic_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/CreateNewTopic", + FullMethod: "/emissions.v2.Msg/CreateNewTopic", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).CreateNewTopic(ctx, req.(*MsgCreateNewTopic)) @@ -2393,7 +2316,7 @@ func _Msg_Register_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/Register", + FullMethod: "/emissions.v2.Msg/Register", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).Register(ctx, req.(*MsgRegister)) @@ -2411,7 +2334,7 @@ func _Msg_RemoveRegistration_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/RemoveRegistration", + FullMethod: "/emissions.v2.Msg/RemoveRegistration", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RemoveRegistration(ctx, req.(*MsgRemoveRegistration)) @@ -2419,24 +2342,6 @@ func _Msg_RemoveRegistration_Handler(srv interface{}, ctx context.Context, dec f return interceptor(ctx, in, info, handler) } -func _Msg_InsertBulkReputerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgInsertBulkReputerPayload) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(MsgServer).InsertBulkReputerPayload(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/emissions.v1.Msg/InsertBulkReputerPayload", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).InsertBulkReputerPayload(ctx, req.(*MsgInsertBulkReputerPayload)) - } - return interceptor(ctx, in, info, handler) -} - func _Msg_AddStake_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MsgAddStake) if err := dec(in); err != nil { @@ -2447,7 +2352,7 @@ func _Msg_AddStake_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/AddStake", + FullMethod: "/emissions.v2.Msg/AddStake", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).AddStake(ctx, req.(*MsgAddStake)) @@ -2465,7 +2370,7 @@ func _Msg_RemoveStake_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/RemoveStake", + FullMethod: "/emissions.v2.Msg/RemoveStake", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RemoveStake(ctx, req.(*MsgRemoveStake)) @@ -2483,7 +2388,7 @@ func _Msg_CancelRemoveStake_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/CancelRemoveStake", + FullMethod: "/emissions.v2.Msg/CancelRemoveStake", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).CancelRemoveStake(ctx, req.(*MsgCancelRemoveStake)) @@ -2501,7 +2406,7 @@ func _Msg_DelegateStake_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/DelegateStake", + FullMethod: "/emissions.v2.Msg/DelegateStake", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).DelegateStake(ctx, req.(*MsgDelegateStake)) @@ -2519,7 +2424,7 @@ func _Msg_RewardDelegateStake_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/RewardDelegateStake", + FullMethod: "/emissions.v2.Msg/RewardDelegateStake", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RewardDelegateStake(ctx, req.(*MsgRewardDelegateStake)) @@ -2537,7 +2442,7 @@ func _Msg_RemoveDelegateStake_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/RemoveDelegateStake", + FullMethod: "/emissions.v2.Msg/RemoveDelegateStake", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RemoveDelegateStake(ctx, req.(*MsgRemoveDelegateStake)) @@ -2555,7 +2460,7 @@ func _Msg_CancelRemoveDelegateStake_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/CancelRemoveDelegateStake", + FullMethod: "/emissions.v2.Msg/CancelRemoveDelegateStake", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).CancelRemoveDelegateStake(ctx, req.(*MsgCancelRemoveDelegateStake)) @@ -2573,7 +2478,7 @@ func _Msg_FundTopic_Handler(srv interface{}, ctx context.Context, dec func(inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/FundTopic", + FullMethod: "/emissions.v2.Msg/FundTopic", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).FundTopic(ctx, req.(*MsgFundTopic)) @@ -2591,7 +2496,7 @@ func _Msg_AddToWhitelistAdmin_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/AddToWhitelistAdmin", + FullMethod: "/emissions.v2.Msg/AddToWhitelistAdmin", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).AddToWhitelistAdmin(ctx, req.(*MsgAddToWhitelistAdmin)) @@ -2609,7 +2514,7 @@ func _Msg_RemoveFromWhitelistAdmin_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/emissions.v1.Msg/RemoveFromWhitelistAdmin", + FullMethod: "/emissions.v2.Msg/RemoveFromWhitelistAdmin", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MsgServer).RemoveFromWhitelistAdmin(ctx, req.(*MsgRemoveFromWhitelistAdmin)) @@ -2617,18 +2522,50 @@ func _Msg_RemoveFromWhitelistAdmin_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _Msg_InsertWorkerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgInsertWorkerPayload) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).InsertWorkerPayload(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v2.Msg/InsertWorkerPayload", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).InsertWorkerPayload(ctx, req.(*MsgInsertWorkerPayload)) + } + return interceptor(ctx, in, info, handler) +} + +func _Msg_InsertReputerPayload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgInsertReputerPayload) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(MsgServer).InsertReputerPayload(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/emissions.v2.Msg/InsertReputerPayload", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(MsgServer).InsertReputerPayload(ctx, req.(*MsgInsertReputerPayload)) + } + return interceptor(ctx, in, info, handler) +} + var _Msg_serviceDesc = grpc.ServiceDesc{ - ServiceName: "emissions.v1.Msg", + ServiceName: "emissions.v2.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, - { - MethodName: "InsertBulkWorkerPayload", - Handler: _Msg_InsertBulkWorkerPayload_Handler, - }, { MethodName: "CreateNewTopic", Handler: _Msg_CreateNewTopic_Handler, @@ -2641,10 +2578,6 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "RemoveRegistration", Handler: _Msg_RemoveRegistration_Handler, }, - { - MethodName: "InsertBulkReputerPayload", - Handler: _Msg_InsertBulkReputerPayload_Handler, - }, { MethodName: "AddStake", Handler: _Msg_AddStake_Handler, @@ -2685,9 +2618,17 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ MethodName: "RemoveFromWhitelistAdmin", Handler: _Msg_RemoveFromWhitelistAdmin_Handler, }, + { + MethodName: "InsertWorkerPayload", + Handler: _Msg_InsertWorkerPayload_Handler, + }, + { + MethodName: "InsertReputerPayload", + Handler: _Msg_InsertReputerPayload_Handler, + }, }, Streams: []grpc.StreamDesc{}, - Metadata: "emissions/v1/tx.proto", + Metadata: "emissions/v2/tx.proto", } func (m *OptionalParams) Marshal() (dAtA []byte, err error) { @@ -2710,6 +2651,58 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if len(m.EpsilonSafeDiv) > 0 { + for iNdEx := len(m.EpsilonSafeDiv) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.EpsilonSafeDiv[iNdEx].Size() + i -= size + if _, err := m.EpsilonSafeDiv[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xe2 + } + } + if len(m.DataSendingFee) > 0 { + for iNdEx := len(m.DataSendingFee) - 1; iNdEx >= 0; iNdEx-- { + { + size := m.DataSendingFee[iNdEx].Size() + i -= size + if _, err := m.DataSendingFee[iNdEx].MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xda + } + } + if len(m.HalfMaxProcessStakeRemovalsEndBlock) > 0 { + dAtA2 := make([]byte, len(m.HalfMaxProcessStakeRemovalsEndBlock)*10) + var j1 int + for _, num := range m.HalfMaxProcessStakeRemovalsEndBlock { + for num >= 1<<7 { + dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA2[j1] = uint8(num) + j1++ + } + i -= j1 + copy(dAtA[i:], dAtA2[:j1]) + i = encodeVarintTx(dAtA, i, uint64(j1)) + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0xd2 + } if len(m.MinEffectiveTopicRevenue) > 0 { for iNdEx := len(m.MinEffectiveTopicRevenue) - 1; iNdEx >= 0; iNdEx-- { { @@ -2855,30 +2848,9 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } if len(m.BlocksPerMonth) > 0 { - dAtA2 := make([]byte, len(m.BlocksPerMonth)*10) - var j1 int - for _, num := range m.BlocksPerMonth { - for num >= 1<<7 { - dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j1++ - } - dAtA2[j1] = uint8(num) - j1++ - } - i -= j1 - copy(dAtA[i:], dAtA2[:j1]) - i = encodeVarintTx(dAtA, i, uint64(j1)) - i-- - dAtA[i] = 0x2 - i-- - dAtA[i] = 0x82 - } - if len(m.MinEpochLengthRecordLimit) > 0 { - dAtA4 := make([]byte, len(m.MinEpochLengthRecordLimit)*10) + dAtA4 := make([]byte, len(m.BlocksPerMonth)*10) var j3 int - for _, num1 := range m.MinEpochLengthRecordLimit { - num := uint64(num1) + for _, num := range m.BlocksPerMonth { for num >= 1<<7 { dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -2891,14 +2863,15 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], dAtA4[:j3]) i = encodeVarintTx(dAtA, i, uint64(j3)) i-- - dAtA[i] = 0x1 + dAtA[i] = 0x2 i-- - dAtA[i] = 0xfa + dAtA[i] = 0x82 } - if len(m.MaxPageLimit) > 0 { - dAtA6 := make([]byte, len(m.MaxPageLimit)*10) + if len(m.MinEpochLengthRecordLimit) > 0 { + dAtA6 := make([]byte, len(m.MinEpochLengthRecordLimit)*10) var j5 int - for _, num := range m.MaxPageLimit { + for _, num1 := range m.MinEpochLengthRecordLimit { + num := uint64(num1) for num >= 1<<7 { dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -2913,12 +2886,12 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0xf2 + dAtA[i] = 0xfa } - if len(m.DefaultPageLimit) > 0 { - dAtA8 := make([]byte, len(m.DefaultPageLimit)*10) + if len(m.MaxPageLimit) > 0 { + dAtA8 := make([]byte, len(m.MaxPageLimit)*10) var j7 int - for _, num := range m.DefaultPageLimit { + for _, num := range m.MaxPageLimit { for num >= 1<<7 { dAtA8[j7] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -2933,6 +2906,26 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- + dAtA[i] = 0xf2 + } + if len(m.DefaultPageLimit) > 0 { + dAtA10 := make([]byte, len(m.DefaultPageLimit)*10) + var j9 int + for _, num := range m.DefaultPageLimit { + for num >= 1<<7 { + dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j9++ + } + dAtA10[j9] = uint8(num) + j9++ + } + i -= j9 + copy(dAtA[i:], dAtA10[:j9]) + i = encodeVarintTx(dAtA, i, uint64(j9)) + i-- + dAtA[i] = 0x1 + i-- dAtA[i] = 0xea } if len(m.RegistrationFee) > 0 { @@ -2952,62 +2945,62 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } if len(m.MaxRetriesToFulfilNoncesReputer) > 0 { - dAtA10 := make([]byte, len(m.MaxRetriesToFulfilNoncesReputer)*10) - var j9 int + dAtA12 := make([]byte, len(m.MaxRetriesToFulfilNoncesReputer)*10) + var j11 int for _, num1 := range m.MaxRetriesToFulfilNoncesReputer { num := uint64(num1) for num >= 1<<7 { - dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) + dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j9++ + j11++ } - dAtA10[j9] = uint8(num) - j9++ + dAtA12[j11] = uint8(num) + j11++ } - i -= j9 - copy(dAtA[i:], dAtA10[:j9]) - i = encodeVarintTx(dAtA, i, uint64(j9)) + i -= j11 + copy(dAtA[i:], dAtA12[:j11]) + i = encodeVarintTx(dAtA, i, uint64(j11)) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xda } if len(m.MaxRetriesToFulfilNoncesWorker) > 0 { - dAtA12 := make([]byte, len(m.MaxRetriesToFulfilNoncesWorker)*10) - var j11 int + dAtA14 := make([]byte, len(m.MaxRetriesToFulfilNoncesWorker)*10) + var j13 int for _, num1 := range m.MaxRetriesToFulfilNoncesWorker { num := uint64(num1) for num >= 1<<7 { - dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) + dAtA14[j13] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j11++ + j13++ } - dAtA12[j11] = uint8(num) - j11++ + dAtA14[j13] = uint8(num) + j13++ } - i -= j11 - copy(dAtA[i:], dAtA12[:j11]) - i = encodeVarintTx(dAtA, i, uint64(j11)) + i -= j13 + copy(dAtA[i:], dAtA14[:j13]) + i = encodeVarintTx(dAtA, i, uint64(j13)) i-- dAtA[i] = 0x1 i-- dAtA[i] = 0xd2 } if len(m.GradientDescentMaxIters) > 0 { - dAtA14 := make([]byte, len(m.GradientDescentMaxIters)*10) - var j13 int + dAtA16 := make([]byte, len(m.GradientDescentMaxIters)*10) + var j15 int for _, num := range m.GradientDescentMaxIters { for num >= 1<<7 { - dAtA14[j13] = uint8(uint64(num)&0x7f | 0x80) + dAtA16[j15] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j13++ + j15++ } - dAtA14[j13] = uint8(num) - j13++ + dAtA16[j15] = uint8(num) + j15++ } - i -= j13 - copy(dAtA[i:], dAtA14[:j13]) - i = encodeVarintTx(dAtA, i, uint64(j13)) + i -= j15 + copy(dAtA[i:], dAtA16[:j15]) + i = encodeVarintTx(dAtA, i, uint64(j15)) i-- dAtA[i] = 0x1 i-- @@ -3030,29 +3023,9 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } if len(m.MaxTopReputersToReward) > 0 { - dAtA16 := make([]byte, len(m.MaxTopReputersToReward)*10) - var j15 int - for _, num := range m.MaxTopReputersToReward { - for num >= 1<<7 { - dAtA16[j15] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j15++ - } - dAtA16[j15] = uint8(num) - j15++ - } - i -= j15 - copy(dAtA[i:], dAtA16[:j15]) - i = encodeVarintTx(dAtA, i, uint64(j15)) - i-- - dAtA[i] = 0x1 - i-- - dAtA[i] = 0xba - } - if len(m.MaxTopForecastersToReward) > 0 { - dAtA18 := make([]byte, len(m.MaxTopForecastersToReward)*10) + dAtA18 := make([]byte, len(m.MaxTopReputersToReward)*10) var j17 int - for _, num := range m.MaxTopForecastersToReward { + for _, num := range m.MaxTopReputersToReward { for num >= 1<<7 { dAtA18[j17] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -3067,12 +3040,12 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0xb2 + dAtA[i] = 0xba } - if len(m.MaxTopInferersToReward) > 0 { - dAtA20 := make([]byte, len(m.MaxTopInferersToReward)*10) + if len(m.MaxTopForecastersToReward) > 0 { + dAtA20 := make([]byte, len(m.MaxTopForecastersToReward)*10) var j19 int - for _, num := range m.MaxTopInferersToReward { + for _, num := range m.MaxTopForecastersToReward { for num >= 1<<7 { dAtA20[j19] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -3087,12 +3060,12 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- - dAtA[i] = 0xaa + dAtA[i] = 0xb2 } - if len(m.MaxSamplesToScaleScores) > 0 { - dAtA22 := make([]byte, len(m.MaxSamplesToScaleScores)*10) + if len(m.MaxTopInferersToReward) > 0 { + dAtA22 := make([]byte, len(m.MaxTopInferersToReward)*10) var j21 int - for _, num := range m.MaxSamplesToScaleScores { + for _, num := range m.MaxTopInferersToReward { for num >= 1<<7 { dAtA22[j21] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 @@ -3107,6 +3080,26 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x1 i-- + dAtA[i] = 0xaa + } + if len(m.MaxSamplesToScaleScores) > 0 { + dAtA24 := make([]byte, len(m.MaxSamplesToScaleScores)*10) + var j23 int + for _, num := range m.MaxSamplesToScaleScores { + for num >= 1<<7 { + dAtA24[j23] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j23++ + } + dAtA24[j23] = uint8(num) + j23++ + } + i -= j23 + copy(dAtA[i:], dAtA24[:j23]) + i = encodeVarintTx(dAtA, i, uint64(j23)) + i-- + dAtA[i] = 0x1 + i-- dAtA[i] = 0xa2 } if len(m.ValidatorsVsAlloraPercentReward) > 0 { @@ -3188,38 +3181,38 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } if len(m.MaxUnfulfilledReputerRequests) > 0 { - dAtA24 := make([]byte, len(m.MaxUnfulfilledReputerRequests)*10) - var j23 int + dAtA26 := make([]byte, len(m.MaxUnfulfilledReputerRequests)*10) + var j25 int for _, num := range m.MaxUnfulfilledReputerRequests { for num >= 1<<7 { - dAtA24[j23] = uint8(uint64(num)&0x7f | 0x80) + dAtA26[j25] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j23++ + j25++ } - dAtA24[j23] = uint8(num) - j23++ + dAtA26[j25] = uint8(num) + j25++ } - i -= j23 - copy(dAtA[i:], dAtA24[:j23]) - i = encodeVarintTx(dAtA, i, uint64(j23)) + i -= j25 + copy(dAtA[i:], dAtA26[:j25]) + i = encodeVarintTx(dAtA, i, uint64(j25)) i-- dAtA[i] = 0x72 } if len(m.MaxUnfulfilledWorkerRequests) > 0 { - dAtA26 := make([]byte, len(m.MaxUnfulfilledWorkerRequests)*10) - var j25 int + dAtA28 := make([]byte, len(m.MaxUnfulfilledWorkerRequests)*10) + var j27 int for _, num := range m.MaxUnfulfilledWorkerRequests { for num >= 1<<7 { - dAtA26[j25] = uint8(uint64(num)&0x7f | 0x80) + dAtA28[j27] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j25++ + j27++ } - dAtA26[j25] = uint8(num) - j25++ + dAtA28[j27] = uint8(num) + j27++ } - i -= j25 - copy(dAtA[i:], dAtA26[:j25]) - i = encodeVarintTx(dAtA, i, uint64(j25)) + i -= j27 + copy(dAtA[i:], dAtA28[:j27]) + i = encodeVarintTx(dAtA, i, uint64(j27)) i-- dAtA[i] = 0x6a } @@ -3280,40 +3273,40 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } if len(m.MinEpochLength) > 0 { - dAtA28 := make([]byte, len(m.MinEpochLength)*10) - var j27 int + dAtA30 := make([]byte, len(m.MinEpochLength)*10) + var j29 int for _, num1 := range m.MinEpochLength { num := uint64(num1) for num >= 1<<7 { - dAtA28[j27] = uint8(uint64(num)&0x7f | 0x80) + dAtA30[j29] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j27++ + j29++ } - dAtA28[j27] = uint8(num) - j27++ + dAtA30[j29] = uint8(num) + j29++ } - i -= j27 - copy(dAtA[i:], dAtA28[:j27]) - i = encodeVarintTx(dAtA, i, uint64(j27)) + i -= j29 + copy(dAtA[i:], dAtA30[:j29]) + i = encodeVarintTx(dAtA, i, uint64(j29)) i-- dAtA[i] = 0x3a } if len(m.RemoveStakeDelayWindow) > 0 { - dAtA30 := make([]byte, len(m.RemoveStakeDelayWindow)*10) - var j29 int + dAtA32 := make([]byte, len(m.RemoveStakeDelayWindow)*10) + var j31 int for _, num1 := range m.RemoveStakeDelayWindow { num := uint64(num1) for num >= 1<<7 { - dAtA30[j29] = uint8(uint64(num)&0x7f | 0x80) + dAtA32[j31] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j29++ + j31++ } - dAtA30[j29] = uint8(num) - j29++ + dAtA32[j31] = uint8(num) + j31++ } - i -= j29 - copy(dAtA[i:], dAtA30[:j29]) - i = encodeVarintTx(dAtA, i, uint64(j29)) + i -= j31 + copy(dAtA[i:], dAtA32[:j31]) + i = encodeVarintTx(dAtA, i, uint64(j31)) i-- dAtA[i] = 0x32 } @@ -3332,20 +3325,20 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } if len(m.MaxTopicsPerBlock) > 0 { - dAtA32 := make([]byte, len(m.MaxTopicsPerBlock)*10) - var j31 int + dAtA34 := make([]byte, len(m.MaxTopicsPerBlock)*10) + var j33 int for _, num := range m.MaxTopicsPerBlock { for num >= 1<<7 { - dAtA32[j31] = uint8(uint64(num)&0x7f | 0x80) + dAtA34[j33] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j31++ + j33++ } - dAtA32[j31] = uint8(num) - j31++ + dAtA34[j33] = uint8(num) + j33++ } - i -= j31 - copy(dAtA[i:], dAtA32[:j31]) - i = encodeVarintTx(dAtA, i, uint64(j31)) + i -= j33 + copy(dAtA[i:], dAtA34[:j33]) + i = encodeVarintTx(dAtA, i, uint64(j33)) i-- dAtA[i] = 0x22 } @@ -3364,21 +3357,21 @@ func (m *OptionalParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } if len(m.MaxSerializedMsgLength) > 0 { - dAtA34 := make([]byte, len(m.MaxSerializedMsgLength)*10) - var j33 int + dAtA36 := make([]byte, len(m.MaxSerializedMsgLength)*10) + var j35 int for _, num1 := range m.MaxSerializedMsgLength { num := uint64(num1) for num >= 1<<7 { - dAtA34[j33] = uint8(uint64(num)&0x7f | 0x80) + dAtA36[j35] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j33++ + j35++ } - dAtA34[j33] = uint8(num) - j33++ + dAtA36[j35] = uint8(num) + j35++ } - i -= j33 - copy(dAtA[i:], dAtA34[:j33]) - i = encodeVarintTx(dAtA, i, uint64(j33)) + i -= j35 + copy(dAtA[i:], dAtA36[:j35]) + i = encodeVarintTx(dAtA, i, uint64(j35)) i-- dAtA[i] = 0x12 } @@ -3479,6 +3472,11 @@ func (m *MsgCreateNewTopic) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.WorkerSubmissionWindow != 0 { + i = encodeVarintTx(dAtA, i, uint64(m.WorkerSubmissionWindow)) + i-- + dAtA[i] = 0x70 + } { size := m.Epsilon.Size() i -= size @@ -3519,13 +3517,6 @@ func (m *MsgCreateNewTopic) MarshalToSizedBuffer(dAtA []byte) (int, error) { } i-- dAtA[i] = 0x52 - if len(m.DefaultArg) > 0 { - i -= len(m.DefaultArg) - copy(dAtA[i:], m.DefaultArg) - i = encodeVarintTx(dAtA, i, uint64(len(m.DefaultArg))) - i-- - dAtA[i] = 0x4a - } if m.GroundTruthLag != 0 { i = encodeVarintTx(dAtA, i, uint64(m.GroundTruthLag)) i-- @@ -3536,20 +3527,6 @@ func (m *MsgCreateNewTopic) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x38 } - if len(m.InferenceMethod) > 0 { - i -= len(m.InferenceMethod) - copy(dAtA[i:], m.InferenceMethod) - i = encodeVarintTx(dAtA, i, uint64(len(m.InferenceMethod))) - i-- - dAtA[i] = 0x32 - } - if len(m.InferenceLogic) > 0 { - i -= len(m.InferenceLogic) - copy(dAtA[i:], m.InferenceLogic) - i = encodeVarintTx(dAtA, i, uint64(len(m.InferenceLogic))) - i-- - dAtA[i] = 0x2a - } if len(m.LossMethod) > 0 { i -= len(m.LossMethod) copy(dAtA[i:], m.LossMethod) @@ -3557,13 +3534,6 @@ func (m *MsgCreateNewTopic) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x22 } - if len(m.LossLogic) > 0 { - i -= len(m.LossLogic) - copy(dAtA[i:], m.LossLogic) - i = encodeVarintTx(dAtA, i, uint64(len(m.LossLogic))) - i-- - dAtA[i] = 0x1a - } if len(m.Metadata) > 0 { i -= len(m.Metadata) copy(dAtA[i:], m.Metadata) @@ -3609,7 +3579,7 @@ func (m *MsgCreateNewTopicResponse) MarshalToSizedBuffer(dAtA []byte) (int, erro return len(dAtA) - i, nil } -func (m *MsgInsertBulkReputerPayload) Marshal() (dAtA []byte, err error) { +func (m *MsgInsertReputerPayload) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3619,38 +3589,19 @@ func (m *MsgInsertBulkReputerPayload) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgInsertBulkReputerPayload) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgInsertReputerPayload) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgInsertBulkReputerPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgInsertReputerPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.ReputerValueBundles) > 0 { - for iNdEx := len(m.ReputerValueBundles) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.ReputerValueBundles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if m.TopicId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.TopicId)) - i-- - dAtA[i] = 0x18 - } - if m.ReputerRequestNonce != nil { + if m.ReputerValueBundle != nil { { - size, err := m.ReputerRequestNonce.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.ReputerValueBundle.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3670,7 +3621,7 @@ func (m *MsgInsertBulkReputerPayload) MarshalToSizedBuffer(dAtA []byte) (int, er return len(dAtA) - i, nil } -func (m *MsgInsertBulkReputerPayloadResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgInsertReputerPayloadResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3680,12 +3631,12 @@ func (m *MsgInsertBulkReputerPayloadResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *MsgInsertBulkReputerPayloadResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgInsertReputerPayloadResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgInsertBulkReputerPayloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgInsertReputerPayloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3693,7 +3644,7 @@ func (m *MsgInsertBulkReputerPayloadResponse) MarshalToSizedBuffer(dAtA []byte) return len(dAtA) - i, nil } -func (m *MsgInsertBulkWorkerPayload) Marshal() (dAtA []byte, err error) { +func (m *MsgInsertWorkerPayload) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3703,38 +3654,19 @@ func (m *MsgInsertBulkWorkerPayload) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgInsertBulkWorkerPayload) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgInsertWorkerPayload) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgInsertBulkWorkerPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgInsertWorkerPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l - if len(m.WorkerDataBundles) > 0 { - for iNdEx := len(m.WorkerDataBundles) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.WorkerDataBundles[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintTx(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - } - if m.TopicId != 0 { - i = encodeVarintTx(dAtA, i, uint64(m.TopicId)) - i-- - dAtA[i] = 0x18 - } - if m.Nonce != nil { + if m.WorkerDataBundle != nil { { - size, err := m.Nonce.MarshalToSizedBuffer(dAtA[:i]) + size, err := m.WorkerDataBundle.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } @@ -3754,7 +3686,7 @@ func (m *MsgInsertBulkWorkerPayload) MarshalToSizedBuffer(dAtA []byte) (int, err return len(dAtA) - i, nil } -func (m *MsgInsertBulkWorkerPayloadResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgInsertWorkerPayloadResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -3764,12 +3696,12 @@ func (m *MsgInsertBulkWorkerPayloadResponse) Marshal() (dAtA []byte, err error) return dAtA[:n], nil } -func (m *MsgInsertBulkWorkerPayloadResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgInsertWorkerPayloadResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgInsertBulkWorkerPayloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgInsertWorkerPayloadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -3819,20 +3751,6 @@ func (m *MsgRegister) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x20 } - if len(m.MultiAddress) > 0 { - i -= len(m.MultiAddress) - copy(dAtA[i:], m.MultiAddress) - i = encodeVarintTx(dAtA, i, uint64(len(m.MultiAddress))) - i-- - dAtA[i] = 0x1a - } - if len(m.LibP2PKey) > 0 { - i -= len(m.LibP2PKey) - copy(dAtA[i:], m.LibP2PKey) - i = encodeVarintTx(dAtA, i, uint64(len(m.LibP2PKey))) - i-- - dAtA[i] = 0x12 - } if len(m.Sender) > 0 { i -= len(m.Sender) copy(dAtA[i:], m.Sender) @@ -4911,6 +4829,25 @@ func (m *OptionalParams) Size() (n int) { n += 2 + l + sovTx(uint64(l)) } } + if len(m.HalfMaxProcessStakeRemovalsEndBlock) > 0 { + l = 0 + for _, e := range m.HalfMaxProcessStakeRemovalsEndBlock { + l += sovTx(uint64(e)) + } + n += 2 + sovTx(uint64(l)) + l + } + if len(m.DataSendingFee) > 0 { + for _, e := range m.DataSendingFee { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } + if len(m.EpsilonSafeDiv) > 0 { + for _, e := range m.EpsilonSafeDiv { + l = e.Size() + n += 2 + l + sovTx(uint64(l)) + } + } return n } @@ -4954,32 +4891,16 @@ func (m *MsgCreateNewTopic) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.LossLogic) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } l = len(m.LossMethod) if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.InferenceLogic) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.InferenceMethod) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } if m.EpochLength != 0 { n += 1 + sovTx(uint64(m.EpochLength)) } if m.GroundTruthLag != 0 { n += 1 + sovTx(uint64(m.GroundTruthLag)) } - l = len(m.DefaultArg) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } l = m.PNorm.Size() n += 1 + l + sovTx(uint64(l)) l = m.AlphaRegret.Size() @@ -4989,6 +4910,9 @@ func (m *MsgCreateNewTopic) Size() (n int) { } l = m.Epsilon.Size() n += 1 + l + sovTx(uint64(l)) + if m.WorkerSubmissionWindow != 0 { + n += 1 + sovTx(uint64(m.WorkerSubmissionWindow)) + } return n } @@ -5004,7 +4928,7 @@ func (m *MsgCreateNewTopicResponse) Size() (n int) { return n } -func (m *MsgInsertBulkReputerPayload) Size() (n int) { +func (m *MsgInsertReputerPayload) Size() (n int) { if m == nil { return 0 } @@ -5014,23 +4938,14 @@ func (m *MsgInsertBulkReputerPayload) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.ReputerRequestNonce != nil { - l = m.ReputerRequestNonce.Size() + if m.ReputerValueBundle != nil { + l = m.ReputerValueBundle.Size() n += 1 + l + sovTx(uint64(l)) } - if m.TopicId != 0 { - n += 1 + sovTx(uint64(m.TopicId)) - } - if len(m.ReputerValueBundles) > 0 { - for _, e := range m.ReputerValueBundles { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } return n } -func (m *MsgInsertBulkReputerPayloadResponse) Size() (n int) { +func (m *MsgInsertReputerPayloadResponse) Size() (n int) { if m == nil { return 0 } @@ -5039,7 +4954,7 @@ func (m *MsgInsertBulkReputerPayloadResponse) Size() (n int) { return n } -func (m *MsgInsertBulkWorkerPayload) Size() (n int) { +func (m *MsgInsertWorkerPayload) Size() (n int) { if m == nil { return 0 } @@ -5049,23 +4964,14 @@ func (m *MsgInsertBulkWorkerPayload) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - if m.Nonce != nil { - l = m.Nonce.Size() + if m.WorkerDataBundle != nil { + l = m.WorkerDataBundle.Size() n += 1 + l + sovTx(uint64(l)) } - if m.TopicId != 0 { - n += 1 + sovTx(uint64(m.TopicId)) - } - if len(m.WorkerDataBundles) > 0 { - for _, e := range m.WorkerDataBundles { - l = e.Size() - n += 1 + l + sovTx(uint64(l)) - } - } return n } -func (m *MsgInsertBulkWorkerPayloadResponse) Size() (n int) { +func (m *MsgInsertWorkerPayloadResponse) Size() (n int) { if m == nil { return 0 } @@ -5084,14 +4990,6 @@ func (m *MsgRegister) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.LibP2PKey) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } - l = len(m.MultiAddress) - if l > 0 { - n += 1 + l + sovTx(uint64(l)) - } if m.TopicId != 0 { n += 1 + sovTx(uint64(m.TopicId)) } @@ -7589,6 +7487,154 @@ func (m *OptionalParams) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 42: + if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HalfMaxProcessStakeRemovalsEndBlock = append(m.HalfMaxProcessStakeRemovalsEndBlock, v) + } else if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + packedLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var elementCount int + var count int + for _, integer := range dAtA[iNdEx:postIndex] { + if integer < 128 { + count++ + } + } + elementCount = count + if elementCount != 0 && len(m.HalfMaxProcessStakeRemovalsEndBlock) == 0 { + m.HalfMaxProcessStakeRemovalsEndBlock = make([]uint64, 0, elementCount) + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.HalfMaxProcessStakeRemovalsEndBlock = append(m.HalfMaxProcessStakeRemovalsEndBlock, v) + } + } else { + return fmt.Errorf("proto: wrong wireType = %d for field HalfMaxProcessStakeRemovalsEndBlock", wireType) + } + case 43: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataSendingFee", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v cosmossdk_io_math.Int + m.DataSendingFee = append(m.DataSendingFee, v) + if err := m.DataSendingFee[len(m.DataSendingFee)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 44: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EpsilonSafeDiv", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + var v github_com_allora_network_allora_chain_math.Dec + m.EpsilonSafeDiv = append(m.EpsilonSafeDiv, v) + if err := m.EpsilonSafeDiv[len(m.EpsilonSafeDiv)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -7871,38 +7917,6 @@ func (m *MsgCreateNewTopic) Unmarshal(dAtA []byte) error { } m.Metadata = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LossLogic", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LossLogic = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field LossMethod", wireType) @@ -7935,70 +7949,6 @@ func (m *MsgCreateNewTopic) Unmarshal(dAtA []byte) error { } m.LossMethod = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InferenceLogic", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InferenceLogic = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 6: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field InferenceMethod", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.InferenceMethod = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 7: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field EpochLength", wireType) @@ -8037,38 +7987,6 @@ func (m *MsgCreateNewTopic) Unmarshal(dAtA []byte) error { break } } - case 9: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DefaultArg", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DefaultArg = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 10: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PNorm", wireType) @@ -8191,6 +8109,25 @@ func (m *MsgCreateNewTopic) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkerSubmissionWindow", wireType) + } + m.WorkerSubmissionWindow = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WorkerSubmissionWindow |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -8281,7 +8218,7 @@ func (m *MsgCreateNewTopicResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgInsertBulkReputerPayload) Unmarshal(dAtA []byte) error { +func (m *MsgInsertReputerPayload) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8304,10 +8241,10 @@ func (m *MsgInsertBulkReputerPayload) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgInsertBulkReputerPayload: wiretype end group for non-group") + return fmt.Errorf("proto: MsgInsertReputerPayload: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgInsertBulkReputerPayload: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgInsertReputerPayload: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8344,7 +8281,7 @@ func (m *MsgInsertBulkReputerPayload) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReputerRequestNonce", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReputerValueBundle", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8371,63 +8308,10 @@ func (m *MsgInsertBulkReputerPayload) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ReputerRequestNonce == nil { - m.ReputerRequestNonce = &ReputerRequestNonce{} - } - if err := m.ReputerRequestNonce.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - m.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReputerValueBundles", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF + if m.ReputerValueBundle == nil { + m.ReputerValueBundle = &ReputerValueBundle{} } - m.ReputerValueBundles = append(m.ReputerValueBundles, &ReputerValueBundle{}) - if err := m.ReputerValueBundles[len(m.ReputerValueBundles)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ReputerValueBundle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8452,7 +8336,7 @@ func (m *MsgInsertBulkReputerPayload) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgInsertBulkReputerPayloadResponse) Unmarshal(dAtA []byte) error { +func (m *MsgInsertReputerPayloadResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8475,10 +8359,10 @@ func (m *MsgInsertBulkReputerPayloadResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgInsertBulkReputerPayloadResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgInsertReputerPayloadResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgInsertBulkReputerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgInsertReputerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -8502,7 +8386,7 @@ func (m *MsgInsertBulkReputerPayloadResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgInsertBulkWorkerPayload) Unmarshal(dAtA []byte) error { +func (m *MsgInsertWorkerPayload) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8525,10 +8409,10 @@ func (m *MsgInsertBulkWorkerPayload) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgInsertBulkWorkerPayload: wiretype end group for non-group") + return fmt.Errorf("proto: MsgInsertWorkerPayload: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgInsertBulkWorkerPayload: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgInsertWorkerPayload: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -8565,7 +8449,7 @@ func (m *MsgInsertBulkWorkerPayload) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field WorkerDataBundle", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -8592,63 +8476,10 @@ func (m *MsgInsertBulkWorkerPayload) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.Nonce == nil { - m.Nonce = &Nonce{} - } - if err := m.Nonce.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) - } - m.TopicId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.TopicId |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field WorkerDataBundles", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF + if m.WorkerDataBundle == nil { + m.WorkerDataBundle = &WorkerDataBundle{} } - m.WorkerDataBundles = append(m.WorkerDataBundles, &WorkerDataBundle{}) - if err := m.WorkerDataBundles[len(m.WorkerDataBundles)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.WorkerDataBundle.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -8673,7 +8504,7 @@ func (m *MsgInsertBulkWorkerPayload) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgInsertBulkWorkerPayloadResponse) Unmarshal(dAtA []byte) error { +func (m *MsgInsertWorkerPayloadResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -8696,10 +8527,10 @@ func (m *MsgInsertBulkWorkerPayloadResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgInsertBulkWorkerPayloadResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgInsertWorkerPayloadResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgInsertBulkWorkerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgInsertWorkerPayloadResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: @@ -8784,70 +8615,6 @@ func (m *MsgRegister) Unmarshal(dAtA []byte) error { } m.Sender = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LibP2PKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LibP2PKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MultiAddress", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowTx - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthTx - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthTx - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.MultiAddress = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) diff --git a/x/emissions/types/types.pb.go b/x/emissions/types/types.pb.go index 7d939d917..4431fff42 100644 --- a/x/emissions/types/types.pb.go +++ b/x/emissions/types/types.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/types.proto +// source: emissions/v2/types.proto package types @@ -35,7 +35,7 @@ func (m *SimpleCursorPaginationRequest) Reset() { *m = SimpleCursorPagin func (m *SimpleCursorPaginationRequest) String() string { return proto.CompactTextString(m) } func (*SimpleCursorPaginationRequest) ProtoMessage() {} func (*SimpleCursorPaginationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_32ba9f7333c0b525, []int{0} + return fileDescriptor_767943d0ce0ca0fd, []int{0} } func (m *SimpleCursorPaginationRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -86,7 +86,7 @@ func (m *SimpleCursorPaginationResponse) Reset() { *m = SimpleCursorPagi func (m *SimpleCursorPaginationResponse) String() string { return proto.CompactTextString(m) } func (*SimpleCursorPaginationResponse) ProtoMessage() {} func (*SimpleCursorPaginationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_32ba9f7333c0b525, []int{1} + return fileDescriptor_767943d0ce0ca0fd, []int{1} } func (m *SimpleCursorPaginationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -130,7 +130,7 @@ func (m *ListeningCoefficient) Reset() { *m = ListeningCoefficient{} } func (m *ListeningCoefficient) String() string { return proto.CompactTextString(m) } func (*ListeningCoefficient) ProtoMessage() {} func (*ListeningCoefficient) Descriptor() ([]byte, []int) { - return fileDescriptor_32ba9f7333c0b525, []int{2} + return fileDescriptor_767943d0ce0ca0fd, []int{2} } func (m *ListeningCoefficient) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -160,18 +160,18 @@ func (m *ListeningCoefficient) XXX_DiscardUnknown() { var xxx_messageInfo_ListeningCoefficient proto.InternalMessageInfo func init() { - proto.RegisterType((*SimpleCursorPaginationRequest)(nil), "emissions.v1.SimpleCursorPaginationRequest") - proto.RegisterType((*SimpleCursorPaginationResponse)(nil), "emissions.v1.SimpleCursorPaginationResponse") - proto.RegisterType((*ListeningCoefficient)(nil), "emissions.v1.ListeningCoefficient") + proto.RegisterType((*SimpleCursorPaginationRequest)(nil), "emissions.v2.SimpleCursorPaginationRequest") + proto.RegisterType((*SimpleCursorPaginationResponse)(nil), "emissions.v2.SimpleCursorPaginationResponse") + proto.RegisterType((*ListeningCoefficient)(nil), "emissions.v2.ListeningCoefficient") } -func init() { proto.RegisterFile("emissions/v1/types.proto", fileDescriptor_32ba9f7333c0b525) } +func init() { proto.RegisterFile("emissions/v2/types.proto", fileDescriptor_767943d0ce0ca0fd) } -var fileDescriptor_32ba9f7333c0b525 = []byte{ +var fileDescriptor_767943d0ce0ca0fd = []byte{ // 315 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x3f, 0x4f, 0x32, 0x41, 0x10, 0x87, 0xef, 0xde, 0xd7, 0xbf, 0x2b, 0x85, 0x5e, 0x28, 0x80, 0xc4, 0x85, 0x50, 0xd1, 0x78, - 0x1b, 0x62, 0xa1, 0x89, 0x1d, 0x98, 0x58, 0x68, 0x61, 0xce, 0x4a, 0x1b, 0xb2, 0x5c, 0x86, 0x63, + 0x9b, 0x60, 0xa1, 0x89, 0x1d, 0x98, 0x58, 0x68, 0x61, 0xce, 0x4a, 0x1b, 0xb2, 0x5c, 0x86, 0x63, 0xc2, 0xed, 0xce, 0x71, 0xbb, 0x20, 0x7c, 0x0b, 0x3f, 0x16, 0x25, 0xa5, 0xb1, 0x20, 0x06, 0xbe, 0x88, 0xe1, 0x4e, 0x3d, 0x1b, 0x13, 0x9b, 0xcd, 0x3c, 0x33, 0xb3, 0x4f, 0x31, 0x3f, 0x56, 0x01, 0x85, 0xc6, 0x20, 0x69, 0x23, 0xa6, 0x6d, 0x61, 0xe7, 0x09, 0x18, 0x3f, 0x49, 0xc9, 0x92, 0x57, @@ -188,7 +188,7 @@ var fileDescriptor_32ba9f7333c0b525 = []byte{ 0x6a, 0xa1, 0xa4, 0x1d, 0xfa, 0xd7, 0x10, 0x06, 0x3f, 0x5d, 0x9d, 0x60, 0xb1, 0xe6, 0xee, 0x72, 0xcd, 0xdd, 0xf7, 0x35, 0x77, 0x5f, 0x36, 0xdc, 0x59, 0x6e, 0xb8, 0xf3, 0xba, 0xe1, 0xce, 0xd3, 0xe5, 0x1f, 0xbd, 0x33, 0x51, 0xe4, 0x94, 0x85, 0xd4, 0xdf, 0xcb, 0x6e, 0x7a, 0xfe, 0x11, 0x00, - 0x00, 0xff, 0xff, 0xcc, 0x62, 0xab, 0xb0, 0xc1, 0x01, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x22, 0x81, 0x67, 0xcb, 0xc1, 0x01, 0x00, 0x00, } func (m *SimpleCursorPaginationRequest) Marshal() (dAtA []byte, err error) { diff --git a/x/emissions/types/worker.pb.go b/x/emissions/types/worker.pb.go index 6b2fb0f23..3383e7836 100644 --- a/x/emissions/types/worker.pb.go +++ b/x/emissions/types/worker.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: emissions/v1/worker.proto +// source: emissions/v2/worker.proto package types @@ -34,7 +34,7 @@ func (m *TimestampedValue) Reset() { *m = TimestampedValue{} } func (m *TimestampedValue) String() string { return proto.CompactTextString(m) } func (*TimestampedValue) ProtoMessage() {} func (*TimestampedValue) Descriptor() ([]byte, []int) { - return fileDescriptor_f697c93e4bd2e89e, []int{0} + return fileDescriptor_ebd2e883e90bff0b, []int{0} } func (m *TimestampedValue) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -83,7 +83,7 @@ func (m *Inference) Reset() { *m = Inference{} } func (m *Inference) String() string { return proto.CompactTextString(m) } func (*Inference) ProtoMessage() {} func (*Inference) Descriptor() ([]byte, []int) { - return fileDescriptor_f697c93e4bd2e89e, []int{1} + return fileDescriptor_ebd2e883e90bff0b, []int{1} } func (m *Inference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -155,7 +155,7 @@ func (m *Inferences) Reset() { *m = Inferences{} } func (m *Inferences) String() string { return proto.CompactTextString(m) } func (*Inferences) ProtoMessage() {} func (*Inferences) Descriptor() ([]byte, []int) { - return fileDescriptor_f697c93e4bd2e89e, []int{2} + return fileDescriptor_ebd2e883e90bff0b, []int{2} } func (m *Inferences) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -200,7 +200,7 @@ func (m *ForecastElement) Reset() { *m = ForecastElement{} } func (m *ForecastElement) String() string { return proto.CompactTextString(m) } func (*ForecastElement) ProtoMessage() {} func (*ForecastElement) Descriptor() ([]byte, []int) { - return fileDescriptor_f697c93e4bd2e89e, []int{3} + return fileDescriptor_ebd2e883e90bff0b, []int{3} } func (m *ForecastElement) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -248,7 +248,7 @@ func (m *Forecast) Reset() { *m = Forecast{} } func (m *Forecast) String() string { return proto.CompactTextString(m) } func (*Forecast) ProtoMessage() {} func (*Forecast) Descriptor() ([]byte, []int) { - return fileDescriptor_f697c93e4bd2e89e, []int{4} + return fileDescriptor_ebd2e883e90bff0b, []int{4} } func (m *Forecast) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -320,7 +320,7 @@ func (m *Forecasts) Reset() { *m = Forecasts{} } func (m *Forecasts) String() string { return proto.CompactTextString(m) } func (*Forecasts) ProtoMessage() {} func (*Forecasts) Descriptor() ([]byte, []int) { - return fileDescriptor_f697c93e4bd2e89e, []int{5} + return fileDescriptor_ebd2e883e90bff0b, []int{5} } func (m *Forecasts) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -365,7 +365,7 @@ func (m *InferenceForecastBundle) Reset() { *m = InferenceForecastBundle func (m *InferenceForecastBundle) String() string { return proto.CompactTextString(m) } func (*InferenceForecastBundle) ProtoMessage() {} func (*InferenceForecastBundle) Descriptor() ([]byte, []int) { - return fileDescriptor_f697c93e4bd2e89e, []int{6} + return fileDescriptor_ebd2e883e90bff0b, []int{6} } func (m *InferenceForecastBundle) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -410,16 +410,18 @@ func (m *InferenceForecastBundle) GetForecast() *Forecast { type WorkerDataBundle struct { Worker string `protobuf:"bytes,1,opt,name=worker,proto3" json:"worker,omitempty"` - InferenceForecastsBundle *InferenceForecastBundle `protobuf:"bytes,2,opt,name=inference_forecasts_bundle,json=inferenceForecastsBundle,proto3" json:"inference_forecasts_bundle,omitempty"` - InferencesForecastsBundleSignature []byte `protobuf:"bytes,3,opt,name=inferences_forecasts_bundle_signature,json=inferencesForecastsBundleSignature,proto3" json:"inferences_forecasts_bundle_signature,omitempty"` - Pubkey string `protobuf:"bytes,4,opt,name=pubkey,proto3" json:"pubkey,omitempty"` + Nonce *Nonce `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` + TopicId uint64 `protobuf:"varint,3,opt,name=topic_id,json=topicId,proto3" json:"topic_id,omitempty"` + InferenceForecastsBundle *InferenceForecastBundle `protobuf:"bytes,4,opt,name=inference_forecasts_bundle,json=inferenceForecastsBundle,proto3" json:"inference_forecasts_bundle,omitempty"` + InferencesForecastsBundleSignature []byte `protobuf:"bytes,5,opt,name=inferences_forecasts_bundle_signature,json=inferencesForecastsBundleSignature,proto3" json:"inferences_forecasts_bundle_signature,omitempty"` + Pubkey string `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"` } func (m *WorkerDataBundle) Reset() { *m = WorkerDataBundle{} } func (m *WorkerDataBundle) String() string { return proto.CompactTextString(m) } func (*WorkerDataBundle) ProtoMessage() {} func (*WorkerDataBundle) Descriptor() ([]byte, []int) { - return fileDescriptor_f697c93e4bd2e89e, []int{7} + return fileDescriptor_ebd2e883e90bff0b, []int{7} } func (m *WorkerDataBundle) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -455,6 +457,20 @@ func (m *WorkerDataBundle) GetWorker() string { return "" } +func (m *WorkerDataBundle) GetNonce() *Nonce { + if m != nil { + return m.Nonce + } + return nil +} + +func (m *WorkerDataBundle) GetTopicId() uint64 { + if m != nil { + return m.TopicId + } + return 0 +} + func (m *WorkerDataBundle) GetInferenceForecastsBundle() *InferenceForecastBundle { if m != nil { return m.InferenceForecastsBundle @@ -484,7 +500,7 @@ func (m *WorkerDataBundles) Reset() { *m = WorkerDataBundles{} } func (m *WorkerDataBundles) String() string { return proto.CompactTextString(m) } func (*WorkerDataBundles) ProtoMessage() {} func (*WorkerDataBundles) Descriptor() ([]byte, []int) { - return fileDescriptor_f697c93e4bd2e89e, []int{8} + return fileDescriptor_ebd2e883e90bff0b, []int{8} } func (m *WorkerDataBundles) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -521,60 +537,62 @@ func (m *WorkerDataBundles) GetWorkerDataBundles() []*WorkerDataBundle { } func init() { - proto.RegisterType((*TimestampedValue)(nil), "emissions.v1.TimestampedValue") - proto.RegisterType((*Inference)(nil), "emissions.v1.Inference") - proto.RegisterType((*Inferences)(nil), "emissions.v1.Inferences") - proto.RegisterType((*ForecastElement)(nil), "emissions.v1.ForecastElement") - proto.RegisterType((*Forecast)(nil), "emissions.v1.Forecast") - proto.RegisterType((*Forecasts)(nil), "emissions.v1.Forecasts") - proto.RegisterType((*InferenceForecastBundle)(nil), "emissions.v1.InferenceForecastBundle") - proto.RegisterType((*WorkerDataBundle)(nil), "emissions.v1.WorkerDataBundle") - proto.RegisterType((*WorkerDataBundles)(nil), "emissions.v1.WorkerDataBundles") -} - -func init() { proto.RegisterFile("emissions/v1/worker.proto", fileDescriptor_f697c93e4bd2e89e) } - -var fileDescriptor_f697c93e4bd2e89e = []byte{ - // 617 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcf, 0x4f, 0xd4, 0x40, - 0x14, 0xde, 0x81, 0xe5, 0xc7, 0x3e, 0x36, 0x11, 0x46, 0x02, 0x85, 0x84, 0xb2, 0x6e, 0x42, 0xb2, - 0x17, 0xb7, 0x01, 0x35, 0x18, 0x6f, 0x12, 0x30, 0x62, 0xa2, 0x89, 0xa3, 0xd1, 0xc4, 0x4b, 0x33, - 0xdb, 0x9d, 0xdd, 0x9d, 0xd0, 0x76, 0x9a, 0xce, 0x2c, 0x3f, 0x6e, 0x9c, 0x3d, 0xf9, 0x27, 0xf8, - 0xe7, 0x70, 0xe4, 0xa8, 0x1e, 0x88, 0x81, 0x8b, 0x17, 0xff, 0x07, 0xd3, 0xe9, 0xb4, 0x65, 0x8b, - 0xab, 0x26, 0x72, 0xeb, 0x7b, 0xf3, 0xf5, 0xbd, 0xef, 0x7b, 0xdf, 0xcc, 0x83, 0x15, 0x16, 0x70, - 0x29, 0xb9, 0x08, 0xa5, 0x73, 0xb8, 0xe9, 0x1c, 0x89, 0xf8, 0x80, 0xc5, 0xed, 0x28, 0x16, 0x4a, - 0xe0, 0x7a, 0x7e, 0xd4, 0x3e, 0xdc, 0x5c, 0x5d, 0xec, 0x8b, 0xbe, 0xd0, 0x07, 0x4e, 0xf2, 0x95, - 0x62, 0x9a, 0x1f, 0x11, 0xcc, 0xbf, 0xe5, 0x01, 0x93, 0x8a, 0x06, 0x11, 0xeb, 0xbe, 0xa3, 0xfe, - 0x90, 0xe1, 0x7b, 0x50, 0xef, 0xf8, 0xc2, 0x3b, 0x70, 0x07, 0x8c, 0xf7, 0x07, 0xca, 0x42, 0x0d, - 0xd4, 0x9a, 0x24, 0x73, 0x3a, 0xf7, 0x5c, 0xa7, 0xf0, 0x4b, 0x98, 0x3a, 0x4c, 0xb0, 0xd6, 0x44, - 0x03, 0xb5, 0x6a, 0x3b, 0xdb, 0x67, 0x17, 0xeb, 0x95, 0x6f, 0x17, 0xeb, 0x4e, 0x9f, 0xab, 0xc1, - 0xb0, 0xd3, 0xf6, 0x44, 0xe0, 0x50, 0xdf, 0x17, 0x31, 0xbd, 0x1f, 0x32, 0x95, 0xb0, 0xca, 0x42, - 0x6f, 0x40, 0x79, 0xe8, 0x04, 0x54, 0x0d, 0xda, 0xbb, 0xcc, 0x23, 0x69, 0x95, 0x27, 0xd5, 0x1f, - 0x9f, 0xd7, 0x51, 0xf3, 0x27, 0x82, 0xda, 0x7e, 0xd8, 0x63, 0x31, 0x0b, 0x3d, 0x86, 0x57, 0x60, - 0x56, 0x89, 0x88, 0x7b, 0x2e, 0xef, 0x6a, 0x06, 0x55, 0x32, 0xa3, 0xe3, 0xfd, 0xee, 0x0d, 0x82, - 0x13, 0x37, 0x09, 0x5a, 0x30, 0xc3, 0x75, 0xa9, 0xd8, 0x9a, 0x4c, 0x28, 0x92, 0x2c, 0x2c, 0xa8, - 0x57, 0x6f, 0x83, 0x3a, 0x5e, 0x03, 0x60, 0xc7, 0x2a, 0xa6, 0x6e, 0x97, 0x2a, 0x6a, 0x4d, 0x35, - 0x50, 0xab, 0x4e, 0x6a, 0x3a, 0xb3, 0x4b, 0x15, 0xc5, 0x8b, 0x30, 0x15, 0xc5, 0x42, 0xf4, 0xac, - 0x69, 0xcd, 0x22, 0x0d, 0x8c, 0xde, 0x3d, 0x80, 0x5c, 0xae, 0xc4, 0xdb, 0x00, 0x3c, 0x8f, 0x2c, - 0xd4, 0x98, 0x6c, 0xcd, 0x6d, 0x2d, 0xb7, 0xaf, 0x7b, 0xd8, 0xce, 0xd1, 0xe4, 0x1a, 0xb4, 0x79, - 0x8a, 0xe0, 0xce, 0x33, 0x11, 0x33, 0x8f, 0x4a, 0xb5, 0xe7, 0xb3, 0x80, 0x85, 0x23, 0xf2, 0xd1, - 0x18, 0xf9, 0xb7, 0xe9, 0xdc, 0x57, 0x04, 0xb3, 0x19, 0x85, 0xff, 0x34, 0xce, 0x06, 0xe8, 0x99, - 0x4a, 0xb9, 0x77, 0xd7, 0x32, 0xf8, 0x05, 0x2c, 0x64, 0x91, 0xcb, 0x52, 0xb5, 0xd2, 0xaa, 0xea, - 0x69, 0xad, 0x8d, 0x4e, 0xab, 0x34, 0x13, 0x32, 0xdf, 0x1b, 0x4d, 0xc8, 0xbf, 0x78, 0x67, 0xb4, - 0x3d, 0x85, 0x5a, 0x56, 0x49, 0xe2, 0x87, 0x50, 0xcb, 0xaa, 0x64, 0x1e, 0x2d, 0xfd, 0xbe, 0x2b, - 0x29, 0x80, 0xc9, 0x2b, 0x5b, 0xce, 0xbd, 0xcb, 0x00, 0x3b, 0xc3, 0xb0, 0xeb, 0x33, 0xfc, 0x08, - 0x6a, 0xb9, 0x97, 0x7a, 0x5c, 0x7f, 0x70, 0xbd, 0x40, 0xe2, 0x2d, 0x98, 0xcd, 0xea, 0xeb, 0x29, - 0x8e, 0xe7, 0x91, 0xe3, 0x8c, 0x9e, 0xd3, 0x09, 0x98, 0x7f, 0xaf, 0xf7, 0x44, 0x22, 0xd2, 0xb0, - 0x58, 0x82, 0xe9, 0x74, 0x77, 0x98, 0xeb, 0x62, 0x22, 0xec, 0xc1, 0x6a, 0xde, 0xd3, 0xcd, 0x05, - 0xb9, 0x1d, 0xfd, 0x97, 0x69, 0xbc, 0x31, 0x86, 0xee, 0xa8, 0x50, 0x62, 0xf1, 0xf2, 0x81, 0x34, - 0xcd, 0x5f, 0xc3, 0x46, 0x71, 0x9d, 0x6f, 0x74, 0x71, 0x25, 0xef, 0x87, 0x54, 0x0d, 0x63, 0xa6, - 0x6f, 0x43, 0x9d, 0x34, 0x0b, 0x70, 0xa9, 0xd2, 0x9b, 0x0c, 0x99, 0xe8, 0x89, 0x86, 0x9d, 0x03, - 0x76, 0x92, 0xbe, 0x72, 0x62, 0x22, 0x33, 0x02, 0x0f, 0x16, 0xca, 0x13, 0x90, 0xf8, 0x15, 0xdc, - 0x4d, 0x45, 0xeb, 0xdb, 0x60, 0x9a, 0x67, 0x26, 0xdb, 0xa3, 0x1a, 0xcb, 0x7f, 0x93, 0x85, 0xa3, - 0x72, 0xbd, 0x1d, 0x72, 0x76, 0x69, 0xa3, 0xf3, 0x4b, 0x1b, 0x7d, 0xbf, 0xb4, 0xd1, 0xa7, 0x2b, - 0xbb, 0x72, 0x7e, 0x65, 0x57, 0xbe, 0x5c, 0xd9, 0x95, 0x0f, 0x8f, 0xff, 0xf1, 0xad, 0x1d, 0x3b, - 0xc5, 0x72, 0x57, 0x27, 0x11, 0x93, 0x9d, 0x69, 0xbd, 0xb5, 0x1f, 0xfc, 0x0a, 0x00, 0x00, 0xff, - 0xff, 0x0e, 0x57, 0xf0, 0x7a, 0xf6, 0x05, 0x00, 0x00, + proto.RegisterType((*TimestampedValue)(nil), "emissions.v2.TimestampedValue") + proto.RegisterType((*Inference)(nil), "emissions.v2.Inference") + proto.RegisterType((*Inferences)(nil), "emissions.v2.Inferences") + proto.RegisterType((*ForecastElement)(nil), "emissions.v2.ForecastElement") + proto.RegisterType((*Forecast)(nil), "emissions.v2.Forecast") + proto.RegisterType((*Forecasts)(nil), "emissions.v2.Forecasts") + proto.RegisterType((*InferenceForecastBundle)(nil), "emissions.v2.InferenceForecastBundle") + proto.RegisterType((*WorkerDataBundle)(nil), "emissions.v2.WorkerDataBundle") + proto.RegisterType((*WorkerDataBundles)(nil), "emissions.v2.WorkerDataBundles") +} + +func init() { proto.RegisterFile("emissions/v2/worker.proto", fileDescriptor_ebd2e883e90bff0b) } + +var fileDescriptor_ebd2e883e90bff0b = []byte{ + // 648 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4d, 0x4f, 0x13, 0x4f, + 0x18, 0xef, 0xd0, 0x16, 0xe8, 0x03, 0xc9, 0x1f, 0x06, 0x02, 0x0b, 0x09, 0x4b, 0xff, 0x4d, 0x48, + 0xea, 0xc1, 0x6e, 0x52, 0x35, 0x18, 0x6f, 0x12, 0x30, 0x62, 0x22, 0x89, 0xa3, 0xd1, 0xc4, 0xcb, + 0x66, 0xba, 0x9d, 0xb6, 0x13, 0xda, 0x9d, 0xcd, 0xce, 0x94, 0x97, 0x9b, 0x67, 0x4f, 0x7e, 0x04, + 0x3f, 0x8d, 0xe1, 0xc8, 0x51, 0x3d, 0x10, 0x03, 0x17, 0x2f, 0x7e, 0x07, 0xb3, 0xb3, 0xb3, 0xbb, + 0xec, 0x62, 0xd5, 0x44, 0x6e, 0xfb, 0xcc, 0xfc, 0xf6, 0x79, 0x7e, 0x2f, 0x33, 0x03, 0x6b, 0x6c, + 0xc4, 0xa5, 0xe4, 0xc2, 0x97, 0xce, 0x51, 0xdb, 0x39, 0x16, 0xe1, 0x21, 0x0b, 0x5b, 0x41, 0x28, + 0x94, 0xc0, 0xf3, 0xe9, 0x56, 0xeb, 0xa8, 0xbd, 0xbe, 0xdc, 0x17, 0x7d, 0xa1, 0x37, 0x9c, 0xe8, + 0x2b, 0xc6, 0xac, 0x5b, 0xb9, 0xdf, 0x7d, 0xe1, 0x7b, 0x2c, 0xde, 0x69, 0xbc, 0x47, 0xb0, 0xf0, + 0x8a, 0x8f, 0x98, 0x54, 0x74, 0x14, 0xb0, 0xee, 0x6b, 0x3a, 0x1c, 0x33, 0xfc, 0x3f, 0xcc, 0x77, + 0x86, 0xc2, 0x3b, 0x74, 0x07, 0x8c, 0xf7, 0x07, 0xca, 0x42, 0x75, 0xd4, 0x2c, 0x93, 0x39, 0xbd, + 0xf6, 0x54, 0x2f, 0xe1, 0xe7, 0x50, 0x3d, 0x8a, 0xb0, 0xd6, 0x54, 0x1d, 0x35, 0x6b, 0x3b, 0xdb, + 0x67, 0x17, 0x9b, 0xa5, 0xaf, 0x17, 0x9b, 0x4e, 0x9f, 0xab, 0xc1, 0xb8, 0xd3, 0xf2, 0xc4, 0xc8, + 0xa1, 0xc3, 0xa1, 0x08, 0xe9, 0x5d, 0x9f, 0xa9, 0x88, 0x6f, 0x52, 0x7a, 0x03, 0xca, 0x7d, 0x67, + 0x44, 0xd5, 0xa0, 0xb5, 0xcb, 0x3c, 0x12, 0x77, 0x79, 0x54, 0xf9, 0xfe, 0x71, 0x13, 0x35, 0x7e, + 0x20, 0xa8, 0xed, 0xfb, 0x3d, 0x16, 0x32, 0xdf, 0x63, 0x78, 0x0d, 0x66, 0x95, 0x08, 0xb8, 0xe7, + 0xf2, 0xae, 0x66, 0x50, 0x21, 0x33, 0xba, 0xde, 0xef, 0xde, 0x20, 0x38, 0x75, 0x93, 0xa0, 0x05, + 0x33, 0x5c, 0xb7, 0x0a, 0xad, 0x72, 0x44, 0x91, 0x24, 0x65, 0x46, 0xbd, 0x72, 0x1b, 0xd4, 0xf1, + 0x06, 0x00, 0x3b, 0x51, 0x21, 0x75, 0xbb, 0x54, 0x51, 0xab, 0x5a, 0x47, 0xcd, 0x79, 0x52, 0xd3, + 0x2b, 0xbb, 0x54, 0x51, 0xbc, 0x0c, 0xd5, 0x20, 0x14, 0xa2, 0x67, 0x4d, 0x6b, 0x16, 0x71, 0x61, + 0xf4, 0xee, 0x01, 0xa4, 0x72, 0x25, 0xde, 0x06, 0xe0, 0x69, 0x65, 0xa1, 0x7a, 0xb9, 0x39, 0xd7, + 0x5e, 0x6d, 0x5d, 0x4f, 0xb7, 0x95, 0xa2, 0xc9, 0x35, 0x68, 0xe3, 0x1d, 0x82, 0xff, 0x9e, 0x88, + 0x90, 0x79, 0x54, 0xaa, 0xbd, 0x21, 0x1b, 0x31, 0x3f, 0x27, 0x1f, 0x4d, 0x90, 0x7f, 0x9b, 0xc9, + 0x7d, 0x41, 0x30, 0x9b, 0x50, 0xf8, 0xc7, 0xe0, 0x6c, 0x80, 0x9e, 0xe9, 0x94, 0x66, 0x77, 0x6d, + 0x05, 0x3f, 0x83, 0xc5, 0xa4, 0x72, 0x59, 0xac, 0x56, 0x5a, 0x15, 0xed, 0xd6, 0x46, 0xde, 0xad, + 0x82, 0x27, 0x64, 0xa1, 0x97, 0x5f, 0x90, 0x7f, 0xc8, 0xce, 0x68, 0x7b, 0x0c, 0xb5, 0xa4, 0x93, + 0xc4, 0xf7, 0xa1, 0x96, 0x74, 0x49, 0x32, 0x5a, 0xf9, 0xf5, 0x54, 0x92, 0x01, 0xa3, 0x5b, 0xb6, + 0x9a, 0x66, 0x97, 0x00, 0x76, 0xc6, 0x7e, 0x77, 0xc8, 0xf0, 0x03, 0xa8, 0xa5, 0x59, 0x6a, 0xbb, + 0x7e, 0x93, 0x7a, 0x86, 0xc4, 0x6d, 0x98, 0x4d, 0xfa, 0x6b, 0x17, 0x27, 0xf3, 0x48, 0x71, 0x46, + 0xcf, 0xa7, 0x29, 0x58, 0x78, 0xa3, 0x5f, 0x90, 0x48, 0xa4, 0x61, 0xb1, 0x02, 0xd3, 0xf1, 0xab, + 0x62, 0x8e, 0x8b, 0xa9, 0xf0, 0x1d, 0xa8, 0xea, 0xe7, 0xc2, 0xcc, 0x58, 0xca, 0xcf, 0x38, 0x88, + 0xb6, 0x48, 0x8c, 0xc8, 0xc5, 0x5e, 0xce, 0xc7, 0xee, 0xc1, 0x7a, 0xca, 0xdc, 0x4d, 0x6d, 0x71, + 0x3b, 0x7a, 0xb6, 0xbe, 0x87, 0x73, 0xed, 0xad, 0x09, 0xa2, 0xf3, 0x76, 0x11, 0x8b, 0x17, 0x37, + 0xa4, 0x91, 0xf0, 0x02, 0xb6, 0xb2, 0x4b, 0x71, 0x63, 0x8a, 0x2b, 0x79, 0xdf, 0xa7, 0x6a, 0x1c, + 0x32, 0x93, 0x73, 0x23, 0x03, 0x17, 0x3a, 0xbd, 0x4c, 0x90, 0x91, 0x2b, 0xc1, 0xb8, 0x73, 0xc8, + 0x4e, 0xcd, 0xed, 0x35, 0x95, 0x31, 0xd2, 0x83, 0xc5, 0xa2, 0x8f, 0x12, 0x1f, 0xc0, 0x52, 0x6c, + 0x9d, 0x3e, 0x53, 0x66, 0x78, 0x72, 0x54, 0xec, 0xbc, 0xc6, 0xe2, 0xdf, 0x64, 0xf1, 0xb8, 0xd8, + 0x6f, 0x87, 0x9c, 0x5d, 0xda, 0xe8, 0xfc, 0xd2, 0x46, 0xdf, 0x2e, 0x6d, 0xf4, 0xe1, 0xca, 0x2e, + 0x9d, 0x5f, 0xd9, 0xa5, 0xcf, 0x57, 0x76, 0xe9, 0xed, 0xc3, 0xbf, 0xbc, 0xb1, 0x27, 0x4e, 0xf6, + 0xfa, 0xab, 0xd3, 0x80, 0xc9, 0xce, 0xb4, 0x7e, 0xfb, 0xef, 0xfd, 0x0c, 0x00, 0x00, 0xff, 0xff, + 0x3b, 0xf1, 0x8a, 0x1d, 0x56, 0x06, 0x00, 0x00, } func (this *TimestampedValue) Equal(that interface{}) bool { @@ -760,6 +778,12 @@ func (this *WorkerDataBundle) Equal(that interface{}) bool { if this.Worker != that1.Worker { return false } + if !this.Nonce.Equal(that1.Nonce) { + return false + } + if this.TopicId != that1.TopicId { + return false + } if !this.InferenceForecastsBundle.Equal(that1.InferenceForecastsBundle) { return false } @@ -1120,14 +1144,14 @@ func (m *WorkerDataBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) { copy(dAtA[i:], m.Pubkey) i = encodeVarintWorker(dAtA, i, uint64(len(m.Pubkey))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x32 } if len(m.InferencesForecastsBundleSignature) > 0 { i -= len(m.InferencesForecastsBundleSignature) copy(dAtA[i:], m.InferencesForecastsBundleSignature) i = encodeVarintWorker(dAtA, i, uint64(len(m.InferencesForecastsBundleSignature))) i-- - dAtA[i] = 0x1a + dAtA[i] = 0x2a } if m.InferenceForecastsBundle != nil { { @@ -1139,6 +1163,23 @@ func (m *WorkerDataBundle) MarshalToSizedBuffer(dAtA []byte) (int, error) { i = encodeVarintWorker(dAtA, i, uint64(size)) } i-- + dAtA[i] = 0x22 + } + if m.TopicId != 0 { + i = encodeVarintWorker(dAtA, i, uint64(m.TopicId)) + i-- + dAtA[i] = 0x18 + } + if m.Nonce != nil { + { + size, err := m.Nonce.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintWorker(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 } if len(m.Worker) > 0 { @@ -1343,6 +1384,13 @@ func (m *WorkerDataBundle) Size() (n int) { if l > 0 { n += 1 + l + sovWorker(uint64(l)) } + if m.Nonce != nil { + l = m.Nonce.Size() + n += 1 + l + sovWorker(uint64(l)) + } + if m.TopicId != 0 { + n += 1 + sovWorker(uint64(m.TopicId)) + } if m.InferenceForecastsBundle != nil { l = m.InferenceForecastsBundle.Size() n += 1 + l + sovWorker(uint64(l)) @@ -2358,6 +2406,61 @@ func (m *WorkerDataBundle) Unmarshal(dAtA []byte) error { m.Worker = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nonce", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthWorker + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthWorker + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Nonce == nil { + m.Nonce = &Nonce{} + } + if err := m.Nonce.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TopicId", wireType) + } + m.TopicId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowWorker + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.TopicId |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field InferenceForecastsBundle", wireType) } @@ -2393,7 +2496,7 @@ func (m *WorkerDataBundle) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex - case 3: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field InferencesForecastsBundleSignature", wireType) } @@ -2427,7 +2530,7 @@ func (m *WorkerDataBundle) Unmarshal(dAtA []byte) error { m.InferencesForecastsBundleSignature = []byte{} } iNdEx = postIndex - case 4: + case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pubkey", wireType) } diff --git a/x/emissions/types/worker_data_bundle.go b/x/emissions/types/worker_data_bundle.go index b9641b8a2..f4f85143c 100644 --- a/x/emissions/types/worker_data_bundle.go +++ b/x/emissions/types/worker_data_bundle.go @@ -13,6 +13,9 @@ func (bundle *WorkerDataBundle) Validate() error { if bundle == nil { return errors.Wrap(sdkerrors.ErrInvalidRequest, "worker data bundle cannot be nil") } + if bundle.Nonce == nil { + return errors.Wrap(sdkerrors.ErrInvalidRequest, "worker data bundle nonce cannot be nil") + } if len(bundle.Worker) == 0 { return errors.Wrap(sdkerrors.ErrInvalidRequest, "worker cannot be empty") } diff --git a/x/ibc/gmp/ibc_middleware.go b/x/ibc/gmp/ibc_middleware.go index 14d5fef7d..76574677e 100644 --- a/x/ibc/gmp/ibc_middleware.go +++ b/x/ibc/gmp/ibc_middleware.go @@ -3,7 +3,6 @@ package gmp import ( "encoding/json" "fmt" - sdk "github.com/cosmos/cosmos-sdk/types" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" @@ -101,53 +100,47 @@ func (im IBCMiddleware) OnRecvPacket( } var msg Message - var err error - err = json.Unmarshal([]byte(data.GetMemo()), &msg) - if err != nil || len(msg.Payload) == 0 { - // Not a packet that should be handled by the GMP middleware - return im.app.OnRecvPacket(ctx, packet, relayer) - } - - //if !strings.EqualFold(data.Sender, AxelarGMPAcc) { - // // Not a packet that should be handled by the GMP middleware - // return im.app.OnRecvPacket(ctx, packet, relayer) - //} - - logger := ctx.Logger().With("handler", "GMP") - - switch msg.Type { - case TypeGeneralMessage: - logger.Info("Received TypeGeneralMessage", - "srcChain", msg.SourceChain, - "srcAddress", msg.SourceAddress, - "receiver", data.Receiver, - "payload", string(msg.Payload), - "handler", "GMP", - ) - // let the next layer deal with this - // the rest of the data fields should be normal - fallthrough - case TypeGeneralMessageWithToken: - logger.Info("Received TypeGeneralMessageWithToken", - "srcChain", msg.SourceChain, - "srcAddress", msg.SourceAddress, - "receiver", data.Receiver, - "payload", string(msg.Payload), - "coin", data.Denom, - "amount", data.Amount, - "handler", "GMP", - ) - // we throw out the rest of the msg.Payload fields here, for better or worse - data.Memo = string(msg.Payload) - var dataBytes []byte - if dataBytes, err = transfertypes.ModuleCdc.MarshalJSON(&data); err != nil { - return channeltypes.NewErrorAcknowledgement(fmt.Errorf("cannot marshal ICS-20 post-processed transfer packet data")) + _ = json.Unmarshal([]byte(data.GetMemo()), &msg) + + if len(msg.Payload) != 0 { + logger := ctx.Logger().With("handler", "GMP") + + switch msg.Type { + case TypeGeneralMessage: + logger.Info("Received TypeGeneralMessage", + "srcChain", msg.SourceChain, + "srcAddress", msg.SourceAddress, + "receiver", data.Receiver, + "payload", string(msg.Payload), + "handler", "GMP", + ) + // let the next layer deal with this + // the rest of the data fields should be normal + fallthrough + case TypeGeneralMessageWithToken: + logger.Info("Received TypeGeneralMessageWithToken", + "srcChain", msg.SourceChain, + "srcAddress", msg.SourceAddress, + "receiver", data.Receiver, + "payload", string(msg.Payload), + "coin", data.Denom, + "amount", data.Amount, + "handler", "GMP", + ) + // we throw out the rest of the msg.Payload fields here, for better or worse + data.Memo = string(msg.Payload) + var dataBytes []byte + if _, err := transfertypes.ModuleCdc.MarshalJSON(&data); err != nil { + return channeltypes.NewErrorAcknowledgement(fmt.Errorf("cannot marshal ICS-20 post-processed transfer packet data")) + } + packet.Data = dataBytes + return im.app.OnRecvPacket(ctx, packet, relayer) + default: + return channeltypes.NewErrorAcknowledgement(fmt.Errorf("unrecognized mesasge type: %d", msg.Type)) } - packet.Data = dataBytes - return im.app.OnRecvPacket(ctx, packet, relayer) - default: - return channeltypes.NewErrorAcknowledgement(fmt.Errorf("unrecognized mesasge type: %d", msg.Type)) } + + return im.appOnRecvPacket(ctx, packet, relayer) } // OnAcknowledgementPacket implements the IBCMiddleware interface @@ -168,3 +161,11 @@ func (im IBCMiddleware) OnTimeoutPacket( ) error { return im.app.OnTimeoutPacket(ctx, packet, relayer) } + +func (im IBCMiddleware) appOnRecvPacket( + ctx sdk.Context, + packet channeltypes.Packet, + relayer sdk.AccAddress, +) ibcexported.Acknowledgement { + return channeltypes.NewResultAcknowledgement([]byte("success")) +} diff --git a/x/ibc/testing/ibc_setup_test.go b/x/ibc/testing/ibc_setup_test.go index 6e2490246..68845db18 100644 --- a/x/ibc/testing/ibc_setup_test.go +++ b/x/ibc/testing/ibc_setup_test.go @@ -1,11 +1,12 @@ package testing import ( - "cosmossdk.io/log" "encoding/json" "fmt" "testing" + "cosmossdk.io/log" + "cosmossdk.io/math" app2 "github.com/allora-network/allora-chain/app" "github.com/allora-network/allora-chain/app/params" @@ -14,6 +15,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" transfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" + + //lint:ignore SA1019 deprecated code breaking unit tests clienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types" ibctesting "github.com/cosmos/ibc-go/v8/testing" "github.com/stretchr/testify/suite" diff --git a/x/mint/api/v1beta1/types.pulsar.go b/x/mint/api/v1beta1/types.pulsar.go index 4af019d2f..51ca03ffe 100644 --- a/x/mint/api/v1beta1/types.pulsar.go +++ b/x/mint/api/v1beta1/types.pulsar.go @@ -27,6 +27,7 @@ var ( fd_Params_investors_percent_of_total_supply protoreflect.FieldDescriptor fd_Params_team_percent_of_total_supply protoreflect.FieldDescriptor fd_Params_maximum_monthly_percentage_yield protoreflect.FieldDescriptor + fd_Params_investors_preseed_percent_of_total_supply protoreflect.FieldDescriptor ) func init() { @@ -42,6 +43,7 @@ func init() { fd_Params_investors_percent_of_total_supply = md_Params.Fields().ByName("investors_percent_of_total_supply") fd_Params_team_percent_of_total_supply = md_Params.Fields().ByName("team_percent_of_total_supply") fd_Params_maximum_monthly_percentage_yield = md_Params.Fields().ByName("maximum_monthly_percentage_yield") + fd_Params_investors_preseed_percent_of_total_supply = md_Params.Fields().ByName("investors_preseed_percent_of_total_supply") } var _ protoreflect.Message = (*fastReflection_Params)(nil) @@ -169,6 +171,12 @@ func (x *fastReflection_Params) Range(f func(protoreflect.FieldDescriptor, proto return } } + if x.InvestorsPreseedPercentOfTotalSupply != "" { + value := protoreflect.ValueOfString(x.InvestorsPreseedPercentOfTotalSupply) + if !f(fd_Params_investors_preseed_percent_of_total_supply, value) { + return + } + } } // Has reports whether a field is populated. @@ -204,6 +212,8 @@ func (x *fastReflection_Params) Has(fd protoreflect.FieldDescriptor) bool { return x.TeamPercentOfTotalSupply != "" case "mint.v1beta1.Params.maximum_monthly_percentage_yield": return x.MaximumMonthlyPercentageYield != "" + case "mint.v1beta1.Params.investors_preseed_percent_of_total_supply": + return x.InvestorsPreseedPercentOfTotalSupply != "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mint.v1beta1.Params")) @@ -240,6 +250,8 @@ func (x *fastReflection_Params) Clear(fd protoreflect.FieldDescriptor) { x.TeamPercentOfTotalSupply = "" case "mint.v1beta1.Params.maximum_monthly_percentage_yield": x.MaximumMonthlyPercentageYield = "" + case "mint.v1beta1.Params.investors_preseed_percent_of_total_supply": + x.InvestorsPreseedPercentOfTotalSupply = "" default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mint.v1beta1.Params")) @@ -286,6 +298,9 @@ func (x *fastReflection_Params) Get(descriptor protoreflect.FieldDescriptor) pro case "mint.v1beta1.Params.maximum_monthly_percentage_yield": value := x.MaximumMonthlyPercentageYield return protoreflect.ValueOfString(value) + case "mint.v1beta1.Params.investors_preseed_percent_of_total_supply": + value := x.InvestorsPreseedPercentOfTotalSupply + return protoreflect.ValueOfString(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mint.v1beta1.Params")) @@ -326,6 +341,8 @@ func (x *fastReflection_Params) Set(fd protoreflect.FieldDescriptor, value proto x.TeamPercentOfTotalSupply = value.Interface().(string) case "mint.v1beta1.Params.maximum_monthly_percentage_yield": x.MaximumMonthlyPercentageYield = value.Interface().(string) + case "mint.v1beta1.Params.investors_preseed_percent_of_total_supply": + x.InvestorsPreseedPercentOfTotalSupply = value.Interface().(string) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mint.v1beta1.Params")) @@ -366,6 +383,8 @@ func (x *fastReflection_Params) Mutable(fd protoreflect.FieldDescriptor) protore panic(fmt.Errorf("field team_percent_of_total_supply of message mint.v1beta1.Params is not mutable")) case "mint.v1beta1.Params.maximum_monthly_percentage_yield": panic(fmt.Errorf("field maximum_monthly_percentage_yield of message mint.v1beta1.Params is not mutable")) + case "mint.v1beta1.Params.investors_preseed_percent_of_total_supply": + panic(fmt.Errorf("field investors_preseed_percent_of_total_supply of message mint.v1beta1.Params is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mint.v1beta1.Params")) @@ -399,6 +418,8 @@ func (x *fastReflection_Params) NewField(fd protoreflect.FieldDescriptor) protor return protoreflect.ValueOfString("") case "mint.v1beta1.Params.maximum_monthly_percentage_yield": return protoreflect.ValueOfString("") + case "mint.v1beta1.Params.investors_preseed_percent_of_total_supply": + return protoreflect.ValueOfString("") default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: mint.v1beta1.Params")) @@ -508,6 +529,10 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + l = len(x.InvestorsPreseedPercentOfTotalSupply) + if l > 0 { + n += 1 + l + runtime.Sov(uint64(l)) + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -537,6 +562,13 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if len(x.InvestorsPreseedPercentOfTotalSupply) > 0 { + i -= len(x.InvestorsPreseedPercentOfTotalSupply) + copy(dAtA[i:], x.InvestorsPreseedPercentOfTotalSupply) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.InvestorsPreseedPercentOfTotalSupply))) + i-- + dAtA[i] = 0x5a + } if len(x.MaximumMonthlyPercentageYield) > 0 { i -= len(x.MaximumMonthlyPercentageYield) copy(dAtA[i:], x.MaximumMonthlyPercentageYield) @@ -976,6 +1008,38 @@ func (x *fastReflection_Params) ProtoMethods() *protoiface.Methods { } x.MaximumMonthlyPercentageYield = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 11: + if wireType != 2 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field InvestorsPreseedPercentOfTotalSupply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength + } + if postIndex > l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + x.InvestorsPreseedPercentOfTotalSupply = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -1050,6 +1114,8 @@ type Params struct { TeamPercentOfTotalSupply string `protobuf:"bytes,9,opt,name=team_percent_of_total_supply,json=teamPercentOfTotalSupply,proto3" json:"team_percent_of_total_supply,omitempty"` // The capped max monthly percentage yield (like %APY) MaximumMonthlyPercentageYield string `protobuf:"bytes,10,opt,name=maximum_monthly_percentage_yield,json=maximumMonthlyPercentageYield,proto3" json:"maximum_monthly_percentage_yield,omitempty"` + // percentage of the total supply that is locked in the preseed investors bucket at the genesis + InvestorsPreseedPercentOfTotalSupply string `protobuf:"bytes,11,opt,name=investors_preseed_percent_of_total_supply,json=investorsPreseedPercentOfTotalSupply,proto3" json:"investors_preseed_percent_of_total_supply,omitempty"` } func (x *Params) Reset() { @@ -1142,6 +1208,13 @@ func (x *Params) GetMaximumMonthlyPercentageYield() string { return "" } +func (x *Params) GetInvestorsPreseedPercentOfTotalSupply() string { + if x != nil { + return x.InvestorsPreseedPercentOfTotalSupply + } + return "" +} + var File_mint_v1beta1_types_proto protoreflect.FileDescriptor var file_mint_v1beta1_types_proto_rawDesc = []byte{ @@ -1151,7 +1224,7 @@ var file_mint_v1beta1_types_proto_rawDesc = []byte{ 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x67, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x61, 0x6d, 0x69, 0x6e, 0x6f, - 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc5, 0x09, 0x0a, + 0x2f, 0x61, 0x6d, 0x69, 0x6e, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdd, 0x0a, 0x0a, 0x06, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6d, 0x69, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x69, 0x6e, 0x74, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x12, 0x4f, 0x0a, 0x0a, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x75, @@ -1226,21 +1299,31 @@ var file_mint_v1beta1_types_proto_rawDesc = []byte{ 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x1d, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x6c, 0x79, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x61, 0x67, 0x65, 0x59, 0x69, - 0x65, 0x6c, 0x64, 0x3a, 0x1f, 0x8a, 0xe7, 0xb0, 0x2a, 0x1a, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, - 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x73, 0x42, 0xbb, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x69, 0x6e, - 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, - 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, - 0x78, 0x2f, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x69, 0x6e, 0x74, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x6d, 0x69, 0x6e, 0x74, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x69, 0x6e, 0x74, - 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x69, 0x6e, 0x74, 0x5c, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x69, 0x6e, 0x74, 0x5c, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x0d, 0x4d, 0x69, 0x6e, 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x6c, 0x64, 0x12, 0x95, 0x01, 0x0a, 0x29, 0x69, 0x6e, 0x76, 0x65, 0x73, 0x74, 0x6f, 0x72, + 0x73, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x65, 0x64, 0x5f, 0x70, 0x65, 0x72, 0x63, 0x65, 0x6e, + 0x74, 0x5f, 0x6f, 0x66, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6c, + 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x3c, 0xc8, 0xde, 0x1f, 0x00, 0xda, 0xde, 0x1f, + 0x1b, 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x73, 0x64, 0x6b, 0x2e, 0x69, 0x6f, 0x2f, 0x6d, 0x61, + 0x74, 0x68, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, 0xd2, 0xb4, 0x2d, 0x10, + 0x63, 0x6f, 0x73, 0x6d, 0x6f, 0x73, 0x2e, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x44, 0x65, 0x63, + 0xa8, 0xe7, 0xb0, 0x2a, 0x01, 0x52, 0x24, 0x69, 0x6e, 0x76, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x73, + 0x50, 0x72, 0x65, 0x73, 0x65, 0x65, 0x64, 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x4f, 0x66, + 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x3a, 0x1f, 0x8a, 0xe7, 0xb0, + 0x2a, 0x1a, 0x61, 0x6c, 0x6c, 0x6f, 0x72, 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, + 0x2f, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0xbb, 0x01, 0x0a, + 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x69, 0x6e, 0x74, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x42, 0x0a, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x4a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, + 0x72, 0x61, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x72, + 0x61, 0x2d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x2f, 0x78, 0x2f, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x6d, 0x69, 0x6e, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, + 0x6d, 0x69, 0x6e, 0x74, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x58, + 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x69, 0x6e, 0x74, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0xca, 0x02, 0x0c, 0x4d, 0x69, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, + 0x02, 0x18, 0x4d, 0x69, 0x6e, 0x74, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x4d, 0x69, 0x6e, + 0x74, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( diff --git a/x/mint/keeper/emissions.go b/x/mint/keeper/emissions.go index ef94a3856..ad1ddb895 100644 --- a/x/mint/keeper/emissions.go +++ b/x/mint/keeper/emissions.go @@ -12,11 +12,11 @@ import ( // these tokens will be custodied by a centralized actor off chain. // this function returns the circulating supply based off of what // the agreements off chain say were supposed to happen for token lockup -func GetLockedTokenSupply( +func GetLockedVestingTokens( blocksPerMonth uint64, blockHeight math.Int, params types.Params, -) math.Int { +) (total, preseedInvestors, investors, team math.Int) { // foundation is unlocked from genesis // participants are unlocked from genesis // investors and team tokens are locked on a 1 year cliff three year vesting schedule @@ -24,13 +24,15 @@ func GetLockedTokenSupply( blocksInThreeYears := blocksInAYear.Mul(math.NewInt(3)) maxSupply := params.MaxSupply.ToLegacyDec() percentInvestors := params.InvestorsPercentOfTotalSupply + percentPreseedInvestors := params.InvestorsPreseedPercentOfTotalSupply percentTeam := params.TeamPercentOfTotalSupply fullInvestors := percentInvestors.Mul(maxSupply).TruncateInt() + fullPreseedInvestors := percentPreseedInvestors.Mul(maxSupply).TruncateInt() fullTeam := percentTeam.Mul(maxSupply).TruncateInt() - var investors, team math.Int if blockHeight.LT(blocksInAYear) { // less than a year, completely locked investors = fullInvestors + preseedInvestors = fullPreseedInvestors team = fullTeam } else if blockHeight.GTE(blocksInAYear) && blockHeight.LT(blocksInThreeYears) { // between 1 and 3 years, investors and team tokens are vesting and partially unlocked @@ -38,24 +40,26 @@ func GetLockedTokenSupply( monthsUnlocked := blockHeight.Quo(math.NewIntFromUint64(blocksPerMonth)).ToLegacyDec() monthsLocked := thirtySix.Sub(monthsUnlocked) investors = monthsLocked.Quo(thirtySix).Mul(fullInvestors.ToLegacyDec()).TruncateInt() + preseedInvestors = monthsLocked.Quo(thirtySix).Mul(fullPreseedInvestors.ToLegacyDec()).TruncateInt() team = monthsLocked.Quo(thirtySix).Mul(fullTeam.ToLegacyDec()).TruncateInt() } else { // greater than 3 years, all investor, team tokens are unlocked investors = math.ZeroInt() + preseedInvestors = math.ZeroInt() team = math.ZeroInt() } - return investors.Add(team) + return preseedInvestors.Add(investors).Add(team), preseedInvestors, investors, team } // helper function to get the number of staked tokens on the network // includes both tokens staked by cosmos validators (cosmos staking) // and tokens staked by reputers (allora staking) -func GetNumStakedTokens(ctx context.Context, k Keeper) (math.Int, error) { +func GetNumStakedTokens(ctx context.Context, k types.MintKeeper) (math.Int, error) { cosmosValidatorsStaked, err := k.CosmosValidatorStakedSupply(ctx) if err != nil { return math.Int{}, err } - reputersStaked, err := k.emissionsKeeper.GetTotalStake(ctx) + reputersStaked, err := k.GetEmissionsKeeperTotalStake(ctx) if err != nil { return math.Int{}, err } @@ -63,7 +67,7 @@ func GetNumStakedTokens(ctx context.Context, k Keeper) (math.Int, error) { } // The total amount of tokens emitted for a full month -// E_i = e_i*N_{staked,i} +// \cal E_i = e_i*N_{staked,i} // where e_i is the emission per unit staked token // and N_{staked,i} is the total amount of tokens staked at timestep i // THIS FUNCTION TRUNCATES THE RESULT DIVISION TO AN INTEGER @@ -117,7 +121,8 @@ func GetCappedTargetEmissionPerUnitStakedToken( // f_e is a global tuning constant, by default f_e = 0.015 month^{−1} // represents the fraction of the ecosystem treasury that would ideally // be emitted per unit time. -// T_{total,i} = number of tokens that the ecosystem bucket can still mint. +// T_{total,i} = number of tokens that the ecosystem bucket can still mint PLUS +// the current balance of the bucket. // The ecosystem bucket is capped to be able to mint by default 36.75% of the max supply, // but as more tokens are minted the amount the ecosystem is permitted to mint decreases. // N_{staked,i} is the total number of tokens staked on the network at timestep i @@ -125,7 +130,7 @@ func GetCappedTargetEmissionPerUnitStakedToken( // N_{total,i} is the total number of tokens ever allowed to exist func GetTargetRewardEmissionPerUnitStakedToken( fEmission math.LegacyDec, - ecosystemMintableRemaining math.Int, + ecosystemLocked math.Int, networkStaked math.Int, circulatingSupply math.Int, maxSupply math.Int, @@ -139,12 +144,12 @@ func GetTargetRewardEmissionPerUnitStakedToken( maxSupply.String(), ) } - // T_{total,i} = ecosystemMintableRemaining + // T_{total,i} = ecosystemLocked // N_{staked,i} = networkStaked // N_{circ,i} = circulatingSupply // N_{total,i} = totalSupply ratioCirculating := circulatingSupply.ToLegacyDec().Quo(maxSupply.ToLegacyDec()) - ratioEcosystemToStaked := ecosystemMintableRemaining.ToLegacyDec().Quo(networkStaked.ToLegacyDec()) + ratioEcosystemToStaked := ecosystemLocked.ToLegacyDec().Quo(networkStaked.ToLegacyDec()) ret := fEmission. Mul(ratioEcosystemToStaked). Mul(ratioCirculating) @@ -169,8 +174,8 @@ func GetExponentialMovingAverage( alphaEmission math.LegacyDec, previousRewardEmissionPerUnitStakedToken math.LegacyDec, ) math.LegacyDec { - firstTerm := targetRewardEmissionPerUnitStakedToken.Mul(alphaEmission) - secondTerm := math.OneInt().ToLegacyDec().Sub(alphaEmission). - Mul(previousRewardEmissionPerUnitStakedToken) + firstTerm := alphaEmission.Mul(targetRewardEmissionPerUnitStakedToken) + inverseAlpha := math.OneInt().ToLegacyDec().Sub(alphaEmission) + secondTerm := inverseAlpha.Mul(previousRewardEmissionPerUnitStakedToken) return firstTerm.Add(secondTerm) } diff --git a/x/mint/keeper/emissions_test.go b/x/mint/keeper/emissions_test.go index cf77b1aba..e3cbd99fc 100644 --- a/x/mint/keeper/emissions_test.go +++ b/x/mint/keeper/emissions_test.go @@ -1,15 +1,19 @@ package keeper_test import ( - "cosmossdk.io/math" + "fmt" + + cosmosMath "cosmossdk.io/math" + alloraMath "github.com/allora-network/allora-chain/math" + "github.com/allora-network/allora-chain/test/testutil" "github.com/allora-network/allora-chain/x/mint/keeper" "github.com/allora-network/allora-chain/x/mint/types" ) func (s *IntegrationTestSuite) TestTotalEmissionPerMonthSimple() { // 1. Set up the test inputs - rewardEmissionPerUnitStakedToken := math.NewInt(5).ToLegacyDec() - numStakedTokens := math.NewInt(100) + rewardEmissionPerUnitStakedToken := cosmosMath.NewInt(5).ToLegacyDec() + numStakedTokens := cosmosMath.NewInt(100) // 2. Execute the test totalEmission := keeper.GetTotalEmissionPerMonth( @@ -18,7 +22,7 @@ func (s *IntegrationTestSuite) TestTotalEmissionPerMonthSimple() { ) // 3. Check the results - s.Require().Equal(math.NewInt(500), totalEmission) + s.Require().Equal(cosmosMath.NewInt(500), totalEmission) } // in order to properly test this function we'd have to mock @@ -26,8 +30,8 @@ func (s *IntegrationTestSuite) TestTotalEmissionPerMonthSimple() { // we will test that in integration, for now just test the value is non // negative aka zero when you don't have stakers func (s *IntegrationTestSuite) TestGetNumStakedTokensNonNegative() { - s.stakingKeeper.EXPECT().TotalBondedTokens(s.ctx).Return(math.NewInt(0), nil) - s.emissionsKeeper.EXPECT().GetTotalStake(s.ctx).Return(math.NewInt(0), nil) + s.stakingKeeper.EXPECT().TotalBondedTokens(s.ctx).Return(cosmosMath.NewInt(0), nil) + s.emissionsKeeper.EXPECT().GetTotalStake(s.ctx).Return(cosmosMath.NewInt(0), nil) nst, err := keeper.GetNumStakedTokens(s.ctx, s.mintKeeper) s.NoError(err) s.False(nst.IsNegative()) @@ -41,29 +45,31 @@ func (s *IntegrationTestSuite) TestGetExponentialMovingAverageSimple() { // e_i = 820 result := keeper.GetExponentialMovingAverage( - math.LegacyMustNewDecFromStr("1000"), - math.LegacyMustNewDecFromStr("0.1"), - math.LegacyMustNewDecFromStr("800"), + cosmosMath.LegacyMustNewDecFromStr("1000"), + cosmosMath.LegacyMustNewDecFromStr("0.1"), + cosmosMath.LegacyMustNewDecFromStr("800"), ) - expectedValue := math.NewInt(820).ToLegacyDec() + expectedValue := cosmosMath.NewInt(820).ToLegacyDec() s.Require().True(expectedValue.Equal(result)) } func (s *IntegrationTestSuite) TestNumberLockedTokensBeforeVest() { defaultParams := types.DefaultParams() - fullInvestors := defaultParams.InvestorsPercentOfTotalSupply. + fullPreseedInvestors := defaultParams.InvestorsPreseedPercentOfTotalSupply. + Mul(defaultParams.MaxSupply.ToLegacyDec()).TruncateInt() + fullSeedInvestors := defaultParams.InvestorsPercentOfTotalSupply. Mul(defaultParams.MaxSupply.ToLegacyDec()).TruncateInt() fullTeam := defaultParams.TeamPercentOfTotalSupply. Mul(defaultParams.MaxSupply.ToLegacyDec()).TruncateInt() - expectedLocked := fullInvestors.Add(fullTeam) + expectedLocked := fullPreseedInvestors.Add(fullSeedInvestors).Add(fullTeam) s.emissionsKeeper.EXPECT().GetParamsBlocksPerMonth(s.ctx).Return(uint64(525960), nil) bpm, err := s.emissionsKeeper.GetParamsBlocksPerMonth(s.ctx) s.Require().NoError(err) - result := keeper.GetLockedTokenSupply( + result, _, _, _ := keeper.GetLockedVestingTokens( bpm, - math.NewInt(int64(bpm*2)), + cosmosMath.NewInt(int64(bpm*2)), defaultParams, ) s.Require().True(result.Equal(expectedLocked), "expected %s, got %s", expectedLocked, result) @@ -72,21 +78,24 @@ func (s *IntegrationTestSuite) TestNumberLockedTokensBeforeVest() { func (s *IntegrationTestSuite) TestNumberLockedTokensDuringVest() { defaultParams := types.DefaultParams() // after 13 months investors and team should get 1/3 + 1/36 = 13/36 - fractionUnlocked := math.LegacyNewDec(13).Quo(math.LegacyNewDec(36)) - fractionLocked := math.LegacyNewDec(1).Sub(fractionUnlocked) - investors := defaultParams.InvestorsPercentOfTotalSupply. + fractionUnlocked := cosmosMath.LegacyNewDec(13).Quo(cosmosMath.LegacyNewDec(36)) + fractionLocked := cosmosMath.LegacyNewDec(1).Sub(fractionUnlocked) + investorsPreseed := defaultParams.InvestorsPreseedPercentOfTotalSupply. + Mul(defaultParams.MaxSupply.ToLegacyDec()). + Mul(fractionLocked).TruncateInt() + investorsSeed := defaultParams.InvestorsPercentOfTotalSupply. Mul(defaultParams.MaxSupply.ToLegacyDec()). Mul(fractionLocked).TruncateInt() team := defaultParams.TeamPercentOfTotalSupply. Mul(defaultParams.MaxSupply.ToLegacyDec()). Mul(fractionLocked).TruncateInt() - expectedLocked := investors.Add(team) + expectedLocked := investorsPreseed.Add(investorsSeed).Add(team) s.emissionsKeeper.EXPECT().GetParamsBlocksPerMonth(s.ctx).Return(uint64(525960), nil) bpm, err := s.emissionsKeeper.GetParamsBlocksPerMonth(s.ctx) s.Require().NoError(err) - result := keeper.GetLockedTokenSupply( + result, _, _, _ := keeper.GetLockedVestingTokens( bpm, - math.NewInt(int64(bpm*13+1)), + cosmosMath.NewInt(int64(bpm*13+1)), defaultParams, ) s.Require().True(result.Equal(expectedLocked), "expected %s, got %s", expectedLocked, result) @@ -97,12 +106,12 @@ func (s *IntegrationTestSuite) TestNumberLockedTokensAfterVest() { s.emissionsKeeper.EXPECT().GetParamsBlocksPerMonth(s.ctx).Return(uint64(525960), nil) bpm, err := s.emissionsKeeper.GetParamsBlocksPerMonth(s.ctx) s.Require().NoError(err) - result := keeper.GetLockedTokenSupply( + result, _, _, _ := keeper.GetLockedVestingTokens( bpm, - math.NewInt(int64(bpm*40)), + cosmosMath.NewInt(int64(bpm*40)), defaultParams, ) - s.Require().True(result.Equal(math.ZeroInt())) + s.Require().True(result.Equal(cosmosMath.ZeroInt())) } func (s *IntegrationTestSuite) TestTargetRewardEmissionPerUnitStakedTokenSimple() { @@ -111,11 +120,208 @@ func (s *IntegrationTestSuite) TestTargetRewardEmissionPerUnitStakedTokenSimple( // ^e_i = ((0.015*2000)/400)*(10000000/12000000) _, err := keeper.GetTargetRewardEmissionPerUnitStakedToken( - math.LegacyMustNewDecFromStr("0.015"), - math.NewInt(200000), - math.NewInt(400), - math.NewInt(10000000), - math.NewInt(12000000), + cosmosMath.LegacyMustNewDecFromStr("0.015"), + cosmosMath.NewInt(200000), + cosmosMath.NewInt(400), + cosmosMath.NewInt(10000000), + cosmosMath.NewInt(12000000), + ) + s.Require().NoError(err) +} + +// match ^e_i from row 61 +func (s *IntegrationTestSuite) TestEHatTargetFromCsv() { + epoch := s.epochGet[60] + epoch61 := s.epochGet[61] + // because of how the simulator is written, the target is + // calculated based on the previous epoch's data + expectedResult := epoch61("ehat_target_i") + + simulatorFEmission := cosmosMath.LegacyMustNewDecFromStr("0.025") + networkTokensTotal := epoch("network_tokens_total").SdkIntTrim() + ecosystemTokensTotal := epoch("ecosystem_tokens_total").SdkIntTrim() + networkTokensCirculating := epoch("network_tokens_circulating").SdkIntTrim() + networkTokensStaked := epoch("network_tokens_staked").SdkIntTrim() + fmt.Println("f_emission", simulatorFEmission) + fmt.Println("ecosystem_tokens_total", ecosystemTokensTotal) + fmt.Println("network_tokens_circulating", networkTokensCirculating) + fmt.Println("network_tokens_staked", networkTokensStaked) + fmt.Println("network_tokens_total", networkTokensTotal) + result, err := keeper.GetTargetRewardEmissionPerUnitStakedToken( + simulatorFEmission, + ecosystemTokensTotal, + networkTokensStaked, + networkTokensCirculating, + networkTokensTotal, + ) + s.Require().NoError(err) + resultD, err := alloraMath.NewDecFromSdkLegacyDec(result) + s.Require().NoError(err) + testutil.InEpsilon5Dec(s.T(), resultD, expectedResult) +} + +func (s *IntegrationTestSuite) TestEHatMaxAtGenesisFromCsv() { + epoch0Get := s.epochGet[0] + expectedResult := epoch0Get("ehat_max_i") + // not exposed in csv, but taken looking directly from python notebook: + // f_validators = 0.25 + // f_stake = f_validators+(1.-f_validators)/3. + // calculated by hand: + // >>> f_stake = 0.5 + // pick two values that will make f_stake equal to 0.5 like above: + f_reputers := cosmosMath.LegacyMustNewDecFromStr("0.333333333333333333") + f_validators := cosmosMath.LegacyMustNewDecFromStr("0.25") + + // max_apy = 0.12 + // max_mpy = (1.+max_apy)**(1./12.)-1. + // >>> max_mpy = 0.009488792934583046 + max_mpy := cosmosMath.LegacyMustNewDecFromStr("0.009488792934583046") + + // max_emission_per_token = max_mpy/f_stake + // >>> max_emission_per_token = 0.01897758586916609 + result := keeper.GetMaximumMonthlyEmissionPerUnitStakedToken( + max_mpy, + f_reputers, + f_validators, + ) + resultD, err := alloraMath.NewDecFromSdkLegacyDec(result) + s.Require().NoError(err) + testutil.InEpsilon5Dec(s.T(), resultD, expectedResult) +} + +func (s *IntegrationTestSuite) TestEhatIFromCsv() { + epoch := s.epochGet[61] + expectedResult := epoch("ehat_i") + ehatMaxI := epoch("ehat_max_i").SdkLegacyDec() + ehatTargetI := epoch("ehat_target_i").SdkLegacyDec() + + result := keeper.GetCappedTargetEmissionPerUnitStakedToken( + ehatTargetI, + ehatMaxI, ) + resultD, err := alloraMath.NewDecFromSdkLegacyDec(result) s.Require().NoError(err) + testutil.InEpsilon5Dec(s.T(), resultD, expectedResult) +} + +// calculate e_i for the 61st epoch +func (s *IntegrationTestSuite) TestESubIFromCsv() { + expectedResult := s.epochGet[61]("e_i") + targetE_i := s.epochGet[61]("ehat_target_i").SdkLegacyDec() + previousE_i := s.epochGet[60]("e_i").SdkLegacyDec() + + // this is taken directly from the python notebook + alpha_Emission := cosmosMath.LegacyMustNewDecFromStr("0.1") + + result := keeper.GetExponentialMovingAverage( + targetE_i, + alpha_Emission, + previousE_i, + ) + resultD, err := alloraMath.NewDecFromSdkLegacyDec(result) + s.Require().NoError(err) + testutil.InEpsilon5Dec(s.T(), resultD, expectedResult) +} + +// calculate \cal E for the 61st epoch +// GetTotalEmissionPerMonth +func (s *IntegrationTestSuite) TestCalEFromCsv() { + expectedResult := s.epochGet[61]("ecosystem_tokens_emission") + rewardEmissionPerUnitStakedToken := s.epochGet[61]("e_i").SdkLegacyDec() + // use the value from epoch 60 rather than 61 because the python notebook + // updates the value AFTER calculating the total emission and handing out rewards + numStakedTokens := s.epochGet[60]("network_tokens_staked").SdkIntTrim() + totalEmission := keeper.GetTotalEmissionPerMonth( + rewardEmissionPerUnitStakedToken, + numStakedTokens, + ) + resultD, err := alloraMath.NewDecFromSdkInt(totalEmission) + s.Require().NoError(err) + testutil.InEpsilon5Dec(s.T(), resultD, expectedResult) +} + +func (s *IntegrationTestSuite) TestGetLockedVestingTokens() { + _1e18 := alloraMath.NewDecFinite(1, 18) + blocksPerMonth := uint64(525960) + epoch0 := s.epochGet[0] + preseedFullyVested := epoch0("investors_preseed_tokens_total") + seedFullyVested := epoch0("investors_seed_tokens_total") + teamFullyVested := epoch0("team_tokens_total") + + preseedAccumulated := alloraMath.ZeroDec() + seedAccumulated := alloraMath.ZeroDec() + teamAccumulated := alloraMath.ZeroDec() + for i := uint64(0); i < 96; i++ { + epoch := s.epochGet[int(i)] + result, resultPreseed, resultSeed, resultTeam := keeper.GetLockedVestingTokens( + blocksPerMonth, + cosmosMath.NewIntFromUint64(blocksPerMonth*i), + types.DefaultParams(), + ) + resultPreseedDec, err := alloraMath.NewDecFromSdkInt(resultPreseed) + s.Require().NoError(err) + resultSeedDec, err := alloraMath.NewDecFromSdkInt(resultSeed) + s.Require().NoError(err) + resultTeamDec, err := alloraMath.NewDecFromSdkInt(resultTeam) + s.Require().NoError(err) + resultD, err := alloraMath.NewDecFromSdkInt(result) + s.Require().NoError(err) + resultPreseedAllo, err := resultPreseedDec.Quo(_1e18) + s.Require().NoError(err) + resultSeedAllo, err := resultSeedDec.Quo(_1e18) + s.Require().NoError(err) + resultTeamAllo, err := resultTeamDec.Quo(_1e18) + s.Require().NoError(err) + resultDAllo, err := resultD.Quo(_1e18) + s.Require().NoError(err) + + preseedTokensEmission := epoch("investors_preseed_tokens_emission") + s.Require().NoError(err) + preseedAccumulated, err = preseedAccumulated.Add(preseedTokensEmission) + s.Require().NoError(err) + seedTokensEmission := epoch("investors_seed_tokens_emission") + seedAccumulated, err = seedAccumulated.Add(seedTokensEmission) + s.Require().NoError(err) + teamTokensEmission := epoch("team_tokens_emission") + teamAccumulated, err = teamAccumulated.Add(teamTokensEmission) + s.Require().NoError(err) + + preseedLocked, err := preseedFullyVested.Sub(preseedAccumulated) + s.Require().NoError(err) + // rounding precision error + if preseedLocked.Lt(alloraMath.OneDec()) { + preseedLocked = alloraMath.ZeroDec() + } + seedLocked, err := seedFullyVested.Sub(seedAccumulated) + s.Require().NoError(err) + if seedLocked.Lt(alloraMath.OneDec()) { + seedLocked = alloraMath.ZeroDec() + } + teamLocked, err := teamFullyVested.Sub(teamAccumulated) + s.Require().NoError(err) + if teamLocked.Lt(alloraMath.OneDec()) { + teamLocked = alloraMath.ZeroDec() + } + + expected, err := preseedLocked.Add(seedLocked) + s.Require().NoError(err) + expected, err = expected.Add(teamLocked) + s.Require().NoError(err) + + // s.ctx.Logger().Info("Epoch %d ## total %s | %s ## preseed %s | %s ## seed %s | %s ## team %s | %s\n", + // i, + // resultDAllo.String(), + // expected.String(), + // resultPreseedAllo.String(), + // preseedLocked.String(), + // resultSeedAllo.String(), + // seedLocked.String(), + // resultTeamAllo.String(), + // teamLocked.String(), + // ) + testutil.InEpsilon5Dec(s.T(), resultPreseedAllo, preseedLocked) + testutil.InEpsilon5Dec(s.T(), resultSeedAllo, seedLocked) + testutil.InEpsilon5Dec(s.T(), resultTeamAllo, teamLocked) + testutil.InEpsilon5Dec(s.T(), resultDAllo, expected) + } } diff --git a/x/mint/keeper/genesis_test.go b/x/mint/keeper/genesis_test.go index 0d0b84617..be1971f57 100644 --- a/x/mint/keeper/genesis_test.go +++ b/x/mint/keeper/genesis_test.go @@ -76,6 +76,7 @@ func (s *GenesisTestSuite) TestImportExportGenesis() { defaultParams.FoundationTreasuryPercentOfTotalSupply, defaultParams.ParticipantsPercentOfTotalSupply, defaultParams.InvestorsPercentOfTotalSupply, + defaultParams.InvestorsPreseedPercentOfTotalSupply, defaultParams.TeamPercentOfTotalSupply, defaultParams.MaximumMonthlyPercentageYield, ) diff --git a/x/mint/keeper/keeper.go b/x/mint/keeper/keeper.go index e882c58b1..de0d39175 100644 --- a/x/mint/keeper/keeper.go +++ b/x/mint/keeper/keeper.go @@ -78,6 +78,16 @@ func (k Keeper) Logger(ctx context.Context) log.Logger { return sdkCtx.Logger().With("module", "x/"+types.ModuleName) } +// getter for the storage service +func (k Keeper) GetStorageService() storetypes.KVStoreService { + return k.storeService +} + +// getter for the binary codec +func (k Keeper) GetBinaryCodec() codec.BinaryCodec { + return k.cdc +} + // This function increases the ledger that tracks the total tokens minted by the ecosystem treasury // over the life of the blockchain. func (k Keeper) AddEcosystemTokensMinted(ctx context.Context, minted math.Int) error { @@ -85,8 +95,8 @@ func (k Keeper) AddEcosystemTokensMinted(ctx context.Context, minted math.Int) e if err != nil { return err } - new := curr.Add(minted) - return k.EcosystemTokensMinted.Set(ctx, new) + newTotal := curr.Add(minted) + return k.EcosystemTokensMinted.Set(ctx, newTotal) } /// STAKING KEEPER RELATED FUNCTIONS @@ -207,3 +217,13 @@ func (k Keeper) GetParamsBlocksPerMonth(ctx context.Context) (uint64, error) { func (k Keeper) IsWhitelistAdmin(ctx context.Context, admin string) (bool, error) { return k.emissionsKeeper.IsWhitelistAdmin(ctx, admin) } + +// wrapper for interface compatibility for unit testing +func (k Keeper) GetPreviousRewardEmissionPerUnitStakedToken(ctx context.Context) (math.LegacyDec, error) { + return k.PreviousRewardEmissionPerUnitStakedToken.Get(ctx) +} + +// wrapper for interface compatibility for unit testing +func (k Keeper) GetEmissionsKeeperTotalStake(ctx context.Context) (math.Int, error) { + return k.emissionsKeeper.GetTotalStake(ctx) +} diff --git a/x/mint/keeper/keeper_test.go b/x/mint/keeper/keeper_test.go index 351b015a5..09879bc3a 100644 --- a/x/mint/keeper/keeper_test.go +++ b/x/mint/keeper/keeper_test.go @@ -9,6 +9,8 @@ import ( "cosmossdk.io/math" storetypes "cosmossdk.io/store/types" + alloraMath "github.com/allora-network/allora-chain/math" + alloratestutil "github.com/allora-network/allora-chain/test/testutil" emissionstypes "github.com/allora-network/allora-chain/x/emissions/types" "github.com/allora-network/allora-chain/x/mint/keeper" mint "github.com/allora-network/allora-chain/x/mint/module" @@ -17,7 +19,7 @@ import ( authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" "github.com/cosmos/cosmos-sdk/runtime" - "github.com/cosmos/cosmos-sdk/testutil" + cosmostestutil "github.com/cosmos/cosmos-sdk/testutil" sdk "github.com/cosmos/cosmos-sdk/types" moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" ) @@ -28,11 +30,13 @@ type IntegrationTestSuite struct { mintKeeper keeper.Keeper ctx sdk.Context msgServer types.MsgServer + ctrl *gomock.Controller stakingKeeper *minttestutil.MockStakingKeeper bankKeeper *minttestutil.MockBankKeeper emissionsKeeper *minttestutil.MockEmissionsKeeper adminPrivateKey secp256k1.PrivKey adminAddr string + epochGet map[int]func(string) alloraMath.Dec } func TestKeeperTestSuite(t *testing.T) { @@ -43,15 +47,15 @@ func (s *IntegrationTestSuite) SetupTest() { encCfg := moduletestutil.MakeTestEncodingConfig(mint.AppModuleBasic{}) key := storetypes.NewKVStoreKey(types.StoreKey) storeService := runtime.NewKVStoreService(key) - testCtx := testutil.DefaultContextWithDB(s.T(), key, storetypes.NewTransientStoreKey("transient_test")) + testCtx := cosmostestutil.DefaultContextWithDB(s.T(), key, storetypes.NewTransientStoreKey("transient_test")) s.ctx = testCtx.Ctx // gomock initializations - ctrl := gomock.NewController(s.T()) - accountKeeper := minttestutil.NewMockAccountKeeper(ctrl) - bankKeeper := minttestutil.NewMockBankKeeper(ctrl) - stakingKeeper := minttestutil.NewMockStakingKeeper(ctrl) - emissionsKeeper := minttestutil.NewMockEmissionsKeeper(ctrl) + s.ctrl = gomock.NewController(s.T()) + accountKeeper := minttestutil.NewMockAccountKeeper(s.ctrl) + bankKeeper := minttestutil.NewMockBankKeeper(s.ctrl) + stakingKeeper := minttestutil.NewMockStakingKeeper(s.ctrl) + emissionsKeeper := minttestutil.NewMockEmissionsKeeper(s.ctrl) accountKeeper.EXPECT().GetModuleAddress(types.ModuleName).Return(sdk.AccAddress{}) @@ -79,6 +83,7 @@ func (s *IntegrationTestSuite) SetupTest() { s.Require().NoError(err) s.msgServer = keeper.NewMsgServerImpl(s.mintKeeper) + s.epochGet = alloratestutil.GetTokenomicsSimulatorValuesGetterForEpochs() } func (s *IntegrationTestSuite) TestAliasFunctions() { diff --git a/x/mint/keeper/migrator.go b/x/mint/keeper/migrator.go deleted file mode 100644 index f0161568d..000000000 --- a/x/mint/keeper/migrator.go +++ /dev/null @@ -1,25 +0,0 @@ -package keeper - -import ( - sdk "github.com/cosmos/cosmos-sdk/types" -) - -// Migrator is a struct for handling in-place state migrations. -type Migrator struct { - keeper Keeper -} - -// NewMigrator returns Migrator instance for the state migration. -func NewMigrator(k Keeper) Migrator { - return Migrator{ - keeper: k, - } -} - -// Migrate1to2 migrates the x/mint module state from the consensus version 1 to -// version 2. Specifically, it takes the parameters that are currently stored -// and managed by the x/params modules and stores them directly into the x/mint -// module state. -func (m Migrator) Migrate1to2(ctx sdk.Context) error { - return nil -} diff --git a/x/mint/migrations/proto_types_test.go b/x/mint/migrations/proto_types_test.go new file mode 100644 index 000000000..e4499cd63 --- /dev/null +++ b/x/mint/migrations/proto_types_test.go @@ -0,0 +1,772 @@ +package migrations_test + +import ( + fmt "fmt" + io "io" + math "math" + math_bits "math/bits" + + cosmossdk_io_math "cosmossdk.io/math" + _ "github.com/cosmos/cosmos-proto" + _ "github.com/cosmos/cosmos-sdk/types/tx/amino" + _ "github.com/cosmos/gogoproto/gogoproto" + proto "github.com/cosmos/gogoproto/proto" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +// OldParams defines the parameters for the x/mint module. +type OldParams struct { + // type of coin to mint + MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` + // maximum total supply of the coin + MaxSupply cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=max_supply,json=maxSupply,proto3,customtype=cosmossdk.io/math.Int" json:"max_supply"` + // ecosystem treasury fraction ideally emitted per unit time + FEmission cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=f_emission,json=fEmission,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"f_emission"` + // one month exponential moving average smoothing factor, alpha_e in the paper + OneMonthSmoothingDegree cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=one_month_smoothing_degree,json=oneMonthSmoothingDegree,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"one_month_smoothing_degree"` + // percentage of the total supply is reserved and locked in the ecosystem treasury + EcosystemTreasuryPercentOfTotalSupply cosmossdk_io_math.LegacyDec `protobuf:"bytes,5,opt,name=ecosystem_treasury_percent_of_total_supply,json=ecosystemTreasuryPercentOfTotalSupply,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"ecosystem_treasury_percent_of_total_supply"` + // percentage of the total supply that is unlocked and usable in the foundation treasury + FoundationTreasuryPercentOfTotalSupply cosmossdk_io_math.LegacyDec `protobuf:"bytes,6,opt,name=foundation_treasury_percent_of_total_supply,json=foundationTreasuryPercentOfTotalSupply,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"foundation_treasury_percent_of_total_supply"` + // percentage of the total supply that is unlocked and usable by partipicants at the genesis + ParticipantsPercentOfTotalSupply cosmossdk_io_math.LegacyDec `protobuf:"bytes,7,opt,name=participants_percent_of_total_supply,json=participantsPercentOfTotalSupply,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"participants_percent_of_total_supply"` + // percentage of the total supply that is locked in the investors bucket at the genesis + InvestorsPercentOfTotalSupply cosmossdk_io_math.LegacyDec `protobuf:"bytes,8,opt,name=investors_percent_of_total_supply,json=investorsPercentOfTotalSupply,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"investors_percent_of_total_supply"` + // percentage of the total supply that is locked in the team bucket at the genesis + TeamPercentOfTotalSupply cosmossdk_io_math.LegacyDec `protobuf:"bytes,9,opt,name=team_percent_of_total_supply,json=teamPercentOfTotalSupply,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"team_percent_of_total_supply"` + // The capped max monthly percentage yield (like %APY) + MaximumMonthlyPercentageYield cosmossdk_io_math.LegacyDec `protobuf:"bytes,10,opt,name=maximum_monthly_percentage_yield,json=maximumMonthlyPercentageYield,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"maximum_monthly_percentage_yield"` +} + +func (m *OldParams) Reset() { *m = OldParams{} } +func (m *OldParams) String() string { return proto.CompactTextString(m) } +func (*OldParams) ProtoMessage() {} +func (*OldParams) Descriptor() ([]byte, []int) { + return fileDescriptor_010015e812760429, []int{0} +} +func (m *OldParams) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *OldParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_Params.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (m *OldParams) XXX_Merge(src proto.Message) { + xxx_messageInfo_Params.Merge(m, src) +} +func (m *OldParams) XXX_Size() int { + return m.Size() +} +func (m *OldParams) XXX_DiscardUnknown() { + xxx_messageInfo_Params.DiscardUnknown(m) +} + +var xxx_messageInfo_Params proto.InternalMessageInfo + +func (m *OldParams) GetMintDenom() string { + if m != nil { + return m.MintDenom + } + return "" +} + +func init() { + proto.RegisterType((*OldParams)(nil), "mint.v1beta1.Params") +} + +func init() { proto.RegisterFile("mint/v1beta1/types.proto", fileDescriptor_010015e812760429) } + +var fileDescriptor_010015e812760429 = []byte{ + // 551 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x3f, 0x6f, 0xd3, 0x40, + 0x18, 0xc6, 0x73, 0xfc, 0x29, 0xe4, 0xc4, 0x00, 0x16, 0x08, 0x13, 0xa8, 0x1b, 0x10, 0x20, 0x14, + 0x94, 0x98, 0xaa, 0x1b, 0x62, 0xaa, 0xc2, 0x50, 0x89, 0xa8, 0x51, 0xdb, 0x05, 0x18, 0x4e, 0x17, + 0xe7, 0xe2, 0x9c, 0xea, 0xbb, 0xd7, 0xf2, 0xbd, 0x29, 0xb1, 0xc4, 0x0a, 0x03, 0x62, 0x60, 0x43, + 0x7c, 0x03, 0xc6, 0x0e, 0xfd, 0x0a, 0x48, 0x1d, 0xab, 0x4e, 0x88, 0xa1, 0x42, 0xc9, 0xd0, 0xaf, + 0x81, 0x6c, 0x5f, 0x03, 0x12, 0x09, 0x2c, 0x5e, 0x2c, 0xfb, 0x7d, 0xac, 0xdf, 0xef, 0xd1, 0xc9, + 0x7e, 0xa9, 0xab, 0xa4, 0x46, 0x7f, 0x6f, 0xb5, 0x27, 0x90, 0xaf, 0xfa, 0x98, 0xc6, 0xc2, 0xb4, + 0xe2, 0x04, 0x10, 0x9c, 0x2b, 0x59, 0xd2, 0xb2, 0x49, 0xed, 0x7a, 0x08, 0x21, 0xe4, 0x81, 0x9f, + 0xdd, 0x15, 0xef, 0xd4, 0x6e, 0x05, 0x60, 0x14, 0x18, 0x56, 0x04, 0xc5, 0x83, 0x8d, 0xae, 0x71, + 0x25, 0x35, 0xf8, 0xf9, 0xb5, 0x18, 0xdd, 0xfb, 0x56, 0xa5, 0x4b, 0x5d, 0x9e, 0x70, 0x65, 0x9c, + 0x65, 0x4a, 0x33, 0x3c, 0xeb, 0x0b, 0x0d, 0xca, 0x25, 0x75, 0xf2, 0xa8, 0xba, 0x55, 0xcd, 0x26, + 0xed, 0x6c, 0xe0, 0x6c, 0x52, 0xaa, 0xf8, 0x98, 0x99, 0x51, 0x1c, 0x47, 0xa9, 0x7b, 0x2e, 0x8b, + 0xd7, 0x9f, 0x1c, 0x9e, 0xac, 0x54, 0x7e, 0x9c, 0xac, 0xdc, 0x28, 0x34, 0xa6, 0xbf, 0xdb, 0x92, + 0xe0, 0x2b, 0x8e, 0xc3, 0xd6, 0x86, 0xc6, 0xe3, 0x83, 0x26, 0xb5, 0xfe, 0x0d, 0x8d, 0x5f, 0x4f, + 0xf7, 0x1b, 0x64, 0xab, 0xaa, 0xf8, 0x78, 0x3b, 0x47, 0x38, 0xaf, 0x29, 0x1d, 0x30, 0xa1, 0xa4, + 0x31, 0x12, 0xb4, 0x7b, 0x3e, 0x07, 0x3e, 0xb3, 0xc0, 0xdb, 0x7f, 0x03, 0x5f, 0x88, 0x90, 0x07, + 0x69, 0x5b, 0x04, 0xc7, 0x07, 0xcd, 0xab, 0x16, 0x3b, 0x9b, 0x59, 0xf8, 0xe0, 0xb9, 0xc5, 0x39, + 0x29, 0xad, 0x81, 0x16, 0x4c, 0x81, 0xc6, 0x21, 0x33, 0x0a, 0x00, 0x87, 0x52, 0x87, 0xac, 0x2f, + 0xc2, 0x44, 0x08, 0xf7, 0x42, 0x09, 0xb2, 0x9b, 0xa0, 0x45, 0x27, 0xc3, 0x6f, 0x9f, 0xd1, 0xdb, + 0x39, 0xdc, 0xf9, 0x4c, 0x68, 0x43, 0x04, 0x60, 0x52, 0x83, 0x42, 0x31, 0x4c, 0x04, 0x37, 0xa3, + 0x24, 0x65, 0xb1, 0x48, 0x02, 0xa1, 0x91, 0xc1, 0x80, 0x21, 0x20, 0x8f, 0xce, 0x4e, 0xf2, 0x62, + 0x09, 0x5d, 0x1e, 0xcc, 0x7c, 0x3b, 0x56, 0xd7, 0x2d, 0x6c, 0x9b, 0x83, 0x9d, 0xcc, 0x65, 0x4f, + 0xfc, 0x0b, 0xa1, 0x8f, 0x07, 0x30, 0xd2, 0x7d, 0x8e, 0x12, 0xf4, 0xff, 0xab, 0x2d, 0x95, 0x50, + 0xed, 0xe1, 0x6f, 0xe1, 0x3f, 0xbb, 0x7d, 0x24, 0xf4, 0x7e, 0xcc, 0x13, 0x94, 0x81, 0x8c, 0xb9, + 0x46, 0xb3, 0xb0, 0xd4, 0xa5, 0x12, 0x4a, 0xd5, 0xff, 0x34, 0xcd, 0xad, 0xf3, 0x9e, 0xd0, 0xbb, + 0x52, 0xef, 0x09, 0x83, 0x90, 0x2c, 0xee, 0x72, 0xb9, 0x84, 0x2e, 0xcb, 0x33, 0xcd, 0xdc, 0x22, + 0x6f, 0xe9, 0x1d, 0x14, 0x5c, 0x2d, 0xac, 0x50, 0x2d, 0xa1, 0x82, 0x9b, 0x19, 0xe6, 0xda, 0xdf, + 0x11, 0x5a, 0x57, 0x7c, 0x2c, 0xd5, 0x48, 0x15, 0xff, 0x52, 0x34, 0xfb, 0x5a, 0x78, 0x28, 0x58, + 0x2a, 0x45, 0xd4, 0x77, 0x69, 0x19, 0xa7, 0x60, 0x2d, 0x9d, 0x42, 0xd2, 0x9d, 0x39, 0x5e, 0x66, + 0x8a, 0xa7, 0x2b, 0x1f, 0x4e, 0xf7, 0x1b, 0x35, 0x1e, 0x45, 0x90, 0xf0, 0x66, 0x30, 0xe4, 0x52, + 0xfb, 0x63, 0x3f, 0x5f, 0x93, 0xc5, 0xf2, 0x5a, 0xef, 0x1c, 0x4e, 0x3c, 0x72, 0x34, 0xf1, 0xc8, + 0xcf, 0x89, 0x47, 0x3e, 0x4d, 0xbd, 0xca, 0xd1, 0xd4, 0xab, 0x7c, 0x9f, 0x7a, 0x95, 0x57, 0x6b, + 0xa1, 0xc4, 0xe1, 0xa8, 0xd7, 0x0a, 0x40, 0xf9, 0x16, 0xa0, 0x05, 0xbe, 0x81, 0x64, 0xd7, 0x9f, + 0xc7, 0xcb, 0xd7, 0x6d, 0x6f, 0x29, 0xdf, 0x8e, 0x6b, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x8e, + 0x93, 0xc4, 0x89, 0x8b, 0x05, 0x00, 0x00, +} + +func (m *OldParams) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *OldParams) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OldParams) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size := m.MaximumMonthlyPercentageYield.Size() + i -= size + if _, err := m.MaximumMonthlyPercentageYield.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + { + size := m.TeamPercentOfTotalSupply.Size() + i -= size + if _, err := m.TeamPercentOfTotalSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + { + size := m.InvestorsPercentOfTotalSupply.Size() + i -= size + if _, err := m.InvestorsPercentOfTotalSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + { + size := m.ParticipantsPercentOfTotalSupply.Size() + i -= size + if _, err := m.ParticipantsPercentOfTotalSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + { + size := m.FoundationTreasuryPercentOfTotalSupply.Size() + i -= size + if _, err := m.FoundationTreasuryPercentOfTotalSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size := m.EcosystemTreasuryPercentOfTotalSupply.Size() + i -= size + if _, err := m.EcosystemTreasuryPercentOfTotalSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + { + size := m.OneMonthSmoothingDegree.Size() + i -= size + if _, err := m.OneMonthSmoothingDegree.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + { + size := m.FEmission.Size() + i -= size + if _, err := m.FEmission.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size := m.MaxSupply.Size() + i -= size + if _, err := m.MaxSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.MintDenom) > 0 { + i -= len(m.MintDenom) + copy(dAtA[i:], m.MintDenom) + i = encodeVarintTypes(dAtA, i, uint64(len(m.MintDenom))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { + offset -= sovTypes(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *OldParams) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.MintDenom) + if l > 0 { + n += 1 + l + sovTypes(uint64(l)) + } + l = m.MaxSupply.Size() + n += 1 + l + sovTypes(uint64(l)) + l = m.FEmission.Size() + n += 1 + l + sovTypes(uint64(l)) + l = m.OneMonthSmoothingDegree.Size() + n += 1 + l + sovTypes(uint64(l)) + l = m.EcosystemTreasuryPercentOfTotalSupply.Size() + n += 1 + l + sovTypes(uint64(l)) + l = m.FoundationTreasuryPercentOfTotalSupply.Size() + n += 1 + l + sovTypes(uint64(l)) + l = m.ParticipantsPercentOfTotalSupply.Size() + n += 1 + l + sovTypes(uint64(l)) + l = m.InvestorsPercentOfTotalSupply.Size() + n += 1 + l + sovTypes(uint64(l)) + l = m.TeamPercentOfTotalSupply.Size() + n += 1 + l + sovTypes(uint64(l)) + l = m.MaximumMonthlyPercentageYield.Size() + n += 1 + l + sovTypes(uint64(l)) + return n +} + +func sovTypes(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func (m *OldParams) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Params: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MintDenom", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MintDenom = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSupply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaxSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FEmission", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.FEmission.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OneMonthSmoothingDegree", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.OneMonthSmoothingDegree.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field EcosystemTreasuryPercentOfTotalSupply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.EcosystemTreasuryPercentOfTotalSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FoundationTreasuryPercentOfTotalSupply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.FoundationTreasuryPercentOfTotalSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ParticipantsPercentOfTotalSupply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ParticipantsPercentOfTotalSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InvestorsPercentOfTotalSupply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.InvestorsPercentOfTotalSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TeamPercentOfTotalSupply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.TeamPercentOfTotalSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaximumMonthlyPercentageYield", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.MaximumMonthlyPercentageYield.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipTypes(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthTypes + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipTypes(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + depth := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTypes + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTypes + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + case 1: + iNdEx += 8 + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowTypes + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthTypes + } + iNdEx += length + case 3: + depth++ + case 4: + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTypes + } + depth-- + case 5: + iNdEx += 4 + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + if iNdEx < 0 { + return 0, ErrInvalidLengthTypes + } + if depth == 0 { + return iNdEx, nil + } + } + return 0, io.ErrUnexpectedEOF +} + +var ( + ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") +) diff --git a/x/mint/migrations/v1_to_v2.go b/x/mint/migrations/v1_to_v2.go new file mode 100644 index 000000000..15f77793f --- /dev/null +++ b/x/mint/migrations/v1_to_v2.go @@ -0,0 +1,66 @@ +package migrations + +import ( + "cosmossdk.io/errors" + storetypes "cosmossdk.io/store/types" + "github.com/allora-network/allora-chain/x/mint/keeper" + "github.com/allora-network/allora-chain/x/mint/types" + "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/runtime" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/gogo/protobuf/proto" +) + +// V1ToV2 migrates the x/mint state from version 1 to version 2. +func V1ToV2(ctx sdk.Context, mintKeeper keeper.Keeper) error { + ctx.Logger().Info("Migrating x/mint state from version 1 to version 2") + + storageService := mintKeeper.GetStorageService() + store := runtime.KVStoreAdapter(storageService.OpenKVStore(ctx)) + cdc := mintKeeper.GetBinaryCodec() + + if err := migrateParameters(store, cdc); err != nil { + return err + } + return nil +} + +// migrates the parameters from v1 to v2. The only change is the addition +// of the InvestorsPreseedPercentOfTotalSupply parameter. +// the InvestorsPercentOfTotalSupply now refers to the Investors SEED Percent of Total Supply +// as oppposed to preseed. +func migrateParameters(store storetypes.KVStore, cdc codec.BinaryCodec) error { + // Read the old parameters + oldParams := types.Params{} + oldParamsBytes := store.Get(types.ParamsKey) + if oldParamsBytes == nil { + return errors.Wrapf(types.ErrNotFound, "old parameters not found") + } + err := proto.Unmarshal(oldParamsBytes, &oldParams) + if err != nil { + return errors.Wrapf(err, "failed to unmarshal old parameters") + } + + defaultParams := types.DefaultParams() + + // Convert the old parameters to the new parameters + newParams := types.Params{ + // old parameters + MintDenom: oldParams.MintDenom, + MaxSupply: oldParams.MaxSupply, + FEmission: oldParams.FEmission, + OneMonthSmoothingDegree: oldParams.OneMonthSmoothingDegree, + EcosystemTreasuryPercentOfTotalSupply: oldParams.EcosystemTreasuryPercentOfTotalSupply, + FoundationTreasuryPercentOfTotalSupply: oldParams.FoundationTreasuryPercentOfTotalSupply, + ParticipantsPercentOfTotalSupply: oldParams.ParticipantsPercentOfTotalSupply, + InvestorsPercentOfTotalSupply: oldParams.InvestorsPercentOfTotalSupply, + TeamPercentOfTotalSupply: oldParams.TeamPercentOfTotalSupply, + MaximumMonthlyPercentageYield: oldParams.MaximumMonthlyPercentageYield, + // new parameters + InvestorsPreseedPercentOfTotalSupply: defaultParams.InvestorsPreseedPercentOfTotalSupply, + } + store.Delete(types.ParamsKey) + store.Set(types.ParamsKey, cdc.MustMarshal(&newParams)) + + return nil +} diff --git a/x/mint/migrations/v1_to_v2_test.go b/x/mint/migrations/v1_to_v2_test.go new file mode 100644 index 000000000..bee3c8d7a --- /dev/null +++ b/x/mint/migrations/v1_to_v2_test.go @@ -0,0 +1,124 @@ +package migrations_test + +import ( + "testing" + + cosmosMath "cosmossdk.io/math" + "github.com/allora-network/allora-chain/x/mint/keeper" + "github.com/allora-network/allora-chain/x/mint/migrations" + mint "github.com/allora-network/allora-chain/x/mint/module" + minttestutil "github.com/allora-network/allora-chain/x/mint/testutil" + "github.com/allora-network/allora-chain/x/mint/types" + "github.com/cosmos/cosmos-sdk/runtime" + sdk "github.com/cosmos/cosmos-sdk/types" + authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" + "github.com/golang/mock/gomock" + "github.com/stretchr/testify/suite" + + moduletestutil "github.com/cosmos/cosmos-sdk/types/module/testutil" + + storetypes "cosmossdk.io/store/types" + cosmostestutil "github.com/cosmos/cosmos-sdk/testutil" +) + +type MigrationTestSuite struct { + suite.Suite + ctrl *gomock.Controller + + mintKeeper keeper.Keeper + ctx sdk.Context + stakingKeeper *minttestutil.MockStakingKeeper + bankKeeper *minttestutil.MockBankKeeper + emissionsKeeper *minttestutil.MockEmissionsKeeper +} + +func TestKeeperTestSuite(t *testing.T) { + suite.Run(t, new(MigrationTestSuite)) +} + +func (s *MigrationTestSuite) SetupTest() { + encCfg := moduletestutil.MakeTestEncodingConfig(mint.AppModuleBasic{}) + key := storetypes.NewKVStoreKey(types.StoreKey) + storeService := runtime.NewKVStoreService(key) + testCtx := cosmostestutil.DefaultContextWithDB(s.T(), key, storetypes.NewTransientStoreKey("transient_test")) + s.ctx = testCtx.Ctx + + // gomock initializations + s.ctrl = gomock.NewController(s.T()) + accountKeeper := minttestutil.NewMockAccountKeeper(s.ctrl) + bankKeeper := minttestutil.NewMockBankKeeper(s.ctrl) + stakingKeeper := minttestutil.NewMockStakingKeeper(s.ctrl) + emissionsKeeper := minttestutil.NewMockEmissionsKeeper(s.ctrl) + + accountKeeper.EXPECT().GetModuleAddress(types.ModuleName).Return(sdk.AccAddress{}) + + s.mintKeeper = keeper.NewKeeper( + encCfg.Codec, + storeService, + stakingKeeper, + accountKeeper, + bankKeeper, + emissionsKeeper, + authtypes.FeeCollectorName, + ) + s.stakingKeeper = stakingKeeper + s.bankKeeper = bankKeeper + s.emissionsKeeper = emissionsKeeper +} + +func (s *MigrationTestSuite) TestMigrate() { + + storageService := s.mintKeeper.GetStorageService() + store := runtime.KVStoreAdapter(storageService.OpenKVStore(s.ctx)) + cdc := s.mintKeeper.GetBinaryCodec() + + paramsOld := OldParams{ + MintDenom: "test", + MaxSupply: cosmosMath.NewInt(120), + FEmission: cosmosMath.LegacyMustNewDecFromStr("0.1337"), + OneMonthSmoothingDegree: cosmosMath.LegacyMustNewDecFromStr("0.1337"), + EcosystemTreasuryPercentOfTotalSupply: cosmosMath.LegacyMustNewDecFromStr("0.1337"), + FoundationTreasuryPercentOfTotalSupply: cosmosMath.LegacyMustNewDecFromStr("0.1337"), + ParticipantsPercentOfTotalSupply: cosmosMath.LegacyMustNewDecFromStr("0.1337"), + InvestorsPercentOfTotalSupply: cosmosMath.LegacyMustNewDecFromStr("0.1337"), + TeamPercentOfTotalSupply: cosmosMath.LegacyMustNewDecFromStr("0.1337"), + MaximumMonthlyPercentageYield: cosmosMath.LegacyMustNewDecFromStr("0.1337"), + } + + store.Set(types.ParamsKey, cdc.MustMarshal(¶msOld)) + + // Run migration + err := migrations.V1ToV2(s.ctx, s.mintKeeper) + s.Require().NoError(err) + + defaultParams := types.DefaultParams() + paramsExpected := types.Params{ + MintDenom: paramsOld.MintDenom, + MaxSupply: paramsOld.MaxSupply, + FEmission: paramsOld.FEmission, + OneMonthSmoothingDegree: paramsOld.OneMonthSmoothingDegree, + EcosystemTreasuryPercentOfTotalSupply: paramsOld.EcosystemTreasuryPercentOfTotalSupply, + FoundationTreasuryPercentOfTotalSupply: paramsOld.FoundationTreasuryPercentOfTotalSupply, + ParticipantsPercentOfTotalSupply: paramsOld.ParticipantsPercentOfTotalSupply, + InvestorsPercentOfTotalSupply: paramsOld.InvestorsPercentOfTotalSupply, + TeamPercentOfTotalSupply: paramsOld.TeamPercentOfTotalSupply, + MaximumMonthlyPercentageYield: paramsOld.MaximumMonthlyPercentageYield, + InvestorsPreseedPercentOfTotalSupply: defaultParams.InvestorsPreseedPercentOfTotalSupply, + } + + params, err := s.mintKeeper.Params.Get(s.ctx) + s.Require().NoError(err) + s.Require().Equal(paramsExpected.MintDenom, params.MintDenom) + s.Require().True(paramsExpected.MaxSupply.Equal(params.MaxSupply), "%s != %s", paramsExpected.MaxSupply, params.MaxSupply) + s.Require().True(paramsExpected.FEmission.Equal(params.FEmission), "%s != %s", paramsExpected.FEmission, params.FEmission) + s.Require().True(paramsExpected.OneMonthSmoothingDegree.Equal(params.OneMonthSmoothingDegree), "%s != %s", paramsExpected.OneMonthSmoothingDegree, params.OneMonthSmoothingDegree) + s.Require().True(paramsExpected.EcosystemTreasuryPercentOfTotalSupply.Equal(params.EcosystemTreasuryPercentOfTotalSupply), "%s != %s", paramsExpected.EcosystemTreasuryPercentOfTotalSupply, params.EcosystemTreasuryPercentOfTotalSupply) + s.Require().True(paramsExpected.FoundationTreasuryPercentOfTotalSupply.Equal(params.FoundationTreasuryPercentOfTotalSupply), "%s != %s", paramsExpected.FoundationTreasuryPercentOfTotalSupply, params.FoundationTreasuryPercentOfTotalSupply) + s.Require().True(paramsExpected.ParticipantsPercentOfTotalSupply.Equal(params.ParticipantsPercentOfTotalSupply), "%s != %s", paramsExpected.ParticipantsPercentOfTotalSupply, params.ParticipantsPercentOfTotalSupply) + s.Require().True(paramsExpected.InvestorsPercentOfTotalSupply.Equal(params.InvestorsPercentOfTotalSupply), "%s != %s", paramsExpected.InvestorsPercentOfTotalSupply, params.InvestorsPercentOfTotalSupply) + s.Require().True(paramsExpected.TeamPercentOfTotalSupply.Equal(params.TeamPercentOfTotalSupply), "%s != %s", paramsExpected.TeamPercentOfTotalSupply, params.TeamPercentOfTotalSupply) + s.Require().True(paramsExpected.MaximumMonthlyPercentageYield.Equal(params.MaximumMonthlyPercentageYield), "%s != %s", paramsExpected.MaximumMonthlyPercentageYield, params.MaximumMonthlyPercentageYield) + s.Require().True(paramsExpected.InvestorsPreseedPercentOfTotalSupply.Equal(params.InvestorsPreseedPercentOfTotalSupply), "%s != %s", paramsExpected.InvestorsPreseedPercentOfTotalSupply, params.InvestorsPreseedPercentOfTotalSupply) + s.Require().Equal(paramsExpected, params) + +} diff --git a/x/mint/module/abci.go b/x/mint/module/abci.go index 50b50fc56..fc6b32b42 100644 --- a/x/mint/module/abci.go +++ b/x/mint/module/abci.go @@ -11,9 +11,11 @@ import ( func GetEmissionPerMonth( ctx sdk.Context, - k keeper.Keeper, + k types.MintKeeper, + blockHeight uint64, blocksPerMonth uint64, params types.Params, + ecosystemBalance math.Int, ecosystemMintSupplyRemaining math.Int, validatorsPercent math.LegacyDec, ) ( @@ -26,32 +28,52 @@ func GetEmissionPerMonth( if err != nil { return math.Int{}, math.LegacyDec{}, err } - totalSupply := k.GetTotalCurrTokenSupply(ctx).Amount - lockedSupply := keeper.GetLockedTokenSupply( + totalSupply := params.MaxSupply + lockedVestingTokens, _, _, _ := keeper.GetLockedVestingTokens( blocksPerMonth, - math.NewIntFromUint64(uint64(ctx.BlockHeight())), + math.NewIntFromUint64(blockHeight), params, ) - circulatingSupply := totalSupply.Sub(lockedSupply) + ecosystemLocked := ecosystemBalance.Add(ecosystemMintSupplyRemaining) + circulatingSupply := totalSupply.Sub(lockedVestingTokens).Sub(ecosystemLocked) if circulatingSupply.IsNegative() { - circulatingSupply = math.ZeroInt() + ctx.Logger().Error( + "Negative circulating supply", + "totalSupply", totalSupply.String(), + "lockedVestingTokens", lockedVestingTokens.String(), + "ecosystemLocked", ecosystemLocked.String(), + "circulatingSupply", circulatingSupply.String(), + ) + + return math.Int{}, math.LegacyDec{}, types.ErrNegativeCirculatingSupply } - // T_{total,i} = ecosystemMintableRemaining + // T_{total,i} = ecosystemLocked // N_{staked,i} = networkStaked // N_{circ,i} = circulatingSupply // N_{total,i} = totalSupply - ctx.Logger().Info("Emission Per Unit Staked Token Calculation", - "FEmission", params.FEmission.String(), - "ecosystemMintSupplyRemaining", ecosystemMintSupplyRemaining.String(), - "networkStaked", networkStaked.String(), - "circulatingSupply", circulatingSupply.String(), - "totalSupply", totalSupply.String(), - "lockedSupply", lockedSupply.String(), + ctx.Logger().Info( + "Emission Per Unit Staked Token Calculation\n"+ + "FEmission %s\n"+ + "ecosystemLocked %s\n"+ + "networkStaked %s\n"+ + "circulatingSupply %s\n"+ + "totalSupply %s\n"+ + "lockedVestingTokens %s\n", + "ecosystemBalance%s\n", + "ecosystemMintSupplyRemaining %s\n"+ + params.FEmission.String(), + ecosystemLocked.String(), + networkStaked.String(), + circulatingSupply.String(), + totalSupply.String(), + lockedVestingTokens.String(), + ecosystemBalance.String(), + ecosystemMintSupplyRemaining.String(), ) targetRewardEmissionPerUnitStakedToken, err := keeper.GetTargetRewardEmissionPerUnitStakedToken( params.FEmission, - ecosystemMintSupplyRemaining, + ecosystemLocked, networkStaked, circulatingSupply, params.MaxSupply, @@ -72,9 +94,15 @@ func GetEmissionPerMonth( targetRewardEmissionPerUnitStakedToken, maximumMonthlyEmissionPerUnitStakedToken, ) - previousRewardEmissionPerUnitStakedToken, err := k.PreviousRewardEmissionPerUnitStakedToken.Get(ctx) - if err != nil { - return math.Int{}, math.LegacyDec{}, err + var previousRewardEmissionPerUnitStakedToken math.LegacyDec + // if this is the first month/time we're calculating the target emission... + if blockHeight < blocksPerMonth { + previousRewardEmissionPerUnitStakedToken = targetRewardEmissionPerUnitStakedToken + } else { + previousRewardEmissionPerUnitStakedToken, err = k.GetPreviousRewardEmissionPerUnitStakedToken(ctx) + if err != nil { + return math.Int{}, math.LegacyDec{}, err + } } emissionPerUnitStakedToken = keeper.GetExponentialMovingAverage( targetRewardEmissionPerUnitStakedToken, @@ -115,7 +143,7 @@ func BeginBlocker(ctx context.Context, k keeper.Keeper) error { return err } - blockHeight := sdkCtx.BlockHeight() + blockHeight := uint64(sdkCtx.BlockHeight()) blockEmission, err := k.PreviousBlockEmission.Get(ctx) if err != nil { @@ -137,12 +165,14 @@ func BeginBlocker(ctx context.Context, k keeper.Keeper) error { } vPercent := vPercentADec.SdkLegacyDec() // every month on the first block of the month, update the emissions rate - if uint64(blockHeight)%blocksPerMonth == 1 { // easier to test when genesis starts at 1 + if blockHeight%blocksPerMonth == 1 { // easier to test when genesis starts at 1 emissionPerMonth, emissionPerUnitStakedToken, err := GetEmissionPerMonth( sdkCtx, k, + blockHeight, blocksPerMonth, params, + ecosystemBalance, ecosystemMintSupplyRemaining, vPercent, ) @@ -165,6 +195,9 @@ func BeginBlocker(ctx context.Context, k keeper.Keeper) error { if blockEmission.GT(ecosystemBalance) { // mint the amount of tokens required to pay out the emissions tokensToMint := blockEmission.Sub(ecosystemBalance) + if tokensToMint.GT(ecosystemMintSupplyRemaining) { + tokensToMint = ecosystemMintSupplyRemaining + } coins := sdk.NewCoins(sdk.NewCoin(params.MintDenom, tokensToMint)) err = k.MintCoins(sdkCtx, coins) if err != nil { diff --git a/x/mint/module/module.go b/x/mint/module/module.go index 49afbdbdd..d87a53412 100644 --- a/x/mint/module/module.go +++ b/x/mint/module/module.go @@ -10,6 +10,7 @@ import ( "cosmossdk.io/depinject" modulev1 "github.com/allora-network/allora-chain/x/mint/api/module/v1" "github.com/allora-network/allora-chain/x/mint/keeper" + "github.com/allora-network/allora-chain/x/mint/migrations" "github.com/allora-network/allora-chain/x/mint/types" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/codec" @@ -110,9 +111,9 @@ func (am AppModule) RegisterServices(cfg module.Configurator) { types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper)) types.RegisterQueryServer(cfg.QueryServer(), keeper.NewQueryServerImpl(am.keeper)) - m := keeper.NewMigrator(am.keeper) - - if err := cfg.RegisterMigration(types.ModuleName, 1, m.Migrate1to2); err != nil { + if err := cfg.RegisterMigration(types.ModuleName, 1, func(ctx sdk.Context) error { + return migrations.V1ToV2(ctx, am.keeper) + }); err != nil { panic(fmt.Sprintf("failed to migrate x/%s from version 1 to 2: %v", types.ModuleName, err)) } } diff --git a/x/mint/module/module_test.go b/x/mint/module/module_test.go index 18b62ec41..984c65e1c 100644 --- a/x/mint/module/module_test.go +++ b/x/mint/module/module_test.go @@ -194,8 +194,10 @@ func (s *MintModuleTestSuite) TestTotalStakeGoUpTargetEmissionPerUnitStakeGoDown _, emissionPerUnitStakedTokenBefore, err := mint.GetEmissionPerMonth( s.ctx, s.mintKeeper, + uint64(s.ctx.BlockHeight()), blocksPerMonth, params, + cosmosMath.ZeroInt(), ecosystemMintSupplyRemaining, cosmosMath.LegacyMustNewDecFromStr("0.25"), ) @@ -215,8 +217,10 @@ func (s *MintModuleTestSuite) TestTotalStakeGoUpTargetEmissionPerUnitStakeGoDown _, emissionPerUnitStakedTokenAfter, err := mint.GetEmissionPerMonth( s.ctx, s.mintKeeper, + uint64(s.ctx.BlockHeight()), blocksPerMonth, params, + cosmosMath.ZeroInt(), ecosystemMintSupplyRemaining, cosmosMath.LegacyMustNewDecFromStr("0.25"), ) @@ -286,9 +290,9 @@ func (s *MintModuleTestSuite) TestNoNewMintedTokensIfInferenceRequestFeesEnoughT ) s.Require().NoError(err) - // mint enough tokens so that the circulating supply is non zero - // mint them to the ecosystem account to simulate paying for inference requests - spareCoins, ok := cosmosMath.NewIntFromString("500000000000000000000000000") + //mint enough tokens so that the circulating supply is non zero + //mint them to the ecosystem account to simulate paying for inference requests + spareCoins, ok := cosmosMath.NewIntFromString("100000000000000000000000") s.Require().True(ok) err = s.bankKeeper.MintCoins( s.ctx, @@ -318,7 +322,11 @@ func (s *MintModuleTestSuite) TestNoNewMintedTokensIfInferenceRequestFeesEnoughT // the ecosystem account balance went DOWN (ecosystem paid to the rewards account) // the fee collector account balance went UP (fee collector received the fees) // the allora rewards account balance went UP (allora rewards account received the rewards) - s.Require().Equal(tokenSupplyBefore, tokenSupplyAfter) + s.Require().True(tokenSupplyBefore.Amount.Equal(tokenSupplyAfter.Amount), + "Token supply should not change when minting tokens as inflationary rewards: %s == %s", + tokenSupplyBefore.Amount.String(), + tokenSupplyAfter.Amount.String(), + ) s.Require().True( ecosystemBalBefore.Amount.GT(ecosystemBalAfter.Amount), "Ecosystem balance should go down when minting tokens to pay for inference requests: %s > %s", diff --git a/x/mint/proto/mint/v1beta1/types.proto b/x/mint/proto/mint/v1beta1/types.proto index bb987ff2b..84dd03983 100644 --- a/x/mint/proto/mint/v1beta1/types.proto +++ b/x/mint/proto/mint/v1beta1/types.proto @@ -77,4 +77,11 @@ message Params { (gogoproto.nullable) = false, (amino.dont_omitempty) = true ]; + // percentage of the total supply that is locked in the preseed investors bucket at the genesis + string investors_preseed_percent_of_total_supply = 11 [ + (cosmos_proto.scalar) = "cosmos.LegacyDec", + (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", + (gogoproto.nullable) = false, + (amino.dont_omitempty) = true + ]; } diff --git a/x/mint/testutil/emissions_keeper_mocks.go b/x/mint/testutil/emissions_keeper_mocks.go index 16a5a38ad..2471316d4 100644 --- a/x/mint/testutil/emissions_keeper_mocks.go +++ b/x/mint/testutil/emissions_keeper_mocks.go @@ -10,7 +10,7 @@ import ( gomock "github.com/golang/mock/gomock" ) -// MockEmissionsKeeper is a mock of BankKeeper interface. +// MockEmissionsKeeper is a mock of EmissionsKeeper interface. type MockEmissionsKeeper struct { ctrl *gomock.Controller recorder *MockEmissionsKeeperMockRecorder @@ -21,7 +21,7 @@ type MockEmissionsKeeperMockRecorder struct { mock *MockEmissionsKeeper } -// NewEmissionsBankKeeper creates a new mock instance. +// NewEmissionsEmissionsKeeper creates a new mock instance. func NewMockEmissionsKeeper(ctrl *gomock.Controller) *MockEmissionsKeeper { mock := &MockEmissionsKeeper{ctrl: ctrl} mock.recorder = &MockEmissionsKeeperMockRecorder{mock} diff --git a/x/mint/testutil/mint_keeper_mocks.go b/x/mint/testutil/mint_keeper_mocks.go new file mode 100644 index 000000000..719d870b2 --- /dev/null +++ b/x/mint/testutil/mint_keeper_mocks.go @@ -0,0 +1,102 @@ +package testutil + +import ( + "context" + "reflect" + + "cosmossdk.io/math" + sdk "github.com/cosmos/cosmos-sdk/types" + gomock "github.com/golang/mock/gomock" +) + +// MockMintKeeper is a mock of MintKeeper interface. +type MockMintKeeper struct { + ctrl *gomock.Controller + recorder *MockMintKeeperMockRecorder +} + +// MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper. +type MockMintKeeperMockRecorder struct { + mock *MockMintKeeper +} + +// NewMintMintKeeper creates a new mock instance. +func NewMockMintKeeper(ctrl *gomock.Controller) *MockMintKeeper { + mock := &MockMintKeeper{ctrl: ctrl} + mock.recorder = &MockMintKeeperMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockMintKeeper) EXPECT() *MockMintKeeperMockRecorder { + return m.recorder +} + +// CosmosValidatorStakedSupply(ctx context.Context) (math.Int, error) +func (m *MockMintKeeper) CosmosValidatorStakedSupply(ctx context.Context) (math.Int, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "CosmosValidatorStakedSupply", ctx) + ret0, _ := ret[0].(math.Int) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +func (mr *MockMintKeeperMockRecorder) CosmosValidatorStakedSupply(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CosmosValidatorStakedSupply", reflect.TypeOf((*MockMintKeeper)(nil).CosmosValidatorStakedSupply), ctx) +} + +// GetEmissionsKeeperTotalStake(ctx context.Context) (math.Int, error) +func (m *MockMintKeeper) GetEmissionsKeeperTotalStake(ctx context.Context) (math.Int, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetEmissionsKeeperTotalStake", ctx) + ret0, _ := ret[0].(math.Int) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +func (mr *MockMintKeeperMockRecorder) GetEmissionsKeeperTotalStake(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEmissionsKeeperTotalStake", reflect.TypeOf((*MockMintKeeper)(nil).GetEmissionsKeeperTotalStake), ctx) +} + +// GetTotalCurrTokenSupply(ctx context.Context) sdk.Coin +func (m *MockMintKeeper) GetTotalCurrTokenSupply(ctx context.Context) sdk.Coin { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetTotalCurrTokenSupply", ctx) + ret0, _ := ret[0].(sdk.Coin) + return ret0 +} + +func (mr *MockMintKeeperMockRecorder) GetTotalCurrTokenSupply(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTotalCurrTokenSupply", reflect.TypeOf((*MockMintKeeper)(nil).GetTotalCurrTokenSupply), ctx) +} + +// GetPreviousPercentageRewardToStakedReputers(ctx context.Context) (math.LegacyDec, error) +func (m *MockMintKeeper) GetPreviousPercentageRewardToStakedReputers(ctx context.Context) (math.LegacyDec, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPreviousPercentageRewardToStakedReputers", ctx) + ret0, _ := ret[0].(math.LegacyDec) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +func (mr *MockMintKeeperMockRecorder) GetPreviousPercentageRewardToStakedReputers(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPreviousPercentageRewardToStakedReputers", reflect.TypeOf((*MockMintKeeper)(nil).GetPreviousPercentageRewardToStakedReputers), ctx) +} + +// GetPreviousRewardEmissionPerUnitStakedToken(ctx context.Context) (math.LegacyDec, error) +func (m *MockMintKeeper) GetPreviousRewardEmissionPerUnitStakedToken(ctx context.Context) (math.LegacyDec, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "GetPreviousRewardEmissionPerUnitStakedToken", ctx) + ret0, _ := ret[0].(math.LegacyDec) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +func (mr *MockMintKeeperMockRecorder) GetPreviousRewardEmissionPerUnitStakedToken(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPreviousRewardEmissionPerUnitStakedToken", reflect.TypeOf((*MockMintKeeper)(nil).GetPreviousRewardEmissionPerUnitStakedToken), ctx) +} diff --git a/x/mint/types/errors.go b/x/mint/types/errors.go index 6ed08d3ba..ecfad818d 100644 --- a/x/mint/types/errors.go +++ b/x/mint/types/errors.go @@ -3,9 +3,12 @@ package types import "cosmossdk.io/errors" var ( - ErrUnauthorized = errors.Register(ModuleName, 1, "unauthorized message signer") + // ERROR 1 IS RESERVED BY COSMOS-SDK PACKAGE ErrNegativeTargetEmissionPerToken = errors.Register(ModuleName, 2, "negative target emission per token") ErrInvalidPreviousRewardEmissionPerUnitStakedToken = errors.Register(ModuleName, 3, "invalid previous reward") ErrInvalidEcosystemTokensMinted = errors.Register(ModuleName, 4, "invalid ecosystem tokens minted") ErrZeroDenominator = errors.Register(ModuleName, 5, "zero denominator") + ErrNegativeCirculatingSupply = errors.Register(ModuleName, 6, "circulating supply cannot be negative") + ErrNotFound = errors.Register(ModuleName, 7, "not found") + ErrUnauthorized = errors.Register(ModuleName, 8, "unauthorized message signer") ) diff --git a/x/mint/types/expected_keepers.go b/x/mint/types/expected_keepers.go index c6715e860..1d93aa57d 100644 --- a/x/mint/types/expected_keepers.go +++ b/x/mint/types/expected_keepers.go @@ -42,3 +42,12 @@ type EmissionsKeeper interface { GetParams(ctx context.Context) (emissionstypes.Params, error) IsWhitelistAdmin(ctx context.Context, admin string) (bool, error) } + +// used for testing +type MintKeeper interface { + CosmosValidatorStakedSupply(ctx context.Context) (math.Int, error) + GetEmissionsKeeperTotalStake(ctx context.Context) (math.Int, error) + GetTotalCurrTokenSupply(ctx context.Context) sdk.Coin + GetPreviousPercentageRewardToStakedReputers(ctx context.Context) (math.LegacyDec, error) + GetPreviousRewardEmissionPerUnitStakedToken(ctx context.Context) (math.LegacyDec, error) +} diff --git a/x/mint/types/params.go b/x/mint/types/params.go index ef6a7f8c6..21f64e020 100644 --- a/x/mint/types/params.go +++ b/x/mint/types/params.go @@ -20,6 +20,7 @@ func NewParams( foundationPercentOfTotalSupply math.LegacyDec, participantsPercentOfTotalSupply math.LegacyDec, investorsPercentOfTotalSupply math.LegacyDec, + investorsPreseedPercentOfTotalSupply math.LegacyDec, teamPercentOfTotalSupply math.LegacyDec, maxMonthlyPercentageYield math.LegacyDec, ) Params { @@ -32,6 +33,7 @@ func NewParams( FoundationTreasuryPercentOfTotalSupply: foundationPercentOfTotalSupply, ParticipantsPercentOfTotalSupply: participantsPercentOfTotalSupply, InvestorsPercentOfTotalSupply: investorsPercentOfTotalSupply, + InvestorsPreseedPercentOfTotalSupply: investorsPreseedPercentOfTotalSupply, TeamPercentOfTotalSupply: teamPercentOfTotalSupply, MaximumMonthlyPercentageYield: maxMonthlyPercentageYield, } @@ -51,7 +53,8 @@ func DefaultParams() Params { EcosystemTreasuryPercentOfTotalSupply: math.LegacyMustNewDecFromStr("0.3595"), // 35.95% FoundationTreasuryPercentOfTotalSupply: math.LegacyMustNewDecFromStr("0.1"), // 10% ParticipantsPercentOfTotalSupply: math.LegacyMustNewDecFromStr("0.055"), // 5.5% - InvestorsPercentOfTotalSupply: math.LegacyMustNewDecFromStr("0.3105"), // 31.05% + InvestorsPercentOfTotalSupply: math.LegacyMustNewDecFromStr("0.2605"), // 26.05% + InvestorsPreseedPercentOfTotalSupply: math.LegacyMustNewDecFromStr("0.05"), // 5% TeamPercentOfTotalSupply: math.LegacyMustNewDecFromStr("0.175"), // 17.5% MaximumMonthlyPercentageYield: math.LegacyMustNewDecFromStr("0.0095"), // .95% per month } @@ -98,6 +101,9 @@ func (p Params) Validate() error { if err := validateAFractionValue(p.InvestorsPercentOfTotalSupply); err != nil { return err } + if err := validateAFractionValue(p.InvestorsPreseedPercentOfTotalSupply); err != nil { + return err + } if err := validateAFractionValue(p.TeamPercentOfTotalSupply); err != nil { return err } @@ -106,6 +112,7 @@ func (p Params) Validate() error { p.FoundationTreasuryPercentOfTotalSupply, p.ParticipantsPercentOfTotalSupply, p.InvestorsPercentOfTotalSupply, + p.InvestorsPreseedPercentOfTotalSupply, p.TeamPercentOfTotalSupply, ); err != nil { return err @@ -170,6 +177,7 @@ func validateTokenSupplyAddsTo100Percent( foundation math.LegacyDec, participants math.LegacyDec, investors math.LegacyDec, + investorsPreesed math.LegacyDec, team math.LegacyDec, ) error { one := math.OneInt().ToLegacyDec() @@ -178,15 +186,17 @@ func validateTokenSupplyAddsTo100Percent( Add(foundation). Add(participants). Add(investors). + Add(investorsPreesed). Add(team), ) if !equal100Percent { return fmt.Errorf( - "total supply percentages do not add up to 100 percent: %s %s %s %s %s", + "total supply percentages do not add up to 100 percent: %s %s %s %s %s %s", ecosystem, foundation, participants, investors, + investorsPreesed, team, ) } diff --git a/x/mint/types/types.pb.go b/x/mint/types/types.pb.go index e0ed1fb31..1e3da15a2 100644 --- a/x/mint/types/types.pb.go +++ b/x/mint/types/types.pb.go @@ -48,6 +48,8 @@ type Params struct { TeamPercentOfTotalSupply cosmossdk_io_math.LegacyDec `protobuf:"bytes,9,opt,name=team_percent_of_total_supply,json=teamPercentOfTotalSupply,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"team_percent_of_total_supply"` // The capped max monthly percentage yield (like %APY) MaximumMonthlyPercentageYield cosmossdk_io_math.LegacyDec `protobuf:"bytes,10,opt,name=maximum_monthly_percentage_yield,json=maximumMonthlyPercentageYield,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"maximum_monthly_percentage_yield"` + // percentage of the total supply that is locked in the preseed investors bucket at the genesis + InvestorsPreseedPercentOfTotalSupply cosmossdk_io_math.LegacyDec `protobuf:"bytes,11,opt,name=investors_preseed_percent_of_total_supply,json=investorsPreseedPercentOfTotalSupply,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"investors_preseed_percent_of_total_supply"` } func (m *Params) Reset() { *m = Params{} } @@ -97,42 +99,44 @@ func init() { func init() { proto.RegisterFile("mint/v1beta1/types.proto", fileDescriptor_010015e812760429) } var fileDescriptor_010015e812760429 = []byte{ - // 551 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x3f, 0x6f, 0xd3, 0x40, - 0x18, 0xc6, 0x73, 0xfc, 0x29, 0xe4, 0xc4, 0x00, 0x16, 0x08, 0x13, 0xa8, 0x1b, 0x10, 0x20, 0x14, - 0x94, 0x98, 0xaa, 0x1b, 0x62, 0xaa, 0xc2, 0x50, 0x89, 0xa8, 0x51, 0xdb, 0x05, 0x18, 0x4e, 0x17, - 0xe7, 0xe2, 0x9c, 0xea, 0xbb, 0xd7, 0xf2, 0xbd, 0x29, 0xb1, 0xc4, 0x0a, 0x03, 0x62, 0x60, 0x43, - 0x7c, 0x03, 0xc6, 0x0e, 0xfd, 0x0a, 0x48, 0x1d, 0xab, 0x4e, 0x88, 0xa1, 0x42, 0xc9, 0xd0, 0xaf, - 0x81, 0x6c, 0x5f, 0x03, 0x12, 0x09, 0x2c, 0x5e, 0x2c, 0xfb, 0x7d, 0xac, 0xdf, 0xef, 0xd1, 0xc9, - 0x7e, 0xa9, 0xab, 0xa4, 0x46, 0x7f, 0x6f, 0xb5, 0x27, 0x90, 0xaf, 0xfa, 0x98, 0xc6, 0xc2, 0xb4, - 0xe2, 0x04, 0x10, 0x9c, 0x2b, 0x59, 0xd2, 0xb2, 0x49, 0xed, 0x7a, 0x08, 0x21, 0xe4, 0x81, 0x9f, - 0xdd, 0x15, 0xef, 0xd4, 0x6e, 0x05, 0x60, 0x14, 0x18, 0x56, 0x04, 0xc5, 0x83, 0x8d, 0xae, 0x71, - 0x25, 0x35, 0xf8, 0xf9, 0xb5, 0x18, 0xdd, 0xfb, 0x56, 0xa5, 0x4b, 0x5d, 0x9e, 0x70, 0x65, 0x9c, - 0x65, 0x4a, 0x33, 0x3c, 0xeb, 0x0b, 0x0d, 0xca, 0x25, 0x75, 0xf2, 0xa8, 0xba, 0x55, 0xcd, 0x26, - 0xed, 0x6c, 0xe0, 0x6c, 0x52, 0xaa, 0xf8, 0x98, 0x99, 0x51, 0x1c, 0x47, 0xa9, 0x7b, 0x2e, 0x8b, - 0xd7, 0x9f, 0x1c, 0x9e, 0xac, 0x54, 0x7e, 0x9c, 0xac, 0xdc, 0x28, 0x34, 0xa6, 0xbf, 0xdb, 0x92, - 0xe0, 0x2b, 0x8e, 0xc3, 0xd6, 0x86, 0xc6, 0xe3, 0x83, 0x26, 0xb5, 0xfe, 0x0d, 0x8d, 0x5f, 0x4f, - 0xf7, 0x1b, 0x64, 0xab, 0xaa, 0xf8, 0x78, 0x3b, 0x47, 0x38, 0xaf, 0x29, 0x1d, 0x30, 0xa1, 0xa4, - 0x31, 0x12, 0xb4, 0x7b, 0x3e, 0x07, 0x3e, 0xb3, 0xc0, 0xdb, 0x7f, 0x03, 0x5f, 0x88, 0x90, 0x07, - 0x69, 0x5b, 0x04, 0xc7, 0x07, 0xcd, 0xab, 0x16, 0x3b, 0x9b, 0x59, 0xf8, 0xe0, 0xb9, 0xc5, 0x39, - 0x29, 0xad, 0x81, 0x16, 0x4c, 0x81, 0xc6, 0x21, 0x33, 0x0a, 0x00, 0x87, 0x52, 0x87, 0xac, 0x2f, - 0xc2, 0x44, 0x08, 0xf7, 0x42, 0x09, 0xb2, 0x9b, 0xa0, 0x45, 0x27, 0xc3, 0x6f, 0x9f, 0xd1, 0xdb, - 0x39, 0xdc, 0xf9, 0x4c, 0x68, 0x43, 0x04, 0x60, 0x52, 0x83, 0x42, 0x31, 0x4c, 0x04, 0x37, 0xa3, - 0x24, 0x65, 0xb1, 0x48, 0x02, 0xa1, 0x91, 0xc1, 0x80, 0x21, 0x20, 0x8f, 0xce, 0x4e, 0xf2, 0x62, - 0x09, 0x5d, 0x1e, 0xcc, 0x7c, 0x3b, 0x56, 0xd7, 0x2d, 0x6c, 0x9b, 0x83, 0x9d, 0xcc, 0x65, 0x4f, - 0xfc, 0x0b, 0xa1, 0x8f, 0x07, 0x30, 0xd2, 0x7d, 0x8e, 0x12, 0xf4, 0xff, 0xab, 0x2d, 0x95, 0x50, - 0xed, 0xe1, 0x6f, 0xe1, 0x3f, 0xbb, 0x7d, 0x24, 0xf4, 0x7e, 0xcc, 0x13, 0x94, 0x81, 0x8c, 0xb9, - 0x46, 0xb3, 0xb0, 0xd4, 0xa5, 0x12, 0x4a, 0xd5, 0xff, 0x34, 0xcd, 0xad, 0xf3, 0x9e, 0xd0, 0xbb, - 0x52, 0xef, 0x09, 0x83, 0x90, 0x2c, 0xee, 0x72, 0xb9, 0x84, 0x2e, 0xcb, 0x33, 0xcd, 0xdc, 0x22, - 0x6f, 0xe9, 0x1d, 0x14, 0x5c, 0x2d, 0xac, 0x50, 0x2d, 0xa1, 0x82, 0x9b, 0x19, 0xe6, 0xda, 0xdf, - 0x11, 0x5a, 0x57, 0x7c, 0x2c, 0xd5, 0x48, 0x15, 0xff, 0x52, 0x34, 0xfb, 0x5a, 0x78, 0x28, 0x58, - 0x2a, 0x45, 0xd4, 0x77, 0x69, 0x19, 0xa7, 0x60, 0x2d, 0x9d, 0x42, 0xd2, 0x9d, 0x39, 0x5e, 0x66, - 0x8a, 0xa7, 0x2b, 0x1f, 0x4e, 0xf7, 0x1b, 0x35, 0x1e, 0x45, 0x90, 0xf0, 0x66, 0x30, 0xe4, 0x52, - 0xfb, 0x63, 0x3f, 0x5f, 0x93, 0xc5, 0xf2, 0x5a, 0xef, 0x1c, 0x4e, 0x3c, 0x72, 0x34, 0xf1, 0xc8, - 0xcf, 0x89, 0x47, 0x3e, 0x4d, 0xbd, 0xca, 0xd1, 0xd4, 0xab, 0x7c, 0x9f, 0x7a, 0x95, 0x57, 0x6b, - 0xa1, 0xc4, 0xe1, 0xa8, 0xd7, 0x0a, 0x40, 0xf9, 0x16, 0xa0, 0x05, 0xbe, 0x81, 0x64, 0xd7, 0x9f, - 0xc7, 0xcb, 0xd7, 0x6d, 0x6f, 0x29, 0xdf, 0x8e, 0x6b, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x8e, - 0x93, 0xc4, 0x89, 0x8b, 0x05, 0x00, 0x00, + // 577 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0xbf, 0x6f, 0xd3, 0x40, + 0x14, 0xc7, 0x73, 0xfc, 0x28, 0xe4, 0x60, 0x00, 0x0b, 0x84, 0x09, 0xd4, 0x2d, 0xa8, 0x20, 0x08, + 0x4a, 0x4c, 0xd5, 0x0d, 0x31, 0x55, 0x61, 0xa8, 0x44, 0xd4, 0xa8, 0xed, 0x02, 0x0c, 0xa7, 0x8b, + 0xfd, 0xe2, 0x9c, 0xea, 0xbb, 0x67, 0xf9, 0x2e, 0x25, 0x96, 0x58, 0x61, 0x40, 0x0c, 0x2c, 0x08, + 0xf1, 0x1f, 0x30, 0x76, 0xe8, 0x1f, 0xd1, 0xb1, 0xea, 0x84, 0x90, 0xa8, 0x50, 0x32, 0xf4, 0xdf, + 0x40, 0xfe, 0xd1, 0xb4, 0x12, 0x09, 0x2c, 0x5e, 0xa2, 0xf8, 0x3d, 0xeb, 0xfb, 0xf9, 0xe8, 0x9d, + 0xfd, 0x4c, 0x6d, 0x29, 0x94, 0x71, 0x77, 0x96, 0xbb, 0x60, 0xf8, 0xb2, 0x6b, 0x92, 0x08, 0x74, + 0x33, 0x8a, 0xd1, 0xa0, 0x75, 0x35, 0xed, 0x34, 0x8b, 0x4e, 0xed, 0x46, 0x80, 0x01, 0x66, 0x0d, + 0x37, 0xfd, 0x97, 0xdf, 0x53, 0xbb, 0xed, 0xa1, 0x96, 0xa8, 0x59, 0xde, 0xc8, 0x2f, 0x8a, 0xd6, + 0x75, 0x2e, 0x85, 0x42, 0x37, 0xfb, 0xcd, 0x4b, 0xf7, 0x7f, 0x51, 0x3a, 0xd7, 0xe1, 0x31, 0x97, + 0xda, 0x9a, 0xa7, 0x34, 0x8d, 0x67, 0x3e, 0x28, 0x94, 0x36, 0x59, 0x24, 0x8f, 0xaa, 0x1b, 0xd5, + 0xb4, 0xd2, 0x4a, 0x0b, 0xd6, 0x3a, 0xa5, 0x92, 0x0f, 0x99, 0x1e, 0x44, 0x51, 0x98, 0xd8, 0xe7, + 0xd2, 0xf6, 0xea, 0xd3, 0xfd, 0xa3, 0x85, 0xca, 0xcf, 0xa3, 0x85, 0x9b, 0x39, 0x46, 0xfb, 0xdb, + 0x4d, 0x81, 0xae, 0xe4, 0xa6, 0xdf, 0x5c, 0x53, 0xe6, 0x70, 0xaf, 0x41, 0x0b, 0xfe, 0x9a, 0x32, + 0xdf, 0x8f, 0x77, 0xeb, 0x64, 0xa3, 0x2a, 0xf9, 0x70, 0x33, 0x8b, 0xb0, 0xde, 0x50, 0xda, 0x63, + 0x20, 0x85, 0xd6, 0x02, 0x95, 0x7d, 0x3e, 0x0b, 0x7c, 0x5e, 0x04, 0xde, 0xf9, 0x3b, 0xf0, 0x25, + 0x04, 0xdc, 0x4b, 0x5a, 0xe0, 0x1d, 0xee, 0x35, 0xae, 0x15, 0xb1, 0x93, 0x5a, 0x11, 0xde, 0x7b, + 0x51, 0xc4, 0x59, 0x09, 0xad, 0xa1, 0x02, 0x26, 0x51, 0x99, 0x3e, 0xd3, 0x12, 0xd1, 0xf4, 0x85, + 0x0a, 0x98, 0x0f, 0x41, 0x0c, 0x60, 0x5f, 0x28, 0x01, 0x76, 0x0b, 0x15, 0xb4, 0xd3, 0xf8, 0xcd, + 0x93, 0xf4, 0x56, 0x16, 0x6e, 0x7d, 0x25, 0xb4, 0x0e, 0x1e, 0xea, 0x44, 0x1b, 0x90, 0xcc, 0xc4, + 0xc0, 0xf5, 0x20, 0x4e, 0x58, 0x04, 0xb1, 0x07, 0xca, 0x30, 0xec, 0x31, 0x83, 0x86, 0x87, 0x27, + 0x93, 0xbc, 0x58, 0x82, 0xcb, 0x83, 0x09, 0x6f, 0xab, 0xc0, 0x75, 0x72, 0xda, 0x7a, 0x6f, 0x2b, + 0x65, 0x15, 0x13, 0xff, 0x46, 0xe8, 0x93, 0x1e, 0x0e, 0x94, 0xcf, 0x8d, 0x40, 0xf5, 0x7f, 0xb5, + 0xb9, 0x12, 0xd4, 0x1e, 0x9e, 0x02, 0xff, 0xe9, 0xf6, 0x89, 0xd0, 0xa5, 0x88, 0xc7, 0x46, 0x78, + 0x22, 0xe2, 0xca, 0xe8, 0x99, 0x52, 0x97, 0x4a, 0x90, 0x5a, 0x3c, 0x4b, 0x9a, 0xaa, 0xf3, 0x81, + 0xd0, 0x7b, 0x42, 0xed, 0x80, 0x36, 0x18, 0xcf, 0x76, 0xb9, 0x5c, 0x82, 0xcb, 0xfc, 0x04, 0x33, + 0x55, 0xe4, 0x1d, 0xbd, 0x6b, 0x80, 0xcb, 0x99, 0x0a, 0xd5, 0x12, 0x14, 0xec, 0x94, 0x30, 0x95, + 0xfe, 0x9e, 0xd0, 0x45, 0xc9, 0x87, 0x42, 0x0e, 0x64, 0xfe, 0x2e, 0x85, 0x93, 0xa7, 0x85, 0x07, + 0xc0, 0x12, 0x01, 0xa1, 0x6f, 0xd3, 0x32, 0xa6, 0x50, 0x50, 0xda, 0x39, 0xa4, 0x33, 0x61, 0xbc, + 0x4a, 0x11, 0xd6, 0x17, 0x42, 0x1f, 0x9f, 0x39, 0x8e, 0x18, 0x34, 0x80, 0x3f, 0x73, 0x26, 0x57, + 0x4a, 0x10, 0x5a, 0x3a, 0x3d, 0x96, 0x9c, 0x36, 0x6d, 0x3e, 0xcf, 0x16, 0x3e, 0x1e, 0xef, 0xd6, + 0x6b, 0x3c, 0x0c, 0x31, 0xe6, 0x0d, 0xaf, 0xcf, 0x85, 0x72, 0x87, 0x6e, 0xb6, 0xbe, 0xf3, 0xa5, + 0xba, 0xda, 0xde, 0x1f, 0x39, 0xe4, 0x60, 0xe4, 0x90, 0xdf, 0x23, 0x87, 0x7c, 0x1e, 0x3b, 0x95, + 0x83, 0xb1, 0x53, 0xf9, 0x31, 0x76, 0x2a, 0xaf, 0x57, 0x02, 0x61, 0xfa, 0x83, 0x6e, 0xd3, 0x43, + 0xe9, 0x16, 0x01, 0x0a, 0xcc, 0x5b, 0x8c, 0xb7, 0xdd, 0x69, 0x79, 0xd9, 0x67, 0xa0, 0x3b, 0x97, + 0x6d, 0xed, 0x95, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x76, 0x22, 0x4d, 0xcc, 0x23, 0x06, 0x00, + 0x00, } func (m *Params) Marshal() (dAtA []byte, err error) { @@ -155,6 +159,16 @@ func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + { + size := m.InvestorsPreseedPercentOfTotalSupply.Size() + i -= size + if _, err := m.InvestorsPreseedPercentOfTotalSupply.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + i = encodeVarintTypes(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a { size := m.MaximumMonthlyPercentageYield.Size() i -= size @@ -294,6 +308,8 @@ func (m *Params) Size() (n int) { n += 1 + l + sovTypes(uint64(l)) l = m.MaximumMonthlyPercentageYield.Size() n += 1 + l + sovTypes(uint64(l)) + l = m.InvestorsPreseedPercentOfTotalSupply.Size() + n += 1 + l + sovTypes(uint64(l)) return n } @@ -670,6 +686,40 @@ func (m *Params) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InvestorsPreseedPercentOfTotalSupply", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTypes + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthTypes + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTypes + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.InvestorsPreseedPercentOfTotalSupply.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTypes(dAtA[iNdEx:])